/* ══════════════════════════════════════════════════════════════
   广东省考选岗平台 · 设计系统 v2
   原生 CSS，无构建步骤。移动端堆栈导航 / 桌面主从双栏。
   样式全部通过 class 表达；动态数据可视化使用 SVG 几何属性，
   以避免与后端 CSP（style-src 'self'）冲突。
   ══════════════════════════════════════════════════════════════ */

:root {
  /* 色板 */
  --bg: #eef2f8;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --surface-3: #eef2f8;
  --ink: #0f1b2d;
  --body: #475569;
  --muted: #8a97ab;
  --line: #e4e9f2;
  --line-strong: #d3dbe8;

  --primary: #1d4ed8;
  --primary-600: #2563eb;
  --primary-700: #1e40af;
  --primary-soft: #e8f0fe;
  --primary-soft-2: #dbe8ff;

  --brand-red: #d23b3b;      /* 用于关键召唤与广东政务点缀 */
  --brand-red-soft: #fdeaea;

  --success: #15803d;
  --success-bg: #dcfce7;
  --warning: #b45309;
  --warning-bg: #fef3c7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --info: #0369a1;
  --info-bg: #e0f2fe;

  /* 圆角 / 阴影 / 间距 */
  --r-xs: 6px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(15,27,45,.06), 0 1px 3px rgba(15,27,45,.05);
  --sh-2: 0 4px 16px rgba(15,27,45,.08), 0 2px 6px rgba(15,27,45,.05);
  --sh-3: 0 12px 32px rgba(15,27,45,.16);

  --tap: 44px;
  --topbar-h: 58px;

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

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

svg { display: block; max-width: 100%; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}

h1 { margin: 0 0 4px; font-size: 23px; letter-spacing: -.02em; }
h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
h3 { margin: 18px 0 10px; font-size: 14px; font-weight: 800; color: var(--body); letter-spacing: .01em; }
p { margin: 4px 0 12px; color: var(--body); }
small { font-size: 13px; }
.muted { color: var(--muted); font-size: 13px; }
.center { text-align: center; }

/* ── 滚动条美化（桌面） ─────────────────────────────────── */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
*::-webkit-scrollbar-track { background: transparent; }

/* ── 按钮 ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: var(--tap); padding: 10px 18px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font: inherit; font-weight: 750; font-size: 15px; line-height: 1; text-decoration: none;
  cursor: pointer; user-select: none; white-space: nowrap;
  transition: background .15s, box-shadow .15s, transform .05s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn.primary { background: var(--primary); color: #fff; box-shadow: var(--sh-1); }
.btn.primary:hover { background: var(--primary-700); }
.btn.accent { background: var(--brand-red); color: #fff; box-shadow: var(--sh-1); }
.btn.accent:hover { filter: brightness(.94); }
.btn.ghost { background: var(--surface); color: var(--primary-700); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--primary-soft); border-color: var(--primary-soft-2); }
.btn.subtle { background: var(--surface-3); color: var(--body); border-color: transparent; }
.btn.subtle:hover { background: var(--line); }
.btn.full { width: 100%; }
.btn.sm { min-height: 36px; padding: 7px 13px; font-size: 13px; }
.btn.lg { min-height: 50px; padding: 13px 22px; font-size: 16px; }
.btn.block-icon { min-width: var(--tap); padding: 0; }

/* 按钮内加载圈 */
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
  animation: spin .7s linear infinite; flex: none;
}
.btn.ghost .spinner, .btn.subtle .spinner { border-color: rgba(36,99,235,.3); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 顶栏 ─────────────────────────────────────────────── */
.appbar {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; gap: 12px;
  min-height: var(--topbar-h); padding: 0 16px;
  background: linear-gradient(120deg, #0b1f47, #143a86 60%, #1d4ed8);
  color: #fff; box-shadow: 0 2px 12px rgba(11,31,71,.28);
}
.appbar.plain { background: linear-gradient(120deg, #0b1f47, #143a86); }
.appbar-brand { display: flex; align-items: center; gap: 9px; font-weight: 850; font-size: 15px; letter-spacing: .01em; }
.appbar-brand .logo {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: rgba(255,255,255,.16); display: grid; place-items: center;
}
.appbar-brand .logo svg { width: 17px; height: 17px; }
.appbar-title { flex: 1; min-width: 0; font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar-actions { display: flex; align-items: center; gap: 8px; }
.appbar-actions .btn.ghost { color: #dbe8ff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); }
.appbar-actions .btn.ghost:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }

.role-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 750; background: rgba(255,255,255,.16); color: #fff;
}
.quota-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 800; background: #fff; color: var(--primary-700);
}
.quota-pill.low { background: var(--brand-red-soft); color: var(--brand-red); }

.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: rgba(255,255,255,.18); color: #fff; font-weight: 800; font-size: 14px;
  display: grid; place-items: center; cursor: pointer; border: 1px solid rgba(255,255,255,.25);
}
.avatar.menu-open { background: rgba(255,255,255,.3); }

/* 顶栏用户菜单 */
.menu {
  position: absolute; top: calc(var(--topbar-h) + 6px); right: 12px; z-index: 300;
  min-width: 180px; padding: 6px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3);
}
.menu button {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 10px 12px; border: 0; background: none; border-radius: var(--r-xs);
  font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; text-align: left;
}
.menu button:hover { background: var(--surface-3); }
.menu .sep { height: 1px; background: var(--line); margin: 5px 4px; }
.menu-head { padding: 9px 10px 4px; }
.menu-head .menu-name { font-weight: 800; font-size: 14px; }

.wb-actjobs { margin: 10px 0 0; padding: 8px 12px; border-radius: var(--r-sm); background: rgba(255,233,168,.22); color: #ffe9a8; font-size: 12.5px; font-weight: 700; }

/* ── 通用容器 / 卡片 ──────────────────────────────────── */
.page { padding: 16px 16px 96px; max-width: 920px; margin: 0 auto; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh-1);
}
.section { margin-top: 18px; }

/* ── 通用工具类（替代内联 style，避开 CSP） ──────────────── */
.spin-inline { display: inline-block; vertical-align: -3px; margin-right: 6px; }
.pad-18 { padding: 18px; }
.pad-14 { padding: 14px; }
.mt10 { margin-top: 10px; }
.mt12 { margin-top: 12px; }
.meter-wrap { flex: 1; max-width: 140px; }
.yr-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.yr-btn { min-height: 32px; padding: 5px 10px; font-size: 13px; }
.yr-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── 登录 ─────────────────────────────────────────────── */
.auth-wrap {
  min-height: 100dvh; display: grid; place-items: center; padding: 22px;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(29,78,216,.14), transparent 55%),
    radial-gradient(700px 500px at 110% 10%, rgba(210,59,59,.10), transparent 50%),
    var(--bg);
}
.auth-card { width: min(420px, 100%); padding: 30px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.auth-logo { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.auth-logo .mark { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg,#143a86,#1d4ed8); display: grid; place-items: center; box-shadow: var(--sh-1); }
.auth-logo .mark svg { width: 24px; height: 24px; }
.auth-logo b { font-size: 17px; letter-spacing: .01em; }
.auth-card h1 { font-size: 25px; }
.auth-card > p { margin-bottom: 20px; }
.auth-card label { display: grid; gap: 5px; margin-bottom: 13px; font-weight: 700; font-size: 13.5px; color: var(--body); }

/* ── 输入控件 ─────────────────────────────────────────── */
.inp, input, textarea, select {
  width: 100%; min-height: var(--tap); padding: 11px 13px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 64px; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a97ab' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft-2); }
input::placeholder, textarea::placeholder { color: #aab4c4; }
.field-error { color: var(--danger); font-size: 12.5px; margin-top: 4px; font-weight: 600; }
.field.invalid .inp, .field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-bg); }
label.check { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--body); cursor: pointer; }
label.check input { width: 18px; min-height: 18px; flex: none; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .col-2 { grid-column: span 2; }
.field { display: grid; gap: 5px; font-size: 13.5px; font-weight: 700; color: var(--body); }
.field > small.hint { font-weight: 500; color: var(--muted); font-size: 12px; }
.nt-form { display: grid; gap: 14px; }
.nt-intro { margin: 0; padding: 11px 13px; border: 1px solid #cfe0ff; border-radius: var(--r-sm); background: #f5f8ff; color: #51657f; font-size: 13px; line-height: 1.6; }
.nt-form input:disabled { background: var(--surface-3); color: var(--muted); cursor: not-allowed; }
.nt-form-section { padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); }
.nt-section-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.nt-section-no { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 9px; background: var(--primary-soft); color: var(--primary-700); font-size: 11px; font-weight: 850; letter-spacing: .04em; }
.nt-section-head h3 { margin: 0; color: var(--ink); font-size: 15px; }
.nt-section-head p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.choice-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-field legend { padding: 0; margin-bottom: 5px; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-option { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 9px 13px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--body); font-size: 13px; font-weight: 700; cursor: pointer; touch-action: manipulation; transition: border-color .15s, background .15s, color .15s, box-shadow .15s; }
.choice-option input[type="radio"] { position: absolute; width: 1px; min-height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.choice-option:hover { border-color: var(--primary-600); color: var(--primary-700); }
.choice-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-700); box-shadow: 0 0 0 2px var(--primary-soft-2); }
.choice-option:focus-within { outline: 3px solid var(--primary-soft-2); outline-offset: 2px; }
.field.invalid .choice-grid { padding: 4px; border: 1px solid var(--danger); border-radius: var(--r-sm); background: #fff8f8; }
.city-selection-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: -1px 0 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.city-selection-meta output { color: var(--primary-700); font-variant-numeric: tabular-nums; font-weight: 800; }
.field-limit { display: block; margin-top: 6px; color: var(--danger); font-size: 12px; font-weight: 650; }
.data-scope-note { gap: 4px; padding: 11px 12px; border: 1px solid #f6e0a8; border-radius: var(--r-sm); background: #fffbeb; }
.data-scope-note > span { color: var(--warning); }
.data-scope-note p { margin: 0; color: #7c5a10; font-size: 12.5px; font-weight: 500; line-height: 1.55; }
.nt-associate-warning { margin: 0; }
.model-policy { gap: 4px; padding: 11px 12px; border: 1px solid #cfe0ff; border-radius: var(--r-sm); background: #f5f8ff; }
.model-policy > span { color: var(--primary-700); }
.model-policy p { margin: 0; color: var(--muted); font-size: 12.5px; font-weight: 500; line-height: 1.55; }
.form-step-label { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; color: var(--ink); font-size: 14px; font-weight: 850; }
.form-step-label span { display: inline-grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; }
.nt-conditions { margin: 14px 0 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.nt-conditions > summary { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 12px; align-items: center; gap: 10px; min-height: 64px; padding: 10px 14px; list-style: none; cursor: pointer; touch-action: manipulation; transition: background .18s ease; }
.nt-conditions > summary::-webkit-details-marker { display: none; }
.nt-conditions > summary:hover { background: #f8fbff; }
.nt-conditions > summary:focus-visible { outline: 3px solid var(--primary-soft-2); outline-offset: -3px; }
.nt-condition-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.nt-condition-icon svg { width: 18px; height: 18px; }
.nt-condition-copy { display: grid; gap: 2px; min-width: 0; }
.nt-condition-copy b { color: var(--ink); font-size: 14px; }
.nt-condition-copy small { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.35; }
.nt-condition-optional { padding: 3px 7px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--muted); font-size: 11px; font-weight: 750; }
.nt-conditions > summary::after { content: "›"; color: var(--muted); font-size: 20px; line-height: 1; transform: rotate(90deg); transition: transform .18s ease; }
.nt-conditions[open] > summary { border-bottom: 1px solid var(--line); background: #f8fbff; }
.nt-conditions[open] > summary::after { transform: rotate(-90deg); }
.nt-condition-body { padding: 14px; background: var(--surface); }
.nt-condition-body .form-grid { gap: 12px; }
.nt-note { margin: 0 0 12px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.city-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.city-field legend { padding: 0; margin-bottom: 5px; }
.city-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.city-choice { min-height: var(--tap); padding: 8px 13px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); color: var(--body); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; touch-action: manipulation; transition: border-color .15s, background .15s, color .15s, box-shadow .15s; }
.city-choice:hover { border-color: var(--primary-600); color: var(--primary-700); }
.city-choice.selected { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-700); }
.city-choice:focus-visible { outline: 3px solid var(--primary-soft-2); outline-offset: 2px; }
.search-select { position: relative; }
.search-select > input { padding-right: 36px; }
.search-options { position: absolute; z-index: 20; top: calc(100% + 5px); left: 0; right: 0; max-height: 260px; overflow: auto; padding: 5px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--sh-2); }
.search-option { display: flex; width: 100%; min-height: 42px; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 0; border-radius: var(--r-xs); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.search-option:hover, .search-option:focus { background: var(--primary-soft); outline: none; }
.search-option small { color: var(--muted); white-space: nowrap; }
.search-empty { padding: 12px; color: var(--muted); font-size: 13px; text-align: center; }

/* ── 工作台主从布局（桌面双栏 / 移动堆栈） ─────────────── */
.workbench { display: grid; grid-template-columns: 1fr; min-height: calc(100dvh - var(--topbar-h)); }
.wb-list { min-width: 0; border-right: 1px solid var(--line); }
.wb-detail { min-width: 0; background: var(--surface-2); }
.wb-detail .detail-empty { display: grid; place-items: center; height: 100%; color: var(--muted); text-align: center; padding: 30px; }
.workbench.show-detail .fab { display: none; }

/* 列表头部 hero */
.wb-hero {
  padding: 22px 18px 16px; color: #fff;
  background: linear-gradient(135deg, #0b1f47, #1d4ed8 75%);
}
.wb-hero h1 { color: #fff; font-size: 22px; }
.wb-hero .sub { color: #cfe0ff; margin: 6px 0 0; font-size: 13.5px; }
.wb-hero .sub b { color: #fff; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.stat {
  padding: 12px; border-radius: var(--r-sm); background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.14); text-align: center; backdrop-filter: blur(2px);
}
.stat strong { display: block; font-size: 26px; line-height: 1.05; font-weight: 850; }
.stat span { font-size: 11.5px; color: #cfe0ff; }

/* 筛选工具条 */
.wb-toolbar {
  position: sticky; top: var(--topbar-h); z-index: 120;
  display: flex; gap: 9px; align-items: center; padding: 11px 14px;
  background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.wb-toolbar .inp { flex: 1; min-height: 40px; }
.wb-toolbar select.inp { flex: none; width: auto; min-width: 104px; }

/* 任务列表 */
.task-list { padding: 10px 14px; display: grid; gap: 9px; }
.task-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 14px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); cursor: pointer; box-shadow: var(--sh-1);
  transition: border-color .15s, box-shadow .15s, transform .05s;
}
.task-card:hover { border-color: var(--primary-soft-2); box-shadow: var(--sh-2); }
.task-card:active { transform: scale(.995); }
.task-card.active { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft-2), var(--sh-1); }
.task-card .tc-main { min-width: 0; }
.task-card .tc-name { display: flex; align-items: center; gap: 8px; }
.task-card .tc-name b { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-card .tc-major { font-size: 13px; color: var(--body); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-card .tc-sub { font-size: 12px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-card .chev { color: var(--line-strong); font-size: 20px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot-gray { background: #9aa7ba; }
.dot-blue { background: var(--primary); }
.dot-yellow { background: #f59e0b; animation: blink 1.3s ease-in-out infinite; }
.dot-green { background: var(--success); }
.dot-red { background: var(--danger); }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* 状态徽标 */
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.tag.new, .tag.ready { background: var(--primary-soft); color: var(--primary-700); }
.tag.analyzing, .tag.generating { background: var(--warning-bg); color: var(--warning); }
.tag.completed { background: var(--success-bg); color: var(--success); }
.tag.failed { background: var(--danger-bg); color: var(--danger); }
.tag.archived { background: var(--surface-3); color: var(--muted); }

/* 浮动创建按钮 */
.fab {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 130; width: min(680px, calc(100% - 32px));
  display: flex; gap: 10px;
}
.fab .btn { box-shadow: var(--sh-3); }

/* ── 详情区 ───────────────────────────────────────────── */
.detail { padding: 16px 16px 110px; max-width: 920px; }
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(135deg, #ffffff, #f7faff); box-shadow: 0 8px 24px rgba(15,23,42,.045); }
.detail-head .dh-text { min-width: 0; flex: 1; }
.detail-head h2 { margin-top: 2px; font-size: 22px; line-height: 1.28; letter-spacing: -.025em; }
.detail-crumb { display: flex; align-items: center; gap: 6px; color: #64748b; font-size: 11.5px; font-weight: 750; letter-spacing: .025em; }
.detail-crumb i { color: #aab7c9; font-style: normal; }
.detail-head .dh-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.detail-head .dh-meta i { color: #cbd5e1; font-style: normal; }
.detail-head .detail-back { flex: none; min-width: 70px; }
.detail-head .tag { margin-top: 2px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.profile-summary { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.profile-summary span, .profile-summary.pending { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: var(--r-pill); background: #f1f5f9; color: #475569; font-size: 11.5px; font-weight: 700; border: 1px solid #e2e8f0; }
.profile-summary.pending { color: var(--warning); background: var(--warning-bg); border-color: #fde68a; }
.detail-loading { display: grid; place-items: center; text-align: center; gap: 12px; padding: 40px 18px; color: var(--muted); }
.detail-loading .stepper { width: 100%; max-width: 360px; }
.detail-loading p { margin: 0; font-size: 14px; color: var(--body); }

/* 步骤条 */
.stepper { display: flex; align-items: center; padding: 18px 6px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: none; width: 76px; text-align: center; }
.step .ring { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-strong); color: var(--muted); background: var(--surface); font-size: 13px; font-weight: 800; transition: all .2s; }
.step .label { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.step.active .ring { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.step.active .label { color: var(--primary-700); }
.step.done .ring { border-color: var(--success); background: var(--success); color: #fff; }
.step.done .label { color: var(--success); }
.step-line { flex: 1; height: 2px; background: var(--line); margin: 0 -2px 22px; min-width: 14px; }
.step-line.done { background: var(--success); }

/* 分析概览 */
.meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.meta-card { min-width: 0; padding: 16px; border: 1px solid #e2e8f0; border-radius: 14px; background: linear-gradient(145deg, #fff, #f8fbff); text-align: left; box-shadow: 0 4px 14px rgba(15,23,42,.045); }
.meta-card span { display: block; font-size: 12px; color: #64748b; margin-bottom: 5px; font-weight: 700; }
.meta-card strong { display: block; color: #0f172a; font-size: clamp(24px, 4vw, 32px); line-height: 1; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.meta-card small { display: block; color: #94a3b8; font-size: 11.5px; margin-top: 8px; }
.meta-card.pool-card strong { color: var(--primary-700); font-size: clamp(20px, 3vw, 25px); letter-spacing: -.02em; }
.meta-card.pool-card.is-warning { border-color: #fde68a; background: linear-gradient(145deg, #fffdf6, #fffbeb); }
.meta-card.pool-card.is-warning strong { color: var(--warning); }
.analysis-rule-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 12px 0 16px; padding: 11px 13px; border: 1px solid #cfe0ff; border-radius: var(--r-sm); background: #f5f9ff; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.analysis-rule-note strong { color: var(--primary-700); }

/* 数据仪表板：图表优先，原始表格通过原生 details 按需展开。 */
.chart-dashboard { display: grid; gap: 12px; }
.chart-card { position: relative; min-width: 0; padding: 16px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; box-shadow: 0 4px 14px rgba(15,23,42,.04); overflow: hidden; }
.chart-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.chart-card-head > div:first-child { min-width: 0; }
.chart-card h4 { margin: 2px 0 0; color: #0f172a; font-size: 15px; line-height: 1.35; letter-spacing: -.01em; }
.chart-card p { margin: 3px 0 0; color: #94a3b8; font-size: 11.5px; line-height: 1.45; }
.chart-kicker { display: block; color: var(--primary-700); font-size: 10.5px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.chart-plot { min-width: 0; margin-top: 13px; }
.chart-plot svg { width: 100%; overflow: visible; }
.chart-legend { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.chart-legend-item { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 5px 7px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #64748b; font: inherit; font-size: 11.5px; font-weight: 750; cursor: pointer; touch-action: manipulation; transition: background .18s ease, color .18s ease, opacity .18s ease; }
.chart-legend-item:hover { background: #f1f5f9; color: #334155; }
.chart-legend-item:not(.active) { opacity: .46; }
.chart-legend-item i, .chart-tooltip-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; flex: none; }
.chart-legend-item.eligible i, .chart-tooltip-dot.eligible { background: #1e40af; }
.chart-legend-item.hires i, .chart-tooltip-dot.hires { background: #7dd3fc; }
.chart-hit-area { cursor: pointer; }
.year-bar, .funnel-bar { transition: opacity .18s ease, filter .18s ease; }
.year-bar-group:focus { outline: none; }
.year-bar-group:focus .year-bar, .year-bar-group.is-active .year-bar { filter: brightness(1.08) drop-shadow(0 2px 3px rgba(30,64,175,.16)); }
.funnel-row:focus { outline: none; }
.funnel-row:focus .funnel-bar, .funnel-row.is-active .funnel-bar { filter: brightness(1.12) drop-shadow(0 2px 2px rgba(30,64,175,.18)); }
.chart-interactive.chart-has-focus .year-bar-group:not(.is-active) .year-bar,
.chart-interactive.chart-has-focus .funnel-row:not(.is-active) .funnel-bar { opacity: .24; }
.year-comparison-chart[data-show-positions="false"] .year-position,
.year-comparison-chart[data-show-hires="false"] .year-hire { opacity: 0; pointer-events: none; }
.chart-tooltip { position: absolute; right: 14px; bottom: 14px; z-index: 2; min-width: 128px; padding: 9px 10px; border: 1px solid rgba(148,163,184,.42); border-radius: 9px; background: rgba(255,255,255,.96); box-shadow: 0 10px 25px rgba(15,23,42,.13); color: #0f172a; pointer-events: none; backdrop-filter: blur(8px); }
.chart-tooltip[hidden] { display: none; }
.chart-tooltip-kicker { display: block; color: #64748b; font-size: 10.5px; font-weight: 750; }
.chart-tooltip strong { display: block; margin-top: 1px; font-size: 12px; }
.chart-tooltip-values { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 5px; color: #475569; font-size: 11.5px; }
.chart-tooltip-values span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.chart-tooltip-values b { color: #0f172a; font-variant-numeric: tabular-nums; }
.chart-data-details { grid-column: 1 / -1; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.chart-data-details > summary { position: relative; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 13px; list-style: none; color: #334155; cursor: pointer; touch-action: manipulation; user-select: none; }
.chart-data-details > summary::-webkit-details-marker { display: none; }
.chart-data-details > summary::after { content: "⌄"; margin-left: auto; color: #94a3b8; font-size: 15px; transition: transform .18s ease; }
.chart-data-details[open] > summary { border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.chart-data-details[open] > summary::after { transform: rotate(180deg); }
.chart-data-details > summary span { font-size: 12.5px; font-weight: 800; }
.chart-data-details > summary small { color: #94a3b8; font-size: 11.5px; }
.chart-data-details .tbl-wrap { margin: 12px; }

/* 报告异步进度：服务端阶段轮询的可感知反馈 */
.report-progress, .report-complete { margin-bottom: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); }
.report-progress { border-color: #bfdbfe; background: linear-gradient(135deg, #f8fbff, #eff6ff); }
.report-progress-head, .section-heading, .report-complete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.report-progress-head > div > span, .section-heading span { display: block; color: var(--primary-700); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; }
.report-progress-head h3, .section-heading h3, .report-complete h3 { margin: 2px 0 0; font-size: 16px; }
.report-progress-head > strong { color: var(--primary); font-size: 24px; font-variant-numeric: tabular-nums; }
.linear-progress { height: 8px; margin: 14px 0 10px; overflow: hidden; border-radius: 999px; background: #dbe7fa; }
.progress-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #38bdf8); transition: width .35s ease; }
.progress-12 { width: 12%; }.progress-46 { width: 46%; }.progress-76 { width: 76%; }.progress-92 { width: 92%; }.progress-100 { width: 100%; }
.report-progress-detail { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--body); font-size: 13px; font-weight: 650; }
.report-stage-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 0; margin: 15px 0 0; list-style: none; }
.report-stage-list li { display: grid; justify-items: center; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 700; text-align: center; }
.report-stage-list i { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--muted); font-style: normal; }
.report-stage-list li.done { color: var(--success); }.report-stage-list li.done i { border-color: var(--success); background: var(--success); color: #fff; }
.report-stage-list li.active { color: var(--primary-700); }.report-stage-list li.active i { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 0 0 3px var(--primary-soft); }
.report-progress-note { margin: 12px 0 0; font-size: 12px; text-align: center; }
.report-complete { align-items: center; border-color: #bbf7d0; background: linear-gradient(135deg, #f0fdf4, #ffffff); }
.report-complete-copy { min-width: 0; }.report-complete-copy > span { color: var(--success); font-size: 12px; font-weight: 850; }.report-complete-copy p { margin: 5px 0 0; color: var(--muted); font-size: 12.5px; }
.report-complete-actions { display: flex; gap: 8px; flex: none; }.report-complete-actions .btn { min-height: 38px; }

/* 区块 / 折叠 */
.panel { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); margin-top: 14px; overflow: hidden; }
.panel > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px; cursor: pointer; user-select: none; }
.panel > header h3 { margin: 0; }
.panel > header .chev { color: var(--muted); transition: transform .2s; font-size: 13px; }
.panel.collapsed > header .chev { transform: rotate(-90deg); }
.panel.collapsed > .panel-body { display: none; }
.panel-body { padding: 4px 15px 15px; }

/* 表格 */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th, .tbl td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { background: var(--surface-3); font-weight: 800; color: var(--body); position: sticky; top: 0; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .pill { padding: 2px 8px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; background: var(--primary-soft); color: var(--primary-700); }

/* 推荐列表 */
.rec-list { display: grid; gap: 9px; }
.recommendation-section { margin-top: 16px; }
.section-heading { align-items: flex-end; margin-bottom: 10px; }
.section-heading > b { padding: 4px 8px; border-radius: var(--r-pill); background: var(--primary-soft); color: var(--primary-700); font-size: 11.5px; }
.rec {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  padding: 13px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  box-shadow: var(--sh-1);
}
.rec .rank { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg,#143a86,#1d4ed8); color: #fff; font-weight: 850; font-size: 13px; display: grid; place-items: center; flex: none; }
.rec .r-org { font-size: 14.5px; font-weight: 750; }
.rec .r-sub { font-size: 12.5px; color: var(--body); margin-top: 2px; }
.rec .r-reasons { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.rec .r-meter { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }

/* 警告 / 提示 */
.callout { padding: 11px 14px; border-radius: var(--r-sm); font-size: 13px; margin-bottom: 12px; border: 1px solid transparent; }
.callout.error { background: var(--danger-bg); color: var(--danger); border-color: #f7c5c5; }
.callout.info { background: var(--info-bg); color: var(--info); border-color: #bfe3f5; }
.callout.warn { background: var(--warning-bg); color: var(--warning); border-color: #f6e0a8; }
.callout ul { margin: 5px 0 0; padding-left: 18px; }

/* 详情操作区 */
.detail-actions { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.detail-actions .note { text-align: center; font-size: 12.5px; }

/* ── 骨架屏 ───────────────────────────────────────────── */
.skeleton { position: relative; overflow: hidden; background: var(--surface-3); border-radius: var(--r-xs); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); animation: shimmer 1.25s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.sk-line { height: 12px; margin: 8px 0; border-radius: 6px; }

/* ── 空状态 ───────────────────────────────────────────── */
.empty { padding: 42px 22px; text-align: center; color: var(--muted); }
.empty .ill { width: 116px; height: 116px; margin: 0 auto 14px; }
.empty b { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 6px; }
.empty p { margin: 0 auto; max-width: 320px; }

/* ── Toast ────────────────────────────────────────────── */
.toast-stack { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 1000; display: grid; gap: 8px; width: min(420px, calc(100vw - 24px)); }
.toast-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line); border-left-width: 4px;
  border-radius: var(--r-sm); box-shadow: var(--sh-3); font-size: 13.5px; color: var(--ink);
  animation: toast-in .22s ease;
}
.toast-item.out { animation: toast-out .2s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }
.toast-item.success { border-left-color: var(--success); }
.toast-item.error { border-left-color: var(--danger); }
.toast-item.info { border-left-color: var(--info); }
.toast-item.warn { border-left-color: var(--warning); }
.toast-item .ic { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.toast-item .tx { flex: 1; min-width: 0; }
.toast-item .tx b { display: block; margin-bottom: 1px; }
.toast-item .close { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; }

/* ── 弹窗 ─────────────────────────────────────────────── */
.modal-backdrop { position: fixed; inset: 0; z-index: 900; background: rgba(11,20,38,.5); display: grid; place-items: end center; padding: 0; animation: fade-in .18s ease; }
@keyframes fade-in { from { opacity: 0; } }
.modal {
  width: 100%; max-width: 520px; max-height: 92dvh; overflow-y: auto;
  background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: var(--sh-3); animation: sheet-up .24s cubic-bezier(.2,.8,.2,1);
  padding: 20px 20px max(20px, env(safe-area-inset-bottom));
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: .6; } }
.modal h2 { font-size: 19px; margin-bottom: 4px; }
.modal .modal-sub { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.modal .modal-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.modal .form-grid { gap: 12px; }
.modal:has(#nt-form) { max-width: 680px; }

.modal-scrim { position: fixed; inset: 0; background: rgba(11,20,38,.5); z-index: 900; display: grid; place-items: center; padding: 18px; animation: fade-in .18s ease; }
.confirm {
  width: min(380px, 100%); background: var(--surface); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--sh-3); text-align: center; animation: pop .2s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: .5; } }
.confirm .ic { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--danger-bg); color: var(--danger); }
.confirm h3 { margin: 0 0 6px; color: var(--ink); }
.confirm p { margin: 0 0 18px; font-size: 13.5px; }
.confirm .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ── 管理台 ───────────────────────────────────────────── */
.admin { display: grid; grid-template-columns: 1fr; min-height: calc(100dvh - var(--topbar-h)); }
.adm-side { background: #0b1f47; color: #cfe0ff; padding: 14px 12px; }
.adm-side .grp-title { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6f8bc4; margin: 14px 8px 6px; }
.adm-nav { display: flex; flex-direction: column; gap: 3px; }
.adm-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm);
  color: #cfe0ff; text-decoration: none; font-size: 14px; font-weight: 600; cursor: pointer;
}
.adm-nav a:hover { background: rgba(255,255,255,.07); }
.adm-nav a.active { background: var(--primary); color: #fff; box-shadow: var(--sh-1); }
.adm-nav-icon {
  display: grid; place-items: center;
  width: 18px; height: 18px; flex: 0 0 18px;
}
.adm-nav-icon svg { width: 18px; height: 18px; }
.adm-main { padding: 18px 16px 60px; min-width: 0; }
.adm-main h2.sec { font-size: 19px; margin-bottom: 4px; }
.adm-main .sec-desc { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.adm-grid { display: grid; gap: 10px; }
.adm-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); box-shadow: var(--sh-1);
}
.adm-row .ar-main { min-width: 0; }
.adm-row .ar-title { font-weight: 750; font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-row .ar-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.adm-row .ar-actions { display: flex; gap: 8px; flex: none; }

.audit-search { display: flex; gap: 8px; margin-bottom: 12px; }
.audit-search .inp { min-height: 40px; }

/* ── 响应式：桌面 ─────────────────────────────────────── */
@media (min-width: 768px) {
  .page { padding: 22px 20px 40px; }
  .modal-backdrop { place-items: center; padding: 18px; }
  .modal { border-radius: var(--r-lg); }
  .fab { bottom: 24px; }
  .task-list { grid-template-columns: repeat(2, 1fr); }
  .chart-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .workbench { grid-template-columns: minmax(380px, 460px) 1fr; }
  .wb-detail { display: block; }
  .task-list { grid-template-columns: 1fr; }
  .detail { max-width: 920px; margin: 0 auto; padding: 24px 28px 60px; }
  .admin { grid-template-columns: 240px 1fr; }
  .adm-side { position: sticky; top: var(--topbar-h); height: calc(100dvh - var(--topbar-h)); overflow-y: auto; }
  .adm-main { padding: 24px 28px 60px; max-width: 1100px; }
  .adm-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 移动端：主从切换（默认显示列表，进入详情时 body[data-view="detail"]） */
@media (max-width: 1023px) {
  .workbench.show-detail .wb-list { display: none; }
  .workbench:not(.show-detail) .wb-detail { display: none; }
  .workbench.show-detail .wb-detail { display: block; }
  .detail-head { position: sticky; top: var(--topbar-h); z-index: 110; margin: -16px -16px 16px; padding: 12px 16px; background: rgba(246,248,252,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
  .detail-head .tag { flex: none; }
}

@media (max-width: 560px) {
  .modal:has(#nt-form) { max-width: 100%; }
  .nt-form-section { padding: 14px; }
  #nt-form .form-grid { grid-template-columns: 1fr; }
  #nt-form .form-grid .col-2 { grid-column: span 1; }
  .choice-option { flex: 1 1 auto; }
  .choice-grid { gap: 8px; }
  .city-choice { flex: 0 0 calc(25% - 6px); padding-inline: 6px; }
  .detail-head { gap: 10px; padding: 13px; }
  .detail-head h2 { font-size: 19px; }
  .detail-head .detail-back { min-width: 44px; padding: 0 10px; font-size: 0; }
  .detail-head .detail-back svg { width: 19px; height: 19px; }
  .detail-head .tag { max-width: 86px; overflow: hidden; text-overflow: ellipsis; }
  .meta-grid { gap: 8px; }
  .meta-card { padding: 13px 10px; }
  .meta-card strong { font-size: 24px; }
  .meta-card.pool-card strong { font-size: 18px; }
  .meta-card small { font-size: 10.5px; }
  .chart-card { padding: 14px; }
  .chart-card-head { flex-direction: column; align-items: stretch; gap: 8px; }
  .chart-card-head .yr-row { justify-content: flex-start; }
  .chart-legend { justify-content: flex-start; }
  .chart-legend-item { min-height: 36px; }
  .yr-btn { min-height: 40px; }
  .chart-tooltip { right: 10px; bottom: 10px; }
  .chart-data-details > summary { align-items: flex-start; flex-wrap: wrap; }
  .chart-data-details > summary::after { position: absolute; right: 13px; }
  .report-complete { align-items: stretch; flex-direction: column; }
  .report-complete-actions { width: 100%; }
  .report-complete-actions .btn { flex: 1; }
  .report-progress, .report-complete { padding: 14px; }
  .report-stage-list { gap: 2px; }
  .report-stage-list li { font-size: 10.5px; }
}

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