﻿/* 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; } }

/* Rehearsal turn-taking and transcript controls retain the existing studio treatment. */
.rehearsal-agent-poster { z-index: 0; }
.rehearsal-agent-video { z-index: 1; }
.rehearsal-agent-video.is-playback-blocked { display: none; }
.rehearsal-turn-indicator { position: absolute; z-index: 2; top: 14px; right: 14px; display: inline-flex; min-height: 26px; align-items: center; border: 1px solid rgb(255 255 255 / .18); border-radius: 8px; background: rgb(12 31 42 / .58); padding: 4px 8px; color: #e1edeb; font-size: 11px; font-weight: 500; }
.rehearsal-turn-indicator.is-persona::before, .rehearsal-turn-indicator.is-user::before { width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--color-success); content: ""; }
.rehearsal-turn-indicator.is-user::before { background: var(--purple-5); }
.transcript-heading { display: flex; width: 100%; align-items: center; justify-content: space-between; border: 0; border-top: 1px solid rgb(96 110 117 / .14); background: transparent; padding: 14px 0 0; color: var(--slate-2); cursor: pointer; font-size: 12px; font-weight: 500; text-align: left; }
.transcript-heading:hover { color: var(--purple-1); }
.transcript-heading:focus-visible { outline-offset: 3px; }
.transcript-chevron { color: var(--slate-5); font-size: 16px; line-height: 1; }
.live-transcript { max-height: 1000px; transition: max-height .2s ease, margin-top .2s ease, opacity .16s ease; }
.live-transcript { align-content: start; grid-auto-rows: max-content; gap: 10px; }
.live-transcript > div { padding-bottom: 8px; }
.live-transcript.is-collapsed { flex: 0 1 0; max-height: 0; gap: 0; overflow: hidden; margin-top: 0; padding-right: 0; opacity: 0; }
.call-control-mic.is-muted { background: transparent; }
.call-control-mic.is-live { border-color: color-mix(in srgb, var(--color-success) 72%, var(--white)); background: color-mix(in srgb, var(--color-success) 24%, transparent); }
@media (prefers-reduced-motion: reduce) { .live-transcript { transition: 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: minmax(0, 1fr) auto; 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: minmax(0, 1fr) auto; }.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 { height: 100dvh; min-height: 0; align-items: stretch; overflow: hidden; }
  .rail { position: relative; top: auto; align-self: stretch; height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .workspace-main { height: 100%; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
  .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); }
}


.rail-account-overlay { display: none; }
/* Desktop account surfaces are siblings of the scrollable rail, not children of it. */
@media (min-width: 1024px) {
  .workspace-shell { position: relative; }
  .rail { overflow: visible; }
  .rail-account-overlay { position: absolute; z-index: calc(var(--z-toast) + 1); bottom: 18px; left: calc(var(--sidebar-width) + 14px); display: block; pointer-events: none; }
  .rail-account-overlay > :is(.notifications-panel, .tier-performance-popover, .user-menu-panel) {
    position: absolute !important; top: auto !important; right: auto !important; bottom: 0 !important; left: 0 !important;
    max-height: calc(100dvh - 36px); pointer-events: auto;
  }
  .rail-account-overlay .notifications-panel { width: min(380px, calc(100vw - var(--sidebar-width) - 36px)); }
  .rail-account-overlay .tier-performance-popover { width: min(324px, calc(100vw - var(--sidebar-width) - 36px)); opacity: 1; pointer-events: auto; transform: translateY(0); }
  .rail-account-overlay .user-menu-panel { width: min(260px, calc(100vw - var(--sidebar-width) - 36px)); }
  .workspace-shell.is-rail-collapsed .rail-account-overlay { left: 96px; }
  .workspace-shell.is-rail-collapsed .rail-account-overlay .notifications-panel { width: min(380px, calc(100vw - 120px)); }
  .workspace-shell.is-rail-collapsed .rail-account-overlay .tier-performance-popover { width: min(324px, calc(100vw - 120px)); }
  .workspace-shell.is-rail-collapsed .rail-account-overlay .user-menu-panel { width: min(260px, calc(100vw - 120px)); }
}
/* 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(--purple-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(--purple-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:not([hidden])) .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; }
}
.room-coach-page .room-header-actions .button, .room-page .room-header-actions .button { min-height: 40px; font-size: 13px; }
.room-coach-page .room-section-bar > .cheat-sheet-button, .room-page .room-section-bar > .cheat-sheet-button { position: relative; z-index: 1; min-height: 40px; height: 40px; flex: 0 0 auto; margin-left: auto; border-color: rgb(255 255 255 / .58); border-radius: 10px; background: rgb(247 242 255 / .64); padding: 8px 12px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .76); color: var(--slate-3); white-space: nowrap; backdrop-filter: blur(12px) saturate(130%); -webkit-backdrop-filter: blur(12px) saturate(130%); }.room-coach-page .room-section-bar > .cheat-sheet-button .ui-icon, .room-page .room-section-bar > .cheat-sheet-button .ui-icon { width: 15px; height: 15px; filter: var(--icon-filter-active); }.room-coach-page .room-section-bar > .cheat-sheet-button.is-ready:hover, .room-page .room-section-bar > .cheat-sheet-button.is-ready:hover { border-color: var(--purple-1); background: var(--white); color: var(--purple-1); }.room-coach-page .room-section-bar > .cheat-sheet-button:disabled, .room-page .room-section-bar > .cheat-sheet-button:disabled { border-color: transparent; background: transparent; color: var(--slate-6); }
@media (max-width: 480px) { .room-coach-page .room-header-actions, .room-page .room-header-actions { grid-template-columns: 1fr; }.room-coach-page .room-section-bar, .room-page .room-section-bar { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 8px; }.room-coach-page .room-section-links, .room-page .room-section-links { min-width: 0; overflow: hidden; }.room-section-tabs { overflow-x: auto !important; scrollbar-width: none; }.room-section-tabs::-webkit-scrollbar { display: none; }.room-coach-page .room-section-tabs button, .room-page .room-section-tabs button { flex: 0 0 auto; }.room-coach-page .room-section-bar > .cheat-sheet-button, .room-page .room-section-bar > .cheat-sheet-button { display: inline-flex; width: 44px; min-width: 44px; height: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0; }.room-coach-page .room-section-bar > .cheat-sheet-button span:last-child, .room-page .room-section-bar > .cheat-sheet-button span:last-child { display: none; } }

.room-coach-page .room-section-bar, .room-page .room-section-bar { align-items: stretch; }
.room-coach-page .room-section-bar > .cheat-sheet-button, .room-page .room-section-bar > .cheat-sheet-button { min-height: 44px; height: 44px; }
@media (max-width: 767px) {
  .room-coach-page .room-header.is-collapsed .room-header-actions, .room-page .room-header.is-collapsed .room-header-actions { width: 128px; grid-template-columns: minmax(0, 1fr) 40px; }
  .room-coach-page .room-header.is-collapsed .room-header-actions .rehearsal-join, .room-page .room-header.is-collapsed .room-header-actions .rehearsal-join { display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: normal; }
  .room-coach-page .room-header.is-collapsed .room-header-actions .rehearsal-join span, .room-page .room-header.is-collapsed .room-header-actions .rehearsal-join span { display: inline; }
  .room-coach-page .room-header.is-collapsed .room-header-actions .reschedule-button span, .room-page .room-header.is-collapsed .room-header-actions .reschedule-button span { display: none; }
  .room-coach-page .room-section-links, .room-page .room-section-links { min-height: 50px; }
  .room-coach-page .room-section-bar > .cheat-sheet-button, .room-page .room-section-bar > .cheat-sheet-button { min-height: 50px; height: 50px; }
}

/* The collapsed mobile header reserves a complete primary rehearsal action. */
.rehearsal-join-label-short { display: none; }
@media (max-width: 767px) {
  .room-coach-page .room-header.is-collapsed .room-header-chair-content,
  .room-page .room-header.is-collapsed .room-header-chair-content { grid-template-columns: minmax(0, 1fr) 128px !important; }
  .room-coach-page .room-header.is-collapsed .room-header-actions,
  .room-page .room-header.is-collapsed .room-header-actions { display: block !important; width: 128px; min-width: 128px; overflow: visible; }
  .room-coach-page .room-header.is-collapsed .rehearsal-join,
  .room-page .room-header.is-collapsed .rehearsal-join { display: inline-flex; width: 128px; min-height: 44px; box-sizing: border-box; align-items: center; justify-content: center; gap: 7px; border-radius: 12px; padding: 0 10px; box-shadow: 0 8px 16px rgb(120 35 220 / .22); font-size: 12px; font-weight: 600; white-space: nowrap; }
  .room-coach-page .room-header.is-collapsed .rehearsal-join-label-full,
  .room-page .room-header.is-collapsed .rehearsal-join-label-full { display: inline; }
  .room-coach-page .room-header.is-collapsed .rehearsal-join-label-short,
  .room-page .room-header.is-collapsed .rehearsal-join-label-short { display: none; }
}
.room-coach-page .room-section-tabs .room-section-icon, .room-page .room-section-tabs .room-section-icon, .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(--slate-11); }
.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-default); }
@media (max-width: 480px) {
  .room-coach-page .room-section-bar, .room-page .room-section-bar { display: block; grid-template-columns: none; }
  .room-coach-page .room-section-links, .room-page .room-section-links { width: 100%; }
}
.notifications-panel, .tier-performance-popover, .user-menu-panel { border-color: rgb(96 110 117 / .28); }
.app-frame .room-avatar.solo { background: var(--purple-1) !important; }
.app-frame .room-avatar.team { background: var(--color-success) !important; }
.rail-glyph.solo { background: var(--purple-9); color: var(--purple-1); }
.rail-glyph.team { background: color-mix(in srgb, var(--color-success) 16%, var(--white)); color: #177c6a; }
.room-rail-item.is-active > .rail-glyph, .mobile-nav-recent-room.is-active .rail-glyph { background: var(--purple-1); color: var(--white); }
.room-row { position: relative; isolation: isolate; overflow: hidden; border-color: rgb(255 255 255 / .88); background: linear-gradient(112deg, rgb(255 255 255 / .82), rgb(247 251 255 / .68) 58%, rgb(246 241 255 / .62)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .96), 0 8px 20px rgb(57 83 97 / .05); }
.room-row::before { position: absolute; top: 0; right: 8%; left: 8%; z-index: 0; height: 1px; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .98) 18%, rgb(210 190 245 / .8) 50%, rgb(255 255 255 / .98) 82%, transparent); content: ""; pointer-events: none; }
.room-row > * { position: relative; z-index: 1; }
.room-row:hover { border-color: rgb(120 35 220 / .22); box-shadow: inset 0 1px 0 rgb(255 255 255 / .98), 0 12px 24px rgb(57 83 97 / .10); }
.notifications-toggle, .tier-control .user-tier-badge, .user-control { transition: transform 180ms cubic-bezier(.2, .75, .25, 1), border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease; }
.notifications-toggle[aria-expanded="true"], .tier-control.is-open .user-tier-badge, .user-control[aria-expanded="true"] { border-color: rgb(120 35 220 / .32); background: rgb(255 255 255 / .88); box-shadow: 0 5px 14px rgb(57 83 97 / .10); color: var(--purple-1); transform: translateY(-1px); }
.notifications-toggle:active, .tier-control .user-tier-badge:active, .user-control:active { transform: translateY(1px) scale(.97); }
.notifications-panel, .tier-performance-popover, .user-menu-panel { animation: account-surface-in 220ms cubic-bezier(.2, .75, .25, 1) both; will-change: transform, opacity; }
@keyframes account-surface-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .notifications-toggle, .tier-control .user-tier-badge, .user-control { transition: none; } .notifications-panel, .tier-performance-popover, .user-menu-panel { animation: none; } }
.rehearsal-lower-third { border: 1px solid rgb(255 255 255 / .18); border-left: 2px solid rgb(193 151 241 / .86); border-radius: 10px; background: rgb(10 27 37 / .72); padding: 10px 12px; }
.rehearsal-lower-third p { margin-top: 3px; color: rgb(255 255 255 / .88); }

