/* Served mirror of the final source refinement. */
.landing-video { opacity: 0; transition: opacity 180ms ease; }
.landing-video.is-ready { opacity: 1; }
.room-header { position: relative; grid-template-columns: minmax(0, 1fr) minmax(390px, 470px); min-height: 130px; gap: 30px; padding-bottom: 17px; }
.room-header::after { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: rgb(255 255 255 / .64); content: ""; }
.room-mode { display: inline-flex; align-items: center; gap: 8px; color: var(--slate-4); font-size: 11px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
.room-mode i { width: 22px; height: 1px; background: var(--purple-1); }
.room-header-chair { grid-template-columns: 88px minmax(0, 1fr); min-height: 122px; align-items: stretch; border-radius: 20px; }
.room-header-avatar { width: 82px; height: 82px; min-height: 82px; align-self: center; margin-top: 0; border-width: 2px; }
.room-header-chair-content { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: stretch; gap: 10px; padding: 16px 18px 16px 0; }
.room-header-persona { align-content: center; }
.room-header-persona strong { font-size: 16px; }
.room-header-persona span { font-size: 12px; }
.room-header-rehearsal { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; }
.room-header-schedule { display: inline-flex; min-width: 0; align-items: center; gap: 7px; color: var(--slate-3); font-size: 12px; font-weight: 500; line-height: 1.35; }
.room-header-schedule .ui-icon { width: 15px; height: 15px; flex: 0 0 auto; filter: var(--icon-filter-active); }
.room-header-actions { display: grid; min-width: 132px; grid-template-columns: 1fr; gap: 6px; }
.room-header-actions .button { width: 100%; min-height: 37px; white-space: nowrap; }
.rehearsal-join { min-height: 37px; border-radius: 10px; padding: 8px 12px; }
.room-header-standard-action, .reschedule-button { min-height: 37px; border-radius: 10px; padding: 8px 12px; }
.conversation { align-items: flex-start; }
.composer { width: min(100%, 72ch); align-self: flex-start; border-radius: 999px; padding: 7px 8px 7px 16px; }
.composer textarea { padding: 10px 4px; }
.composer-send { border-radius: 50%; }
.composer-send:disabled { border-color: rgb(96 110 117 / .16); background: rgb(255 255 255 / .42); box-shadow: none; color: var(--slate-6); cursor: not-allowed; opacity: .7; }
.composer-send:disabled .composer-arrow { opacity: .6; }
.composer-send.is-ready, .composer:has(#coach-input:not(:placeholder-shown)) .composer-send:not(:disabled) { border-color: var(--purple-1); background: linear-gradient(135deg, var(--purple-1), var(--purple-2)); box-shadow: 0 7px 14px color-mix(in srgb, var(--purple-1) 25%, transparent); color: var(--white); }
.composer-arrow { font-size: 19px; font-weight: 500; line-height: 1; transform: translateY(-1px); }
.message.is-typing .bubble::after { display: inline-block; width: 1px; height: 1em; margin-left: 2px; background: var(--purple-1); content: ""; vertical-align: -2px; animation: coach-caret 720ms steps(1, end) infinite; }
@keyframes coach-caret { 50% { opacity: 0; } }
@media (max-width: 767px) { .room-header { grid-template-columns: 1fr; min-height: 0; gap: 16px; padding-bottom: 14px; } .room-header-chair { grid-template-columns: 72px minmax(0, 1fr); min-height: 112px; } .room-header-avatar { width: 66px; height: 66px; min-height: 66px; } .room-header-chair-content { gap: 8px; padding: 14px 14px 14px 0; } .room-header-actions { min-width: 120px; } .composer { width: 100%; padding-left: 12px; } }
@media (prefers-reduced-motion: reduce) { .landing-video { transition: none; } .message.is-typing .bubble::after { animation: none; } }

/* Restored Coach layout: full-width conversation with the counterpart portrait as the header anchor. */
.room-coach-page .room-header { grid-template-columns: minmax(0, 1fr) minmax(390px, 470px); min-height: 138px; overflow: visible; border: 0; border-radius: 0; background: transparent; padding: 0 0 17px; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.room-coach-page .room-header::after { display: block; background: rgb(255 255 255 / .64); }
.room-coach-page .room-header-copy { gap: 9px; }
.room-coach-page .room-title { font-size: clamp(1.85rem, 3vw, 2.7rem); line-height: 1.4; }
.room-coach-page .room-mode i { width: 22px; background: var(--purple-1); }
.room-coach-page .room-header-chair { grid-template-columns: 116px minmax(0, 1fr); min-height: 132px !important; align-items: stretch !important; overflow: hidden; border: 1px solid rgb(255 255 255 / .78); border-radius: 22px; background: linear-gradient(135deg, rgb(255 255 255 / .76), rgb(236 244 255 / .58) 55%, rgb(241 232 253 / .58)); box-shadow: 0 18px 40px rgb(68 102 121 / .10), inset 0 1px 0 rgb(255 255 255 / .92); backdrop-filter: blur(20px) saturate(145%); -webkit-backdrop-filter: blur(20px) saturate(145%); }
.room-coach-page .room-header-avatar { width: 116px; height: 100%; min-height: 132px !important; align-self: stretch !important; margin-top: 0 !important; border: 0; border-radius: 22px 0 0 22px; box-shadow: none; object-fit: cover; object-position: center top; }
.room-coach-page .room-header-chair-content { grid-template-columns: 1fr !important; grid-template-rows: auto auto !important; align-items: stretch !important; gap: 12px; padding: 17px 18px; }
.room-coach-page .room-header-persona strong { font-size: 16px; }
.room-coach-page .room-header-persona span { font-size: 12px; }
.room-coach-page .room-header-rehearsal { display: grid !important; grid-template-columns: 1fr; gap: 9px; align-content: end; align-items: normal !important; justify-content: normal !important; }
.room-coach-page .room-header-schedule { color: var(--slate-3); font-size: 12px; }
.room-coach-page .room-header-schedule .ui-icon { filter: var(--icon-filter-active); }
.room-coach-page .room-header-actions { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.room-coach-page .room-header-actions .button { min-height: 38px; padding: 8px 10px; font-size: 12px; }
.room-coach-page .rehearsal-join { border: 1px solid transparent; border-radius: 12px; background: linear-gradient(135deg, var(--purple-1), var(--purple-2)); box-shadow: 0 9px 18px rgb(120 35 220 / .18); color: var(--white); }
.room-coach-page .rehearsal-join .ui-icon { filter: var(--icon-filter-inverse); }
.room-coach-page .room-header-standard-action, .room-coach-page .reschedule-button { border-color: rgb(96 110 117 / .28); border-radius: 12px; background: rgb(255 255 255 / .62); }
.room-coach-page .room-section-bar { display: flex; align-items: flex-end; gap: 18px; margin: 16px 0 12px; }
.room-coach-page .room-section-links { width: auto; min-width: 0; flex: 1 1 auto; border: 1px solid rgb(255 255 255 / .68); border-radius: 14px; background: rgb(255 255 255 / .35); padding: 4px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .68); backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%); }
.room-coach-page .room-section-links button { min-height: 36px; border-radius: 10px; padding: 8px 11px; color: var(--slate-4); font-size: 13px; }
.room-coach-page .room-section-links button + button { margin-left: 0; }
.room-coach-page .room-section-links .room-section-icon { display: inline-flex; }
.room-coach-page .room-section-links button[aria-selected="true"] { background: rgb(255 255 255 / .74); box-shadow: 0 4px 12px rgb(55 87 102 / .08); color: var(--purple-1); }
.room-coach-page .room-section-links button[aria-selected="true"]::after { display: none; }
.room-coach-page .cheat-sheet-button { min-width: 0; min-height: 36px; height: 36px; border: 1px solid rgb(255 255 255 / .68); border-radius: 12px; background: rgb(255 255 255 / .42); padding: 7px 10px; color: var(--slate-4); box-shadow: inset 0 1px 0 rgb(255 255 255 / .68); }
.room-coach-page .cheat-sheet-button.is-ready { border-color: rgb(255 255 255 / .68); color: var(--slate-4); }
.room-coach-page .cheat-sheet-button.is-ready:hover { border-color: var(--purple-1); background: rgb(255 255 255 / .66); color: var(--purple-1); }
.room-coach-page .room-layout, .room-coach-page .conversation, .room-coach-page .coach-thread, .room-coach-page .composer { width: 100%; max-width: none; }
.room-coach-page .conversation { align-self: stretch; gap: 18px; }
.room-coach-page .coach-thread { gap: 20px; padding: 6px 2px 14px; }
.room-coach-page .message.message-ai .bubble { max-width: min(100%, 960px); border: 1px solid rgb(255 255 255 / .74); border-radius: 20px 20px 20px 6px; background: linear-gradient(135deg, rgb(255 255 255 / .70), rgb(237 247 255 / .58) 62%, rgb(246 239 255 / .56)); padding: 14px 16px; box-shadow: 0 12px 28px rgb(70 98 112 / .08), inset 0 1px 0 rgb(255 255 255 / .78); backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%); }
.room-coach-page .message.from-user .bubble { max-width: min(78%, 860px); border: 1px solid rgb(255 255 255 / .82); border-radius: 20px 20px 6px 20px; background: rgb(255 255 255 / .72); padding: 14px 16px; box-shadow: 0 10px 24px rgb(70 98 112 / .06), inset 0 1px 0 rgb(255 255 255 / .82); backdrop-filter: blur(14px) saturate(125%); -webkit-backdrop-filter: blur(14px) saturate(125%); }
.room-coach-page .coach-note { max-width: min(100%, 960px); border-left-color: rgb(120 35 220 / .36); background: rgb(255 255 255 / .28); }
.room-coach-page .composer { align-self: stretch; border-color: rgb(255 255 255 / .86); border-radius: 22px; background: linear-gradient(135deg, rgb(255 255 255 / .80), rgb(234 247 255 / .56) 56%, rgb(243 235 255 / .52)); padding: 7px 8px 7px 14px; box-shadow: 0 18px 36px rgb(46 81 100 / .14), inset 0 1px 0 rgb(255 255 255 / .95); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); }
@media (max-width: 767px) { .room-coach-page .room-header { grid-template-columns: 1fr; min-height: 0; gap: 16px; padding-bottom: 14px; } .room-coach-page .room-header-chair { grid-template-columns: 90px minmax(0, 1fr); min-height: 122px !important; align-items: stretch !important; } .room-coach-page .room-header-avatar { width: 90px; min-height: 122px !important; margin-top: 0 !important; align-self: stretch !important; border-radius: 18px 0 0 18px; } .room-coach-page .room-header-chair-content { padding: 14px; } .room-coach-page .room-section-bar { align-items: stretch; flex-direction: column; gap: 8px; } .room-coach-page .room-section-links { width: 100%; overflow-x: auto; } .room-coach-page .cheat-sheet-button { align-self: flex-end; } .room-coach-page .message.message-ai .bubble, .room-coach-page .message.from-user .bubble { max-width: 94%; } }

/* Shared Room snapshot: Coach, Brief, News, and Performance retain one visual anchor. */
.room-coach-page .room-header, .room-page .room-header { grid-template-columns: minmax(0, 1fr) minmax(390px, 470px); min-height: 138px; overflow: visible; border: 0; border-radius: 0; background: transparent; padding: 0 0 17px; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.room-coach-page .room-header::after, .room-page .room-header::after { display: block; background: rgb(255 255 255 / .64); }
.room-coach-page .room-header-copy, .room-page .room-header-copy { gap: 9px; }
.room-coach-page .room-title, .room-page .room-title { font-size: clamp(1.85rem, 3vw, 2.7rem); line-height: 1.4; }
.room-coach-page .room-mode i, .room-page .room-mode i { width: 22px; background: var(--purple-1); }
.room-coach-page .room-header-chair, .room-page .room-header-chair { grid-template-columns: 116px minmax(0, 1fr); min-height: 132px !important; align-items: stretch !important; overflow: hidden; border: 1px solid rgb(255 255 255 / .78); border-radius: 22px; background: linear-gradient(135deg, rgb(255 255 255 / .76), rgb(236 244 255 / .58) 55%, rgb(241 232 253 / .58)); box-shadow: 0 18px 40px rgb(68 102 121 / .10), inset 0 1px 0 rgb(255 255 255 / .92); backdrop-filter: blur(20px) saturate(145%); -webkit-backdrop-filter: blur(20px) saturate(145%); }
.room-coach-page .room-header-avatar, .room-page .room-header-avatar { width: 116px; height: 100%; min-height: 132px !important; align-self: stretch !important; margin-top: 0 !important; border: 0; border-radius: 22px 0 0 22px; box-shadow: none; object-fit: cover; object-position: center top; }
.room-coach-page .room-header-chair-content, .room-page .room-header-chair-content { grid-template-columns: 1fr !important; grid-template-rows: auto auto !important; align-items: stretch !important; gap: 12px; padding: 17px 18px; }
.room-coach-page .room-header-persona strong, .room-page .room-header-persona strong { font-size: 16px; }
.room-coach-page .room-header-persona span, .room-page .room-header-persona span { font-size: 12px; }
.room-coach-page .room-header-rehearsal, .room-page .room-header-rehearsal { display: grid !important; grid-template-columns: 1fr; gap: 9px; align-content: end; align-items: normal !important; justify-content: normal !important; }
.room-coach-page .room-header-schedule, .room-page .room-header-schedule { color: var(--slate-3); font-size: 12px; }
.room-coach-page .room-header-schedule .ui-icon, .room-page .room-header-schedule .ui-icon { filter: var(--icon-filter-active); }
.room-coach-page .room-header-actions, .room-page .room-header-actions { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.room-coach-page .room-header-actions .button, .room-page .room-header-actions .button { min-height: 38px; padding: 8px 10px; font-size: 12px; }
.room-coach-page .rehearsal-join, .room-page .rehearsal-join { border: 1px solid transparent; border-radius: 12px; background: linear-gradient(135deg, var(--purple-1), var(--purple-2)); box-shadow: 0 9px 18px rgb(120 35 220 / .18); color: var(--white); }
.room-coach-page .rehearsal-join .ui-icon, .room-page .rehearsal-join .ui-icon { filter: var(--icon-filter-inverse); }
.room-coach-page .room-header-standard-action, .room-coach-page .reschedule-button, .room-page .room-header-standard-action, .room-page .reschedule-button { border-color: rgb(96 110 117 / .28); border-radius: 12px; background: rgb(255 255 255 / .62); }
.room-coach-page .room-section-bar, .room-page .room-section-bar { display: flex; align-items: flex-end; gap: 18px; margin: 16px 0 12px; }
.room-coach-page .room-section-links, .room-page .room-section-links { width: auto; min-width: 0; flex: 1 1 auto; border: 1px solid rgb(255 255 255 / .68); border-radius: 14px; background: rgb(255 255 255 / .35); padding: 4px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .68); backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%); }
.room-coach-page .room-section-links button, .room-page .room-section-links button { min-height: 36px; border-radius: 10px; padding: 8px 11px; color: var(--slate-4); font-size: 13px; }
.room-coach-page .room-section-links button + button, .room-page .room-section-links button + button { margin-left: 0; }
.room-coach-page .room-section-links .room-section-icon, .room-page .room-section-links .room-section-icon { display: inline-flex; }
.room-coach-page .room-section-links button[aria-selected="true"], .room-page .room-section-links button[aria-selected="true"] { background: rgb(255 255 255 / .74); box-shadow: 0 4px 12px rgb(55 87 102 / .08); color: var(--purple-1); }
.room-coach-page .room-section-links button[aria-selected="true"]::after, .room-page .room-section-links button[aria-selected="true"]::after { display: none; }
.room-coach-page .cheat-sheet-button, .room-page .cheat-sheet-button { min-width: 0; min-height: 36px; height: 36px; border: 1px solid rgb(255 255 255 / .68); border-radius: 12px; background: rgb(255 255 255 / .42); padding: 7px 10px; color: var(--slate-4); box-shadow: inset 0 1px 0 rgb(255 255 255 / .68); }
.room-coach-page .cheat-sheet-button.is-ready, .room-page .cheat-sheet-button.is-ready { border-color: rgb(255 255 255 / .68); color: var(--slate-4); }
.room-coach-page .cheat-sheet-button.is-ready:hover, .room-page .cheat-sheet-button.is-ready:hover { border-color: var(--purple-1); background: rgb(255 255 255 / .66); color: var(--purple-1); }
@media (max-width: 767px) { .room-coach-page .room-header, .room-page .room-header { grid-template-columns: 1fr; min-height: 0; gap: 16px; padding-bottom: 14px; } .room-coach-page .room-header-chair, .room-page .room-header-chair { grid-template-columns: 90px minmax(0, 1fr); min-height: 122px !important; align-items: stretch !important; } .room-coach-page .room-header-avatar, .room-page .room-header-avatar { width: 90px; min-height: 122px !important; margin-top: 0 !important; align-self: stretch !important; border-radius: 18px 0 0 18px; } .room-coach-page .room-header-chair-content, .room-page .room-header-chair-content { padding: 14px; } .room-coach-page .room-section-bar, .room-page .room-section-bar { align-items: stretch; flex-direction: column; gap: 8px; } .room-coach-page .room-section-links, .room-page .room-section-links { width: 100%; overflow-x: auto; } .room-coach-page .cheat-sheet-button, .room-page .cheat-sheet-button { align-self: flex-end; } }

