:root{--ink:#14302a;--muted:#5d6f67;--paper:#f6f4ec;--green:#1f5a4a;--green-2:#2f7d66;--mint:#e3eee6;--line:#d8ddd2;--accent:#e0783f;--accent-soft:#fbe9dc;--white:#fff;--red:#c4413a;--red-soft:#f8e1de;--ok:#2e8b57;--warn:#b7791f;--phone:#10211d}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font-family:'Segoe UI','Microsoft JhengHei','PingFang TC',sans-serif;font-size:20px;line-height:1.6}
button,input{font:inherit}button{cursor:pointer;border:0}button:disabled{cursor:not-allowed;opacity:.45}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
h1,h2,h3,p{margin-top:0}h1{font-size:clamp(40px,4.4vw,64px);line-height:1.18;letter-spacing:-1px;margin:14px 0 22px;white-space:pre-line}
h2{font-size:32px;line-height:1.3}h3{font-size:23px}a{color:inherit}.hidden{display:none!important}
.topbar{padding:18px 4%;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--paper);position:sticky;top:0;z-index:5}
.brand{text-decoration:none;display:flex;align-items:center;gap:12px;font-size:25px;font-weight:750}.brand svg{width:42px;height:42px;color:var(--green)}
.brand small{display:block;font-size:12px;font-weight:600;letter-spacing:.8px;color:var(--muted);line-height:1.2}
.top-actions{display:flex;align-items:center;gap:14px}
.simulation-badge{font-size:13px;color:var(--green);padding:6px 12px;background:var(--mint);border-radius:99px;letter-spacing:.5px;font-weight:650}
.text-button{color:var(--green);background:transparent;padding:8px 4px;font-size:16px;font-weight:650}.text-button[aria-pressed=true]{text-decoration:underline;text-underline-offset:5px}
.link-button{background:none;color:var(--green);padding:0;font-size:13px;text-decoration:underline}
.primary{background:var(--green);color:#fff;padding:14px 22px;border-radius:10px;font-weight:650}
.secondary{background:#fff;color:var(--ink);border:1px solid var(--line);padding:12px 18px;border-radius:10px;font-weight:600}
.eyebrow{font-size:13px;letter-spacing:1.6px;color:var(--green);font-weight:750;margin-bottom:10px;text-transform:uppercase}
.quiet{font-size:14px;color:var(--muted);line-height:1.7}
/* welcome */
.welcome{max-width:1240px;margin:auto;padding:46px 32px 60px}
.hero{display:grid;grid-template-columns:1.35fr .65fr;gap:50px;align-items:center}
.hero-description{max-width:640px;font-size:22px;color:var(--muted);margin-bottom:26px}
.moves{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:700px}
.move{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px}
.move b{display:block;font-size:24px;color:var(--accent)}.move span{font-size:15px;color:var(--muted);line-height:1.45;display:block}
.hero-phone{display:flex;justify-content:center}
.mini-phone{width:230px;height:400px;background:var(--phone);border-radius:36px;padding:44px 20px 24px;color:#fff;display:flex;flex-direction:column;align-items:center;gap:10px;box-shadow:0 24px 50px #10211d40;position:relative}
.mini-phone:before{content:'';position:absolute;top:14px;width:70px;height:8px;border-radius:9px;background:#ffffff22}
.mini-label{font-size:14px;color:#bcd3ca}.mini-phone strong{font-size:24px;margin-bottom:16px}
.mini-flag{font-size:14px;background:var(--accent);color:#fff;border-radius:99px;padding:4px 12px;animation:pop 3s infinite}.mini-flag+.mini-flag{animation-delay:.5s}
.mini-buttons{margin-top:auto;display:flex;gap:56px}.mini-buttons i{width:56px;height:56px;border-radius:50%;display:block}.mini-buttons .decline{background:var(--red)}.mini-buttons .answer{background:var(--ok);animation:pulse 1.6s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 #2e8b5799}70%{box-shadow:0 0 0 16px #2e8b5700}100%{box-shadow:0 0 0 0 #2e8b5700}}
@keyframes pop{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}
.picker{margin-top:46px}.picker-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap;margin-bottom:16px}.picker-head h2{margin:0}
.mode-toggle{display:flex;background:#fff;border:1px solid var(--line);border-radius:12px;padding:4px}
.mode{background:transparent;padding:9px 14px;border-radius:9px;font-size:15px;font-weight:650;color:var(--muted)}.mode.selected{background:var(--green);color:#fff}
.case-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.case-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;padding:20px 18px;background:#fff;border:1px solid var(--line);border-radius:16px;color:var(--ink);transition:transform .15s,border-color .15s;min-height:180px}
.case-card:hover{transform:translateY(-3px);border-color:var(--green)}
.case-card svg{width:40px;height:40px;fill:none;stroke:var(--accent);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;margin-bottom:6px}
.case-card strong{font-size:21px;line-height:1.3}.case-card span{font-size:14px;color:var(--muted);line-height:1.4}
.privacy-line{margin-top:18px;font-size:15px;color:var(--green);font-weight:600}
/* practice */
.practice{max-width:1320px;display:grid;grid-template-columns:340px 1fr;gap:28px;margin:18px auto 40px;padding:0 28px}
.phone-column{display:flex;flex-direction:column;gap:10px}
.phone{background:var(--phone);color:#fff;border-radius:40px;padding:18px 22px 22px;min-height:540px;display:flex;flex-direction:column;align-items:center;text-align:center;position:relative;box-shadow:0 22px 50px #10211d38}
.phone-notch{width:84px;height:9px;border-radius:9px;background:#ffffff22;margin-bottom:10px}
.phone-sim{font-size:12px;letter-spacing:2px;color:#f6c39d;margin:0 0 12px;font-weight:700}
.caller-avatar{width:84px;height:84px;border-radius:50%;background:linear-gradient(140deg,#3a6b5e,#24463e);display:grid;place-items:center;font-size:38px;font-weight:700;margin-bottom:12px}
.phone[data-state=incoming] .caller-avatar{animation:pulse 1.6s infinite}
.phone-label{font-size:15px;color:#b9d0c7;margin:0}.caller-name{font-size:23px;font-weight:700;margin:4px 0 2px;line-height:1.3}.call-timer{font-size:16px;color:#b9d0c7;font-variant-numeric:tabular-nums;margin-bottom:14px}
.pressure{display:flex;align-items:center;gap:6px;font-size:13px;color:#b9d0c7;margin-bottom:auto}.pressure i{width:34px;height:8px;border-radius:4px;background:#ffffff1f}
.pressure[data-level="1"] i:nth-of-type(1){background:#f2c14e}.pressure[data-level="2"] i:nth-of-type(-n+2){background:#f0903c}.pressure[data-level="3"] i{background:#e5533f}
.phone-actions{display:flex;gap:44px;margin-top:22px}
.round{width:92px;display:flex;flex-direction:column;align-items:center;gap:6px;background:transparent;color:#fff;font-size:16px;font-weight:600}
.round .glyph{width:72px;height:72px;border-radius:50%;display:grid;place-items:center}.round .glyph svg{width:34px;height:34px}
.round.decline .glyph{background:var(--red)}.round.answer .glyph{background:var(--ok);animation:pulse 1.6s infinite}.round.mic .glyph{background:#ffffff26}
.round.mic.recording .glyph{background:var(--accent);animation:pulse 1.2s infinite}
.incoming-only,.incall-only,.callback-only{display:none!important}
.phone[data-state=incoming] .incoming-only,.phone[data-state=incall] .incall-only{display:flex!important}
.phone[data-state=callback] .callback-only,.phone[data-state=calling] .callback-only{display:block!important;width:100%;margin-top:16px}
.phone[data-state=callback] .pressure,.phone[data-state=calling] .pressure{display:none}
.callback-title{font-size:17px;font-weight:700;margin-bottom:10px}
.callback-list{display:flex;flex-direction:column;gap:9px}
.callback-option{text-align:left;background:#ffffff14;color:#fff;border:1px solid #ffffff2a;border-radius:14px;padding:12px 14px}
.callback-option strong{display:block;font-size:17px;line-height:1.35}.callback-option span{display:block;font-size:13px;color:#b9d0c7}
.callback-option:hover:not(:disabled){background:#ffffff24}.callback-option.used{border-color:#f6c39d}
.stop-button{width:100%;background:var(--red-soft);color:var(--red);border:1px solid #edc6c0;border-radius:10px;padding:9px;font-size:17px;font-weight:650}
.session{background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px 26px;display:flex;flex-direction:column;min-height:660px}
.session-heading{display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid var(--line);margin-bottom:16px}.session-heading h2{margin-bottom:14px}
.session-chip{font-size:13px;background:var(--mint);color:var(--green);padding:6px 12px;border-radius:99px;font-weight:650}
.conversation{flex:1;min-height:300px;max-height:470px;overflow:auto;padding-right:8px;scroll-behavior:smooth}
.message{margin:0 0 14px;display:flex;flex-direction:column;align-items:flex-start}.message.user{align-items:flex-end}
.message .speaker{font-size:13px;font-weight:700;color:var(--muted);margin-bottom:4px}
.bubble{max-width:90%;padding:12px 17px;background:var(--paper);border-radius:14px;font-size:21px;line-height:1.6}
.caller .bubble{background:#f1efe6;border-top-left-radius:4px}.user .bubble{background:var(--mint);border-top-right-radius:4px}
.verifier .bubble{background:#e7f4ec;border:1px solid #bfdcca}.message.system .bubble{background:transparent;color:var(--muted);font-size:16px;padding:2px 0}
.flag-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.flag-chip{font-size:14px;background:var(--accent-soft);color:#9b4a1d;border:1px solid #f1c7aa;border-radius:99px;padding:2px 10px;font-weight:650}
.flag-chip.big{font-size:16px;padding:5px 13px}.flag-chip.none{background:var(--mint);color:var(--green);border-color:#c9dccd}
.coach-chip{margin-top:6px;font-size:15px;border-radius:10px;padding:5px 11px;max-width:90%;font-weight:600}
.coach-chip.good{background:#e3f3e9;color:#1d6b43}.coach-chip.warn{background:#fdf2dc;color:#8a5a12}.coach-chip.bad{background:var(--red-soft);color:#a3302a}.coach-chip.ok{background:#eef2f0;color:var(--muted)}
.mode-challenge .live{display:none!important}
.audio-play{background:transparent;color:var(--green);font-size:13px;margin-top:3px;padding:0}
.coach-banner{background:var(--accent-soft);border:1px solid #f1c7aa;color:#8c3f15;border-radius:12px;padding:12px 16px;font-size:18px;font-weight:650;margin:8px 0}
.rewind-panel{background:#fff7ef;border:2px solid var(--accent);border-radius:16px;padding:18px 20px;margin:8px 0}
.rewind-panel strong{font-size:22px;color:#8c3f15}.rewind-panel p{margin:8px 0;font-size:18px}.rewind-panel .row{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.try-say{color:var(--green);font-weight:650}
.composer{padding-top:14px;border-top:1px solid var(--line)}.composer label{font-size:17px;font-weight:650}
.input-row{display:flex;gap:10px;margin-top:8px}.input-row input{min-width:0;flex:1;border:1px solid var(--line);border-radius:10px;padding:12px 14px;font-size:20px;background:var(--paper);color:var(--ink)}
.notice{font-size:15px;color:var(--green);min-height:22px;margin:7px 0 0}
.after-call{padding-top:14px;border-top:1px solid var(--line)}
/* debrief */
.debrief,.console{max-width:1120px;margin:40px auto;padding:0 30px}
.verdict{padding:6px 0 20px}.verdict p{font-size:21px;font-weight:650;margin-bottom:10px}.verdict button{margin:0 8px 8px 0;font-size:19px}
.verdict button.selected{background:var(--green);color:#fff;border-color:var(--green)}
.truth-line{font-size:22px;font-weight:700;color:var(--green)}
.badges{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:12px 0 26px}
.badge{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px}.badge.ok{border-color:#a9d3b8;background:#f2faf5}.badge.todo{background:#fffaf3;border-color:#efd9bd}
.badge-icon{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:50%;font-size:21px;font-weight:700;background:var(--mint);color:var(--green)}.badge.todo .badge-icon{background:#f6e6cf;color:var(--warn)}
.badge strong{display:block;font-size:26px;margin:8px 0 4px}.badge p{font-size:16px;color:var(--muted);margin:0}
.xray{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px 24px;margin-bottom:20px}
.flag-summary{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.xray-list{list-style:none;padding:0;margin:0;border-left:3px solid var(--line)}
.xray-list li{padding:6px 0 12px 18px;position:relative}.xray-list li:before{content:'';position:absolute;left:-8px;top:12px;width:13px;height:13px;border-radius:50%;background:var(--accent)}
.xray-list li.user:before{background:var(--green)}.xray-list .who{font-size:13px;font-weight:700;color:var(--muted)}.xray-list p{margin:2px 0;font-size:18px}
.lesson{background:var(--mint);border-radius:16px;padding:20px 24px;font-size:19px;margin-bottom:20px}.lesson p{margin-bottom:6px}
.debrief-actions{display:flex;gap:12px;flex-wrap:wrap;margin:10px 0 18px;align-items:center}
.stopped{min-height:450px;max-width:1000px;padding:70px 35px;margin:auto}
/* console */
.tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:18px 0}
.tile{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px}.tile strong{display:block;font-size:40px;color:var(--green);line-height:1.2}.tile span{font-size:15px;color:var(--muted)}
.console-table{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden;font-size:17px;margin-bottom:16px}
.console-table th,.console-table td{padding:10px 14px;border-bottom:1px solid var(--line);text-align:left}.console-table th{background:var(--mint);font-size:15px}
/* engine HUD */
.hud{background:#0f1f1b;color:#e8f1ed;border-radius:16px;padding:14px 16px;font-size:13px}
.hud-title{display:flex;align-items:center;gap:8px;font-weight:700;font-size:14px;margin-bottom:8px;letter-spacing:.4px}.hud-dot{width:9px;height:9px;border-radius:50%;background:#41d18b;box-shadow:0 0 0 3px #41d18b33}
.hud dl{display:grid;grid-template-columns:78px 1fr;gap:4px 8px;margin:0}.hud dt{color:#9fb8ae}.hud dd{margin:0;font-variant-numeric:tabular-nums}.hud dd b{color:#f6c39d;font-weight:700}
/* dialogs */
dialog{width:min(720px,92vw);border:1px solid var(--line);border-radius:18px;padding:30px;color:var(--ink);background:var(--paper);font-size:19px}
dialog::backdrop{background:#14302a99}dialog h2{font-size:28px}
.consent-check{display:flex;align-items:flex-start;gap:12px;padding:16px;background:#fff;border:1px solid var(--line);border-radius:10px;font-weight:600}
.consent-check input{width:24px;height:24px;flex-shrink:0;margin-top:4px;accent-color:var(--green)}
.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:22px}
#engine-status{padding:14px;border-radius:10px;background:var(--mint);font-size:16px;margin:14px 0}
footer{max-width:1400px;margin:auto;border-top:1px solid var(--line);padding:18px 4%;display:flex;justify-content:space-between;gap:20px;font-size:13px;color:var(--muted)}
/* printable call-back card */
.card-print{display:none}
@media print{
 body>*:not(.card-print){display:none!important}
 .card-print{display:block}
 .callcard{width:9cm;border:2px solid #000;border-radius:12px;padding:14px 18px;font-size:13pt;color:#000}
 .callcard h2{font-size:18pt;margin:0}.callcard-moves{font-size:15pt;font-weight:700;margin:4px 0 10px}
 .callcard dl{display:grid;grid-template-columns:1fr 1fr;gap:6px 10px;margin:0}.callcard dt{font-weight:600}.callcard dd{margin:0;font-size:15pt;font-weight:700}.callcard dd.blank{border-bottom:1px solid #000;min-height:1.2em}
 .callcard-note{font-size:11pt;margin:10px 0 0}
}
@media(max-width:1100px){.case-grid{grid-template-columns:repeat(3,1fr)}.hero{grid-template-columns:1fr}.hero-phone{display:none}}
@media(max-width:900px){.practice{grid-template-columns:1fr;padding:0 16px}.phone{min-height:auto}.session{min-height:auto}.badges,.tiles{grid-template-columns:1fr 1fr}}
@media(max-width:640px){body{font-size:18px}.topbar{flex-wrap:wrap;padding:12px 16px}.top-actions{gap:8px;flex-wrap:wrap}.simulation-badge{font-size:11px}.brand{font-size:20px}
 .welcome{padding:26px 16px}.moves{grid-template-columns:1fr}.case-grid{grid-template-columns:1fr 1fr}.case-card{min-height:150px;padding:14px}.case-card strong{font-size:18px}
 .mode-toggle{width:100%}.mode{flex:1;font-size:13px}.bubble{font-size:19px}.badges,.tiles{grid-template-columns:1fr}.debrief,.console{padding:0 16px}footer{flex-direction:column;gap:4px}}
/* larger-text mode for low-vision participants */
.large-text{font-size:23px}.large-text .bubble{font-size:25px}.large-text .composer label{font-size:20px}.large-text .input-row input{font-size:24px}
.large-text .flag-chip{font-size:16px}.large-text .coach-chip{font-size:18px}.large-text .callback-option strong{font-size:20px}.large-text .badge p,.large-text .xray-list p{font-size:20px}
/* v2.3 */
.quick-replies{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.quick{background:var(--mint);color:var(--green);border:1px solid #c9dccd;border-radius:99px;padding:8px 14px;font-size:16px;font-weight:650}
.quick:hover:not(:disabled){background:#d4e6d9}
.access-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:18px}
.access{background:#fff;border:2px solid var(--green);color:var(--green);border-radius:14px;padding:12px 20px;font-size:19px;font-weight:700}
.access[aria-pressed=true]{background:var(--green);color:#fff}
.access-note{font-size:15px;color:var(--muted)}
#send.counting{background:var(--accent)}
/* v3: group session on a venue TV, LINE voice call */
.chips{display:flex;gap:8px;align-items:center}.group-chip{background:var(--accent-soft);color:#8c3f15}
.group-access{border-color:var(--accent);color:#8c3f15}.group-access[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:#fff}
.facilitator{background:#14302a;color:#fff;border-radius:14px;padding:12px 16px 12px 52px;margin:0 0 12px;font-size:19px;font-weight:600;position:relative;line-height:1.5}
.facilitator:before{content:'帶領人';position:absolute;left:12px;top:12px;font-size:12px;writing-mode:vertical-rl;letter-spacing:2px;color:#f6c39d;font-weight:700}
html[lang=en] .facilitator:before{content:'HOST'}
.vote-cards{display:none;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:12px}
.vote{border-radius:16px;padding:14px 10px;color:#fff;display:flex;flex-direction:column;align-items:center;gap:2px;box-shadow:0 4px 0 #0002}
.vote b{font-size:15px;letter-spacing:2px;opacity:.9}.vote span{font-size:26px;font-weight:750}
.vote.red{background:var(--red)}.vote.yellow{background:#e5a823;color:#3b2a05}.vote.green{background:var(--ok)}
.vote:hover:not(:disabled){filter:brightness(1.06)}
.group .vote-cards{display:grid}.group .quick-replies{display:none}
.group{font-size:23px}.group .practice{max-width:1840px;grid-template-columns:380px 1fr}
.group .bubble{font-size:28px}.group .conversation{max-height:56vh}.group .flag-chip{font-size:18px}.group .coach-chip{font-size:19px}
.group .session-heading h2{font-size:36px}.group .badge p,.group .xray-list p{font-size:20px}
.normalise{font-size:19px;font-weight:650;color:#8c3f15;background:var(--accent-soft);border-radius:12px;padding:12px 16px;margin:0 0 16px}
.phone[data-channel=line] .caller-avatar{background:linear-gradient(140deg,#2f9e5b,#1d6b43)}
.phone[data-channel=line] .phone-label{color:#9fe0b5;font-weight:650}
.attendance-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:16px 0 4px;font-size:17px;font-weight:600}
.attendance-row input{width:110px;border:1px solid var(--line);border-radius:10px;padding:8px 12px;font-size:20px;background:#fff;color:var(--ink)}
.tiles{grid-template-columns:repeat(5,1fr)}.tile strong{font-size:34px}
@media(max-width:900px){.tiles{grid-template-columns:1fr 1fr}.group .practice{grid-template-columns:1fr}}
@media(max-width:640px){.vote span{font-size:20px}.tiles{grid-template-columns:1fr}}
/* group mode fits one 1080p TV screen: vote cards first, no scrolling */
.group .topbar{position:static;padding:10px 3%}.group .brand svg{width:34px;height:34px}
.group .practice{margin:12px auto 12px}.group .session{min-height:0;padding:18px 22px}
.group .session-heading h2{margin-bottom:8px}.group .phone{min-height:500px}
.group .conversation{max-height:calc(100vh - 470px);min-height:240px}
.group .composer{display:flex;flex-direction:column;padding-top:10px}.group .composer>label{display:none}
.group .vote-cards{order:-1;margin:0 0 10px}.group .input-row{margin-top:0}.group .input-row input{font-size:18px;padding:8px 12px}
.group .coach-banner{display:none!important}
.facilitator{padding:12px 16px}.facilitator:before{position:static;writing-mode:horizontal-tb;display:inline-block;margin-right:12px;background:#f6c39d;color:#14302a;border-radius:6px;padding:1px 9px;font-size:14px;letter-spacing:1px;vertical-align:2px}
/* v3.1: readable from the back of the room; the volunteer confirms speech */
.group .flag-chip{font-size:20px}.group .coach-chip{font-size:21px}.group .message .speaker{font-size:16px}.group .message.system .bubble{font-size:19px}
.group .input-row{display:none}.group .composer.has-text .input-row{display:flex}.group .composer.has-text .input-row input{font-size:24px}
.group #hud-toggle,.group #language{display:none}
.xray-more summary{cursor:pointer;color:var(--green);font-weight:650;font-size:17px;margin:4px 0 10px}
/* v3.2: incoming call = red declines, green answers; everything readable from the back row */
.group .composer{display:flex}.group[data-phase=incoming] .vote.yellow{visibility:hidden}
.group[data-phase=incoming] #composer{display:flex!important}.group[data-phase=incoming] .input-row,.group[data-phase=incoming] #input-note{display:none}
.group .message .speaker{font-size:18px}.group .message.system .bubble{font-size:21px}.group .audio-play{font-size:17px}
.group .flag-chip{font-size:22px;padding:3px 12px}.group .coach-chip{font-size:22px}.group .facilitator{font-size:22px}
.case-grid{grid-template-columns:repeat(4,1fr)}
@media(max-width:1100px){.case-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:640px){.case-grid{grid-template-columns:1fr 1fr}}

/* v3.5 (impeccable audit): readable from the back row, AA contrast on every filled control */
:root{--accent-strong:#b5531f;--red-strong:#b0352e;--ok-strong:#23704a}
.case-tag{font-size:15px;color:var(--muted);font-weight:600;margin:-6px 0 12px}
.group .case-tag{font-size:19px}
.group-access[aria-pressed=true],#send.counting,.round.mic.recording .glyph{background:var(--accent-strong)}
.vote.red{background:var(--red-strong)}.vote.green{background:var(--ok-strong)}
.stop-button{color:#93271f}
.round.decline .glyph{background:var(--red-strong)}.round.answer .glyph{background:var(--ok-strong)}
::selection{background:#f6c39d;color:#14302a}
.mini-flag{background:var(--accent-strong)}

/* room camera: counts raised cards on the device; the count sits on the card it belongs to,
   the majority card is ringed, and the volunteer presses it to use it */
.room-only{display:none}.has-room.group .room-only{display:block}
.has-room.group .vote-cards{grid-template-columns:repeat(3,1fr) 132px}
.vote{position:relative}
.vote-count{position:absolute;top:-14px;right:-10px;min-width:54px;height:54px;padding:0 10px;border-radius:27px;background:#fff;color:var(--ink);font-style:normal;font-size:32px;font-weight:800;line-height:54px;text-align:center;box-shadow:0 4px 14px #0003;font-variant-numeric:tabular-nums;animation:count-in .35s ease-out}
.vote.majority{outline:5px solid #fff;outline-offset:-5px;box-shadow:0 0 0 4px var(--ink),0 10px 24px #0004;transform:translateY(-3px)}
.vote.majority:after{content:'多數';position:absolute;left:12px;top:10px;font-size:14px;font-weight:800;letter-spacing:2px;background:#0003;border-radius:6px;padding:1px 8px}
html[lang=en] .vote.majority:after{content:'MAJORITY';letter-spacing:1px}
.vote.dim{opacity:.55}
.room-count{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border-radius:16px;background:var(--ink);color:#fff;font-size:17px;font-weight:700;line-height:1.25;padding:10px 8px;box-shadow:0 4px 0 #0002}
.room-count[hidden]{display:none}
.room-count i{width:30px;height:30px;border-radius:50%;border:3px solid #7fd1a8;position:relative}
.room-count i:after{content:'';position:absolute;inset:6px;border-radius:50%;background:#7fd1a8}
.room-count.busy i{border-color:var(--accent);animation:pulse 1s infinite}.room-count.busy i:after{background:var(--accent)}
.room-count:disabled{cursor:progress}
@keyframes count-in{from{transform:scale(.4);opacity:0}to{transform:scale(1);opacity:1}}
@media (prefers-reduced-motion:reduce){.vote-count,.room-count.busy i{animation:none}.vote.majority{transform:none}}
.group .notice{font-size:19px;min-height:28px}
.has-room.group .conversation{max-height:calc(100vh - 510px)}

/* console: tiles in one row; the camera's money-moment vote as the sponsor's headline */
.tiles{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
.tile span{display:block;line-height:1.4;margin-top:4px}
.room-report{display:grid;grid-template-columns:260px 1fr;gap:28px;align-items:center;background:#fff;border:1px solid var(--line);border-left:8px solid var(--red);border-radius:16px;padding:22px 26px;margin:0 0 18px}
.room-report[hidden]{display:none}
.rr-big strong{display:block;font-size:64px;line-height:1;color:var(--red);font-weight:800;font-variant-numeric:tabular-nums}
.rr-big span{display:block;font-size:16px;color:var(--muted);line-height:1.4;margin-top:8px}
.rr-bar{display:flex;height:30px;border-radius:8px;overflow:hidden;background:var(--mint)}
.rr-bar span{display:block;height:100%}.rr-bar .red{background:var(--red)}.rr-bar .yellow{background:#e5a823}.rr-bar .green{background:var(--ok)}
.rr-legend{margin:10px 0 0;font-size:16px;color:var(--muted)}
.rr-trend{margin:6px 0 0;font-size:20px;font-weight:700;color:var(--ink)}
@media(max-width:700px){.room-report{grid-template-columns:1fr}}

/* console: camera accuracy check with printed cards */
.room-check{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px 24px;margin:0 0 18px}
.room-check[hidden]{display:none}
.room-check h3{margin:0 0 4px;font-size:20px}
.rc-row{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin-top:12px}
.rc-btn{flex-direction:row;padding:12px 18px;font-size:17px}.rc-btn i{width:22px;height:22px}.rc-btn i:after{inset:4px}
.rc-cam,.rc-real{display:flex;gap:6px;align-items:center}
.rc-k{font-size:14px;color:var(--muted);font-weight:700;margin-right:4px}
.rc-cam b{min-width:44px;height:44px;border-radius:10px;display:grid;place-items:center;font-size:22px;color:#fff;font-variant-numeric:tabular-nums}
.rc-cam b.red,.rc-real input.red{background:var(--red)}.rc-cam b.yellow,.rc-real input.yellow{background:#e5a823;color:#3b2a05}.rc-cam b.green,.rc-real input.green{background:var(--ok)}
.rc-people{font-size:14px;color:var(--muted);margin-left:6px}
.rc-real input{width:58px;height:44px;border:0;border-radius:10px;text-align:center;font-size:20px;font-weight:700;color:#fff}
.rc-real input::placeholder{color:#ffffffaa}
.rc-dist{display:flex;gap:8px;align-items:center;font-size:14px;color:var(--muted)}.rc-dist input{width:70px;height:40px;border:1px solid var(--line);border-radius:10px;font-size:18px;text-align:center}
.rc-summary{font-size:17px;font-weight:650;color:var(--green);margin:12px 0 4px;min-height:24px}
