/* 苏声采集 · 全局样式 */

:root {
  --paper: #f4f1e9;
  --card: #fffdf8;
  --ink: #1c2523;
  --ink-2: #5a6662;
  --ink-3: #8b948f;
  --line: #e7e1d4;
  --line-2: #d9d2c1;
  --teal: #23685a;
  --teal-2: #17493f;
  --teal-soft: #e6f0ec;
  --red: #b74d35;
  --red-soft: #faeae4;
  --gold: #ab7c22;
  --gold-soft: #f8efd9;
  --green: #2c7a58;
  --green-soft: #e4f1ea;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 14px 34px -22px rgba(28, 37, 35, .45);
  --shadow-lg: 0 40px 80px -50px rgba(28, 37, 35, .6);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 8% -10%, #e9f1ec 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 0%, #f7ecdd 0%, transparent 55%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: .01em; }

button { font-family: inherit; }

[hidden] { display: none !important; }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* ---------------- 顶栏 ---------------- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(1.4) blur(14px);
  background: rgba(250, 248, 242, .82);
  border-bottom: 1px solid rgba(217, 210, 193, .7);
}

.topbar__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  height: 64px;
  display: flex; align-items: center; gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand__seal {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(145deg, var(--teal), var(--teal-2));
  color: #f4efe2; display: grid; place-items: center;
  font-family: var(--serif); font-size: 19px; font-weight: 700;
  box-shadow: 0 8px 18px -10px rgba(35, 104, 90, .9);
}
.brand__name { font-weight: 700; font-size: 16px; letter-spacing: .04em; }
.brand__sub { font-size: 11px; color: var(--ink-3); letter-spacing: .18em; margin-top: -4px; }

.topbar__spacer { flex: 1; }

.topbar__proj {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--teal-soft); color: var(--teal-2);
  font-size: 12.5px; font-weight: 600;
  max-width: 320px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.topbar__proj i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 3px rgba(35, 104, 90, .15);
}

.userchip {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 6px 5px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 253, 248, .8);
  font-size: 13px;
}
.userchip__avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold);
  display: grid; place-items: center; font-weight: 700; font-size: 12px;
}
.userchip__meta { line-height: 1.15; }
.userchip__meta b { display: block; font-size: 13px; }
.userchip__meta span { font-size: 11px; color: var(--ink-3); }

/* ---------------- 按钮 / 表单 ---------------- */

