.read-only-value { display: block; min-height: 38px; margin-top: 5px; padding: 10px 11px; border: 1px solid #e1ddd3; border-radius: 6px; background: #f7f5ef; color: #4e5c57; font-weight: 400; letter-spacing: 0; }
:root { color: #173f3a; background: #f3efe5; font-family: Georgia, serif; --ink: #173f3a; --muted: #53615b; --line: #c8d0c7; --gold: #b1842b; --surface: #fffdf8; --radius: 12px; }
@media (max-width: 700px) { .source-options { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .ceremony-picker { align-items: stretch; flex-direction: column; gap: 8px; } }
@media (max-width: 700px) { .ceremony-upload-control { align-items: flex-start; flex-direction: column; gap: 8px; } .ceremony-upload-control #setting-message { white-space: normal; } }
@media (max-width: 700px) { .ceremony-actions { grid-template-columns: 1fr; } }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top right, #d8e5db, transparent 38%), #f3efe5; }
main { width: min(1040px, calc(100% - 56px)); margin: 0 auto; padding: 48px 0 72px; }
.auth-page { max-width: 760px; }
.review-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.quiet-button { margin-top: 0; background: transparent; color: var(--ink); border: 1px solid var(--line); }
.staff-panel { margin-top: 20px; }
.ceremony-overview { padding-bottom: 24px; background: #f9fbf6; }
.ceremony-overview h2 { margin-top: 4px; }
.stats-updated { color: var(--muted); font: 12px Arial, sans-serif; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.stat-card { min-height: 104px; padding: 14px; border: 1px solid #d8e0d7; border-radius: 9px; background: white; }
.stat-card strong, .stat-card span, .stat-card small { display: block; }
.stat-card strong { color: var(--ink); font: 700 27px Georgia, serif; }
.stat-card span { margin-top: 5px; color: var(--ink); font: 700 12px Arial, sans-serif; }
.stat-card small { margin-top: 5px; color: var(--muted); font: 11px Arial, sans-serif; line-height: 1.3; }
.stats-error { color: #8a3d31; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin-bottom: 6px; }
.submission { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.submission span { display: block; margin-top: 4px; color: var(--muted); font: 12px Arial, sans-serif; }
.submission p { margin: 8px 0 0; color: var(--muted); }
.submission-actions { display: flex; gap: 8px; align-items: center; }
.submission-actions button { margin-top: 0; }
.invite-output { overflow-x: auto; padding: 12px; border-radius: 8px; background: #eef2eb; color: var(--ink); white-space: pre-wrap; }
.toggle-row { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.toggle-row input { width: 18px; min-height: 18px; }
.ceremony-picker { display: flex; align-items: end; gap: 16px; max-width: none; margin: 18px 0; }
.ceremony-picker select { flex: 1; }
.ceremony-picker button { margin-top: 0; white-space: nowrap; }
.ceremony-upload-control { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.ceremony-upload-control .toggle-row { white-space: nowrap; }
.ceremony-upload-control #setting-message { max-width: 210px; margin: 0; white-space: nowrap; }
.ceremony-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.ceremony-action { min-width: 0; }
.ceremony-action h2 { margin-top: 0; }
.ceremony-action button { margin-top: 10px; }
.ceremony-action p { color: var(--muted); line-height: 1.5; }
.student-progress { margin-top: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.student-progress-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.student-progress-header h3 { margin: 0 0 4px; }
.student-progress-header span, .progress-list { color: var(--muted); font: 13px Arial, sans-serif; }
.progress-badge { padding: 7px 9px; border-radius: 999px; background: #eef2eb; color: var(--ink) !important; }
.progress-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 16px; }
.progress-list { padding-left: 18px; line-height: 1.6; }
.admin-audio-list { display: grid; gap: 10px; margin-top: 12px; }
.admin-audio-list > div { padding-top: 10px; border-top: 1px solid var(--line); }
.admin-audio-list span, .selected-audio-label { display: block; margin-bottom: 5px; color: var(--muted); font: 12px Arial, sans-serif; }
.admin-audio-list audio, .student-progress audio { width: 100%; height: 34px; }
.eyebrow { color: #9a7023; font: 700 12px/1.2 Arial, sans-serif; letter-spacing: .12em; }
h1 { max-width: 680px; margin: 14px 0 8px; font-size: clamp(42px, 6vw, 68px); line-height: .95; }
.intro { max-width: 680px; margin: 0; font-size: 18px; color: #53615b; }
.panel { margin-top: 28px; padding: 26px 30px 32px; background: var(--surface); border: 1px solid #d8d3c7; border-radius: var(--radius); box-shadow: 8px 8px 0 #d8e5db; }
.record-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid #e2ded4; }
.record-heading h2 { margin: 5px 0 8px; font-size: clamp(28px, 4vw, 42px); }
.section-intro, .section-heading p { margin: 0; color: var(--muted); line-height: 1.5; }
.autosave-badge, .standard-setting { flex: 0 0 auto; padding: 8px 11px; border-radius: 999px; background: #e6eadf; color: var(--ink); font: 700 12px Arial, sans-serif; }
.record-section { padding: 26px 0; border-bottom: 1px solid #e2ded4; }
.record-section:last-child { border-bottom: 0; padding-bottom: 0; }
.record-section .section-heading { margin-bottom: 18px; }
.record-section h3 { margin: 0 0 6px; font-size: 21px; }
.pronunciation-section { margin: 0 -30px; padding: 26px 30px; background: #f7f8f2; }
.speech-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.candidate-section { padding-top: 24px; }
.submission-section ul { margin-bottom: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
label.wide, .wide { grid-column: 1 / -1; }
textarea { width: 100%; min-height: 76px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font: 16px Georgia, serif; resize: vertical; }
select { min-height: 45px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); }
hr { margin: 24px 0; border: 0; border-top: 1px solid #d8d3c7; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.source-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 7px; }
.source-options label { display: flex; align-items: flex-start; gap: 6px; min-width: 0; border: 1px solid #d9d5ca; border-radius: 6px; padding: 9px; background: white; color: #596562; font-size: 11px; cursor: pointer; }
.source-options label span { min-width: 0; }
.source-options label strong, .source-options label small { display: block; overflow-wrap: anywhere; }
.source-options label small { margin-top: 4px; color: #78817e; font-weight: 400; line-height: 1.3; }
.source-options label.selected { border-color: #438278; background: #eaf3ef; color: #34745a; font-weight: 700; }
.source-options label.disabled { opacity: .45; cursor: not-allowed; }
.source-options input { display: block; width: auto; flex: none; padding: 0; margin: 3px 0 0; accent-color: #438278; }
.presets button { margin-top: 0; background: #e6eadf; color: #173f3a; }
.candidate { display: grid; gap: 10px; margin-top: 12px; padding: 14px 16px; border: 1px solid #d8d3c7; border-radius: 10px; background: #fff; }
.candidate audio { width: 100%; height: 38px; border-radius: 8px; }
.candidate-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.candidate-heading h3 { margin-bottom: 6px; }
.candidate-heading p { margin-top: 0; color: #53615b; }
.selection-rule { flex: 0 0 auto; padding: 8px 10px; border-radius: 999px; color: #6f531c; background: #f3e6bd; font: 700 12px Arial, sans-serif; }
.candidate-topline, .candidate-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.candidate-status { color: #687471; font: 700 12px Arial, sans-serif; }
.candidate.selected { border: 2px solid #2e7667; background: #f2f8f1; box-shadow: 0 3px 10px #2e766722; }
.candidate.selected .candidate-status { color: #1d6658; }
.candidate-actions button { margin-top: 0; }
.candidate-actions .delete-candidate { background: #f1e5de; color: #7d392c; }
.candidate-actions button:disabled { cursor: default; opacity: .65; }
.empty-candidates { color: #53615b; }
.feature-disabled { padding: 12px; border-radius: 8px; background: #f3efe5; color: var(--muted); }
@media (max-width: 700px) { main { width: min(100% - 32px, 560px); padding: 32px 0 48px; } .panel { padding: 22px 18px 26px; } .form-grid, .progress-grid, .speech-settings { grid-template-columns: 1fr; } .pronunciation-section { margin: 0 -18px; padding: 24px 18px; } .record-heading, .candidate-heading, .candidate-topline, .candidate-actions, .submission, .section-heading, .student-progress-header { align-items: stretch; flex-direction: column; } }
label { display: grid; gap: 8px; font: 700 14px Arial, sans-serif; }
input { width: 100%; min-height: 45px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font: 16px monospace; }
button { margin-top: 18px; padding: 12px 18px; border: 0; border-radius: 9px; background: var(--gold); color: white; font: 700 14px Arial, sans-serif; cursor: pointer; transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
button:hover:not(:disabled) { background: #986f20; box-shadow: 0 4px 10px #986f2030; transform: translateY(-1px); }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #b1842b55; outline-offset: 2px; border-color: var(--gold); }
button:disabled { cursor: not-allowed; opacity: .58; }
h2, h3 { color: var(--ink); }
h2 { margin-top: 0; }
h3 { margin-bottom: 8px; }
.hidden { display: none; }
li { margin: 8px 0; color: var(--muted); }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
