/* Online trial copy of the call screen: small changes on top of the product stylesheet (style.css).
   The teammate presses the card colour; there is no typing, no microphone and no venue camera here.
   The product layout is made for a 1080p TV. These rules fit it to a laptop and to a phone. */
[hidden]{display:none!important}
.facilitator:before{content:'你來做'}
#group-chip{display:none}
.trial-note{background:var(--mint);color:var(--ink);border-radius:14px;padding:12px 18px;font-size:19px;font-weight:650;margin:0 0 22px}
.group .input-row,.group .composer.has-text .input-row{display:none}
.group .welcome{font-size:20px}
@media(min-width:901px) and (max-height:900px){
 .group .session{padding:14px 20px}.group .session-heading h2{font-size:28px;margin-bottom:4px}.group .case-tag{font-size:16px;margin-bottom:8px}
 .group .bubble{font-size:24px}.group .facilitator{font-size:20px;margin-bottom:8px}.group .flag-chip{font-size:17px}.group .coach-chip{font-size:18px}
 .group .conversation{max-height:calc(100vh - 400px);min-height:200px}
 .group .phone{min-height:440px}.vote{padding:10px}
}
@media(max-width:900px){
 .group .topbar{padding:8px 12px}
 .group .practice{padding:0 12px;gap:10px;margin-top:8px}
 .group .phone{min-height:0;border-radius:26px;padding:12px 16px 14px}
 .group .phone-notch,.group .phone-sim{display:none}
 .group .caller-avatar{width:48px;height:48px;font-size:24px;margin-bottom:4px}
 .group .caller-name{font-size:19px}.group .call-timer{margin-bottom:6px}
 .group .phone-actions{margin-top:10px}.group .round .glyph{width:56px;height:56px}
 .group .session{padding:14px}
 .group .conversation{max-height:44vh;min-height:150px}
 .group .composer{position:sticky;bottom:0;background:#fff;padding-bottom:6px;z-index:2}
 .group .notice{min-height:0;margin:0}
}
@media(max-width:640px){
 .group{font-size:19px}.group .bubble{font-size:21px}.group .facilitator{font-size:18px}
 .group .flag-chip{font-size:15px}.group .coach-chip{font-size:16px}.group .message.system .bubble{font-size:16px}
 .group .message .speaker{font-size:15px}.group .audio-play{font-size:15px}
 .group .session-heading h2{font-size:24px}.group .case-tag{font-size:15px}
 .vote{padding:12px 4px}.vote span{font-size:19px}.vote b{font-size:15px}
 .trial-note{font-size:17px}
 /* during the call the phone block shrinks so the caller's words and the three cards share one screen */
 .group .phone[data-state=incall] .caller-avatar,.group .phone[data-state=incall] .pressure{display:none}
 .group .phone[data-state=incall]{padding:10px 14px}
 .group .phone[data-state=incall] .round .glyph{width:48px;height:48px}
 .group .phone[data-state=incall] .phone-actions{margin-top:4px}
 .group .stop-button{padding:6px;font-size:15px}
 .group .conversation{max-height:38vh}
}
/* The one big button: the teammate presses it when the older adult starts to speak, and again when they stop.
   The cards under it are the fallback when the AI or the microphone fails. */
.speak-row{display:flex;align-items:center;gap:14px;margin:10px 0 14px}
.speak{flex:1;min-height:76px;border-radius:18px;background:var(--green);color:#fff;font-size:28px;font-weight:800;padding:14px 18px;box-shadow:0 4px 0 #0002}
.speak:active:not(:disabled){transform:translateY(2px);box-shadow:0 2px 0 #0002}
.speak.on{background:var(--red-strong);animation:speak-on 1.4s ease-out infinite}
.speak:disabled{background:var(--line);color:var(--ink);box-shadow:none;font-size:21px;font-weight:650;cursor:default}
@keyframes speak-on{0%{box-shadow:0 0 0 0 #b0352e66}100%{box-shadow:0 0 0 18px #b0352e00}}
@media(prefers-reduced-motion:reduce){.speak.on{animation:none;outline:4px solid #b0352e55;outline-offset:4px}}
.speak-level{width:96px;height:12px;visibility:hidden}
.speak.on~.speak-level{visibility:visible}
.cards-hint{margin:0 0 8px;font-size:17px;font-weight:650;color:var(--muted)}
@media(max-width:640px){.speak{min-height:64px;font-size:23px}.speak:disabled{font-size:18px}.speak-level{width:56px}.cards-hint{font-size:15px}.speak-row{margin:6px 0 8px}}
/* listening by itself after the caller's line: a calm state, not an alarm */
.speak.hearing{background:var(--green-2);font-size:24px;box-shadow:0 0 0 4px var(--mint)}
.speak.hearing~.speak-level{visibility:visible}
.listen-mode{font-size:inherit;font-weight:650;margin-left:12px;color:var(--green);text-decoration:underline;padding:6px 2px}
@media(max-width:640px){.speak.hearing{font-size:20px}.listen-mode{display:block;margin:2px 0 0}}
/* the big button comes first, then the hint, then the cards (the product stylesheet puts the cards first) */
.group .speak-row{order:-3}.group .cards-hint{order:-2}
@media(max-width:640px){
 /* on a phone the composer sticks to the bottom: keep it low so the caller's words stay in view */
 .speak{min-height:56px;font-size:21px;padding:8px 12px}.speak:disabled{font-size:17px}.speak.hearing{font-size:19px}
 .cards-hint span{display:none}.cards-hint{margin:0 0 4px;text-align:right}.listen-mode{display:inline;margin:0;padding:2px}
 .group .vote-cards{margin:0 0 4px;gap:8px}.vote{padding:6px 4px}.vote b{font-size:13px}.vote span{font-size:18px}
}
