/* ==========================================================================
   ReelAgent 全站样式
   - 手写，无任何外部依赖 / CDN
   - 视觉语言：浅色内容面 + 深色品牌外壳 + 靛蓝强调色
   - 三级文字灰阶：--ink（标题）/ --text（正文）/ --muted（次要）
   - 响应式断点：>=1024 三栏，768-1024 两栏，<768 单栏
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计令牌
   -------------------------------------------------------------------------- */
:root {
  /* 品牌与强调色 */
  --brand: #3d5afe;
  --brand-strong: #2a3fd8;
  --brand-soft: #eef1ff;
  --accent: #12b5b5;

  /* 深色外壳 */
  --shell: #0d1424;
  --shell-2: #131c2f;
  --shell-3: #1b2740;
  --shell-line: rgba(255, 255, 255, .09);
  --shell-ink: #eef2fb;
  --shell-muted: #94a3bd;

  /* 浅色内容面 */
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #fafbfe;
  --line: #e4e8f1;
  --line-strong: #cfd6e6;

  /* 文字灰阶（三级） */
  --ink: #101828;
  --text: #37415a;
  --muted: #6b7488;
  --on-dark: #f4f7ff;

  /* 状态色 */
  --ok: #0f9d63;
  --ok-soft: #e6f7ef;
  --busy: #d97706;
  --busy-soft: #fef4e5;
  --bad: #dc2f45;
  --bad-soft: #fdecEE;
  --info: #2563eb;
  --info-soft: #eaf1ff;

  /* 形状与阴影 */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-2: 0 6px 18px -6px rgba(16, 24, 40, .14);
  --shadow-3: 0 24px 60px -24px rgba(11, 20, 40, .35);

  /* 尺寸 */
  --topbar-h: 64px;
  --sidebar-w: 248px;
  --container: 1160px;

  --font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}

/* --------------------------------------------------------------------------
   2. 基础
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -.015em;
  line-height: 1.28;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 .75em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-strong); }

small, .small { font-size: .8125rem; }
.muted { color: var(--muted); }
.ink { color: var(--ink); }
.mono { font-family: var(--mono); font-size: .8125rem; }
.nowrap { white-space: nowrap; }
.break { word-break: break-all; }
.center { text-align: center; }
.right { text-align: right; }
.hide { display: none !important; }
hr, .rule { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--shell); color: #fff; padding: .5rem 1rem; border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.icon { width: 18px; height: 18px; flex: none; display: block; }

/* --------------------------------------------------------------------------
   3. 布局骨架
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1440px; }
.container-narrow { max-width: 820px; }

.section { padding: 72px 0; }
.section-tight { padding: 44px 0; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; margin-bottom: .5rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand);
}
.lede { font-size: 1.0625rem; color: var(--muted); }

/* 12 栏网格，用于 3/2/1 栏自适应 */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.span-2 { grid-column: span 2; }

/* 控制台外壳 */
.app-shell { display: flex; align-items: flex-start; min-height: calc(100vh - var(--topbar-h)); }
.app-main { flex: 1 1 auto; min-width: 0; padding: 28px 0 72px; }
.app-sidebar {
  position: sticky; top: var(--topbar-h);
  flex: none; width: var(--sidebar-w);
  height: calc(100vh - var(--topbar-h));
  padding: 20px 16px 24px;
  background: var(--shell);
  color: var(--shell-ink);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  overflow-y: auto;
}