/* =========================================
   REHEARSAL LOADING MODAL
   Match SharePoint/context loader styling
   ========================================= */

.rehearsal-loading-modal {
    width: min(720px, calc(100vw - 32px));
    max-width: 720px;
    padding: 0;
    overflow: hidden;
}

.rehearsal-loading-stage {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
    gap: 30px;
    min-height: 330px;
    padding: 38px 54px;
}


    /* Use the normal SharePoint loader styling */
    .rehearsal-loading-stage .sharepoint-loading-visual {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rehearsal-loading-stage .loading-card-stack {
        position: relative;
        width: 160px;
        height: 160px;
    }


.rehearsal-loading-modal .sharepoint-loading-progress span {
    left: 0;
    width: 20%;
    animation: rehearsal-progress-pulse 1.4s ease-in-out infinite;
    transition: width 0.45s ease;
}

@keyframes rehearsal-progress-pulse {
    0% {
        opacity: 0.65;
        transform: scaleX(0.96);
    }

    50% {
        opacity: 1;
        transform: scaleX(1);
    }

    100% {
        opacity: 0.65;
        transform: scaleX(0.96);
    }
}


/* Give the message icon the ANITA purple treatment */
.rehearsal-loading-modal .loading-file-icon .ui-icon {
    filter: var(--icon-filter-active);
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767px) {

    .rehearsal-loading-modal {
        width: calc(100vw - 24px);
        max-width: none;
    }

    .rehearsal-loading-stage {
        grid-template-columns: 1fr;
        gap: 12px;
        min-height: 0;
        padding: 28px 22px 32px;
        text-align: center;
    }

        .rehearsal-loading-stage .loading-card-stack {
            width: 130px;
            height: 130px;
        }

        .rehearsal-loading-stage .loading-card {
            width: 92px;
            height: 92px;
        }

        .rehearsal-loading-stage .loading-scan-line {
            left: 10px;
            right: 10px;
        }

        .rehearsal-loading-stage .sharepoint-loading-copy {
            display: grid;
            justify-items: center;
        }

            .rehearsal-loading-stage .sharepoint-loading-copy h2 {
                font-size: 24px;
            }

    .rehearsal-loading-modal .sharepoint-loading-progress {
        width: min(220px, 100%);
    }
}

/* =========================================================
   REHEARSAL LOADING MODAL
   Uses the same visual language as context document loading
   ========================================================= */

.rehearsal-loading-modal {
    width: min(720px, calc(100vw - 32px));
    max-width: 720px;
    padding: 0;
    overflow: hidden;
}

.rehearsal-loading-stage {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
    gap: 30px;
    min-height: 330px;
    padding: 38px 54px;
}


    /* =========================================
   LEFT VISUAL
   ========================================= */

    .rehearsal-loading-stage .sharepoint-loading-visual {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rehearsal-loading-stage .loading-card-stack {
        position: relative;
        width: 160px;
        height: 160px;
    }

    .rehearsal-loading-stage .loading-card {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 112px;
        height: 112px;
        border: 1px solid color-mix( in srgb, var(--purple-1) 18%, transparent );
        border-radius: 18px;
        transform-origin: center;
    }

    .rehearsal-loading-stage .loading-card-back {
        background: color-mix( in srgb, var(--purple-9) 60%, var(--white) );
        transform: translate(-50%, -50%) rotate(-12deg);
        animation: rehearsal-card-back-motion 2.3s ease-in-out infinite;
    }

    .rehearsal-loading-stage .loading-card-middle {
        background: color-mix( in srgb, var(--purple-9) 72%, var(--white) );
        transform: translate(-50%, -50%) rotate(8deg);
        animation: rehearsal-card-middle-motion 2.3s ease-in-out infinite;
    }

    .rehearsal-loading-stage .loading-card-front {
        display: grid;
        place-items: center;
        overflow: hidden;
        background: linear-gradient( 135deg, var(--white), color-mix( in srgb, var(--purple-9) 14%, var(--white) ) );
        transform: translate(-50%, -50%);
    }


    /* =========================================
   ICON
   ========================================= */

    .rehearsal-loading-stage .loading-file-icon {
        display: grid;
        width: 44px;
        height: 44px;
        place-items: center;
        border-radius: 12px;
        background: var(--white);
        box-shadow: 0 8px 18px rgba(44, 32, 70, 0.10);
    }

        .rehearsal-loading-stage
        .loading-file-icon
        .ui-icon {
            width: 22px;
            height: 22px;
            filter: var(--icon-filter-active);
        }


    /* =========================================
   SCANNING LINE
   ========================================= */

    .rehearsal-loading-stage .loading-scan-line {
        position: absolute;
        left: 12px;
        right: 12px;
        height: 3px;
        border-radius: 999px;
        background: #7823dc;
        box-shadow: 0 0 10px rgba(120, 35, 220, 0.35);
        animation: rehearsal-loading-scan 1.5s ease-in-out infinite alternate;
    }


    /* =========================================
   COPY
   ========================================= */

    .rehearsal-loading-stage
    .sharepoint-loading-kicker {
        margin: 0 0 10px;
        color: var(--muted);
        font-size: 13px;
    }

    .rehearsal-loading-stage
    .sharepoint-loading-copy h2 {
        margin: 0;
        color: var(--ink);
        font-size: 26px;
        font-weight: 500;
        line-height: 1.2;
        letter-spacing: -0.04em;
    }


    /* =========================================
   PROGRESS BAR
   ========================================= */

    .rehearsal-loading-stage
    .sharepoint-loading-progress {
        position: relative;
        width: 200px;
        height: 4px;
        margin-top: 16px;
        overflow: hidden;
        border-radius: 999px;
        background: color-mix( in srgb, var(--purple-1) 10%, var(--slate-11) );
    }

        .rehearsal-loading-stage
        .sharepoint-loading-progress span {
            position: absolute;
            top: 0;
            left: -45%;
            width: 45% !important;
            height: 100%;
            border-radius: inherit;
            background: #7823dc;
            animation: rehearsal-progress 1.5s ease-in-out infinite;
        }


    /* =========================================
   STATUS + DOTS
   ========================================= */

    .rehearsal-loading-stage
    .sharepoint-loading-status {
        margin: 12px 0 0;
        color: var(--muted);
        font-size: 12px;
        font-weight: 600;
    }

    .rehearsal-loading-stage .loading-dots {
        display: inline-flex;
        gap: 3px;
        margin-left: 3px;
    }

        .rehearsal-loading-stage .loading-dots i {
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: var(--purple-1);
            animation: rehearsal-dot 1.2s ease-in-out infinite;
        }

            .rehearsal-loading-stage
            .loading-dots i:nth-child(2) {
                animation-delay: 0.15s;
            }

            .rehearsal-loading-stage
            .loading-dots i:nth-child(3) {
                animation-delay: 0.3s;
            }


/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes rehearsal-loading-scan {

    from {
        top: 22px;
    }

    to {
        top: 86px;
    }
}

@keyframes rehearsal-card-back-motion {

    0%, 100% {
        transform: translate(-50%, -50%) rotate(-12deg) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) rotate(-8deg) translateY(-5px);
    }
}

@keyframes rehearsal-card-middle-motion {

    0%, 100% {
        transform: translate(-50%, -50%) rotate(8deg) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) rotate(12deg) translateY(5px);
    }
}

