:root {
  --bg: #101113;
  --bg-2: #141518;
  --surface: #181a1e;
  --surface-2: #1d1f24;
  --surface-3: #23262c;
  --surface-soft: rgba(24,26,30,.92);
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.13);
  --text: #f3f3f4;
  --text-2: #b5b8bf;
  --text-3: #787c85;
  --accent: #d62d3a;
  --accent-hover: #e13b47;
  --accent-soft: rgba(214,45,58,.13);
  --danger: #e34c57;
  --success: #53b37b;
  --warning: #d3a34e;
  --shadow: 0 20px 65px rgba(0,0,0,.32);
  --radius: 12px;
  --radius-lg: 18px;
  --sidebar: 278px;
  --topbar: 86px;
  --user-accent: #d62d3a;
}

html[data-theme="light"] {
  --bg: #e9e9e9;
  --bg-2: #f1f1f2;
  --surface: #f8f8f8;
  --surface-2: #f0f0f1;
  --surface-3: #e6e6e8;
  --surface-soft: rgba(248,248,248,.94);
  --border: rgba(20,20,22,.09);
  --border-strong: rgba(20,20,22,.15);
  --text: #17181b;
  --text-2: #52565e;
  --text-3: #858992;
  --accent-soft: rgba(214,45,58,.10);
  --shadow: 0 22px 60px rgba(34,34,36,.13);
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { color: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 70%, white); outline-offset: 2px; }
[hidden] { display: none !important; }

