:root {
  color-scheme: light;
  --ink: #202b35;
  --muted: #67747e;
  --paper: #f4f2ec;
  --surface: #fff;
  --line: #dfe2dc;
  --blue: #4566e8;
  --blue-hover: #3454d0;
  --coral: #e66e50;
  --green: #287a62;
  --red: #b64036;
  --stage: #111820;
  --stage-surface: #1b252f;
  --focus: #4566e8;
  --page-max: 1500px;
  --sidebar: 240px;
  --content-gap: 24px;
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 14px 38px rgb(32 43 53 / 6%), 0 2px 7px rgb(32 43 53 / 3%);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; scrollbar-color: #aab1ae transparent; scrollbar-width: thin; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: var(--paper); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, dialog:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 68%, white);
  outline-offset: 3px;
}
button:disabled { cursor: not-allowed; opacity: .62; }
::selection { color: white; background: var(--blue); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-variant-numeric: tabular-nums; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.boot-state { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 15px; color: var(--muted); }
.boot-state p { margin: 0; font-size: .95rem; }
.brand-mark { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 3px; width: 38px; height: 38px; overflow: hidden; border-radius: 11px; background: var(--ink); }
.brand-mark::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--coral); content: ""; }
.brand-mark i { width: 3px; border-radius: 5px; background: #fff; }
.brand-mark i:nth-child(1) { height: 9px; opacity: .55; }
.brand-mark i:nth-child(2) { height: 19px; }
.brand-mark i:nth-child(3) { height: 13px; opacity: .75; }

.owner-shell { min-height: 100vh; }
.topbar { height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 4vw, 58px); border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 78%); }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; }
.brand-name { font-size: 1.08rem; font-weight: 780; letter-spacing: -.045em; }
.brand-name span { color: var(--coral); }
.topbar-tools { display: flex; align-items: center; gap: 20px; }
.account-chip { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--muted); font-size: .84rem; }
.account-dot { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border: 1px solid #d8d9d3; border-radius: 50%; background: #e9e4d9; color: #615642; font-size: .72rem; font-weight: 750; }
.connection-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 30px; color: var(--muted); background: #fff; font-size: .75rem; font-weight: 650; white-space: nowrap; }
.connection-pill::before { width: 7px; height: 7px; border-radius: 50%; background: #aaa; content: ""; }
.connection-pill.is-ready::before { background: var(--green); box-shadow: 0 0 0 3px rgb(40 122 98 / 12%); }
.connection-pill.is-offline::before { background: var(--coral); }
.button {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 0 16px; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
  text-decoration: none; font-size: .9rem; font-weight: 680; transition: background-color .16s ease, border-color .16s ease, transform .16s ease, color .16s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button.is-busy { cursor: progress; }
.button.is-busy::before { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; content: ""; animation: button-spin .65s linear infinite; }
@keyframes button-spin { to { transform: rotate(360deg); } }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 4px 10px rgb(69 102 232 / 17%); }
.button-primary:hover:not(:disabled) { background: var(--blue-hover); }
.button-secondary { color: var(--ink); border-color: var(--line); background: #fff; }
.button-secondary:hover:not(:disabled), .button-quiet:hover:not(:disabled) { border-color: #c2c8c2; background: #f7f7f4; }
.button-quiet { color: var(--muted); border-color: transparent; background: transparent; }
.button-danger { color: #fff; background: var(--red); }
.button-danger:hover:not(:disabled) { background: #9f352d; }
.button-small { min-height: 40px; padding: 0 12px; font-size: .82rem; }
.icon-button { width: 44px; min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; }
.icon-button:hover:not(:disabled) { color: var(--ink); border-color: var(--line); background: #fff; }

.workspace { width: min(100%, var(--page-max)); min-height: calc(100vh - 70px); display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); margin: 0 auto; }
.sidebar { display: flex; flex-direction: column; padding: 28px 18px 22px; border-right: 1px solid var(--line); }
.sidebar-caption { margin: 5px 10px 12px; color: #8b928c; font-size: .67rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.nav-link { min-height: 45px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 8px; color: #69737b; text-decoration: none; font-size: .89rem; font-weight: 640; }
.nav-link:hover { color: var(--ink); background: rgb(255 255 255 / 62%); }
.nav-link.is-active { color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgb(32 43 53 / 5%); }
.nav-link.is-active .icon { color: var(--blue); }
.sidebar-foot { margin-top: auto; padding: 18px 8px 0; border-top: 1px solid var(--line); }
.owner-note { color: var(--muted); font-size: .76rem; line-height: 1.6; }
.owner-note strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: .81rem; }
.main-content { min-width: 0; padding: clamp(28px, 4vw, 58px) clamp(22px, 4vw, 58px) 64px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 30px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; color: var(--muted); font-size: .73rem; font-weight: 720; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { width: 20px; height: 2px; background: var(--coral); content: ""; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 9px; font-size: clamp(2rem, 3.3vw, 2.85rem); line-height: 1.08; letter-spacing: -.052em; font-weight: 720; }
.page-subtitle { max-width: 630px; margin: 0; color: var(--muted); font-size: .99rem; line-height: 1.6; }
.today-mark { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgb(255 255 255 / 70%); }
.today-mark strong { display: block; font-size: .91rem; font-weight: 700; }
.today-mark span { color: var(--muted); font-size: .72rem; }
.today-number { display: grid; width: 41px; height: 41px; place-items: center; border-radius: 9px; color: white; background: var(--ink); font: 700 1.1rem ui-monospace, monospace; }
.dashboard-grid { display: grid; grid-template-columns: minmax(310px, .88fr) minmax(380px, 1.12fr); align-items: start; gap: var(--content-gap); }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 23px 24px 0; }
.panel-heading { margin: 0 0 5px; font-size: 1.05rem; letter-spacing: -.02em; }
.panel-hint { margin: 0; color: var(--muted); font-size: .81rem; line-height: 1.5; }
.schedule-form { padding: 22px 24px 24px; }
.field { display: grid; gap: 7px; min-width: 0; margin-bottom: 16px; }
.field label { color: #39444b; font-size: .8rem; font-weight: 680; }
.input, .textarea, .select { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid #d4d9d3; border-radius: var(--radius-sm); color: var(--ink); background: #fff; font-size: .91rem; transition: border-color .15s ease, box-shadow .15s ease; }
.textarea { min-height: 88px; padding: 12px 13px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: #9aa29f; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--red); }
.input:focus, .textarea:focus, .select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(69 102 232 / 12%); outline: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field-help { margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.45; }
.guest-entry-help { margin-top: -7px; margin-bottom: 17px; }
.field-error { min-height: 0; margin: 0; color: var(--red); font-size: .76rem; line-height: 1.4; }
.field-error:empty { display: none; }
.form-alert { margin-bottom: 15px; padding: 11px 13px; border: 1px solid #ecc5bf; border-radius: 8px; color: #8e312a; background: #fff5f3; font-size: .84rem; line-height: 1.5; }
.form-alert:empty { display: none; }
.form-submit { width: 100%; margin-top: 2px; }
.privacy-note { display: flex; align-items: flex-start; gap: 8px; margin: 15px 0 0; color: var(--muted); font-size: .73rem; line-height: 1.55; }
.privacy-note .icon { width: 16px; height: 16px; color: var(--green); }
.meeting-panel { overflow: hidden; }
.meeting-list { display: grid; padding: 9px 20px 18px; }
.archive-list > summary { list-style: none; cursor: pointer; }
.archive-list > summary::-webkit-details-marker { display: none; }
.archive-list[open] > summary { margin-bottom: 3px; }
.meeting-group-title { display: flex; align-items: center; gap: 9px; margin: 14px 5px 9px; color: var(--muted); font-size: .71rem; font-weight: 740; letter-spacing: .08em; text-transform: uppercase; }
.meeting-group-title span { display: grid; min-width: 22px; height: 22px; place-items: center; padding: 0 6px; border-radius: 20px; color: #5b6670; background: #f0f1ed; font: 650 .68rem ui-monospace, monospace; }
.meeting-card { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 15px; padding: 15px 5px; border-top: 1px solid #ebede8; }
.meeting-card:first-of-type { border-top: 0; }
.date-rail { position: relative; display: grid; align-content: start; justify-items: center; padding: 8px 3px 7px; border-radius: 8px; background: #f7f5ef; }
.date-rail::before { position: absolute; inset: 0 auto 0 0; width: 3px; border-radius: 8px 0 0 8px; background: var(--coral); content: ""; }
.date-rail .month { color: var(--coral); font-size: .65rem; font-weight: 780; letter-spacing: .09em; text-transform: uppercase; }
.date-rail .day { margin-top: 1px; font: 720 1.48rem/1.2 ui-monospace, monospace; letter-spacing: -.08em; }
.meeting-info { min-width: 0; padding-top: 1px; }
.meeting-time { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; color: var(--muted); font-size: .74rem; }
.meeting-time .mono { color: #48555e; font-weight: 650; }
.meeting-title { overflow-wrap: anywhere; margin: 0 0 10px; font-size: .94rem; font-weight: 720; letter-spacing: -.018em; }
.meeting-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.text-action { min-height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; border: 1px solid transparent; border-radius: 7px; color: #5c6870; background: transparent; cursor: pointer; text-decoration: none; font-size: .73rem; font-weight: 660; }
.text-action .icon { width: 15px; height: 15px; }
.text-action:hover { color: var(--ink); border-color: var(--line); background: #fafaf8; }
.text-action.is-danger:hover { color: var(--red); border-color: #f0d5d1; background: #fff8f7; }
.meeting-link { overflow: hidden; max-width: 100%; margin: 8px 0 0; color: #68747b; font: .68rem ui-monospace, monospace; text-overflow: ellipsis; white-space: nowrap; }
.empty-state { display: grid; justify-items: center; padding: 48px 24px 54px; text-align: center; }
.empty-mark { display: grid; width: 52px; height: 52px; place-items: center; margin-bottom: 15px; border: 1px solid #e4e3dc; border-radius: 16px; color: var(--blue); background: #faf9f5; }
.empty-mark .icon { width: 23px; height: 23px; }
.empty-state h3 { margin: 0 0 6px; font-size: .96rem; }
.empty-state p { max-width: 270px; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.setup-banner { display: flex; align-items: flex-start; gap: 12px; margin-top: 19px; padding: 14px 16px; border: 1px solid #ead6bf; border-radius: 10px; background: #fffaf2; color: #674c31; }
.setup-banner .icon { width: 18px; height: 18px; margin-top: 1px; color: #b27634; }
.setup-banner strong { display: block; margin-bottom: 3px; font-size: .81rem; }
.setup-banner p { margin: 0; font-size: .77rem; line-height: 1.5; }
.setup-banner[hidden] { display: none; }
.toast { position: fixed; z-index: 20; right: 24px; bottom: 22px; max-width: min(430px, calc(100vw - 32px)); padding: 13px 16px; transform: translateY(12px); border: 1px solid #cfe0d7; border-radius: 9px; color: #1d604b; background: #f1faf5; box-shadow: 0 8px 28px rgb(24 52 42 / 12%); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; font-size: .86rem; }
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast.is-error { border-color: #ecc5bf; color: #8e312a; background: #fff5f3; }
.confirm-dialog { width: min(440px, calc(100vw - 32px)); padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); background: #fff; box-shadow: 0 24px 80px rgb(11 19 27 / 25%); }
.confirm-dialog::backdrop { background: rgb(18 27 35 / 58%); backdrop-filter: blur(2px); }
.dialog-mark { display: grid; width: 40px; height: 40px; place-items: center; margin-bottom: 15px; border-radius: 12px; color: var(--red); background: #fff0ed; font: 750 1.15rem ui-monospace, monospace; }
.confirm-dialog h2 { margin-bottom: 8px; font-size: 1.23rem; letter-spacing: -.035em; }
.confirm-dialog p { margin-bottom: 22px; color: var(--muted); font-size: .87rem; line-height: 1.6; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; }

.login-page, .guest-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(440px, .85fr); background: var(--paper); }
.login-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; min-height: 100vh; padding: 36px clamp(28px, 6vw, 82px) 36px; color: #f8f7f2; background: var(--ink); }
.login-story::after { position: absolute; right: -170px; bottom: 8%; width: 440px; height: 440px; border: 1px solid rgb(255 255 255 / 9%); border-radius: 50%; box-shadow: 0 0 0 42px rgb(255 255 255 / 2%), 0 0 0 85px rgb(255 255 255 / 2%); content: ""; pointer-events: none; }
.login-story .brand { position: relative; z-index: 1; }
.login-story .brand-name { color: white; }
.login-story-content { position: relative; z-index: 1; max-width: 530px; margin: 70px 0; }
.login-story-content .eyebrow { color: #b8c1c8; }
.login-story-content h1 { max-width: 500px; margin-bottom: 18px; font-size: clamp(2.8rem, 5.7vw, 5.2rem); line-height: .98; letter-spacing: -.065em; }
.login-story-content h1 em { color: #f3a181; font-style: normal; }
.login-story-content p { max-width: 420px; color: #bac3c8; font-size: 1rem; line-height: 1.7; }
.story-signal { display: inline-flex; align-items: center; gap: 9px; margin-top: 10px; color: #d8dddc; font-size: .76rem; letter-spacing: .09em; text-transform: uppercase; }
.story-signal i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgb(230 110 80 / 17%); }
.login-foot { position: relative; z-index: 1; color: #96a2a8; font-size: .73rem; }
.login-panel-wrap { display: grid; place-items: center; padding: 36px; background: var(--paper); }
.login-panel { width: min(100%, 420px); padding: clamp(25px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.login-panel h2 { margin: 0 0 8px; font-size: 1.55rem; letter-spacing: -.045em; }
.login-panel > p { margin: 0 0 25px; color: var(--muted); font-size: .87rem; line-height: 1.55; }
.login-panel .field { margin-bottom: 17px; }
.login-panel .form-submit { margin-top: 6px; }
.login-safety { display: flex; align-items: flex-start; gap: 8px; margin: 19px 0 0; padding-top: 15px; border-top: 1px solid #eceee9; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.login-safety .icon { width: 16px; height: 16px; color: var(--green); }

.guest-entry-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 22px 16px; background: var(--paper); }
.guest-panel-wrap { display: grid; place-items: center; padding: 36px; background: #f4f2ec; }
.guest-panel { width: min(100%, 430px); padding: clamp(25px, 4vw, 38px); border: 1px solid #e0e1db; border-radius: var(--radius-lg); background: white; box-shadow: 0 14px 40px rgb(0 0 0 / 13%); }
.guest-entry-page .guest-panel { padding: clamp(24px, 5vw, 34px); box-shadow: var(--shadow-card); }
.guest-panel .brand { margin-bottom: 28px; }
.guest-panel h1 { margin: 7px 0 8px; font-size: clamp(1.65rem, 5vw, 2.1rem); line-height: 1.12; letter-spacing: -.045em; overflow-wrap: anywhere; }
.guest-panel h2 { margin: 0 0 8px; font-size: 1.2rem; letter-spacing: -.04em; }
.guest-eyebrow { margin: 0; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.guest-time { margin: 0 0 22px; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.guest-panel > p:not(.guest-eyebrow):not(.guest-time) { margin: 0 0 22px; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.guest-panel .form-submit { margin-top: 2px; }
.guest-unavailable { display: flex; gap: 10px; margin-bottom: 15px; padding: 12px; border: 1px solid #ead6bf; border-radius: 8px; color: #674c31; background: #fffaf2; font-size: .8rem; line-height: 1.5; }
.guest-unavailable[hidden] { display: none; }

.gmail-connect-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; margin: 8px 0 17px; }
.mail-delivery-notice { margin: -1px 0 17px; padding: 10px 13px; border: 1px solid #cfe0d7; border-radius: 8px; color: #1d604b; background: #f1faf5; font-size: .82rem; line-height: 1.5; }
.mail-delivery-notice.is-error { border-color: #ecc5bf; color: #8e312a; background: #fff5f3; }

.room-shell { height: 100vh; height: 100dvh; min-height: 0; display: flex; flex-direction: column; overflow: hidden; color: #f7f7f4; background: var(--stage); }
.room-topbar { min-height: 58px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px clamp(16px, 3vw, 36px); border-bottom: 1px solid rgb(255 255 255 / 9%); }
.room-topbar .brand-name { color: white; }
.room-title-wrap { min-width: 0; flex: 1; padding-left: clamp(12px, 2vw, 24px); border-left: 1px solid rgb(255 255 255 / 15%); }
.room-title { overflow: hidden; margin: 0 0 3px; font-size: .9rem; font-weight: 690; text-overflow: ellipsis; white-space: nowrap; }
.room-subtitle { margin: 0; color: #9ba8b0; font-size: .72rem; }
.room-status { display: inline-flex; align-items: center; gap: 8px; color: #b5c1c1; font-size: .73rem; white-space: nowrap; }
.room-status::before { width: 7px; height: 7px; border-radius: 50%; background: #75c59b; box-shadow: 0 0 0 3px rgb(117 197 155 / 12%); content: ""; }
.room-main { width: 100%; flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 0 auto; overflow: hidden; padding: 10px clamp(10px, 2vw, 28px) 0; }
.participant-count { display: inline-flex; align-items: center; gap: 7px; }
.participant-count .icon { width: 16px; height: 16px; color: #9dabb1; }
.video-grid { min-width: 0; flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); grid-auto-rows: minmax(0, 1fr); align-content: stretch; gap: 12px; overflow: hidden; }
#video-grid[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.video-tile { position: relative; display: grid; width: 100%; min-width: 0; min-height: 0; overflow: hidden; place-items: center; border: 1px solid rgb(255 255 255 / 10%); border-radius: 13px; background: radial-gradient(ellipse at 50% 45%, #34424c, #202b34 66%, #19222a); }
.video-tile:only-child { width: min(100%, 1000px); justify-self: center; }
.video-tile.is-local { border-color: rgb(230 110 80 / 72%); box-shadow: inset 0 0 0 1px rgb(230 110 80 / 22%); }
.video-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #101820; }
.video-tile.is-screen video { object-fit: contain; }
.video-placeholder { display: grid; justify-items: center; gap: 11px; color: #bac5c9; font-size: .82rem; }
.avatar-placeholder { display: grid; width: 74px; height: 74px; place-items: center; border: 1px solid rgb(255 255 255 / 12%); border-radius: 50%; color: white; background: rgb(255 255 255 / 9%); font-size: 1.32rem; font-weight: 700; }
.tile-name { position: absolute; z-index: 1; right: 11px; bottom: 11px; max-width: calc(100% - 22px); overflow: hidden; padding: 7px 10px; border: 1px solid rgb(255 255 255 / 8%); border-radius: 6px; color: #fff; background: rgb(17 24 32 / 78%); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.tile-live-mark { position: absolute; z-index: 1; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 5px; color: #fff; background: rgb(17 24 32 / 72%); font-size: .63rem; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.tile-live-mark::before { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); content: ""; }
.room-alert { margin: 12px auto 0; padding: 10px 13px; border: 1px solid rgb(239 150 132 / 35%); border-radius: 8px; color: #f4c6bc; background: rgb(141 48 38 / 20%); font-size: .8rem; }
.room-alert:empty { display: none; }
.room-alert[hidden] { display: none; }
.room-controls-wrap { z-index: 3; flex: 0 0 auto; display: flex; justify-content: center; padding: 8px 0 max(5px, env(safe-area-inset-bottom)); }
.room-controls { width: min(100%, 470px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 6px; border: 1px solid rgb(255 255 255 / 11%); border-radius: 13px; background: #202b34; box-shadow: 0 12px 38px rgb(0 0 0 / 28%); }
.room-control { width: 100%; min-width: 0; min-height: 58px; display: grid; justify-items: center; align-content: center; gap: 5px; padding: 5px 3px; border: 1px solid transparent; border-radius: 9px; color: #e0e5e5; background: transparent; cursor: pointer; font-size: .66rem; }
.room-control .icon { width: 20px; height: 20px; }
.room-control:hover:not(:disabled) { background: rgb(255 255 255 / 8%); }
.room-control[aria-pressed="true"] { color: white; background: rgb(255 255 255 / 12%); }
.room-control.is-off { color: #ffb7a6; background: rgb(182 64 54 / 28%); }
.room-control.is-share { color: #b9c8ff; }
.room-control.is-end { margin-left: 0; color: #fff; background: var(--red); }
.room-control.is-end:hover { background: #9f352d; }

@media (max-width: 1100px) {
  .workspace { --sidebar: 206px; --content-gap: 16px; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
  .dashboard-grid { grid-template-columns: minmax(290px, .92fr) minmax(310px, 1.08fr); gap: var(--content-gap); }
  .main-content { padding-right: 28px; padding-left: 28px; }
}
@media (max-width: 900px) {
  .workspace { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; align-items: center; gap: 7px; padding: 11px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-caption, .sidebar-foot { display: none; }
  .nav-link { min-height: 42px; }
  .dashboard-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .login-page, .guest-page { grid-template-columns: minmax(0, 1fr) minmax(370px, .9fr); }
}
@media (max-width: 720px) {
  .topbar { height: 62px; padding: 0 17px; }
  .topbar-tools { gap: 8px; }
  .account-chip > span:last-child { display: none; }
  .connection-pill { min-height: 31px; padding: 0 9px; font-size: .68rem; }
  .workspace { min-height: calc(100vh - 62px); }
  .sidebar { overflow-x: auto; padding: 8px 12px; }
  .nav-link { flex: 0 0 auto; min-height: 39px; padding: 0 10px; font-size: .81rem; }
  .main-content { padding: 27px 16px 42px; }
  .page-heading { align-items: flex-start; margin-bottom: 20px; }
  .page-heading .today-mark { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .panel-head { padding: 20px 19px 0; }
  .schedule-form { padding: 19px; }
  .meeting-list { padding: 8px 14px 14px; }
  .login-page, .guest-page { grid-template-columns: 1fr; }
  .login-story, .guest-story { min-height: auto; padding: 22px 23px 25px; }
  .login-story-content, .guest-story-content { margin: 45px 0 30px; padding: 0; }
  .login-story-content h1, .guest-story-content h1 { max-width: 500px; font-size: clamp(2.6rem, 12vw, 4.1rem); }
  .login-story-content p, .guest-story-content p { max-width: 520px; }
  .login-foot { display: none; }
  .login-panel-wrap, .guest-panel-wrap { padding: 22px 16px 35px; }
  .login-panel, .guest-panel { padding: 24px; }
}
@media (max-width: 520px) {
  .account-chip { display: none; }
  .page-heading h1 { font-size: 2.15rem; }
  .field-row { grid-template-columns: 1fr 1fr; gap: 9px; }
  .input, .select { padding: 0 10px; font-size: .85rem; }
  .meeting-card { grid-template-columns: 52px minmax(0, 1fr); gap: 11px; padding: 13px 2px; }
  .meeting-actions { gap: 2px; }
  .text-action { min-height: 39px; padding: 0 7px; font-size: .7rem; }
  .room-topbar { min-height: 54px; padding: 7px 10px; gap: 9px; }
  .room-topbar .brand { gap: 0; }
  .room-topbar .brand-mark { width: 31px; height: 31px; }
  .room-topbar .brand-name { display: none; }
  .room-title-wrap { padding-left: 9px; }
  .room-title { font-size: .78rem; }
  .room-subtitle { font-size: .61rem; }
  .room-status { font-size: 0; gap: 0; }
  .room-status::before { width: 7px; height: 7px; }
  .participant-count { gap: 4px; font-size: .66rem; white-space: nowrap; }
  .participant-count .icon { width: 14px; height: 14px; }
  .room-main { padding: 8px 8px 0; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #video-grid[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
  .video-tile { border-radius: 9px; }
  .avatar-placeholder { width: 48px; height: 48px; font-size: 1rem; }
  .video-placeholder { gap: 7px; font-size: .68rem; }
  .tile-name { right: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 4px 6px; font-size: .61rem; }
  .tile-live-mark { top: 6px; left: 6px; padding: 4px 6px; font-size: .55rem; }
  .room-controls-wrap { padding-top: 7px; }
  .room-controls { gap: 3px; padding: 4px; border-radius: 11px; }
  .room-control { min-height: 53px; gap: 3px; padding: 4px 1px; font-size: .57rem; }
  .room-control .icon { width: 18px; height: 18px; }
  .confirm-dialog { padding: 22px; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