@keyframes rehearsal-progress {

    0% {
        left: -45%;
    }

    50% {
        left: 55%;
    }

    100% {
        left: 100%;
    }
}

@keyframes rehearsal-dot {

    0%, 60%, 100% {
        opacity: 0.25;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-2px);
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767px) {

    .rehearsal-loading-modal {
        width: calc(100vw - 24px);
        max-width: none;
    }

    .rehearsal-loading-stage {
        grid-template-columns: 1fr;
        gap: 12px;
        min-height: 0;
        padding: 28px 22px 32px;
        text-align: center;
    }

        .rehearsal-loading-stage
        .sharepoint-loading-copy {
            display: grid;
            justify-items: center;
        }
}

/* =========================================
   NEW ROOM - STEP 4
   ========================================= */

.purpose-field {
    margin: 26px 24px 0;
}

    .purpose-field label {
        display: block;
        margin-bottom: 8px;
        color: var(--slate-1);
        font-size: 13px;
        font-weight: 700;
    }

    .purpose-field textarea {
        display: block;
        width: 100%;
        min-height: 106px;
        padding: 14px;
        box-sizing: border-box;
        resize: vertical;
        border: 1px solid #cbdad6;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.75);
        color: var(--slate-1);
        font: inherit;
        font-size: 13px;
        line-height: 1.5;
        outline: none;
    }

        .purpose-field textarea:focus {
            border-color: #7823dc;
            box-shadow: 0 0 0 2px rgba(120, 35, 220, 0.08);
        }

        .purpose-field textarea::placeholder {
            color: #929292;
            font-weight: 600;
        }

.purpose-character-count {
    margin-top: 6px;
    color: var(--slate-4);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}


/* =========================================
   STEP 4 SUMMARY
   ========================================= */

.purpose-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 18px 24px 0;
    overflow: hidden;
    border: 1px solid #dedede;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
}

.purpose-summary-item {
    min-height: 74px;
    padding: 16px;
    box-sizing: border-box;
}

    .purpose-summary-item:nth-child(odd) {
        border-right: 1px solid #dedede;
    }

    .purpose-summary-item:nth-child(-n+2) {
        border-bottom: 1px solid #dedede;
    }

    .purpose-summary-item span {
        display: block;
        margin-bottom: 8px;
        color: var(--slate-4);
        font-size: 12px;
        font-weight: 700;
    }

    .purpose-summary-item strong {
        display: block;
        color: var(--slate-1);
        font-size: 13px;
        font-weight: 700;
    }

/* =========================================
   SHAREPOINT DOCUMENT BOX
   ========================================= */

.sharepoint-file-box {
    margin: 20px 24px 0;
    overflow: hidden;
    border: 1px solid #d8c2ef;
    border-radius: 12px;
    background: linear-gradient( 135deg, color-mix(in srgb, var(--purple-9) 52%, var(--white)), var(--slate-11) );
}

.sharepoint-file-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 16px;
    border: 0;
    background: transparent;
}

    .sharepoint-file-summary strong {
        color: var(--ink);
        font-size: 13px;
        font-weight: 600;
    }

    .sharepoint-file-summary small {
        overflow: hidden;
        color: var(--muted);
        font-size: 11px;
        font-weight: 400;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.sharepoint-file-list {
    overflow: hidden;
    margin: 0;
    border: 0;
    background: transparent;
}


/* =========================================
   DOCUMENT ROW
   ========================================= */

.meeting-file-row {
    display: grid;
    grid-template-columns: 18px 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 8px 16px;
    border-top: 1px solid rgba(120, 35, 220, 0.10);
    background: transparent;
    cursor: pointer;
}

    .meeting-file-row:first-child {
        border-top: 0;
    }

    .meeting-file-row:has(.meeting-file-checkbox:checked) {
        background: transparent;
    }


/* checkbox */

.meeting-file-checkbox {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #7823dc;
    cursor: pointer;
}


/* icon */

.meeting-file-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 10px;
}

    .meeting-file-icon .ui-icon {
        width: 17px;
        height: 17px;
    }

.meeting-file-icon--presentation {
    background: color-mix( in srgb, var(--purple-9) 75%, var(--white) );
}

    .meeting-file-icon--presentation .ui-icon {
        filter: brightness(0) saturate(100%) invert(20%) sepia(93%) saturate(4268%) hue-rotate(263deg) brightness(88%) contrast(96%);
    }

.meeting-file-icon--reference {
    background: #e8f3f7;
}

.meeting-file-icon--pdf {
    background: #fff0f3;
}


/* file details */

