/*
 * LabelTool frontend styles. Colors are custom properties with a dark variant;
 * html[data-theme] forces light/dark, no attribute = follow the system.
 * [AI CODE - Claude Code claude-opus-5-5]
 */

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --border: #dfe2e7;
  --border-strong: #c3c8d0;
  --text: #1d2025;
  --muted: #646b77;
  --accent: #2f6fde;
  --accent-hover: #255fc4;
  --accent-text: #ffffff;
  --accent-soft: #e5eefc;
  --track: #e2e5ea;
  --wave: #3a9a5c;
  --skip-bg: #f2c94c;
  --skip-hover: #e9bb2c;
  --skip-text: #3d2e00;
  --wave-played: rgba(47, 111, 222, 0.16);
  --st-unchanged: #2f8f53;
  --st-corrected: #d9822b;
  --st-skipped: #8b929c;
  --diff-ins: #1f7a3f;
  --diff-ins-bg: #e3f4e8;
  --diff-del: #b3261e;
  --diff-del-bg: #fbe5e3;
  --warn-bg: #fdf6dc;
  --warn-border: #ecdca0;
  --warn-text: #7d5b00;
  --ok-bg: #eaf6ee;
  --ok-border: #bfe2cb;
  --ok-text: #23784a;
  --err: #c0392b;
  --err-bg: #fdeceb;
  --err-border: #f0b9b3;
  --info-bg: #eef3fc;
  --info-border: #c8d8f4;
  --kbd-bg: #f1f3f5;
  --backdrop: rgba(20, 24, 31, 0.32);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-lg: -8px 0 24px rgba(16, 24, 40, 0.14);
  --focus: 0 0 0 3px rgba(47, 111, 222, 0.38);
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15171c;
    --surface: #1f2228;
    --surface-2: #252931;
    --border: #343944;
    --border-strong: #4a505d;
    --text: #e6e8ec;
    --muted: #9aa1ad;
    --wave: #5cc183;
    --skip-bg: #d9a92e;
    --skip-hover: #e6b93f;
    --skip-text: #1d1600;
  --skip-bg: #d9a92e;
  --skip-hover: #e6b93f;
  --skip-text: #1d1600;
    --wave-played: rgba(109, 158, 242, 0.22);
    --st-unchanged: #4fb878;
    --st-corrected: #e89a4a;
    --st-skipped: #7d848f;
    --diff-ins: #79d29a;
    --diff-ins-bg: #183824;
    --diff-del: #f08a80;
    --diff-del-bg: #3a1d1b;
    --accent: #6d9ef2;
    --accent-hover: #86b0f6;
    --accent-text: #0e1522;
    --accent-soft: #233552;
    --track: #383e4a;
    --warn-bg: #2c2716;
    --warn-border: #5a4b1d;
    --warn-text: #e8c76a;
    --ok-bg: #18301f;
    --ok-border: #2f5b3c;
    --ok-text: #79d29a;
    --err: #f08a80;
    --err-bg: #3a1f1d;
    --err-border: #6d3530;
    --info-bg: #1d2a40;
    --info-border: #2f4466;
    --kbd-bg: #2a2e37;
    --backdrop: rgba(0, 0, 0, 0.5);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-lg: -8px 0 24px rgba(0, 0, 0, 0.45);
    --focus: 0 0 0 3px rgba(109, 158, 242, 0.5);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #15171c;
  --surface: #1f2228;
  --surface-2: #252931;
  --border: #343944;
  --border-strong: #4a505d;
  --text: #e6e8ec;
  --muted: #9aa1ad;
  --wave: #5cc183;
  --skip-bg: #d9a92e;
  --skip-hover: #e6b93f;
  --skip-text: #1d1600;
  --wave-played: rgba(109, 158, 242, 0.22);
  --st-unchanged: #4fb878;
  --st-corrected: #e89a4a;
  --st-skipped: #7d848f;
  --diff-ins: #79d29a;
  --diff-ins-bg: #183824;
  --diff-del: #f08a80;
  --diff-del-bg: #3a1d1b;
  --accent: #6d9ef2;
  --accent-hover: #86b0f6;
  --accent-text: #0e1522;
  --accent-soft: #233552;
  --track: #383e4a;
  --warn-bg: #2c2716;
  --warn-border: #5a4b1d;
  --warn-text: #e8c76a;
  --ok-bg: #18301f;
  --ok-border: #2f5b3c;
  --ok-text: #79d29a;
  --err: #f08a80;
  --err-bg: #3a1f1d;
  --err-border: #6d3530;
  --info-bg: #1d2a40;
  --info-border: #2f4466;
  --kbd-bg: #2a2e37;
  --backdrop: rgba(0, 0, 0, 0.5);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-lg: -8px 0 24px rgba(0, 0, 0, 0.45);
  --focus: 0 0 0 3px rgba(109, 158, 242, 0.5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus); }