/* Conversation and rail controls: compact, quiet, and useful only when needed. */
.room-coach-page .message.from-user { width: min(100%, 960px); margin-left: 0; }
.room-coach-page .message.from-user .message-label { justify-content: flex-start; text-align: left; }
.room-coach-page .message-label { gap: 7px; color: var(--slate-4); }
.room-coach-page .message-label .message-author { color: var(--slate-3); font-size: 12px; font-weight: 500; }
.room-coach-page .message-label small { color: var(--slate-6); font-size: 11px; font-weight: 400; }
.room-coach-page .message.from-user .bubble { max-width: min(100%, 960px); border-radius: 20px 20px 20px 6px; }
.message-response-actions { display: flex; align-items: center; gap: 3px; margin: 1px 0 0 2px; }
.message-response-actions button { display: inline-grid; width: 28px; height: 28px; place-items: center; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--slate-5); opacity: .72; transition: border-color 150ms ease, background 150ms ease, color 150ms ease, opacity 150ms ease; }
.message-response-actions button .ui-icon { width: 14px; height: 14px; filter: var(--icon-filter-muted); }
.message-response-actions button:hover, .message-response-actions button:focus-visible { border-color: rgb(120 35 220 / .2); background: rgb(255 255 255 / .7); color: var(--purple-1); opacity: 1; }
.message-response-actions button:hover .ui-icon, .message-response-actions button:focus-visible .ui-icon { filter: var(--icon-filter-active); }
.rail-topline { justify-content: space-between; }
.rail-room-search, .rail-collapse-toggle { display: inline-grid; width: 38px; min-width: 38px; height: 38px; min-height: 38px; place-items: center; border: 1px solid transparent; border-radius: 10px; background: transparent; padding: 0; color: var(--slate-4); }
.rail-room-search:hover, .rail-room-search:focus-visible, .rail-collapse-toggle:hover, .rail-collapse-toggle:focus-visible { border-color: var(--slate-10); background: rgb(255 255 255 / .72); color: var(--purple-1); }
.rail-search-icon { position: relative; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; }
.rail-search-icon::after { position: absolute; right: -4px; bottom: -3px; width: 6px; height: 1.5px; border-radius: 1px; background: currentColor; content: ""; transform: rotate(45deg); transform-origin: left center; }
.rail-collapse-icon { position: relative; width: 16px; height: 15px; border: 1.5px solid currentColor; border-radius: 4px; }
.rail-collapse-icon::before { position: absolute; top: 1px; bottom: 1px; left: 5px; width: 1.5px; border-radius: 1px; background: currentColor; content: ""; }
.rail-collapse-icon::after { position: absolute; top: 5px; left: 7px; width: 4px; height: 4px; border-top: 1.5px solid currentColor; border-left: 1.5px solid currentColor; content: ""; transform: rotate(-45deg); }
.rail.is-collapsed .rail-collapse-icon::after { left: 3px; transform: rotate(135deg); }
.rail-action, .new-room-button { border-color: var(--slate-8); background: var(--white); color: var(--slate-1); box-shadow: none; }
.rail-action:hover, .rail-action:focus-visible, .new-room-button:hover, .new-room-button:focus-visible { border-color: var(--purple-1); background: var(--white); color: var(--purple-1); box-shadow: none; }
@media (max-width: 767px) { .message-response-actions button { width: 32px; height: 32px; } }

/* Corrected response controls: user messages sit on the right, while response actions remain grouped. */
.room-coach-page .message.from-user { width: min(82%, 860px); margin-left: auto; }
.room-coach-page .message.from-user .message-label { justify-content: flex-end; text-align: right; }
.room-coach-page .message.from-user .bubble { max-width: min(100%, 860px); border-radius: 20px 20px 6px 20px; }
.message-rating-controls { display: inline-flex; align-items: center; gap: 2px; margin-left: 3px; padding-left: 4px; border-left: 1px solid rgb(96 110 117 / .14); }
.message-response-actions button .ui-icon { width: 15px; height: 15px; }
.rail-room-search .ui-icon, .rail-collapse-toggle .ui-icon { width: 18px; height: 18px; filter: var(--icon-filter-default); }
.rail-room-search:hover .ui-icon, .rail-room-search:focus-visible .ui-icon, .rail-collapse-toggle:hover .ui-icon, .rail-collapse-toggle:focus-visible .ui-icon { filter: var(--icon-filter-active); }
.rail-search-icon, .rail-collapse-icon { display: none; }