.meeting-file-details {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
}

    .meeting-file-details strong {
        display: block;
        overflow: hidden;
        max-width: 100%;
        color: var(--ink);
        font-size: 12px;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .meeting-file-details small {
        display: block;
        color: var(--muted);
        font-size: 11px;
        font-weight: 400;
        line-height: 1.2;
    }


/* selected state */

.meeting-file-row:has(.meeting-file-checkbox:checked)
.meeting-file-details strong {
    color: #7823dc;
}

.meeting-file-select {
    color: #7823dc;
    font-size: 11px;
    font-weight: 600;
}

.meeting-file-row:has(.meeting-file-checkbox:checked)
.meeting-file-select {
    font-size: 0;
}

    .meeting-file-row:has(.meeting-file-checkbox:checked)
    .meeting-file-select::after {
        content: "Selected";
        color: #7823dc;
        font-size: 11px;
        font-weight: 600;
    }

/* =========================================
   SHAREPOINT / CONTEXT LOADING STATE
   ========================================= */

.sharepoint-loading-stage {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
    gap: 30px;
    min-height: 330px;
    padding: 38px 54px;
}

    .sharepoint-loading-stage[hidden] {
        display: none !important;
    }


/* =========================================
   LOADING VISUAL
   ========================================= */

.sharepoint-loading-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-card-stack {
    position: relative;
    width: 160px;
    height: 160px;
}

.loading-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 112px;
    height: 112px;
    border-radius: 18px;
    transform-origin: center;
    border: 1px solid color-mix( in srgb, var(--purple-1) 18%, transparent );
}


/* Back card */

.loading-card-back {
    background: color-mix( in srgb, var(--purple-9) 60%, var(--white) );
    transform: translate(-50%, -50%) rotate(-12deg);
    animation: loading-card-back-motion 2.3s ease-in-out infinite;
}


/* Middle card */

.loading-card-middle {
    background: color-mix( in srgb, var(--purple-9) 72%, var(--white) );
    transform: translate(-50%, -50%) rotate(8deg);
    animation: loading-card-middle-motion 2.3s ease-in-out infinite;
}


/* Front card */

.loading-card-front {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient( 135deg, var(--white), color-mix( in srgb, var(--purple-9) 14%, var(--white) ) );
    transform: translate(-50%, -50%);
}


/* =========================================
   FILE ICON
   ========================================= */

.loading-file-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 8px 18px rgba(44, 32, 70, 0.10);
}

    .loading-file-icon .ui-icon {
        width: 22px;
        height: 22px;
    }


/* =========================================
   SCANNING LINE
   ========================================= */

.loading-scan-line {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 3px;
    border-radius: 999px;
    background: #7823dc;
    box-shadow: 0 0 10px rgba(120, 35, 220, 0.35);
    animation: loading-scan 1.5s ease-in-out infinite alternate;
}

@keyframes loading-scan {

    from {
        top: 22px;
    }

    to {
        top: 86px;
    }
}


/* =========================================
   CARD MOVEMENT
   ========================================= */

@keyframes loading-card-back-motion {

    0%, 100% {
        transform: translate(-50%, -50%) rotate(-12deg) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) rotate(-8deg) translateY(-5px);
    }
}

@keyframes loading-card-middle-motion {

    0%, 100% {
        transform: translate(-50%, -50%) rotate(8deg) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) rotate(12deg) translateY(5px);
    }
}


/* =========================================
   LOADING COPY
   ========================================= */

.sharepoint-loading-kicker {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
}

.sharepoint-loading-copy h2 {
    margin: 0;
    color: var(--ink);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.04em;
}


/* =========================================
   PROGRESS BAR
   ========================================= */

.sharepoint-loading-progress {
    position: relative;
    overflow: hidden;
    width: 200px;
    height: 4px;
    margin-top: 16px;
    border-radius: 999px;
    background: color-mix( in srgb, var(--purple-1) 10%, var(--slate-11) );
}

    .sharepoint-loading-progress span {
        position: absolute;
        top: 0;
        left: -45%;
        width: 45%;
        height: 100%;
        border-radius: inherit;
        background: #7823dc;
        animation: sharepoint-progress 1.5s ease-in-out infinite;
    }

@keyframes sharepoint-progress {

    0% {
        left: -45%;
    }

    50% {
        left: 55%;
    }

    100% {
        left: 100%;
    }
}


/* =========================================
   STATUS
   ========================================= */

.sharepoint-loading-status {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}


/* =========================================
   ANIMATED DOTS
   ========================================= */

.loading-dots {
    display: inline-flex;
    gap: 3px;
    margin-left: 3px;
}

    .loading-dots i {
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: #b779f4;
        animation: loading-dot 1.1s ease-in-out infinite;
    }

        .loading-dots i:nth-child(2) {
            animation-delay: 0.15s;
        }

        .loading-dots i:nth-child(3) {
            animation-delay: 0.3s;
        }

@keyframes loading-dot {

    0%, 60%, 100% {
        opacity: 0.25;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

@media (max-width: 767px) {

    .sharepoint-loading-stage {
        grid-template-columns: 1fr;
        gap: 14px;
        min-height: 0;
        padding: 28px 24px 34px;
        text-align: center;
    }

    .sharepoint-loading-copy {
        display: grid;
        justify-items: center;
    }

        .sharepoint-loading-copy h2 {
            font-size: 24px;
        }

    .sharepoint-loading-progress {
        width: min(220px, 100%);
    }
}

/* =========================================
   RAIL ROOM AVATARS
   ========================================= */

.room-rail-item .rail-glyph {
    display: grid;
    width: 24px;
    height: 24px;
    min-width: 24px;
    place-items: center;
    overflow: visible;
    border-radius: 50%;
}

.room-rail-item .rail-room-avatar {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
}

.room-rail-item.is-active .rail-room-avatar {
    outline: 2px solid #7823dc;
    outline-offset: 2px;
}

.room-rail-item.is-active .rail-glyph {
    background: transparent !important;
    box-shadow: none !important;
}

.room-header-chair-content {
    text-align: left;
}

.room-header-persona {
    width: 100%;
    text-align: left;
}

    .room-header-persona strong {
        display: block;
        text-align: left;
    }

    .room-header-persona .room-header-specialty {
        display: block;
        text-align: left;
    }

.room-header-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

    .room-header-actions .button .ui-icon {
        width: 16px;
        height: 16px;
        flex: 0 0 auto;
    }

/* Force persona name + description left aligned */
.room-header-chair .room-header-chair-content .room-header-persona {
    text-align: left !important;
    align-items: flex-start !important;
}

    .room-header-chair .room-header-chair-content .room-header-persona strong,
    .room-header-chair .room-header-chair-content .room-header-persona .room-header-specialty {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

.room-header-chair .room-header-chair-content .room-header-specialty {
    justify-self: start !important;
}

.room-header-chair-content {
    justify-items: start !important;
    text-align: left !important;
}

.room-coach-page .room-header-persona .room-header-specialty {
    white-space: normal !important;
    white-space-collapse: collapse !important;
    text-align: left !important;
}

/* =========================================
   ROOM SETTINGS MODAL
   ========================================= */

.room-settings-modal {
    position: relative;
    width: min(440px, calc(100vw - 32px));
    padding: 26px 24px 24px;
    border-radius: 18px;
}

.room-settings-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    color: #444;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.room-settings-kicker {
    margin: 0 0 8px;
    color: #555;
    font-size: 13px;
    letter-spacing: 0.14em;
}

.room-settings-copy h2 {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
    font-weight: 500;
}

.room-settings-description {
    margin: 10px 0 0;
    max-width: 360px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}


/* Danger section */

.room-settings-danger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    padding: 14px;
    border: 1px solid rgba(255, 70, 110, 0.32);
    border-radius: 12px;
    background: rgba(255, 245, 247, 0.72);
}

.room-settings-danger-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .room-settings-danger-copy strong {
        color: #333;
        font-size: 13px;
    }

    .room-settings-danger-copy span {
        color: #777;
        font-size: 11px;
    }

.room-delete-button {
    min-width: 118px;
    border: 0 !important;
    background: #ff466e !important;
    color: white !important;
    font-weight: 700;
}

    .room-delete-button:hover {
        background: #f13660 !important;
    }

@media (min-width: 1024px) {

    .rail.is-collapsed
    .rail-link[aria-current="page"] {
        width: 44px;
        height: 44px;
        min-width: 44px;
        margin-left: auto;
        margin-right: auto;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #e6d2fa;
        border-radius: 10px;
        color: #7823dc !important;
    }

        .rail.is-collapsed
        .rail-link[aria-current="page"]
        .ui-icon {
            filter: var(--icon-filter-active);
            opacity: 1;
        }
}

/* =========================================
   COACH CONVERSATION
   ========================================= */

.conversation {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.coach-thread {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 28px 26px 20px;
}


/* =========================================
   GENERAL MESSAGE
   ========================================= */

.message {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.message-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1;
}

.message-author {
    font-weight: 700;
    color: #4b4b4b;
}

.message-time {
    font-size: 11px;
    font-weight: 500;
    color: #999;
}

.message-avatar.ai {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef0ef;
    color: #7823dc;
    font-size: 12px;
}


/* =========================================
   ANITA MESSAGE
   ========================================= */

.message-ai {
    align-items: flex-start;
}

    .message-ai .bubble {
        width: min(88%, 960px);
        padding: 15px 18px;
        border-radius: 10px;
        background: linear-gradient( 105deg, rgba(248, 249, 250, 0.98), rgba(245, 239, 255, 0.92) );
        color: #242424;
        font-size: 15px;
        line-height: 1.55;
        text-align: left;
    }


/* =========================================
   USER MESSAGE
   ========================================= */

.message-user {
    align-items: flex-end;
}

    .message-user .message-label {
        justify-content: flex-end;
        width: min(82%, 860px);
    }

    .message-user .message-author {
        color: #7823dc;
    }

    .message-user .bubble {
        width: min(82%, 860px);
        padding: 14px 16px;
        border: 1px solid rgba(120, 35, 220, 0.18);
        border-left: 3px solid #d7aaff;
        border-radius: 11px;
        background: #fff;
        color: #292929;
        font-size: 15px;
        line-height: 1.5;
        text-align: left;
        box-shadow: 0 2px 8px rgba(22, 22, 22, 0.04);
    }


/* =========================================
   COACH META / THINKING TIME
   ========================================= */

.coach-response-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 6px;
    margin-bottom: 7px;
    font-size: 11px;
    color: #7f7f7f;
}

    .coach-response-meta::before {
        content: "✦";
        color: #7823dc;
    }


/* =========================================
   MESSAGE ACTIONS
   ========================================= */

.message-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    color: #b7b7b7;
}

    .message-actions button {
        border: 0;
        background: transparent;
        padding: 2px;
        color: inherit;
        cursor: pointer;
    }

    .message-actions img {
        width: 15px;
        height: 15px;
        opacity: 0.55;
    }

    .message-actions button:hover img {
        opacity: 1;
    }