.boot-screen {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: #111214; transition: opacity .2s ease, visibility .2s ease;
}
.boot-screen.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-line { width: 160px; height: 2px; margin-top: 16px; background: #2b2c30; overflow: hidden; position: relative; }
.boot-line::after { content: ""; position: absolute; inset: 0; width: 45%; background: #d62d3a; animation: boot 1s ease-in-out infinite; }
@keyframes boot { 0%{ transform: translateX(-120%);} 100%{ transform: translateX(330%);} }

.brand-mark { font-size: 20px; font-weight: 800; letter-spacing: -.04em; color: var(--text); }
.brand-mark span { color: var(--accent); }
.brand-mark--large { font-size: 28px; }
.panel-solid { background: var(--surface-soft); border: 1px solid var(--border); box-shadow: var(--shadow); }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow i { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); display: inline-block; }
.live-dot { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50%{ opacity: .35; transform: scale(.78);} }

.auth-view { position: fixed; inset: 0; overflow: auto; background: #0d0e10; }
.auth-backdrop { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(8,9,11,.72) 0%, rgba(8,9,11,.86) 50%, rgba(8,9,11,.72) 100%),
  url('/assets/tstudio-background.png') center/cover no-repeat; filter: saturate(.72) contrast(1.02); }
.auth-layout { position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(360px, 470px); align-items: center; gap: clamp(40px, 8vw, 130px); max-width: 1380px; margin: 0 auto; padding: 70px; }
.auth-copy { max-width: 640px; padding-left: 3vw; }
.auth-copy .eyebrow { margin: 92px 0 20px; color: #92949a; }
.auth-copy h1 { margin: 0; font-size: clamp(44px, 5.4vw, 78px); line-height: .98; letter-spacing: -.055em; color: #f4f4f4; }
.auth-copy h1 b { color: #d62d3a; font-weight: 800; }
.auth-copy p { margin: 24px 0 0; max-width: 500px; color: #b9bbc0; line-height: 1.65; font-size: 16px; }
.auth-card { border-radius: 16px; padding: 34px; background: rgba(20,21,24,.95); color: #f4f4f4; }
.auth-card__head h2, .settings-card__head h2 { margin: 0; font-size: 26px; letter-spacing: -.025em; }
.auth-card__head p, .settings-card__head p { margin: 8px 0 26px; color: var(--text-2); font-size: 13px; line-height: 1.55; }
.auth-card .field span { color: #9b9ea6; }
.auth-card input { background: #111215; color: #f4f4f4; border-color: rgba(255,255,255,.09); }
.auth-card input::placeholder { color: #5e6169; }
.auth-foot { border-top: 1px solid rgba(255,255,255,.07); margin-top: 24px; padding-top: 18px; color: #686b73; font-size: 11px; }

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > span, .form-section > label { font-size: 10px; color: var(--text-3); letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }
.field input, .field select, .join-inline input, .form-section input[type="color"] {
  width: 100%; height: 43px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-2); color: var(--text); padding: 0 12px; outline: none; transition: border-color .13s, box-shadow .13s, background .13s;
}
.field input:focus, .field select:focus, .join-inline input:focus { border-color: color-mix(in srgb, var(--accent) 65%, var(--border)); box-shadow: 0 0 0 3px var(--accent-soft); }
.password-row { display: grid; grid-template-columns: 1fr 43px; gap: 7px; }
.password-row .icon-button { width: 43px; height: 43px; }
.check-row { display: flex; align-items: center; gap: 10px; color: #a7a9ae; font-size: 12px; margin: 4px 0 20px; cursor: pointer; }
.check-row input { accent-color: var(--accent); }
.form-error { min-height: 18px; margin: -7px 0 8px; color: #ef7580; font-size: 12px; }

.primary-button, .secondary-button, .quiet-button, .icon-button, .code-chip {
  border: 0; cursor: pointer; transition: background .13s, border-color .13s, transform .08s, opacity .13s;
}
.primary-button:active, .secondary-button:active, .quiet-button:active, .icon-button:active { transform: translateY(1px); }
.primary-button { min-height: 42px; padding: 0 17px; border-radius: 8px; background: var(--accent); color: white; font-weight: 750; font-size: 13px; }
.primary-button:hover { background: var(--accent-hover); }
.secondary-button { min-height: 38px; padding: 0 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 700; }
.secondary-button:hover, .quiet-button:hover, .icon-button:hover { background: var(--surface-3); border-color: var(--border-strong); }
.quiet-button { min-height: 36px; padding: 0 12px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text-2); font-size: 12px; font-weight: 650; }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text-2); }
.full { width: 100%; }
.danger-text { color: #e46a73; }

.app-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0,1fr); height: 100vh; background: var(--bg); }
.sidebar { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 94%, transparent); }
.sidebar__brand { height: var(--topbar); display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--border); }
.sidebar__brand small { font-size: 8px; letter-spacing: .18em; color: var(--text-3); }
.nav-stack { padding: 14px 12px 6px; display: grid; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 38px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text-2); cursor: pointer; padding: 0 11px; font-weight: 650; font-size: 12px; text-align: left; }
.nav-item span { width: 19px; text-align: center; color: var(--text-3); }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.is-active { background: var(--accent-soft); color: var(--text); border-color: color-mix(in srgb, var(--accent) 20%, transparent); }
.nav-item.is-active span { color: var(--accent); }
.sidebar__section-title { display: flex; justify-content: space-between; padding: 17px 20px 10px; color: var(--text-3); font-weight: 800; letter-spacing: .12em; font-size: 9px; }
.sidebar__section-title small { text-transform: none; letter-spacing: 0; font-weight: 600; }
.contact-list { flex: 1; min-height: 0; padding: 0 10px 10px; }
.scroll-area { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.contact { display: grid; grid-template-columns: 38px minmax(0,1fr) 31px; align-items: center; gap: 10px; min-height: 54px; padding: 7px 8px; border-radius: 9px; border: 1px solid transparent; cursor: default; }
.contact:hover { background: var(--surface-2); }
.contact__text { min-width: 0; }
.contact__text strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 720; }
.contact__text small { display: flex; align-items: center; gap: 6px; margin-top: 2px; color: var(--text-3); font-size: 10px; }
.call-contact { opacity: 0; width: 31px; height: 31px; }
.contact:hover .call-contact, .contact.is-online .call-contact { opacity: 1; }
.presence-dot { display: inline-block; width: 7px; height: 7px; border-radius: 999px; background: #666a72; }
.presence-dot.online { background: var(--success); }
.self-card { height: 66px; padding: 10px 13px; border-top: 1px solid var(--border); display: grid; grid-template-columns: 38px minmax(0,1fr) 34px; gap: 10px; align-items: center; background: var(--surface-2); }
.self-card__text { min-width: 0; }
.self-card__text strong { display: block; font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.self-card__text small { display: flex; align-items: center; gap: 6px; margin-top: 2px; color: var(--text-3); font-size: 9px; }

.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border-strong); display: grid; place-items: center; overflow: hidden; color: white; font-size: 11px; font-weight: 800; position: relative; flex: 0 0 auto; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar::after { content: ""; position: absolute; inset: -1px; border: 2px solid var(--avatar-accent, transparent); border-radius: inherit; pointer-events: none; }
.avatar--xl { width: 92px; height: 92px; font-size: 25px; border-width: 3px; }
.avatar--xxl { width: 110px; height: 110px; font-size: 28px; margin: 0 auto 22px; }

.workspace { min-width: 0; position: relative; overflow: hidden; display: grid; grid-template-rows: var(--topbar) minmax(0,1fr); background: var(--bg); }
.workspace::before { content: ""; position: absolute; inset: var(--topbar) 0 0; pointer-events: none; background:
  linear-gradient(90deg, color-mix(in srgb, var(--bg) 92%, transparent), color-mix(in srgb, var(--bg) 70%, transparent)),
  url('/assets/tstudio-background.png') center/cover no-repeat; opacity: .15; filter: grayscale(.3); }
html[data-theme="light"] .workspace::before { opacity: .055; filter: grayscale(1); }
.topbar { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg-2) 95%, transparent); }
.topbar h2 { margin: 4px 0 0; font-size: 19px; letter-spacing: -.02em; }
.topbar__actions { display: flex; align-items: center; gap: 6px; }
.page { display: none; position: relative; z-index: 1; min-height: 0; overflow: auto; }
.page.is-active { display: block; }

.home-canvas { height: 100%; min-height: 600px; display: grid; grid-template-columns: minmax(400px,1fr) 310px; align-items: center; gap: 60px; padding: 70px clamp(38px,6vw,96px); }
.home-copy { max-width: 680px; }
.home-copy h1 { margin: 15px 0 18px; font-size: clamp(50px,5.5vw,88px); line-height: .98; letter-spacing: -.06em; }
.home-copy h1 b { color: var(--accent); }
.home-copy p { max-width: 520px; color: var(--text-2); font-size: 15px; line-height: 1.65; }
.home-actions { display: flex; align-items: center; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.join-inline { display: grid; grid-template-columns: 145px auto; gap: 7px; }
.join-inline input { height: 42px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.home-status { align-self: end; margin-bottom: 7vh; border-radius: 12px; padding: 20px; box-shadow: none; background: color-mix(in srgb, var(--surface) 88%, transparent); }
.home-status__label { font-size: 9px; color: var(--accent); font-weight: 800; letter-spacing: .14em; }
.home-status strong { display: block; margin-top: 8px; font-size: 14px; }
.home-status span { display: block; margin-top: 5px; color: var(--text-3); font-size: 11px; line-height: 1.5; }

.call-page.is-active { display: grid; grid-template-rows: auto minmax(260px,1fr) auto auto; height: 100%; overflow: hidden; padding: 25px 28px 20px; gap: 14px; }
.call-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.call-title-row { display: flex; align-items: center; gap: 11px; margin-top: 3px; }
.call-title-row h1 { margin: 0; font-size: 21px; }
.code-chip { height: 27px; padding: 0 9px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); color: var(--text-2); font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.call-header__actions { display: flex; gap: 7px; }
.screen-stage { min-height: 0; border: 1px solid var(--border); border-radius: 13px; overflow: hidden; background: #0b0c0e; position: relative; }
html[data-theme="light"] .screen-stage { background: #d6d7da; }
.empty-call { height: 100%; min-height: 300px; display: grid; place-content: center; place-items: center; text-align: center; color: var(--text-2); padding: 30px; }
.empty-call__orb { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--accent); font-size: 31px; font-weight: 900; }
.empty-call h3 { margin: 17px 0 4px; color: var(--text); font-size: 16px; }
.empty-call p { margin: 0; font-size: 11px; }
.screen-grid { height: 100%; display: grid; grid-template-columns: repeat(auto-fit,minmax(320px,1fr)); gap: 7px; padding: 7px; }
.screen-card { min-width: 0; min-height: 0; position: relative; border-radius: 9px; overflow: hidden; background: #08090b; border: 1px solid rgba(255,255,255,.08); }
.screen-card video { width: 100%; height: 100%; object-fit: contain; background: #08090b; display: block; }
.screen-card__meta { position: absolute; left: 10px; bottom: 10px; padding: 6px 9px; border-radius: 6px; background: rgba(10,10,12,.76); color: white; font-size: 10px; font-weight: 700; backdrop-filter: blur(8px); }
.call-participants { display: flex; gap: 8px; overflow-x: auto; padding: 1px 0; scrollbar-width: none; }
.call-participant { flex: 0 0 auto; min-width: 165px; display: grid; grid-template-columns: 36px minmax(70px,1fr); gap: 9px; align-items: center; padding: 7px 10px; border: 1px solid var(--border); border-radius: 9px; background: color-mix(in srgb, var(--surface) 92%, transparent); transition: border-color .12s, box-shadow .12s; }
.call-participant.is-speaking { border-color: var(--speaker-accent); box-shadow: inset 3px 0 0 var(--speaker-accent); }
.call-participant__text strong { display: block; font-size: 11px; max-width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-participant__text small { display: block; color: var(--text-3); font-size: 9px; margin-top: 2px; }
.volume-control { grid-column: 1 / -1; display: none; align-items: center; gap: 7px; font-size: 9px; color: var(--text-3); }
.call-participant:hover .volume-control { display: flex; }
.volume-control input { width: 100px; accent-color: var(--speaker-accent); }
.call-dock { justify-self: center; min-width: min(720px,100%); display: grid; grid-template-columns: repeat(4, minmax(120px,1fr)); gap: 6px; padding: 6px; border-radius: 12px; box-shadow: none; }
.dock-button { min-height: 52px; border: 1px solid transparent; border-radius: 8px; background: var(--surface-2); color: var(--text); display: grid; grid-template-columns: 25px 1fr; grid-template-rows: 1fr 1fr; text-align: left; column-gap: 8px; padding: 8px 10px; cursor: pointer; }
.dock-button > span { grid-row: 1 / 3; align-self: center; text-align: center; font-size: 15px; }
.dock-button b { align-self: end; font-size: 10px; }
.dock-button small { align-self: start; color: var(--text-3); font-size: 8px; }
.dock-button:hover { background: var(--surface-3); }
.dock-button.is-on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.dock-button.is-off { background: color-mix(in srgb, var(--danger) 10%, var(--surface-2)); color: #e98a91; }
.dock-button--primary { background: var(--accent); color: white; }
.dock-button--primary small { color: rgba(255,255,255,.7); }
.dock-button--primary:hover { background: var(--accent-hover); }
.dock-button--danger { color: #e97880; }

.settings-page.is-active { display: block; padding: 30px; }
.settings-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0,1.12fr) minmax(380px,.88fr); gap: 24px; align-items: start; }
.section-heading { margin-bottom: 16px; }
.section-heading h1 { margin: 5px 0 0; font-size: 25px; }
.profile-preview { overflow: hidden; border-radius: var(--radius-lg); box-shadow: none; }
.profile-preview__banner { height: 250px; background:
  linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.34)),
  url('/assets/tstudio-background.png') center/cover no-repeat; border-bottom: 1px solid var(--border); }
.profile-preview__body { display: grid; grid-template-columns: 92px minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 0 25px; transform: translateY(-18px); }
.profile-preview__body .avatar { --avatar-accent: var(--user-accent); background: var(--surface-2); box-shadow: 0 0 0 7px var(--surface); }
.profile-preview__body h3 { margin: 0; font-size: 20px; }
.profile-preview__body span { color: var(--text-3); font-size: 10px; }
.profile-strip { min-width: 120px; padding: 8px 12px; border-radius: 6px; background: var(--user-accent); color: white; text-align: center; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.profile-preview > p { margin: -7px 25px 24px 135px; color: var(--text-3); font-size: 11px; }
.settings-card, .settings-single { border-radius: var(--radius-lg); padding: 27px; box-shadow: none; }
.settings-card__head { border-bottom: 1px solid var(--border); margin: -4px -2px 24px; }
.form-section { display: grid; gap: 9px; margin-bottom: 19px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-2); }
.segmented button { min-height: 35px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--text-2); cursor: pointer; font-size: 11px; font-weight: 700; }
.segmented button.is-active { background: var(--surface-3); color: var(--text); border-color: var(--border); }
.upload-box { min-height: 74px; display: grid; place-content: center; place-items: center; border: 1px dashed var(--border-strong); border-radius: 9px; background: var(--bg-2); cursor: pointer; color: var(--text-2); }
.upload-box:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: var(--accent-soft); }
.upload-box > span { color: var(--accent); font-size: 15px; }
.upload-box b { margin-top: 2px; font-size: 10px; }
.upload-box small { margin-top: 2px; color: var(--text-3); font-size: 8px; }
.color-swatches { display: flex; gap: 9px; flex-wrap: wrap; }
.color-swatches button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; outline: 1px solid var(--border); cursor: pointer; background: var(--swatch); }
.color-swatches button.is-active { border-color: var(--surface); outline: 2px solid var(--swatch); }
.color-swatches [data-color="#d62d3a"]{--swatch:#d62d3a}.color-swatches [data-color="#d7772e"]{--swatch:#d7772e}.color-swatches [data-color="#d9a72e"]{--swatch:#d9a72e}.color-swatches [data-color="#3e9b68"]{--swatch:#3e9b68}.color-swatches [data-color="#477fca"]{--swatch:#477fca}.color-swatches [data-color="#7658bd"]{--swatch:#7658bd}.color-swatches [data-color="#bd5579"]{--swatch:#bd5579}.color-swatches [data-color="#58616b"]{--swatch:#58616b}
#custom-color { width: 52px; padding: 3px; cursor: pointer; }
.settings-note { padding: 11px 13px; margin: 3px 0 15px; border-radius: 8px; background: var(--bg-2); color: var(--text-3); font-size: 10px; }
.settings-single { max-width: 720px; margin: 0 auto; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--border); }
.setting-row strong { display: block; font-size: 12px; }
.setting-row span { display: block; margin-top: 4px; color: var(--text-3); font-size: 10px; }
.password-form { display: grid; max-width: 390px; margin-top: 26px; }
.password-form h3 { margin: 0 0 16px; font-size: 14px; }
.admin-layout { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 380px minmax(0,1fr); gap: 20px; align-items: start; }
.admin-layout .settings-single { width: 100%; max-width: none; margin: 0; }
.admin-user-list { display: grid; gap: 8px; }
.admin-user { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 9px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-2); }
.admin-user__text strong { display: block; font-size: 11px; }
.admin-user__text small { color: var(--text-3); font-size: 9px; }
.admin-user__actions { display: flex; gap: 5px; }
.admin-user.is-disabled { opacity: .5; }

.call-modal, .simple-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(5,5,6,.68); backdrop-filter: blur(8px); }
.call-modal__card { width: min(390px,100%); padding: 34px; border-radius: 18px; text-align: center; }
.call-modal__card .eyebrow { justify-content: center; }
.call-modal__card h2 { margin: 12px 0 5px; font-size: 24px; }
.call-modal__card > p { margin: 0; color: var(--text-3); font-size: 11px; }
.call-modal__actions { display: flex; justify-content: center; gap: 38px; margin-top: 30px; }
.round-call-button { width: 78px; height: 78px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-content: center; color: white; font-size: 22px; font-weight: 800; }
.round-call-button span { font-size: 9px; margin-top: 3px; font-weight: 700; }
.round-call-button.decline { background: #a73540; }
.round-call-button.accept { background: #35875c; }
.simple-modal__card { width: min(460px,100%); max-height: 70vh; border-radius: 14px; padding: 18px; overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.modal-head h3 { margin: 0; font-size: 14px; }
.invite-list { overflow: auto; max-height: 50vh; padding-top: 10px; }
.invite-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; }
.invite-row:hover { background: var(--surface-2); }
.invite-row strong { font-size: 11px; }
.invite-row small { display:block; color: var(--text-3); font-size: 9px; }

.toast-root { position: fixed; z-index: 2000; right: 18px; bottom: 18px; display: grid; gap: 8px; width: min(360px, calc(100vw - 36px)); }
.toast { padding: 12px 14px; border-radius: 9px; border: 1px solid var(--border-strong); background: #1b1d21; color: #f3f3f4; box-shadow: 0 12px 35px rgba(0,0,0,.28); font-size: 11px; animation: toastin .15s ease both; }
.toast.success { border-left: 3px solid #53b37b; }
.toast.error { border-left: 3px solid #d95a64; }
@keyframes toastin { from{opacity:0;transform:translateY(8px)} }

@media (max-width: 1050px) {
  :root { --sidebar: 235px; }
  .auth-layout { padding: 40px; grid-template-columns: 1fr 410px; gap: 40px; }
  .settings-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .home-canvas { grid-template-columns: 1fr; }
  .home-status { display: none; }
}
@media (max-width: 760px) {
  body { overflow: auto; }
  .auth-layout { grid-template-columns: 1fr; padding: 24px; }
  .auth-copy { display: none; }
  .auth-card { max-width: 470px; margin: auto; }
  .app-shell { grid-template-columns: 72px minmax(0,1fr); }
  .sidebar__brand { padding: 0; justify-content: center; }
  .sidebar__brand small, .sidebar__brand .brand-mark { font-size: 0; }
  .sidebar__brand .brand-mark span { font-size: 24px; }
  .nav-item { justify-content: center; padding: 0; font-size: 0; }
  .nav-item span { font-size: 16px; }
  .sidebar__section-title { display: none; }
  .contact { grid-template-columns: 42px; justify-content: center; padding: 7px; }
  .contact__text, .call-contact { display: none; }
  .self-card { grid-template-columns: 42px; justify-content: center; padding: 10px; }
  .self-card__text, .self-card .icon-button { display: none; }
  .topbar { padding: 0 15px; }
  .topbar__actions .quiet-button:first-child { display: none; }
  .home-canvas { padding: 35px 22px; min-height: 520px; }
  .home-copy h1 { font-size: 47px; }
  .settings-page.is-active { padding: 16px; }
  .call-page.is-active { padding: 15px; }
  .call-dock { min-width: 0; width: 100%; grid-template-columns: repeat(4,1fr); }
  .dock-button { min-width: 0; grid-template-columns: 1fr; grid-template-rows: 24px 1fr; text-align: center; padding: 5px; }
  .dock-button > span { grid-row: auto; }
  .dock-button small { display: none; }
  .profile-preview__body { grid-template-columns: 76px minmax(0,1fr); padding: 0 18px; }
  .avatar--xl { width: 76px; height: 76px; }
  .profile-strip { grid-column: 1 / -1; width: 100%; }
  .profile-preview > p { margin: 0 18px 20px; }
}