h1, h2, h3 { line-height: 1.25; margin: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 40px;
  padding: 0.45em 1.1em;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { border-color: var(--border-strong); color: var(--text); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-text); }
.btn-block { width: 100%; }
.btn-small { min-height: 32px; padding: 0.25em 0.8em; font-size: 0.9em; }

.link-btn {
  background: none; border: 0; padding: 0;
  color: var(--accent); font: inherit; font-weight: 650;
  cursor: pointer; text-decoration: none;
}
.link-btn:hover { color: var(--accent-hover); }

/* ---------- switchers ---------- */

.switchers { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.seg {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  padding: 2px;
  gap: 2px;
}
.seg button {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  min-width: 30px;
  height: 26px;
  padding: 0 6px;
  border-radius: 4px;
  cursor: pointer;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }

/* ---------- page shells ---------- */

.floating-bar { display: flex; justify-content: flex-end; padding: 10px 16px 0; }

.card-page { padding: 24px 16px 48px; display: flex; justify-content: center; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.narrow-card { width: 100%; max-width: 480px; padding: 28px 32px 24px; }
.wide-card { width: 100%; max-width: 560px; padding: 28px 32px 32px; }

.brand { color: var(--accent); font-weight: 700; font-size: 13px; margin-bottom: 14px; }
.card h1 { font-size: 21px; margin-bottom: 10px; }
.lead { color: var(--muted); margin: 0 0 20px; }

.topbar {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  flex-wrap: wrap;
  padding: 8px 24px;
  min-height: 52px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topbar .brand-link { font-weight: 700; font-size: 16px; color: var(--text); text-decoration: none; }
.topbar .spacer { flex: 1; }
.topbar .who { color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; border-radius: 4px; padding: 2px 4px; }
.topbar .who::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.topbar a.who:hover { color: var(--text); text-decoration: underline; }
.topbar a.who[aria-current="page"] { color: var(--accent); font-weight: 700; }
.topbar a.who[aria-current="page"]::before { background: var(--accent); }

.help-btn {
  width: 28px; height: 28px; border-radius: 50%; flex: 0 0 auto;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted);
  font: inherit; font-weight: 700; font-size: 15px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.help-btn:hover { color: var(--text); border-color: var(--text); }
.help-btn[aria-expanded="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.page { max-width: 868px; margin: 0 auto; padding: 24px 24px 48px; }
.page > h1 { font-size: 22px; margin: 4px 0 16px; }

.loading { padding: 48px 16px; text-align: center; color: var(--muted); }

/* ---------- forms ---------- */

.field-label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }

.input, .textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
}
.input { min-height: 40px; }
.input:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus-visible, .textarea:focus-visible, .input:focus, .textarea:focus { border-color: var(--accent); box-shadow: var(--focus); }
.textarea { resize: vertical; display: block; line-height: 1.45; }
.textarea.autogrow { resize: none; overflow: hidden; min-height: 40px; }
.textarea.mono { font-family: var(--mono); font-size: 14px; }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 0.8; }
[aria-invalid="true"].input, [aria-invalid="true"].textarea { border-color: var(--err); }

.small-note { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.error-text { color: var(--err); font-weight: 700; font-size: 13px; margin: 6px 0 0; }
.join-form .btn-block { margin-top: 18px; }
.join-foot { font-size: 13px; color: var(--muted); margin: 20px 0 0; }

/* ---------- personal link ---------- */

.link-box {
  display: flex; gap: 8px; align-items: center;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 7px;
  padding: 5px 5px 5px 12px;
  margin: 4px 0 14px;
}
.link-box input {
  flex: 1; min-width: 0;
  border: 0; background: transparent; color: var(--text);
  font-family: var(--mono); font-weight: 700; font-size: 14px;
  padding: 6px 0;
  text-overflow: ellipsis;
}
.link-box input:focus-visible { box-shadow: none; outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.warn-line { color: var(--warn-text); font-weight: 700; font-size: 14px; margin: 0 0 24px; }
.copy-status { font-size: 13px; color: var(--muted); min-height: 1.3em; margin: -8px 0 10px; }

/* ---------- task list ---------- */

.task-list {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 14px;
  grid-template-columns: minmax(0, 1fr) 200px auto;
}
/* subgrid: bars and buttons line up across tasks, whatever the button text */
.task-item {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
  gap: 12px 32px;
  padding: 18px 20px;
}
.task-item h2 { font-size: 16px; margin-bottom: 4px; }
.task-item h2 a { color: var(--text); text-decoration: none; }
.task-item h2 a:hover { text-decoration: underline; }
.task-sub { color: var(--muted); font-size: 14px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-sub p, .task-sub ul { display: inline; margin: 0; }
.task-item .btn { min-width: 110px; }
.list-foot { color: var(--muted); font-size: 13px; margin-top: 16px; }

.progress { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.bar { height: 8px; background: var(--track); border-radius: 4px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.finished { color: var(--ok-text); font-weight: 700; }

/* ---------- instructions page ---------- */

.back-link { font-weight: 700; text-decoration: none; display: inline-block; margin-bottom: 8px; }
.inline-progress { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.inline-progress .bar { width: 200px; }
.instr-card { padding: 18px 24px 22px; }
.instr-card h2 { font-size: 17px; margin-bottom: 12px; }
.start-row { display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; margin-top: 20px; }
.start-row .btn { min-width: 220px; }
.start-row p { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- markdown ---------- */

.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 0.9em; }
.md ul, .md ol { margin: 0 0 0.9em; padding-left: 1.4em; }
.md li { margin: 0.1em 0; }
.md code { font-family: var(--mono); font-size: 0.92em; background: var(--kbd-bg); border-radius: 4px; padding: 0.05em 0.3em; }
.md h3 { font-size: 1em; margin: 0 0 0.4em; }

/* ---------- label view ---------- */

.label-bar { padding: 8px 20px; position: sticky; top: 0; z-index: 25; }
.label-bar .left { display: flex; align-items: center; gap: 8px 24px; min-width: 0; flex: 1 1 260px; }
.label-bar .back-link { white-space: nowrap; flex: 0 0 auto; }
.label-bar .task-title { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.label-bar .counter { display: grid; gap: 4px; font-size: 13px; color: var(--muted); flex: 0 0 auto; min-width: 140px; }
.label-bar .counter .bar { height: 6px; width: 130px; }
.label-bar .right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.label-bar .btn { min-height: 32px; padding: 0.25em 0.75em; font-size: 14px; }
.label-bar .btn[aria-expanded="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.label-main { max-width: 868px; margin: 0 auto; padding: 18px 24px 40px; transition: margin 0.15s ease; }
@media (min-width: 1240px) {
  .with-sidebar .label-main { margin-right: 400px; margin-left: max(0px, calc((100vw - 400px - 868px) / 2)); }
}

.banner {
  border-radius: 7px; padding: 9px 14px; margin-bottom: 14px;
  font-weight: 700; font-size: 14px;
}
.banner-ok { background: var(--ok-bg); border: 1px solid var(--ok-border); color: var(--ok-text); }
.banner-warn { background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text); }
.banner-err { background: var(--err-bg); border: 1px solid var(--err-border); color: var(--err); }
.banner-err ul { margin: 4px 0 0; padding-left: 1.2em; font-weight: 400; }
.banner-info { background: var(--info-bg); border: 1px solid var(--info-border); color: var(--text); font-weight: 400; }
.extra-bar { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; justify-content: space-between; padding: 6px 8px 6px 14px; }
.extra-bar .btn { min-height: 28px; }
.goal-notice { font-weight: 400; margin-bottom: 18px; }

.player { display: flex; align-items: center; gap: 18px; padding: 18px 16px 18px 20px; margin-bottom: 14px; }
.play-btn {
  flex: 0 0 auto;
  width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--accent); color: var(--accent-text);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.play-btn:hover { background: var(--accent-hover); }
.play-btn svg { width: 20px; height: 20px; fill: currentColor; }
.player .track { flex: 1; min-width: 0; display: grid; gap: 6px; }
.player .time { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.player .skip-btns { display: flex; gap: 6px; flex: 0 0 auto; }
.player .skip-btns .btn { min-height: 32px; padding: 0.2em 0.65em; font-size: 14px; }
.player .audio-error { color: var(--err); font-size: 13px; font-weight: 700; }

.wave { display: block; width: 100%; height: 56px; cursor: pointer; border-radius: 6px; background: var(--surface-2); }
.wave:focus-visible { outline: none; box-shadow: var(--focus); }

.orig-box {
  background: var(--warn-bg); border: 1px solid var(--warn-border);
  border-radius: 7px; padding: 8px 14px 10px; margin-bottom: 14px;
}
.orig-box .cap { font-size: 12px; font-weight: 700; color: var(--warn-text); margin-bottom: 2px; }
.orig-box .txt { white-space: pre-wrap; overflow-wrap: anywhere; }

.hint-box {
  background: var(--info-bg); border: 1px solid var(--info-border);
  border-radius: 7px; padding: 8px 14px 10px; margin-bottom: 14px;
}
.hint-box .cap { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 2px; }

.lfield { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.lfield > legend, .lfield > .lhead { padding: 0; margin-bottom: 8px; font-weight: 700; display: block; width: 100%; }
.lhead label { font-weight: 700; }
.req { color: var(--err); margin-left: 4px; }
.help-inline { font-weight: 400; font-size: 13px; color: var(--muted); margin-left: 10px; }
.help-block { font-weight: 400; font-size: 13px; color: var(--muted); margin: -2px 0 8px; }
.help-inline p, .help-inline ul { display: inline; margin: 0; }

.options { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; }
.options.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 24px; }
.opt { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; min-height: 30px; }
.opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; flex: 0 0 auto; }
.opt input:focus-visible { box-shadow: var(--focus); border-radius: 3px; }
.opt-removed { color: var(--muted); }
.opt input:disabled { cursor: not-allowed; }

kbd, .kbd {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 6px;
  min-width: 20px;
  text-align: center;
  color: var(--muted);
  background: var(--kbd-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.field-error { color: var(--err); font-size: 13px; font-weight: 700; margin: 6px 0 0; }
.field-warn { color: var(--warn-text); font-size: 13px; font-weight: 700; margin: 6px 0 0; }
.textarea.has-err { border-color: var(--err); }
.textarea.has-warn { border-color: var(--warn-border); background: var(--warn-bg); }
.warn-hint { color: var(--warn-text); font-size: 13px; font-weight: 700; margin: 8px 0 0; text-align: right; }
.warn-hint[hidden] { display: none; }

.actions {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 16px; margin-top: 6px;
}
.actions .spacer { flex: 1; }
.actions .btn { min-width: 84px; }
.actions .btn-primary { min-width: 160px; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }

/* ---- notes on clips, skip dialog, feedback on the tool, icon ---- */
.app-icon { display: block; flex: 0 0 auto; border-radius: 22%; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.topbar .brand-link { display: inline-flex; align-items: center; gap: 8px; }
.btn-quiet { border-color: transparent; background: transparent; color: var(--muted); font-weight: 400; }
.btn-quiet:hover { border-color: transparent; color: var(--text); text-decoration: underline; }
.btn-quiet[aria-expanded="true"] { color: var(--accent); }
.actions .btn-quiet { min-width: 0; }
.side-panel { padding: 14px 18px 16px; margin: 4px 0 14px; border-color: var(--border-strong); }
.side-panel .muted { font-size: 13px; margin: 0 0 10px; }
.side-panel .textarea { min-height: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.panel-head h2 { font-size: 16px; }
.panel-btns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.panel-keys { font-size: 12px; color: var(--muted); margin-left: auto; }
.note-field .help-block { font-size: 13px; margin: -4px 0 6px; }
.note-field .textarea { min-height: 0; }
.label-nav { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--border); }
.lnav-head { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; margin-bottom: 8px; font-size: 13px; }
.lnav-head .spacer { flex: 1; }
.lnav-title { font-weight: 700; }
.lnav-keys { display: inline-flex; gap: 10px; flex-wrap: wrap; color: var(--muted); }
.lnav-key { display: inline-flex; align-items: center; gap: 5px; }
.lnav-key::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--st-color); }
.lnav-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.lnav-btn {
  min-width: 34px; height: 30px; padding: 0 6px; border-radius: 6px; border: 2px solid transparent;
  background: var(--st-color); color: #fff; font: inherit; font-size: 13px; font-weight: 700;
  font-variant-numeric: tabular-nums; cursor: pointer;
}
.lnav-btn:hover { filter: brightness(1.08); }
.lnav-btn:disabled { cursor: default; opacity: 0.6; }
.lnav-btn[aria-current="true"] { border-color: var(--text); box-shadow: 0 0 0 2px var(--surface) inset; }
.lnav-gap { align-self: center; color: var(--muted); }
.st-unchanged, .st-labeled { --st-color: var(--st-unchanged); }
.st-corrected { --st-color: var(--st-corrected); }
.st-skipped { --st-color: var(--st-skipped); }
.chips { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 12px; }
.chip, .chip-opt {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 12px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface);
  color: var(--text); font: inherit; font-size: 14px; cursor: pointer;
}
.chip:hover, .chip-opt:hover { border-color: var(--accent); }
.chip[aria-checked="true"], .chip-opt:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 700; }
.chip-opt input { margin: 0; accent-color: var(--accent); }
.skip-dialog .field-label { margin-top: 4px; }
.skip-dialog .field-warn { margin-top: 10px; }
.fb-btn[aria-expanded="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.topbar .fb-btn { min-height: 30px; }
.fb-form .field-label { margin-top: 12px; }
.fb-ctx { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; color: var(--muted); display: grid; gap: 2px; }
.fb-ctx .cap { font-weight: 700; color: var(--text); font-size: 12px; }
.fb-ua { font-size: 11px; overflow-wrap: anywhere; }
.fb-btns { display: flex; gap: 10px; margin-top: 16px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
  background: var(--ok-bg); color: var(--ok-text); border: 1px solid var(--ok-border);
  border-radius: 8px; padding: 10px 18px; font-weight: 700; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px);
}
.tester-note { padding: 16px 20px; margin-bottom: 16px; border-color: var(--info-border); background: var(--info-bg); }
.tester-note h2 { font-size: 16px; margin-bottom: 6px; }
.tester-note p { margin: 0 0 12px; }
.ask-feedback { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); }
.ask-feedback h2 { font-size: 16px; margin-bottom: 4px; }
.done-card .ask-feedback p { margin: 0 0 12px; }

/* ---------- sidebar ---------- */

.sidebar {
  position: fixed; top: var(--bar-h, 0px); right: 0; bottom: 0;
  width: min(400px, 100vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 20;
  display: flex; flex-direction: column;
}
.sidebar[hidden] { display: none; }
.sidebar .sb-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 8px 24px; }
.sidebar h2 { font-size: 18px; }
.sidebar .sb-body { padding: 4px 24px 24px; overflow-y: auto; }
.sb-tabs { display: flex; gap: 4px; }
.sb-tab {
  border: 0; background: none; cursor: pointer; font: inherit; font-size: 16px; font-weight: 700;
  color: var(--muted); padding: 6px 10px; border-bottom: 2px solid transparent;
}
.sb-tab:hover { color: var(--text); }
.sb-tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.help-panel { top: 0; z-index: 40; }
.help-backdrop { inset: 0; z-index: 39; }
@media (min-width: 1240px) {
  .backdrop.help-backdrop { display: block; background: transparent; }
}
.help-sec { margin: 0 0 16px; font-size: 14px; }
.help-sec h3 { font-size: 15px; margin: 0 0 4px; }
.help-sec .md p { margin: 0 0 0.4em; }
.help-foot { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; font-size: 14px; }
.help-foot .small-note { margin-top: 6px; }

/* ---------- info tips (admin forms) ---------- */

.info-tip { position: relative; display: inline-flex; vertical-align: middle; margin-left: 6px; }
.info-btn {
  width: 18px; height: 18px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid var(--accent); background: var(--surface); color: var(--accent);
  font: italic 700 12px/1 Georgia, serif; display: inline-flex; align-items: center; justify-content: center;
}
.info-btn[aria-expanded="true"] { background: var(--accent); color: var(--accent-text); }
.info-pop {
  position: absolute; top: 24px; left: -8px; z-index: 45; width: min(300px, 80vw);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px;
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.18); padding: 10px 12px;
  font-size: 13px; font-weight: 400; color: var(--text); text-align: left; white-space: normal;
}
.info-pop[hidden] { display: none; }

/* ---------- intro tour ---------- */

.tour-root { position: fixed; inset: 0; z-index: 60; }
.tour-shade { position: fixed; inset: 0; }
.tour-ring {
  position: fixed; border-radius: 10px; border: 2px solid var(--accent);
  box-shadow: 0 0 0 9999px var(--backdrop); pointer-events: none; transition: all 0.15s ease;
}
.tour-card { position: fixed; width: min(360px, calc(100vw - 16px)); padding: 16px 18px 14px; z-index: 61; }
.tour-card h2 { font-size: 16px; margin: 2px 0 6px; }
.tour-card p { margin: 0 0 4px; font-size: 14px; }
.tour-step { font-size: 12px; color: var(--muted); font-weight: 700; }
.tour-btns { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.tour-btns .spacer { flex: 1; }
@media (max-width: 639px) {
  .tour-card { left: 8px; right: 8px; bottom: 8px; top: auto; width: auto; }
}

/* ---------- account ---------- */

.account-page { max-width: 640px; }
.account-card { padding: 18px 22px 20px; margin-bottom: 14px; }
.account-card h2 { font-size: 16px; margin-bottom: 4px; }
.account-card > p.muted { margin: 0 0 12px; font-size: 14px; }
.account-card .warn-line { margin: 0 0 4px; }
.account-row { display: flex; gap: 8px; flex-wrap: wrap; }
.account-row .input { flex: 1 1 220px; min-width: 0; }
.icon-btn {
  border: 0; background: none; color: var(--muted); cursor: pointer;
  width: 34px; height: 34px; border-radius: 6px; font-size: 22px; line-height: 1;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.backdrop { position: fixed; inset: var(--bar-h, 0px) 0 0 0; background: var(--backdrop); z-index: 15; }
.backdrop[hidden] { display: none; }

@media (min-width: 1240px) {
  .backdrop { display: none; }
}

/* ---------- done page ---------- */

.done-card { text-align: center; padding: 28px 32px 28px; }
.done-icon {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 12px;
  background: var(--ok-bg); border: 1px solid var(--ok-border); color: var(--ok-text);
  display: flex; align-items: center; justify-content: center;
}
.done-icon svg { width: 24px; height: 24px; }
.done-card h1 { margin-bottom: 8px; }
.done-card p { margin: 0; color: var(--muted); }
.done-btns { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.done-btns .btn { min-width: 170px; }

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .topbar { padding: 8px 16px; }
  .page { padding: 18px 16px 40px; }
  .label-main { padding: 14px 16px 32px; }
  .narrow-card, .wide-card { padding: 22px 18px 20px; }
  .task-list { grid-template-columns: minmax(0, 1fr); }
  .task-item { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; }
  .task-item .btn { width: 100%; }
  .task-sub { white-space: normal; }
  .label-bar { padding: 8px 12px; position: static; }
  .sidebar { top: 0; z-index: 30; }
  .backdrop { inset: 0; z-index: 28; }
  .label-bar .left { flex-basis: 100%; gap: 12px; }
  .label-bar .task-title { white-space: normal; overflow-wrap: anywhere; }
  .label-bar .counter { min-width: 0; }
  .label-bar .counter .bar { width: 100px; }
  .label-bar .right { flex: 1 1 0; min-width: 0; }
  .player { flex-wrap: wrap; gap: 12px 14px; padding: 14px; }
  .player .track { flex-basis: calc(100% - 64px); }
  .player .skip-btns { margin-left: 60px; }
  .actions .spacer { display: none; }
  .actions .btn-primary { order: -1; flex-basis: 100%; }
  .actions .btn:not(.btn-primary) { flex: 1; }
  .legend { display: none; }
  .inline-progress .bar { width: 120px; }
  .start-row .btn { width: 100%; }
}

@media (hover: none) {
  .legend { display: none; }
}

/* ---------- admin area ---------- */

.area-seg a {
  display: inline-flex; align-items: center;
  height: 26px; padding: 0 10px; border-radius: 4px;
  font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none;
}
.area-seg a:hover { color: var(--text); }
.area-seg a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }

.admin-tabs {
  display: flex; gap: 28px; padding: 0 24px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.admin-tab {
  padding: 10px 2px 9px; font-weight: 600; color: var(--muted); text-decoration: none;
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.admin-tab:hover { color: var(--text); }
.admin-tab[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }

.admin-page { max-width: 1040px; }
.admin-page h1 { font-size: 22px; margin: 4px 0 0; overflow-wrap: anywhere; }
.admin-page h2 { font-size: 16px; }
.page-head { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; margin: 0 0 16px; }
.page-head .spacer, .section-head .spacer, .label-line .spacer { flex: 1; }
.page-head .grow, .grow { flex: 1 1 auto; min-width: 0; }
.sub { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.section-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 24px 0 10px; }
.section-head select { width: auto; min-width: 180px; }
.section-title { margin: 24px 0 10px; }
.small { font-size: 13px; }
.empty { padding: 16px 20px; color: var(--muted); }
.strong-link { font-weight: 700; color: var(--text); text-decoration: none; }
.strong-link:hover { text-decoration: underline; color: var(--text); }

.admin-card { padding: 16px 22px 18px; margin-bottom: 14px; }
.admin-card h2 { margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.admin-card .inline-progress { margin-bottom: 6px; }
.admin-card .inline-progress .bar { width: min(420px, 50vw); height: 10px; }
.admin-card p { margin: 0; }

.badge {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; line-height: 1.6; vertical-align: middle; white-space: nowrap;
}
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge-ok { background: var(--ok-bg); color: var(--ok-text); }
.badge-muted { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.badge-err { background: var(--err-bg); color: var(--err); }

.btn-danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); color: #fff; border-color: var(--err); }
.btn-danger-outline { color: var(--err); border-color: var(--err-border); }
.btn-danger-outline:hover { color: var(--err); border-color: var(--err); }

.table-wrap { position: relative; overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 12px; font-weight: 700; color: var(--muted);
  background: var(--surface-2); padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: 8px 12px; border-top: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:first-child td { border-top: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: var(--surface-2); }
.table tr.row-deleted td { color: var(--muted); }
.table input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
.cell-progress { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 13px; color: var(--muted); }
.cell-progress .bar { width: 90px; flex: 0 0 auto; }
.row-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.values-cell { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.table .mono, .table .nowrap { white-space: nowrap; }
.btn-small.btn { min-height: 30px; padding: 0.2em 0.75em; font-size: 13px; }

.check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }

.form-row { margin: 0 0 18px; }
.label-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.label-line .field-label { margin: 0; }
.inline-field { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.inline-field .input { flex: 0 1 360px; }
.input.narrow { flex: 0 0 auto; width: auto; min-width: 120px; }
select.input { padding-right: 28px; }
.link-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.link-row .input { flex: 1 1 260px; min-width: 0; }
.button-row { display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.button-row.left { justify-content: flex-start; margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 140px 1fr; gap: 14px 16px; align-items: center; }
.form-grid .field-label { margin: 0; }
.form-grid .small-note { margin-top: 4px; }
.banner { margin-bottom: 14px; }

.switch { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; border-radius: 11px; background: var(--track); position: relative; cursor: pointer; margin: 0; flex: 0 0 auto; transition: background 0.15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left 0.15s; }
.switch:checked { background: var(--accent); }
.switch:checked::after { left: 19px; }
.switch:disabled { opacity: 0.5; cursor: not-allowed; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 110px; padding: 18px; margin: 16px 0 18px; text-align: center;
  border: 1.5px dashed var(--border-strong); border-radius: 10px; background: var(--surface-2); cursor: pointer;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.upload-progress { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.upload-progress .bar { width: 300px; max-width: 50vw; }
.result-box { border-radius: 8px; padding: 14px 18px; margin: 0 0 14px; }
.result-box p { margin: 4px 0; }
.result-box.ok { background: var(--ok-bg); border: 1px solid var(--ok-border); }
.result-box.ok .result-title { color: var(--ok-text); font-weight: 700; }
.result-box.err { background: var(--err-bg); border: 1px solid var(--err-border); }
.result-box.err .result-title { color: var(--err); font-weight: 700; }
.issue-list { margin: 6px 0; padding-left: 1.2em; font-size: 13px; overflow-wrap: anywhere; }
.warn-text { color: var(--warn-text); font-size: 14px; }
.created-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; }
.created-box .input { flex: 1 1 260px; min-width: 0; }

.new-user-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.new-user-row h2 { margin: 0 8px 0 0; }
.new-user-row .input { width: auto; flex: 1 1 160px; min-width: 0; }
.new-user-row .input.narrow { flex: 0 0 auto; }
.new-user .small-note { margin: 6px 0 0; }

.download-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.download-card h2 { margin-bottom: 4px; }

.modal-backdrop { position: fixed; inset: 0; background: var(--backdrop); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { width: 100%; max-width: 500px; padding: 22px 26px 20px; }
.modal h2 { font-size: 18px; margin-bottom: 10px; }
.modal p { margin: 0 0 18px; line-height: 1.55; }
.modal-btns { display: flex; justify-content: flex-end; gap: 10px; }

@media (max-width: 760px) {
  .admin-tabs { padding: 0 16px; gap: 0 18px; flex-wrap: wrap; }
  .form-grid { grid-template-columns: 1fr; gap: 6px; }
  .form-grid > .field-label { margin-top: 10px; }
  .admin-card .inline-progress .bar { width: 120px; }
}

/* ---- admin: restore, tester, unusable ---- */
.bar.bar-states { display: flex; }
.bar.bar-states > span { border-radius: 0; flex: 0 0 auto; }
.bar.bar-states > .bar-done { background: var(--accent); }
.bar.bar-states > .bar-started { background: var(--accent); opacity: 0.35; }
.bar.bar-states > .bar-unusable { background: var(--err); opacity: 0.75; }
.admin-card > .bar.bar-states { width: 100%; height: 10px; margin: 4px 0 10px; }
.progress-states { margin: 0 0 4px; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.user-pop {
  position: fixed; z-index: 45; min-width: 220px; max-width: min(360px, 90vw);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px;
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.18); padding: 8px 12px;
  display: grid; gap: 6px; font-size: 13px; color: var(--text); pointer-events: none;
}
.user-pop-row { display: grid; grid-template-columns: minmax(0, 1fr) 70px auto; align-items: center; gap: 10px; white-space: nowrap; }
.user-pop-name { overflow: hidden; text-overflow: ellipsis; }
.unusable-note { color: var(--err); }
.restore-box { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--err-bg); border: 1px solid var(--err-border); border-radius: 8px; padding: 14px 18px; margin: 0 0 16px; }
.restore-box p { margin: 0; font-size: 14px; line-height: 1.5; }
.restore-box .restore-title { color: var(--err); font-weight: 700; margin-bottom: 2px; }
.badge-tester { background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-border); }
.uid-line { font-size: 12px; color: var(--muted); margin-top: 2px; }
.uid-value { user-select: all; -webkit-user-select: all; }
.card-disabled { opacity: 0.75; }
.btn-with-tip { display: inline-flex; align-items: center; }
.input.num-input { width: 90px; }
.new-user-row .check { flex: 0 0 auto; }

/* ---------- admin: feedback, labels per clip, phone tables ---------- */

.table tr.row-done td { color: var(--muted); }
.table tr.row-sample td { background: var(--surface-2); font-size: 13px; }
.table tr.row-sample td.sample-head { padding-top: 10px; }
.table tr.row-label td:first-child, .table tr.row-label td:nth-child(2) { white-space: nowrap; }
.table td.answers { overflow-wrap: anywhere; font-size: 13px; }
.answers .ans-line { margin: 1px 0; }
.answers .ans-key { color: var(--muted); }
.answers details summary { cursor: pointer; color: var(--muted); }
.answers .note-line { font-style: italic; color: var(--muted); white-space: pre-wrap; }
.prefill-text { font-family: var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
ins.diff { text-decoration: none; color: var(--diff-ins); background: var(--diff-ins-bg); border-radius: 3px; padding: 0 2px; }
del.diff { color: var(--diff-del); background: var(--diff-del-bg); border-radius: 3px; padding: 0 2px; }
.diff-text { font-family: var(--mono); white-space: pre-wrap; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; }
.filter-row .spacer { flex: 1; }
.fb-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.fb-short { overflow-wrap: anywhere; }
.fb-detail { font-size: 13px; }
.fb-detail dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 8px 0 0; }
.fb-detail dt { color: var(--muted); }
.fb-detail dd { margin: 0; overflow-wrap: anywhere; }
.admin-tab .tab-count { margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--accent); }
.field-warn.lps-warn { margin: 6px 0 0; }
.phone-only { display: none; }
@media (max-width: 599px) {
  .table .aux { display: none; }
  .phone-only { display: block; }
  .table td.fb-short, .table td.fb-text { min-width: 12ch; }
  .cell-progress { flex-wrap: wrap; gap: 4px 10px; white-space: normal; }
  .table tr.row-label td:nth-child(2) { white-space: normal; overflow-wrap: anywhere; }
  .answers .badge { white-space: normal; }
  .table td.answers { padding-left: 6px; }
}
.filter-row .input { width: auto; max-width: 100%; }
.page-head .input { width: auto; max-width: 100%; }
.btn-skip { background: var(--skip-bg); border-color: var(--skip-bg); color: var(--skip-text); }
.btn-skip:hover { background: var(--skip-hover); border-color: var(--skip-hover); color: var(--skip-text); }
.skip-dialog .panel-btns .panel-keys { margin-left: auto; }
.actions[hidden] { display: none; }
@media (max-width: 760px) {
  .skip-dialog .panel-btns .btn-skip { order: -1; flex-basis: 100%; }
  .skip-dialog .panel-btns .panel-keys { display: none; }
}

/* ---------- admin: edit fields, check changes, rewrites ---------- */

.fe-card { padding: 14px 18px 6px; margin: 0 0 12px; }
.fe-card.fe-removed { border-style: dashed; background: var(--surface-2); box-shadow: none; padding-bottom: 14px; }
.fe-head { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin-bottom: 10px; }
.fe-removed .fe-head { margin-bottom: 0; }
.fe-head .spacer { flex: 1 1 auto; }
.fe-head > .btn { margin-left: auto; }
.fe-flags { display: inline-flex; gap: 6px 14px; flex-wrap: wrap; }
.fe-new-row { display: flex; gap: 0 18px; flex-wrap: wrap; }
.fe-new-row .form-row { flex: 1 1 220px; }
.form-row.compact { margin: 0 0 12px; }
.fe-opt { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.fe-opt .grow { flex: 1 1 0; min-width: 0; }
.fe-opt .input.grow { width: auto; }
.fe-opt-value { flex: 0 0 11.5em; overflow-wrap: anywhere; font-size: 13px; }
input.fe-opt-value { width: 11.5em; }
.fe-opt-removed { color: var(--muted); font-size: 14px; }
.check input:disabled { cursor: not-allowed; }
.radio-block { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; cursor: pointer; }
.radio-block input[type="radio"] { margin-top: 4px; accent-color: var(--accent); }
.radio-block select { display: inline-block; width: auto; max-width: 100%; margin: 4px 0 0; }
.small-note.block { display: block; margin-top: 2px; }
.modal-body { margin: 0 0 14px; }
.change-list { list-style: none; margin: 0 0 14px; padding: 6px 18px; }
.change-item { padding: 8px 0; border-bottom: 1px solid var(--border); }
.change-item:last-child { border-bottom: 0; }
.change-kind { display: inline-block; min-width: 13em; font-weight: 700; margin-right: 8px; }
.issue-list { margin: 0 0 14px; padding-left: 1.2em; font-size: 14px; }
.issue-list li { margin: 3px 0; overflow-wrap: anywhere; }
.issues-err { color: var(--err); }
.issues-warn { color: var(--warn-text); }
.ans-removed { color: var(--muted); }
@media (max-width: 599px) {
  .fe-opt { flex-wrap: wrap; }
  .fe-opt-value, input.fe-opt-value { flex: 1 1 100%; width: 100%; }
  .change-kind { display: block; min-width: 0; }
}
