/* ABOUTME: Styles the focused, responsive debate practice interface. */
/* ABOUTME: Defines visual hierarchy and accessible interaction states. */
:root{font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#1f302b;background:#f7f8f5;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0}
button,textarea,input{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.55}
button:focus-visible,textarea:focus-visible,summary:focus-visible,.upload-button:focus-within{outline:3px solid #7caa90;outline-offset:3px}
.topbar{height:76px;border-bottom:1px solid #e4e9e2;display:flex;align-items:center;justify-content:space-between;padding:0 max(6vw,24px);background:#fbfcfa}
.brand{display:flex;align-items:center;gap:11px;font-weight:750;font-size:20px;letter-spacing:.05em}
.brand-mark{background:#214d3c;color:#fff;width:34px;height:34px;display:grid;place-items:center;border-radius:10px;font-family:serif}
.brand small{display:block;color:#809088;font-size:9px;letter-spacing:.14em;margin-top:1px}
.top-note{font-size:13px;color:#87948b}
.page{max-width:1120px;margin:0 auto;padding:45px 28px 90px}
.eyebrow,.section-number{font-size:11px;letter-spacing:.13em;font-weight:750;color:#768c7d}
.eyebrow{display:flex;align-items:center;gap:9px}
.green-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#6eab7c}
.divider{color:#c6cec5;margin:0 5px}
.intro{display:grid;grid-template-columns:1.1fr .9fr;align-items:center;min-height:310px;padding:32px 0 44px}
.kicker{color:#527962;font-size:14px;font-weight:700;margin-bottom:18px}
h1,h2,h3,p{margin:0}
h1{font-family:Georgia,"Songti SC",serif;font-weight:600;letter-spacing:-.04em;font-size:clamp(34px,4.4vw,52px);line-height:1.32}
h1 em{font-style:normal;color:#547d60}
.intro p,.step-heading p{color:#78887d;line-height:1.9;margin-top:19px;font-size:15px}
.intro-art{height:230px;position:relative;overflow:hidden;background:#e8efe6;border-radius:140px 140px 22px 22px;margin-left:55px}
.orbit{position:absolute;border:1px solid #b8cdb8;border-radius:50%;width:220px;height:220px;top:16px}
.orbit-one{left:calc(50% - 130px)}
.orbit-two{left:calc(50% - 70px)}
.quote-mark{position:absolute;font:160px Georgia,serif;color:#356747;top:5px;left:calc(50% - 43px);line-height:1}
.art-label{position:absolute;left:25px;bottom:22px;font-size:9px;line-height:1.5;letter-spacing:.1em;color:#6f8b73}
.art-star{position:absolute;right:28px;top:20px;font-size:20px;color:#759d79}
.work-card{background:#fff;border:1px solid #e5ebe4;border-radius:16px;box-shadow:0 12px 35px rgba(29,55,37,.035)}
.work-card{padding:32px 36px}
.card-heading{display:flex;justify-content:space-between;align-items:start;margin-bottom:24px}
.card-heading h2,.report-title h2{font-family:Georgia,"Songti SC",serif;font-size:25px;margin-top:9px}
.card-heading p{color:#859289;font-size:14px;margin-top:8px}
.tag{background:#edf3eb;color:#5d8265;font-size:11px;font-weight:700;padding:7px 10px;border-radius:5px;white-space:nowrap}
.field-label{display:flex;justify-content:space-between;font-weight:700;font-size:14px;margin:22px 0 10px}
.field-label span{color:#9ba89d;font-weight:400;font-size:12px}
textarea{width:100%;resize:vertical;border:1px solid #dce5db;border-radius:8px;padding:15px;color:#344a3c;background:#fcfdfb;line-height:1.7;font-size:16px}
textarea::placeholder{color:#aab5aa}
.upload-row{display:flex;gap:14px;align-items:center;margin-top:14px;color:#97a499;font-size:12px}
.upload-button,.secondary{display:inline-flex;align-items:center;gap:8px;border:1px solid #d8e3d8;background:#fff;color:#41664c;border-radius:6px;padding:9px 13px;font-size:13px;font-weight:700;cursor:pointer}
.upload-button span{font-size:20px;line-height:12px}
.upload-button input{position:absolute;width:1px;height:1px;opacity:0}
.upload-button.disabled{opacity:.5;pointer-events:none}
.attachment-list{list-style:none;margin:14px 0 0;padding:0;border:1px solid #e2ebe1;border-radius:8px}
.attachment-list li{display:flex;align-items:center;gap:12px;padding:11px 14px;border-bottom:1px solid #edf1ec;font-size:13px}
.attachment-list li:last-child{border-bottom:0}
.attachment-name{min-width:0;overflow-wrap:anywhere;flex:1;color:#415b47}
.attachment-size{color:#89998c;white-space:nowrap;font-size:12px}
.attachment-remove{background:none;border:0;color:#64866a;padding:5px;font-size:13px}
.privacy{font-size:12px;color:#89978c;padding:18px 0 4px;line-height:1.6}
.card-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid #edf1ec;margin-top:22px;padding-top:22px;color:#99a59b;font-size:12px}
.primary{background:#24583e;color:white;border:0;border-radius:7px;padding:13px 20px;font-size:14px;font-weight:700;min-height:46px}
.primary span{margin-left:22px;color:#b8d7bd}
.primary:hover{background:#193f2c}
.notice{margin-top:16px;padding:12px 14px;background:#eff6ee;color:#456d50;border-radius:7px;font-size:13px;line-height:1.6}
.notice-error{background:#fff4ef;color:#9a533d}
.spinner{display:inline-block;width:12px;height:12px;margin-right:9px;border:2px solid #b9d6bb;border-top-color:#447451;border-radius:50%;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}
}
.step-heading{margin:54px 0 30px}
.step-heading h1{font-size:40px;margin-top:14px}
.step-heading p{margin-top:10px}
.review-card{max-width:850px}
.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:28px}
fieldset{border:0;padding:0;margin:0;min-width:0}
legend{font-size:14px;font-weight:700;margin-bottom:12px}
.choices{display:flex;gap:10px}
.choice{flex:1;text-align:left;border:1px solid #e1e8df;border-radius:8px;background:white;padding:13px 15px;color:#5c6d60}
.choice strong,.choice small{display:block}
.choice strong{font-size:14px}
.choice small{margin-top:5px;font-size:12px;color:#99a69a}
.choice.selected{border-color:#598d64;background:#f1f7ef;color:#2e6440}
.text-button{border:0;background:none;color:#52765a;padding:8px 0;font-weight:700}
.subtle{color:#9aa69c}
.debate-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:42px 0 24px}
.debate-heading h1{font-size:32px;margin-top:10px}
.debate-heading p{font-size:13px;color:#89998c;margin-top:10px}
.debate-heading p span{padding:0 8px}
.stage-nav{overflow-x:auto;overscroll-behavior-inline:contain;padding:3px 3px 8px;margin:0 -3px}
.stage-nav-track{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:12px;min-width:780px}
.stage-group{background:#fff;border:1px solid #e2eae0;border-radius:10px;padding:14px}
.stage-group h2{font-size:14px;color:#355a40;margin-bottom:11px}
.stage-cells{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.speech-cell{text-align:left;min-width:0;min-height:60px;padding:9px 8px;border:1px solid;border-radius:7px;transition:box-shadow .15s ease,background-color .15s ease}
.speech-cell strong,.speech-cell span{display:block}
.speech-cell strong{font-size:12px;line-height:1.4}
.speech-cell span{font-size:11px;margin-top:4px}
.speech-cell.user-cell{color:#245b39;border-color:#8cb99a;background:#fff}
.speech-cell.ai-cell{color:#31577e;border-color:#9eb7d2;background:#fff}
.speech-cell.user-cell.complete{color:#fff;border-color:#36714a;background:#36714a}
.speech-cell.ai-cell.complete{color:#fff;border-color:#416f9b;background:#416f9b}
.speech-cell:hover{box-shadow:0 0 0 2px #cedbce}
.speech-cell[aria-pressed="true"]{outline:3px solid #d3a841;outline-offset:2px}
.stage-scroll-hint{display:none}
.debate-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,340px);gap:24px;align-items:start;margin-top:20px}
.debate-record{min-width:0;background:#fff;border:1px solid #e2eae0;border-radius:12px;min-height:300px;overflow:hidden}
.record-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:20px 24px;border-bottom:1px solid #e8eee6;color:#365640;font-size:14px;font-weight:700}
.record-heading .green-dot{margin-right:8px}
.record-heading>span{color:#6c806f;font-size:13px;font-weight:400;white-space:nowrap}
.record-speaker{font-weight:400;color:#627866}
.speech-content{padding:24px}
.speech-content p{font-size:16px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;color:#354d3b}
.speech-empty{padding:35px 0;color:#6b806f;font-size:14px;text-align:center}
.play{border:0;background:none;color:#3f7250;font-size:13px;margin-bottom:12px;padding:5px 0}
.action-panel{position:sticky;top:20px;padding:25px;background:#edf4eb;border:1px solid #dfeade;border-radius:12px;min-width:0}
.action-panel h2{font-family:Georgia,"Songti SC",serif;font-size:24px;line-height:1.4;color:#315d3d;margin-top:12px}
.action-panel>p{font-size:14px;line-height:1.7;color:#667f6b;margin-top:9px}
.action-panel .field-label{flex-wrap:wrap;gap:5px}
.action-panel textarea{background:#fff}
.action-panel .record-button{margin-top:12px}
.action-panel .record-hint{font-size:12px;margin-top:7px}
.pending-audio p{color:#526958;font-size:13px;line-height:1.6;margin:10px 0 0}
.pending-audio .text-button{margin-left:10px;font-size:13px}
.action-primary{width:100%;margin-top:22px}
.record-button{border:1px solid #cfded0;border-radius:7px;padding:10px 13px;color:#446d4d;background:white;font-size:13px;font-weight:700;white-space:nowrap}
.recording{color:#b65747;border-color:#e9b5a9;background:#fff6f2}
.record-dot{display:inline-block;width:8px;height:8px;background:#63976e;border-radius:50%;margin-right:7px}
.recording .record-dot{background:#cc6c58}
.topic-line{display:flex;align-items:baseline;gap:10px}
.topic-line h1{overflow-wrap:anywhere}
.topic-details{width:28px;height:28px;flex:none;padding:3px;border:0;background:transparent;color:#63876b;border-radius:50%}
.topic-details:hover{background:#e5efe3;color:#28583a}
.topic-details svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
#topic-dialog,#restart-dialog{width:min(520px,calc(100% - 36px));max-height:80vh;border:1px solid #dfe9dd;border-radius:14px;padding:26px;color:#284331;box-shadow:0 20px 80px #182b1c33}
#topic-dialog::backdrop,#restart-dialog::backdrop{background:#17271cb3}
.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}
.dialog-heading h2{font-size:19px}
.dialog-close{border:0;background:none;font-size:27px;line-height:1;color:#527259}
#topic-dialog h3{font-size:17px;line-height:1.5;margin:22px 0 10px;overflow-wrap:anywhere}
#topic-dialog p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.8;color:#526958}
#restart-dialog p:not(.notice){font-size:15px;line-height:1.8;color:#526958;margin:18px 0}
.restart-actions{display:grid;gap:10px;margin-top:20px}
.restart-actions button{justify-content:center;width:100%}
.restart-actions .restart-discard{flex-direction:column;gap:4px}
.restart-warning{color:#b23b32;font-size:13px;line-height:1.5;font-weight:400;text-align:center}
.report-title{display:flex;justify-content:space-between;border-bottom:1px solid #ecf1eb;padding-bottom:25px}
.report-title h2{line-height:1.5}
.report-title p{font-size:13px;color:#93a196;margin-top:9px}
.report-symbol{font-size:42px;color:#86a98a}
.report-text{overflow-wrap:anywhere;line-height:1.85;color:#465b4a;font-size:16px;padding:25px 0}
.report-text > :first-child{margin-top:0}
.report-text > :last-child{margin-bottom:0}
.report-text h1,.report-text h2,.report-text h3,.report-text h4,.report-text h5,.report-text h6{font-family:Georgia,"Songti SC",serif;letter-spacing:0;line-height:1.45;color:#234d34;margin:1.4em 0 .55em}
.report-text h1{font-size:1.6em}
.report-text h2{font-size:1.35em}
.report-text h3{font-size:1.15em}
.report-text h4,.report-text h5,.report-text h6{font-size:1em}
.report-text p,.report-text ul,.report-text ol,.report-text blockquote,.report-text pre,.report-text table{margin:0 0 1em}
.report-text ul,.report-text ol{padding-left:1.6em}
.report-text li+li{margin-top:.35em}
.report-text blockquote{border-left:3px solid #8fb396;padding:2px 0 2px 16px;color:#60796a}
.report-text blockquote > :last-child{margin-bottom:0}
.report-text a{color:#285e3b;text-decoration:underline;text-underline-offset:3px}
.report-text hr{border:0;border-top:1px solid #e1eae0;margin:1.5em 0}
.report-text code{font-family:ui-monospace,monospace;background:#eef4ed;border-radius:4px;padding:.1em .3em;font-size:.9em}
.report-text pre{overflow-x:auto;padding:14px;background:#eef4ed;border-radius:7px}
.report-text pre code{padding:0;background:none}
.report-text table{display:block;width:max-content;max-width:100%;overflow-x:auto;border-collapse:collapse}
.report-text th,.report-text td{padding:9px 12px;border:1px solid #dfe9dd;text-align:left;vertical-align:top}
.report-text th{background:#f0f6ef;color:#31583b}
.report-note{padding:13px 15px;background:#f3f7f1;color:#79907b;border-radius:6px;line-height:1.7;font-size:12px}
.action-group{display:flex;gap:10px}
footer{display:flex;justify-content:space-between;max-width:1120px;margin:auto;padding:25px 28px 35px;border-top:1px solid #e6ece4;color:#a5b0a5;font-size:12px}
footer a{color:#728577;text-decoration:none}
footer a:hover{text-decoration:underline}
@media(max-width:700px){.topbar{height:64px;padding:0 20px}
.top-note{display:none}
.page{padding:30px 18px 60px}
.intro{display:block;min-height:0;padding:35px 0 30px}
.intro h1{font-size:37px}
.intro-art{height:155px;margin:28px 0 0}
.orbit{width:150px;height:150px;top:8px}
.orbit-one{left:calc(50% - 100px)}
.orbit-two{left:calc(50% - 50px)}
.quote-mark{font-size:110px;left:calc(50% - 30px)}
.work-card{padding:24px 20px}
.choice-grid{grid-template-columns:1fr;gap:22px}
.step-heading{margin:40px 0 25px}
.step-heading h1{font-size:32px}
.debate-heading h1{font-size:25px}
.debate-layout{grid-template-columns:1fr}
.action-panel{position:static}
.record-heading,.speech-content{padding-left:18px;padding-right:18px}
.card-actions{align-items:flex-start}
.action-group{flex-wrap:wrap}
.report-title h2{font-size:21px}
.report-symbol{font-size:28px}
.topbar,footer{gap:10px}
footer{flex-wrap:wrap}
footer{font-size:11px}
}


@media(max-width:850px){.stage-scroll-hint{display:block;margin:3px 0 0;color:#6d816f;font-size:12px}}
@media (prefers-reduced-motion:reduce){.spinner{animation:none}.speech-cell{transition:none}}
.top-actions{display:flex;align-items:center;gap:22px}
.settings-button{position:relative;display:inline-flex;align-items:center;border:1px solid #d4e2d5;border-radius:7px;background:#fff;color:#315d3e;font-size:14px;font-weight:700;padding:9px 15px}
.settings-button:hover{background:#eff6ee}
.settings-dot{position:absolute;right:5px;top:5px;width:8px;height:8px;border-radius:50%;background:#c93c37;box-shadow:0 0 0 2px #fff}
.settings-dot[hidden]{display:none}
#settings-dialog{width:min(520px,calc(100% - 36px));max-height:85vh;border:1px solid #dfe9dd;border-radius:14px;padding:26px;color:#284331;box-shadow:0 20px 80px #182b1c33}
#settings-dialog::backdrop{background:#17271cb3}
.settings-explanation{font-size:14px;line-height:1.75;color:#526958;margin-top:18px}
.settings-input{width:100%;border:1px solid #dce5db;border-radius:8px;padding:12px;color:#344a3c;background:#fcfdfb;font-size:16px}
.settings-input:focus-visible{outline:3px solid #7caa90;outline-offset:3px}
.settings-state{min-height:1.5em;margin-top:10px;color:#64796a;font-size:13px;line-height:1.5}
.settings-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px}
.settings-actions button[hidden]{display:none}
