:root {
  --navy: #12304a;
  --blue: #0b5cad;
  --blue-2: #1877d2;
  --blue-soft: #eaf3fc;
  --sky: #f4f8fc;
  --ink: #17212b;
  --muted: #607284;
  --line: #dbe4ec;
  --surface: #ffffff;
  --danger: #b42318;
  --danger-soft: #fff1f0;
  --success: #087a53;
  --warning-ink: #79440d;
  --warning-soft: #fff6e5;
  --shadow: 0 18px 50px rgba(18, 48, 74, .08);
  --radius: 20px;
}

/* Personal summary and explicit original-audio consent share the blue system. */
.consent-panel { margin-top:24px; padding:22px; border:1px solid var(--line); border-radius:16px; background:var(--sky); }
.consent-panel h3,.saved-audio-panel h3 { margin:0 0 10px; color:var(--navy); font-size:17px; }
.consent-panel p,.summary-notice,.retention-status { font-size:14px; line-height:1.7; overflow-wrap:anywhere; }
.consent-choice { min-height:52px; align-items:flex-start; padding:12px; background:var(--surface); border:1px solid var(--line); border-radius:10px; cursor:pointer; }
.consent-choice span { min-width:0; }
.consent-choice small { display:block; margin-top:5px; color:var(--muted); font-size:13px; }
.consent-choice input { flex:0 0 auto; margin-top:4px; }
.personal-summary { min-width:0; }
.personal-summary .report-section > .button { margin:6px 8px 0 0; white-space:normal; max-width:100%; text-align:left; }
.summary-notice,.retention-status { padding:14px 16px; border-radius:10px; background:var(--blue-soft); color:var(--navy); }
.personal-metrics { margin-bottom:20px; }
#auth-fields { display:grid; gap:17px; }
.saved-audio-panel { padding:20px; margin:0 0 24px; background:var(--sky); border:1px solid var(--line); border-radius:14px; }
.saved-audio-panel .inline-actions { display:flex; gap:8px; flex-wrap:wrap; }
.button-danger { color:var(--danger); background:var(--danger-soft); border-color:var(--danger); }
.saved-audio-panel p { overflow-wrap:anywhere; }
@media(max-width:640px) {
  .consent-panel { padding:16px; }
  .consent-panel p,.summary-notice,.retention-status { font-size:14px; }
  .form-actions { flex-wrap:wrap; }
  .form-actions .button { min-width:0; white-space:normal; }
  .personal-metrics .metric-card { min-width:0; }
  .personal-metrics .metric-card small { overflow-wrap:anywhere; }
  .saved-audio-panel { padding:16px; }
  .header-actions .button { min-height:44px; }
}
@media print { .saved-audio-panel {display:none;} }

