/* Stream Archive UI. Quiet, dense work tool. Colors are tokens so both themes stay in sync. */
:root {
  color-scheme: light dark;
  --bg: #f4f4f2;
  --surface: #ffffff;
  --surface-2: #eeeeeb;
  --text: #1b1c1e;
  --muted: #55585f;
  --line: #d4d4cf;
  --line-strong: #8a8d93;
  --accent: #0a58c2;
  --accent-text: #ffffff;
  --focus: #0a58c2;
  --warn-bg: #fff0c9;
  --warn-text: #5f3c00;
  --lock-bg: #f8e0dd;
  --lock-text: #861a10;
  --lock-solid: #b3261e;
  --ok-bg: #dcf0e0;
  --ok-text: #14522a;
  --info-bg: #dde9f8;
  --info-text: #123f7a;
  --hatch: #33353a;
  --idle: #a3a7ad;
  --shadow: 0 4px 16px rgb(0 0 0 / 0.16);
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic",
    "Noto Sans KR", "Noto Sans CJK KR", "Nanum Gothic", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131416;
    --surface: #1c1e21;
    --surface-2: #26282c;
    --text: #e9e9e6;
    --muted: #a9acb2;
    --line: #34373c;
    --line-strong: #7b7f86;
    --accent: #7ab6ff;
    --accent-text: #0b1420;
    --focus: #8fc2ff;
    --warn-bg: #3f2f09;
    --warn-text: #ffd67f;
    --lock-bg: #45201c;
    --lock-text: #ffb8af;
    --lock-solid: #ff8a7f;
    --ok-bg: #173a22;
    --ok-text: #9fe2b3;
    --info-bg: #182d4a;
    --info-text: #a9cdfb;
    --hatch: #d7d9dc;
    --shadow: 0 4px 16px rgb(0 0 0 / 0.5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--font);
  font-variant-numeric: tabular-nums;
  word-break: keep-all;
  overflow-wrap: anywhere;
  padding-bottom: 76px;
}
body.no-shell { padding-bottom: 0; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
a { color: var(--accent); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
main:focus { outline: none; }

.skip-link { position: absolute; left: 8px; top: -48px; z-index: 30; padding: 8px 12px; background: var(--surface); }
.skip-link:focus { top: 8px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.page-status { padding: 24px 16px; color: var(--muted); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  height: 48px; padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; }
.nav a {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 10px; border-radius: 6px;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--surface-2); font-weight: 700; }
.nav-count {
  display: inline-block; min-width: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--accent); color: var(--accent-text); font-size: 12px; line-height: 20px; text-align: center;
}

/* Controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 34px; padding: 4px 12px;
  border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--surface); color: var(--text);
  font: inherit; line-height: 1.3; cursor: pointer; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--surface-2); }
.btn:disabled { cursor: not-allowed; background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 700; }
.btn-primary:hover { background: var(--accent); filter: brightness(1.1); }
.btn-primary:disabled { filter: none; }
.btn-quiet { border-color: transparent; background: transparent; }
.btn-warn { background: var(--warn-bg); color: var(--warn-text); border-color: var(--warn-text); font-weight: 700; }
.btn-warn:hover { background: var(--warn-bg); filter: brightness(0.97); }

input[type="text"], input[type="search"], input[type="password"], input[type="date"], textarea {
  width: 100%; min-width: 0; min-height: 34px; padding: 4px 8px;
  border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--surface); color: var(--text); font: inherit;
}
textarea { display: block; resize: none; overflow: hidden; }
::placeholder { color: var(--muted); opacity: 1; }
input:disabled, textarea:disabled { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }
.field { display: grid; gap: 3px; min-width: 0; }
.field > label, .field-label { font-size: 12.5px; color: var(--muted); }
.field-error { color: var(--lock-text); font-size: 12.5px; }

/* Badges and chips */
.badge {
  display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 4px;
  font-size: 12.5px; font-weight: 700; line-height: 20px; white-space: nowrap;
  background: var(--surface-2); color: var(--text);
}
.badge-warn { background: var(--warn-bg); color: var(--warn-text); }
.badge-lock { background: var(--lock-bg); color: var(--lock-text); }
.badge-ok { background: var(--ok-bg); color: var(--ok-text); }
.badge-info { background: var(--info-bg); color: var(--info-text); }
.chip {
  display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 4px;
  background: var(--chip, var(--idle)); color: #0b0b0b;
  font-size: 12.5px; font-weight: 700; line-height: 20px;
}

.notice { padding: 8px 10px; border-radius: 6px; }
.notice-lock { background: var(--lock-bg); color: var(--lock-text); }
.notice-warn { background: var(--warn-bg); color: var(--warn-text); }
.notice-info { background: var(--info-bg); color: var(--info-text); }
.notice-ok { background: var(--ok-bg); color: var(--ok-text); }

/* Day list layout */
.main { max-width: 1680px; margin: 0 auto; }
.days-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); align-items: start; }
.list-pane {
  position: sticky; top: 48px;
  max-height: calc(100vh - 48px - 60px);
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line);
}
.filter { display: grid; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.filter-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.filter-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.day-list { overflow-y: auto; flex: 1; min-height: 0; }
.day-row {
  display: block; padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text); text-decoration: none;
}
.day-row:hover { background: var(--surface-2); }
.day-row[aria-current="true"] { background: var(--surface); box-shadow: inset 0 0 0 2px var(--accent); }
.day-row:focus-visible { outline-offset: -3px; }
.day-row-head { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.day-row-games { display: grid; gap: 2px; margin-top: 4px; }
.day-game { display: flex; align-items: center; gap: 6px; font-size: 12.5px; min-width: 0; }
.day-game .name { flex: 1; min-width: 0; }
.day-game .time { color: var(--muted); }
.swatch { width: 10px; height: 10px; border-radius: 2px; background: var(--chip, var(--idle)); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.6); flex: none; }
.day-row-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }

