:root {
  color-scheme: light;
  --blue-900: #16368f;
  --blue-800: #1e40af;
  --blue-700: #2857cc;
  --blue-100: #e8efff;
  --blue-50: #f4f7ff;
  --ink: #13213a;
  --muted: #667085;
  --line: #dce3ee;
  --surface: #ffffff;
  --canvas: #f5f7fb;
  --green: #16855b;
  --green-soft: #e8f7f0;
  --amber: #b65e00;
  --amber-soft: #fff3dd;
  --red: #c42b3b;
  --red-soft: #ffedef;
  --radius: 12px;
  --shadow: 0 12px 32px rgba(28, 45, 77, .08);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); color: var(--ink); font-size: 16px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button { color: inherit; touch-action: manipulation; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(59, 130, 246, .28); outline-offset: 2px; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.is-hidden { display: none !important; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 9px 12px; border-radius: 8px; background: var(--blue-900); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.muted { color: var(--muted); }
.eyebrow { margin: 0; color: var(--blue-700); font-size: .75rem; font-weight: 760; letter-spacing: .09em; text-transform: uppercase; }

.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 28px 18px; background: #eef3ff; }
.auth-card { width: min(100%, 420px); padding: 30px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.auth-card h1 { margin: 10px 0 6px; font-size: clamp(1.75rem, 7vw, 2.25rem); letter-spacing: -.04em; }
.auth-lead { margin: 0 0 24px; color: var(--muted); }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--blue-800); color: white; }
.brand-mark svg { width: 25px; height: 25px; }
.brand-mark.small { width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto; }
.auth-form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: .875rem; font-weight: 650; }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cfd8e6; border-radius: 9px; background: white; color: var(--ink); }
textarea { min-height: 88px; resize: vertical; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; font-weight: 720; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.button:active { transform: translateY(1px); }
.button.primary { background: var(--blue-800); color: white; }
.button.primary:hover { background: var(--blue-900); }
.button.secondary { background: white; border-color: #b9c9ea; color: var(--blue-800); }
.button.ghost { background: transparent; color: var(--blue-800); }
.button.danger { background: var(--red-soft); color: var(--red); border-color: #f4c8ce; }
.button:disabled { cursor: not-allowed; opacity: .55; }
.button.full { width: 100%; }
.text-button { min-height: 44px; width: 100%; margin-top: 10px; border: 0; background: transparent; color: var(--blue-700); cursor: pointer; font-weight: 650; }
.form-error { min-height: 24px; margin: 8px 0 0; color: var(--red); font-size: .875rem; }

.app-shell { min-height: 100vh; }
.app-header { height: 74px; position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px max(18px, env(safe-area-inset-right)) 10px max(18px, env(safe-area-inset-left)); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.brand-row { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-row h1 { margin: 1px 0 0; font-size: 1.08rem; line-height: 1.2; letter-spacing: -.02em; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.mode-badge { padding: 5px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.mode-badge.demo { background: var(--amber-soft); color: var(--amber); }
.icon-button, .account-button { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }
.account-button { padding: 0 12px; font-size: .875rem; font-weight: 650; }

.workflow-tabs { position: sticky; top: 74px; z-index: 25; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 1120px; margin: 0 auto; padding: 12px 18px; background: rgba(245,247,251,.96); backdrop-filter: blur(10px); }
.workflow-tab { min-height: 64px; display: flex; align-items: center; gap: 10px; padding: 9px 12px; text-align: left; border: 1px solid var(--line); border-radius: 11px; background: white; cursor: pointer; }
.workflow-tab strong, .workflow-tab small { display: block; }
.workflow-tab strong { font-size: .92rem; }
.workflow-tab small { margin-top: 1px; color: var(--muted); font-size: .75rem; }
.workflow-tab.is-active { border-color: #84a6fa; background: var(--blue-50); box-shadow: 0 0 0 1px #bdd0ff inset; }
.workflow-tab.is-active strong { color: var(--blue-800); }
.step-number { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #e8edf5; color: #6a7890; font-weight: 800; }
.workflow-tab.is-active .step-number { background: var(--blue-800); color: white; }

.workspace { width: min(100%, 1120px); margin: 0 auto; padding: 8px 18px calc(110px + env(safe-area-inset-bottom)); }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 10px 0 18px; }
.page-head h2 { margin: 2px 0 4px; font-size: clamp(1.45rem, 4vw, 2rem); letter-spacing: -.035em; }
.page-head p { margin: 0; color: var(--muted); }
.flow-rail { display: flex; align-items: center; gap: 5px; margin: 8px 0 18px; overflow-x: auto; scrollbar-width: none; }
.flow-rail::-webkit-scrollbar { display: none; }
.flow-step { display: flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--muted); font-size: .8rem; font-weight: 650; }
.flow-step::after { content: ""; width: 26px; height: 1px; background: #c9d2e0; }
.flow-step:last-child::after { display: none; }
.flow-step b { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #e5eaf2; font-size: .75rem; }
.flow-step.is-active { color: var(--blue-800); }
.flow-step.is-active b { background: var(--blue-800); color: white; }

.card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 3px 12px rgba(25, 48, 89, .04); }
.card-pad { padding: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h3, .card-head h4 { margin: 0; }
.card-head h3 { font-size: 1.05rem; }
.count-badge { padding: 4px 9px; border-radius: 999px; background: #eef2f7; color: #536179; font-size: .75rem; font-weight: 700; }
.warning-banner { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid #f5d49e; border-radius: 10px; background: var(--amber-soft); color: #75410a; }
.warning-banner svg { flex: 0 0 auto; margin-top: 2px; }

.upload-card { padding: clamp(18px, 4vw, 28px); }
.drop-zone { min-height: 240px; display: grid; place-items: center; padding: 30px 20px; border: 1.5px dashed #8eaceb; border-radius: 12px; background: var(--blue-50); text-align: center; cursor: pointer; }
.drop-zone.is-dragging { border-color: var(--blue-800); background: #e7efff; }
.upload-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 14px; background: white; color: var(--blue-800); box-shadow: 0 6px 18px rgba(30,64,175,.1); }
.upload-icon svg { width: 28px; height: 28px; }
.drop-zone h3 { margin: 0 0 5px; font-size: 1.15rem; }
.drop-zone p { margin: 0; color: var(--muted); }
.upload-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.file-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin: 16px 0; }
.file-tile { min-width: 0; position: relative; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.file-tile strong, .file-tile small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-tile strong { font-size: .8rem; }
.file-tile small { color: var(--muted); font-size: .72rem; }
.file-tile button { position: absolute; top: -11px; right: -9px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #5c6678; color: white; cursor: pointer; }

.progress-card { padding: 28px; text-align: center; }
.spinner { width: 44px; height: 44px; margin: 0 auto 14px; border: 4px solid #dce6fa; border-top-color: var(--blue-800); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-track { height: 8px; margin: 14px 0 8px; overflow: hidden; border-radius: 99px; background: #e7ebf1; }
.progress-bar { height: 100%; width: 0; border-radius: inherit; background: var(--blue-800); transition: width .3s ease; }

.package-switcher { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 14px; padding-bottom: 2px; }
.package-chip { min-height: 44px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 9px; background: white; white-space: nowrap; cursor: pointer; }
.package-chip.is-active { border-color: #82a4f1; background: var(--blue-50); color: var(--blue-800); font-weight: 750; }
.review-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 14px; }
.review-layout > *, .overview-grid > *, .scene-grid > * { min-width: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; }
table { width: 100%; border-collapse: collapse; min-width: 660px; }
th, td { padding: 10px 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { position: sticky; top: 0; z-index: 1; background: #f7f9fc; color: #46556e; font-size: .78rem; }
td { font-size: .875rem; }
tbody tr:last-child td { border-bottom: 0; }
td input, td select { min-height: 38px; padding: 6px 8px; font-size: .85rem; }
.confidence { display: inline-flex; padding: 3px 7px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: .7rem; font-weight: 700; }
.confidence.low { background: var(--amber-soft); color: var(--amber); }
.subtask-review-list { display: grid; gap: 9px; }
.subtask-review { padding: 13px; border: 1px solid var(--line); border-radius: 10px; }
.subtask-review summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 720; }
.edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.edit-grid .span-2 { grid-column: 1 / -1; }
.sticky-actions { position: sticky; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 20; display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); backdrop-filter: blur(8px); }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; align-items: start; gap: 14px; }
.overview-main { display: grid; gap: 14px; }
.package-summary { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 16px; }
.package-summary h3 { margin: 0 0 3px; }
.summary-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.summary-stat { padding: 7px 10px; border-radius: 8px; background: #f1f4f8; font-size: .78rem; }
.filter-row { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; }
.filter-button { min-height: 44px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: white; white-space: nowrap; cursor: pointer; font-size: .8rem; }
.filter-button.is-active { border-color: var(--blue-800); background: var(--blue-800); color: white; }
.task-list { display: grid; gap: 8px; }
.task-row { display: grid; grid-template-columns: minmax(190px, 1.4fr) minmax(120px, .9fr) 66px 76px minmax(120px, auto); gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }
.task-row:hover, .task-row.is-selected { border-color: #89a9ee; background: var(--blue-50); }
.task-row strong { display: block; font-size: .9rem; }
.task-row small { color: var(--muted); }
.difficulty-chip { display: inline-grid; place-items: center; min-width: 42px; min-height: 32px; border-radius: 8px; background: #eaf0ff; color: var(--blue-800); font-weight: 800; }
.difficulty-chip.mid { background: var(--amber-soft); color: var(--amber); }
.difficulty-chip.high { background: var(--red-soft); color: var(--red); }
.status-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 29px; padding: 4px 8px; border-radius: 999px; background: #edf1f6; color: #536179; font-size: .75rem; font-weight: 720; white-space: nowrap; }
.status-chip.confirmed { background: var(--green-soft); color: var(--green); }
.status-chip.prepared { background: var(--amber-soft); color: var(--amber); }
.status-chip.reviewed { background: #e9f0ff; color: var(--blue-800); }
.status-chip.complete { background: #e4f5ea; color: #176c43; }
.status-chip.canceled { background: var(--red-soft); color: var(--red); }
.row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.row-actions .button { min-height: 44px; padding: 6px 10px; font-size: .78rem; }
.more-button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: white; cursor: pointer; }
.detail-panel { position: sticky; top: 165px; max-height: calc(100vh - 185px); overflow-y: auto; }
.detail-empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.detail-content { padding: 17px; }
.detail-content h3 { margin: 0; }
.detail-meta { display: grid; gap: 8px; margin: 14px 0; }
.meta-row { display: grid; grid-template-columns: 86px 1fr; gap: 10px; font-size: .875rem; }
.meta-row dt { color: var(--muted); }
.meta-row dd { margin: 0; font-weight: 560; }
.score-line { display: flex; justify-content: space-between; align-items: end; gap: 10px; padding: 14px; background: var(--blue-50); border-radius: 10px; }
.score-line strong { color: var(--blue-800); font-size: 1.8rem; line-height: 1; }
.score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 9px 0 15px; }
.score-item { padding: 8px 4px; border: 1px solid var(--line); border-radius: 8px; text-align: center; font-size: .72rem; }
.score-item b { display: block; color: var(--blue-800); font-size: .95rem; }
.section-title { margin: 18px 0 8px; font-size: .92rem; }
.alert-list, .rule-list, .pose-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.alert-list li, .rule-list li { position: relative; padding: 9px 10px 9px 31px; border-radius: 8px; background: #f6f8fb; font-size: .82rem; }
.alert-list li::before, .rule-list li::before { content: ""; position: absolute; left: 12px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.rule-list li::before { background: var(--blue-700); }
.oral-flow { padding: 11px; border-left: 3px solid var(--blue-800); background: var(--blue-50); font-size: .83rem; font-weight: 650; }
.pose-list { counter-reset: pose; }
.pose-list li { counter-increment: pose; display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
.pose-list li::before { content: counter(pose, decimal-leading-zero); color: var(--blue-700); font-weight: 800; }

.selector-card { padding: 15px; margin-bottom: 14px; }
.selector-grid { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.scene-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 14px; align-items: start; }
.shot-list { display: grid; gap: 9px; margin: 14px 0; }
.shot-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; }
.shot-item b { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--blue-100); color: var(--blue-800); }
.checklist { display: grid; gap: 9px; }
.check-item { display: grid; grid-template-columns: auto 1fr; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.check-item h4 { margin: 0 0 3px; }
.check-item p { margin: 0; color: var(--muted); font-size: .82rem; }
.decision { width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; background: var(--green); }
.decision.fix { background: var(--amber); }
.decision.manual { background: var(--blue-700); }
.plan-list { display: grid; gap: 8px; }
.plan-item { padding: 11px; border: 1px solid #cad9f8; border-radius: 9px; background: var(--blue-50); font-size: .85rem; }

.video-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 14px 0; }
.video-slot { min-height: 96px; display: grid; place-items: center; padding: 9px; border: 1px dashed #9aaaca; border-radius: 9px; text-align: center; color: var(--muted); font-size: .75rem; }
.video-slot.ready { border-style: solid; border-color: #9fc8b7; background: var(--green-soft); color: #176c43; }
.video-slot svg { display: block; margin: 0 auto 5px; }
.video-results { display: grid; gap: 9px; }
.video-result { padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.video-result summary { min-height: 44px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; cursor: pointer; }
.video-index { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #edf2fa; color: var(--blue-800); font-weight: 800; }
.issue { margin-top: 10px; padding: 10px; border-left: 3px solid var(--amber); background: #fff9ef; font-size: .82rem; }
.issue.blocking { border-left-color: var(--red); background: var(--red-soft); }

.empty-state { padding: 48px 20px; text-align: center; }
.empty-state .upload-icon { margin-bottom: 13px; }
.empty-state h3 { margin: 0 0 5px; }
.empty-state p { margin: 0 auto 16px; max-width: 520px; color: var(--muted); }

.drawer { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0; transition: opacity .18s ease; }
.drawer.is-open { pointer-events: auto; opacity: 1; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(12, 22, 40, .35); }
.drawer-panel { position: absolute; top: 0; right: 0; width: min(92vw, 420px); height: 100%; padding: 20px; overflow-y: auto; background: white; transform: translateX(100%); transition: transform .2s ease; }
.drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer-head h2 { margin: 1px 0 0; }
.history-list { display: grid; gap: 9px; }
.history-item { padding: 13px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.history-item:hover { border-color: #8aa7e8; }
.history-item h3 { margin: 0 0 4px; font-size: .95rem; }
.history-item p { margin: 0; color: var(--muted); font-size: .78rem; }
.popover { position: fixed; top: 66px; right: 18px; z-index: 70; min-width: 170px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow); }
.popover button { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 0; border-radius: 7px; background: white; cursor: pointer; }
.status-dialog { width: min(92vw, 430px); padding: 0; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); box-shadow: 0 22px 60px rgba(12, 22, 40, .22); }
.status-dialog::backdrop { background: rgba(12, 22, 40, .46); }
.status-dialog form { display: grid; gap: 14px; padding: 20px; }
.status-dialog h3 { margin: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.toast-region { position: fixed; z-index: 90; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); display: grid; gap: 8px; }
.toast { width: min(360px, calc(100vw - 36px)); padding: 12px 14px; border: 1px solid #b9c9ea; border-radius: 10px; background: white; box-shadow: var(--shadow); animation: toast-in .18s ease; }
.toast.error { border-color: #efb7bf; color: var(--red); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 880px) {
  .review-layout, .overview-grid, .scene-grid { grid-template-columns: 1fr; }
  .detail-panel { position: static; max-height: none; }
  .task-row { grid-template-columns: minmax(0, 1fr) 54px 72px; }
  .task-materials { grid-column: 1 / -1; order: 2; }
  .row-actions { grid-column: 1 / -1; justify-content: stretch; }
  .row-actions .button { flex: 1; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .app-header { height: 66px; }
  .brand-row .eyebrow, .account-button span, .mode-badge { display: none; }
  .brand-row h1 { font-size: 1rem; }
  .workflow-tabs { top: 66px; gap: 5px; padding: 8px 10px; }
  .workflow-tab { min-height: 56px; justify-content: center; padding: 8px 5px; text-align: center; }
  .workflow-tab .step-number { display: none; }
  .workflow-tab small { display: none; }
  .workflow-tab strong { font-size: .82rem; }
  .workspace { padding: 5px 10px calc(104px + env(safe-area-inset-bottom)); }
  .page-head { margin-top: 8px; flex-direction: column; }
  .page-head h2 { font-size: 1.45rem; }
  .page-head .button { width: 100%; }
  .flow-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; overflow: visible; }
  .flow-step { justify-content: center; font-size: .68rem; }
  .flow-step::after { display: none; }
  .flow-step b { width: 21px; height: 21px; }
  .upload-card, .card-pad { padding: 14px; }
  .drop-zone { min-height: 205px; }
  .review-layout { gap: 10px; }
  .edit-grid { grid-template-columns: 1fr; }
  .edit-grid .span-2 { grid-column: auto; }
  .sticky-actions { left: 10px; right: 10px; bottom: max(8px, env(safe-area-inset-bottom)); }
  .sticky-actions .button { flex: 1; padding-left: 9px; padding-right: 9px; }
  .package-summary { grid-template-columns: 1fr; }
  .task-row { grid-template-columns: minmax(0, 1fr) 48px 68px; gap: 7px; padding: 10px; }
  .task-row strong { font-size: .84rem; }
  .status-chip { font-size: .68rem; }
  .filter-row { flex-wrap: wrap; overflow: visible; }
  .score-grid { gap: 5px; }
  .score-item { font-size: .68rem; }
  .selector-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .video-result summary { grid-template-columns: 34px 1fr; }
  .video-result summary .status-chip { grid-column: 2; justify-self: start; }
  .drawer-panel { width: 100%; padding-top: max(20px, env(safe-area-inset-top)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