/* =========================================
   COMPOSER
   ========================================= */

.composer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 20px 14px;
    padding: 8px 10px 8px 16px;
    border: 1px solid #dedede;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

    .composer textarea {
        flex: 1;
        height: 24px;
        min-height: 24px;
        max-height: 72px;
        overflow-y: hidden;
        resize: none;
        border: 0;
        outline: none;
        padding: 2px 0;
        background: transparent;
        font: inherit;
        font-size: 15px;
        line-height: 24px;
        color: #222;
    }

        .composer textarea::placeholder {
            color: #979797;
        }


/* attach button */

.composer-icon-button {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
}


/* send button */

#sendCoachMessageButton {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

    #sendCoachMessageButton img {
        width: 17px;
        height: 17px;
    }

    #sendCoachMessageButton:hover {
        background: #f7f7f7;
    }

    #sendCoachMessageButton:disabled {
        opacity: 0.45;
        cursor: default;
    }


/* =========================================
   SCROLLBAR
   ========================================= */

.coach-thread {
    scrollbar-width: thin;
    scrollbar-color: #8f8f8f transparent;
}

    .coach-thread::-webkit-scrollbar {
        width: 8px;
    }

    .coach-thread::-webkit-scrollbar-track {
        background: transparent;
    }

    .coach-thread::-webkit-scrollbar-thumb {
        background: #8f8f8f;
        border-radius: 999px;
    }


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767px) {

    .coach-thread {
        padding: 18px 14px;
        gap: 20px;
    }

    .message-ai .bubble,
    .message-user .bubble,
    .message-user .message-label {
        width: 100%;
        max-width: 100%;
    }

    .composer {
        margin: 0 10px 10px;
    }
}

.message-user-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 2px solid #d8b4ff;
}

.message-user .message-label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.coach-thinking-bubble {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: auto !important;
    padding: 12px 16px !important;
    color: #666;
}

.coach-thinking-text {
    font-size: 13px;
}

.coach-thinking-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .coach-thinking-dots span {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: #7823dc;
        animation: coach-thinking-dot 1.2s infinite ease-in-out;
    }

        .coach-thinking-dots span:nth-child(2) {
            animation-delay: 0.15s;
        }

        .coach-thinking-dots span:nth-child(3) {
            animation-delay: 0.30s;
        }

@keyframes coach-thinking-dot {

    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.35;
    }

    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.message-user .message-author {
    color: #7823dc !important;
    font-weight: 700;
}

.message-user .message-label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.message-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
}

/* =========================================
   MOBILE SIDEBAR / HAMBURGER
   ========================================= */

@media (max-width: 1023px) {

    .rail {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        z-index: 1100;
        background: #fff;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        overflow-y: auto;
    }

    body.mobile-rail-open .rail {
        transform: translateX(0);
    }

    body.mobile-rail-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.25);
        z-index: 1090;
    }
}

/* =========================================
   CREATE ROOM PROGRESS MODAL
   ========================================= */

#create-room-progress[hidden] {
    display: none !important;
}

#create-room-progress {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
}

.create-room-progress-modal {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 30px;
    width: min(620px, 100%);
    min-height: 240px;
    padding: 38px 42px;
    border: 1px solid #d8c2ef;
    border-radius: 18px;
    background: linear-gradient( 135deg, color-mix(in srgb, var(--purple-9) 52%, var(--white)), var(--slate-11) );
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}


/* =========================================
   VISUAL
   ========================================= */

.create-room-progress-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.create-room-orbit {
    position: relative;
    width: 110px;
    height: 110px;
}

    .create-room-orbit span {
        position: absolute;
        border-radius: 50%;
        border: 2px solid #7823dc;
    }

        .create-room-orbit span:nth-child(1) {
            inset: 0;
            opacity: 0.25;
            animation: create-room-orbit 2.2s linear infinite;
        }

        .create-room-orbit span:nth-child(2) {
            inset: 16px;
            border-top-color: transparent;
            animation: create-room-orbit 1.5s linear infinite reverse;
        }

        .create-room-orbit span:nth-child(3) {
            inset: 36px;
            background: #7823dc;
            border: 0;
            animation: create-room-pulse 1.4s ease-in-out infinite;
        }


/* =========================================
   COPY
   ========================================= */

.create-room-progress-copy {
    min-width: 0;
}