.day-pane { padding: 16px; min-width: 0; display: grid; gap: 16px; }
.day-head { display: grid; gap: 8px; }
.day-head h1 { font-size: 19px; line-height: 1.3; }
.back-link { display: none; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.legend-item { display: inline-flex; align-items: center; gap: 5px; }
.legend-swatch { width: 18px; height: 10px; border-radius: 2px; background: var(--chip, var(--idle)); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.6); }
.legend-swatch.is-cut { background: repeating-linear-gradient(135deg, var(--hatch) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--hatch); }
.legend-swatch.is-lock { background: var(--lock-solid); box-shadow: none; }
.legend-swatch.is-chapter { width: 2px; height: 14px; background: var(--text); box-shadow: none; }
.legend-swatch.is-review { background: var(--surface); box-shadow: none; outline: 2px dashed var(--warn-text); outline-offset: -2px; }

/* Recording */
.rec { display: grid; gap: 12px; min-width: 0; }
.rec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.rec-head h2 { font-size: 15px; }
.rec-panel { padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 8px; }

/* Timeline */
.tl { position: relative; display: grid; gap: 2px; min-width: 0; }
.tl-chapters { position: relative; height: 20px; }
.tl-chapter {
  position: absolute; bottom: 0; height: 20px; padding-left: 4px;
  border-left: 2px solid var(--text);
  font-size: 12px; line-height: 16px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tl-bar { position: relative; height: 30px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.tl-seg {
  position: absolute; top: 0; bottom: 0;
  padding: 0 4px; border: 0; border-radius: 0;
  background: var(--chip, var(--idle)); color: #0b0b0b;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.6);
  font: 700 12px/30px var(--font); text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
.tl-seg:hover { filter: brightness(1.08); }
.tl-seg:focus-visible { outline: 3px solid #0b0b0b; outline-offset: -3px; box-shadow: inset 0 0 0 5px #fff; }
.tl-seg.is-review::after { content: ""; position: absolute; inset: 2px; border: 2px dashed #0b0b0b; pointer-events: none; }
.tl-lane { position: relative; height: 10px; }
.tl-cut { position: absolute; top: 0; bottom: 0; min-width: 3px; background: repeating-linear-gradient(135deg, var(--hatch) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--hatch); }
.tl-cut.is-restored { background: none; box-shadow: none; outline: 1px dotted var(--line-strong); outline-offset: -1px; }
.tl-lock { position: absolute; top: 1px; bottom: 1px; background: var(--lock-solid); }
.tl-list { display: none; }
.tl-axis { position: relative; height: 18px; font-size: 12px; color: var(--muted); }
.tl-tick { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.tl-tick:first-child { transform: none; }
.tl-tick.is-end { transform: translateX(-100%); }
.chapter-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 16px; margin-top: 6px; }
.chapter-list li { display: flex; gap: 8px; font-size: 12.5px; }
.chapter-list .time { color: var(--muted); }

details > summary { cursor: pointer; min-height: 28px; line-height: 28px; font-size: 13px; color: var(--text); }

/* Group card */
.groups { display: grid; gap: 12px; min-width: 0; }
.group { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; min-width: 0; scroll-margin-top: 60px; }
.group:focus { outline: none; }
.group.is-flash { box-shadow: 0 0 0 2px var(--accent); }
.group.is-checked { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px 0 8px; border: 1px solid var(--line-strong); border-radius: 6px; font-weight: 700; cursor: pointer; }
.check:hover { background: var(--surface-2); }
.check.is-disabled { cursor: not-allowed; background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.group-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; flex: 1 1 280px; min-width: 0; }
.group-title h3 { font-size: 14.5px; }
.group-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.group-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; padding: 12px 12px 0; }
.group-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 12px; align-items: start; }
.group-detail.is-single { grid-template-columns: minmax(0, 1fr); }
.group-col { display: grid; gap: 12px; align-content: start; min-width: 0; }
.group-section { display: grid; gap: 6px; min-width: 0; }
.section-title { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.group-notice { padding: 10px 12px 0; }
.group-compact { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 12px; }

/* Candidates */
.fieldset-plain { margin: 0; padding: 0; border: 0; min-width: 0; }
.fieldset-plain > legend { padding: 0; margin-bottom: 6px; }
.cands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cand { display: grid; gap: 6px; align-content: start; padding: 6px; border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.cand.is-selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cand-pick { display: grid; gap: 6px; cursor: pointer; min-width: 0; }
.cand-pick-head { display: flex; align-items: center; gap: 6px; font-size: 12.5px; min-height: 24px; }
.thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); border-radius: 3px; }
.thumb-empty { display: grid; place-items: center; padding: 4px; font-size: 12px; color: var(--muted); text-align: center; }
.cand-text { display: grid; gap: 2px; min-width: 0; }
.cand-caption { font-weight: 700; }
.cand-title { font-size: 12.5px; color: var(--muted); }
.cand-editor { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 8px; align-items: start; margin-top: 8px; }
.count-hint { font-size: 12px; color: var(--muted); text-align: right; }

/* Frames */
.frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.frame { display: grid; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 4px; background: none; color: var(--text); font: inherit; font-size: 12px; cursor: pointer; text-align: center; min-width: 0; }
.frame:hover { border-color: var(--line-strong); }
.frame:disabled { cursor: default; }
.frame[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); font-weight: 700; }
.frame .thumb { border-radius: 2px; }

/* Cuts and segments */
.rows { display: grid; gap: 4px; }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; padding: 6px 8px; background: var(--surface-2); border-radius: 4px; min-width: 0; }
.row-main { min-width: 0; flex: 1 1 180px; }
.row.is-restored .row-main { color: var(--muted); }
.seg-item { display: grid; gap: 4px; padding: 6px 8px; background: var(--surface-2); border-radius: 4px; min-width: 0; }
.seg-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.seg-line .grow { flex: 1 1 120px; min-width: 0; }
.seg-time, .seg-game { display: block; }
.seg-item .btn { background: var(--surface); }
.seg-item .btn-warn { background: var(--warn-bg); }
.seg-item input:not(:disabled) { background: var(--surface); }
.upload-bar-text .small { line-height: 1.35; }
.edit-panel { display: grid; gap: 10px; padding: 6px 0 4px; }
.edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.edit-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.edit-actions .field { flex: 1 1 120px; }

/* Upload bar */
.upload-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px; padding: 8px 16px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.upload-bar-text { display: grid; min-width: 0; }
.upload-bar-count { font-weight: 700; font-size: 15px; }
.upload-bar .btn { min-height: 44px; padding: 4px 20px; white-space: nowrap; flex: none; }

/* Toasts */
.toasts { position: fixed; left: 16px; right: 16px; bottom: 72px; z-index: 40; display: grid; gap: 6px; justify-items: center; pointer-events: none; }
.no-shell .toasts { bottom: 16px; }
.toast { display: flex; align-items: center; gap: 10px; max-width: 560px; padding: 8px 12px; border-radius: 6px; background: var(--text); color: var(--bg); box-shadow: var(--shadow); pointer-events: auto; }
.toast-error { background: var(--lock-bg); color: var(--lock-text); border: 1px solid var(--lock-text); }
.toast .btn { min-height: 28px; padding: 2px 8px; background: transparent; color: inherit; border-color: currentColor; flex: none; }

/* Dialog */
.dialog {
  width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow);
  overflow: hidden;
}
.dialog[open] { display: flex; flex-direction: column; }
.dialog::backdrop { background: rgb(0 0 0 / 0.55); }
.dialog-head { padding: 14px 16px 10px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.dialog-head h2 { font-size: 16px; }
.dialog-body { padding: 12px 16px; overflow-y: auto; display: grid; gap: 12px; min-height: 0; flex: 1; align-content: start; }
.dialog-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); }
.confirm-list { display: grid; gap: 8px; }
.confirm-item { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 10px; align-items: start; }
.confirm-item h4 { font-size: 14px; }
.confirm-meta { font-size: 12.5px; color: var(--muted); }
.blocked-item { display: grid; gap: 2px; padding: 6px 8px; background: var(--surface-2); border-radius: 4px; }