/* --------------------------------------------------------------------------
   4. 顶部导航
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--topbar-h);
  background: rgba(13, 20, 36, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--shell-line);
  color: var(--shell-ink);
}
.topbar-inner { height: 100%; display: flex; align-items: center; gap: 20px; }

.brand { display: flex; align-items: center; gap: .625rem; color: var(--shell-ink); flex: none; }
.brand:hover { color: #fff; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(140deg, var(--brand) 0%, var(--accent) 100%);
  color: #fff;
}
.brand-mark-sm { width: 28px; height: 28px; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: .95rem; letter-spacing: -.01em; }
.brand-text small { font-size: .6875rem; color: var(--shell-muted); }

.topnav { display: flex; gap: 4px; margin-left: 12px; }
.topnav a {
  padding: 6px 10px; border-radius: var(--r-sm);
  font-size: .875rem; color: #c6cfe2;
}
.topnav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.topnav a.is-active { color: #fff; background: rgba(255, 255, 255, .1); }

.topbar-context { display: flex; gap: 8px; align-items: center; margin-left: 4px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar-user { font-size: .8125rem; color: var(--shell-muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: .75rem; font-weight: 550;
  background: rgba(255, 255, 255, .1); color: var(--shell-ink);
}
.chip-quiet { background: rgba(255, 255, 255, .05); color: var(--shell-muted); }

/* --------------------------------------------------------------------------
   5. 侧边栏
   -------------------------------------------------------------------------- */
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-heading {
  margin: 16px 0 6px; padding: 0 10px;
  font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: #64748b;
}
.side-heading:first-child { margin-top: 0; }
.side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--r-sm);
  color: #c3cce0; font-size: .875rem; font-weight: 500;
}
.side-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-link.is-active { background: rgba(61, 90, 254, .22); color: #fff; box-shadow: inset 2px 0 0 var(--brand); }
.side-link .icon { width: 17px; height: 17px; opacity: .9; }
.side-link span { flex: 1 1 auto; }
.side-count {
  font-style: normal; font-size: .75rem; padding: 1px 7px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .12); color: #dce3f2;
}

.side-balance {
  padding: 14px; border-radius: var(--r);
  background: var(--shell-2); border: 1px solid var(--shell-line);
}
.side-balance-value { font-size: 1.5rem; font-weight: 650; color: #fff; line-height: 1.2; }
.side-balance-value span { font-size: .8125rem; font-weight: 500; color: var(--shell-muted); margin-left: 4px; }
.side-balance-note { font-size: .75rem; color: var(--shell-muted); margin: 2px 0 10px; }

/* --------------------------------------------------------------------------
   6. 按钮
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border: 1px solid transparent; border-radius: var(--r-sm);
  font: inherit; font-size: .875rem; font-weight: 570; line-height: 1.3;
  cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-sm { padding: 6px 12px; font-size: .8125rem; }
.btn-lg { padding: 12px 22px; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
.btn-soft { background: #eef1f7; color: var(--ink); border-color: transparent; }
.btn-soft:hover { background: #e3e8f2; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
.btn-danger { background: #fff; color: var(--bad); border-color: #f3c3ca; }
.btn-danger:hover { background: var(--bad-soft); color: var(--bad); }
.btn-danger-solid { background: var(--bad); color: #fff; }
.btn-danger-solid:hover { background: #bd2438; color: #fff; }
.btn-on-dark { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .18); }
.btn-on-dark:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn-link { padding: 0; background: none; border: 0; color: var(--brand); cursor: pointer; font: inherit; }
.btn-link:hover { text-decoration: underline; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline-form { display: inline; }

.copy-field { display: flex; gap: 8px; align-items: stretch; }
.copy-field input { flex: 1 1 auto; font-family: var(--mono); font-size: .8125rem; }

/* --------------------------------------------------------------------------
   7. 卡片 / 面板
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.card-head-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.card-title { font-size: 1rem; font-weight: 620; }
.card-sub { font-size: .8125rem; color: var(--muted); margin: 2px 0 0; }
.card-body { padding: 20px; }
.card-body-tight { padding: 14px 20px; }
.card-foot {
  padding: 13px 20px; border-top: 1px solid var(--line);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.card-hover:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }

.panel-dark {
  background: linear-gradient(160deg, var(--shell-2) 0%, var(--shell) 100%);
  color: var(--shell-ink); border-radius: var(--r-lg); padding: 28px;
}
.panel-dark h1, .panel-dark h2, .panel-dark h3 { color: #fff; }
.panel-dark .muted { color: var(--shell-muted); }

/* 页面标题区 */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 22px;
}
.page-head h1 { font-size: 1.625rem; }
.page-head .lede { margin: 4px 0 0; font-size: .9375rem; }
.breadcrumb { display: flex; gap: 6px; align-items: center; font-size: .8125rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }

/* --------------------------------------------------------------------------
   8. KPI 统计块
   -------------------------------------------------------------------------- */
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px; box-shadow: var(--shadow-1);
}
.stat-label { font-size: .8125rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat-value { font-size: 1.75rem; font-weight: 660; color: var(--ink); line-height: 1.25; margin-top: 6px; letter-spacing: -.02em; }
.stat-value span { font-size: .875rem; font-weight: 500; color: var(--muted); margin-left: 4px; }
.stat-hint { font-size: .75rem; color: var(--muted); margin-top: 4px; }

/* --------------------------------------------------------------------------
   9. 徽章 / 标签
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: var(--r-pill);
  font-size: .75rem; font-weight: 570; white-space: nowrap;
  border: 1px solid transparent;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge-ok { background: var(--ok-soft); color: #0a7a4c; border-color: #bfe8d4; }
.badge-busy { background: var(--busy-soft); color: #a15c05; border-color: #f7dfb8; }
.badge-bad { background: var(--bad-soft); color: #b32338; border-color: #f6c9d1; }
.badge-muted { background: #eef1f6; color: #5c667c; border-color: #dfe4ee; }
.badge-neutral { background: var(--info-soft); color: #1d4ed8; border-color: #c9d9ff; }
.badge-outline { background: transparent; color: var(--muted); border-color: var(--line-strong); }

.tag { display: inline-block; padding: 2px 8px; border-radius: var(--r-sm); background: #f1f4fa; color: var(--text); font-size: .75rem; }
.tag-mono { font-family: var(--mono); }

/* --------------------------------------------------------------------------
   10. 提示条
   -------------------------------------------------------------------------- */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px; border-radius: var(--r-sm); margin: 0 0 16px;
  font-size: .875rem; border: 1px solid transparent;
}
.alert .icon { margin-top: 2px; }
.alert span { flex: 1 1 auto; }
.alert-ok { background: var(--ok-soft); color: #0a6b45; border-color: #bfe8d4; }
.alert-error { background: var(--bad-soft); color: #a51f33; border-color: #f6c9d1; }
.alert-warn { background: var(--busy-soft); color: #8f5205; border-color: #f7dfb8; }
.alert-info { background: var(--info-soft); color: #1e40af; border-color: #c9d9ff; }
.alert-inline { margin: 12px 0 0; }
.alert-close { background: none; border: 0; padding: 2px; cursor: pointer; color: inherit; opacity: .7; }
.alert-close:hover { opacity: 1; }

/* --------------------------------------------------------------------------
   11. 表单
   -------------------------------------------------------------------------- */
.form-grid { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: .8125rem; font-weight: 570; color: var(--ink); }
.field .hint { font-size: .75rem; color: var(--muted); }
.field .error-text { font-size: .75rem; color: var(--bad); }

input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="number"], input[type="url"], input[type="tel"], select, textarea {
  width: 100%; padding: 9px 12px;
  font: inherit; font-size: .875rem; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(61, 90, 254, .13);
}
input::placeholder, textarea::placeholder { color: #9aa3b5; }
input:disabled, select:disabled, textarea:disabled { background: #f4f6fa; color: var(--muted); }
select { appearance: none; background-image: none; padding-right: 32px; }

.input-wrap { position: relative; }
.input-wrap .icon-btn-inside {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; padding: 5px; cursor: pointer; color: var(--muted); border-radius: 5px;
}
.input-wrap .icon-btn-inside:hover { background: #eef1f7; color: var(--ink); }

.check { display: flex; gap: 9px; align-items: flex-start; font-size: .8125rem; color: var(--text); }
.check input[type="checkbox"], .check input[type="radio"] {
  width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: var(--brand);
}
.check label { color: var(--text); }

/* 单选卡片组：风格 / 画幅 / 镜头数 */
.pick-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.pick { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick-body {
  display: block; height: 100%;
  padding: 12px 13px; border: 1px solid var(--line-strong); border-radius: var(--r);
  background: var(--surface); transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.pick-title { display: block; font-size: .875rem; font-weight: 570; color: var(--ink); }
.pick-desc { display: block; font-size: .75rem; color: var(--muted); margin-top: 2px; }
.pick input:checked + .pick-body { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(61, 90, 254, .13); background: var(--brand-soft); }
.pick input:focus-visible + .pick-body { outline: 2px solid var(--brand); outline-offset: 2px; }
.swatch { display: flex; gap: 3px; margin-bottom: 8px; }
.swatch i { width: 22px; height: 8px; border-radius: 2px; }

/* 紧凑筛选栏 */
.filter-bar {
  display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap;
  padding: 14px 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-1); margin-bottom: 20px;
}
.filter-bar .field { min-width: 150px; }
.filter-bar .field-grow { flex: 1 1 220px; }

/* --------------------------------------------------------------------------
   12. 表格
   -------------------------------------------------------------------------- */
.table-wrap { width: 100%; overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
table.table th {
  text-align: left; font-size: .75rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
  padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.table tbody tr:last-child td { border-bottom: 0; }
table.table tbody tr:hover td { background: #fafbff; }
table.table td.num, table.table th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.table td.tight { white-space: nowrap; }
.cell-title { display: block; font-weight: 570; color: var(--ink); }
.cell-sub { display: block; font-size: .75rem; color: var(--muted); margin-top: 2px; }
.amount-pos { color: var(--ok); font-variant-numeric: tabular-nums; }
.amount-neg { color: var(--bad); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   13. 进度条 / 阶段
   -------------------------------------------------------------------------- */
.progress-card .stages { margin: 18px 0 6px; }
.progress-meta {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 8px;
}
.stage-name { font-size: .9375rem; font-weight: 570; color: var(--ink); }
.progress-value { font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress { height: 8px; border-radius: var(--r-pill); background: #eaeef6; overflow: hidden; }
.progress-lg { height: 12px; }
.progress-fill {
  height: 100%; border-radius: var(--r-pill); background: var(--brand);
  transition: width .5s ease;
}
.progress-fill.tone-ok { background: linear-gradient(90deg, #12a06a, #22c58b); }
.progress-fill.tone-busy { background: linear-gradient(90deg, var(--brand), var(--accent)); }
.progress-fill.tone-bad { background: var(--bad); }
.progress-fill.tone-muted { background: #9aa3b5; }
.progress-fill.tone-neutral { background: var(--info); }

.stages {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 6px;
}
.stage {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: var(--r-pill);
  font-size: .75rem; color: var(--muted); background: #f2f5fa;
}
.stage-dot { width: 6px; height: 6px; border-radius: 50%; background: #c4ccdb; flex: none; }
.stage.is-done { color: #0a7a4c; background: var(--ok-soft); }
.stage.is-done .stage-dot { background: var(--ok); }
.stage.is-current { color: #1d3fd0; background: var(--brand-soft); font-weight: 570; }
.stage.is-current .stage-dot { background: var(--brand); box-shadow: 0 0 0 3px rgba(61, 90, 254, .18); }

/* 细进度（列表内联用） */
.mini-progress { display: flex; align-items: center; gap: 8px; min-width: 130px; }
.mini-progress .progress { flex: 1 1 auto; height: 5px; }
.mini-progress em { font-style: normal; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   14. 媒体 / 分镜
   -------------------------------------------------------------------------- */
.player {
  position: relative; background: #05080f; border-radius: var(--r);
  display: grid; place-items: center; overflow: hidden; min-height: 260px;
}
.player video, .player img { display: block; width: 100%; max-height: 70vh; background: #05080f; }
.player-portrait { max-width: 460px; margin: 0 auto; }
.player-empty { padding: 56px 20px; text-align: center; color: var(--shell-muted); }
.player-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.ratio-9-16 { aspect-ratio: 9 / 16; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-1-1 { aspect-ratio: 1 / 1; }

.storyboard { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shot-tile {
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface);
}
.shot-tile-media {
  aspect-ratio: 1 / 1; background: var(--shell); display: grid; place-items: center; overflow: hidden;
}
.shot-tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-tile-media .ph { color: #64748b; font-size: .75rem; text-align: center; padding: 10px; }
.shot-tile-meta { padding: 9px 11px; }
.shot-tile-key { font-family: var(--mono); font-size: .6875rem; color: var(--muted); }
.shot-tile-action {
  font-size: .8125rem; color: var(--text); margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.shot-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.shot-card { display: flex; flex-direction: column; }
.shot-card-media { background: #0b1120; display: grid; place-items: center; aspect-ratio: 16 / 9; }
.shot-card-media img { width: 100%; height: 100%; object-fit: cover; }
.shot-card-media .ph { color: #64748b; font-size: .8125rem; }
.shot-keyline {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.shot-key { font-family: var(--mono); font-size: .8125rem; color: var(--ink); font-weight: 570; }
.shot-fields { padding: 14px 16px; display: grid; gap: 12px; }
.kv-inline { display: flex; flex-wrap: wrap; gap: 6px; }

/* 关键帧缩略图 */
.thumbs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.thumb { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.thumb img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.thumb-cap { padding: 6px 8px; font-size: .6875rem; color: var(--muted); font-family: var(--mono); }

/* 素材缩略（新建页示例） */
.example-list { display: grid; gap: 10px; margin-top: 6px; }
.example {
  text-align: left; width: 100%; cursor: pointer;
  padding: 11px 13px; border-radius: var(--r-sm);
  border: 1px dashed var(--line-strong); background: var(--surface-2);
  color: var(--muted); font: inherit; font-size: .8125rem; line-height: 1.55;
}
.example:hover { border-color: var(--brand); color: var(--text); background: var(--brand-soft); }
.example strong { display: block; color: var(--ink); font-size: .8125rem; margin-bottom: 2px; }

/* --------------------------------------------------------------------------
   15. 空状态 / 加载
   -------------------------------------------------------------------------- */
.empty { padding: 44px 20px; text-align: center; }
.empty-icon {
  width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 12px;
  display: grid; place-items: center; background: #eef1f8; color: var(--muted);
}
.empty-title { font-size: .9375rem; font-weight: 570; color: var(--ink); margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   16. 分页
   -------------------------------------------------------------------------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pager-links { display: flex; gap: 4px; align-items: center; }
.pager-links a, .pager-links span {
  min-width: 32px; height: 32px; padding: 0 9px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  font-size: .8125rem; color: var(--text); background: var(--surface);
}
.pager-links a:hover { border-color: var(--brand); color: var(--brand); }
.pager-links .is-current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 570; }
.pager-links .is-disabled { opacity: .45; }

/* --------------------------------------------------------------------------
   17. 价格 / 套餐
   -------------------------------------------------------------------------- */
.plan-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.plan-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plan {
  display: flex; flex-direction: column; height: 100%;
  padding: 22px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-1);
}
.plan-featured { border-color: var(--brand); box-shadow: 0 18px 44px -26px rgba(61, 90, 254, .55); position: relative; }
.plan-flag {
  position: absolute; top: -11px; left: 22px;
  background: var(--brand); color: #fff; font-size: .6875rem; font-weight: 600;
  padding: 2px 10px; border-radius: var(--r-pill);
}
.plan-name { font-size: 1rem; font-weight: 620; color: var(--ink); }
.plan-tagline { font-size: .8125rem; color: var(--muted); margin: 4px 0 14px; min-height: 2.6em; }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-price strong { font-size: 2rem; font-weight: 660; color: var(--ink); letter-spacing: -.02em; }
.plan-price span { font-size: .8125rem; color: var(--muted); }
.plan-credits { font-size: .8125rem; color: var(--text); margin-top: 6px; }
.plan-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.plan-list li { display: flex; gap: 9px; align-items: flex-start; font-size: .875rem; color: var(--text); }
.plan-list .icon { width: 16px; height: 16px; color: var(--ok); margin-top: 3px; }
.plan-cta { margin-top: 22px; }

.compare { width: 100%; border-collapse: collapse; font-size: .875rem; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.compare thead th { font-size: .8125rem; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.compare tbody th { font-weight: 520; color: var(--text); }
.compare td { color: var(--ink); font-variant-numeric: tabular-nums; }
.compare .col-featured { background: var(--brand-soft); }

/* --------------------------------------------------------------------------
   18. 落地页
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 420px at 82% -10%, rgba(18, 181, 181, .22), transparent 62%),
    radial-gradient(760px 380px at 8% 6%, rgba(61, 90, 254, .26), transparent 60%),
    var(--shell);
  color: var(--shell-ink);
  padding: 92px 0 84px;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -.03em; max-width: 20ch; }
.hero .lede { color: #b9c4da; font-size: 1.0625rem; max-width: 46ch; margin-top: 16px; }
.hero-inner { display: grid; gap: 48px; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 4px 12px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  font-size: .75rem; color: #cfd8ea;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { font-size: .8125rem; color: #8b97ae; margin-top: 14px; }

.mock {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, #16203a, #0e1626);
  box-shadow: var(--shadow-3);
}
.mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
}
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #33405c; display: block; }
.mock-bar span { margin-left: 8px; font-size: .75rem; color: #7d8aa3; }
.mock-body { padding: 16px; display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.mock-tile {
  aspect-ratio: 9/16; border-radius: 8px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #22304f, #131c30);
  border: 1px solid rgba(255, 255, 255, .07);
}
.mock-tile::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 34%;
  background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent);
}
.mock-tile em {
  position: absolute; left: 8px; bottom: 7px; z-index: 1;
  font-style: normal; font-size: .625rem; color: #cdd7e8; font-family: var(--mono);
}
.mock-tile:nth-child(2) { background: linear-gradient(160deg, #3a2450, #1a1730); }
.mock-tile:nth-child(3) { background: linear-gradient(160deg, #14504c, #10202c); }
.mock-foot { padding: 0 16px 16px; }
.mock-foot .progress { background: rgba(255, 255, 255, .12); }

.feature {
  padding: 22px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-1); height: 100%;
}
.feature-icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 14px;
}
.feature h3 { font-size: 1rem; margin-bottom: 6px; }
.feature p { font-size: .875rem; color: var(--muted); }

.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step-card { position: relative; padding: 24px 22px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.step-num {
  counter-increment: step; position: absolute; top: -14px; left: 22px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: #fff;
  font-size: .8125rem; font-weight: 620;
}
.step-num::before { content: counter(step); }
.step-card h3 { margin-top: 10px; font-size: 1rem; }
.step-card p { font-size: .875rem; color: var(--muted); margin-bottom: 0; }

.style-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.style-card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.style-preview { height: 120px; }
.style-body { padding: 13px 15px; }
.style-name { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.style-desc { font-size: .8125rem; color: var(--muted); margin-top: 3px; }

.faq { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 15px 18px; font-size: .9375rem; font-weight: 570; color: var(--ink);
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; width: 9px; height: 9px; flex: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .18s; margin-right: 2px;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item .faq-body { padding: 0 18px 16px; font-size: .9375rem; color: var(--muted); }

.cta-band {
  background: linear-gradient(140deg, var(--shell-2), var(--shell));
  border-radius: var(--r-lg); padding: 46px 40px; text-align: center; color: var(--shell-ink);
}
.cta-band h2 { color: #fff; }
.cta-band .lede { color: #b3bfd6; margin: 10px auto 24px; max-width: 52ch; }

/* --------------------------------------------------------------------------
   19. 认证页
   -------------------------------------------------------------------------- */
.auth-shell {
  min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--bg);
}
.auth-aside {
  background:
    radial-gradient(700px 340px at 20% 8%, rgba(61, 90, 254, .3), transparent 62%),
    var(--shell);
  color: var(--shell-ink); padding: 52px 46px; display: flex; flex-direction: column; justify-content: space-between;
}
.auth-aside h2 { color: #fff; font-size: 1.5rem; margin-top: 28px; }
.auth-aside .lede { color: #b3bfd6; }
.auth-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.auth-points li { display: flex; gap: 10px; font-size: .875rem; color: #ccd6e8; }
.auth-points .icon { color: var(--accent); margin-top: 3px; }
.auth-main { display: grid; place-items: center; padding: 44px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 1.5rem; }
.auth-card .lede { font-size: .9375rem; margin-top: 6px; }
.auth-form { margin-top: 26px; display: grid; gap: 16px; }
.auth-foot { margin-top: 18px; font-size: .875rem; color: var(--muted); text-align: center; }
.auth-legal { margin-top: 20px; font-size: .75rem; color: var(--muted); text-align: center; }
.form-error {
  padding: 10px 13px; border-radius: var(--r-sm);
  background: var(--bad-soft); border: 1px solid #f6c9d1; color: #a51f33; font-size: .875rem;
}
.grant-note {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 13px; border-radius: var(--r-sm);
  background: var(--brand-soft); border: 1px solid #d6ddff; color: #26399e; font-size: .8125rem;
}

/* --------------------------------------------------------------------------
   20. 法律 / 长文
   -------------------------------------------------------------------------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.25rem; margin: 34px 0 10px; }
.prose h3 { font-size: 1rem; margin: 22px 0 8px; }
.prose p, .prose li { font-size: .9375rem; color: var(--text); }
.prose ul, .prose ol { padding-left: 20px; display: grid; gap: 6px; margin: 0 0 14px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .875rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.prose th { background: var(--surface-2); font-weight: 600; color: var(--ink); }
.toc { padding: 16px 20px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); }
.toc p { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.toc ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 5px; font-size: .875rem; }

/* --------------------------------------------------------------------------
   21. 状态页
   -------------------------------------------------------------------------- */
.status-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px; border-radius: var(--r); border: 1px solid;
}
.status-banner .status-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.status-banner h2 { font-size: 1.0625rem; }
.status-ok { background: var(--ok-soft); border-color: #bfe8d4; }
.status-ok .status-dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(15, 157, 99, .16); }
.status-degraded { background: var(--busy-soft); border-color: #f7dfb8; }
.status-degraded .status-dot { background: var(--busy); box-shadow: 0 0 0 4px rgba(217, 119, 6, .16); }
.status-down { background: var(--bad-soft); border-color: #f6c9d1; }
.status-down .status-dot { background: var(--bad); box-shadow: 0 0 0 4px rgba(220, 47, 69, .16); }

.dep-list { display: grid; gap: 10px; }
.dep {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2);
}
.dep-name { font-size: .875rem; font-weight: 570; color: var(--ink); }
.dep-meta { font-size: .75rem; color: var(--muted); margin-top: 2px; }

.depth-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.depth {
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2);
}
.depth-value { font-size: 1.375rem; font-weight: 640; color: var(--ink); font-variant-numeric: tabular-nums; }
.depth-label { font-size: .75rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   22. 404
   -------------------------------------------------------------------------- */
.error-page { padding: 96px 0; text-align: center; }
.error-code {
  font-size: clamp(3.5rem, 12vw, 6rem); font-weight: 700; letter-spacing: -.04em;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1;
}
.error-page .lede { max-width: 48ch; margin: 14px auto 26px; }

/* --------------------------------------------------------------------------
   23. 密钥 / 设置细节
   -------------------------------------------------------------------------- */
.key-reveal {
  padding: 14px 16px; border-radius: var(--r-sm);
  background: #0f1729; border: 1px solid #24314e;
  color: #dbe4f5; font-family: var(--mono); font-size: .8125rem; word-break: break-all;
}
.setting-section { margin-bottom: 20px; }
.section-title { font-size: 1.0625rem; font-weight: 620; color: var(--ink); }
.section-desc { font-size: .8125rem; color: var(--muted); margin-top: 4px; }
.meta-list { display: grid; gap: 10px; }
.meta-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: .875rem; }
.meta-row dt { color: var(--muted); }
.meta-row dd { margin: 0; color: var(--ink); text-align: right; }

.danger-zone { border-color: #f6c9d1; }
.danger-zone .card-head { background: var(--bad-soft); }

/* --------------------------------------------------------------------------
   23b. 弹窗（原生 dialog）
   -------------------------------------------------------------------------- */
dialog.sheet {
  width: min(640px, calc(100vw - 32px));
  padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-3);
}
dialog.sheet::backdrop { background: rgba(9, 14, 26, .55); backdrop-filter: blur(2px); }
dialog.sheet .card-head { border-radius: var(--r-lg) var(--r-lg) 0 0; }
dialog.sheet .card-body { max-height: min(66vh, 560px); overflow-y: auto; }
dialog.sheet .card-foot { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.sheet-image {
  width: 100%; max-height: 220px; object-fit: cover;
  border-radius: var(--r-sm); border: 1px solid var(--line); margin-bottom: 14px;
}

/* 选中态（工作室镜头卡） */
.shot-card.is-selected { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(61, 90, 254, .12); }
.selection-bar {
  position: sticky; bottom: 0; z-index: 20;
  margin-top: 20px; padding: 12px 18px;
  background: var(--surface); border: 1px solid var(--line); border-top-width: 2px;
  border-radius: var(--r); box-shadow: var(--shadow-2);
}

/* --------------------------------------------------------------------------
   24. 页脚
   -------------------------------------------------------------------------- */
.site-footer { background: var(--shell); color: var(--shell-muted); padding: 48px 0 26px; margin-top: 72px; }
.footer-inner { display: flex; gap: 48px; justify-content: space-between; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 12px; max-width: 320px; }
.footer-brand strong { color: var(--shell-ink); }
.footer-brand p { font-size: .8125rem; margin: 3px 0 0; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-title { color: var(--shell-ink); font-size: .8125rem; font-weight: 600; margin: 0 0 2px; }
.footer-col a { color: var(--shell-muted); font-size: .875rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--shell-line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .75rem;
}

/* --------------------------------------------------------------------------
   25. 工具类
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 26px; }
.mt-5 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 18px; }
.mb-4 { margin-bottom: 26px; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.flex-center { display: flex; align-items: center; gap: 10px; }
.flex-wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }

/* --------------------------------------------------------------------------
   26. 响应式：>=1024 三栏 / 768-1024 两栏 / <768 单栏
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  h1 { font-size: 1.75rem; }
  .section { padding: 56px 0; }
  .grid-3, .grid-2-1, .grid-1-2, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: 68px 0 60px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .storyboard { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .span-2 { grid-column: span 1; }

  /* 控制台侧边栏在中等屏收窄 */
  :root { --sidebar-w: 210px; }
  .auth-shell { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { display: none; }
}

@media (max-width: 860px) {
  .hide-sm { display: none !important; }
  .topnav { display: none; }
}

@media (max-width: 768px) {
  body { font-size: 14.5px; }
  .container { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4, .grid-2-1, .grid-1-2, .steps, .plan-grid, .plan-grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .storyboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot-cards { grid-template-columns: minmax(0, 1fr); }
  .card-body { padding: 16px; }
  .card-head { padding: 14px 16px; }
  .page-head h1 { font-size: 1.375rem; }
  .stat-value { font-size: 1.5rem; }
  .cta-band { padding: 32px 22px; }
  .mock-body { grid-template-columns: repeat(3, 1fr); }
  .footer-cols { gap: 32px; }
  .footer-inner { gap: 28px; }

  /* 侧边栏改为横向滚动条 */
  .app-shell { flex-direction: column; }
  .app-sidebar {
    position: static; width: 100%; height: auto;
    flex-direction: row; align-items: center; gap: 10px;
    overflow-x: auto; padding: 10px 12px;
  }
  .side-nav { flex-direction: row; align-items: center; gap: 6px; flex: none; }
  .side-heading, .side-count, .side-balance { display: none; }
  .side-link { white-space: nowrap; padding: 7px 11px; }
  .side-link.is-active { box-shadow: inset 0 -2px 0 var(--brand); }
  .app-main { padding: 20px 0 56px; }

  .filter-bar { padding: 12px 14px; }
  .filter-bar .field { min-width: 0; flex: 1 1 100%; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
}

@media (max-width: 480px) {
  .storyboard { grid-template-columns: minmax(0, 1fr); }
  .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: 52px 0 46px; }
  .card-foot { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .topbar, .app-sidebar, .site-footer, .btn { display: none !important; }
  body { background: #fff; }
}