.btn {
  --btn-bg: var(--card);
  --btn-fg: var(--ink);
  --btn-bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border-radius: 12px; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, opacity .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn:disabled {
  opacity: 1; cursor: not-allowed; transform: none; box-shadow: none;
  background: #ede8db; color: #a9a294; border-color: transparent;
}
.btn--ghost:disabled { background: transparent; color: #b6afa2; }

.btn--primary { --btn-bg: linear-gradient(160deg, #2a7464, #1a5045); --btn-fg: #f6f2e7; --btn-bd: transparent; }
.btn--accent { --btn-bg: linear-gradient(160deg, #c86243, #a9472c); --btn-fg: #fff7f2; --btn-bd: transparent; }
.btn--ghost { --btn-bg: transparent; }
.btn--danger { --btn-fg: var(--red); --btn-bd: #e8c4ba; --btn-bg: var(--red-soft); }
.btn--sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.btn--lg { height: 54px; padding: 0 30px; font-size: 16px; border-radius: 15px; }
.btn--block { width: 100%; }
.btn--link {
  border: none; background: none; color: var(--ink-3); cursor: pointer;
  font-size: 13px; padding: 4px 8px; border-radius: 8px;
}
.btn--link:hover { color: var(--teal); background: var(--teal-soft); }

.btn .dot {
  width: 9px; height: 9px; border-radius: 50%; background: #ffd9cd;
  box-shadow: 0 0 0 0 rgba(255, 217, 205, .7);
}
.btn.is-rec { --btn-bg: linear-gradient(160deg, #c4553a, #95351f); }
.btn.is-rec .dot { background: #fff; animation: pulse 1.1s infinite; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); }
  70% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; letter-spacing: .02em; }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 13px;
  border: 1px solid var(--line-2); border-radius: 11px;
  background: #fffefb; color: var(--ink); font-size: 14px; font-family: inherit;
  transition: border-color .16s, box-shadow .16s;
}
.textarea { height: auto; min-height: 120px; padding: 11px 13px; resize: vertical; line-height: 1.7; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(35, 104, 90, .12);
}
.hint { font-size: 11.5px; color: var(--ink-3); margin-top: 5px; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }

.checkline { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: var(--ink-2); margin: 14px 0 4px; }
.checkline input { margin-top: 3px; accent-color: var(--teal); width: 15px; height: 15px; }

/* ---------------- 通用卡片 ---------------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.card__pad { padding: 22px 24px; }
.card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card__head h3 { font-size: 15px; }
.card__head .spacer { flex: 1; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  background: #eee9dd; color: var(--ink-2);
}
.chip--approved { background: var(--green-soft); color: var(--green); }
.chip--pending { background: var(--gold-soft); color: var(--gold); }
.chip--rejected { background: var(--red-soft); color: var(--red); }
.chip--teal { background: var(--teal-soft); color: var(--teal-2); }

/* ---------------- 登录 / 注册 ---------------- */

.auth {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 0; margin: 44px auto 64px;
  border-radius: 26px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--card);
  min-height: 560px;
}

.auth__hero {
  position: relative; padding: 46px 44px;
  background:
    radial-gradient(700px 300px at 120% -10%, rgba(201, 162, 39, .22), transparent 60%),
    radial-gradient(600px 400px at -10% 110%, rgba(35, 104, 90, .55), transparent 65%),
    linear-gradient(155deg, #21594e, #12332c 70%);
  color: #f1ede1;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.auth__hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 18px 18px; opacity: .5; pointer-events: none;
}
.auth__hero > * { position: relative; z-index: 1; }
.auth__kicker { font-size: 11.5px; letter-spacing: .32em; color: #cfe0d6; text-transform: uppercase; }
.auth__title { font-size: 34px; line-height: 1.25; margin: 14px 0 12px; font-family: var(--serif); font-weight: 700; }
.auth__title em { font-style: normal; color: #f0c96a; }
.auth__desc { font-size: 13.5px; color: #c6d6cd; max-width: 34em; }
.auth__rules { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.auth__rules li {
  display: flex; gap: 11px; font-size: 13px; color: #dbe7e0; line-height: 1.55;
}
.auth__rules b { color: #fff; font-weight: 600; }
.auth__rules .num {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid rgba(240, 201, 106, .55); color: #f0c96a;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
}
.auth__foot { margin-top: auto; padding-top: 30px; font-size: 11.5px; color: #9fb5aa; }

.auth__panel { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.tabs { display: flex; gap: 6px; background: #efeade; padding: 4px; border-radius: 12px; margin-bottom: 24px; }
.tabs button {
  flex: 1; height: 38px; border: none; border-radius: 9px; background: none;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.tabs button.is-on { background: var(--card); color: var(--ink); box-shadow: 0 3px 10px -6px rgba(0, 0, 0, .35); }
.auth__title2 { font-size: 22px; margin-bottom: 4px; }
.auth__sub { font-size: 12.5px; color: var(--ink-3); margin-bottom: 22px; }

/* ---------------- 状态页 ---------------- */

.status-page { max-width: 760px; margin: 52px auto 70px; }
.status-card { padding: 34px 36px; text-align: center; }
.status-card__icon {
  width: 66px; height: 66px; border-radius: 20px; margin: 0 auto 18px;
  display: grid; place-items: center; font-size: 28px;
  background: var(--teal-soft); color: var(--teal);
}
.status-card__icon.is-warn { background: var(--gold-soft); color: var(--gold); }
.status-card__icon.is-bad { background: var(--red-soft); color: var(--red); }
.status-card h2 { font-size: 24px; margin-bottom: 8px; }
.status-card p { color: var(--ink-2); font-size: 14px; margin: 0 auto; max-width: 46em; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0 4px; text-align: left; }
.step { padding: 14px; border-radius: 13px; background: #f7f4ec; border: 1px solid var(--line); }
.step b { font-size: 12.5px; display: flex; gap: 8px; align-items: center; }
.step b i {
  width: 20px; height: 20px; border-radius: 50%; background: var(--teal); color: #fff;
  font-style: normal; font-size: 11px; display: grid; place-items: center;
}
.step p { font-size: 12px; color: var(--ink-3); margin: 6px 0 0; }

.reason-box {
  margin-top: 18px; padding: 12px 16px; border-radius: 12px;
  background: var(--red-soft); color: #8c3a26; font-size: 13px; text-align: left;
}

/* ---------------- 工作台 ---------------- */

.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 22px; margin: 26px auto 60px; align-items: start; }
.workspace__main { display: grid; gap: 18px; }
.workspace__aside { display: grid; gap: 16px; position: sticky; top: 84px; }

/* 朗读卡 */

.rec { padding: 24px 26px 22px; }
.rec__top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.rec__top .spacer { flex: 1; }
.rec__count { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.rec__text {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.85;
  letter-spacing: .03em;
  color: #18211f;
  margin: 4px 0 20px;
  min-height: 3.2em;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
}
.rec__text.empty { color: var(--ink-3); font-family: var(--font); font-size: 15px; border-color: var(--line-2); }

.rec__stage {
  position: relative; border-radius: 15px; overflow: hidden;
  background: linear-gradient(165deg, #14211d, #0d1714);
  padding: 14px 16px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.rec__stage canvas { display: block; width: 100%; height: 76px; }
.rec__stage.is-idle canvas { opacity: .35; }
.stage-hint {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(226, 240, 233, .42); font-size: 12.5px; letter-spacing: .06em;
  pointer-events: none;
}
.rec__stage:not(.is-idle) .stage-hint { display: none; }

.rec__timer {
  position: absolute; right: 16px; top: 12px;
  font-variant-numeric: tabular-nums; font-size: 13px; letter-spacing: .08em;
  color: #8fd8c2; font-weight: 600;
}
.rec__timer.is-over { color: #ff9f86; }

.rec__level { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 8px; }
.rec__level i { display: block; height: 100%; width: 0%; border-radius: 2px; background: linear-gradient(90deg, #46a58a, #a9e3c4); transition: width .08s linear; }

.rec__actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.rec__actions .btn--primary, .rec__actions .btn--accent { flex: 1 1 auto; }
.rec__actions .btn--ghost { flex: 0 0 auto; }

.checks { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; min-height: 26px; }
.checks li {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: #efebe0; color: var(--ink-3);
}
.checks li.ok { background: var(--green-soft); color: var(--green); }
.checks li.bad { background: var(--red-soft); color: var(--red); }
.checks li.wait { background: var(--gold-soft); color: var(--gold); }

.rec__note { margin: 14px 0 0; font-size: 12px; color: var(--ink-3); }
.rec__note b { color: var(--ink-2); font-weight: 600; }

.rec__player { width: 100%; height: 38px; margin-top: 14px; }

/* 进度环 */

.progress-card { padding: 20px 22px; display: flex; gap: 18px; align-items: center; }
.ring { position: relative; width: 112px; height: 112px; flex: 0 0 auto; }
.ring svg { transform: rotate(-90deg); }
.ring__bg { fill: none; stroke: #e9e3d5; stroke-width: 9; }
.ring__fg { fill: none; stroke: url(#ringGrad); stroke-width: 9; stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.ring__center {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
}
.ring__center b { font-size: 24px; font-variant-numeric: tabular-nums; line-height: 1; }
.ring__center span { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }

.progress-card__meta b { display: block; font-size: 15px; }
.progress-card__meta span { font-size: 12px; color: var(--ink-3); display: block; margin-top: 2px; }
.progress-card__meta .payout { margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.progress-card__meta .payout b { display: inline; font-size: 16px; color: var(--gold); }

/* 统计 */

.statgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.stat { background: var(--card); padding: 14px 16px; }
.stat b { display: block; font-size: 21px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 11.5px; color: var(--ink-3); }
.stat b small { font-size: 11px; color: var(--ink-3); font-weight: 500; margin-left: 2px; }

/* 历史 */

.history { padding: 18px 20px; }
.hlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 330px; overflow: auto; }
.hlist li {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center;
  padding: 9px 2px; border-bottom: 1px dashed var(--line);
}
.hlist li:last-child { border-bottom: none; }
.hlist .t { font-size: 12.5px; color: var(--ink-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hlist .m { grid-column: 1 / -1; font-size: 11px; color: var(--ink-3); display: flex; gap: 8px; }
.hlist .m .why { color: var(--red); }

.empty-mini { font-size: 12.5px; color: var(--ink-3); text-align: center; padding: 18px 0; }

/* 提醒条 */

.banner {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 16px; border-radius: 13px;
  background: var(--gold-soft); border: 1px solid #ecd9a9; color: #6d5116;
  font-size: 12.5px; line-height: 1.6;
}
.banner b { color: #4f3a0c; }
.banner--teal { background: var(--teal-soft); border-color: #c9e0d7; color: var(--teal-2); }
.banner--teal b { color: var(--teal-2); }

/* ---------------- 完成页 ---------------- */

.done-card { max-width: 640px; margin: 48px auto 70px; padding: 40px 40px 34px; text-align: center; }
.done-card .big { font-size: 46px; font-family: var(--serif); color: var(--teal); letter-spacing: .02em; }
.done-card p { color: var(--ink-2); font-size: 13.5px; }
.done-actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

/* ---------------- toast / modal ---------------- */

.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px);
  background: #17211e; color: #f4f1e7;
  padding: 11px 20px; border-radius: 12px; font-size: 13.5px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7);
  opacity: 0; pointer-events: none; transition: .22s ease; z-index: 90;
  max-width: min(560px, calc(100% - 32px)); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: #6e2a1b; }

.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(18, 26, 24, .5);
  display: grid; place-items: center; padding: 20px;
  backdrop-filter: blur(3px);
}
.modal__box { width: min(460px, 100%); background: var(--card); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-lg); }
.modal__box h3 { font-size: 17px; margin-bottom: 10px; }
.modal__box p { font-size: 13.5px; color: var(--ink-2); }
.modal__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ---------------- 页脚 ---------------- */

.foot {
  text-align: center; padding: 26px 20px 40px;
  font-size: 11.5px; color: var(--ink-3); line-height: 1.9;
}

/* ---------------- 管理后台 ---------------- */

.admin-shell { width: min(1320px, calc(100% - 32px)); margin: 22px auto 60px; }

.admin-nav {
  display: flex; gap: 4px; padding: 5px; border-radius: 14px;
  background: rgba(255, 253, 248, .8); border: 1px solid var(--line);
  overflow-x: auto; margin-bottom: 20px;
}
.admin-nav button {
  flex: 0 0 auto; height: 38px; padding: 0 16px; border: none; border-radius: 10px;
  background: none; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.admin-nav button.is-on { background: var(--teal); color: #f5f1e6; }
.admin-nav .badge-n {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  margin-left: 6px; border-radius: 999px; background: #e6b23c; color: #3b2a06; font-size: 10.5px;
}

.stats-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { padding: 15px 16px; border-radius: 15px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.kpi span { font-size: 11.5px; color: var(--ink-3); display: block; }
.kpi b { font-size: 24px; font-variant-numeric: tabular-nums; line-height: 1.25; }
.kpi b small { font-size: 11px; color: var(--ink-3); font-weight: 500; margin-left: 3px; }

.panel { padding: 20px 22px; }
.panel__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.panel__head h3 { font-size: 15px; }
.panel__head .spacer { flex: 1; }

.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.table-wrap { overflow: auto; border-radius: 13px; border: 1px solid var(--line); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 720px; }
.tbl thead th {
  position: sticky; top: 0; background: #f1ede2; text-align: left;
  padding: 10px 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap;
  border-bottom: 1px solid var(--line-2); font-size: 11.5px; letter-spacing: .03em;
}
.tbl tbody td { padding: 10px 12px; border-bottom: 1px solid #efeade; vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: #faf7ef; }
.tbl .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .txt { max-width: 360px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tbl .actions { display: flex; gap: 6px; flex-wrap: nowrap; }
.tbl audio { height: 32px; width: 180px; }

.mini-bars { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.mini-bars .bar { flex: 1; height: 6px; border-radius: 3px; background: #e9e4d7; overflow: hidden; }
.mini-bars .bar i { display: block; height: 100%; background: var(--teal); border-radius: 3px; }
.mini-bars span { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 14px; font-size: 12px; color: var(--ink-3); }

/* 滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #d3ccbb; border-radius: 9px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 响应式 ---------------- */

@media (max-width: 1080px) {
  .stats-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 920px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .workspace__aside { position: static; }
  .auth { grid-template-columns: 1fr; }
  .auth__hero { padding: 34px 28px; }
  .auth__title { font-size: 27px; }
  .auth__panel { padding: 30px 26px 34px; }
  .steps { grid-template-columns: 1fr; }
  .topbar__proj { display: none; }
}

@media (max-width: 620px) {
  .wrap, .topbar__inner { width: calc(100% - 24px); }
  .rec { padding: 18px 16px; }
  .rec__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .rec__actions .btn--primary { grid-column: 1 / -1; }
  .rec__actions .btn { width: 100%; }
  .rec__stage canvas { height: 64px; }
  .topbar { height: auto; }
  .topbar__inner { height: 58px; }
  .userchip__meta { display: none; }
  .userchip { padding: 5px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .status-card { padding: 26px 20px; }
  .auth { margin: 18px auto 40px; border-radius: 20px; }
  .done-card { padding: 28px 22px; }
  .kpi b { font-size: 20px; }
  .workspace { margin-top: 16px; }
  .panel { padding: 16px 14px; }
}