.transcription-quality-notice { margin:0 0 20px; padding:16px; border:1px solid var(--warning-ink); border-radius:12px; background:var(--warning-soft); color:var(--warning-ink); overflow-wrap:anywhere; }
.transcription-quality-notice p { margin:8px 0 0; font-size:14px; line-height:1.7; }
.transcription-repeat { overflow-wrap:anywhere; }
.transcription-repeat .repeat-full,.transcription-repeat.is-expanded .repeat-preview { display:none; }
.transcription-repeat.is-expanded .repeat-full { display:inline; }
.annotated-transcript .transcription-repeat [data-repeat-toggle] { min-height:44px; min-width:44px; max-width:100%; margin:4px; padding:8px; border:1px solid var(--warning-ink); border-radius:8px; background:var(--warning-soft); color:var(--warning-ink); font-size:14px; line-height:1.5; white-space:normal; text-align:left; cursor:pointer; touch-action:manipulation; }
.transcription-repeat [data-repeat-toggle]:hover { filter:brightness(.97); }
.original-transcription { margin-top:16px; }
.original-transcription summary { cursor:pointer; min-height:44px; padding:8px 0; color:var(--blue); }
.original-transcription .reading-text { overflow-wrap:anywhere; word-break:normal; }
@media print {
  .transcription-repeat .repeat-full { display:inline !important; }
  .transcription-repeat .repeat-preview,.transcription-repeat [data-repeat-toggle] { display:none !important; }
  .transcription-quality-notice { break-inside:avoid; }
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: #f5f8fb; font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.is-hidden { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 10px 16px; color: white; background: var(--navy); border-radius: 8px; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid rgba(24, 119, 210, .35); outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 20; color: white; background: linear-gradient(110deg, #0a4f95, #0b66bc 70%, #167bd1); box-shadow: 0 4px 18px rgba(11, 60, 105, .18); }
.header-inner { width: min(1180px, calc(100% - 40px)); min-height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { padding: 4px 0; display: flex; align-items: center; gap: 13px; color: white; background: none; border: 0; cursor: pointer; text-align: left; }
.brand-mark { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; gap: 3px; color: var(--blue); background: white; border-radius: 14px; box-shadow: 0 5px 14px rgba(0,0,0,.12); }
.brand-mark i { display: block; width: 4px; background: currentColor; border-radius: 10px; }
.brand-mark i:nth-child(1), .brand-mark i:nth-child(5) { height: 13px; opacity: .65; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(4) { height: 22px; }
.brand-mark i:nth-child(3) { height: 30px; }
.brand-copy { display: grid; line-height: 1.25; }
.brand-copy strong { font-size: 19px; letter-spacing: -.03em; }
.brand-copy small { margin-top: 2px; color: #d9ebfb; font-size: 11px; letter-spacing: .02em; }
.header-actions { display: flex; gap: 8px; }

.button { min-height: 44px; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex-shrink: 0; white-space: nowrap; border: 1px solid transparent; border-radius: 11px; font-weight: 750; font-size: 14px; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button-primary { color: white; background: var(--blue); box-shadow: 0 7px 16px rgba(11, 92, 173, .18); }
.button-primary:hover { background: #084e94; }
.button-secondary { color: var(--blue); background: white; border-color: #b9cde0; }
.button-secondary:hover { background: var(--blue-soft); }
.button-light { color: var(--blue); background: white; }
.button-quiet { color: white; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); }
.button-large { min-height: 50px; padding-inline: 22px; font-size: 15px; }
.dark-text { color: var(--muted); background: transparent; border-color: var(--line); }

.stepper { position: sticky; top: 72px; z-index: 15; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.stepper ol { width: min(790px, calc(100% - 32px)); height: 66px; padding: 0; margin: auto; display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; }
.stepper li { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; color: #8a9aaa; font-size: 13px; }
.stepper li:not(:last-child)::after { content: ""; position: absolute; width: calc(100% - 74px); height: 2px; left: calc(50% + 31px); top: 32px; background: #e4ebf1; }
.stepper li span { width: 26px; height: 26px; display: grid; place-items: center; background: #eef2f5; border-radius: 50%; font-size: 12px; font-weight: 800; z-index: 1; }
.stepper li.is-current, .stepper li.is-complete { color: var(--blue); }
.stepper li.is-current span, .stepper li.is-complete span { color: white; background: var(--blue); }
.stepper li.is-complete:not(:last-child)::after { background: #8cbce8; }

.page-shell { width: min(1180px, calc(100% - 40px)); margin: auto; min-height: calc(100vh - 132px); padding: 46px 0 64px; }
.screen { animation: screen-in .22s ease-out; }
@keyframes screen-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.hero-card { min-height: 470px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); align-items: center; gap: 68px; padding: 60px 68px; background: linear-gradient(135deg, #fff 65%, #f0f7fd); border: 1px solid #e0e8ef; border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.eyebrow { margin: 0 0 9px; color: var(--blue); font-size: 12px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.hero-copy h1 { margin: 0; color: var(--navy); font-size: clamp(40px, 5vw, 60px); line-height: 1.12; letter-spacing: -.055em; }
.hero-copy h1 em { color: var(--blue); font-style: normal; }
.hero-description { max-width: 620px; margin: 24px 0 30px; color: var(--muted); font-size: 16px; line-height: 1.78; word-break: keep-all; }
.hero-actions { display: flex; gap: 10px; }
.privacy-note { margin-top: 22px; color: #6a7b8b; font-size: 12px; }
.privacy-note span { margin-right: 6px; color: var(--success); font-size: 8px; vertical-align: 1px; }
.overview-card { padding: 30px; background: #123a5d; color: white; border-radius: 22px; box-shadow: 0 25px 45px rgba(18, 48, 74, .18); }
.card-label { margin: 0 0 17px; color: #87a3ba; font-size: 11px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.overview-list { padding: 0; margin: 0; display: grid; gap: 21px; list-style: none; }
.overview-list li { display: flex; gap: 15px; align-items: flex-start; }
.overview-list > li > span { color: #73b8f2; font-size: 12px; font-weight: 850; }
.overview-list div { display: grid; gap: 2px; }
.overview-list b { font-size: 14px; }
.overview-list small { color: #b9ccdc; font-size: 12px; }
.metric-preview { margin-top: 28px; padding-top: 20px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.15); }
.metric-preview span { display: grid; gap: 2px; }
.metric-preview span + span { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.15); }
.metric-preview small { color: #9fb7ca; font-size: 11px; }
.home-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.action-card { min-height: 118px; padding: 22px; display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; column-gap: 14px; text-align: left; background: white; border: 1px solid var(--line); border-radius: 18px; cursor: pointer; }
.action-card:hover { border-color: #9dbddd; box-shadow: 0 10px 25px rgba(18,48,74,.06); }
.action-icon { grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 12px; font-weight: 850; }
.action-card b { align-self: end; font-size: 14px; }
.action-card small { color: var(--muted); font-size: 12px; }

.content-card { padding: 38px 42px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.narrow-card { max-width: 820px; margin: auto; }
.section-heading { margin-bottom: 32px; padding-bottom: 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; color: var(--navy); font-size: 27px; line-height: 1.25; letter-spacing: -.035em; }
.section-heading p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.required-note { color: var(--muted); font-size: 12px; white-space: nowrap; }
.required-note i, .field > span i, fieldset.field legend i { color: #d92d20; font-style: normal; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { min-width: 0; display: grid; align-content: start; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field > span, fieldset.field legend { color: #33475b; font-size: 13px; font-weight: 750; }
.field > span small { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea, .search-field input { width: 100%; min-height: 46px; padding: 11px 13px; color: var(--ink); background: white; border: 1px solid #bfccd8; border-radius: 10px; outline: 0; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .search-field input:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(24,119,210,.12); }
.field small { color: var(--muted); font-size: 11px; }
fieldset.field { padding: 0; margin: 0; border: 0; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.segmented label, .choice-card { position: relative; min-width: 0; }
.segmented input, .choice-card input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.segmented span { min-height: 46px; display: grid; place-items: center; border: 1px solid #bfccd8; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 700; }
.segmented input:checked + span { color: var(--blue); background: var(--blue-soft); border-color: var(--blue); }
.segmented input:focus-visible + span, .choice-card input:focus-visible ~ * { outline: 3px solid rgba(24,119,210,.3); outline-offset: 2px; }
.form-actions { margin-top: 30px; padding-top: 22px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); }
.form-error { padding: 11px 14px; color: var(--danger); background: var(--danger-soft); border: 1px solid #f7c5c0; border-radius: 10px; font-size: 13px; }
.status-badge { min-height: 30px; padding: 5px 10px; color: #52697e; background: #eef3f7; border-radius: 20px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.status-badge.is-active { color: var(--success); background: #e9f8f1; }

.task-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 28px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.choice-card { min-height: 190px; padding: 23px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; transition: .15s ease; }
.choice-card:has(input:checked) { background: var(--blue-soft); border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.choice-symbol { width: 48px; height: 48px; display: grid; place-items: center; color: var(--blue); background: #eff5fa; border-radius: 14px; font-weight: 850; }
.choice-card b { font-size: 15px; }
.choice-card small { color: var(--muted); font-size: 12px; word-break: keep-all; }
.prompt-panel, .settings-panel { padding: 24px; background: var(--sky); border: 1px solid var(--line); border-radius: 16px; }
.prompt-heading { display: flex; align-items: center; justify-content: space-between; }
.prompt-heading b { color: var(--navy); font-size: 14px; }
.prompt-heading span { padding: 3px 8px; color: var(--blue); background: var(--blue-soft); border-radius: 20px; font-size: 10px; font-weight: 750; }
.prompt-panel > p { margin: 18px 0; color: #405569; font-size: 14px; line-height: 1.8; }
.prompt-panel .info-line { margin-bottom: 0; padding-top: 14px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; line-height: 1.55; }

.audio-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.recorder-panel, .upload-panel { min-height: 360px; padding: 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 18px; }
.upload-panel { align-items: stretch; justify-content: flex-start; }
.record-visual { width: 104px; height: 104px; display: flex; align-items: center; justify-content: center; gap: 4px; color: #d92d20; background: #fff1f0; border-radius: 50%; }
.record-visual span { position: absolute; width: 22px; height: 31px; background: currentColor; border-radius: 13px; }
.record-visual i { width: 3px; height: 14px; background: currentColor; border-radius: 4px; opacity: 0; }
.record-visual.is-recording { animation: record-pulse 1.8s ease-in-out infinite; }
.record-visual.is-recording span { display: none; }
.record-visual.is-recording i { opacity: 1; animation: wave 1s ease-in-out infinite; }
.record-visual.is-recording i:nth-of-type(2), .record-visual.is-recording i:nth-of-type(4) { animation-delay: -.2s; }
.record-visual.is-recording i:nth-of-type(3) { animation-delay: -.4s; }
@keyframes record-pulse { 50% { box-shadow: 0 0 0 12px rgba(217,45,32,.08); } }
@keyframes wave { 50% { height: 40px; } }
.record-time { margin-top: 19px; color: var(--navy); font-size: 32px; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.recorder-panel > p { max-width: 360px; margin: 4px 0 24px; color: var(--muted); text-align: center; font-size: 12px; }
.record-actions { display: flex; gap: 8px; }
.record-button { min-height: 46px; padding: 10px 17px; display: inline-flex; align-items: center; gap: 8px; color: white; background: #d92d20; border: 0; border-radius: 11px; cursor: pointer; }
.record-button span { width: 12px; height: 12px; background: white; border-radius: 50%; }
.record-button.is-recording span { border-radius: 2px; }
.file-drop { min-height: 205px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); background: white; border: 1px dashed #9fb2c3; border-radius: 14px; cursor: pointer; text-align: center; }
.file-drop:hover { color: var(--blue); background: var(--blue-soft); border-color: var(--blue); }
.file-drop > span { width: 44px; height: 44px; margin-bottom: 10px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 50%; font-size: 25px; }
.file-drop b { color: var(--navy); font-size: 14px; }
.file-drop small { margin-top: 4px; font-size: 11px; }
.file-summary { margin-top: 12px; padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; background: var(--sky); border-radius: 10px; }
.file-summary div { min-width: 0; display: grid; }
.file-summary b { overflow: hidden; text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.file-summary small { color: var(--muted); font-size: 11px; }
.file-summary button { width: 36px; height: 36px; color: var(--muted); background: transparent; border: 0; cursor: pointer; font-size: 21px; }
.audio-player { width: 100%; height: 46px; margin-top: 12px; }

.review-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .55fr); gap: 22px; }
.full-player { margin: 0 0 16px; }
.transcript-field textarea { min-height: 245px; line-height: 1.75; }
.settings-panel { display: grid; align-content: start; gap: 20px; }
.definition-list { display: grid; gap: 12px; }
.definition-list div { padding-top: 12px; display: grid; gap: 2px; border-top: 1px solid var(--line); }
.definition-list b { color: var(--navy); font-size: 12px; }
.definition-list span { color: var(--muted); font-size: 11px; }

.inline-actions { display: flex; gap: 8px; }
.subject-strip { margin: -10px 0 22px; padding: 13px 15px; display: flex; flex-wrap: wrap; gap: 8px 24px; color: #4e6376; background: var(--sky); border-radius: 11px; font-size: 12px; }
.subject-strip b { color: var(--navy); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-card { min-height: 132px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; background: #fbfdff; border: 1px solid var(--line); border-radius: 15px; }
.metric-card.primary { color: white; background: var(--blue); border-color: var(--blue); }
.metric-card span { color: var(--muted); font-size: 12px; font-weight: 700; }
.metric-card.primary span, .metric-card.primary small { color: #d4e9fb; }
.metric-card strong { color: var(--navy); font-size: 29px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.metric-card.primary strong { color: white; }
.metric-card small { color: var(--muted); font-size: 11px; }
.result-details { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.result-panel { padding: 23px; border: 1px solid var(--line); border-radius: 15px; }
.panel-heading h3 { margin: 0; color: var(--navy); font-size: 15px; }
.panel-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.time-chart { margin-top: 32px; }
.time-bar { height: 13px; display: flex; overflow: hidden; background: #e8eef3; border-radius: 20px; }
.time-bar span { background: var(--blue); }
.time-bar i { background: #f2b84b; }
.chart-legend { margin-top: 16px; display: flex; gap: 24px; color: var(--muted); font-size: 11px; }
.chart-legend span { display: flex; align-items: center; gap: 6px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 3px; }
.legend-speech { background: var(--blue); }
.legend-pause { background: #f2b84b; }
.chart-legend b { color: var(--navy); }
.result-transcript { max-height: 125px; overflow: auto; margin: 18px 0 0; color: #405569; font-size: 13px; line-height: 1.75; white-space: pre-wrap; }
.pause-table-panel { margin-top: 16px; }
.table-wrap { margin-top: 16px; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 10px 12px; color: #50667a; background: #f2f6f9; text-align: left; font-weight: 800; white-space: nowrap; }
td { padding: 11px 12px; color: #334a5f; border-bottom: 1px solid #e6edf2; white-space: nowrap; }
tbody tr:hover { background: #f8fbfd; }

.admin-card { min-height: 550px; }
.login-panel { max-width: 400px; margin: 70px auto; padding: 28px; display: grid; gap: 17px; background: var(--sky); border: 1px solid var(--line); border-radius: 16px; }
.login-panel > p { margin: 0; color: var(--muted); text-align: center; font-size: 11px; }
.records-toolbar { display: flex; justify-content: space-between; gap: 20px; }
.records-toolbar > div { display: flex; flex-wrap: wrap; gap: 7px; }
.search-field { min-width: 240px; }
.record-cards { display: none; }
.empty-state { padding: 70px 20px; color: var(--muted); text-align: center; }

dialog { width: min(590px, calc(100% - 32px)); max-height: calc(100vh - 40px); padding: 28px; color: var(--ink); background: white; border: 0; border-radius: 20px; box-shadow: 0 30px 90px rgba(18,48,74,.25); }
dialog::backdrop { background: rgba(14, 32, 48, .56); backdrop-filter: blur(3px); }
.dialog-heading { padding-bottom: 18px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { margin: 0; color: var(--navy); font-size: 23px; }
.dialog-close { width: 44px; height: 44px; color: var(--muted); background: var(--sky); border: 0; border-radius: 50%; cursor: pointer; font-size: 25px; }
.guide-list { padding: 22px 0 0; margin: 0; display: grid; gap: 18px; list-style: none; }
.guide-list li { display: flex; gap: 14px; }
.guide-list li > span { flex: 0 0 32px; height: 32px; display: grid; place-items: center; color: white; background: var(--blue); border-radius: 50%; font-size: 12px; font-weight: 800; }
.guide-list b { color: var(--navy); font-size: 14px; }
.guide-list p, .dialog-copy { color: var(--muted); font-size: 13px; }
.guide-list p { margin: 3px 0 0; }
.dialog-copy { padding-top: 16px; }
.dialog-copy h3 { margin: 24px 0 8px; color: var(--navy); font-size: 14px; }
.dialog-copy ul { padding-left: 20px; }
.dialog-copy li + li { margin-top: 8px; }

.loading-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(12,30,47,.62); backdrop-filter: blur(3px); }
.loading-overlay > div { width: min(360px, 100%); padding: 32px; display: grid; justify-items: center; color: var(--navy); background: white; border-radius: 18px; box-shadow: var(--shadow); text-align: center; }
.loading-overlay p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.spinner { width: 36px; height: 36px; margin-bottom: 15px; border: 4px solid #dce8f2; border-top-color: var(--blue); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; z-index: 110; right: 22px; bottom: 22px; max-width: min(400px, calc(100% - 40px)); padding: 13px 16px; color: white; background: #173a58; border-radius: 11px; box-shadow: 0 15px 40px rgba(18,48,74,.24); font-size: 13px; }
footer { width: min(1180px, calc(100% - 40px)); min-height: 62px; margin: auto; display: flex; justify-content: space-between; align-items: center; color: #8291a0; border-top: 1px solid var(--line); font-size: 11px; }

@media (max-width: 900px) {
  .page-shell { padding-top: 28px; }
  .hero-card { grid-template-columns: 1fr; gap: 38px; padding: 45px; }
  .overview-card { max-width: none; }
  .task-layout, .review-layout { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .audio-layout { grid-template-columns: 1fr; }
  .recorder-panel, .upload-panel { min-height: 330px; }
  .stepper li b { display: none; }
  .stepper li:not(:last-child)::after { width: calc(100% - 42px); left: calc(50% + 21px); }
}

@media (max-width: 640px) {
  .header-inner, .page-shell, footer { width: min(100% - 24px, 1180px); }
  .header-inner { min-height: 62px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { display: none; }
  .header-actions { gap: 5px; }
  .header-actions .button { min-height: 40px; padding: 8px 10px; font-size: 12px; }
  .hide-mobile { display: none; }
  .stepper { top: 62px; }
  .stepper ol { height: 54px; }
  .stepper li:not(:last-child)::after { top: 26px; }
  .stepper li span { width: 25px; height: 25px; }
  .page-shell { min-height: calc(100vh - 116px); padding: 18px 0 44px; }
  .hero-card { min-height: 0; gap: 30px; padding: 32px 23px; border-radius: 20px; }
  .hero-copy h1 { font-size: 37px; }
  .hero-description { margin: 18px 0 24px; font-size: 14px; }
  .hero-actions { display: grid; }
  .privacy-note { line-height: 1.5; }
  .overview-card { padding: 24px; }
  .home-grid { grid-template-columns: 1fr; }
  .action-card { min-height: 95px; }
  .content-card { padding: 25px 18px; border-radius: 17px; }
  .section-heading { margin-bottom: 24px; padding-bottom: 18px; }
  .section-heading h2 { font-size: 23px; }
  .section-heading p:not(.eyebrow) { font-size: 12px; }
  .required-note { display: none; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .field-wide { grid-column: auto; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice-card { min-height: 105px; padding: 16px; display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; text-align: left; }
  .choice-symbol { grid-row: 1 / 3; }
  .choice-card b { align-self: end; }
  .choice-card small { align-self: start; }
  .recorder-panel, .upload-panel { min-height: 300px; padding: 25px 18px; }
  .record-actions { flex-wrap: wrap; justify-content: center; }
  .form-actions { position: sticky; bottom: 0; z-index: 5; margin: 26px -18px -25px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); box-shadow: 0 -10px 24px rgba(18,48,74,.07); }
  .form-actions .button { flex: 1; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric-card { min-height: 118px; padding: 16px; }
  .metric-card strong { font-size: 24px; }
  .result-details { grid-template-columns: 1fr; }
  .inline-actions { display: none; }
  .chart-legend { flex-direction: column; gap: 6px; }
  .pause-table-panel { padding-inline: 14px; }
  .records-toolbar { flex-direction: column; }
  .records-toolbar > div { display: grid; grid-template-columns: 1fr 1fr; }
  .records-toolbar .dark-text { grid-column: 1 / -1; }
  .search-field { min-width: 0; }
  .desktop-records { display: none; }
  .record-cards { margin-top: 18px; display: grid; gap: 10px; }
  .record-card { padding: 16px; background: var(--sky); border: 1px solid var(--line); border-radius: 13px; }
  .record-card header { display: flex; justify-content: space-between; }
  .record-card header b { color: var(--navy); }
  .record-card header span { color: var(--muted); font-size: 11px; }
  .record-card dl { margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .record-card dl div { display: grid; }
  .record-card dt { color: var(--muted); font-size: 10px; }
  .record-card dd { margin: 0; color: var(--navy); font-size: 13px; font-weight: 750; }
  dialog { padding: 23px 18px; }
  footer { padding: 18px 0; display: grid; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media(max-width:640px) {
  .header-actions .button { min-height:44px; }
  .form-actions .button { white-space:normal; min-width:0; }
  .saved-audio-panel .inline-actions {display:flex;}
}

@media print {
  .site-header, .stepper, footer, .form-actions, .inline-actions, .loading-overlay, .toast { display: none !important; }
  audio { display: none !important; }
  body { background: white; }
  .page-shell { width: 100%; padding: 0; }
  .screen { display: none !important; }
  #screen-result { display: block !important; }
  .content-card { padding: 0; border: 0; box-shadow: none; }
}

/* Reviewed coding, reports, and the researcher workspace. */
.record-reading { padding: 28px; margin-bottom: 24px; color: var(--navy); background: var(--blue-soft); border: 1px solid #b8d4ec; border-radius: 16px; }
.record-reading .panel-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.reading-text { margin:16px 0 0; white-space:pre-wrap; font-size:20px; line-height:1.95; word-break:keep-all; }
.prompt-panel .field { margin-bottom:20px; }
.coding-workspace { margin-top:26px; padding:26px; background:#f9fbfd; border:1px solid var(--line); border-radius:16px; }
.coding-workspace > .panel-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.coding-workspace .panel-heading p { max-width:640px; font-size:13px; }
.selection-note { margin:18px 0 12px; padding:10px 12px; color:var(--blue); background:var(--blue-soft); border-radius:8px; font-size:13px; }
.coding-tools { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.coding-type-button { min-height:64px; display:flex; align-items:center; gap:9px; padding:12px; border:1px solid var(--code-border,#aec9e5); border-radius:10px; color:var(--code-ink,#174f83); background:var(--code-bg,#edf5fc); cursor:pointer; text-align:left; }
.coding-type-button b { min-width:28px; font-size:13px; }
.coding-type-button span { font-size:12px; line-height:1.45; }
.coding-type-button:hover { box-shadow:inset 0 0 0 1px var(--code-border,#aec9e5); }
.coding-H, .coding-I, .coding-Ur, .coding-R1 { --code-ink:#174f83; --code-bg:#edf5fc; --code-border:#7eadd4; }
.coding-Ha, .coding-Ia { --code-ink:#8e3414; --code-bg:#fff1e7; --code-border:#d3a37f; }
.coding-URa, .coding-R1a, .coding-R2 { --code-ink:#694397; --code-bg:#f3edfc; --code-border:#aa91ca; }
.coding-DP { --code-ink:#0f6959; --code-bg:#e7f7f1; --code-border:#81bda9; }
.coding-controls { margin:18px 0; display:flex; align-items:flex-end; justify-content:space-between; gap:14px; }
.coding-controls .field { max-width:250px; }
.annotated-transcript { padding:22px 18px; min-height:86px; background:white; border:1px solid var(--line); border-radius:12px; white-space:pre-wrap; line-height:2.65; font-size:16px; overflow-wrap:anywhere; }
.coding-mark { padding:3px 4px; color:var(--code-ink,#174f83); background:var(--code-bg,#edf5fc); border:1px solid var(--code-border,#7eadd4); border-radius:5px; box-decoration-break:clone; -webkit-box-decoration-break:clone; }
.coding-mark.is-suggested { border-style:dashed; }
.coding-mark button[data-annotation-open] { font-family:inherit; color:inherit; border:0; border-radius:5px; background:transparent; padding:5px 4px; min-height:44px; cursor:pointer; }
.coding-mark button[data-annotation-open]:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.coding-mark button[data-annotation-play] { font-family:inherit; color:inherit; border:0; border-radius:5px; background:transparent; padding:5px 6px; min-height:44px; cursor:pointer; }
.coding-mark button[data-annotation-play]:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.transcript-heading { display:flex; flex-wrap:wrap; gap:12px; align-items:flex-start; justify-content:space-between; margin-top:16px; }
.transcript-heading h3 { margin:0 0 6px; }
.transcript-heading p { color:var(--muted); font-size:13px; margin:0; }
.unified-transcript { min-height:160px; font-size:17px; }
.review-details { margin:14px 0; border:1px solid var(--line); border-radius:12px; padding:0 16px; background:white; }
.review-details > summary { min-height:48px; padding:12px 0; font-weight:700; color:var(--navy); cursor:pointer; }
.review-details > summary:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.review-details[open] { padding-bottom:16px; }
.annotation-inspector { margin:16px 0; padding:14px; background:#f0f7ff; border:1px solid #a6c7e6; border-radius:12px; }
.annotation-inspector > p { color:var(--muted); margin:0 0 12px; font-size:13px; }
.alignment-notice { margin:12px 0; padding:12px; border-radius:10px; background:#fff7e9; color:#76500d; }
.alignment-notice p { margin:0 0 8px; font-size:13px; }
.coding-mark [data-coding-label]:not(.timing-badge) { margin-left:5px; font-size:10px; font-weight:750; white-space:nowrap; user-select:none; }
.coding-find { margin:12px 0; }
.coding-find .field { max-width:480px; }
.coding-find-results { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.coding-find-results .button { min-height:44px; white-space:normal; text-align:left; overflow-wrap:anywhere; }
.timing-workspace { margin-top:24px; padding-top:24px; border-top:1px solid var(--line); }
.timing-workspace .panel-heading { display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:12px; }
.timing-placement { max-width:300px; margin:16px 0; }
.timing-badge { display:inline-block; max-width:100%; margin:0 4px; padding:4px 8px; border:1px solid #9eb8ce; border-radius:7px; background:#eef5fc; color:#174f83; font:inherit; font-size:13px; line-height:1.5; white-space:normal; overflow-wrap:anywhere; vertical-align:middle; user-select:none; }
button.timing-badge { min-height:44px; cursor:pointer; }
.timing-block { color:#8e3414; border-color:#d3a37f; background:#fff1e7; }
.block-editor { margin-top:16px; padding:18px; border:1px solid var(--line); border-radius:12px; background:white; }
.block-editor h4 { margin:0 0 8px; }
.block-time-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:16px 0; }
.block-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.block-time-fields .button { margin-top:8px; padding:8px; font-size:12px; white-space:normal; }
.annotation-list { margin-top:12px; display:grid; gap:8px; }
.annotation-item { display:flex; flex-wrap:wrap; gap:10px; align-items:center; padding:12px; border:1px solid var(--line); border-radius:10px; background:white; }
.annotation-item > div { flex:1; min-width:120px; display:grid; }
.annotation-item b { font-size:13px; overflow-wrap:anywhere; }
.annotation-item small { color:var(--muted); font-size:12px; }
.annotation-item select { max-width:240px; min-height:44px; padding:8px; border:1px solid var(--line); border-radius:8px; background:white; color:var(--navy); }
.annotation-item .button { padding:8px 12px; font-size:12px; }
.annotation-item.needs-review { border-color:#d6a268; background:#fff8ec; }
.coding-empty, .coding-help { color:var(--muted); font-size:12px; line-height:1.7; }
.review-check { margin:18px 0 10px; min-height:44px; display:flex; align-items:center; gap:10px; color:var(--navy); font-size:13px; font-weight:700; }
.review-check input { width:19px; height:19px; accent-color:var(--blue); flex-shrink:0; }

.report-header { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.report-header h2 { margin:0; color:var(--navy); font-size:25px; }
.report-status { margin:7px 0 0; color:var(--blue); font-size:13px; }
.report-code { padding:10px 16px; background:var(--blue-soft); color:var(--blue); border-radius:10px; font-size:18px; font-weight:850; }
.report-note { padding:12px 14px; margin:22px 0; background:#f2f6f9; color:#52697e; border-radius:9px; font-size:12px; }
.report-highlights { margin-bottom:22px; }
.report-grid { display:grid; grid-template-columns:1fr 1fr; align-items:start; gap:20px; }
.report-section { padding:22px; margin-top:18px; background:white; border:1px solid var(--line); border-radius:13px; break-inside:avoid; }
.report-grid .report-section { margin:0; }
.report-section h3 { margin:0 0 16px; color:var(--navy); font-size:16px; }
.report-section table th { white-space:normal; font-size:12px; }
.report-section table td { text-align:right; font-variant-numeric:tabular-nums; }
.report-section .annotated-transcript { border:0; padding:0; }
.report-formula { margin-top:18px; color:var(--muted); font-size:12px; }
.report-section summary { min-height:44px; display:flex; align-items:center; color:var(--blue); font-size:14px; font-weight:750; cursor:pointer; }
#report-dialog { width:min(1060px,calc(100% - 32px)); padding:32px; }
.report-dialog-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; margin-bottom:16px; }

.admin-workspace { display:grid; grid-template-columns:184px minmax(0,1fr); gap:28px; }
.admin-sidebar { padding:18px 12px; align-self:start; display:grid; gap:6px; background:#153c5e; border-radius:14px; }
.admin-sidebar p { margin:6px 12px 14px; color:#b4ccdf; font-size:12px; font-weight:750; }
.admin-sidebar button { padding:12px; min-height:46px; color:#e9f1f8; text-align:left; background:none; border:0; border-radius:9px; cursor:pointer; font-size:13px; }
.admin-sidebar button.is-active { background:#2874b9; color:white; font-weight:800; }
.admin-sidebar button:hover { background:#24587f; }
.admin-content { min-width:0; }
.admin-view > h3 { margin:0 0 22px; color:var(--navy); }
.dashboard-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.dashboard-breakdown { margin-top:20px; display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.dashboard-breakdown section { padding:18px; background:var(--sky); border:1px solid var(--line); border-radius:12px; }
.dashboard-breakdown h4 { margin:0 0 16px; }
.distribution-row { display:grid; grid-template-columns:90px 1fr 36px; gap:8px; align-items:center; margin:8px 0; font-size:12px; }
.distribution-row meter { width:100%; }
.recent-records { display:grid; gap:8px; }
.recent-records button { min-height:52px; padding:12px 14px; display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:10px; color:var(--navy); background:var(--sky); border:1px solid var(--line); border-radius:10px; cursor:pointer; }
.recent-records span, .recent-records small { color:var(--muted); font-size:12px; }
.record-filters { margin-top:16px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.record-link { min-height:44px; padding:6px 0; color:var(--blue); font-weight:750; background:none; border:0; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
tr[data-record-id] { cursor:pointer; }
.record-card { width:100%; text-align:left; cursor:pointer; }
.material-list { margin-top:20px; display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.material-card { padding:20px; background:var(--sky); border:1px solid var(--line); border-radius:12px; }
.material-card > div { display:flex; justify-content:space-between; gap:12px; }
.material-card small { color:var(--muted); font-size:12px; }
.material-card p { color:#52697e; font-size:13px; line-height:1.7; }
.material-editor { margin-top:24px; padding:24px; display:grid; gap:18px; border:1px solid var(--line); border-radius:14px; }
.material-editor fieldset { margin:0; border:1px solid var(--line); border-radius:10px; }
.material-editor legend { color:var(--navy); font-size:13px; font-weight:700; }
.age-checkboxes { display:flex; flex-wrap:wrap; gap:8px 18px; }
.age-checkboxes label { min-height:44px; display:flex; align-items:center; gap:6px; font-size:13px; }
.editor-actions { display:flex; justify-content:flex-end; gap:10px; }
.account-form { max-width:470px; display:grid; gap:20px; }
.login-panel h3 { margin:0 0 6px; }

@media(max-width:1050px) {
 .admin-workspace { grid-template-columns:150px minmax(0,1fr);gap:18px; }
 .records-toolbar { flex-wrap:wrap;gap:12px; }
 .record-filters { grid-template-columns:1fr 1fr; }
 .coding-tools { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:768px) {
 .admin-workspace { grid-template-columns:1fr; }
 .admin-sidebar { display:flex; flex-wrap:wrap; gap:5px;padding:10px; }
 .admin-sidebar p { display:none; }
 .admin-sidebar button { flex:1; text-align:center; white-space:nowrap; }
 .dashboard-breakdown, .material-list { grid-template-columns:1fr; }
 .report-grid { grid-template-columns:1fr; }
 .annotation-item select { width:100%;max-width:100%; }
}
@media(max-width:640px) {
 #screen-review .section-heading { flex-direction:column;gap:12px; }
 #screen-review .section-heading > div { width:100%; }
 #transcription-engine { align-self:flex-start; }
 .record-reading { padding:20px; }
 .reading-text { font-size:18px; }
 .record-reading .panel-heading { flex-wrap:wrap; }
 .coding-workspace { padding:18px 12px; }
 .coding-workspace > .panel-heading { flex-direction:column; }
 .coding-tools { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .coding-controls { align-items:stretch;flex-direction:column; }
 .coding-controls .field { max-width:none; }
 .coding-mark [data-coding-label]:not(.timing-badge) { font-size:10px; }
 .block-time-fields { grid-template-columns:1fr; }
 .timing-placement { max-width:none; }
 .block-editor { padding:12px; }
 .annotation-item { gap:8px; }
 .annotation-item > div { flex-basis:100%; }
 .annotation-item > label { flex-basis:100%; }
 .annotation-item .button { flex:1; }
 .report-header { flex-direction:column; align-items:flex-start;gap:12px; }
 .report-header h2 { font-size:21px; }
 .report-section { padding:16px; }
 #report-dialog { padding:20px 14px; }
 .dashboard-metrics { grid-template-columns:1fr; }
 .dashboard-metrics .metric-card { min-height:100px; }
 .admin-sidebar button { font-size:12px;padding:10px 8px; }
 .material-editor { padding:18px 12px; }
 .inline-actions { display:flex;flex-wrap:wrap; }
 .result-card > .section-heading { flex-direction:column; }
 .form-actions { flex-wrap:wrap; }
}
@media print {
 .report-grid { grid-template-columns:1fr 1fr; }
 .report-section { padding:12px;margin-top:10px; }
 .report-header h2 { font-size:20px; }
 .report-note { font-size:10px; }
 .report-dialog-actions { display:none!important; }
 .report-highlights { grid-template-columns:repeat(4,1fr); }
 .metric-card, .metric-card.primary { color:black!important;background:white!important;border:1px solid #ccc;box-shadow:none; }
 .metric-card span, .metric-card strong, .metric-card.primary strong, .metric-card.primary span { color:black!important; }
 .print-saved-report #main-content { display:none!important; }
 .print-saved-report #report-dialog { position:static;display:block!important;width:100%;max-height:none;overflow:visible;padding:0;margin:0;box-shadow:none; }
 .print-saved-report #report-dialog::backdrop { background:transparent; }
 @page { size:A4; margin:12mm; }
}