.create-room-progress-kicker {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.create-room-progress-copy h2 {
    margin: 0;
    color: var(--ink);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.2;
}

#create-room-progress-status {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}


/* =========================================
   PROGRESS BAR
   ========================================= */

.create-room-progress-bar {
    position: relative;
    overflow: hidden;
    width: 220px;
    max-width: 100%;
    height: 4px;
    margin-top: 18px;
    border-radius: 999px;
    background: color-mix( in srgb, var(--purple-1) 10%, var(--slate-11) );
}

    .create-room-progress-bar span {
        position: absolute;
        top: 0;
        left: -45%;
        width: 45%;
        height: 100%;
        border-radius: inherit;
        background: #7823dc;
        animation: create-room-progress 1.5s ease-in-out infinite;
    }


/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes create-room-progress {

    0% {
        left: -45%;
    }

    100% {
        left: 100%;
    }
}

@keyframes create-room-orbit {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes create-room-pulse {

    0%, 100% {
        transform: scale(0.85);
        opacity: 0.65;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    .create-room-progress-modal {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 24px;
        text-align: center;
    }

    .create-room-orbit {
        width: 90px;
        height: 90px;
    }

    .create-room-progress-bar {
        margin-left: auto;
        margin-right: auto;
    }
}

.create-room-success {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #7823dc;
    color: white;
    font-size: 42px;
    font-weight: 700;
    animation: create-room-success-pop 0.35s ease-out;
}

    .create-room-success[hidden] {
        display: none !important;
    }

@keyframes create-room-success-pop {

    0% {
        transform: scale(0.6);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}
.composer {
    width: calc(100% - 48px);
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.coach-thread .bubble {
    white-space: pre-line;
}


/* =========================================================
   ROOM BRIEF
   ========================================================= */

.room-brief-panel {
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px 24px;
    min-height: 330px;
}

.brief-heading {
    padding-bottom: 20px;
    border-bottom: 1px solid #e7e7eb;
}

    .brief-heading h2 {
        margin: 0 0 4px;
        font-size: 25px;
        font-weight: 500;
        line-height: 1.2;
        color: #252525;
    }

    .brief-heading p {
        margin: 0;
        font-size: 14px;
        color: #71717a;
    }


/* SUMMARY */

.brief-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    margin-bottom: 52px;
}

.brief-summary-item {
    min-width: 0;
    padding: 20px 20px 18px 0;
}

    .brief-summary-item + .brief-summary-item {
        border-left: 1px solid #e7e7eb;
        padding-left: 20px;
    }

.brief-summary-label {
    display: block;
    margin-bottom: 9px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c6c73;
}

.brief-summary-value {
    font-size: 14px;
    line-height: 1.5;
    color: #3c3c42;
}

    .brief-summary-value strong {
        display: block;
        font-weight: 500;
    }

.brief-audience-detail {
    display: block;
    margin-top: 3px;
    color: #6f6f77;
}


/* ROOM CONTENT */

.brief-content-section {
    margin-top: 10px;
}

.brief-content-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 20px;
}

    .brief-content-header h3 {
        margin: 0 0 5px;
        font-size: 18px;
        font-weight: 600;
        color: #34343a;
    }

    .brief-content-header p {
        max-width: 470px;
        margin: 0;
        font-size: 13px;
        line-height: 1.45;
        color: #686872;
    }

.brief-add-link-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 10px 14px;
    border: 1px solid #e4e4e8;
    border-radius: 8px;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #3f3f46;
    cursor: pointer;
}

    .brief-add-link-button:hover {
        background: #f8f8fa;
    }


/* MATERIAL TABLE */

.brief-material-heading {
    display: grid;
    grid-template-columns: 1fr 120px;
    padding-bottom: 9px;
    border-bottom: 1px solid #e7e7eb;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #66666e;
}

    .brief-material-heading span:last-child {
        text-align: right;
    }

.brief-material-empty {
    padding: 18px 0;
    font-size: 13px;
    color: #8a8a92;
}


/* MOBILE */

@media (max-width: 768px) {

    .room-brief-panel {
        padding: 22px 18px;
    }

    .brief-summary {
        grid-template-columns: 1fr;
        margin-bottom: 36px;
    }

    .brief-summary-item {
        padding: 18px 0;
    }

        .brief-summary-item + .brief-summary-item {
            border-left: 0;
            border-top: 1px solid #e7e7eb;
            padding-left: 0;
        }

    .brief-content-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .brief-material-heading {
        grid-template-columns: 1fr auto;
    }
}

.brief-material-list {
    display: flex;
    flex-direction: column;
}

.brief-material-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #ececf0;
}

.brief-material-name {
    font-size: 13px;
    font-weight: 600;
    color: #303036;
}

.brief-material-meta {
    margin-top: 4px;
    font-size: 11px;
    color: #8a8a92;
}

.brief-material-meeting {
    display: flex;
    justify-content: flex-end;
}

.brief-visibility-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border-radius: 999px;
    background: #f1e8fb;
    font-size: 11px;
    font-weight: 600;
    color: #7823dc;
}

    .brief-visibility-badge.muted {
        background: #f2f2f4;
        color: #6f6f77;
    }

.brief-visibility-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 126px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s ease;
}

    .brief-visibility-toggle.is-visible {
        border: 1px solid #b9d8d0;
        background: #f5fbf9;
        color: #3f625a;
    }

    .brief-visibility-toggle.is-hidden {
        border: 1px solid #d8d8de;
        background: #fff;
        color: #74747d;
    }

.brief-material-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.brief-material-action {
    border: 0;
    background: transparent;
    padding: 4px 0;
    font-size: 12px;
    font-weight: 500;
    color: #7823dc;
    cursor: pointer;
}

    .brief-material-action:hover {
        color: #681bc5;
    }

.brief-material-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 19px;
    font-weight: 300;
    line-height: 1;
    color: #8b8b92;
    cursor: pointer;
}

    .brief-material-delete:hover {
        color: #2f2f34;
    }


/* =========================================
   REPLACE ARTEFACT MODAL
   ========================================= */

.replace-artefact-modal {
    width: min(560px, calc(100vw - 40px));
    background: #ffffff;
    border: 1px solid #e8e8ed;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(25, 20, 35, 0.16), 0 4px 14px rgba(25, 20, 35, 0.06);
    overflow: hidden;
}


/* =========================================
   HEADER
   ========================================= */

.replace-artefact-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 24px 18px;
    border-bottom: 1px solid #eeeef2;
}

    .replace-artefact-header h2 {
        margin: 0;
        font-size: 18px;
        line-height: 1.3;
        font-weight: 650;
        color: #28282d;
    }

    .replace-artefact-header p {
        max-width: 430px;
        margin: 7px 0 0;
        font-size: 12px;
        line-height: 1.55;
        color: #777780;
    }


/* =========================================
   CLOSE BUTTON
   ========================================= */

.replace-artefact-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #777780;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

    .replace-artefact-close:hover {
        background: #f4f4f7;
        color: #28282d;
    }


/* =========================================
   BODY
   ========================================= */

.replace-artefact-body {
    padding: 22px 24px 24px;
}

    .replace-artefact-body > label {
        display: block;
        margin-bottom: 8px;
        font-size: 12px;
        font-weight: 600;
        color: #34343a;
    }


/* =========================================
   SHAREPOINT INPUT
   ========================================= */

#replace-artefact-sharepoint-url {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px solid #dcdce2;
    border-radius: 8px;
    background: #ffffff;
    color: #303036;
    font: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    #replace-artefact-sharepoint-url::placeholder {
        color: #a0a0a8;
    }

    #replace-artefact-sharepoint-url:focus {
        border-color: #9c63d8;
        box-shadow: 0 0 0 3px rgba(120, 35, 220, 0.08);
    }


/* =========================================
   RESULTS
   ========================================= */

.replace-artefact-results {
    margin-top: 20px;
}

.replace-artefact-results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 12px;
}

    .replace-artefact-results-heading strong {
        font-weight: 600;
        color: #34343a;
    }

    .replace-artefact-results-heading span {
        color: #8a8a92;
    }


/* =========================================
   FILE LIST
   ========================================= */

