:root {
  color-scheme: light;
  --ink: #1d2522;
  --muted: #66716c;
  --line: #d8ded9;
  --line-dark: #bcc7c0;
  --paper: #ffffff;
  --canvas: #f2f4f1;
  --green: #20382a;
  --green-2: #315b42;
  --red: #a43a31;
  --red-soft: #faefed;
  --gold: #a57936;
  --gold-soft: #f5efe3;
  --blue: #315f75;
  --shadow: 0 10px 28px rgba(28, 43, 34, .09);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.boot-screen { position: fixed; z-index: 100; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--green); background: var(--canvas); font-size: 15px; font-weight: 700; }
.boot-screen img { width: 52px; height: 52px; object-fit: contain; }

.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 17px; border: 1px solid transparent; border-radius: 5px; font-weight: 750; line-height: 1.2; }
.button.primary { color: #fff; background: var(--green); }
.button.primary:hover { background: var(--green-2); }
.button.secondary { color: var(--green); border-color: var(--line-dark); background: #fff; }
.button.secondary:hover { border-color: var(--green); background: #f7faf7; }
.button.wide { width: 100%; }
.text-button { min-height: 34px; padding: 0; border: 0; color: var(--green-2); background: transparent; font-weight: 750; }
.icon-button { width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: #fff; font-size: 22px; line-height: 1; }

.section-kicker { display: block; margin-bottom: 7px; color: var(--gold); font-size: 11px; font-weight: 850; letter-spacing: 0; text-transform: uppercase; }
.form-message { min-height: 20px; margin: 0; color: var(--red); font-size: 13px; line-height: 1.5; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(440px, 1.25fr) minmax(400px, .75fr); background: #fff; }
.auth-scene { position: relative; min-height: 100vh; overflow: hidden; background: var(--green) url("https://zongmai.art/assets/legacy-hero-memory.webp") center / cover no-repeat; }
.auth-scene::after { content: ""; position: absolute; inset: 0; background: rgba(17, 28, 21, .48); }
.auth-scene-copy { position: absolute; z-index: 1; left: clamp(34px, 6vw, 84px); right: 34px; bottom: 9vh; color: #fff; }
.auth-scene-copy img { width: 48px; height: 48px; object-fit: contain; }
.auth-scene-copy p { margin: 14px 0 9px; color: #f0d79e; font-size: 17px; font-weight: 800; }
.auth-scene-copy h1 { max-width: 580px; margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 48px; line-height: 1.2; font-weight: 700; }
.auth-panel { min-height: 100vh; display: grid; align-items: center; padding: 52px clamp(28px, 5vw, 72px); }
.auth-panel-inner { width: min(420px, 100%); margin: auto; }
.auth-heading h2 { margin: 0 0 9px; font-size: 28px; }
.auth-heading p { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; height: 42px; padding: 3px; border: 1px solid var(--line); border-radius: 5px; background: var(--canvas); }
.segmented button { border: 0; border-radius: 3px; color: var(--muted); background: transparent; font-weight: 750; }
.segmented button.is-active { color: var(--green); background: #fff; box-shadow: 0 1px 4px rgba(25, 40, 31, .1); }
.stack-form { display: grid; gap: 17px; margin-top: 24px; }
.stack-form label, .form-grid label { display: grid; gap: 7px; color: #3b4540; font-size: 13px; font-weight: 750; }
input, select, textarea { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line-dark); border-radius: 4px; outline: none; color: var(--ink); background: #fff; }
textarea { resize: vertical; line-height: 1.7; }
input:focus, select:focus, textarea:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(49, 91, 66, .11); }
.back-link { display: inline-block; margin-top: 24px; color: var(--muted); font-size: 13px; }

.app-shell { min-height: 100vh; }
.app-header { position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: 66px; display: grid; grid-template-columns: 248px 1fr auto; align-items: center; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .97); }
.app-brand { height: 100%; display: flex; align-items: center; gap: 10px; padding: 0 22px; border-right: 1px solid var(--line); }
.app-brand img { width: 34px; height: 34px; object-fit: contain; }
.app-brand span { display: grid; gap: 1px; }
.app-brand strong { font-size: 15px; }
.app-brand small { color: var(--muted); font-size: 10px; }
.header-project { min-width: 0; padding: 0 26px; overflow: hidden; color: var(--muted); font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 18px; padding-right: 22px; }
.service-state { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.service-state i { width: 7px; height: 7px; border-radius: 50%; background: #3f8155; box-shadow: 0 0 0 3px #e5f1e8; }
.account-button { min-height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 9px 0 6px; border: 0; border-radius: 5px; background: transparent; }
.account-button span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--red); font-size: 13px; font-weight: 850; }
.account-button b { max-width: 100px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-menu { display: none; }

.sidebar { position: fixed; z-index: 30; top: 66px; bottom: 0; left: 0; width: 248px; display: flex; flex-direction: column; padding: 20px 14px 16px; border-right: 1px solid var(--line); background: #fff; }
.sidebar nav { display: grid; gap: 4px; }
.nav-item { min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 0; border-radius: 5px; color: #4b5650; background: transparent; font-size: 14px; font-weight: 750; text-align: left; }
.nav-item span { width: 24px; color: #7b867f; font-family: "Songti SC", serif; font-weight: 700; text-align: center; }
.nav-item:hover { background: #f3f6f3; }
.nav-item.is-active { color: #fff; background: var(--green); }
.nav-item.is-active span { color: #f2d69c; }
.sidebar-projects { min-height: 0; margin-top: 26px; padding-top: 17px; border-top: 1px solid var(--line); overflow: auto; }
.sidebar-label { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 10px; color: var(--muted); font-size: 11px; font-weight: 800; }
.sidebar-label button { width: 26px; height: 26px; border: 0; color: var(--green); background: transparent; font-size: 20px; }
.sidebar-project { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 9px; padding: 7px 10px; border: 0; border-radius: 4px; color: #4c5751; background: transparent; text-align: left; }
.sidebar-project:hover, .sidebar-project.is-active { background: #edf2ed; }
.sidebar-project i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--gold); }
.sidebar-project span { min-width: 0; overflow: hidden; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 15px 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.sidebar-foot button { border: 0; color: var(--muted); background: transparent; font-size: 11px; }

.workspace { min-height: 100vh; margin-left: 248px; padding-top: 66px; }
.workspace-view { width: min(1440px, 100%); min-height: calc(100vh - 66px); margin: 0 auto; padding: 34px 38px 64px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.page-heading h1, .project-titlebar h1 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 34px; line-height: 1.25; }
.page-heading p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.page-heading.compact { align-items: center; }
.summary-strip { min-height: 104px; display: grid; grid-template-columns: repeat(3, minmax(110px, 170px)) 1fr; align-items: stretch; margin-bottom: 34px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: var(--shadow); }
.summary-strip > div { display: grid; align-content: center; gap: 6px; padding: 18px 24px; border-right: 1px solid var(--line); }
.summary-strip > div:last-child { border-right: 0; }
.summary-strip span { color: var(--muted); font-size: 11px; font-weight: 750; }
.summary-strip strong { color: var(--green); font-size: 26px; }
.summary-strip .summary-note { align-content: center; background: var(--gold-soft); }
.summary-strip .summary-note strong { font-size: 15px; }
.section-toolbar { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-toolbar h2 { margin: 0; font-size: 17px; }
.section-toolbar > span { color: var(--muted); font-size: 12px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); gap: 16px; }
.project-card { min-height: 238px; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 4px 16px rgba(24, 42, 31, .05); text-align: left; }
.project-card:hover { border-color: #9aae9e; box-shadow: var(--shadow); transform: translateY(-1px); }
.project-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.project-monogram { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--green); font-family: "Songti SC", serif; font-size: 20px; }
.privacy-tag { padding: 4px 7px; border-radius: 3px; color: var(--green-2); background: #eaf1eb; font-size: 10px; font-weight: 800; }
.project-card h3 { margin: 20px 0 6px; font-size: 19px; }
.project-card p { margin: 0; color: var(--muted); font-size: 12px; }
.project-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 22px; border-top: 1px solid #edf0ed; color: var(--muted); font-size: 11px; }
.project-card-meta strong { color: var(--red); }
.empty-state { min-height: 330px; display: grid; place-content: center; justify-items: center; padding: 44px; border: 1px dashed var(--line-dark); border-radius: 6px; color: var(--muted); background: rgba(255,255,255,.45); text-align: center; }
.empty-state.small { min-height: 260px; }
.empty-mark { width: 62px; height: 62px; display: grid; place-items: center; border: 1px solid #c9b58c; border-radius: 50%; color: var(--gold); background: var(--gold-soft); font-family: "Songti SC", serif; font-size: 24px; }
.empty-state h2 { margin: 17px 0 6px; color: var(--ink); font-size: 20px; }
.empty-state p { max-width: 380px; margin: 0 0 20px; font-size: 13px; line-height: 1.7; }

.project-titlebar { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 22px; margin-bottom: 24px; }
.project-titlebar h1 { font-size: 28px; }
.interview-layout { display: grid; grid-template-columns: 208px minmax(440px, 1fr) 238px; min-height: calc(100vh - 162px); border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: var(--shadow); }
.session-rail { padding: 20px 13px; border-right: 1px solid var(--line); background: #f8faf8; }
.rail-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 12px; color: var(--muted); font-size: 11px; }
.rail-heading strong { color: var(--ink); font-size: 13px; }
.session-list { display: grid; gap: 5px; }
.session-row { width: 100%; display: grid; gap: 4px; padding: 11px 10px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; text-align: left; }
.session-row strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.session-row span { font-size: 10px; }
.session-row:hover, .session-row.is-active { background: #e9f0ea; }
.session-row.is-active { border-left: 3px solid var(--green-2); }
.interview-stage { min-width: 0; padding: 22px 28px 50px; }
.stage-topline { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; color: var(--muted); font-size: 11px; }
.status-pill { padding: 5px 8px; border-radius: 3px; color: var(--blue); background: #eaf2f5; font-weight: 800; }
.question-block { padding: 22px 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.question-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.question-tools label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 750; }
.question-tools select { width: auto; min-height: 32px; padding: 4px 28px 4px 8px; font-size: 11px; }
.question-block > p { margin: 22px 0 8px; color: var(--red); font-size: 11px; font-weight: 850; }
.question-block h2 { max-width: 780px; margin: 0; font-family: "Songti SC", serif; font-size: 25px; line-height: 1.55; }
.recording-panel { min-height: 180px; display: grid; grid-template-columns: 1fr minmax(130px, 240px) auto; align-items: center; gap: 24px; margin: 22px 0; padding: 24px; border: 1px solid #d7c7a6; border-radius: 6px; background: var(--gold-soft); }
.recording-panel.is-recording { border-color: #c8827b; background: var(--red-soft); }
.recording-copy { display: grid; gap: 7px; }
.recording-copy span { color: var(--muted); font-size: 11px; font-weight: 750; }
.recording-copy strong { color: var(--green); font-size: 34px; font-variant-numeric: tabular-nums; }
.level-bars { height: 58px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.level-bars i { width: 4px; height: 12px; border-radius: 2px; background: #b29a6b; transition: height .12s ease; }
.recording-panel.is-recording .level-bars i { background: var(--red); animation: meter 1s ease-in-out infinite alternate; }
.recording-panel.is-recording .level-bars i:nth-child(2n) { animation-delay: .2s; }
.recording-panel.is-recording .level-bars i:nth-child(3n) { animation-delay: .4s; }
@keyframes meter { from { height: 10px; } to { height: 52px; } }
.record-button { width: 112px; height: 112px; display: grid; place-content: center; justify-items: center; gap: 7px; padding: 0; border: 6px solid #fff; border-radius: 50%; color: #fff; background: var(--red); box-shadow: 0 0 0 1px #c7958e, 0 8px 20px rgba(125, 45, 39, .2); }
.record-button span { width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.record-button b { font-size: 12px; }
.recording-panel.is-recording .record-button span { border-radius: 2px; }
.recording-panel > p { grid-column: 1 / -1; margin: -8px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.task-progress { margin: 0 0 22px; padding: 17px 18px; border-left: 3px solid var(--blue); background: #eef4f6; }
.task-progress-head { display: flex; align-items: center; justify-content: space-between; color: var(--blue); font-size: 12px; }
.progress-track { height: 5px; margin: 11px 0; overflow: hidden; border-radius: 3px; background: #d5e0e4; }
.progress-track i { display: block; width: 0; height: 100%; background: var(--blue); transition: width .25s ease; }
.task-progress p { margin: 0; color: var(--muted); font-size: 11px; }
.turn-section { padding-top: 5px; }
.turn-list { display: grid; }
.turn-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; padding: 17px 0; border-top: 1px solid var(--line); }
.turn-number { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: #eaf1eb; font-size: 11px; font-weight: 850; }
.turn-main { min-width: 0; }
.turn-main h3 { margin: 0 0 7px; font-size: 13px; line-height: 1.5; }
.turn-main p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.turn-meta { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.turn-open { min-height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 4px; color: var(--green); background: #fff; font-size: 10px; font-weight: 750; }
.inline-empty { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: center; }
.project-inspector { padding: 28px 20px; border-left: 1px solid var(--line); background: #fbfcfb; text-align: center; }
.subject-monogram { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 13px; border-radius: 50%; color: #fff; background: var(--green); font-family: "Songti SC", serif; font-size: 28px; }
.subject-monogram.large { width: 82px; height: 82px; margin: 0; font-size: 34px; }
.project-inspector h2 { margin: 0; font-size: 18px; }
.project-inspector > p { margin: 7px 0 24px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.project-inspector dl { margin: 0 0 24px; text-align: left; }
.project-inspector dl div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 10px; }
.project-inspector dt { color: var(--muted); }
.project-inspector dd { margin: 0; color: var(--ink); font-weight: 750; }

.filter-row { display: flex; gap: 6px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.filter-row button { min-height: 34px; padding: 0 12px; border: 1px solid transparent; border-radius: 4px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 750; }
.filter-row button.is-active { color: var(--green); border-color: var(--line-dark); background: #fff; }
.transcript-library { border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.transcript-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.transcript-item:last-child { border-bottom: 0; }
.transcript-type { color: var(--muted); font-size: 10px; }
.transcript-type strong { display: block; margin-bottom: 5px; color: var(--green); font-size: 12px; }
.transcript-content h3 { margin: 0 0 7px; font-size: 13px; }
.transcript-content p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.profile-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 20px; }
.profile-sheet, .interaction-sheet { padding: 28px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 4px 16px rgba(24, 42, 31, .04); }
.profile-lead { display: flex; align-items: center; gap: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.profile-lead h2 { margin: 0 0 5px; font-size: 24px; }
.profile-lead p { margin: 0; color: var(--muted); font-size: 12px; }
.profile-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.profile-facts div { padding: 19px 4px; border-bottom: 1px solid var(--line); }
.profile-facts dt { margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.profile-facts dd { margin: 0; font-size: 13px; font-weight: 750; }
.biography-block { padding-top: 24px; }
.biography-block span { color: var(--gold); font-size: 10px; font-weight: 850; }
.biography-block p { margin: 9px 0 0; font-family: "Songti SC", serif; font-size: 15px; line-height: 1.9; white-space: pre-wrap; }
.interaction-list { display: grid; }
.interaction-row { padding: 15px 0; border-top: 1px solid var(--line); }
.interaction-row span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.interaction-row p { margin: 0; font-size: 12px; line-height: 1.7; }

.dialog { width: min(680px, calc(100% - 28px)); max-height: calc(100vh - 36px); padding: 0; overflow: auto; border: 0; border-radius: 6px; background: #fff; box-shadow: 0 24px 70px rgba(15, 28, 19, .28); }
.dialog::backdrop { background: rgba(22, 31, 26, .56); backdrop-filter: blur(2px); }
.small-dialog { width: min(500px, calc(100% - 28px)); }
.transcript-dialog { width: min(820px, calc(100% - 28px)); }
.dialog-shell { margin: 0; }
.dialog-head { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 21px 24px; border-bottom: 1px solid var(--line); background: #fff; }
.dialog-head h2 { margin: 0; font-size: 20px; }
.dialog-body { padding: 24px; }
.dialog-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--line); background: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.span-2 { grid-column: 1 / -1; }
#transcriptEditor { min-height: 330px; font-family: "Songti SC", serif; font-size: 16px; line-height: 1.9; }

.toast { position: fixed; z-index: 110; left: 50%; bottom: 28px; max-width: min(480px, calc(100% - 32px)); padding: 11px 16px; border-radius: 5px; color: #fff; background: #25302a; box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: var(--red); }
.mobile-nav { display: none; }

@media (max-width: 1180px) {
  .project-grid { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
  .interview-layout { grid-template-columns: 190px minmax(420px, 1fr); }
  .project-inspector { display: none; }
  .recording-panel { grid-template-columns: 1fr minmax(120px, 190px) auto; }
}

@media (max-width: 840px) {
  body { padding-bottom: env(safe-area-inset-bottom); }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-scene { min-height: 220px; }
  .auth-scene-copy { left: 24px; bottom: 28px; }
  .auth-scene-copy h1 { font-size: 31px; }
  .auth-panel { min-height: auto; padding: 34px 22px 54px; }
  .app-header { height: 58px; grid-template-columns: auto 1fr auto; }
  .mobile-menu { display: grid; margin-left: 10px; }
  .app-brand { padding: 0 10px; border: 0; }
  .app-brand img { width: 30px; height: 30px; }
  .app-brand small, .header-project, .service-state, .account-button b { display: none; }
  .header-actions { gap: 0; padding-right: 8px; }
  .sidebar { top: 58px; width: min(280px, 84vw); box-shadow: 16px 0 40px rgba(20, 30, 24, .2); transform: translateX(-105%); transition: transform .2s ease; }
  .sidebar.is-open { transform: translateX(0); }
  .workspace { margin-left: 0; padding-top: 58px; padding-bottom: 68px; }
  .workspace-view { min-height: calc(100vh - 126px); padding: 24px 16px 46px; }
  .page-heading { align-items: flex-start; }
  .page-heading h1, .project-titlebar h1 { font-size: 28px; }
  .summary-strip { grid-template-columns: repeat(3, 1fr); min-height: 86px; }
  .summary-strip > div { padding: 14px; }
  .summary-strip strong { font-size: 22px; }
  .summary-strip .summary-note { display: none; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 210px; }
  .project-titlebar { grid-template-columns: 1fr auto; }
  .project-titlebar > .text-button { grid-column: 1 / -1; justify-self: start; }
  .interview-layout { display: block; min-height: 0; }
  .session-rail { border-right: 0; border-bottom: 1px solid var(--line); }
  .session-list { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; }
  .session-row { min-width: 145px; }
  .interview-stage { padding: 20px 17px 36px; }
  .recording-panel { grid-template-columns: 1fr auto; min-height: 220px; }
  .level-bars { grid-column: 1; grid-row: 2; }
  .record-button { grid-column: 2; grid-row: 1 / 3; width: 100px; height: 100px; }
  .recording-panel > p { grid-row: 3; }
  .profile-layout { grid-template-columns: 1fr; }
  .transcript-item { grid-template-columns: 90px 1fr; }
  .transcript-item > button { grid-column: 2; justify-self: start; }
  .mobile-nav { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; height: calc(62px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,255,255,.98); }
  .mobile-nav button { display: grid; place-content: center; gap: 3px; border: 0; color: var(--muted); background: transparent; font-size: 10px; }
  .mobile-nav button span { font-family: "Songti SC", serif; font-size: 17px; }
  .mobile-nav button.is-active { color: var(--red); }
}

@media (max-width: 560px) {
  .page-heading { display: grid; gap: 18px; }
  .page-heading .button { justify-self: stretch; }
  .summary-strip > div { padding: 12px 10px; }
  .summary-strip span { font-size: 10px; }
  .project-titlebar { gap: 12px; }
  .project-titlebar .button { padding: 0 10px; font-size: 12px; }
  .question-tools { align-items: flex-start; }
  .question-tools label { display: grid; }
  .question-block h2 { font-size: 22px; }
  .recording-panel { padding: 19px 15px; }
  .level-bars { max-width: 145px; }
  .turn-row { grid-template-columns: 36px 1fr; }
  .turn-meta { grid-column: 2; }
  .profile-sheet, .interaction-sheet { padding: 20px; }
  .profile-facts { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .dialog-actions .button { flex: 1; }
}

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