:root {
  /* 康礼品牌：紫 × 金（金 #D9B45B 取自导师制 PPT，米白 #F4F1EA 取自 PPT 背景） */
  --purple-950: #241640;
  --purple-900: #3b2370;
  --purple-800: #4a2d8a;
  --purple-700: #5b3ba8;
  --purple-500: #7c5cd6;
  --purple-300: #b9a5e8;
  --purple-100: #efeafb;
  --gold: #d9b45b;
  --gold-600: #b58e2e;
  --gold-300: #e8cd8c;
  --gold-100: #f7edd4;
  --cream: #f4f1ea;
  --ink: #211c33;
  --muted: #7a7290;
  --line: #e8e2f2;
  --card: #ffffff;
  --red: #c0392b;
  --amber: #b5811a;
  --green: #1f8a5b;
  --shadow: 0 1px 2px rgba(36,22,64,.06), 0 8px 24px rgba(59,35,112,.08);
  --shadow-lg: 0 4px 12px rgba(36,22,64,.10), 0 16px 40px rgba(59,35,112,.14);
  --radius: 16px;
  --serif: Georgia, "Times New Roman", "Songti SC", "STSong", "SimSun", serif;
}
* { box-sizing: border-box; }
/* 关键：让 hidden 属性真正生效（.modal-overlay 等用 display:flex，会覆盖 UA 的 [hidden]{display:none}） */
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(124,92,214,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(217,180,91,.12), transparent 55%),
    var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px; line-height: 1.6;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 26px 14px;
  background: linear-gradient(120deg, var(--purple-950) 0%, var(--purple-900) 45%, var(--purple-700) 100%);
  color: #fff; box-shadow: var(--shadow-lg);
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-300), var(--gold));
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 24px; background: linear-gradient(135deg, var(--gold), var(--gold-300));
  color: var(--purple-900); box-shadow: 0 4px 12px rgba(217,180,91,.4);
}
.brand-text h1 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: .5px; font-family: var(--serif); }
.brand-text p { margin: 0; font-size: 11.5px; opacity: .82; letter-spacing: .4px; }
.topbar-right { display: flex; gap: 14px; align-items: flex-end; }
.field-inline { display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
.field-inline span { opacity: .85; letter-spacing: .3px; }
.field-inline select, .field-inline input {
  min-width: 150px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 9px;
  font-size: 13px; background: rgba(255,255,255,.12); color: #fff;
}
.field-inline select option { color: var(--ink); }

/* ---------- 标签页 ---------- */
.tabs { display: flex; gap: 6px; padding: 12px 26px 0; background: rgba(255,255,255,.72); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.tab {
  border: none; background: none; padding: 11px 20px; font-size: 14.5px; cursor: pointer;
  color: var(--muted); border-bottom: 3px solid transparent; font-weight: 600; letter-spacing: .3px;
  transition: color .18s, border-color .18s;
}
.tab:hover { color: var(--purple-700); }
.tab.active { color: var(--purple-800); border-bottom-color: var(--gold); }

main { padding: 24px 26px 48px; max-width: 1320px; margin: 0 auto; }
.view { display: none; }
.view.active { display: block; animation: fade .28s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 面板 ---------- */
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; position: relative;
}
.panel::before {
  content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--purple-700), var(--purple-500), var(--gold));
  opacity: .55;
}
.panel h2 { margin: 0 0 8px; font-size: 17px; font-family: var(--serif); color: var(--purple-900); letter-spacing: .3px; }
.panel h2::before { content: "◆ "; color: var(--gold); font-size: .8em; }
.panel h3 { margin: 14px 0 6px; font-size: 14.5px; font-family: var(--serif); color: var(--purple-800); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.panel-head h2::before { content: ""; }
.hint { color: var(--muted); font-size: 12.5px; margin: 0 0 14px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- 表单 ---------- */
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row.inline { align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 160px; margin-bottom: 12px; }
.field > span { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: .2px; }
.field input, .field select, .field textarea {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px;
  font-family: inherit; background: #fff; color: var(--ink); width: 100%; transition: border .15s, box-shadow .15s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--purple-500); box-shadow: 0 0 0 3px rgba(124,92,214,.16);
}

.star-detail { margin: 6px 0 4px; }
.star-detail summary { cursor: pointer; color: var(--purple-700); font-size: 13px; font-weight: 600; }
.star-detail .field { margin-top: 8px; }

.btn {
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  cursor: pointer; font-size: 14px; font-weight: 600; color: var(--purple-800); transition: all .15s;
}
.btn:hover { border-color: var(--purple-300); background: var(--purple-100); }
.btn.primary {
  background: linear-gradient(120deg, var(--purple-800), var(--purple-700)); color: #fff; border-color: transparent;
  box-shadow: 0 4px 14px rgba(59,35,112,.28);
}
.btn.primary:hover { filter: brightness(1.06); }
.btn.gold { background: linear-gradient(120deg, var(--gold), var(--gold-300)); color: var(--purple-900); border-color: transparent; }
.btn.gold:hover { filter: brightness(1.03); }
.btn.sm { padding: 6px 11px; font-size: 12.5px; }
.btn.danger { color: var(--red); border-color: #f3c2bd; }
.btn.danger:hover { background: #fdf0ee; }

/* ---------- 上传 ---------- */
.upload-zone { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; }
.upload-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 1.5px dashed var(--purple-300);
  border-radius: 10px; cursor: pointer; color: var(--purple-700); font-weight: 600; font-size: 13px; background: var(--purple-100);
  transition: all .15s;
}
.upload-btn:hover { border-color: var(--purple-500); background: #e6dcf9; }
.media-preview { display: flex; gap: 10px; flex-wrap: wrap; }
.media-item { position: relative; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #f3f0fa; }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-item .rm {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(36,22,64,.7); color: #fff; border: none; cursor: pointer; font-size: 12px; line-height: 20px; padding: 0;
}

/* ---------- 分类结果 ---------- */
.classify-result { padding: 4px 0; }
.classify-result.empty { color: var(--muted); font-size: 13px; }
.engine-tag { display: inline-block; font-size: 11px; padding: 2px 9px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.engine-tag.llm { background: var(--gold-100); color: var(--gold-600); }
.engine-tag.heuristic { background: #e8e8ee; color: #6b6b78; }
.clz-dim { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.clz-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  border: 1.5px solid var(--line); cursor: pointer; background: #fff; font-size: 13px; font-weight: 600; transition: all .12s;
}
.clz-chip:hover { border-color: var(--purple-300); }
.clz-chip.selected { border-color: var(--purple-700); background: var(--purple-100); color: var(--purple-800); }
.clz-chip .pct { font-size: 11px; color: var(--muted); font-weight: 500; }
.clz-chip.selected .pct { color: var(--purple-500); }

.lv-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.lv-btn { padding: 7px 13px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 13px; font-weight: 700; transition: all .12s; }
.lv-btn:hover { border-color: var(--purple-300); }
.lv-btn.selected { background: linear-gradient(120deg, var(--purple-800), var(--purple-700)); color: #fff; border-color: transparent; }
.lv-btn .tag { display: block; font-size: 10.5px; font-weight: 500; opacity: .82; }

.evidence { margin: 8px 0; font-size: 12px; color: var(--muted); }
.evidence b { color: var(--ink); }
.tag-kw { display: inline-block; padding: 1px 8px; margin: 2px; background: var(--purple-100); color: var(--purple-700); border-radius: 6px; font-size: 11.5px; }

.alert { padding: 11px 13px; border-radius: 11px; font-size: 13px; margin: 8px 0; }
.alert.red { background: #fdf0ee; color: var(--red); border: 1px solid #f3c2bd; }
.alert.amber { background: #fbf3e3; color: var(--amber); border: 1px solid #f0dca8; }
.alert.green { background: #ecf7f1; color: var(--green); border: 1px solid #bfe6d4; }

/* ---------- 信息流 ---------- */
.feed { display: flex; flex-direction: column; gap: 12px; }
.feed-item { border: 1px solid var(--line); border-radius: 13px; padding: 14px 16px; background: #fff; box-shadow: 0 1px 3px rgba(36,22,64,.05); }
.feed-item:hover { box-shadow: var(--shadow); }
.feed-item .meta { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.feed-item .meta b { color: var(--purple-800); font-size: 13px; }
.feed-item .txt { font-size: 13.5px; white-space: pre-wrap; }
.feed-item .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.feed-media { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.feed-media img, .feed-media video { height: 72px; border-radius: 9px; border: 1px solid var(--line); object-fit: cover; max-width: 130px; }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.pill.dim { background: var(--purple-100); color: var(--purple-700); }
.pill.lv { background: var(--gold-100); color: var(--gold-600); }
.pill.green { background: #dcf3e7; color: #157347; }
.pill.amber { background: #fbf0d4; color: #92660a; }
.pill.red { background: #fbe3e0; color: #b02a20; }
.pill.redline { background: #fbe3e0; color: #b02a20; }

/* ---------- 子标签 ---------- */
.sub-tabs { display: flex; gap: 6px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.sub-tab { border: none; background: none; padding: 9px 18px; cursor: pointer; color: var(--muted); font-size: 13.5px; font-weight: 600; border-bottom: 2px solid transparent; transition: all .15s; }
.sub-tab:hover { color: var(--purple-700); }
.sub-tab.active { color: var(--purple-800); border-bottom-color: var(--gold); }
.stab { display: none; }
.stab.active { display: block; animation: fade .22s ease; }

/* ---------- 表格 ---------- */
.table-wrap { overflow: auto; max-height: 470px; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { position: sticky; top: 0; background: var(--purple-100); font-size: 12px; color: var(--purple-800); }
tr:hover td { background: #faf7ff; }
.cohort-badge { font-size: 10.5px; background: var(--gold); color: var(--purple-900); border-radius: 999px; padding: 1px 7px; font-weight: 700; margin-left: 6px; }

.badge { background: var(--purple-100); color: var(--purple-700); border-radius: 999px; padding: 1px 10px; font-size: 12px; font-weight: 700; }

/* ---------- 报告 ---------- */
.report-body { margin-top: 10px; }
.report-body.empty { color: var(--muted); padding: 34px; text-align: center; }

.rpt-cover {
  border-radius: 20px; overflow: hidden; color: #fff; margin-bottom: 20px;
  background: linear-gradient(130deg, var(--purple-950) 0%, var(--purple-900) 40%, var(--purple-700) 100%);
  box-shadow: var(--shadow-lg); position: relative;
}
.rpt-cover .inner { padding: 30px 32px 26px; position: relative; z-index: 1; }
.rpt-cover .school { font-size: 13px; letter-spacing: 3px; color: var(--gold-300); text-transform: uppercase; }
.rpt-cover h1 { margin: 10px 0 2px; font-size: 30px; font-family: var(--serif); font-weight: 700; letter-spacing: 1px; }
.rpt-cover h1 .zh-name { color: var(--gold); }
.rpt-cover .sub { font-size: 13px; opacity: .85; letter-spacing: 1px; }
.rpt-cover .rule { height: 2px; background: linear-gradient(90deg, var(--gold), transparent); margin: 16px 0 14px; }
.rpt-meta { display: flex; gap: 26px; flex-wrap: wrap; font-size: 13px; }
.rpt-meta .k { color: var(--gold-300); margin-right: 5px; }

.stat-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 720px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-align: center; box-shadow: var(--shadow);
}
.stat-card .num { font-size: 26px; font-weight: 800; font-family: var(--serif); color: var(--purple-800); }
.stat-card .num.gold { color: var(--gold-600); }
.stat-card .lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }

.rpt-section { margin: 22px 0; }
.rpt-section > h3 { font-size: 16px; font-family: var(--serif); color: var(--purple-900); margin: 0 0 12px; padding-bottom: 7px; border-bottom: 2px solid var(--gold-300); display: flex; align-items: center; gap: 8px; }
.rpt-section > h3::before { content: "❖"; color: var(--gold); }

.dim-grid { display: grid; grid-template-columns: 1.05fr 1.4fr; gap: 18px; align-items: center; }
@media (max-width: 820px) { .dim-grid { grid-template-columns: 1fr; } }
.radar-box { background: #fbf9f4; border: 1px solid var(--line); border-radius: 14px; padding: 10px; text-align: center; }
.radar-box svg { max-width: 100%; height: auto; }
.dim-list { display: flex; flex-direction: column; }
.dim-bar { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.dim-bar:last-child { border-bottom: none; }
.dim-bar .dname { width: 120px; font-weight: 700; font-size: 13px; flex-shrink: 0; color: var(--ink); }
.dim-bar .dname small { display: block; font-weight: 400; color: var(--muted); font-size: 10.5px; }
.lv-scale { display: flex; gap: 3px; flex: 1; }
.lv-cell { flex: 1; text-align: center; padding: 4px 0; border-radius: 6px; font-size: 10.5px; background: #efecf7; color: #b0a9c4; }
.lv-cell.on { color: #fff; font-weight: 700; }
.lv-cell.on.L1 { background: #94a3b8; }
.lv-cell.on.L2 { background: #8ea8d8; }
.lv-cell.on.L3 { background: #a78bdd; }
.lv-cell.on.L4 { background: #6d4fc7; }
.lv-cell.on.L5 { background: var(--gold); color: var(--purple-900); }
.dim-bar .cnt { width: 44px; text-align: right; color: var(--muted); font-size: 12px; }

.rpt-note { background: var(--gold-100); border: 1px solid var(--gold-300); border-radius: 11px; padding: 11px 14px; font-size: 12.5px; color: #7a5c12; margin: 8px 0; }

.hl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.hl-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; box-shadow: 0 1px 3px rgba(36,22,64,.05);
  position: relative; overflow: hidden;
}
.hl-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--purple-500), var(--gold)); }
.hl-card .meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.hl-card .txt { font-size: 13.5px; }

.rpt-sign { display: flex; gap: 40px; justify-content: flex-end; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.rpt-footer { text-align: center; margin-top: 20px; font-size: 11.5px; color: var(--muted); letter-spacing: 1px; }

/* ---------- 打印 ---------- */
@media print {
  .topbar, .tabs, .sub-tabs, .btn, footer, #toast, .report-toolbar, .foot { display: none !important; }
  body { background: #fff; }
  main { padding: 0; max-width: 100%; }
  .panel { box-shadow: none; border: none; padding: 0; }
  .view { display: block !important; }
  #view-report { display: block !important; }
  #view-observe, #view-mentor, #view-roster { display: none !important; }
  .rpt-cover { box-shadow: none; }
}

/* ---------- toast / 页脚 ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--purple-950); color: #fff; padding: 11px 20px; border-radius: 12px; font-size: 13.5px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 99;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 12px 0 30px; letter-spacing: .4px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.gold-text { color: var(--gold-600); }

/* ---------- 可搜索下拉 / 多选 ---------- */
.ss, .ms { position: relative; width: 100%; }
.ss-trigger, .ms-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  cursor: pointer; font-size: 14px; color: var(--ink); text-align: left; font-family: inherit;
}
.ss-trigger:focus, .ms-trigger:focus { outline: none; border-color: var(--purple-500); box-shadow: 0 0 0 3px rgba(124,92,214,.16); }
.ss-value.ph, .ms-value.ph { color: var(--muted); }
.ss-caret, .ms-caret { color: var(--purple-500); font-size: 12px; }
.ss-pop, .ms-pop {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 8px; max-height: 320px;
}
.ss-pop.open, .ms-pop.open { display: block; animation: fade .15s ease; }
.ss-input, .ms-input {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; margin-bottom: 6px;
}
.ss-input:focus, .ms-input:focus { outline: none; border-color: var(--purple-500); }
.ss-list, .ms-list { max-height: 250px; overflow-y: auto; }
.ss-opt, .ms-opt {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14px;
}
.ss-opt:hover, .ms-opt:hover { background: var(--purple-100); }
.ss-opt.sel, .ms-opt.sel { background: #efeafb; color: var(--purple-800); }
.ss-opt-name { font-weight: 600; }
.ss-opt-sub { font-size: 12px; color: var(--muted); }
.ss-none { padding: 12px; text-align: center; color: var(--muted); font-size: 13px; }
.ms-check { width: 18px; height: 18px; border: 1.5px solid var(--purple-300); border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; flex-shrink: 0; }
.ms-opt.sel .ms-check { background: var(--purple-700); border-color: var(--purple-700); }

/* 顶栏深色下拉 */
.ss-dark .ss-trigger {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff;
}
.ss-dark .ss-value.ph { color: rgba(255,255,255,.7); }
.ss-dark .ss-caret { color: var(--gold-300); }
.ss-dark .ss-pop { background: #fff; }
.ss-inline { display: flex; align-items: center; gap: 8px; }
.ss-inline > div { width: 200px; }

/* ---------- 弹窗 ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(24,14,44,.45); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-card {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); width: 100%; max-width: 460px;
  max-height: 90vh; overflow: auto; animation: fade .18s ease;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-family: var(--serif); color: var(--purple-900); font-size: 17px; }
.modal-x { border: none; background: none; font-size: 24px; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-x:hover { color: var(--red); }
.modal-body { padding: 18px 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }

/* 报告文本域 / 打印 */
#rptNote { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; font-family: inherit; resize: vertical; line-height: 1.7; }
#rptNote:focus { outline: none; border-color: var(--purple-500); box-shadow: 0 0 0 3px rgba(124,92,214,.16); }
.rpt-cover, .lv-cell.on, .stat-card, .hl-card { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
@media print { #rptNote { border: none; resize: none; } }

/* ---------- 移动端适配 ---------- */
@media (max-width: 760px) {
  .topbar { flex-direction: column; align-items: stretch; padding: 12px 14px; gap: 10px; }
  .topbar-right { flex-wrap: wrap; }
  .topbar-right .field-inline { flex: 1; min-width: 140px; }
  .topbar-right select, .ss-dark .ss-trigger { min-width: 0; width: 100%; }
  .brand-text h1 { font-size: 16px; }
  .tabs { padding: 8px 8px 0; overflow-x: auto; }
  .tab { padding: 10px 13px; font-size: 13px; white-space: nowrap; }
  main { padding: 14px 12px 40px; }
  .grid-2 { grid-template-columns: 1fr; gap: 12px; }
  .panel { padding: 15px; border-radius: 14px; }
  .form-row { flex-direction: column; gap: 0; }
  .field { min-width: 0; }
  .btn { padding: 12px 16px; font-size: 15px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .dim-grid { grid-template-columns: 1fr; }
  .hl-grid { grid-template-columns: 1fr; }
  .ss-inline > div { width: 150px; }
  .rpt-cover .inner { padding: 20px 18px; }
  .rpt-cover h1 { font-size: 23px; }
  .rpt-meta { gap: 12px; }
  .upload-zone { flex-wrap: wrap; }
  .table-wrap { max-height: 380px; }
  th, td { padding: 7px 8px; font-size: 12px; }
  .ss-opt, .ms-opt { padding: 11px 10px; }
  .ss-trigger, .ms-trigger { padding: 12px; }
}
