:root{color-scheme:light;--ink:#233b37;--muted:#637772;--line:#dae5df;--green:#21614e;--paper:#fbfcf9;font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;font-size:16px}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--paper);color:var(--ink);min-width:300px}
a{color:var(--green);text-underline-offset:4px}
button{font:inherit;cursor:pointer;min-height:44px;border-radius:12px;padding:10px 18px;border:1px solid var(--line);background:white;color:var(--ink)}
button:disabled{cursor:not-allowed;color:#687872;background:#e9eee8;border-color:#e3e9e1}
button:not(:disabled):hover{filter:brightness(.95)}
button:focus-visible,a:focus-visible{outline:3px solid #509677;outline-offset:4px}
.header{max-width:1020px;margin:auto;padding:24px 32px;display:flex;align-items:center;gap:18px}
.brand{display:flex;gap:10px;align-items:center;font-weight:700;font-size:18px;text-decoration:none;color:var(--ink)}
.brand-icon{width:34px;height:34px;background:var(--green);color:#fff;display:grid;place-items:center;border-radius:10px;font-size:16px}
.trial{font-size:12px;color:var(--muted);border-left:1px solid var(--line);padding-left:18px}
.settings-toggle{margin-left:auto}
.quiet{border:0;background:transparent;color:var(--green);padding:8px 10px;font-size:14px}
main{max-width:780px;margin:0 auto;padding:12px 32px 0}
.conversation{text-align:center;padding:25px 0 32px}
.provider{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:7px;justify-content:center;margin:0 0 18px}
.provider span{height:6px;width:6px;background:#adb9ac;border-radius:100%}
h1{font-size:clamp(30px,4vw,42px);letter-spacing:.04em;font-weight:600;margin:0}
.voice-orb{margin:26px auto 24px;width:140px;height:140px;border-radius:50%;background:radial-gradient(circle at 35% 28%,#e8f3df,#d4e4d7 65%,#c3dacf);box-shadow:0 16px 38px #426e4210,inset 0 0 0 8px #ffffff40;display:flex;align-items:center;justify-content:center;gap:7px}
.voice-orb span{width:5px;height:20px;border-radius:9px;background:#709986}
.voice-orb span:nth-child(2),.voice-orb span:nth-child(4){height:33px}
.voice-orb span:nth-child(3){height:48px}
.status{font-size:15px;min-height:24px;margin:0 0 23px;color:var(--muted)}
.controls{display:flex;justify-content:center;gap:12px}
.primary{background:var(--green);border-color:var(--green);color:white;min-width:176px;font-weight:600}
.secondary{min-width:96px}
.transcript{padding:22px 24px 30px;border:1px solid var(--line);border-radius:18px;background:#fff;min-height:155px}
h2{font-size:14px;font-weight:600;margin:0}
.empty{font-size:14px;color:#788680;text-align:center;margin:32px 0 8px}
.settings{margin-top:18px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px 24px}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
dl{display:grid;grid-template-columns:minmax(100px,1fr) 2fr;font-size:14px;gap:12px;margin:16px 0;color:var(--muted)}
dt,dd{margin:0}
dd{text-align:right;overflow-wrap:anywhere}
.hint{font-size:13px;line-height:1.7;color:var(--muted);margin:12px 0 0}
.microphone{margin-top:20px;padding-top:14px;border-top:1px solid var(--line)}
meter{display:block;width:100%;height:13px;margin-top:10px;accent-color:#468a6b}
.more{display:flex;gap:24px;margin-top:22px;font-size:14px}
.account{display:flex;justify-content:space-between;align-items:center;margin-top:20px;padding-top:12px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.notice{padding:16px 20px;border-radius:12px;background:#fff0db;color:#754e26;line-height:1.7;font-size:14px}
footer{text-align:center;padding:24px;font-size:12px;color:var(--muted)}
@media(max-width:520px){.header{padding:18px 20px;gap:12px}.trial{padding-left:12px;font-size:11px}main{padding:4px 18px 0}.conversation{padding-top:22px}.voice-orb{width:120px;height:120px;margin-top:24px}.settings,.transcript{padding-left:18px;padding-right:18px}dl{font-size:12px;gap:10px}.account{gap:8px}}
/* Live conversation keeps the same compact page and folded settings. */
.voice-orb.active span { animation: voice-breathe 1s ease-in-out infinite alternate; }
.voice-orb.active span:nth-child(even) { animation-delay: .25s; }
@keyframes voice-breathe { to { transform: scaleY(.5); } }
#transcript { max-height: 420px; overflow-y: auto; scroll-behavior: smooth; }
.utterance { margin: 12px 0; padding: 12px 16px; background: #f4f6f5; border-radius: 14px; max-width: 90%; }
.utterance.user { margin-left: auto; background: #eaf4ef; }
.utterance small { color: #62756a; }
.utterance p { margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.utterance.interim { opacity: .7; }
.settings-grid{display:grid;gap:16px;padding:16px 0}
.setting-row{display:grid;grid-template-columns:145px minmax(0,1fr) 65px;gap:8px 14px;align-items:center;font-size:14px}
.setting-row label{line-height:1.5}
.setting-row input,.setting-row select,.setting-row textarea{font:inherit;min-width:0;accent-color:var(--green)}
.setting-row select,.setting-row textarea{grid-column:2 / 4;width:100%;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);padding:10px;min-height:42px}
.setting-row input[type=checkbox]{justify-self:start;width:20px;height:20px;cursor:pointer}
.setting-row input[type=range]{width:100%;min-height:32px;cursor:pointer}
.setting-row output{text-align:right;font-variant-numeric:tabular-nums;color:var(--muted);font-size:13px}
.setting-row small{grid-column:2 / 4;font-size:12px;color:var(--muted);line-height:1.6}
.setting-row :disabled{opacity:.55;cursor:not-allowed}
.setting-row input:focus-visible,.setting-row select:focus-visible,.setting-row textarea:focus-visible,summary:focus-visible{outline:3px solid #509677;outline-offset:3px}
summary{cursor:pointer;font-size:14px;min-height:44px;display:list-item;padding:12px 0;color:var(--green)}
.more-settings,.connection-settings,.demo-cases{border-top:1px solid var(--line);margin-top:14px}
.demo-cases ul{font-size:13px;line-height:1.8;padding-left:20px;margin:12px 0}
.demo-cases li{margin:8px 0;overflow-wrap:anywhere}
.setting-group{border-top:1px solid #eff3ee;padding:0 8px}
.setting-group .settings-grid{padding-top:8px}
.connection-settings>.section-heading{margin-top:10px}
@media(max-width:520px){.setting-row{grid-template-columns:100px minmax(0,1fr) 58px;gap:8px}.setting-row.wide label{grid-column:1 / 4}.setting-row.wide textarea{grid-column:1 / 4}.setting-group{padding:0}}
@media (prefers-reduced-motion: reduce) { .voice-orb.active span { animation: none; } #transcript { scroll-behavior: auto; } }
/* Visible intake table; only secondary reference material is folded. */
main{max-width:1200px}
.talk-workspace{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(410px,1fr);gap:24px;align-items:start}
.talk-main{min-width:0}
.report-panel{min-width:0;padding:18px 20px;background:#fff;border:1px solid var(--line);border-radius:18px}
.report-panel h2{font-size:17px}
.report-summary{margin:8px 0 16px;font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.point-controls{display:flex;gap:8px;align-items:center;margin-bottom:8px}
.point-controls select{flex:1;min-width:0;text-overflow:ellipsis}
.report-panel select,.report-panel input{font:inherit;color:var(--ink);border:1px solid var(--line);border-radius:7px;background:white;min-height:38px;padding:7px 9px;max-width:100%}
.report-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px}
.report-table th,.report-table td{border-bottom:1px solid #edf1ed;text-align:left;padding:6px 3px;vertical-align:middle}
.report-table th{font-weight:500}
.report-table thead th:first-child{width:94px}
.report-table thead th:last-child{width:89px}
.report-table input{width:100%;font-size:13px}
.report-table input::placeholder{color:#8d9993}
.report-table .field-state{width:100%;font-size:12px;padding:7px 3px}
.field-state.state-confirmed{color:#236146;background:#edf7f0;border-color:#bad9c6}
.field-state.state-pending{color:#805b19;background:#fff8e8;border-color:#ebd49d}
.field-state.state-unknown{color:#586e80;background:#edf3f7;border-color:#c5d3e0}
.report-panel input:focus-visible,.report-panel select:focus-visible{outline:2px solid #509677;outline-offset:2px}
.report-actions{display:flex;align-items:center;gap:14px;margin-top:18px}
.report-actions .primary{min-width:90px;font-size:14px;padding:9px 16px}
.report-actions .hint{margin:0;line-height:1.5}
.report-extra{margin-top:12px;border-top:1px solid var(--line)}
.report-extra>select,.report-extra>input{width:100%;font-size:13px}
.report-panel ul{padding-left:18px;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.place-candidate{display:block;min-height:36px;margin-top:6px;padding:6px 9px;font-size:13px;width:100%;text-align:left}
.example-label{font-size:12px;color:#855a1f;margin:6px 0;background:#fff3d9;padding:5px 8px;border-radius:6px}
.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}
@media(max-width:900px){main{max-width:780px}.talk-workspace{grid-template-columns:minmax(0,1fr);gap:18px}.report-panel{padding:18px}.conversation{padding-top:10px}}
@media(max-width:400px){.report-panel{padding:12px}.report-table thead th:first-child{width:76px}.report-table thead th:last-child{width:80px}.report-table input{padding:6px}.report-summary{font-size:12px}}
/* Desktop overview stays within one screen. Secondary controls scroll inside their panel. */
.header{max-width:1200px;padding:12px 32px}
.header .jingsuan-logo{width:42px;height:42px}
main{padding-top:4px}
.talk-workspace{height:calc(100dvh - 120px);min-height:540px;gap:18px}
.talk-main{display:flex;flex-direction:column;height:100%;min-height:0}
.conversation{flex:0 0 auto;padding:8px 0 18px}
.conversation h1{font-size:28px}
.voice-orb{width:82px;height:82px;margin:12px auto}
.voice-orb span{height:14px;width:4px}
.voice-orb span:nth-child(2),.voice-orb span:nth-child(4){height:23px}
.voice-orb span:nth-child(3){height:34px}
.status{margin:0 0 12px;min-height:22px}
.controls button{min-height:42px;padding-top:8px;padding-bottom:8px}
.transcript{flex:1;min-height:160px;display:flex;flex-direction:column;padding:16px 18px}
#transcript{flex:1;min-height:0;max-height:none}
.report-panel{height:100%;overflow-y:auto;padding:12px 18px;scrollbar-gutter:stable}
.report-panel .section-heading{min-height:28px}
.report-panel .section-heading button{min-height:32px;padding:4px 8px}
.report-summary{margin:4px 0 7px;line-height:18px}
.point-controls{margin-bottom:5px}
.point-controls button{min-height:34px;padding:4px 8px;white-space:nowrap}
.report-panel select,.report-panel input{min-height:32px;padding:4px 7px}
.report-table th,.report-table td{padding:2px 3px}
.report-table .field-state{padding:4px 3px}
.report-actions{margin-top:8px;gap:12px}
.report-actions .primary{min-height:38px;padding:7px 16px}
.report-more{border-top:1px solid var(--line);margin-top:8px}
.report-more>summary{min-height:32px;padding:7px 0}
.report-panel .report-extra{margin-top:5px}
.report-panel .report-extra>summary{min-height:36px;padding:8px 0}
.report-panel .report-table tbody th{width:94px}
.settings{position:fixed;z-index:5;right:max(24px,calc((100vw - 1136px)/2));top:72px;width:min(580px,calc(100vw - 36px));max-height:calc(100dvh - 90px);overflow-y:auto;margin-top:0;box-shadow:0 14px 50px #233b3724}
footer{padding:12px;font-size:11px}
@media(min-width:901px) and (max-height:740px){.talk-workspace{height:calc(100dvh - 112px);min-height:505px}.report-panel{padding:10px 16px}.report-table th,.report-table td{padding:2px 3px}.report-summary{margin:3px 0 7px}.report-actions{margin-top:8px}.report-more{margin-top:7px}.conversation{padding:2px 0 12px}.voice-orb{margin:8px auto}}
@media(max-width:900px){.talk-workspace{height:auto;min-height:0}.talk-main{height:auto}.transcript{min-height:160px;max-height:300px}.report-panel{height:auto;max-height:none}.header{padding:12px 20px}.settings{right:18px}.conversation{padding-top:0}}
