:root {
  color-scheme: light;
  --ink: #1d2a26;
  --muted: #65736c;
  --line: #dfe6e1;
  --paper: #f4f7f4;
  --card: #ffffff;
  --soft: #eef3ef;
  --brand: #176b50;
  --brand-dark: #10513d;
  --brand-soft: #e2f0e9;
  --amber: #825411;
  --amber-soft: #fff5df;
  --red: #9d3734;
  --red-soft: #fff0ed;
  --shadow: 0 10px 30px rgba(28, 48, 40, .055);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); line-height: 1.6; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: inherit; text-decoration: none; }
img, audio { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { overflow-wrap: anywhere; }
h1, h2, h3, h4 { line-height: 1.3; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #68a88f; outline-offset: 3px; }
::selection { background: #cde5d9; }

.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 16px; border-radius: 8px; background: var(--brand); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-header { position: relative; z-index: 5; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1280px; min-height: 74px; margin: auto; padding: 10px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 760; letter-spacing: .06em; flex-shrink: 0; }
.brand-sub { display: block; font-size: 9px; font-weight: 650; color: var(--muted); letter-spacing: .18em; line-height: 1.2; }
.brand-mark { display: flex; align-items: center; justify-content: center; gap: 3px; width: 38px; height: 38px; border-radius: 11px; background: var(--brand); }
.brand-mark i { display: block; width: 3px; border-radius: 3px; background: white; }
.brand-mark i:nth-child(1) { height: 10px; }
.brand-mark i:nth-child(2) { height: 20px; }
.brand-mark i:nth-child(3) { height: 15px; }
.brand-mark i:nth-child(4) { height: 7px; }
.session-area, .session-info { display: flex; align-items: center; gap: 12px; }
.session-info { gap: 8px; text-align: right; line-height: 1.3; }
.session-info strong { font-size: 13px; }
.session-info span { color: var(--muted); font-size: 12px; }
.local-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); background: var(--brand-soft); border-radius: 99px; padding: 7px 12px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

.page-shell { max-width: 1280px; min-height: calc(100vh - 160px); margin: auto; padding: 42px 28px 48px; }
.site-footer { max-width: 1280px; margin: auto; padding: 22px 28px 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; }
.noscript { margin: 20px; padding: 16px; background: var(--red-soft); color: var(--red); }
.global-notice { position: fixed; z-index: 50; top: 86px; left: 50%; transform: translateX(-50%); width: min(680px, calc(100% - 32px)); padding: 13px 14px 13px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border: 1px solid #bcd9ca; border-radius: 12px; background: #f2faf5; color: var(--brand-dark); box-shadow: 0 12px 40px rgba(18, 54, 39, .16); font-size: 13px; }
.global-notice.error { border-color: #ebc4bf; background: #fff7f5; color: var(--red); }
.notice-close { width: 30px; height: 30px; flex: 0 0 30px; border: 0; border-radius: 6px; background: transparent; color: currentColor; font-size: 22px; line-height: 1; }
.notice-close:hover { background: rgba(0, 0, 0, .05); }

.eyebrow { color: var(--brand); font-size: 11px; font-weight: 760; letter-spacing: .17em; margin: 0 0 10px; }
.muted, .field-help, .fine-print { color: var(--muted); }
.fine-print { font-size: 11px; }
.workspace-heading, .section-heading, .panel-heading, .attempt-overview { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.workspace-heading { margin-bottom: 26px; }
.workspace-heading h1 { margin: 0 0 6px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.035em; }
.workspace-heading p:last-child, .section-heading p, .panel-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.section-heading { margin: 0 0 20px; }
.section-heading h2, .panel-heading h2 { margin: 0 0 5px; font-size: 23px; }
.compact-heading { align-items: center; margin-top: 24px; }
.loading-card, .empty-state { padding: 48px 24px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); color: var(--muted); text-align: center; box-shadow: var(--shadow); }
.empty-state strong { display: block; color: var(--ink); font-size: 18px; }
.empty-state p { margin: 6px 0 0; }
.error-banner { padding: 14px 17px; border-radius: 10px; background: var(--red-soft); color: var(--red); border: 1px solid #efcbc5; margin: 0 0 20px; }
.notice { display: flex; align-items: flex-start; gap: 16px; padding: 14px 18px; border: 1px solid #d5e4da; border-radius: 11px; background: #edf4ef; font-size: 12px; margin-bottom: 24px; }
.notice strong { flex: 0 0 auto; color: var(--brand); }
.notice span { color: #4e6157; }
.compact-notice { display: block; margin: 22px 0 0; }
.compact-notice strong { display: block; margin-bottom: 4px; }

.primary-button, .secondary-button, .text-button, .record-button, .icon-button { min-height: 40px; border-radius: 8px; padding: 9px 16px; font-weight: 650; font-size: 13px; border: 1px solid transparent; }
.primary-button, .record-button { background: var(--brand); color: white; }
.primary-button:hover:not(:disabled), .record-button:hover:not(:disabled) { background: var(--brand-dark); }
.secondary-button { background: white; border-color: var(--line); color: var(--ink); }
.secondary-button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.text-button { background: transparent; color: var(--brand); padding-inline: 9px; }
.text-button:hover { background: var(--brand-soft); }
.record-button.stop { background: var(--red); }
.record-button.stop:hover { background: #7f2927; }
.small-button { min-height: 34px; padding: 6px 11px; font-size: 12px; white-space: nowrap; }
.icon-button { min-height: 32px; padding: 4px 9px; background: transparent; color: var(--red); border-color: #efcbc5; }
.back-button { margin: 0 0 20px; padding-left: 0; }
.card-actions, .table-actions, .form-actions, .dialog-actions, .question-add-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.card-actions { margin-top: 18px; }
.form-actions, .dialog-actions { justify-content: flex-end; margin-top: 24px; }

.login-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .75fr); gap: clamp(40px, 7vw, 90px); align-items: center; min-height: 530px; }
.login-intro h1 { margin: 0 0 22px; font-size: clamp(38px, 5.4vw, 66px); letter-spacing: -.055em; }
.login-intro > p:not(.eyebrow) { max-width: 590px; color: var(--muted); font-size: 16px; }
.login-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 45px; }
.login-features div { display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; }
.login-features span { grid-row: span 2; color: var(--brand); font: 700 11px/1.8 ui-monospace, monospace; }
.login-features strong { font-size: 13px; }
.login-features p { grid-column: 2; margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.login-card { padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.login-card h2 { margin: 0; font-size: 27px; }
.login-card > div > p:last-child { color: var(--muted); font-size: 13px; }
.login-card form { display: grid; gap: 17px; margin-top: 26px; }
.login-button { width: 100%; }
.login-help { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; }
.login-help p { margin: 4px 0 0; color: var(--muted); }
.login-notice { margin-top: 30px; }

.field { min-width: 0; }
.field label { display: block; margin-bottom: 6px; color: #43554c; font-size: 12px; font-weight: 650; }
.field input, .field textarea, .field select { display: block; width: 100%; min-height: 42px; border: 1px solid #cfd9d2; border-radius: 8px; background: white; color: var(--ink); padding: 9px 11px; }
.field textarea { resize: vertical; min-height: 76px; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); }
.field input[type="file"] { padding: 7px; }
.field-help { margin: 6px 0 0; font-size: 11px; }
.form-message { min-height: 1.3em; margin: 4px 0 0; font-size: 12px; }
.error-text { color: var(--red); }
.form-errors:not(:empty) { margin-top: 18px; }
.line-errors { margin: 9px 0 0; padding-left: 22px; }
code { padding: 2px 5px; border-radius: 4px; background: var(--soft); font-size: .9em; overflow-wrap: anywhere; }

.paper-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.paper-card { display: flex; flex-direction: column; padding: 23px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); box-shadow: var(--shadow); }
.paper-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.paper-card h3 { margin: 18px 0 8px; font-size: 20px; }
.paper-description { flex: 1; margin: 0; color: var(--muted); font-size: 13px; white-space: pre-wrap; }
.time-list { margin: 20px 0 0; padding-top: 13px; border-top: 1px solid var(--line); }
.time-list div { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0; font-size: 11px; }
.time-list dt { color: var(--muted); }
.time-list dd { margin: 0; text-align: right; }
.status-badge { display: inline-flex; align-items: center; justify-content: center; width: fit-content; border-radius: 99px; padding: 5px 10px; background: var(--soft); color: var(--muted); font-size: 11px; font-weight: 680; white-space: nowrap; }
.status-badge.success, .status-badge.scored { background: var(--brand-soft); color: var(--brand); }
.status-badge.warning, .status-badge.queued, .status-badge.processing { background: var(--amber-soft); color: var(--amber); }
.status-badge.danger, .status-badge.unscored, .status-badge.failed { background: var(--red-soft); color: var(--red); }
.status-badge.muted-badge, .status-badge.waiting, .status-badge.unanswered { background: var(--soft); color: var(--muted); }

.attempt-overview { align-items: center; margin-bottom: 22px; }
.attempt-overview h2 { margin: 0 0 7px; font-size: clamp(25px, 3vw, 34px); }
.attempt-overview p:last-child { margin: 0; color: var(--muted); font-size: 13px; white-space: pre-wrap; }
.attempt-timing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.attempt-timing > div { padding: 15px 19px; background: var(--card); }
.attempt-timing span { display: block; color: var(--muted); font-size: 11px; }
.attempt-timing strong { display: block; margin-top: 3px; color: var(--brand); font: 700 24px/1.35 ui-monospace, monospace; }
.attempt-timing .time-value { font-family: inherit; font-size: 13px; font-weight: 650; line-height: 1.6; color: var(--ink); }
.upload-summary { margin: 0 0 20px; padding: 10px 14px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-size: 12px; }
.upload-summary.has-pending { background: var(--amber-soft); color: var(--amber); }
.question-list { display: grid; gap: 22px; }
.question-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.question-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.question-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.question-title h3 { margin: 0; font-size: 17px; }
.question-title p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.question-number { flex: 0 0 auto; color: var(--brand); font: 700 12px/1 ui-monospace, monospace; background: var(--brand-soft); border-radius: 6px; padding: 7px 8px; }
.question-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.practice-panel, .result-panel { min-width: 0; padding: 24px; }
.practice-panel { border-right: 1px solid var(--line); }
.result-panel { background: #fcfdfc; }
.instruction { color: var(--muted); font-size: 12px; margin: 0 0 14px; white-space: pre-wrap; }
.prompt { margin: 0; color: #263c33; font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.7; white-space: pre-wrap; }
.recorder { display: grid; gap: 11px; margin-top: 23px; padding: 17px; background: var(--soft); border-radius: 12px; }
.recording-active, .recorder-idle { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.recording-indicator { display: flex; align-items: center; gap: 9px; color: var(--red); font-size: 13px; font-weight: 650; }
.recording-indicator::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: pulse 1.4s ease-in-out infinite; }
.timer { font: 650 19px/1.5 ui-monospace, monospace; }
.recorder-hint { color: var(--muted); font-size: 11px; margin: 0; }
.recorder-hint.standalone { margin: 0; }
.audio-preview { display: grid; gap: 11px; }
.audio-preview audio, .result-section audio { width: 100%; height: 40px; }
.duration-note { color: var(--muted); font-size: 11px; }
.queue-message, .upload-success { margin: 0; font-size: 12px; }
.queue-message { color: var(--amber); }
.upload-success { color: var(--brand); }
.upload-error { padding: 9px 11px; border-radius: 7px; background: var(--red-soft); color: var(--red); font-size: 12px; }
.upload-progress > div { display: flex; justify-content: space-between; gap: 12px; color: var(--amber); font-size: 11px; }
.upload-progress progress { width: 100%; height: 9px; margin-top: 7px; accent-color: var(--brand); }
.submit-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 26px; padding: 20px 23px; border: 1px solid #cfe0d5; border-radius: 13px; background: #edf5f0; }
.submit-bar strong { font-size: 14px; }
.submit-bar p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.submit-bar .primary-button { flex-shrink: 0; }

.result-placeholder { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; }
.result-placeholder strong { color: #43544b; font-size: 14px; }
.result-placeholder p { max-width: 310px; margin: 6px 0 0; font-size: 12px; }
.lock-mark { margin-bottom: 12px; color: #9caaa2; font-size: 12px; }
.score-header { display: flex; align-items: center; gap: 16px; margin-bottom: 19px; }
.score-number { color: var(--brand); font-size: 40px; font-weight: 760; line-height: 1; letter-spacing: -.05em; }
.score-number small { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.score-number.score-pending { font-size: 25px; letter-spacing: 0; }
.score-label strong { display: block; font-size: 13px; }
.score-label span { color: var(--muted); font-size: 11px; }
.dimension { display: grid; grid-template-columns: 88px minmax(50px, 1fr) 76px; align-items: center; gap: 9px; margin: 11px 0; font-size: 11px; }
.dimension-label { color: var(--muted); }
.dimension-value { text-align: right; font-weight: 650; }
.score-track { height: 6px; overflow: hidden; border-radius: 8px; background: #e5ebe7; }
.score-fill { height: 100%; border-radius: inherit; background: var(--brand); }
.score-fill.pending { background: repeating-linear-gradient(90deg, #d8dfda 0 5px, transparent 5px 9px); }
.pronunciation-note, .metric-line, .version-line { color: var(--muted); font-size: 10px; }
.pronunciation-note { margin: 12px 0 0; }
.metric-line { color: var(--amber); }
.version-line { font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.unscored-box { margin-bottom: 18px; padding: 13px; border: 1px solid #ecd8b5; border-radius: 9px; background: var(--amber-soft); color: var(--amber); }
.unscored-box strong { display: block; font-size: 13px; }
.unscored-box p { margin: 3px 0 0; font-size: 12px; }
.result-section { margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); }
.result-section h3 { margin: 0 0 9px; color: #43544b; font-size: 12px; letter-spacing: .03em; }
.transcript { margin: 0; color: #43544b; font-family: Georgia, "Times New Roman", serif; font-size: 14px; white-space: pre-wrap; }
.feedback-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.feedback-list li { position: relative; padding-left: 14px; color: #596860; font-size: 12px; }
.feedback-list li::before { content: ""; position: absolute; left: 0; top: .68em; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.feedback-list.strengths { margin-top: 10px; }
.feedback-list.strengths li::before { background: var(--brand); }
.evidence-detail { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.teacher-review { position: relative; padding: 12px; border-radius: 8px; background: var(--brand-soft); }
.teacher-review strong { color: var(--brand); font-size: 12px; }
.teacher-review p { margin: 6px 0 0; font-size: 12px; white-space: pre-wrap; }
.teacher-score { float: right; color: var(--brand); font-weight: 700; }
.teacher-empty { margin: 0; font-size: 12px; }
.review-details { margin-top: 12px; }
.review-details summary, .reference-details summary { color: var(--brand); cursor: pointer; font-size: 12px; font-weight: 650; }
.review-form { display: grid; gap: 12px; margin-top: 14px; }
.review-form .secondary-button { justify-self: start; }

.admin-tabs { display: flex; gap: 6px; margin-bottom: 26px; padding: 5px; width: fit-content; border: 1px solid var(--line); border-radius: 11px; background: var(--card); }
.admin-tabs button { min-height: 38px; padding: 8px 20px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-weight: 650; }
.admin-tabs button.active { background: var(--brand); color: white; }
.panel { padding: 23px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); box-shadow: var(--shadow); }
.panel-heading { align-items: center; margin-bottom: 18px; }
.panel > p { color: var(--muted); font-size: 12px; }
.admin-columns { display: grid; grid-template-columns: minmax(300px, .7fr) minmax(0, 1.5fr); gap: 20px; align-items: start; }
.import-panel form { display: grid; gap: 15px; }
.count-pill { padding: 4px 10px; border-radius: 99px; background: var(--soft); color: var(--muted); font-size: 12px; }
.table-panel { padding: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 12px 14px; background: #f5f8f5; color: var(--muted); font-size: 11px; font-weight: 680; text-align: left; white-space: nowrap; }
td { padding: 14px; border-top: 1px solid var(--line); vertical-align: middle; }
tbody tr:hover { background: #fbfdfb; }
.table-subline, .date-stack small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.date-stack { white-space: nowrap; }
.empty-cell { padding: 36px; color: var(--muted); text-align: center; }
.dialog { width: min(460px, calc(100% - 30px)); padding: 25px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); box-shadow: 0 24px 80px rgba(20, 40, 32, .25); }
.dialog::backdrop { background: rgba(19, 36, 29, .48); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.dialog-heading h2 { margin: 0; font-size: 21px; }
.dialog form > p { color: var(--muted); }
.dialog .field { margin-top: 15px; }
.form-panel { max-width: 1060px; margin: auto; }
.form-section { padding: 8px 0 26px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.form-section > h3 { margin: 0 0 18px; font-size: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.full-field { grid-column: 1 / -1; }
.question-add-actions { justify-content: flex-end; }
#question-editors { display: grid; gap: 18px; }
.question-editor { position: relative; min-width: 0; margin: 0; padding: 21px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfb; }
.question-editor legend { padding: 0 8px; color: var(--brand); font-size: 14px; font-weight: 700; }
.legend-type { margin-left: 8px; color: var(--muted); font-size: 11px; font-weight: 500; }
.remove-question { position: absolute; top: 13px; right: 14px; }
.compact-grid { grid-template-columns: 160px minmax(0, 1fr) 190px; padding-right: 50px; }
.question-editor > .field { margin-top: 15px; }
.reference-details { margin-top: 22px; padding-top: 15px; border-top: 1px solid var(--line); }
.reference-details h4 { margin: 15px 0 5px; font-size: 12px; }
.reference-details p, .reference-details li { color: var(--muted); font-size: 12px; white-space: pre-wrap; }
.reference-details ul { padding-left: 19px; }

@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .recording-indicator::before { animation: none; }
  * { transition: none !important; }
}
@media (max-width: 1080px) {
  .paper-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-columns { grid-template-columns: minmax(0, 1fr); }
  .admin-columns > * { min-width: 0; }
  .login-layout { gap: 35px; }
  .login-features { grid-template-columns: 1fr; gap: 13px; margin-top: 28px; }
  .compact-grid { grid-template-columns: 150px minmax(0, 1fr); }
  .compact-grid .field:last-child { grid-column: 1 / -1; }
}
@media (max-width: 850px) {
  .question-body { grid-template-columns: 1fr; }
  .practice-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .login-layout { grid-template-columns: 1fr; min-height: 0; }
  .login-intro h1 br { display: none; }
  .login-features { grid-template-columns: repeat(3, 1fr); }
  .local-badge { display: none; }
}
@media (max-width: 640px) {
  .header-inner { min-height: 66px; padding: 9px 16px; gap: 8px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .session-area { gap: 3px; }
  .session-info { display: block; }
  .session-info strong { display: block; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .session-info span { display: none; }
  .page-shell { padding: 28px 15px 36px; }
  .site-footer { display: grid; gap: 5px; padding: 20px 16px 28px; }
  .global-notice { top: 75px; }
  .workspace-heading, .section-heading, .attempt-overview { align-items: flex-start; flex-direction: column; gap: 13px; }
  .workspace-heading { margin-bottom: 20px; }
  .section-heading .primary-button, .section-heading .secondary-button { align-self: stretch; }
  .notice { display: block; padding: 13px 15px; }
  .notice strong { display: block; margin-bottom: 4px; }
  .paper-grid { grid-template-columns: 1fr; }
  .login-layout { gap: 26px; }
  .login-intro h1 { font-size: 37px; }
  .login-features { grid-template-columns: 1fr; }
  .login-card { padding: 23px 19px; }
  .login-notice { margin-top: 22px; }
  .question-head, .practice-panel, .result-panel { padding: 18px; }
  .question-head { align-items: flex-start; }
  .question-title { align-items: flex-start; }
  .question-title h3 { font-size: 16px; }
  .prompt { font-size: 18px; }
  .attempt-timing { grid-template-columns: 1fr; }
  .attempt-timing > div { padding: 12px 16px; }
  .attempt-timing strong { font-size: 21px; }
  .submit-bar { align-items: stretch; flex-direction: column; padding: 18px; }
  .recording-active { align-items: flex-start; }
  .score-header { gap: 12px; }
  .score-number { font-size: 34px; }
  .dimension { grid-template-columns: 77px minmax(35px, 1fr) 72px; gap: 7px; }
  .admin-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .panel { padding: 18px; }
  .table-panel { padding: 0; }
  .form-grid, .compact-grid { grid-template-columns: 1fr; }
  .compact-grid { padding-right: 0; }
  .compact-grid .field:last-child { grid-column: auto; }
  .question-editor { padding: 19px 15px; padding-top: 45px; }
  .question-add-actions { justify-content: flex-start; }
  .form-actions .primary-button, .form-actions .secondary-button { flex: 1; }
  .dialog { padding: 20px; }
}

/* ===== Premium visual upgrade (green brand retained) ===== */
:root {
  --emerald: #176b50;
  --emerald-dark: #10513d;
  --teal: #0f766e;
  --sky: #2563eb;
  --amber: #b7791f;
  --violet: #6d4aff;
  --rose: #be3455;
}

body {
  background:
    radial-gradient(circle at top left, rgba(23, 107, 80, .10), transparent 34%),
    radial-gradient(circle at 85% 10%, rgba(109, 74, 255, .08), transparent 28%),
    linear-gradient(180deg, #f7faf7 0%, var(--paper) 42%, #eef5f0 100%);
}

.site-header { box-shadow: 0 10px 30px rgba(25, 55, 42, .06); backdrop-filter: saturate(140%); }
.brand-mark { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 18px rgba(23,107,80,.28); }

.page-shell { animation: page-fade .45s ease both; }
@keyframes page-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.login-intro h1 { text-shadow: 0 16px 34px rgba(23, 107, 80, .12); }
.login-card { border: 1px solid rgba(23,107,80,.12); background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,252,249,.96)); }
.login-features div { padding: 16px; border: 1px solid rgba(23,107,80,.12); border-radius: 16px; background: rgba(255,255,255,.68); backdrop-filter: blur(10px); transition: transform .25s ease, box-shadow .25s ease; }
.login-features div:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(23,107,80,.12); }

.paper-card, .question-card, .panel, .loading-card, .empty-state, .result-placeholder {
  border: 1px solid rgba(23, 107, 80, .12);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,252,249,.92));
  box-shadow: 0 18px 44px rgba(28, 61, 47, .08);
}
.paper-card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; overflow: hidden; position: relative; }
.paper-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(180deg, var(--brand), #8bc7a7); opacity: .9; }
.paper-card:hover { transform: translateY(-4px); border-color: rgba(23,107,80,.28); box-shadow: 0 24px 60px rgba(28,61,47,.13); }
.time-list { background: #f6faf7; border-radius: 14px; padding: 12px 14px; }

.workspace-heading h1, .panel-heading h2, .section-heading h2, .attempt-overview h2 { letter-spacing: -.03em; }
.section-heading, .panel-heading, .attempt-overview { padding-bottom: 14px; border-bottom: 1px solid rgba(23,107,80,.1); }
.attempt-timing > div { border: 1px solid rgba(23,107,80,.12); background: linear-gradient(180deg, #fff, #f4faf6); }
.attempt-timing strong { color: var(--brand-dark); }

.speech-control-card { display: flex; align-items: center; gap: 18px; margin: 18px 0; padding: 16px 18px; border: 1px solid rgba(37,99,235,.18); border-radius: 16px; background: linear-gradient(135deg, #f7fbff, #eef7f1); box-shadow: 0 14px 30px rgba(37,99,235,.08); }
.speech-control-copy strong { display: block; color: #18365f; }
.speech-control-copy p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.rate-field { display: inline-flex; align-items: center; gap: 10px; min-width: 280px; color: #355070; font-size: 12px; font-weight: 650; }
.rate-field input[type="range"] { flex: 1; accent-color: var(--brand); }
.rate-field span { min-width: 52px; color: var(--brand-dark); font-variant-numeric: tabular-nums; }

.question-list { display: grid; gap: 22px; }
.question-group { padding: 20px; border: 1px dashed rgba(23,107,80,.28); border-radius: 20px; background: rgba(255,255,255,.5); }
.question-group-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.question-group-header h3 { margin: 4px 0 6px; font-size: 22px; }
.question-group-header p { margin: 0; color: var(--muted); font-size: 12px; }
.group-count { padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 700; white-space: nowrap; }
.question-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.question-card { position: relative; border-radius: 20px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.question-card:hover { transform: translateY(-2px); }
.question-card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent, var(--brand)); opacity: .88; }
.question-head { background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,250,247,.9)); }
.question-number { background: linear-gradient(135deg, var(--accent, var(--brand)), color-mix(in srgb, var(--accent, var(--brand)) 60%, white)); color: white; box-shadow: 0 8px 18px rgba(23,107,80,.2); }
.practice-panel { background: linear-gradient(180deg, #ffffff, #f8fcf9); }
.practice-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.type-chip { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft, var(--brand-soft)); color: var(--accent, var(--brand)); font-size: 11px; font-weight: 750; letter-spacing: .04em; }
.mini-chip { display: inline-flex; padding: 4px 9px; border-radius: 999px; background: #eef3ef; color: var(--muted); font-size: 11px; font-weight: 650; }
.mini-chip.emerald { background: var(--brand-soft); color: var(--brand); }
.mini-chip.rose { background: var(--red-soft); color: var(--red); }
.sub-label { color: var(--muted); font-size: 11px; }

.phonetic-hero { margin: 14px 0; padding: 20px; border-radius: 18px; background: radial-gradient(circle at 20% 20%, rgba(23,107,80,.12), transparent 36%), linear-gradient(135deg, #eef8f1, #ffffff); border: 1px solid rgba(23,107,80,.15); text-align: center; }
.phonetic-main { display: block; font-size: clamp(28px, 5vw, 44px); font-weight: 700; letter-spacing: .02em; color: var(--brand-dark); font-family: "Segoe UI", "Times New Roman", serif; }
.phonetic-caption { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.phonetic-hero.compact { padding: 12px; }
.phonetic-hero.compact .phonetic-main { font-size: 24px; }

.word-prompt { font-size: clamp(34px, 8vw, 62px); font-weight: 760; letter-spacing: -.04em; color: var(--brand-dark); }
.prompt { font-size: 20px; font-weight: 620; line-height: 1.7; }

.tts-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.sample-box { margin-top: 14px; padding: 15px; border-radius: 15px; border: 1px solid rgba(37,99,235,.16); background: #f7fbff; }
.sample-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sample-tag { color: #234e85; font-size: 12px; font-weight: 750; }
.sample-box p { margin: 0; color: #27435f; line-height: 1.8; white-space: pre-wrap; }
.mindmap-figure { margin: 16px 0 0; padding: 12px; border: 1px solid rgba(109,74,255,.18); border-radius: 16px; background: #fbfaff; }
.mindmap-figure img { display: block; width: 100%; border-radius: 12px; background: white; }
.mindmap-figure figcaption { margin-top: 8px; color: #5c5470; font-size: 11px; text-align: center; }
.mindmap-figure.compact { max-width: 520px; }

.status-badge { box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.status-badge.waiting, .status-badge.unanswered { background: #eef3ef; color: #5d6e65; }
.status-badge.queued { background: #fff4df; color: var(--amber); }
.status-badge.processing { background: #e8f0ff; color: #274e92; animation: badge-breathe 1.4s ease-in-out infinite; }
.status-badge.scored, .status-badge.success { background: var(--brand-soft); color: var(--brand); }
.status-badge.unscored, .status-badge.failed, .status-badge.danger { background: var(--red-soft); color: var(--red); }
@keyframes badge-breathe { 50% { transform: scale(1.04); box-shadow: 0 0 0 5px rgba(39,78,146,.1); } }

.recording-active { border: 1px solid rgba(157,55,52,.22); background: linear-gradient(135deg, #fff7f5, #fff); border-radius: 16px; }
.upload-summary { border-radius: 14px; }
.upload-summary.has-pending { background: linear-gradient(135deg, #fff7e8, #fff); border-color: #f0d9a6; color: #735217; }
.queue-message { color: var(--amber); font-weight: 650; }
.upload-success { color: var(--brand); font-weight: 650; }
.upload-progress progress { height: 10px; border-radius: 999px; accent-color: var(--brand); }

.submit-bar { border: 1px solid rgba(23,107,80,.14); background: linear-gradient(135deg, #ffffff, #f2f9f4); box-shadow: 0 18px 40px rgba(23,107,80,.1); }
.primary-button, .record-button, .secondary-button { min-height: 46px; border-radius: 12px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.primary-button, .record-button { box-shadow: 0 10px 22px rgba(23,107,80,.22); }
.primary-button:hover:not(:disabled), .record-button:hover:not(:disabled), .secondary-button:hover:not(:disabled) { transform: translateY(-1px); }

.question-editor { border-radius: 18px; border-top: 4px solid var(--accent, var(--brand)); background: linear-gradient(180deg, #fcfdfc, #f5faf7); }
.question-editor legend { color: var(--accent, var(--brand)); }
.type-fields { margin-top: 15px; padding: 15px; border-radius: 14px; background: rgba(255,255,255,.72); border: 1px solid rgba(23,107,80,.09); }
.checkbox-field label { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; color: #33473e; font-weight: 600; }
.checkbox-field input { width: 18px; height: 18px; accent-color: var(--brand); }

.accent-emerald { --accent: #176b50; --accent-soft: #e2f0e9; }
.accent-teal { --accent: #0f766e; --accent-soft: #d9f2ef; }
.accent-sky { --accent: #2563eb; --accent-soft: #e2ebff; }
.accent-amber { --accent: #b7791f; --accent-soft: #fff1d6; }
.accent-violet { --accent: #6d4aff; --accent-soft: #ece8ff; }
.accent-rose { --accent: #be3455; --accent-soft: #ffe8ee; }

.fade-up { animation: fade-up .55s cubic-bezier(.22,.8,.28,1) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 850px) {
  .question-grid { grid-template-columns: 1fr; }
  .speech-control-card { align-items: stretch; flex-direction: column; gap: 12px; }
  .rate-field { min-width: 0; width: 100%; }
  .question-group { padding: 14px; }
  .question-group-header { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .page-shell, .fade-up, .paper-card, .question-card, .status-badge.processing { animation: none !important; transition: none !important; }
}

/* ===== Data overview + progress ===== */
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.overview-card { position: relative; overflow: hidden; padding: 20px 22px; border-radius: 18px; background: linear-gradient(160deg, #ffffff, #f3f9f5); border: 1px solid rgba(23,107,80,.12); box-shadow: 0 14px 34px rgba(28,61,47,.08); animation: fade-up .5s ease both; }
.overview-card::after { content: ""; position: absolute; right: -26px; top: -26px; width: 96px; height: 96px; border-radius: 50%; background: var(--tone, #176b50); opacity: .10; }
.overview-card strong { display: block; font-size: 34px; letter-spacing: -.03em; color: var(--tone, #176b50); font-variant-numeric: tabular-nums; }
.overview-card span { display: block; margin-top: 4px; font-weight: 700; color: #23453a; }
.overview-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.tone-emerald { --tone: #176b50; }
.tone-teal { --tone: #0f766e; }
.tone-sky { --tone: #2563eb; }
.tone-amber { --tone: #b7791f; }
.tone-rose { --tone: #be3455; }
.tone-muted { --tone: #65736c; }
.admin-overview .overview-card { min-height: 124px; }
.overview-actions { align-items: center; }

.attempt-progress { display: flex; align-items: center; gap: 14px; margin: 18px 0; }
.attempt-progress-track { flex: 1; height: 10px; border-radius: 999px; background: #e3ece6; overflow: hidden; box-shadow: inset 0 1px 2px rgba(23,107,80,.12); }
.attempt-progress-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #176b50, #2f9c74); transition: width .5s cubic-bezier(.22,.8,.28,1); }
.attempt-progress-text { font-size: 12px; font-weight: 650; color: var(--brand-dark); white-space: nowrap; font-variant-numeric: tabular-nums; }

.paper-progress { display: flex; align-items: center; gap: 10px; margin: 12px 0 6px; }
.paper-progress-track { flex: 1; height: 6px; border-radius: 999px; background: #e6eee9; overflow: hidden; }
.paper-progress-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #176b50, #2f9c74); transition: width .5s ease; }
.paper-progress span { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* ===== TTS control panel ===== */
.speech-control-card { align-items: center; }
.speech-control-copy { flex: 0 0 auto; }
.tts-voice-label { display: inline-block; margin-top: 4px; font-size: 11px; color: #23453a; background: #eef6f1; padding: 3px 10px; border-radius: 999px; }
.speech-toggles { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.toggle-group { display: inline-flex; background: #eef3ef; border-radius: 12px; padding: 4px; gap: 2px; }
.toggle-group button { min-height: 36px; padding: 6px 14px; border: 0; border-radius: 9px; background: transparent; color: #51645b; font-weight: 650; font-size: 12px; }
.toggle-group button.active { background: #ffffff; color: var(--brand-dark); box-shadow: 0 4px 12px rgba(23,107,80,.18); }
.toggle-group button:disabled { opacity: .4; }
.rate-field { background: #fff; padding: 6px 12px; border-radius: 12px; border: 1px solid rgba(23,107,80,.12); }

/* ===== Score ring report ===== */
.score-header { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 24px; border-radius: 20px; background: linear-gradient(135deg, #f4faf6, #ffffff); border: 1px solid rgba(23,107,80,.12); box-shadow: 0 16px 38px rgba(28,61,47,.08); }
.score-ring { position: relative; width: 130px; height: 130px; flex: 0 0 auto; }
.score-ring svg { transform: rotate(-90deg); }
.ring-track { fill: none; stroke: #e4ece7; stroke-width: 12; }
.ring-fill { fill: none; stroke: url(#ringGrad); stroke: #176b50; stroke-width: 12; stroke-linecap: round; stroke-dashoffset: 0; transition: stroke-dashoffset .9s cubic-bezier(.22,.8,.28,1); filter: drop-shadow(0 4px 10px rgba(23,107,80,.3)); }
.score-ring.pending .ring-fill { stroke: #c6d2cb; filter: none; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring-value { font-size: 32px; font-weight: 760; letter-spacing: -.03em; color: var(--brand-dark); line-height: 1; font-variant-numeric: tabular-nums; }
.ring-unit { margin-top: 3px; font-size: 11px; color: var(--muted); }
.ring-pending { font-size: 14px; font-weight: 700; color: var(--muted); }
.score-label { flex: 1; min-width: 200px; }
.score-label strong { display: block; font-size: 18px; color: #1d2a26; }
.score-label span { display: block; color: var(--muted); font-size: 12px; margin: 3px 0 12px; }
.score-dimensions { display: grid; gap: 10px; }

/* ===== Recording pulse + bottom nav ===== */
.record-button { position: relative; }
.record-button.stop::after { content: ""; position: absolute; inset: -4px; border-radius: 14px; border: 2px solid var(--red); animation: record-pulse 1.3s ease-out infinite; }
@keyframes record-pulse { 0% { transform: scale(.96); opacity: .7; } 100% { transform: scale(1.18); opacity: 0; } }

.bottom-nav { display: none; }
@media (max-width: 760px) {
  .page-shell { padding-bottom: 88px; }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; justify-content: space-around; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(23,107,80,.1); backdrop-filter: saturate(150%); }
  .bottom-nav button { flex: 1; max-width: 160px; min-height: 52px; border: 0; border-radius: 14px; background: transparent; color: #51645b; font-weight: 700; font-size: 13px; }
  .bottom-nav button.active, .bottom-nav button[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); }
  .admin-tabs { display: none; }
  .score-header { gap: 18px; padding: 18px; }
  .speech-control-card { padding: 14px; }
  .overview-card { padding: 16px; }
  .overview-card strong { font-size: 28px; }
}

/* ==========================================================================
   公开主站
   ========================================================================== */
.public-body { background: #f7faf8; }
.public-header { position: sticky; top: 0; z-index: 40; background: rgba(247, 250, 248, .93); border-bottom: 1px solid rgba(23, 107, 80, .12); backdrop-filter: blur(14px) saturate(140%); }
.public-header-inner { max-width: 1240px; min-height: 68px; margin: auto; padding: 10px 24px; display: flex; align-items: center; gap: 20px; }
.public-nav { display: flex; gap: 4px; margin-left: auto; }
.public-nav a { padding: 9px 13px; border-radius: 9px; color: #3c5148; font-size: 13px; font-weight: 640; }
.public-nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.public-actions { display: flex; align-items: center; gap: 9px; }
.ghost-link { padding: 9px 14px; border-radius: 10px; border: 1px solid rgba(23, 107, 80, .18); background: rgba(255, 255, 255, .66); color: var(--brand-dark); font-size: 13px; font-weight: 680; }
.ghost-link:hover { background: var(--brand-soft); }
.ghost-link.light { border-color: rgba(255, 255, 255, .42); background: rgba(255, 255, 255, .14); color: #fff; }
.ghost-link.light:hover { background: rgba(255, 255, 255, .24); }
.primary-button.small { min-height: 38px; padding: 7px 16px; font-size: 12px; }
.public-nav-toggle { display: none; width: 42px; height: 42px; margin-left: auto; padding: 10px; border: 1px solid rgba(23, 107, 80, .18); border-radius: 10px; background: #fff; }
.public-nav-toggle span { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: var(--brand-dark); }
.public-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.public-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.public-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { display: grid; gap: 2px; padding: 8px 18px 16px; border-top: 1px solid rgba(23, 107, 80, .1); background: #fff; }
.mobile-nav a { padding: 11px 8px; border-radius: 8px; color: #3c5148; font-size: 14px; font-weight: 640; }
.mobile-nav a:hover { background: var(--brand-soft); }

.hero-carousel { position: relative; min-height: clamp(420px, 62vh, 580px); overflow: hidden; background: linear-gradient(135deg, #0c3527, #14543f 55%, #1f7154); }
.hero-track { position: relative; min-height: inherit; }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; padding: clamp(40px, 7vw, 92px) max(24px, calc((100vw - 1160px) / 2)); opacity: 0; visibility: hidden; transition: opacity .75s ease, visibility .75s ease; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.hero-copy { position: relative; max-width: 660px; color: #fff; }
.hero-copy h1 { margin: 0 0 16px; font-size: clamp(30px, 5vw, 54px); letter-spacing: -.035em; line-height: 1.16; }
.hero-copy p { max-width: 540px; margin: 0; color: rgba(255, 255, 255, .82); font-size: 15px; }
.eyebrow.light { color: #a8e0c6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.primary-button.light { background: #fff; color: #10513d; box-shadow: 0 14px 28px rgba(0, 0, 0, .2); }
.hero-dots { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .42); transition: width .3s ease, background .3s ease; }
.hero-dot.is-active { width: 26px; background: #fff; }

.public-section { max-width: 1160px; margin: 0 auto; padding: 62px 24px 0; }
.notice-strip-section { max-width: 1160px; margin: 0 auto; padding: 54px 24px 0; }
.section-note { margin: 0; color: var(--muted); font-size: 12px; }
.notice-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.notice-card { padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.notice-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 7px; }
.notice-card h3 { margin: 0; font-size: 15px; }
.notice-card p { margin: 0; color: var(--muted); font-size: 13px; white-space: pre-wrap; }

.intro-section { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(28px, 5vw, 64px); }
.intro-media { position: relative; min-height: 320px; border-radius: 26px; background: radial-gradient(circle at 22% 18%, rgba(94, 214, 166, .32), transparent 52%), linear-gradient(150deg, #0d3829, #175b44 60%, #2a8a66); overflow: hidden; }
.intro-orb { position: absolute; top: 16%; right: 14%; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .5), rgba(168, 224, 198, .06)); }
.intro-wave { position: absolute; left: 10%; right: 10%; bottom: 22%; height: 62px; display: flex; align-items: center; gap: 6px; }
.intro-wave i { flex: 1; border-radius: 999px; background: rgba(168, 224, 198, .8); animation: intro-wave 2.4s ease-in-out infinite; }
.intro-wave i:nth-child(odd) { height: 42%; }
.intro-wave i:nth-child(3n) { height: 84%; }
.intro-wave i:nth-child(4n) { height: 62%; }
.intro-wave i:nth-child(1) { animation-delay: -.2s; } .intro-wave i:nth-child(2) { animation-delay: -.5s; }
.intro-wave i:nth-child(3) { animation-delay: -.8s; } .intro-wave i:nth-child(4) { animation-delay: -1.1s; }
.intro-wave i:nth-child(5) { animation-delay: -.35s; } .intro-wave i:nth-child(6) { animation-delay: -.65s; }
.intro-wave i:nth-child(7) { animation-delay: -.95s; } .intro-wave i:nth-child(8) { animation-delay: -1.25s; }
@keyframes intro-wave { 0%, 100% { transform: scaleY(.55); opacity: .65; } 50% { transform: scaleY(1); opacity: 1; } }
.intro-metric { position: absolute; left: 8%; top: 9%; display: grid; padding: 11px 15px; border-radius: 14px; background: rgba(255, 255, 255, .94); box-shadow: 0 12px 28px rgba(6, 30, 20, .25); }
.intro-metric strong { color: var(--brand); font-size: 22px; line-height: 1; }
.intro-metric span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.intro-metric.alt { top: auto; bottom: 8%; left: auto; right: 8%; }
.intro-copy h2 { margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.03em; }
.intro-copy > p:not(.eyebrow) { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.85; white-space: pre-wrap; }
.intro-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.intro-tags span { padding: 5px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 11px; font-weight: 650; }

.honor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.honor-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); animation: fade-up .55s ease both; animation-delay: var(--honor-delay, 0ms); }
.honor-media { aspect-ratio: 4 / 3; background: #eef3ef; }
.honor-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.honor-media-text { display: flex; align-items: center; justify-content: center; background: linear-gradient(140deg, #e2f0e9, #f7fbf8); color: var(--brand); font-size: 40px; font-weight: 780; }
.honor-body { display: flex; flex-direction: column; gap: 6px; padding: 15px 17px 18px; }
.honor-body h3 { margin: 0; font-size: 16px; }
.honor-body p { margin: 0; color: var(--muted); font-size: 12px; white-space: pre-wrap; }
.badge-neutral { background: #eef3ef; color: #51645b; }
.badge-gold { background: var(--amber-soft); color: var(--amber); }
.empty-note { padding: 22px; border: 1px dashed #cfd9d2; border-radius: 12px; background: #fbfdfb; color: var(--muted); font-size: 12px; text-align: center; }
.skeleton-card { padding: 26px; border-radius: 12px; background: linear-gradient(100deg, #eef3ef 20%, #f8fbf9 40%, #eef3ef 60%); background-size: 220% 100%; color: var(--muted); font-size: 12px; animation: skeleton 1.6s linear infinite; }
@keyframes skeleton { from { background-position: 120% 0; } to { background-position: -80% 0; } }

.flow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.flow-card { position: relative; padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.flow-index { display: inline-block; margin-bottom: 12px; color: var(--brand); font: 700 12px/1 ui-monospace, monospace; }
.flow-card h3 { margin: 0 0 8px; font-size: 16px; }
.flow-card p { margin: 0; color: var(--muted); font-size: 12px; }

.public-cta { max-width: 1160px; margin: 62px auto 0; padding: clamp(26px, 4vw, 44px); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: 22px; background: radial-gradient(circle at 88% 12%, rgba(94, 214, 166, .22), transparent 46%), linear-gradient(135deg, #0d3829, #17624a); color: #fff; }
.public-cta h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.02em; }
.public-cta p:not(.eyebrow) { margin: 0; color: rgba(255, 255, 255, .74); font-size: 13px; }
.public-cta .primary-button { flex: 0 0 auto; }
.public-footer { max-width: 1160px; margin: 0 auto; padding: 44px 24px 48px; display: grid; gap: 8px; color: var(--muted); font-size: 11px; }
.public-footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 14px; }
.public-footer p { margin: 0; }
.public-footer-meta { color: #8d9a93; }

/* ==========================================================================
   登录页
   ========================================================================== */
.login-body { background: #eef4ef; }
.login-page { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: 100vh; }
.login-visual { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; padding: clamp(24px, 4vw, 52px); background: radial-gradient(circle at 14% 8%, rgba(94, 214, 166, .26), transparent 46%), linear-gradient(150deg, #0c3527, #14543f 55%, #1f7154); color: #fff; }
.brand-light, .brand-light .brand-sub { color: #fff; }
.brand-light .brand-sub { color: rgba(255, 255, 255, .58); }
.login-visual-copy h1 { margin: 12px 0 16px; font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -.035em; line-height: 1.18; }
.login-visual-text { max-width: 480px; margin: 0; color: rgba(255, 255, 255, .78); font-size: 14px; }
.login-points { display: grid; gap: 16px; max-width: 480px; margin: 30px 0 0; padding: 0; list-style: none; }
.login-points li { display: flex; gap: 12px; }
.login-points span { flex: 0 0 auto; color: #a8e0c6; font: 700 11px/1.8 ui-monospace, monospace; }
.login-points strong { font-size: 13px; }
.login-points p { margin: 2px 0 0; color: rgba(255, 255, 255, .66); font-size: 11px; }
.login-wave { display: flex; align-items: flex-end; gap: 5px; height: 46px; opacity: .5; }
.login-wave i { flex: 1; max-width: 6px; border-radius: 4px; background: #a8e0c6; animation: login-wave 2s ease-in-out infinite; }
.login-wave i:nth-child(3n + 1) { height: 38%; }
.login-wave i:nth-child(3n + 2) { height: 86%; }
.login-wave i:nth-child(3n) { height: 60%; }
.login-wave i:nth-child(2n) { animation-delay: -.6s; }
.login-wave i:nth-child(3n) { animation-delay: -1.1s; }
@keyframes login-wave { 0%, 100% { transform: scaleY(.6); } 50% { transform: scaleY(1); } }
.login-back { color: rgba(255, 255, 255, .7); font-size: 12px; }
.login-back:hover { color: #fff; }
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 4vw, 56px); background: #fff; }
.login-panel-inner { width: min(420px, 100%); margin: auto; }
.login-panel h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.03em; }
.login-subtitle { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.role-switch { display: inline-flex; gap: 3px; margin-bottom: 20px; padding: 4px; border-radius: 12px; background: #eef3ef; }
.role-tab { min-height: 38px; padding: 7px 22px; border: 0; border-radius: 9px; background: transparent; color: #51645b; font-size: 13px; font-weight: 680; }
.role-tab.active { background: #fff; color: var(--brand-dark); box-shadow: 0 4px 12px rgba(23, 107, 80, .18); }
#login-form { display: grid; gap: 16px; }
.login-button { width: 100%; }
.admin-choice { margin-top: 22px; padding: 16px; border-radius: 12px; background: var(--brand-soft); }
.admin-choice p { margin: 0 0 10px; color: var(--brand-dark); font-size: 13px; }
.admin-choice-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.login-footer { margin-top: 32px; color: var(--muted); font-size: 11px; text-align: center; }

/* ==========================================================================
   工作台 / 后台新增
   ========================================================================== */
.workspace-links { display: flex; align-items: center; gap: 8px; }
.workspace-links a { white-space: nowrap; }

.site-section { margin-bottom: 30px; }
.site-section + .site-section { padding-top: 24px; border-top: 1px solid rgba(23, 107, 80, .1); }
.compact-heading { margin-bottom: 14px; padding-bottom: 12px; }
.compact-heading h3 { margin: 0 0 4px; font-size: 17px; }
.site-content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.site-content-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.site-content-card.is-off { opacity: .55; }
.site-thumb { aspect-ratio: 16 / 9; background: #eef3ef; }
.site-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.site-thumb-text { display: flex; align-items: center; justify-content: center; background: linear-gradient(140deg, #e2f0e9, #f9fcfa); color: var(--brand); font-size: 32px; font-weight: 780; }
.site-card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.site-card-body strong { font-size: 14px; }
.site-card-body p { margin: 0; color: var(--muted); font-size: 12px; }
.site-card-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; }
.input-with-button { display: flex; align-items: center; gap: 8px; }
.input-with-button input { flex: 1; min-width: 0; }
.file-input { margin-top: 10px; font-size: 12px; }
.file-button { display: inline-flex; align-items: center; cursor: pointer; }
.danger-text { color: var(--red); }
.danger-text:hover { background: var(--red-soft); }

.template-columns { align-items: start; }
.template-rows { display: grid; gap: 10px; margin-top: 16px; }
.template-row { display: grid; grid-template-columns: 92px repeat(3, minmax(0, 1fr)); gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfb; }
.template-row strong { font-size: 12px; }
.template-row label { display: flex; flex-direction: column; gap: 3px; color: var(--muted); font-size: 10px; }
.template-row input { min-height: 34px; padding: 5px 8px; border: 1px solid #cfd9d2; border-radius: 7px; background: #fff; }
.template-list { display: grid; gap: 10px; }
.template-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.template-card strong { font-size: 14px; }
.template-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.template-tags span { padding: 3px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 10px; }
.template-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; padding: 12px 14px; border: 1px dashed #bcd9ca; border-radius: 12px; background: #f2faf5; }
.template-bar strong { display: block; font-size: 13px; }
.template-bar span { color: var(--muted); font-size: 11px; }
.template-bar-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.template-bar select { min-height: 36px; padding: 5px 9px; border: 1px solid #cfd9d2; border-radius: 8px; background: #fff; font-size: 12px; }

.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.asset-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.asset-media { aspect-ratio: 4 / 3; background: #eef3ef; }
.asset-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.asset-body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.asset-body strong { font-size: 12px; overflow-wrap: anywhere; }
.asset-body span { color: var(--muted); font-size: 10px; }
.asset-actions { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; }
.asset-picker { width: min(780px, calc(100% - 30px)); }
.picker-grid { max-height: 58vh; overflow: auto; }
.asset-pick { display: flex; flex-direction: column; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: left; }
.asset-pick:hover { border-color: var(--brand); }
.asset-pick img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.asset-pick span { padding: 6px 8px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }

.preview-head { margin-bottom: 22px; padding: 22px; border: 1px solid rgba(23, 107, 80, .14); border-radius: 16px; background: linear-gradient(135deg, #f2f9f4, #fff); }
.preview-head h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.03em; }
.preview-head p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; white-space: pre-wrap; }
.preview-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.preview-meta span { padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 11px; font-weight: 650; }
.admin-question .question-body { grid-template-columns: 1fr; }
.admin-question .result-panel { display: none; }

/* ==========================================================================
   答题页：准备 / 锁题 / 报告范文
   ========================================================================== */
.recorder-locked { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px dashed #cfd9d2; border-radius: 10px; background: #f3f5f4; color: var(--muted); }
.recorder-locked strong { color: #43544b; font-size: 13px; }
.recorder-locked p { margin: 3px 0 0; font-size: 11px; }
.lock-glyph { font-size: 15px; }
.prep-active { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid #f0d9a6; border-radius: 12px; background: linear-gradient(135deg, #fff7e8, #fff); }
.prep-indicator { color: var(--amber); font-size: 13px; font-weight: 700; }
.prep-hint { margin: 8px 0 0; padding: 8px 11px; border-radius: 8px; background: #f7f3e9; color: #6b5426; font-size: 11px; }
.record-button.prep { border: 1px solid rgba(23, 107, 80, .2); background: linear-gradient(135deg, #fff, #f3f9f5); color: var(--brand-dark); box-shadow: none; }
.sample-unlocked { margin-top: 17px; padding: 13px 14px; border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0; background: #f4faf6; }

@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; min-height: 100vh; }
  .login-visual { padding: 24px 22px; gap: 16px; }
  .login-visual-copy h1 { margin: 6px 0 0; font-size: 24px; }
  .login-points, .login-wave, .login-visual-text { display: none; }
  .login-back { font-size: 11px; }
  .login-panel { padding: 26px 22px 40px; justify-content: flex-start; }
  .intro-section { grid-template-columns: 1fr; }
  .intro-media { min-height: 240px; order: 2; }
  .public-cta { flex-direction: column; align-items: flex-start; margin-inline: 24px; }
}

@media (max-width: 860px) {
  .public-nav { display: none; }
  .public-nav-toggle { display: block; }
  .public-actions { display: none; }
  .hero-carousel { min-height: 66vh; }
  .hero-slide { padding: 46px 22px 64px; }
  .hero-copy h1 { font-size: clamp(27px, 8vw, 38px); }
  .public-section, .notice-strip-section { padding-top: 42px; }
  .public-footer { padding-top: 32px; }
}

@media (max-width: 760px) {
  .bottom-nav { justify-content: flex-start; gap: 4px; overflow-x: auto; }
  .bottom-nav button { flex: 0 0 auto; min-width: 64px; max-width: none; padding: 0 10px; font-size: 12px; }
  .template-row { grid-template-columns: 1fr 1fr; }
  .template-row strong { grid-column: 1 / -1; }
  .template-card { flex-direction: column; }
  .site-content-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .asset-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .preview-head { padding: 16px; }
  .notice-strip { grid-template-columns: 1fr; }
  .login-panel h2 { font-size: 24px; }
}