/* Upload list and settings */
.page { padding: 16px; display: grid; gap: 12px; max-width: 1040px; margin: 0 auto; }
.page h1 { font-size: 19px; }
.job { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.job-main { display: grid; gap: 6px; min-width: 0; }
.job-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; }
.job-head h2 { font-size: 14.5px; flex: 1 1 240px; min-width: 0; }
.job-progress { display: flex; align-items: center; gap: 8px; }
.job-progress progress { flex: 1; min-width: 0; height: 8px; accent-color: var(--accent); }
.job-list { display: grid; gap: 8px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 0 12px; }
.settings-block { display: grid; gap: 10px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.settings-block h2 { font-size: 15px; }
.settings-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.settings-form { display: grid; gap: 8px; max-width: 560px; }
.reconcile { display: grid; gap: 8px; }
.reconcile-form { display: grid; gap: 8px; max-width: 560px; }
.reconcile-form .field > label { color: inherit; }
.reconcile-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-form .btn, .settings-block > .btn { justify-self: start; }

/* Login */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
.login-card { width: min(380px, 100%); display: grid; gap: 12px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.login-card h1 { font-size: 19px; }
.login-card .btn { min-height: 44px; }

/* Narrow candidates and frames in a medium-width card */
@media (max-width: 1180px) {
  .group-body, .group-detail { grid-template-columns: minmax(0, 1fr); }
  .frames { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Phone and small tablet: one pane at a time */
@media (max-width: 820px) {
  body { font-size: 15px; }
  input[type="text"], input[type="search"], input[type="password"], input[type="date"], textarea { font-size: 16px; min-height: 44px; }
  textarea { padding: 9px 8px; }
  .btn { min-height: 44px; }
  .topbar { position: static; gap: 8px; padding: 0 8px; height: 48px; }
  .brand { display: none; }
  .nav a { min-height: 44px; }
  .days-layout { grid-template-columns: minmax(0, 1fr); }
  .list-pane { position: static; max-height: none; border-right: 0; }
  .day-list { overflow: visible; }
  .day-pane { display: none; padding: 12px 16px; }
  .days-layout.has-detail .list-pane { display: none; }
  .days-layout.has-detail .day-pane { display: grid; }
  .back-link { display: inline-flex; justify-self: start; }
  .filter { padding: 12px 16px; }
  .day-row { padding: 12px 16px; }
  .group-head { padding: 10px; }
  .group-body { padding: 10px 10px 0; }
  .group-detail { padding: 10px; }
  .cand-editor { grid-template-columns: minmax(0, 1fr); }
  .tl-seg { font-size: 0; }
  .tl-lane { height: 12px; }
  .tl-list { display: grid; gap: 2px; margin-top: 6px; }
  .tl-list-item { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; width: 100%; min-height: 44px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
  .tl-list-name { flex: 1 1 140px; min-width: 0; font-weight: 700; }
  .tl-list-time { flex: 0 0 100%; padding-left: 18px; }
  .group-notice { padding: 10px 10px 0; }
  .check { min-height: 44px; }
  .cands { grid-template-columns: minmax(0, 1fr); }
  .cand-pick { grid-template-columns: 132px minmax(0, 1fr); column-gap: 10px; }
  .cand-pick-head { grid-column: 1 / -1; }
  .frames { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tl-chapters { height: 10px; }
  .tl-chapter { height: 10px; font-size: 0; padding: 0; }
  .tl-tick.is-even { display: none; }
  .chapter-list { grid-template-columns: minmax(0, 1fr); }
  details > summary { min-height: 44px; line-height: 44px; }
  .page { padding: 12px 16px; }
  .job { grid-template-columns: 96px minmax(0, 1fr); padding: 10px; gap: 8px 10px; }
  .job-main { display: contents; }
  .job-main > * { grid-column: 1 / -1; }
  .job-main > .job-head { grid-column: 2; align-content: start; }
  .confirm-item { grid-template-columns: 96px minmax(0, 1fr); }
  .dialog-foot .btn { flex: 1 1 140px; }
  .settings-form .btn, .settings-block > .btn { justify-self: stretch; }
  .upload-bar { padding: 8px 16px; }
  .notice a, a.badge { display: inline-flex; align-items: center; min-height: 44px; }
}