/* Shared counterpart card alignment and notification badge calibration. */
.room-coach-page .room-header-chair, .room-page .room-header-chair { min-height: 150px !important; }
.room-coach-page .room-header-avatar, .room-page .room-header-avatar { min-height: 150px !important; }
.room-coach-page .room-header-chair-content, .room-page .room-header-chair-content { align-content: start; justify-items: stretch; text-align: left; }
.room-coach-page .room-header-persona, .room-page .room-header-persona { justify-items: start; text-align: left; }
.room-coach-page .room-header-rehearsal, .room-page .room-header-rehearsal { align-content: start; justify-items: stretch; }
.room-coach-page .room-header-schedule, .room-page .room-header-schedule { justify-content: flex-start; text-align: left; }
.room-coach-page .room-header-actions, .room-page .room-header-actions { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
.room-coach-page .room-header-actions .button, .room-page .room-header-actions .button { width: 100%; justify-content: center; }
.reschedule-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.reschedule-button .ui-icon { width: 14px; height: 14px; filter: var(--icon-filter-default); }
.notification-badge { top: -4px; right: -5px; display: flex; min-width: 18px; height: 18px; box-sizing: border-box; align-items: center; justify-content: center; border: 2px solid var(--white); padding: 0 4px; font-size: 10px; font-variant-numeric: tabular-nums; font-weight: 500; line-height: 1; text-align: center; }
@media (max-width: 767px) { .room-coach-page .room-header-chair, .room-page .room-header-chair { min-height: 136px !important; } .room-coach-page .room-header-avatar, .room-page .room-header-avatar { min-height: 136px !important; } }

/* Clear Coach canvas: the room context remains glassy, the conversation stays easy to read. */
.room-coach-page .room-header-chair-content, .room-page .room-header-chair-content { padding-left: 28px; }
.room-coach-page .room-layout { border: 1px solid rgb(255 255 255 / .88); border-radius: 24px; background: rgb(255 255 255 / .82); padding: 18px 20px; box-shadow: 0 16px 34px rgb(57 83 97 / .08), inset 0 1px 0 rgb(255 255 255 / .96); }
.room-coach-page .conversation { gap: 16px; }
.room-coach-page .coach-thread { padding: 6px 4px 16px; }
.room-coach-page .message.message-ai .bubble { background: linear-gradient(135deg, rgb(250 252 255 / .96), rgb(244 239 255 / .88)); box-shadow: none; }
.room-coach-page .message.from-user .bubble { border-color: rgb(96 110 117 / .16); background: var(--white); box-shadow: 0 4px 14px rgb(59 75 84 / .05); }
.room-coach-page .message-response-actions { opacity: .4; transition: opacity 150ms ease; }
.room-coach-page .message.message-ai:hover .message-response-actions, .room-coach-page .message.message-ai:focus-within .message-response-actions { opacity: 1; }
.room-coach-page .composer { margin-top: 2px; }
.room-coach-page .room-section-links { min-height: 44px; }
.room-coach-page .cheat-sheet-button { min-height: 44px; height: 44px; }
@media (max-width: 767px) { .room-coach-page .room-header-chair-content, .room-page .room-header-chair-content { padding-left: 20px; } .room-coach-page .room-layout { border-radius: 20px; padding: 14px; } .room-coach-page .cheat-sheet-button { width: 100%; align-self: stretch; justify-content: center; } }
@media (prefers-reduced-transparency: reduce) { .room-coach-page .room-layout { background: var(--white); } }

/* Conversation session rhythm and a deliberately simple composer. */
.room-coach-page .room-header-chair, .room-page .room-header-chair { grid-template-columns: 144px minmax(0, 1fr); }
.room-coach-page .room-header-avatar, .room-page .room-header-avatar { width: 116px; }
.room-coach-page .room-header-chair-content, .room-page .room-header-chair-content { padding-left: 24px; }
.room-coach-page .composer { border-color: rgb(96 110 117 / .2); border-radius: 18px; background: var(--white); padding: 5px 7px 5px 14px; box-shadow: 0 1px 2px rgb(45 63 72 / .05); backdrop-filter: none; -webkit-backdrop-filter: none; }
.room-coach-page .composer:focus-within { border-color: rgb(120 35 220 / .44); box-shadow: 0 0 0 3px rgb(230 210 250 / .48); }
.room-coach-page .composer-send.is-ready { box-shadow: none; }
.conversation-marker { display: flex; align-items: center; justify-content: center; margin: 5px 0 2px; color: var(--slate-5); font-size: 11px; line-height: 1; }
.conversation-marker::before, .conversation-marker::after { width: min(24%, 150px); height: 1px; margin: 0 10px; background: rgb(96 110 117 / .12); content: ""; }
.message-working { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px 2px; color: var(--slate-5); font-size: 11px; line-height: 1.2; }
.message-working .ui-icon { width: 13px; height: 13px; filter: var(--icon-filter-active); opacity: .8; }
@media (max-width: 767px) { .room-coach-page .room-header-chair, .room-page .room-header-chair { grid-template-columns: 116px minmax(0, 1fr); } .room-coach-page .room-header-avatar, .room-page .room-header-avatar { width: 90px; } .room-coach-page .room-header-chair-content, .room-page .room-header-chair-content { padding-left: 18px; } .conversation-marker::before, .conversation-marker::after { width: min(16%, 72px); } }

/* Portrait remains flush with the left edge and inherits the counterpart card's rounded silhouette. */
.room-coach-page .room-header-avatar, .room-page .room-header-avatar { justify-self: start; align-self: stretch !important; border-radius: 22px 0 0 22px; }
@media (max-width: 767px) { .room-coach-page .room-header-avatar, .room-page .room-header-avatar { border-radius: 18px 0 0 18px; } }

/* Room navigation and dialogs share one clear, softly refracted surface. */
.room-coach-page .room-section-links, .room-page .room-section-links { display: flex; min-height: 48px; align-items: center; gap: 8px; border-color: rgb(255 255 255 / .84); background: rgb(255 255 255 / .70); padding: 5px; box-shadow: 0 10px 28px rgb(61 89 103 / .07), inset 0 1px 0 rgb(255 255 255 / .94); backdrop-filter: blur(18px) saturate(135%); -webkit-backdrop-filter: blur(18px) saturate(135%); }
.room-section-tabs { display: flex; min-width: 0; flex: 1 1 auto; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }.room-section-tabs::-webkit-scrollbar { display: none; }
.room-coach-page .room-section-tabs button, .room-page .room-section-tabs button { position: relative; display: inline-flex; min-height: 38px; align-items: center; gap: 7px; border: 0px solid transparent; border-radius: 10px; background: transparent; padding: 8px 11px; color: var(--slate-4); white-space: nowrap; }
.room-coach-page .room-section-tabs button:hover, .room-page .room-section-tabs button:hover { background: rgb(255 255 255 / .58); color: var(--slate-2); }
.room-coach-page .room-section-tabs .room-section-icon, .room-page .room-section-tabs .room-section-icon { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 8px; background: var(--slate-11); }
.room-section-tabs button[data-route="coach"] .room-section-icon { background: rgb(233 233 233 / 86%); }.room-section-tabs button[data-route="brief"] .room-section-icon { background: rgb(233 233 233 / 86%); }.room-section-tabs button[data-route="news"] .room-section-icon { background: rgb(233 233 233 / 86%); }.room-section-tabs button[data-route="performance"] .room-section-icon { background: rgb(233 233 233 / 86%); }
.room-coach-page .room-section-tabs button[aria-selected="true"], .room-page .room-section-tabs button[aria-selected="true"] { border-color: rgb(120 35 220 / .16); background: rgb(255 255 255 / .92); box-shadow: 0 4px 12px rgb(55 87 102 / .08); color: var(--purple-1); }
.room-coach-page .room-section-tabs button[aria-selected="true"]::after, .room-page .room-section-tabs button[aria-selected="true"]::after { position: absolute; right: 11px; bottom: 4px; left: 11px; display: block; height: 2px; border-radius: 2px; background: var(--purple-1); content: ""; }
.room-coach-page .room-section-tabs button[aria-selected="true"] .room-section-icon, .room-page .room-section-tabs button[aria-selected="true"] .room-section-icon { background: var(--purple-9); }.room-coach-page .room-section-tabs button[aria-selected="true"] .room-section-icon .ui-icon, .room-page .room-section-tabs button[aria-selected="true"] .room-section-icon .ui-icon { filter: var(--icon-filter-active); }
.room-coach-page .room-section-links > .cheat-sheet-button, .room-page .room-section-links > .cheat-sheet-button { min-height: 38px; height: 38px; flex: 0 0 auto; margin-left: auto; border-color: rgb(120 35 220 / .14); border-radius: 10px; background: rgb(247 242 255 / .84); padding: 8px 11px; box-shadow: none; color: var(--slate-3); white-space: nowrap; }
.room-coach-page .room-section-links > .cheat-sheet-button .ui-icon, .room-page .room-section-links > .cheat-sheet-button .ui-icon { width: 15px; height: 15px; filter: var(--icon-filter-active); }.room-coach-page .room-section-links > .cheat-sheet-button.is-ready:hover, .room-page .room-section-links > .cheat-sheet-button.is-ready:hover { border-color: var(--purple-1); background: var(--white); color: var(--purple-1); }.room-coach-page .room-section-links > .cheat-sheet-button:disabled, .room-page .room-section-links > .cheat-sheet-button:disabled { border-color: transparent; background: transparent; color: var(--slate-6); }

.modal-backdrop { background: rgb(229 229 229 / 30%); backdrop-filter: blur(14px) saturate(125%); -webkit-backdrop-filter: blur(14px) saturate(125%); }
.modal { border-color: rgb(255 255 255 / .78); border-radius: 24px; background: linear-gradient(135deg, rgb(255 255 255 / .88), rgb(247 250 255 / .78) 56%, rgb(245 238 255 / .74)); box-shadow: 0 24px 60px rgb(37 57 70 / .20), inset 0 1px 0 rgb(255 255 255 / .96); backdrop-filter: blur(26px) saturate(140%); -webkit-backdrop-filter: blur(26px) saturate(140%); }
.room-intake { background: linear-gradient(135deg, rgb(255 255 255 / .90), rgb(247 250 255 / .82) 56%, rgb(245 238 255 / .78)); }.intake-top { background: rgb(255 255 255 / .44); }.intake-title { display: inline-flex; align-items: center; gap: 9px; }
.intake-title-icon, .dialog-heading-icon { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border: 1px solid rgb(255 255 255 / .86); border-radius: 12px; background: rgb(238 229 255 / .78); box-shadow: inset 0 1px 0 rgb(255 255 255 / .92); }.intake-title-icon .ui-icon, .dialog-heading-icon .ui-icon { width: 17px; height: 17px; filter: var(--icon-filter-active); }.dialog-heading { align-items: flex-start; }.dialog-heading-copy { display: flex; min-width: 0; align-items: flex-start; gap: 12px; }.dialog-heading-copy h2 { padding-top: 1px; }
.modal-close { border-color: rgb(255 255 255 / .84); background: rgb(255 255 255 / .62); box-shadow: inset 0 1px 0 rgb(255 255 255 / .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }.cheat-sheet-modal .cheat-sheet-list > div { border-color: rgb(96 110 117 / .13); }
@media (max-width: 767px) { .room-coach-page .room-section-bar, .room-page .room-section-bar { display: block; }.room-coach-page .room-section-links, .room-page .room-section-links { width: 100%; overflow: hidden; }.room-coach-page .room-section-tabs button, .room-page .room-section-tabs button { min-height: 36px; padding: 7px 9px; }.room-coach-page .room-section-links > .cheat-sheet-button, .room-page .room-section-links > .cheat-sheet-button { width: 38px; min-width: 38px; padding: 0; justify-content: center; }.room-coach-page .room-section-links > .cheat-sheet-button span:last-child, .room-page .room-section-links > .cheat-sheet-button span:last-child { display: none; }.modal-backdrop { align-items: end; padding: 12px; }.modal { width: min(100%, 680px); max-height: calc(100dvh - 24px); border-radius: 20px; overflow: auto; } }
@media (prefers-reduced-transparency: reduce) { .room-coach-page .room-section-links, .room-page .room-section-links, .modal, .room-intake, .modal-close { background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }.modal-backdrop { background: rgb(229 229 229 / 30%); backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* Every room tab uses the same calm content canvas as Coach. */
.room-page .room-section-content {
  border: 1px solid rgb(255 255 255 / .88);
  border-radius: 24px;
  background: rgb(255 255 255 / .82);
  padding: 18px 20px;
  box-shadow: 0 16px 34px rgb(57 83 97 / .08), inset 0 1px 0 rgb(255 255 255 / .96);
}
.room-page .brief-content { max-width: none; }
@media (max-width: 767px) {
  .room-page .room-section-content { border-radius: 20px; padding: 14px; }
}
@media (prefers-reduced-transparency: reduce) {
  .room-page .room-section-content { background: var(--white); }
}

/* Booking is centered on one counterpart, one date, and one available time. */
.booking-modal { width: min(760px, calc(100vw - 32px)); }.booking-counterpart { margin: 10px 10px 4px; border-color: rgb(255 255 255 / .78); border-radius: 18px; background: rgb(255 255 255 / .48); padding: 10px 12px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .82); }.booking-counterpart-avatar { width: 48px; height: 48px; flex: 0 0 auto; border: 2px solid rgb(255 255 255 / .90); border-radius: 50%; box-shadow: 0 4px 12px rgb(54 75 87 / .12); object-fit: cover; object-position: center top; }.booking-counterpart strong { color: var(--slate-2); font-size: 15px; }.booking-counterpart small { margin-top: 3px; color: var(--slate-4); }
.booking-calendar { margin: 12px 10px 0; max-height: min(41dvh, 350px); border-color: rgb(255 255 255 / .82); border-radius: 20px; background: rgb(255 255 255 / .46); padding: 10px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .88); }.booking-calendar-header { align-items: center; padding: 1px 4px 10px; }.booking-calendar-header h3 { color: var(--slate-2); font-size: 16px; font-weight: 500; }.booking-calendar-header > span { color: var(--slate-5); font-size: 12px; }.calendar-weekdays { border: 0; background: transparent; }.calendar-weekdays span { padding: 6px 4px 8px; color: var(--slate-5); font-size: 10px; letter-spacing: .04em; }
.calendar-grid { gap: 5px; background: transparent; }.calendar-blank, .calendar-day { min-height: 56px; border: 1px solid rgb(255 255 255 / .66); border-radius: 12px; background: rgb(255 255 255 / .62); }.calendar-blank { border-color: transparent; background: transparent; }.calendar-day { padding: 7px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .78); }.calendar-day:hover:not(:disabled) { border-color: rgb(120 35 220 / .22); background: rgb(255 255 255 / .92); }.calendar-day time { color: var(--slate-3); }.calendar-day small { color: var(--slate-5); font-size: 11px; }.calendar-day.is-unavailable { border-color: transparent; background: rgb(96 110 117 / .06); color: var(--slate-7); }.calendar-day.is-unavailable small { color: var(--slate-7); }.calendar-day.is-full { border-color: rgb(96 110 117 / .10); background: rgb(255 255 255 / .36); }.calendar-day.is-selected { border-color: rgb(120 35 220 / .34); background: linear-gradient(135deg, rgb(240 230 255 / .96), rgb(230 244 255 / .86)); box-shadow: 0 6px 14px rgb(120 35 220 / .10), inset 0 1px 0 rgb(255 255 255 / .96); }.calendar-day.is-selected time, .calendar-day.is-selected small { color: var(--purple-1); }
.booking-slot-region { margin: 12px 10px 0; border: 1px solid rgb(255 255 255 / .72); border-radius: 16px; background: rgb(255 255 255 / .48); box-shadow: inset 0 1px 0 rgb(255 255 255 / .82); }.booking-slot-region strong { color: var(--slate-2); }.booking-slot-region span { color: var(--slate-5); }.booking-modal > .modal-actions { margin-top: 12px; padding: 10px 10px 0; }
@media (max-width: 767px) { .booking-modal { width: calc(100vw - 16px); }.booking-counterpart, .booking-calendar, .booking-slot-region { margin-right: 2px; margin-left: 2px; }.booking-calendar { max-height: 38dvh; padding: 8px; }.calendar-grid { gap: 3px; }.calendar-day, .calendar-blank { min-height: 49px; border-radius: 9px; }.calendar-day { padding: 5px; }.calendar-day small { font-size: 10px; }.booking-modal > .modal-actions { padding-right: 2px; padding-left: 2px; } }

/* Keep the whole month visible: the dialog may scroll on very short screens, never the calendar. */
.booking-calendar { max-height: none; overflow: visible; }.booking-calendar-header { min-height: 26px; }.booking-calendar-header .calendar-month { color: var(--slate-2); font-size: 15px; font-weight: 500; }.calendar-day, .calendar-blank { min-height: 50px; }
@media (max-width: 767px) { .booking-calendar { max-height: none; }.calendar-day, .calendar-blank { min-height: 44px; } }

/* The room snapshot can contract to leave the coach thread as the main working surface. */
.room-header { transition: min-height 180ms ease, padding 180ms ease, gap 180ms ease; }
.room-header-toggle { position: absolute; z-index: 3; top: 10px; right: 10px; display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgb(255 255 255 / .76); border-radius: 10px; background: rgb(255 255 255 / .55); box-shadow: inset 0 1px 0 rgb(255 255 255 / .82); color: var(--slate-4); cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.room-header-toggle .ui-icon { width: 16px; height: 16px; filter: var(--icon-filter-default); }.room-header-toggle:hover { border-color: rgb(120 35 220 / .32); background: var(--white); color: var(--purple-1); }.room-header-toggle:hover .ui-icon { filter: var(--icon-filter-active); }
.room-coach-page .room-header.is-collapsed, .room-page .room-header.is-collapsed { grid-template-columns: minmax(0, 1fr) minmax(330px, 430px); min-height: 70px !important; gap: 18px; overflow: hidden; border: 1px solid rgb(255 255 255 / .82); border-radius: 18px; background: linear-gradient(110deg, rgb(255 255 255 / .75), rgb(235 244 255 / .52) 58%, rgb(244 235 255 / .54)); padding: 8px 48px 8px 10px; box-shadow: 0 10px 26px rgb(57 83 97 / .08), inset 0 1px 0 rgb(255 255 255 / .92); backdrop-filter: blur(18px) saturate(135%); -webkit-backdrop-filter: blur(18px) saturate(135%); }
.room-coach-page .room-header.is-collapsed::after, .room-page .room-header.is-collapsed::after { display: none; }
.room-coach-page .room-header.is-collapsed .room-header-copy, .room-page .room-header.is-collapsed .room-header-copy { display: flex; min-width: 0; align-items: center; gap: 10px; }.room-coach-page .room-header.is-collapsed .room-mode, .room-page .room-header.is-collapsed .room-mode, .room-coach-page .room-header.is-collapsed .room-last-refreshed, .room-page .room-header.is-collapsed .room-last-refreshed { display: none; }.room-coach-page .room-header.is-collapsed .room-title, .room-page .room-header.is-collapsed .room-title { overflow: hidden; color: var(--slate-2); font-size: 18px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }.room-coach-page .room-header.is-collapsed .room-context-row, .room-page .room-header.is-collapsed .room-context-row { min-width: 0; flex-wrap: nowrap; }.room-coach-page .room-header.is-collapsed .pill, .room-page .room-header.is-collapsed .pill { min-height: 26px; white-space: nowrap; }
.room-coach-page .room-header.is-collapsed .room-header-chair, .room-page .room-header.is-collapsed .room-header-chair { display: grid; min-height: 44px !important; grid-template-columns: 44px minmax(0, 1fr); overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }.room-coach-page .room-header.is-collapsed .room-header-avatar, .room-page .room-header.is-collapsed .room-header-avatar { width: 44px; min-height: 44px !important; height: 44px; align-self: center !important; margin: 0; border-radius: 50%; }.room-coach-page .room-header.is-collapsed .room-header-chair-content, .room-page .room-header.is-collapsed .room-header-chair-content { display: grid !important; min-height: 44px; grid-template-columns: minmax(0, 1fr) auto !important; grid-template-rows: 44px !important; align-items: center; gap: 10px; padding: 0 0 0 10px; }.room-coach-page .room-header.is-collapsed .room-header-persona, .room-page .room-header.is-collapsed .room-header-persona { gap: 1px; }.room-coach-page .room-header.is-collapsed .room-header-persona strong, .room-page .room-header.is-collapsed .room-header-persona strong { font-size: 14px; }.room-coach-page .room-header.is-collapsed .room-header-persona span, .room-page .room-header.is-collapsed .room-header-persona span { display: none; }.room-coach-page .room-header.is-collapsed .room-header-rehearsal, .room-page .room-header.is-collapsed .room-header-rehearsal { display: contents !important; }.room-coach-page .room-header.is-collapsed .room-header-schedule, .room-page .room-header.is-collapsed .room-header-schedule { display: none; }.room-coach-page .room-header.is-collapsed .room-header-actions, .room-page .room-header.is-collapsed .room-header-actions { display: block !important; width: auto; min-width: 128px; grid-column: 2; grid-row: 1; }.room-coach-page .room-header.is-collapsed .room-header-actions .button, .room-page .room-header.is-collapsed .room-header-actions .button { min-height: 38px; }.room-coach-page .room-header.is-collapsed .room-header-actions .button:nth-child(2), .room-page .room-header.is-collapsed .room-header-actions .button:nth-child(2) { display: none; }
@media (max-width: 767px) { .room-header-toggle { top: 8px; right: 8px; }.room-coach-page .room-header.is-collapsed, .room-page .room-header.is-collapsed { grid-template-columns: 1fr; min-height: 112px !important; gap: 8px; padding: 8px 44px 8px 10px; }.room-coach-page .room-header.is-collapsed .room-header-copy, .room-page .room-header.is-collapsed .room-header-copy { min-height: 34px; gap: 8px; }.room-coach-page .room-header.is-collapsed .room-title, .room-page .room-header.is-collapsed .room-title { font-size: 16px; }.room-coach-page .room-header.is-collapsed .room-header-chair, .room-page .room-header.is-collapsed .room-header-chair { min-height: 40px !important; grid-template-columns: 38px minmax(0, 1fr); }.room-coach-page .room-header.is-collapsed .room-header-avatar, .room-page .room-header.is-collapsed .room-header-avatar { width: 38px; min-height: 38px !important; height: 38px; }.room-coach-page .room-header.is-collapsed .room-header-chair-content, .room-page .room-header.is-collapsed .room-header-chair-content { min-height: 40px; grid-template-rows: 40px !important; padding-left: 8px !important; }.room-coach-page .room-header.is-collapsed .room-header-actions, .room-page .room-header.is-collapsed .room-header-actions { min-width: 116px; }.room-coach-page .room-header.is-collapsed .room-header-actions .button, .room-page .room-header.is-collapsed .room-header-actions .button { min-height: 36px; padding-right: 10px; padding-left: 10px; } }
@media (prefers-reduced-motion: reduce) { .room-header { transition: none; } }
@media (prefers-reduced-transparency: reduce) { .room-coach-page .room-header.is-collapsed, .room-page .room-header.is-collapsed, .room-header-toggle { background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* Collapsed profile: retain a useful counterpart snapshot rather than reducing it to an avatar chip. */
.room-coach-page .room-header.is-collapsed, .room-page .room-header.is-collapsed { grid-template-columns: minmax(0, 1fr) minmax(400px, 500px); min-height: 84px !important; }
.room-coach-page .room-header.is-collapsed .room-header-chair, .room-page .room-header.is-collapsed .room-header-chair { min-height: 68px !important; grid-template-columns: 64px minmax(0, 1fr); column-gap: 0; }
.room-coach-page .room-header.is-collapsed .room-header-avatar, .room-page .room-header.is-collapsed .room-header-avatar { width: 64px; min-height: 68px !important; height: 68px; border-radius: 16px; object-fit: cover; object-position: center top; }
.room-coach-page .room-header.is-collapsed .room-header-chair-content, .room-page .room-header.is-collapsed .room-header-chair-content { min-height: 68px; grid-template-columns: minmax(0, 1fr) 136px !important; grid-template-rows: minmax(0, 1fr) 20px !important; column-gap: 14px; row-gap: 0; padding-left: 12px !important; }
.room-coach-page .room-header.is-collapsed .room-header-persona, .room-page .room-header.is-collapsed .room-header-persona { grid-column: 1; grid-row: 1; display: grid; align-content: end; gap: 2px; }.room-coach-page .room-header.is-collapsed .room-header-persona strong, .room-page .room-header.is-collapsed .room-header-persona strong { font-size: 15px; line-height: 1.2; }.room-coach-page .room-header.is-collapsed .room-header-persona span, .room-page .room-header.is-collapsed .room-header-persona span { display: block; overflow: hidden; color: var(--slate-5); font-size: 11px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.room-coach-page .room-header.is-collapsed .room-header-schedule, .room-page .room-header.is-collapsed .room-header-schedule { display: inline-flex; grid-column: 1; grid-row: 2; min-width: 0; gap: 5px; color: var(--slate-4); font-size: 11px; white-space: nowrap; }.room-coach-page .room-header.is-collapsed .room-header-schedule .ui-icon, .room-page .room-header.is-collapsed .room-header-schedule .ui-icon { width: 12px; height: 12px; filter: var(--icon-filter-active); }.room-coach-page .room-header.is-collapsed .room-header-schedule > span, .room-page .room-header.is-collapsed .room-header-schedule > span { overflow: hidden; text-overflow: ellipsis; }
.room-coach-page .room-header.is-collapsed .room-header-actions, .room-page .room-header.is-collapsed .room-header-actions { min-width: 136px; grid-column: 2; grid-row: 1 / span 2; align-self: center; }.room-coach-page .room-header.is-collapsed .room-header-actions .button, .room-page .room-header.is-collapsed .room-header-actions .button { min-height: 44px; }
@media (max-width: 767px) { .room-coach-page .room-header.is-collapsed, .room-page .room-header.is-collapsed { grid-template-columns: 1fr; min-height: 132px !important; }.room-coach-page .room-header.is-collapsed .room-header-chair, .room-page .room-header.is-collapsed .room-header-chair { min-height: 68px !important; grid-template-columns: 58px minmax(0, 1fr); }.room-coach-page .room-header.is-collapsed .room-header-avatar, .room-page .room-header.is-collapsed .room-header-avatar { width: 58px; min-height: 68px !important; height: 68px; border-radius: 14px; }.room-coach-page .room-header.is-collapsed .room-header-chair-content, .room-page .room-header.is-collapsed .room-header-chair-content { min-height: 68px; grid-template-columns: minmax(0, 1fr) 116px !important; padding-left: 10px !important; }.room-coach-page .room-header.is-collapsed .room-header-actions, .room-page .room-header.is-collapsed .room-header-actions { min-width: 116px; }.room-coach-page .room-header.is-collapsed .room-header-actions .button, .room-page .room-header.is-collapsed .room-header-actions .button { min-height: 40px; padding-right: 9px; padding-left: 9px; margin-left: 15px; } }

/* Glass rail refinement: one baseline and consistently frosted sections. */
.room-coach-page .room-section-links, .room-page .room-section-links { position: relative; min-height: 58px; gap: 9px; overflow: hidden; border-color: rgb(255 255 255 / .92); background: linear-gradient(112deg, rgb(255 255 255 / .94), rgb(230 244 255 / .72) 52%, rgb(244 235 255 / .82)); padding: 7px 7px 13px; box-shadow: 0 14px 32px rgb(57 83 97 / .10), inset 0 1px 0 rgb(255 255 255 / .98); }
.room-coach-page .room-section-links::before, .room-page .room-section-links::before { position: absolute; inset: 1px 1px auto; height: 52%; border-radius: inherit; background: linear-gradient(90deg, rgb(255 255 255 / .46), transparent 58%); content: ""; pointer-events: none; }.room-coach-page .room-section-links::after, .room-page .room-section-links::after { position: absolute; right: 14px; bottom: 6px; left: 14px; height: 0px; background: rgb(96 110 117 / .16); content: ""; pointer-events: none; }
.room-section-tabs { position: relative; z-index: 1; gap: 6px; overflow: visible; }.room-coach-page .room-section-tabs button, .room-page .room-section-tabs button { min-height: 40px; border-color: rgb(255 255 255 / .48); background: rgb(255 255 255 / .32); padding: 8px 12px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .66); backdrop-filter: blur(12px) saturate(130%); -webkit-backdrop-filter: blur(12px) saturate(130%); }.room-coach-page .room-section-tabs button:hover, .room-page .room-section-tabs button:hover { border-color: rgb(255 255 255 / .82); background: rgb(255 255 255 / .62); }
.room-coach-page .room-section-tabs .room-section-icon, .room-page .room-section-tabs .room-section-icon { width: 26px; height: 26px; border: 1px solid rgb(255 255 255 / .52); box-shadow: inset 0 1px 0 rgb(255 255 255 / .70); }.room-coach-page .room-section-tabs button[aria-selected="true"], .room-page .room-section-tabs button[aria-selected="true"] { border-color: rgb(120 35 220 / .22); background: rgb(255 255 255 / .82); box-shadow: 0 7px 16px rgb(55 87 102 / .10), inset 0 1px 0 rgb(255 255 255 / .94); }.room-coach-page .room-section-tabs button[aria-selected="true"]::after, .room-page .room-section-tabs button[aria-selected="true"]::after { right: 12px; bottom: -2px; left: 12px; z-index: 2; height: 3px; box-shadow: 0 1px 6px rgb(120 35 220 / .30); }
.room-coach-page .room-section-links > .cheat-sheet-button, .room-page .room-section-links > .cheat-sheet-button { position: relative; z-index: 1; min-height: 40px; height: 40px; border-color: rgb(255 255 255 / .58); background: rgb(247 242 255 / .64); padding: 8px 12px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .76); backdrop-filter: blur(12px) saturate(130%); -webkit-backdrop-filter: blur(12px) saturate(130%); }
@media (max-width: 767px) { .room-coach-page .room-section-links, .room-page .room-section-links { min-height: 56px; padding: 7px 6px 11px; }.room-section-tabs { overflow-x: auto; }.room-coach-page .room-section-tabs button, .room-page .room-section-tabs button { min-height: 38px; padding: 7px 10px; }.room-coach-page .room-section-links > .cheat-sheet-button, .room-page .room-section-links > .cheat-sheet-button { min-height: 38px; height: 38px; }.room-coach-page .room-section-tabs button[aria-selected="true"]::after, .room-page .room-section-tabs button[aria-selected="true"]::after { bottom: -10px; } }
@media (prefers-reduced-transparency: reduce) { .room-coach-page .room-section-links, .room-page .room-section-links { background: var(--white); }.room-coach-page .room-section-tabs button, .room-page .room-section-tabs button, .room-coach-page .room-section-links > .cheat-sheet-button, .room-page .room-section-links > .cheat-sheet-button { background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* A paused room stays legible, and explains the simple path back to an active coaching thread. */
.room-coach-page .room-reactivation-guide { display: flex; min-height: 42px; flex: 0 0 auto; align-items: center; gap: 9px; border: 1px solid rgb(255 255 255 / .76); border-radius: 14px; background: linear-gradient(105deg, rgb(255 255 255 / .76), rgb(246 239 255 / .58)); padding: 8px 11px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .88); color: var(--slate-4); }.room-reactivation-guide.is-archived { background: linear-gradient(105deg, rgb(255 255 255 / .76), rgb(240 244 247 / .60)); }.room-reactivation-icon { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: rgb(230 210 250 / .58); }.room-reactivation-guide.is-archived .room-reactivation-icon { background: var(--slate-11); }.room-reactivation-icon .ui-icon { width: 14px; height: 14px; filter: var(--icon-filter-active); }.room-reactivation-guide.is-archived .room-reactivation-icon .ui-icon { filter: var(--icon-filter-default); }.room-reactivation-guide p { display: flex; min-width: 0; flex-wrap: wrap; align-items: baseline; gap: 3px 7px; margin: 0; font-size: 12px; line-height: 1.35; }.room-reactivation-guide strong { color: var(--slate-2); font-weight: 500; }.room-reactivation-guide p span { color: var(--slate-5); }
@media (max-width: 767px) { .room-coach-page .room-reactivation-guide { align-items: flex-start; padding: 8px 10px; }.room-reactivation-guide p { display: grid; gap: 1px; } }
@media (prefers-reduced-transparency: reduce) { .room-coach-page .room-reactivation-guide, .room-reactivation-guide.is-archived { background: var(--white); } }

/* Rehearsal studio: a contained, full-height media workspace with a quiet coaching rail. */
.rehearsal-shell { height: 100dvh; min-height: 0; overflow: hidden; }.rehearsal-frame { height: calc(100dvh - 36px); min-height: 0; overflow: hidden; }.rehearsal { display: grid; height: 100%; min-height: 0; grid-template-rows: 64px minmax(0, 1fr) 72px; overflow: hidden; background: radial-gradient(62rem 38rem at 8% -18%, rgb(163 219 241 / .34), transparent 62%), radial-gradient(44rem 38rem at 100% 116%, rgb(221 196 249 / .28), transparent 62%), #132733; color: #eff8f7; }
.rehearsal-top { position: relative; z-index: 2; display: flex; min-height: 0; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid rgb(255 255 255 / .12); background: rgb(12 31 42 / .54); padding: 10px clamp(16px, 2.5vw, 32px); backdrop-filter: blur(18px) saturate(125%); -webkit-backdrop-filter: blur(18px) saturate(125%); }.rehearsal-top-left, .rehearsal-top-right { display: flex; min-width: 0; align-items: center; gap: 12px; }.rehearsal-exit { display: inline-flex; min-height: 36px; align-items: center; gap: 6px; border: 1px solid rgb(255 255 255 / .16); border-radius: 10px; background: rgb(255 255 255 / .05); padding: 7px 10px; color: #d9e9e7; font-size: 12px; font-weight: 500; }.rehearsal-exit .ui-icon { width: 15px; height: 15px; filter: var(--icon-filter-inverse); }.rehearsal-exit:hover { border-color: rgb(255 255 255 / .32); background: rgb(255 255 255 / .11); }.rehearsal-room-meta { min-width: 0; }.rehearsal-title { overflow: hidden; margin: 0; color: #f4fbfa; font-size: 14px; font-weight: 500; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }.rehearsal-sub { margin: 3px 0 0; color: #afc4c8; font-size: 11px; line-height: 1.2; }.live-indicator { min-height: 24px; border-radius: 8px; background: rgb(25 155 141 / .18); padding: 0 8px; color: #bdeee4; font-size: 11px; letter-spacing: 0; }.live-indicator::before { width: 5px; height: 5px; margin-right: 5px; background: #58cdbd; box-shadow: none; }.live-indicator.is-paused { background: rgb(255 255 255 / .08); color: #b9c6cb; }.rehearsal-timer { display: grid; gap: 1px; color: #f0f9f8; font-size: 16px; font-weight: 500; line-height: 1; text-align: right; }.rehearsal-timer small { color: #a8c0c4; font-size: 10px; font-weight: 400; }
.rehearsal-grid { position: relative; z-index: 1; display: grid; min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(286px, .38fr); gap: 14px; overflow: hidden; padding: 14px; }.rehearsal-stage { position: relative; display: block; min-height: 0; overflow: hidden; border: 1px solid rgb(255 255 255 / .14); border-radius: 22px; background: #172a35; box-shadow: 0 20px 44px rgb(5 19 27 / .28), inset 0 1px 0 rgb(255 255 255 / .13); }.rehearsal-stage::before, .rehearsal-stage::after, .stage-wash, .rehearsal-stage-top, .stage-presence, .counterparty, .rehearsal-privacy, .live-line { display: none; }.rehearsal-media { position: absolute; inset: 0; overflow: hidden; background: #1d303c; }.rehearsal-agent-poster, .rehearsal-agent-video, .rehearsal-agent-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }.rehearsal-agent-poster, .rehearsal-agent-video { object-fit: cover; object-position: center top; }.rehearsal-agent-video:not([src]) { display: none; }.rehearsal-agent-poster { filter: saturate(.82) contrast(1.02); }.rehearsal-agent-fallback { display: grid; place-items: center; background: linear-gradient(135deg, #233947, #172733); color: rgb(255 255 255 / .68); font-size: clamp(48px, 12vw, 120px); font-weight: 500; }.rehearsal-media::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(7 18 26 / .06) 36%, rgb(7 18 26 / .68) 100%); content: ""; pointer-events: none; }.rehearsal-stage.is-paused .rehearsal-media { filter: saturate(.45) brightness(.7); }.rehearsal-stage.is-speaking { box-shadow: 0 0 0 1px rgb(120 35 220 / .42), 0 20px 44px rgb(5 19 27 / .28), inset 0 0 20px rgb(88 205 189 / .14); }
.rehearsal-lower-third { position: absolute; z-index: 1; bottom: 70px; left: 22px; max-width: min(74%, 460px); border-left: 2px solid rgb(193 151 241 / .86); padding-left: 10px; text-shadow: 0 1px 12px rgb(0 0 0 / .48); }.rehearsal-lower-third h1 { margin: 0; color: #fff; font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }.rehearsal-lower-third p { margin: 5px 0 0; color: rgb(239 248 247 / .78); font-size: 12px; }.rehearsal-caption-strip { position: absolute; z-index: 1; right: 14px; bottom: 14px; left: 14px; display: flex; min-height: 42px; align-items: center; gap: 8px; border: 1px solid rgb(255 255 255 / .16); border-radius: 12px; background: rgb(10 27 37 / .45); padding: 8px 10px; color: #ebf5f3; box-shadow: inset 0 1px 0 rgb(255 255 255 / .12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }.rehearsal-caption-strip .ui-icon { width: 15px; height: 15px; flex: 0 0 auto; filter: var(--icon-filter-inverse); }.rehearsal-caption-strip p { margin: 0; font-size: 12px; line-height: 1.35; }.rehearsal-caption-strip.is-muted { color: #aabcc0; }
.rehearsal-insight { position: relative; z-index: 1; display: flex; min-height: 0; flex-direction: column; overflow: hidden; border: 1px solid rgb(255 255 255 / .42); border-radius: 22px; background: rgb(255 255 255 / .70); padding: 18px; box-shadow: 0 16px 34px rgb(7 30 40 / .14), inset 0 1px 0 rgb(255 255 255 / .9); color: var(--slate-3); backdrop-filter: blur(18px) saturate(125%); -webkit-backdrop-filter: blur(18px) saturate(125%); }.rehearsal-panel-heading > div > span { color: var(--purple-1); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }.rehearsal-panel-heading h2 { margin: 4px 0 0; color: var(--slate-2); font-size: 18px; font-weight: 500; letter-spacing: -.03em; }.live-note { margin-top: 14px; border: 0; border-left: 2px solid rgb(120 35 220 / .42); border-radius: 0; background: transparent; padding: 1px 0 1px 10px; }.live-note-positive { border-left-color: rgb(22 179 171 / .76); }.live-note span { color: var(--slate-5); font-size: 11px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; }.live-note p { margin: 4px 0 0; color: var(--slate-3); font-size: 12px; line-height: 1.45; }.transcript-heading { flex: 0 0 auto; margin-top: 18px; border-top: 1px solid rgb(96 110 117 / .14); padding-top: 14px; }.transcript-heading h2 { color: var(--slate-2); font-size: 12px; font-weight: 500; }.transcript-heading span { color: var(--slate-5); font-size: 11px; }.live-transcript { display: grid; min-height: 0; flex: 1 1 auto; gap: 12px; max-height: none; overflow-y: auto; margin-top: 10px; padding-right: 4px; scrollbar-color: rgb(96 110 117 / .35) transparent; }.live-transcript > div { padding-bottom: 11px; border-bottom: 1px solid rgb(96 110 117 / .10); }.live-transcript > div:last-child { border-bottom: 0; }.live-transcript .speaker { color: var(--purple-1); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }.live-transcript p { margin: 3px 0 0; color: var(--slate-3); font-size: 12px; line-height: 1.45; }.live-transcript.is-muted { opacity: .48; }
.rehearsal-controls { position: relative; z-index: 2; display: flex; min-height: 0; align-items: center; justify-content: center; gap: 8px; border-top: 1px solid rgb(255 255 255 / .12); background: rgb(12 31 42 / .66); padding: 10px 16px; backdrop-filter: blur(18px) saturate(125%); -webkit-backdrop-filter: blur(18px) saturate(125%); }.call-control { display: inline-flex; min-width: 102px; min-height: 44px; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgb(255 255 255 / .19); border-radius: 12px; background: rgb(255 255 255 / .07); padding: 9px 12px; color: #e1edeb; font-size: 12px; font-weight: 500; }.call-control .ui-icon { width: 16px; height: 16px; filter: var(--icon-filter-inverse); }.call-control:hover { border-color: rgb(255 255 255 / .38); background: rgb(255 255 255 / .14); transform: none; }.call-control[aria-pressed="true"] { border-color: rgb(120 35 220 / .70); background: rgb(120 35 220 / .18); }.call-control-end { min-width: 126px; border-color: rgb(255 142 139 / .54); background: rgb(195 63 51 / .34); color: #ffe2df; }.call-control-end:hover { border-color: rgb(255 176 170 / .78); background: rgb(195 63 51 / .50); }.rehearsal-exit:focus-visible, .call-control:focus-visible { outline: 3px solid var(--purple-9); outline-offset: 3px; }
@media (max-width: 1023px) { .rehearsal-grid { grid-template-columns: 1fr; grid-template-rows: minmax(210px, .8fr) minmax(270px, 1.2fr); }.rehearsal-insight { min-height: 0; padding: 14px; }.rehearsal-panel-heading h2 { display: none; }.live-note { margin-top: 10px; }.live-note p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 11px; line-height: 1.35; }.transcript-heading { margin-top: 12px; padding-top: 10px; }.rehearsal-lower-third { bottom: 66px; } }
@media (max-width: 767px) { .rehearsal-shell, .rehearsal-frame { height: 100dvh; }.rehearsal { grid-template-rows: 58px minmax(0, 1fr) 66px; }.rehearsal-top { gap: 10px; padding: 9px 10px; }.rehearsal-exit { min-width: 36px; padding: 8px; }.rehearsal-exit span { display: none; }.rehearsal-top-left { gap: 8px; }.rehearsal-title { max-width: 42vw; font-size: 12px; }.rehearsal-sub { font-size: 10px; }.live-indicator { display: none; }.rehearsal-timer { font-size: 14px; }.rehearsal-grid { gap: 8px; grid-template-rows: minmax(175px, .72fr) minmax(275px, 1.28fr); padding: 8px; }.rehearsal-stage, .rehearsal-insight { border-radius: 16px; }.rehearsal-lower-third { bottom: 61px; left: 14px; }.rehearsal-lower-third h1 { font-size: 18px; }.rehearsal-lower-third p { font-size: 11px; }.rehearsal-caption-strip { right: 8px; bottom: 8px; left: 8px; min-height: 40px; border-radius: 10px; padding: 7px 8px; }.rehearsal-caption-strip p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 11px; }.rehearsal-insight { padding: 13px; }.rehearsal-panel-heading h2 { font-size: 16px; }.live-note { margin-top: 9px; }.live-note p { font-size: 11px; }.transcript-heading { margin-top: 12px; padding-top: 10px; }.live-transcript { gap: 8px; margin-top: 7px; }.live-transcript > div { padding-bottom: 7px; }.live-transcript p { font-size: 11px; }.rehearsal-controls { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; padding: 8px; }.call-control, .call-control-end { min-width: 0; min-height: 44px; gap: 3px; padding: 6px 3px; font-size: 9px; white-space: normal; }.call-control .ui-icon { width: 14px; height: 14px; }.call-control-end span { max-width: 58px; } }
@media (prefers-reduced-motion: reduce) { .rehearsal-stage, .rehearsal-media, .call-control { transition: none; } }
@media (prefers-reduced-transparency: reduce) { .rehearsal-top, .rehearsal-controls { background: #102633; backdrop-filter: none; -webkit-backdrop-filter: none; }.rehearsal-insight { background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }.rehearsal-caption-strip { background: rgb(12 31 42 / .92); backdrop-filter: none; -webkit-backdrop-filter: none; } }

@media (max-width: 767px) { .rehearsal-controls .call-control { flex-direction: column; gap: 1px; }.rehearsal-controls .call-control span { display: block; max-width: 60px; font-size: 9px; line-height: 1.05; text-align: center; } }

/* Dormant rooms use coral to distinguish paused work from active and archived rooms. */
.pill.status-dormant { background: color-mix(in srgb, var(--coral) 12%, var(--white)); color: var(--coral); }
.rail-lifecycle-group[data-rail-group="Dormant"] .rail-lifecycle-title { color: var(--coral); }
.rail-lifecycle-group[data-rail-group="Dormant"] .rail-lifecycle-heading > b,
.rail-lifecycle-group[data-rail-group="Dormant"] .room-rail-item:not(.is-active) > .rail-glyph { background: color-mix(in srgb, var(--coral) 12%, var(--white)); color: var(--coral); }

/* Lifecycle navigation: clear state colours and literal play, pause, and archive cues. */
:root { --icon-filter-coral: invert(46%) sepia(93%) saturate(2134%) hue-rotate(305deg) brightness(102%) contrast(102%); }
#rooms-heading { font-size: clamp(1.85rem, 3vw, 2.7rem); line-height: 1.4; }
.rail-lifecycle-group[data-rail-group="Active"] .rail-lifecycle-title { color: var(--purple-1); }
.rail-lifecycle-group[data-rail-group="Active"] .rail-lifecycle-title .ui-icon { filter: var(--icon-filter-active); }
.rail-lifecycle-group[data-rail-group="Active"] .rail-lifecycle-heading > b,
.rail-lifecycle-group[data-rail-group="Active"] .room-rail-item:not(.is-active) > .rail-glyph { background: var(--purple-9); color: var(--purple-1); }
.rail-lifecycle-group[data-rail-group="Dormant"] .rail-lifecycle-title { color: var(--coral); }
.rail-lifecycle-group[data-rail-group="Dormant"] .rail-lifecycle-title .ui-icon { filter: var(--icon-filter-coral); }
.rail-lifecycle-group[data-rail-group="Dormant"] .rail-lifecycle-heading > b,
.rail-lifecycle-group[data-rail-group="Dormant"] .room-rail-item:not(.is-active) > .rail-glyph { background: color-mix(in srgb, var(--coral) 12%, var(--white)); color: var(--coral); }
.rail-lifecycle-group[data-rail-group="Archived"] .rail-lifecycle-title { color: var(--slate-5); }
.rail-lifecycle-group[data-rail-group="Archived"] .rail-lifecycle-title .ui-icon { filter: var(--icon-filter-disabled); }
.rail-lifecycle-group[data-rail-group="Archived"] .rail-lifecycle-heading > b,
.rail-lifecycle-group[data-rail-group="Archived"] .room-rail-item:not(.is-active) > .rail-glyph { background: var(--slate-11); color: var(--slate-5); }
.rail-lifecycle-group[data-rail-group="Dormant"] .room-rail-item.is-active,
.rail-lifecycle-group[data-rail-group="Archived"] .room-rail-item.is-active { color: var(--slate-1); }
.rail-lifecycle-group[data-rail-group="Dormant"] .room-rail-item.is-active { background: color-mix(in srgb, var(--coral) 8%, var(--white)); box-shadow: inset 3px 0 0 var(--coral); }
.rail-lifecycle-group[data-rail-group="Dormant"] .room-rail-item.is-active > .rail-glyph { background: var(--coral); color: var(--white); }
.rail-lifecycle-group[data-rail-group="Archived"] .room-rail-item.is-active { background: var(--slate-11); box-shadow: inset 3px 0 0 var(--slate-5); }
.rail-lifecycle-group[data-rail-group="Archived"] .room-rail-item.is-active > .rail-glyph { background: var(--slate-5); color: var(--white); }

/* Rail collapse keeps the full brand and the control in fixed, opposing positions. */
.workspace-shell { transition: grid-template-columns 280ms cubic-bezier(.2, .75, .25, 1); }
.rail { transition: padding 280ms cubic-bezier(.2, .75, .25, 1), background-color 220ms ease, border-color 220ms ease; }
.rail-topline { display: flex; min-height: 40px; align-items: center; justify-content: space-between !important; margin: 0 0 12px; }
.rail-brand-button { position: relative; display: flex; min-width: 0; height: 40px; align-items: center; border: 0; border-radius: 8px; background: transparent; padding: 0; transition: background-color 180ms ease, transform 180ms ease; }
.rail-brand-logo { display: block; width: 112px; height: 28px; object-fit: contain; object-position: left center; transition: opacity 180ms ease, transform 240ms cubic-bezier(.2, .75, .25, 1); }
.rail-brand-icon { display: none; width: 28px; height: 28px; object-fit: contain; }
.rail-brand-button:hover, .rail-brand-button:focus-visible { background: var(--slate-11); transform: translateY(-1px); }
.rail-collapse-toggle { transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease; }
.rail-collapse-toggle .ui-icon { transition: filter 180ms ease, transform 280ms cubic-bezier(.2, .75, .25, 1); }
.rail.is-collapsed .rail-collapse-toggle .ui-icon { transform: rotate(180deg); }
@media (min-width: 1024px) { .topbar .mobile-brand-lockup { display: none; }.topbar { justify-content: flex-end; }.rail-collapse-tooltip { position: absolute; z-index: 6; top: 50%; right: calc(100% + 8px); display: inline-flex; align-items: center; gap: 7px; width: max-content; border: 1px solid rgb(255 255 255 / .14); border-radius: 8px; background: rgb(33 35 37 / .96); padding: 7px 8px 7px 10px; box-shadow: 0 8px 18px rgb(30 30 30 / .18); color: var(--white); font-size: 12px; font-weight: 500; opacity: 0; pointer-events: none; transform: translate(4px, -50%); transition: opacity 160ms ease, transform 160ms ease; }.rail-collapse-tooltip kbd { border: 1px solid rgb(255 255 255 / .18); border-radius: 4px; background: rgb(255 255 255 / .14); padding: 2px 5px; color: var(--white); font-family: var(--font-sans); font-size: 11px; font-weight: 500; }.rail-collapse-toggle:hover .rail-collapse-tooltip, .rail-collapse-toggle:focus-visible .rail-collapse-tooltip { opacity: 1; transform: translate(0, -50%); }.rail.is-collapsed .rail-topline { position: relative; justify-content: flex-start !important; margin-inline: 0; }.rail.is-collapsed .rail-brand-button { width: 44px; height: 44px; }.rail.is-collapsed .rail-brand-logo { position: absolute; opacity: 0; pointer-events: none; transform: scale(.92); }.rail.is-collapsed .rail-brand-icon { display: block; }.rail.is-collapsed .rail-collapse-toggle { position: absolute; top: 0; right: 0; width: 32px; min-width: 44px; height: 44px; min-height: 44px; opacity: 0; pointer-events: none; transform: translateX(-4px); }.rail.is-collapsed .rail-topline:hover .rail-collapse-toggle, .rail.is-collapsed .rail-collapse-toggle:focus-visible, .rail.is-collapsed .rail-brand-button:focus-visible + .rail-collapse-toggle { opacity: 1; pointer-events: auto; transform: translateX(0); }.rail.is-collapsed .rail-collapse-tooltip { right: auto; left: calc(100% + 8px); transform: translate(-4px, -50%); }.rail.is-collapsed .rail-collapse-toggle:hover .rail-collapse-tooltip, .rail.is-collapsed .rail-collapse-toggle:focus-visible .rail-collapse-tooltip { transform: translate(0, -50%); } }
@media (max-width: 1023px) { .rail-collapse-tooltip { display: none; } }
@media (prefers-reduced-motion: reduce) { .workspace-shell, .rail, .rail-brand-button, .rail-collapse-toggle, .rail-collapse-toggle .ui-icon { transition: none; } }

/* Inactive rooms can be explored freely; the activation prompt is brief and dismissible. */
.room-reactivation-guide { position: relative; min-height: 48px !important; padding-right: 42px !important; }
.room-reactivation-close { position: absolute; top: 50%; right: 8px; display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--slate-5); font-size: 19px; line-height: 1; transform: translateY(-50%); transition: background-color 160ms ease, color 160ms ease; }
.room-reactivation-close:hover, .room-reactivation-close:focus-visible { background: rgb(255 255 255 / .72); color: var(--slate-1); }

/* The rail owns account actions on desktop; the top bar remains their compact mobile home. */
.rail { display: flex; min-height: calc(100dvh - 108px); flex-direction: column; }
.rail-account { margin-top: auto; border-top: 1px solid color-mix(in srgb, var(--slate-9) 70%, transparent); padding-top: 14px; }
.rail-account-actions { display: grid; grid-template-columns: 38px 42px minmax(0, 1fr); gap: 7px; }
.rail-account .notifications, .rail-account .tier-control, .rail-account .user-menu { min-width: 0; }
.rail-account .notifications-toggle, .rail-account .user-tier-badge, .rail-account .user-control { width: 100%; min-height: 38px; }
.rail-account .user-tier-badge { width: 38px; height: 38px; }
.rail-account .user-control { justify-content: flex-start; border: 1px solid transparent; border-radius: 10px; padding: 0 8px; }
.user-control-avatar { display: none; }
.rail-account .user-control:hover, .rail-account .user-control:focus-visible { border-color: color-mix(in srgb, var(--purple-1) 20%, var(--slate-9)); background: rgb(255 255 255 / .62); }
.rail-account .notifications-panel, .rail-account .tier-performance-popover, .rail-account .user-menu-panel { top: auto; right: auto; bottom: calc(100% + 10px); left: 0; }
.rail-account .tier-performance-popover { transform-origin: bottom left; }
@media (min-width: 1024px) { .topbar-account { display: none; } }

/* Collapsed-rail identity: the K is replaced in place by the expand control on intent. */
@media (min-width: 1024px) {
  .rail.is-collapsed .rail-topline:hover .rail-brand-icon, .rail.is-collapsed .rail-topline:focus-within .rail-brand-icon { opacity: 0; transform: scale(.72); }
  .rail.is-collapsed .rail-brand-icon { transition: opacity 180ms ease, transform 220ms cubic-bezier(.2, .75, .25, 1); }
  .rail.is-collapsed .rail-collapse-toggle { right: auto; left: 0; transform: scale(.72); }
  .rail.is-collapsed .rail-topline:hover .rail-collapse-toggle, .rail.is-collapsed .rail-collapse-toggle:focus-visible, .rail.is-collapsed .rail-brand-button:focus-visible + .rail-collapse-toggle { transform: scale(1); }
  .rail.is-collapsed .rail-account { display: grid; justify-items: center; padding-top: 12px; }
  .rail.is-collapsed .rail-account-actions { grid-template-columns: 38px; gap: 10px; }
  .rail.is-collapsed .rail-account .user-control { width: 38px; justify-content: center; padding: 0; }
  .rail.is-collapsed .rail-account .user-control-name { display: none; }
  .rail.is-collapsed .rail-account .user-control-avatar { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: var(--slate-11); color: var(--slate-3); font-size: 10px; font-weight: 500; }
  .rail.is-collapsed .rail-account .notifications-panel, .rail.is-collapsed .rail-account .tier-performance-popover, .rail.is-collapsed .rail-account .user-menu-panel { bottom: 0; left: calc(100% + 12px); }
}

/* Brief materials are grouped by audience, not buried in a single undifferentiated list. */
.brief-content .source-material { margin-top: 22px; }
.brief-content .material-library { border-top: 0; padding-top: 0; }
.brief-content .material-library-heading { margin-bottom: 16px; }
.brief-content .material-library-heading h2 { margin: 0; color: var(--slate-2); font-size: 20px; font-weight: 500; letter-spacing: -.035em; }
.brief-content .material-library-heading p { margin: 4px 0 0; color: var(--slate-4); font-size: 13px; }
.material-groups { display: grid; gap: 14px; }
.material-group { border: 1px solid rgb(255 255 255 / .78); border-radius: 16px; background: linear-gradient(135deg, rgb(255 255 255 / .75), rgb(241 246 255 / .58)); padding: 16px; box-shadow: 0 12px 28px rgb(62 92 109 / .08), inset 0 1px 0 rgb(255 255 255 / .86); backdrop-filter: blur(16px) saturate(120%); -webkit-backdrop-filter: blur(16px) saturate(120%); }
.material-group-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.material-group-heading h3 { margin: 0; color: var(--slate-2); font-size: 15px; font-weight: 500; }
.material-group-heading p { margin: 4px 0 0; color: var(--slate-4); font-size: 12px; line-height: 1.4; }
.material-group .material-add-link { min-height: 34px; border-color: color-mix(in srgb, var(--purple-1) 20%, var(--slate-9)); background: rgb(255 255 255 / .54); box-shadow: none; }
.brief-content .material-list { gap: 0; margin-top: 8px; }
.brief-content .material-row, .brief-content .material-row.is-primary { grid-template-columns: 32px minmax(0, 1fr) auto 28px; border-color: color-mix(in srgb, var(--slate-10) 80%, transparent); }
.material-remove { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--slate-5); font-size: 18px; line-height: 1; }
.material-remove:hover, .material-remove:focus-visible { border-color: color-mix(in srgb, var(--color-error) 28%, var(--slate-9)); background: color-mix(in srgb, var(--color-error) 8%, var(--white)); color: var(--color-error); }

/* Rehearsal guidance collapses to a compact, reversible control while the video stage keeps focus. */
.rehearsal-guidance-toggle { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border: 1px solid color-mix(in srgb, var(--purple-1) 18%, var(--slate-9)); border-radius: 10px; background: rgb(255 255 255 / .64); padding: 0; }
.rehearsal-guidance-toggle .ui-icon { width: 16px; height: 16px; filter: var(--icon-filter-active); }
.rehearsal-guidance-toggle:hover, .rehearsal-guidance-toggle:focus-visible { border-color: var(--purple-1); background: var(--purple-9); }
.rehearsal-grid.is-guidance-collapsed { grid-template-columns: minmax(0, 1fr) 52px; }
.rehearsal-insight.is-collapsed { align-items: center; padding: 10px; }
.rehearsal-insight.is-collapsed .rehearsal-panel-heading { width: 100%; justify-content: center; }
.rehearsal-insight.is-collapsed .rehearsal-panel-heading > div, .rehearsal-insight.is-collapsed .live-note, .rehearsal-insight.is-collapsed .transcript-heading, .rehearsal-insight.is-collapsed .live-transcript { display: none; }
.rehearsal-insight.is-collapsed .rehearsal-guidance-toggle .ui-icon { transform: rotate(180deg); }
.rehearsal-lower-third { bottom: 22px; }
@media (max-width: 1023px) { .rehearsal-grid.is-guidance-collapsed { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) 48px; }.rehearsal-insight.is-collapsed { min-height: 48px; padding: 7px; }.rehearsal-insight.is-collapsed .rehearsal-panel-heading { justify-content: flex-end; }.rehearsal-lower-third { bottom: 18px; } }
@media (max-width: 767px) { .rail-account { display: none; }.topbar-account { display: flex; }.topbar-account .user-control-avatar { display: none; }.material-group { padding: 13px; }.material-group-heading { align-items: center; }.material-group-heading p { max-width: 28ch; }.material-group .material-add-link span { display: none; }.brief-content .material-row, .brief-content .material-row.is-primary { grid-template-columns: 30px minmax(0, 1fr) 28px; }.brief-content .material-row .material-status { display: none; }.rehearsal-grid.is-guidance-collapsed { grid-template-rows: minmax(0, 1fr) 46px; }.rehearsal-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }.call-control, .call-control-end { width: 100%; }.rehearsal-lower-third { bottom: 14px; } }
@media (prefers-reduced-motion: reduce) { .rail-brand-icon, .rail-collapse-toggle { transition: none !important; } }
@media (prefers-reduced-transparency: reduce) { .material-group { background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* The sidebar is the only desktop account surface. Its controls intentionally layer above the workspace. */
.workspace-shell { min-height: 100dvh; }
.rail { position: relative; z-index: var(--z-sticky); min-height: 100dvh; overflow: visible; }
.workspace-main { position: relative; z-index: var(--z-base); }
.rail-brand-button:hover { background: transparent; transform: none; }
.rail-brand-button:focus-visible { background: transparent; outline: 2px solid var(--purple-1); outline-offset: 2px; transform: none; }
.rail-account { position: relative; z-index: calc(var(--z-toast) - 1); }
.rail-account-actions { position: relative; z-index: 1; }
.rail-account .notifications, .rail-account .tier-control, .rail-account .user-menu { position: relative; z-index: 1; }
.rail-account .notifications-panel, .rail-account .tier-performance-popover, .rail-account .user-menu-panel {
  z-index: calc(var(--z-toast) - 1);
  max-height: min(560px, calc(100dvh - 36px));
  animation: rail-account-popover-in 180ms cubic-bezier(.2, .75, .25, 1) both;
}
.rail-account .notifications-panel, .rail-account .user-menu-panel { transform-origin: bottom left; }
.rail-account .tier-control .tier-performance-popover { right: auto !important; left: 0 !important; }
@keyframes rail-account-popover-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (min-width: 1024px) {
  .rail.is-collapsed .rail-topline { position: relative; width: 44px; min-height: 44px; }
  .rail.is-collapsed .rail-brand-button { position: relative; display: grid; width: 32px; height: 32px; place-items: center; overflow: hidden; }
  .rail.is-collapsed .rail-brand-icon { position: absolute; inset: 2px; display: block !important; width: 28px; height: 28px; opacity: 1; transform: scale(1); }
  .rail.is-collapsed .rail-collapse-toggle { z-index: 2; width: 32px; min-width: 32px; height: 32px; min-height: 32px; }
  .rail.is-collapsed .rail-topline:hover .rail-brand-icon, .rail.is-collapsed .rail-topline:focus-within .rail-brand-icon { opacity: 0; transform: scale(.72); }
  .rail.is-collapsed .rail-account .tier-control .tier-performance-popover { right: auto !important; bottom: 0; left: calc(100% + 12px) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .rail-account .notifications-panel, .rail-account .tier-performance-popover, .rail-account .user-menu-panel { animation: none; }
}

/* The rail has its own viewport rhythm; content height in a Room never moves its account controls. */
@media (min-width: 1024px) {
  .workspace-shell { align-items: start; }
  .rail { position: sticky; top: 0; align-self: start; height: 100dvh; min-height: 0; }
  .room-coach-page { height: 100dvh; }
  .room-coach-page .room-layout, .room-coach-page .conversation { min-height: 0; }
  .rail.is-collapsed .rail-topline:focus-within .rail-brand-icon { opacity: 1; transform: scale(1); }
  .rail.is-collapsed .rail-topline:hover .rail-brand-icon { opacity: 0; transform: scale(.72); }
}

/* Shape system: surfaces 12px, controls 10px, compact details 8px. Circular controls remain circular. */
:root {
  --radius-surface: 12px;
  --radius-interactive: 10px;
  --radius-compact: 8px;
  --radius-round: 999px;
  --radius-sm: var(--radius-compact);
  --radius-md: var(--radius-surface);
  --radius-panel: var(--radius-surface);
  --radius-control: var(--radius-interactive);
}
.app-frame :is(
  .card, .form-card, .alert-card, .room-header-chair, .room-layout, .room-section-content,
  .conversation, .material-group, .material-row, .material-empty, .source-glass-card,
  .booking-counterpart, .booking-calendar, .booking-slot-region, .calendar-day,
  .notifications-panel, .user-menu-panel, .tier-performance-popover, .toast,
  .modal, .room-intake, .rehearsal-stage, .rehearsal-insight, .rehearsal-caption-strip
) { border-radius: var(--radius-surface); }
.app-frame :is(
  button, input:not([type="checkbox"]):not([type="radio"]), select, textarea,
  .room-section-links, .room-section-tabs button, .cheat-sheet-button, .composer,
  .call-control, .call-control-end, .rehearsal-exit, .material-add-link,
  .room-header-toggle, .rail-collapse-toggle, .notifications-toggle, .user-control
) { border-radius: var(--radius-interactive); }
.app-frame :is(
  .pill, .status-line, .material-status, .notification-badge, .rail-lifecycle-heading > b,
  .room-section-icon, .material-row-icon, .intake-title-icon, .dialog-heading-icon,
  .room-reactivation-icon, .booking-agent-key > span, .calendar-agent-states i
) { border-radius: var(--radius-compact); }
.app-frame :is(.message .bubble, .message.message-ai .bubble, .message.from-user .bubble) { border-radius: var(--radius-surface); }
.app-frame .message.message-ai .bubble { border-bottom-left-radius: var(--radius-compact); }
.app-frame .message.from-user .bubble { border-bottom-right-radius: var(--radius-compact); }
.app-frame .room-header-avatar { border-radius: var(--radius-surface) 0 0 var(--radius-surface); }
.app-frame .room-header.is-collapsed .room-header-avatar,
.app-frame :is(.room-avatar, .message-avatar, .chair-avatar, .rail-glyph, .avatar-stack span,
  .user-tier-badge, .user-control-avatar, .booking-counterpart-avatar, .composer-send,
  .room-header-avatar + .chair-avatar) { border-radius: 50%; }
.app-frame .composer { border-radius: var(--radius-round); }
.app-frame .room-section-links { border-radius: var(--radius-surface); }
.app-frame :is(.modal-backdrop .modal, .room-intake) { border-radius: var(--radius-surface); }
.app-shell > .modal-backdrop :is(.modal, .room-intake) { border-radius: var(--radius-surface); }
@media (max-width: 767px) {
  .app-frame :is(.modal, .room-intake, .room-layout, .room-section-content, .booking-calendar) { border-radius: var(--radius-surface); }
}

/* Rail activity is an index, not a set of cards: state is conveyed by hierarchy and a single clean rule. */
.rail-section + .rail-section { margin-top: 30px; }
.rail-lifecycle-list { gap: 22px; }
.rail-lifecycle-group { padding-left: 0; }
.rail-lifecycle-group::before { display: none; }
.rail-lifecycle-heading { width: 100%; min-height: 28px; margin: 0; border-bottom: 0; padding: 0 2px; color: var(--slate-3); }
.rail-lifecycle-heading > b { min-width: 20px; height: 20px; background: transparent; color: var(--slate-5); font-weight: 500; }
.rail-lifecycle-group[data-rail-group="Active"] .rail-lifecycle-heading { margin-bottom: 3px; color: var(--slate-1); }
.rail-lifecycle-group[data-rail-group="Active"] .rail-lifecycle-title { color: var(--slate-1); }
.rail-lifecycle-group[data-rail-group="Active"] .rail-lifecycle-title strong { font-weight: 600; }
.rail-lifecycle-group[data-rail-group="Active"] .rail-lifecycle-heading > b { background: var(--purple-9); color: var(--purple-1); }
.rail-lifecycle-group[data-rail-group="Dormant"] .rail-lifecycle-heading { color: var(--coral); }
.rail-lifecycle-group[data-rail-group="Archived"] .rail-lifecycle-heading { color: var(--slate-5); }
.rail-room-list { gap: 0; margin-top: 2px; }
.room-rail-item { position: relative; min-height: 42px; gap: 9px; border-radius: 0; background: transparent; padding: 8px 6px 8px 10px; box-shadow: none; }
.room-rail-item::after { position: absolute; right: 4px; bottom: 0; left: 42px; height: 1px; background: color-mix(in srgb, var(--slate-10) 72%, transparent); content: ""; }
.room-rail-item:last-child::after { display: none; }
.room-rail-item:hover { background: color-mix(in srgb, var(--slate-11) 72%, transparent); color: var(--slate-1); }
.room-rail-item.is-active { background: transparent; box-shadow: none; color: var(--slate-1); }
.room-rail-item.is-active::before, .rail-link[aria-current="page"]::before { position: absolute; top: 9px; bottom: 9px; left: 0; width: 2px; border-radius: 0; background: var(--purple-1); content: ""; }
.room-rail-item.is-active > .rail-glyph { background: var(--purple-1); color: var(--white); }
.rail-link { position: relative; border-radius: 0; }
.rail-link[aria-current="page"] { background: transparent; box-shadow: none; color: var(--slate-1); }
.rail-link[aria-current="page"] .ui-icon { filter: var(--icon-filter-active); }
.room-rail-item:last-child::after { display: block; }
.room-rail-item > .rail-glyph {
  display: inline-grid;
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  place-items: center;
}
.rail-lifecycle-group[data-rail-group="Dormant"] .room-rail-item.is-active,
.rail-lifecycle-group[data-rail-group="Archived"] .room-rail-item.is-active {
  background: transparent;
  box-shadow: none;
}
@media (min-width: 1024px) {
  .rail.is-collapsed .rail-topline { min-height: 44px; }
  .rail.is-collapsed .rail-brand-button { width: 44px; height: 44px; }
  .rail.is-collapsed .rail-brand-icon { inset: 0; width: 44px; height: 44px; border-radius: var(--radius-interactive); }
  .rail.is-collapsed .rail-collapse-toggle { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
  .rail.is-collapsed .room-rail-item { border-radius: var(--radius-interactive); }
  .rail.is-collapsed .room-rail-item::before, .rail.is-collapsed .room-rail-item::after,
  .rail.is-collapsed .rail-link[aria-current="page"]::before { display: none; }
  .rail.is-collapsed .rail-link[aria-current="page"], .rail.is-collapsed .room-rail-item.is-active { background: var(--purple-9); }
}

/* The cheat sheet is a room-specific rehearsal brief, not a generic note list. */
.cheat-sheet-report { width: min(calc(100vw - 40px), 1080px); max-height: calc(100dvh - 40px); overflow: auto; padding: 30px; }
.cheat-sheet-report-header { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 28px; padding-right: 44px; }
.cheat-sheet-report .eyebrow { margin: 0 0 8px; color: var(--purple-1); }
.cheat-sheet-report h2 { max-width: 760px; color: var(--slate-1); font-size: clamp(26px, 3vw, 38px); font-weight: 500; letter-spacing: -.045em; line-height: 1.12; }
.cheat-sheet-audience { max-width: 760px; margin: 14px 0 0 !important; color: var(--slate-3) !important; font-size: 16px; line-height: 1.55 !important; }
.cheat-sheet-time { align-self: start; border: 1px solid var(--slate-10); border-radius: var(--radius-surface); background: color-mix(in srgb, var(--purple-9) 44%, var(--white)); padding: 16px; }
.cheat-sheet-time span, .cheat-sheet-report-footer > div > span { display: block; color: var(--slate-4); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.cheat-sheet-time strong { display: block; margin-top: 7px; color: var(--purple-1); font-size: 24px; font-weight: 500; line-height: 1.1; }
.cheat-sheet-rule { height: 2px; margin: 26px 0; background: var(--purple-1); }
.cheat-sheet-report-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cheat-sheet-report-section { min-width: 0; border: 1px solid var(--slate-10); border-radius: var(--radius-surface); background: rgb(255 255 255 / .42); padding: 18px; }
.cheat-sheet-report-section h3 { margin: 0 0 18px; color: var(--purple-1); font-size: 13px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
.cheat-sheet-report-items { display: grid; gap: 16px; }
.cheat-sheet-report-items article + article { border-top: 1px solid var(--slate-10); padding-top: 16px; }
.cheat-sheet-report-items h4 { margin: 0; color: var(--slate-1); font-size: 15px; font-weight: 500; line-height: 1.35; }
.cheat-sheet-report-items p { margin: 5px 0 0 !important; color: var(--slate-4) !important; font-size: 13px; line-height: 1.45 !important; }
.cheat-sheet-report-footer { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 26px; border-top: 1px solid var(--slate-10); padding-top: 18px; }
.cheat-sheet-report-footer > div { min-width: 0; }
.cheat-sheet-report-footer p { display: flex; flex-wrap: wrap; gap: 5px 12px; margin: 8px 0 0 !important; color: var(--slate-2) !important; font-size: 14px; line-height: 1.4; }
.cheat-sheet-report-footer b { font-weight: 500; }
.cheat-sheet-download { flex: 0 0 auto; white-space: nowrap; }
.cheat-sheet-download .ui-icon { width: 16px; height: 16px; filter: brightness(0) invert(1); }
@media (max-width: 767px) {
  .cheat-sheet-report { width: min(100%, 680px); max-height: calc(100dvh - 24px); padding: 22px 18px; }
  .cheat-sheet-report-header { grid-template-columns: 1fr; gap: 16px; padding-right: 38px; }
  .cheat-sheet-report h2 { font-size: 27px; }
  .cheat-sheet-audience { font-size: 15px; }
  .cheat-sheet-time { width: max-content; max-width: 100%; }
  .cheat-sheet-rule { margin: 20px 0; }
  .cheat-sheet-report-grid { grid-template-columns: 1fr; gap: 12px; }
  .cheat-sheet-report-section { padding: 16px; }
  .cheat-sheet-report-footer { align-items: stretch; flex-direction: column; margin-top: 20px; }
  .cheat-sheet-download { width: 100%; justify-content: center; }
}
@media (prefers-reduced-transparency: reduce) { .cheat-sheet-report-section { background: var(--white); } }

/* Navigation motion is deliberately short: it confirms a real change of context without competing with the room content. */
@keyframes room-content-handoff {
  from { opacity: .01; transform: translate3d(0, 8px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes room-content-item-enter {
  from { opacity: .01; transform: translate3d(0, 5px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes room-arrival {
  from { opacity: .01; transform: translate3d(0, 10px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes rail-selection-rule {
  from { opacity: .2; transform: scaleY(.28); }
  to { opacity: 1; transform: scaleY(1); }
}
@keyframes rail-selection-glyph {
  0% { transform: scale(.84); }
  68% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes tab-selection-settle {
  from { opacity: .5; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}
.workspace-main[data-view-transition="room-tab"] .room-coach-page .room-layout,
.workspace-main[data-view-transition="room-tab"] .room-section-content { animation: room-content-handoff 240ms cubic-bezier(.2, .75, .2, 1) both; }
.workspace-main[data-view-transition="room-tab"] .room-section-content > * { animation: room-content-item-enter 220ms 35ms cubic-bezier(.2, .75, .2, 1) both; }
.workspace-main[data-view-transition="room-tab"] .room-section-tabs button[aria-selected="true"] { animation: tab-selection-settle 180ms cubic-bezier(.2, .75, .2, 1) both; }
.workspace-main[data-view-transition="room-selection"] > .page-wrap,
.workspace-main[data-view-transition="room-created"] > .page-wrap { animation: room-arrival 260ms cubic-bezier(.2, .75, .2, 1) both; }
.room-rail-item, .room-row, .rail-action { transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease; }
.room-rail-item:active, .room-row:active, .rail-action:active { transform: translateY(1px) scale(.985); }
.rail[data-rail-transition] .room-rail-item.is-active::before { animation: rail-selection-rule 220ms cubic-bezier(.2, .75, .2, 1) both; }
.rail[data-rail-transition] .room-rail-item.is-active > .rail-glyph { animation: rail-selection-glyph 260ms cubic-bezier(.2, .75, .2, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .workspace-main[data-view-transition="room-tab"] .room-coach-page .room-layout,
  .workspace-main[data-view-transition="room-tab"] .room-section-content,
  .workspace-main[data-view-transition="room-tab"] .room-section-content > *,
  .workspace-main[data-view-transition="room-tab"] .room-section-tabs button[aria-selected="true"],
  .workspace-main[data-view-transition="room-selection"] > .page-wrap,
  .workspace-main[data-view-transition="room-created"] > .page-wrap,
  .rail[data-rail-transition] .room-rail-item.is-active::before,
  .rail[data-rail-transition] .room-rail-item.is-active > .rail-glyph { animation: none; }
  .room-rail-item, .room-row, .rail-action { transition: none; }
}

/* Mobile containment: the rail becomes a compact command bar, while each room keeps a stable working canvas. */
@media (max-width: 1023px) {
  html, body, .app-shell, .app-frame { min-width: 0; }
  .workspace-shell { display: block; min-height: 100dvh; }
  .rail { display: none !important; }
  .workspace-main { width: 100%; min-height: 100dvh; }
  .page-wrap, .page-wrap.narrow { padding-top: calc(68px + env(safe-area-inset-top)); }
  .room-coach-page { height: 100dvh !important; min-height: 0; padding-top: calc(68px + env(safe-area-inset-top)); padding-bottom: 12px; }
  .mobile-nav {
    position: fixed;
    z-index: calc(var(--z-toast) - 2);
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    display: grid;
    min-height: calc(56px + env(safe-area-inset-top));
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border: 0;
    border-bottom: 1px solid rgb(255 255 255 / .72);
    border-radius: 0;
    background: rgb(255 255 255 / .82);
    padding: env(safe-area-inset-top) 12px 0;
    box-shadow: 0 8px 20px rgb(46 81 100 / .08), inset 0 -1px 0 rgb(96 110 117 / .08);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
  }
  .mobile-nav-brand, .mobile-nav-routes > button,
  .mobile-nav-account .notifications-toggle, .mobile-nav-account .user-tier-badge,
  .mobile-nav-account .user-control { display: grid; width: 44px; min-width: 44px; height: 44px; min-height: 44px; place-items: center; border: 0; border-radius: var(--radius-control); background: transparent; padding: 0; }
  .mobile-nav-brand img { display: block; width: 44px; height: 44px; object-fit: contain; border-radius: var(--radius-control); }
  .mobile-nav-routes { display: flex; min-width: 0; align-items: center; gap: 2px; }
  .mobile-nav-routes > button { color: var(--slate-3); }
  .mobile-nav-routes > button[aria-current="page"] { background: color-mix(in srgb, var(--purple-9) 54%, var(--white)); box-shadow: inset 0 -2px 0 var(--purple-1); color: var(--purple-1); }
  .mobile-nav-routes .ui-icon { width: 19px; height: 19px; filter: var(--icon-filter-default); }
  .mobile-nav-routes > button[aria-current="page"] .ui-icon { filter: var(--icon-filter-active); }
  .mobile-nav-account { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
  .mobile-nav-account .notifications, .mobile-nav-account .tier-control, .mobile-nav-account .user-menu { position: static; display: block; }
  .mobile-nav-account .notifications-toggle, .mobile-nav-account .user-tier-badge, .mobile-nav-account .user-control { position: relative; }
  .mobile-nav-account .user-control-name { display: none; }
  .mobile-nav-account .user-control-avatar { display: grid; width: 32px; height: 32px; place-items: center; }
  .mobile-nav-account .notifications-panel, .mobile-nav-account .tier-performance-popover, .mobile-nav-account .user-menu-panel {
    position: fixed !important;
    z-index: calc(var(--z-toast) + 1);
    top: calc(64px + env(safe-area-inset-top)) !important;
    right: 12px !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    left: 12px !important;
    width: auto !important;
    max-width: none;
    max-height: none;
    overflow: auto;
    transform-origin: top right;
  }
  .mobile-nav-account .tier-performance-popover, .mobile-nav-account .user-menu-panel { bottom: auto !important; max-height: calc(100dvh - 80px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  body:has(.modal-backdrop) .mobile-nav { visibility: hidden; }
}

@media (max-width: 767px) {
  .page-wrap, .page-wrap.narrow, .room-coach-page { --workspace-gutter-inline: 16px; --workspace-gutter-block: 16px; }
  .page-wrap, .page-wrap.narrow { padding-right: 16px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); padding-left: 16px; }
  .room-coach-page { display: flex; gap: 10px; padding-right: 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); padding-left: 16px; }
  .room-coach-page .room-header, .room-page .room-header {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 12px;
    padding: 0 0 12px;
  }
  .room-coach-page .room-header-copy, .room-page .room-header-copy { min-width: 0; gap: 7px; padding-right: 44px; }
  .room-coach-page .room-title, .room-page .room-title { overflow-wrap: anywhere; font-size: clamp(24px, 7.3vw, 30px); line-height: 1.12; }
  .room-coach-page .room-context-row, .room-page .room-context-row { flex-wrap: wrap; gap: 6px; }
  .room-coach-page .room-header-chair, .room-page .room-header-chair {
    display: grid;
    width: 100%;
    max-width: none;
    min-height: 128px;
    grid-template-columns: 76px minmax(0, 1fr);
    overflow: hidden;
    border-radius: var(--radius-surface);
  }
  .room-coach-page .room-header-avatar, .room-page .room-header-avatar {
    width: 76px;
    height: 128px;
    min-height: 128px;
    align-self: stretch;
    justify-self: stretch;
    margin: 0;
    border-radius: var(--radius-surface) 0 0 var(--radius-surface);
    object-fit: cover;
    object-position: center top;
  }
  .room-coach-page .room-header-chair-content, .room-page .room-header-chair-content {
    display: grid !important;
    min-height: 128px;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    align-items: start;
    gap: 8px;
    padding: 12px;
  }
  .room-coach-page .room-header-persona, .room-page .room-header-persona { min-width: 0; }
  .room-coach-page .room-header-persona strong, .room-page .room-header-persona strong,
  .room-coach-page .room-header-persona span, .room-page .room-header-persona span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .room-coach-page .room-header-rehearsal, .room-page .room-header-rehearsal { display: grid !important; align-self: end; gap: 8px; }
  .room-coach-page .room-header-schedule, .room-page .room-header-schedule { min-width: 0; white-space: normal; }
  .room-coach-page .room-header-actions, .room-page .room-header-actions { display: grid; width: 100%; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .room-coach-page .room-header-actions .button, .room-page .room-header-actions .button { min-height: 44px; padding: 8px; font-size: 12px; line-height: 1.2; white-space: normal; }
  .room-header-toggle { top: 8px; right: 8px; width: 44px; height: 44px; min-height: 44px; }
  .room-coach-page .room-header.is-collapsed, .room-page .room-header.is-collapsed { grid-template-columns: 1fr; min-height: 104px !important; gap: 6px; padding: 8px 52px 8px 10px; }
  .room-coach-page .room-header.is-collapsed .room-header-copy, .room-page .room-header.is-collapsed .room-header-copy { min-height: 28px; padding-right: 0; }
  .room-coach-page .room-header.is-collapsed .room-header-chair, .room-page .room-header.is-collapsed .room-header-chair { min-height: 52px !important; grid-template-columns: 52px minmax(0, 1fr); overflow: visible; }
  .room-coach-page .room-header.is-collapsed .room-header-avatar, .room-page .room-header.is-collapsed .room-header-avatar { width: 52px; height: 52px; min-height: 52px !important; border-radius: 50%; }
  .room-coach-page .room-header.is-collapsed .room-header-chair-content, .room-page .room-header.is-collapsed .room-header-chair-content { min-height: 52px; grid-template-columns: minmax(0, 1fr) 112px !important; grid-template-rows: 52px !important; gap: 8px; padding: 0 0 0 10px; }
  .room-coach-page .room-header.is-collapsed .room-header-actions, .room-page .room-header.is-collapsed .room-header-actions { display: block !important; min-width: 0; grid-column: 2; grid-row: 1; }
  .room-coach-page .room-header.is-collapsed .room-header-actions .button, .room-page .room-header.is-collapsed .room-header-actions .button { min-height: 44px; }
  .room-coach-page .room-section-bar, .room-page .room-section-bar { display: block; min-height: 56px; }
  .room-coach-page .room-section-links, .room-page .room-section-links { width: 100%; min-height: 56px; overflow: visible; padding: 6px; }
  .room-section-tabs { min-width: 0; overflow-x: auto !important; overscroll-behavior-inline: contain; scroll-snap-type: inline proximity; }
  .room-coach-page .room-section-tabs button, .room-page .room-section-tabs button { min-height: 44px; flex: 0 0 auto; scroll-snap-align: start; padding: 8px 10px; }
  .room-coach-page .room-section-links > .cheat-sheet-button, .room-page .room-section-links > .cheat-sheet-button { width: 44px; min-width: 44px; height: 44px; min-height: 44px; align-self: center; padding: 0; }
  .room-coach-page .room-section-links > .cheat-sheet-button span:last-child, .room-page .room-section-links > .cheat-sheet-button span:last-child { display: none; }
  .room-coach-page .room-layout { flex: 1 1 auto; min-height: 0; padding: 10px; }
  .room-coach-page .conversation { min-height: 0; gap: 10px; }
  .room-coach-page .coach-thread { min-height: 0; gap: 16px; padding: 4px 2px 10px; }
  .room-coach-page .message.message-ai .bubble { max-width: min(100%, 68ch); padding: 12px 14px; }
  .room-coach-page .message.from-user .bubble { max-width: 88%; padding: 12px 14px; }
  .room-coach-page .message-response-actions button, .room-coach-page .composer-icon-button, .room-coach-page .composer-send { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
  .room-coach-page .composer { width: 100%; min-height: 56px; margin: 0; padding: 6px 7px 6px 12px; }
  .room-coach-page .composer textarea { min-height: 44px; max-height: 132px; padding-top: 10px; padding-bottom: 10px; }
  .room-page .room-section-content { min-width: 0; padding: 16px; }
  .modal-backdrop { align-items: end; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
  .modal, .room-intake { width: min(100%, 680px); max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow: auto; }
  .modal-close { width: 44px; height: 44px; min-height: 44px; }
  .booking-modal { display: flex; flex-direction: column; width: calc(100vw - 16px); max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .booking-calendar { max-height: none; overflow: visible; }
  .calendar-day, .calendar-blank { min-height: 40px; }
  .calendar-day { padding: 4px; }
  .booking-modal > .modal-actions, .room-intake > .modal-actions { position: sticky; bottom: 0; z-index: 1; margin-bottom: -1px; background: inherit; padding-bottom: 8px; }
  .modal-actions .button, .booking-slot { min-height: 44px; }
  .notifications-panel { top: calc(64px + env(safe-area-inset-top)) !important; right: 0 !important; bottom: 0 !important; left: 0 !important; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .notifications-close { min-height: 44px; }
  .cheat-sheet-report { width: 100%; max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .rehearsal-shell, .rehearsal-frame { height: 100dvh; min-height: 0; overflow: hidden; }
  .rehearsal { height: 100dvh; grid-template-rows: 58px minmax(0, 1fr) calc(66px + env(safe-area-inset-bottom)); }
  .rehearsal-top { padding-top: calc(8px + env(safe-area-inset-top)); }
  .rehearsal-exit { min-width: 44px; min-height: 44px; }
  .rehearsal-grid { min-height: 0; grid-template-rows: minmax(150px, 1.05fr) minmax(0, .95fr); gap: 8px; padding: 8px; }
  .rehearsal-stage, .rehearsal-insight { min-height: 0; }
  .rehearsal-insight { padding: 12px; }
  .rehearsal-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: calc(66px + env(safe-area-inset-bottom)); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .call-control, .call-control-end { min-height: 44px; font-size: 11px; }
}

@media (max-width: 374px) {
  .mobile-nav { gap: 4px; padding-right: 8px; padding-left: 8px; }
  .mobile-nav-routes { gap: 0; }
  .room-coach-page .room-header-chair, .room-page .room-header-chair { grid-template-columns: 68px minmax(0, 1fr); }
  .room-coach-page .room-header-avatar, .room-page .room-header-avatar { width: 68px; }
  .room-coach-page .room-header-actions .button, .room-page .room-header-actions .button { font-size: 11px; }
  .room-coach-page .room-section-tabs button, .room-page .room-section-tabs button { padding-inline: 8px; }
  .rehearsal-grid { grid-template-rows: minmax(132px, 1fr) minmax(0, 1fr); }
}

@media (max-width: 767px) and (max-height: 680px) {
  .room-coach-page { gap: 8px; }
  .room-coach-page .room-header:not(.is-collapsed) { gap: 8px; padding-bottom: 8px; }
  .room-coach-page .room-header-copy { gap: 4px; }
  .room-coach-page .room-header-chair { min-height: 108px; }
  .room-coach-page .room-header-avatar, .room-coach-page .room-header-chair-content { min-height: 108px; height: 108px; }
  .room-coach-page .room-section-bar, .room-coach-page .room-section-links { min-height: 52px; }
  .room-coach-page .room-section-tabs button, .room-coach-page .room-section-links > .cheat-sheet-button { min-height: 40px; height: 40px; }
  .rehearsal-grid { grid-template-rows: minmax(128px, 1fr) minmax(0, 1fr); }
  .rehearsal-panel-heading h2, .rehearsal-caption-strip { display: none; }
  .rehearsal-insight { padding: 8px; }
  .live-note { margin-top: 6px; padding-left: 8px; }
  .live-note p { -webkit-line-clamp: 1; font-size: 10px; }
  .transcript-heading { margin-top: 8px; padding-top: 8px; }
  .live-transcript { min-height: 48px; margin-top: 5px; }
}

@media (prefers-reduced-transparency: reduce) {
  @media (max-width: 1023px) { .mobile-nav { background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; } }
}

/* The thread owns any remaining height; it must never be squeezed out by the room snapshot. */
@media (max-width: 767px) {
  .room-coach-page .room-layout { display: flex !important; }
  .room-coach-page .conversation { flex: 1 1 auto; width: 100%; }
}
@media (max-width: 767px) and (max-height: 680px) {
  .room-coach-page .room-header:not(.is-collapsed) { gap: 6px; padding-bottom: 6px; }
  .room-coach-page .room-header-copy { gap: 2px; }
  .room-coach-page .room-mode { font-size: 9px; }
  .room-coach-page .room-title { font-size: 22px; }
  .room-coach-page .room-last-refreshed { display: none; }
  .room-coach-page .room-header-chair { height: 94px; min-height: 94px !important; grid-template-columns: 60px minmax(0, 1fr); }
  .room-coach-page .room-header-avatar { width: 60px; height: 94px; min-height: 94px !important; }
  .room-coach-page .room-header-chair-content { height: 94px; min-height: 94px !important; gap: 4px; padding: 7px 8px; }
  .room-coach-page .room-header-persona strong { font-size: 13px; }
  .room-coach-page .room-header-persona span, .room-coach-page .room-header-schedule { font-size: 10px; line-height: 1.2; }
  .room-coach-page .room-header-rehearsal { gap: 4px; }
  .room-coach-page .room-header-actions { gap: 6px; }
  .room-coach-page .room-header-actions .button { min-height: 40px; padding: 6px; font-size: 11px; }
  .room-coach-page .room-section-bar, .room-coach-page .room-section-links { min-height: 48px; }
  .room-coach-page .room-section-links { padding-block: 4px; }
  .room-coach-page .room-section-tabs button, .room-coach-page .room-section-links > .cheat-sheet-button { min-height: 40px; height: 40px; }
}

@media (max-width: 374px) {
  .mobile-nav { min-height: 96px; }
  .mobile-nav-account { display: grid; grid-template-columns: repeat(2, 44px); gap: 0; }
  .mobile-nav-account .notifications { grid-column: 1; grid-row: 1; }
  .mobile-nav-account .tier-control { grid-column: 2; grid-row: 1; }
  .mobile-nav-account .user-menu { grid-column: 2; grid-row: 2; }
  .page-wrap, .page-wrap.narrow { padding-top: calc(104px + env(safe-area-inset-top)); }
  .room-coach-page { padding-top: calc(104px + env(safe-area-inset-top)); }
}
@media (max-width: 374px) and (max-height: 680px) {
  .room-coach-page .room-header, .room-page .room-header { gap: 6px; padding-bottom: 6px; }
  .room-coach-page .room-header-copy, .room-page .room-header-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; }
  .room-coach-page .room-mode, .room-page .room-mode { display: none; }
  .room-coach-page .room-title, .room-page .room-title { display: -webkit-box; grid-column: 1; min-width: 0; overflow: hidden; font-size: 19px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .room-coach-page .room-context-row, .room-page .room-context-row { grid-column: 2; grid-row: 1; }
  .room-coach-page .room-header-chair, .room-page .room-header-chair { height: 64px; min-height: 64px !important; grid-template-columns: 52px minmax(0, 1fr); }
  .room-coach-page .room-header-avatar, .room-page .room-header-avatar { width: 52px; height: 64px; min-height: 64px !important; }
  .room-coach-page .room-header-chair-content, .room-page .room-header-chair-content { height: 64px; min-height: 64px !important; grid-template-columns: minmax(0, 1fr) 96px !important; grid-template-rows: 1fr !important; gap: 6px; padding: 6px 8px; }
  .room-coach-page .room-header-persona, .room-page .room-header-persona { align-self: center; }
  .room-coach-page .room-header-persona span, .room-page .room-header-persona span, .room-coach-page .room-header-schedule, .room-page .room-header-schedule { display: none; }
  .room-coach-page .room-header-rehearsal, .room-page .room-header-rehearsal { display: contents !important; }
  .room-coach-page .room-header-actions, .room-page .room-header-actions { display: grid; width: 96px; grid-column: 2; grid-row: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .room-coach-page .room-header-actions .button, .room-page .room-header-actions .button { min-height: 44px; padding: 4px; font-size: 10px; line-height: 1.1; }
  .room-coach-page .room-header-actions .button .ui-icon, .room-page .room-header-actions .button .ui-icon { width: 16px; height: 16px; }
  .room-coach-page .room-header-actions .rehearsal-join span, .room-page .room-header-actions .rehearsal-join span, .room-coach-page .room-header-actions .reschedule-button span, .room-page .room-header-actions .reschedule-button span { display: none; }
  .room-coach-page .composer textarea { max-height: 66px; }
}

@media (max-width: 1023px) {
  /* A filtered ancestor traps fixed account panels; keep these menus anchored to the viewport. */
  .mobile-nav { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