.replace-artefact-file-list {
    overflow: hidden;
    overflow-y: auto;
    max-height: 260px;
    border: 1px solid #d8c2ef;
    border-radius: 12px;
    background: linear-gradient( 135deg, color-mix( in srgb, var(--purple-9) 52%, var(--white) ), var(--slate-11) );
}


    /* =========================================
   FILE ROW
   ========================================= */

    .replace-artefact-file-list
    .meeting-file-row {
        display: grid;
        grid-template-columns: 18px 34px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        min-height: 58px;
        padding: 8px 16px;
        border-top: 1px solid rgba(120, 35, 220, 0.10);
        background: transparent;
        cursor: pointer;
        transition: background 0.15s ease;
    }


        .replace-artefact-file-list
        .meeting-file-row:first-child {
            border-top: 0;
        }


        .replace-artefact-file-list
        .meeting-file-row:hover {
            background: rgba(255, 255, 255, 0.22);
        }


        .replace-artefact-file-list
        .meeting-file-row:has( .meeting-file-checkbox:checked ) {
            background: transparent;
        }


    /* =========================================
   RADIO / SELECTION
   ========================================= */

    .replace-artefact-file-list
    .meeting-file-checkbox {
        width: 16px;
        height: 16px;
        margin: 0;
        accent-color: #7823dc;
        cursor: pointer;
    }


    /* =========================================
   FILE ICON
   ========================================= */

    .replace-artefact-file-list
    .meeting-file-icon {
        display: grid;
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        place-items: center;
        border-radius: 10px;
    }


        .replace-artefact-file-list
        .meeting-file-icon .ui-icon {
            width: 17px;
            height: 17px;
        }


    /* =========================================
   POWERPOINT ICON
   ========================================= */

    .replace-artefact-file-list
    .meeting-file-icon--presentation {
        background: color-mix( in srgb, var(--purple-9) 75%, var(--white) );
    }


        .replace-artefact-file-list
        .meeting-file-icon--presentation
        .ui-icon {
            filter: brightness(0) saturate(100%) invert(20%) sepia(93%) saturate(4268%) hue-rotate(263deg) brightness(88%) contrast(96%);
        }


    /* =========================================
   REFERENCE / WORD ICON
   ========================================= */

    .replace-artefact-file-list
    .meeting-file-icon--reference {
        background: #e8f3f7;
    }


        .replace-artefact-file-list
        .meeting-file-icon--reference
        .ui-icon {
            filter: brightness(0) saturate(100%) invert(36%) sepia(13%) saturate(786%) hue-rotate(153deg) brightness(89%) contrast(89%);
        }


    /* =========================================
   PDF ICON
   ========================================= */

    .replace-artefact-file-list
    .meeting-file-icon--pdf {
        background: #fff0f3;
    }


        .replace-artefact-file-list
        .meeting-file-icon--pdf
        .ui-icon {
            filter: brightness(0) saturate(100%) invert(45%) sepia(94%) saturate(3067%) hue-rotate(316deg) brightness(105%) contrast(101%);
        }


    /* =========================================
   FILE DETAILS
   ========================================= */

    .replace-artefact-file-list
    .meeting-file-details {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }


        .replace-artefact-file-list
        .meeting-file-details strong {
            overflow: hidden;
            color: #303036;
            font-size: 12px;
            font-weight: 600;
            text-overflow: ellipsis;
            white-space: nowrap;
        }


        .replace-artefact-file-list
        .meeting-file-details small {
            margin-top: 3px;
            color: #8a8a92;
            font-size: 11px;
        }


/* =========================================
   FOOTER
   ========================================= */

.replace-artefact-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #eeeef2;
    background: #fafafd;
}


    .replace-artefact-footer .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        padding: 8px 16px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 600;
        line-height: 1;
        cursor: pointer;
        transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    }


    .replace-artefact-footer .btn-light {
        border: 1px solid #dcdce2;
        background: #ffffff;
        color: #4f4f57;
    }


        .replace-artefact-footer
        .btn-light:hover {
            background: #f5f5f7;
            border-color: #ceced5;
        }


    .replace-artefact-footer
    .btn-primary {
        border: 1px solid #7823dc;
        background: #7823dc;
        color: #ffffff;
    }


        .replace-artefact-footer
        .btn-primary:hover {
            border-color: #681bc5;
            background: #681bc5;
        }


    .replace-artefact-footer
    .btn:disabled {
        opacity: 0.6;
        cursor: default;
    }


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    .replace-artefact-modal {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        overflow-y: auto;
    }


    .replace-artefact-header {
        padding: 20px 18px 16px;
    }


    .replace-artefact-body {
        padding: 20px 18px;
    }


    .replace-artefact-footer {
        padding: 14px 18px;
    }


    .replace-artefact-file-list {
        max-height: 220px;
    }
}


/* =========================================
   ANALYSING DOCUMENTS
   ========================================= */

.replace-artefact-loading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #d8c2ef;
    border-radius: 12px;
    background: linear-gradient( 135deg, color-mix( in srgb, var(--purple-9) 52%, var(--white) ), var(--slate-11) );
}

    .replace-artefact-loading[hidden] {
        display: none !important;
    }

.replace-artefact-loading-spinner {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 3px solid rgba(120, 35, 220, 0.16);
    border-top-color: #7823dc;
    border-radius: 50%;
    animation: replace-artefact-spin 0.8s linear infinite;
}

.replace-artefact-loading-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .replace-artefact-loading-copy strong {
        color: #303036;
        font-size: 12px;
        font-weight: 600;
    }

    .replace-artefact-loading-copy span {
        color: #777780;
        font-size: 11px;
    }

@keyframes replace-artefact-spin {

    to {
        transform: rotate(360deg);
    }
}

#replace-artefact-file-list .meeting-file-row {
    display: grid;
    grid-template-columns: 18px 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

#replace-artefact-file-list .meeting-file-select {
    justify-self: end;
    white-space: nowrap;
}

/* Add linked material - SharePoint field */

#add-artefact-link-stage {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

    #add-artefact-link-stage label {
        display: block;
        margin: 0;
    }

#add-artefact-sharepoint-url {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #d7d9e0;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    color: #2f3037;
    outline: none;
}

    #add-artefact-sharepoint-url::placeholder {
        color: #9a9ca5;
    }

    #add-artefact-sharepoint-url:focus {
        border-color: #7c3aed;
    }

/* =========================================================
   PERFORMANCE
   ========================================================= */

.performance-overview {
    background: #ffffff;
    border: 1px solid #dedee3;
    border-radius: 14px;
    padding: 28px 24px 30px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.performance-private-label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #4d4d54;
}

.performance-private-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #66666d;
}

.performance-score-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 28px;
}

.performance-score-caption {
    margin: 0;
    font-size: 12px;
    color: #55555d;
}

.performance-score {
    font-size: 58px;
    line-height: 0.9;
    font-weight: 400;
    letter-spacing: -3px;
    color: #7627ed;
}


.performance-tier-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #55555d;
}

    .performance-tier-heading strong {
        color: #303038;
    }

.performance-tier-scale {
    display: grid;
    grid-template-columns: 35fr 20fr 20fr 14fr 11fr;
    gap: 3px;
}

.performance-tier {
    min-height: 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7d7dc;
    border-radius: 8px;
    background: #f7f7f8;
    color: #696970;
}

    .performance-tier strong {
        font-size: 12px;
        line-height: 1.2;
    }

    .performance-tier span {
        margin-top: 2px;
        font-size: 10px;
    }

    .performance-tier.active {
        border-color: #c8a6ff;
        background: #e8d5ff;
        color: #7627ed;
    }

.performance-tier-message {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #5b5b62;
}

.performance-summary {
    margin: 40px 0 34px;
    max-width: 100%;
    font-size: 15px;
    line-height: 1.55;
    color: #505057;
}

.performance-divider {
    height: 1px;
    margin: 0 0 20px;
    background: #dedee3;
}

.performance-dimensions-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 34px;
}

    .performance-dimensions-heading h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        color: #292930;
    }

    .performance-dimensions-heading span {
        font-size: 12px;
        color: #626269;
    }

.performance-dimensions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 22px;
}

.performance-dimension {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    column-gap: 12px;
    row-gap: 8px;
    align-items: end;
}

.performance-dimension-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .performance-dimension-content strong {
        font-size: 12px;
        font-weight: 600;
        color: #292930;
    }

    .performance-dimension-content span {
        overflow: hidden;
        font-size: 12px;
        line-height: 1.35;
        color: #55555d;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.performance-dimension-score {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    text-align: right;
    font-size: 20px;
    line-height: 1;
    color: #7627ed;
}

.performance-dimension-bar {
    grid-column: 1 / -1;
    position: relative;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e5e7;
}

    .performance-dimension-bar > span {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient( 90deg, #7c2cf3, #d83fe8 );
    }

@media (max-width: 800px) {
    .performance-dimensions {
        grid-template-columns: 1fr;
    }

    .performance-tier-scale {
        grid-template-columns: repeat(5, 1fr);
    }

    .performance-score {
        font-size: 48px;
    }
}

.performance-dimension-score {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px;
    text-align: right;
}

.performance-current-score {
    font-size: 20px;
    line-height: 1;
    color: #7627ed;
}

.performance-prior-score {
    font-size: 12px;
    line-height: 1;
    color: #9a9aa1;
}

.performance-history {
    margin-top: 24px;
    background: #ffffff;
    border: 1px solid #dedee3;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.performance-history-heading {
    margin-bottom: 18px;
}

    .performance-history-heading h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
        color: #24242a;
    }

