/* 客戶會談室（核定樣本 A「字幕直播」）：會議室照片鋪滿；標題卡與收音狀態在上，旁聽員工坐在桌邊，
   會談中下方是字幕條（誰在回應＋回應內容；平時是現場即時字幕）與點名操作列，右側是即時逐字稿。
   照片放在等比 cover 的 stage 裡，座位用照片座標（client-room-*.jpg 的比例）對齊桌邊。 */
/* The room's title is set in a five-glyph subset of Noto Sans TC 800 (OFL, assets/fonts/OFL-NotoSansTC.txt). */
@font-face { font-family: 'Ensemo Room Title'; src: url('/assets/fonts/noto-sans-tc-room-title.woff') format('woff'); font-weight: 800; font-style: normal; font-display: swap; }
.client-scene { --cm-navy: #14263e; --cm-ink: #182a43; --cm-paper: #faf6ed; --cm-edge: #e3d6bb; --cm-dim: #4d535a;
    --cm-gold-a: #e4c88b; --cm-gold-b: #cfab66; --cm-red: #b8352a; --cm-shadow: 0 14px 34px #1a120a40, 0 2px 6px #1a120a1f; }
.client-scene [hidden] { display: none !important; }
.client-room { position: relative; --pad: 18px; --dock-h: 76px; --rail-w: clamp(280px, 23vw, 360px);
    --cap: clamp(24px, 2.8vw, 40px); --band-h: calc(78px + 2.9 * var(--cap)); }
.client-canvas { position: relative; overflow: hidden; isolation: isolate; container-type: size; background: #2b2118;
    height: max(600px, calc(100dvh - 76px - 27px));
    --sw: max(100cqw, 100cqh * 1.791); --sh: max(100cqh, 100cqw / 1.791); }
.client-stage { position: absolute; left: 50%; top: 40%; width: var(--sw); height: var(--sh); transform: translate(-50%, -40%);
    background: #2b2118 var(--view-client-day, url('/assets/scenes/client-room-day.jpg')) center / 100% 100% no-repeat; }
body:not(.office-day) .client-stage { background-image: var(--view-client-night, url('/assets/scenes/client-room-night.jpg')); }

/* Title card and recording state */
.client-title { position: absolute; z-index: 3; top: var(--pad); left: var(--pad); max-width: min(460px, 40%); box-sizing: border-box;
    padding: 18px 24px 16px; border-radius: 18px; background: #faf6edf7; box-shadow: var(--cm-shadow); }
.client-title h2 { margin: 0; color: var(--cm-navy); font-family: 'Ensemo Room Title', 'Segoe UI', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif; font-size: clamp(28px, 2.75vw, 44px); font-weight: 800; line-height: 1.15; letter-spacing: .06em; }
.client-title p { margin: 8px 0 0; color: var(--cm-dim); font-size: clamp(13px, 1vw, 15px); line-height: 1.5; overflow-wrap: anywhere; }
.client-rec { position: absolute; z-index: 3; top: var(--pad); right: var(--pad); display: inline-flex; align-items: center; gap: 12px;
    padding: 12px 24px; border-radius: 999px; background: var(--cm-navy); color: #fff; font-size: clamp(15px, 1.3vw, 20px);
    font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; box-shadow: 0 10px 24px #0b14246b; }
.client-rec-dot { width: 14px; height: 14px; border-radius: 50%; background: #9aa3b8; flex: none; }
.client-rec.live .client-rec-dot { background: #e5483b; box-shadow: 0 0 0 4px #e5483b38; animation: clientRec 1.6s ease-in-out infinite; }
@keyframes clientRec { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.client-rec-time:not(:empty) { margin-left: .7em; }

/* Seats at the table (photo coordinates); they glide to the far end when recording starts */
.client-seats { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.client-seat { --ps: clamp(56px, calc(var(--sh) * .112), 104px); --edge: 52px; position: absolute;
    left: clamp(var(--edge), calc((100cqw - var(--sw)) / 2 + var(--sw) * var(--sx, .5)), calc(100% - var(--rail-space, 52px)));
    top: calc((100cqh - var(--sh)) * .4 + var(--sh) * var(--sy, .5)); transform: translate(-50%, calc(var(--ps) / -2));
    display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: #fff;
    font: inherit; pointer-events: auto; cursor: default; transition: left .9s cubic-bezier(.16, 1, .3, 1), top .9s cubic-bezier(.16, 1, .3, 1), opacity .5s ease; }
button.client-seat:not(:disabled) { cursor: pointer; }
.client-seat-ring { position: relative; display: block; border-radius: 50%; }
.client-seat-avatar { position: relative; display: flex; align-items: center; justify-content: center; width: var(--ps); aspect-ratio: 1;
    box-sizing: border-box; border: 3px solid var(--agent-color, #c0d2dc); border-radius: 50%; overflow: hidden; color: #fff;
    font-size: calc(var(--ps) * .28); font-weight: 700; box-shadow: 0 6px 14px #0b131f73; }
.client-seat-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.client-seat-online { position: absolute; right: 5%; bottom: 5%; width: 22%; max-width: 18px; aspect-ratio: 1; box-sizing: border-box;
    border: 2px solid #fff; border-radius: 50%; background: #43c46b; box-shadow: 0 1px 3px #0c1b3266; }
.client-seat-host .client-seat-avatar { overflow: visible; border-color: #d9b56c; background: #faf6ed; color: var(--cm-navy); }
.client-seat-host .client-seat-avatar > svg { width: 52%; height: 52%; fill: none; stroke: currentColor; stroke-width: 1.6; }
.client-seat-badge { position: absolute; right: -4%; bottom: -2%; display: flex; align-items: center; justify-content: center; width: 32%;
    aspect-ratio: 1; border: 2px solid #fff; border-radius: 50%; background: linear-gradient(180deg, var(--cm-gold-a), var(--cm-gold-b)); color: var(--cm-navy); }
.client-seat-badge svg { width: 62%; height: 62%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.client-seat-pill { display: inline-flex; align-items: center; gap: 6px; padding: .35em 1.1em; border: 1px solid #ffffff2b; border-radius: 999px;
    background: #14263eed; color: #fff; font-size: clamp(12px, 1.05vw, 16px); font-weight: 700; line-height: 1.3; white-space: nowrap; box-shadow: 0 3px 9px #0a14248c; }
.client-seat-wave { display: none; color: #e9c98d; }
.client-seat-wave svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.client-seat.answering .client-seat-wave { display: inline-flex; }
.client-seat-ring { transition: transform .4s cubic-bezier(.16, 1, .3, 1), filter .4s ease; }
.client-seat.answering .client-seat-ring { transform: scale(1.08); }
.client-seat.answering .client-seat-avatar { border-color: #ffd77a; box-shadow: 0 0 0 5px #f6cf6f8c, 0 0 36px 10px #f2c76ab3, 0 6px 14px #0b131f73; }
.client-seat.listening:not(:hover) .client-seat-avatar { border-color: #d5dde6; }
/* While a colleague answers, the others step back. */
.client-room[data-answering="yes"] .client-seat.listening .client-seat-ring { filter: saturate(.5) brightness(.82); }
.client-room[data-answering="yes"] .client-seat.listening .client-seat-pill { opacity: .78; }
button.client-seat:hover:not(:disabled) .client-seat-avatar { border-color: #e9bb58; }
.client-room[data-phase="idle"] .client-seat-host, .client-room[data-phase="connecting"] .client-seat-host { opacity: 0; visibility: hidden; }
.client-room[data-phase="live"], .client-room[data-phase="ended"] { --rail-space: calc(var(--rail-w) + var(--pad) * 2 + 80px); }
/* Seated at the table end, but never lower than the subtitle band allows (short windows lift them). */
.client-room[data-phase="live"] .client-seat { top: min(calc((100cqh - var(--sh)) * .4 + var(--sh) * var(--sy, .5)),
    calc(100cqh - var(--dock-h) - var(--pad) * 2 - var(--band-h) - var(--ps) / 2 - 54px)); }
/* After the meeting the room clears for the record. */
.client-seats { transition: opacity .5s ease, visibility .5s; }
.client-room[data-phase="ended"] .client-seats { opacity: 0; visibility: hidden; }

/* Subtitle band: the signature — who is answering, and what they say, set large for the client to read */
.client-band { position: absolute; z-index: 4; left: var(--pad); right: var(--pad); bottom: calc(var(--dock-h) + var(--pad) * 2);
    height: var(--band-h); box-sizing: border-box; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
    gap: clamp(16px, 2vw, 28px); padding: 18px 32px 18px 20px; border: 1px solid #ffffff1f; border-radius: 18px;
    background: #13233ae8; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 18px 40px #0b14248c; color: #fff; }
.client-band-avatar { position: relative; display: flex; align-items: center; justify-content: center; width: clamp(64px, 6.6vw, 100px);
    aspect-ratio: 1; box-sizing: border-box; border: 3px solid #e9bb58; border-radius: 50%; overflow: hidden; background: #22385a;
    color: #e9c98d; font-size: 24px; font-weight: 700; box-shadow: 0 0 0 4px #f2c76a33; }
.client-band-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.client-band-avatar > svg { width: 44%; height: 44%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.client-band[data-mode="room"] .client-band-avatar, .client-band[data-mode="wait"] .client-band-avatar { border-color: #6f84a3; box-shadow: none; }
.client-band-text { min-width: 0; }
.client-band-who { display: flex; align-items: baseline; gap: .55em; margin: 0 0 6px; color: #e6c384; font-size: clamp(15px, 1.35vw, 21px); font-weight: 700; }
.client-band-who span::before { content: '｜'; margin-right: .3em; color: #e6c38499; }
.client-band[data-mode="room"] .client-band-who, .client-band[data-mode="wait"] .client-band-who { color: #c9d4e3; }
.client-band-caption { display: block; max-height: calc(var(--cap) * 2.9); margin: 0; overflow: hidden;
    font-size: var(--cap); font-weight: 700; line-height: 1.45; letter-spacing: .02em; }
.client-band[data-mode="wait"] .client-band-caption { color: #dfe6f0; font-weight: 600; font-size: calc(var(--cap) * .72); }

/* Control dock */
.client-controls { position: absolute; z-index: 4; left: var(--pad); right: var(--pad); bottom: var(--pad); height: var(--dock-h);
    box-sizing: border-box; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: center;
    gap: clamp(12px, 2.2vw, 36px); padding: 0 clamp(18px, 3.4vw, 52px); border-radius: 16px; background: #faf6edf7; box-shadow: var(--cm-shadow); }
.client-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 8px 16px;
    border: 1.5px solid var(--cm-navy); border-radius: 12px; background: var(--cm-navy); color: #fff; font: inherit;
    font-size: clamp(15px, 1.2vw, 18px); font-weight: 700; white-space: nowrap; cursor: pointer; box-shadow: 0 4px 10px #14263e2e;
    transition: background .15s, box-shadow .15s, opacity .15s; }
.client-btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.client-btn-icon { display: inline-flex; }
.client-btn:hover:not(:disabled) { background: #1f3654; }
.client-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.client-btn-ask.busy { opacity: 1; cursor: default; }
.client-btn-ask.busy .client-btn-icon { color: #4ade80; }
.client-btn-ask.busy .client-btn-icon svg { stroke-width: 3; }
#clientStop svg rect { fill: currentColor; stroke: none; }
.client-btn-end { background: #fff; border-color: var(--cm-red); color: var(--cm-red); box-shadow: none; }
.client-btn-end svg rect { fill: currentColor; stroke: none; }
.client-btn-end:hover:not(:disabled) { background: #fbeceb; }
.client-btn-quiet { background: #fff; border-color: #cdbb98; color: var(--cm-navy); box-shadow: none; }
.client-btn-quiet:hover:not(:disabled) { background: #fffaf0; border-color: #b8975a; }
.client-btn[hidden] { display: none; }
/* 延長時間：最後 5 分鐘亮起暖金提醒（脈動定義在 office.css 的 extendDue） */
.client-btn-extend.is-due { background: linear-gradient(135deg, var(--cm-gold-a), var(--cm-gold-b)); border-color: #b8975a; color: var(--cm-navy);
    animation: extendDue 1.8s ease-out infinite; }
.client-scene button:focus-visible, .client-scene input:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 7px var(--cm-navy); }

/* Live transcript rail */
.client-transcript { position: absolute; z-index: 3; top: calc(var(--pad) + 66px); right: var(--pad); width: var(--rail-w);
    bottom: calc(var(--dock-h) + var(--band-h) + var(--pad) * 3); display: flex; flex-direction: column; box-sizing: border-box;
    border-radius: 18px; background: #faf6edf7; box-shadow: var(--cm-shadow); overflow: hidden; }
.client-transcript h3 { display: flex; align-items: baseline; gap: 0; margin: 0; padding: 18px 22px 14px; border-bottom: 1px solid var(--cm-edge);
    color: var(--cm-navy); font-size: clamp(17px, 1.4vw, 21px); font-weight: 800; }
.client-transcript h3 span:not(:empty)::before { content: '・'; }
.client-transcript h3 span { font-variant-numeric: tabular-nums; }
.client-lines { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 14px 14px; scrollbar-width: thin; scrollbar-color: #cdbb98 transparent; }
.client-line { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 8px; padding: 12px 8px; border-bottom: 1px solid #ece3d2;
    color: #2b3443; font-size: 15px; line-height: 1.6; }
.client-line-time { color: #5d6678; font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.client-line-who { display: block; color: var(--cm-navy); font-weight: 800; }
.client-line.answer { margin: 6px 0; border: 0; border-radius: 10px; background: #f3e3b8; }
.client-line.interim { color: #6b7280; }
.client-line.provisional .client-line-who::after { content: '（暫定）'; font-weight: 500; color: #6b7280; }
.client-empty { margin: 16px 8px; color: var(--cm-dim); font-size: 14px; line-height: 1.7; }
.client-notice { margin: 12px 14px 0; padding: 9px 12px; border-radius: 10px; background: #fbeceb; color: #8f2a20; font-size: 13.5px; line-height: 1.6; }

/* Setup card (before the meeting) and the minutes card (after it) */
.client-setup, .client-minutes { position: absolute; z-index: 3; left: 50%; top: 24%; transform: translateX(-50%); box-sizing: border-box;
    border-radius: 18px; background: #faf6edf7; box-shadow: var(--cm-shadow); color: var(--cm-ink); }
.client-setup { width: clamp(380px, 40%, 560px); display: grid; gap: 18px; padding: 26px 28px 24px; }
.client-setup label { display: grid; gap: 8px; min-width: 0; }
.client-field-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; }
.client-field-label { color: var(--cm-navy); font-size: 17px; font-weight: 800; }
.client-field-label span { margin-left: 2px; color: #6b7280; font-size: 14px; font-weight: 500; }
.client-setup input { min-width: 0; width: 100%; min-height: 52px; box-sizing: border-box; padding: 10px 16px; border: 1px solid #d9cfbd; border-radius: 10px;
    background: #fff; color: var(--cm-ink); font: inherit; font-size: 17px; }
.client-setup input::placeholder { color: #8a8f98; }
.client-start { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; margin-top: 4px; border: 0;
    border-radius: 12px; background: linear-gradient(180deg, var(--cm-gold-a), var(--cm-gold-b)); color: #192638; font: inherit;
    font-size: 20px; font-weight: 800; letter-spacing: .06em; cursor: pointer; box-shadow: 0 6px 14px #8a6a2a40; }
.client-start svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.client-start:hover:not(:disabled) { filter: brightness(1.04); }
.client-start:disabled { opacity: .6; cursor: progress; }
.client-setup-note { margin: 0; color: var(--cm-dim); font-size: 14px; line-height: 1.75; }
.client-limit { white-space: nowrap; }   /* 「上限 3 小時」不在中間斷行 */
/* 數位員工擴編（E4）：挑旁聽同事，名冊開啟時才出現 */
.client-pick { display: grid; gap: 8px; }
.client-pick[hidden] { display: none; }
.client-pick-list { display: flex; flex-wrap: wrap; gap: 8px; max-height: 140px; overflow-y: auto; }   /* 三列 40px 的選擇鈕；更多人時捲動 */
.client-pick-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 12px 4px 4px; border: 1px solid #d9cfbd;
  border-radius: 999px; background: #fff; color: var(--cm-navy); font: inherit; font-size: 14px; cursor: pointer; }
.client-pick-chip b { font-weight: 700; }
.client-pick-chip .client-pick-title { color: #6b7280; font-size: 13px; }
.client-pick-chip:hover:not([aria-disabled="true"]) { border-color: #c9a25e; }
.client-pick-chip[aria-pressed="true"] { border-color: var(--cm-navy); background: #eef2f8; box-shadow: inset 0 0 0 1px var(--cm-navy); }
.client-pick-chip[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.client-pick-chip:focus-visible { outline: 2px solid var(--cm-navy); outline-offset: 2px; }
.client-pick-avatar { position: relative; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  color: #fff; font-size: 12px; font-weight: 700; flex: none; border: 2px solid transparent; box-sizing: border-box; }
.client-pick-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.client-minutes { width: clamp(420px, 46%, 640px); max-height: calc(100% - 24% - var(--pad) * 2); overflow-y: auto; padding: 26px 30px; }
/* After the meeting the record sits in the room's free width, left of the transcript. */
.client-room[data-phase="ended"] .client-minutes { top: 20%; max-height: calc(80% - var(--pad)); left: calc((100% - var(--rail-w) - var(--pad)) / 2);
    width: min(640px, calc(100% - var(--rail-w) - var(--pad) * 4)); }
.client-minutes h3 { margin: 0 0 6px; color: var(--cm-navy); font-size: 24px; font-weight: 800; }
.client-minutes h4 { margin: 18px 0 6px; color: #6b5b3e; font-size: 14px; font-weight: 800; letter-spacing: .06em; }
.client-minutes p, .client-minutes li { color: #2b3443; font-size: 15px; line-height: 1.75; }
.client-minutes p { margin: 0; }
.client-minutes .client-minutes-meta { color: var(--cm-dim); font-size: 14px; }
.client-minutes ul { margin: 0; padding-left: 1.3em; }
.client-minutes-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.client-check { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: #eef5ee; color: #24502f; font-size: 14px; line-height: 1.6; }
.client-check.is-warn { background: #fbf1df; color: #6b4a12; }
.client-pending li { color: #6b4a12; }

.client-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Transient status line */
.client-status { position: absolute; z-index: 6; left: 50%; bottom: calc(var(--dock-h) + var(--band-h) + var(--pad) * 3); transform: translateX(-50%);
    max-width: calc(100% - 2 * var(--pad)); margin: 0; padding: 10px 18px; border-radius: 999px; background: var(--cm-navy); color: #fff;
    font-size: 14px; font-weight: 600; text-align: center; box-shadow: 0 10px 24px #0b14246b; }
.client-room[data-phase="idle"] .client-status, .client-room[data-phase="connecting"] .client-status,
.client-room[data-phase="ended"] .client-status { bottom: var(--pad); }

/* Phase visibility: before the meeting only the setup card and the waiting colleagues show (A-2) */
.client-room[data-phase="idle"] .client-rec, .client-room[data-phase="connecting"] .client-rec,
.client-room[data-phase="idle"] .client-band, .client-room[data-phase="connecting"] .client-band,
.client-room[data-phase="ended"] .client-band,
.client-room[data-phase="idle"] .client-controls, .client-room[data-phase="connecting"] .client-controls,
.client-room[data-phase="ended"] .client-controls,
.client-room[data-phase="idle"] .client-transcript, .client-room[data-phase="connecting"] .client-transcript { display: none; }
.client-room[data-phase="live"] .client-setup, .client-room[data-phase="ended"] .client-setup { display: none; }
.client-room[data-phase="ended"] .client-transcript { bottom: var(--pad); }
.client-room[data-phase="ended"] .client-rec { background: #3a4c63; }

@media (prefers-reduced-motion: reduce) {
    .client-rec.live .client-rec-dot { animation: none; }
    .client-seat { transition: none; }
}

/* Medium widths: the navigation takes a second row */
@media (min-width: 701px) and (max-width: 1180px) {
    .client-canvas { height: max(540px, calc(100dvh - 128px - 27px)); }
    .client-room { --rail-w: 280px; --dock-h: 68px; --cap: 26px; }
    .client-seat { --ps: clamp(52px, calc(var(--sh) * .1), 80px); }
    .client-btn { gap: 6px; padding: 8px 10px; }
    .client-title { padding: 14px 18px 12px; }
}

/* Short desktop windows (laptops, a tablet in landscape): a slimmer band and dock keep everyone seated at the table. */
@media (min-width: 701px) and (max-height: 820px) {
    .client-room { --cap: clamp(22px, 3.2vh, 30px); --dock-h: 64px; --band-h: calc(66px + 2.9 * var(--cap)); }
    .client-band { padding: 14px 28px 14px 18px; }
    .client-band-avatar { width: clamp(56px, 5.5vw, 84px); }
    .client-seat { --ps: clamp(52px, calc(var(--sh) * .095), 88px); }
    .client-btn { min-height: 46px; }
}

/* Let the setup form size the room. Absolute positioning allowed long forms to
   overflow into the footer on short desktop windows and at browser zoom. */
@media (min-width: 701px) {
    .client-room:is([data-phase="idle"], [data-phase="connecting"]) { display: grid; }
    .client-room:is([data-phase="idle"], [data-phase="connecting"]) .client-canvas {
        grid-area: 1 / 1; height: auto; min-height: max(600px, calc(100dvh - 103px));
    }
    .client-room:is([data-phase="idle"], [data-phase="connecting"]) .client-setup {
        grid-area: 1 / 1; position: relative; left: auto; top: auto; transform: none;
        align-self: start; justify-self: center; margin: 150px 0 28px;
    }
}

/* Phones: the room photo on top; setup, transcript and minutes follow; the controls stay at the bottom */
@media (max-width: 700px) {
    .client-room { --pad: 10px; --cap: 16px; padding-bottom: 12px; }
    .client-room[data-phase="live"] { padding-bottom: 204px; }
    .client-canvas { height: auto; aspect-ratio: 1.05; }
    .client-title { padding: 10px 14px; max-width: 56%; border-radius: 14px; }
    .client-title h2 { font-size: 22px; }
    .client-title p { margin-top: 4px; font-size: 12px; }
    .client-rec { padding: 7px 12px; gap: 7px; font-size: 12px; }
    .client-rec-total { display: none; }
    .client-rec-dot { width: 10px; height: 10px; }
    .client-seat { --ps: 44px; --edge: 44px; gap: 5px; }
    .client-room[data-phase="live"] .client-seat { top: calc((100cqh - var(--sh)) * .4 + var(--sh) * var(--sy, .5)); }
    .client-room[data-phase="live"], .client-room[data-phase="ended"] { --rail-space: 44px; }
    .client-seat-pill { gap: 3px; font-size: 10px; padding: .28em .62em; }
    .client-band { left: 8px; right: 8px; bottom: 8px; height: auto; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-radius: 14px; }
    .client-band-avatar { width: 44px; border-width: 2px; }
    .client-band-who { margin-bottom: 2px; font-size: 13px; }
    .client-setup, .client-minutes, .client-transcript { position: static; transform: none; width: auto; max-height: none; margin: 12px 12px 0; }
    .client-setup { padding: 18px; gap: 14px; }
    .client-field-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .client-transcript { height: 340px; }
    .client-room[data-phase="ended"] .client-transcript { height: 260px; }
    .client-minutes, .client-room[data-phase="ended"] .client-minutes { left: auto; top: auto; width: auto; max-height: none; padding: 18px; }
    .client-controls { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: auto; grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; }
    .client-btn { min-height: 46px; font-size: 14px; padding: 6px 8px; }
    .client-btn-extend:not([hidden]) ~ .client-btn-end { grid-column: 1 / -1; }   /* 五顆鈕：結束會談獨占最後一列 */
    .client-status { position: fixed; bottom: 190px; }
    .client-room[data-phase="idle"] .client-status, .client-room[data-phase="connecting"] .client-status,
    .client-room[data-phase="ended"] .client-status { bottom: 16px; }
}