.performance-history-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70px auto;
    align-items: center;
    gap: 16px;
    padding: 16px 14px;
    border: 1px solid #d9e5df;
    border-radius: 12px;
}

    .performance-history-row + .performance-history-row {
        margin-top: 10px;
    }

.performance-history-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .performance-history-details strong {
        font-size: 16px;
        font-weight: 600;
        color: #24242a;
    }

    .performance-history-details span {
        font-size: 12px;
        color: #66666d;
    }

.performance-history-score {
    font-size: 20px;
    font-weight: 600;
    text-align: right;
    color: #7627ed;
}

.performance-history-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .performance-history-actions .btn {
        min-width: 82px;
        height: 40px;
        padding: 0 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #7627ed;
        border-radius: 10px;
        background: #ffffff;
        color: #7627ed;
        font-size: 12px;
        font-weight: 600;
        box-shadow: none;
    }

        .performance-history-actions .btn:hover,
        .performance-history-actions .btn:focus {
            border-color: #7627ed;
            background: #f7f1ff;
            color: #7627ed;
        }

@media (max-width: 700px) {

    .performance-history {
        padding: 18px;
    }

    .performance-history-row {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .performance-history-score {
        grid-column: 2;
        grid-row: 1;
    }

    .performance-history-actions {
        grid-column: 1 / -1;
    }
}

.performance-report-modal {
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #dedee3;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.performance-report-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 24px 18px;
    border-bottom: 1px solid #ececf0;
}

    .performance-report-modal-header .performance-private-label {
        margin-bottom: 8px;
    }

    .performance-report-modal-header h2 {
        margin: 0;
        font-size: 20px;
        font-weight: 600;
        color: #24242a;
    }

.performance-report-modal-close {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: #66666d;
    cursor: pointer;
}

    .performance-report-modal-close:hover {
        background: #f4f4f6;
        color: #24242a;
    }

.performance-report-modal-content {
    padding: 24px;
}

.performance-report-loading {
    padding: 40px 20px;
    text-align: center;
    font-size: 13px;
    color: #77777f;
}

@media (max-width: 600px) {

    .performance-report-modal {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }

    .performance-report-modal-header,
    .performance-report-modal-content {
        padding-left: 18px;
        padding-right: 18px;
    }
}

.room-panel {
    min-height: 0;
}

#room-panel-performance {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

#room-panel-brief {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

#room-panel-news {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}


#performance-transcript-modal-content {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 28px 24px;
}

.transcript-message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
}

.transcript-message--user {
    align-items: flex-end;
}

.transcript-message-header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    font-size: 12px;
    color: #66666d;
}

.transcript-message--user .transcript-message-header {
    color: #7627ed;
}

.transcript-message-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #eeeeef;
    color: #7627ed;
    font-size: 12px;
    font-weight: 600;
}

.transcript-message--user .transcript-message-avatar {
    background: #f1e7ff;
}

.transcript-message-bubble {
    max-width: 92%;
    padding: 16px 18px;
    border-radius: 14px;
    background: #f7f4ff;
    color: #303039;
    font-size: 14px;
    line-height: 1.65;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.transcript-message--user .transcript-message-bubble {
    background: #ffffff;
    border: 1px solid #d9b8ff;
    box-shadow: 0 2px 5px rgba(118, 39, 237, 0.05);
}

@media (max-width: 600px) {

    #performance-transcript-modal-content {
        padding: 18px;
    }

    .transcript-message-bubble {
        max-width: 100%;
        padding: 14px;
    }
}

:root {
    --tier-1: #E76F61; /* Coral - Developing */
    --tier-2: #169C9C; /* Teal - Progressing */
    --tier-3: #C044A1; /* Magenta - Confident */
    --tier-4: #7952B3; /* Purple - Strong */
    --tier-5: #C99625; /* Gold - Exceptional */
}

/* Default performance colour */
.performance-overview,
.performance-report-modal {
    --performance-color: var(--tier-1);
}

    /* Colour selected by tier */
    .performance-overview[data-tier="1"],
    .performance-report-modal[data-tier="1"] {
        --performance-color: var(--tier-1);
    }

    .performance-overview[data-tier="2"],
    .performance-report-modal[data-tier="2"] {
        --performance-color: var(--tier-2);
    }

    .performance-overview[data-tier="3"],
    .performance-report-modal[data-tier="3"] {
        --performance-color: var(--tier-3);
    }

    .performance-overview[data-tier="4"],
    .performance-report-modal[data-tier="4"] {
        --performance-color: var(--tier-4);
    }

    .performance-overview[data-tier="5"],
    .performance-report-modal[data-tier="5"] {
        --performance-color: var(--tier-5);
    }

    /* =========================================
   PERFORMANCE OVERVIEW — TIER COLOURS
   ========================================= */

    /* Overall readiness percentage */
    .performance-overview .performance-score {
        color: var(--performance-color);
    }

/* Each tier has its own colour */
.performance-tier[data-tier="1"] {
    --tier-color: var(--tier-1);
}

.performance-tier[data-tier="2"] {
    --tier-color: var(--tier-2);
}

.performance-tier[data-tier="3"] {
    --tier-color: var(--tier-3);
}

.performance-tier[data-tier="4"] {
    --tier-color: var(--tier-4);
}

.performance-tier[data-tier="5"] {
    --tier-color: var(--tier-5);
}


/*
.performance-tier {
    background: var(--tier-color);
    opacity:80%;
    border: 1px solid var(--tier-color);
    color: #ffffff;
}


    .performance-tier strong,
    .performance-tier span {
        color: #ffffff;
    }

    .performance-tier.active {
        background: var(--tier-color);
        border: 2px solid var(--tier-color);
        color: #ffffff;
        font-weight: 700;
        box-shadow: 0 0 0 3px color-mix( in srgb, var(--tier-color) 25%, transparent );
    }*/


.performance-tier {
    background: color-mix(in srgb, var(--tier-color) 18%, white);
    color: var(--tier-color);
}


    .performance-tier.active {
        background: color-mix(in srgb, var(--tier-color) 18%, white);
        color: var(--tier-color);
        font-weight: 700;
    }

/* Individual dimension colours */
.performance-dimension[data-tier="1"] {
    --dimension-color: var(--tier-1);
}

.performance-dimension[data-tier="2"] {
    --dimension-color: var(--tier-2);
}

.performance-dimension[data-tier="3"] {
    --dimension-color: var(--tier-3);
}

.performance-dimension[data-tier="4"] {
    --dimension-color: var(--tier-4);
}

.performance-dimension[data-tier="5"] {
    --dimension-color: var(--tier-5);
}

/* Dimension percentage */
.performance-dimension .performance-dimension-score {
    color: var(--dimension-color);
}

/* Dimension progress bar */
.performance-dimension .performance-dimension-bar > span {
    background: var(--dimension-color);
}

/* Subtle overall background */
.performance-overview {
    background: color-mix( in srgb, var(--performance-color) 4%, white );
}

.performance-tier-scale {
    position: relative;
    overflow: visible;
}

.performance-tier-marker {
    position: absolute;
    left: var(--marker-position);
    top: -8px;
    bottom: -8px;
    width: 2px;
    background: #7028e4;
    transform: translateX(-50%);
    z-index: 5;
    pointer-events: none;
}

    .performance-tier-marker::before {
        content: "";
        position: absolute;
        top: -5px;
        left: 50%;
        width: 6px;
        height: 6px;
        background: #7028e4;
        transform: translateX(-50%) rotate(45deg);
    }

.performance-tier:not(.is-reached) {
    background: #f3f4f6;
    color: #858b96;
}

#performance-report-modal
.performance-dimension[data-tier]
.performance-dimension-score,
#performance-report-modal
.performance-dimension[data-tier]
.performance-current-score {
    color: var(--dimension-color) !important;
}

[data-tier="1"].performance-history-score {
    color: var(--tier-1);
}

[data-tier="2"].performance-history-score {
    color: var(--tier-2);
}

[data-tier="3"].performance-history-score {
    color: var(--tier-3);
}

[data-tier="4"].performance-history-score {
    color: var(--tier-4);
}

[data-tier="5"].performance-history-score {
    color: var(--tier-5);
}