/* SABSUS Calls — the material from the live AI service, revision 34.
 * Tokens copied from AI assets/glass.css and the final tryon.css overrides.
 * This final layer preserves Calls geometry and lets the shared AI renderer
 * paint the sampled scene, blur and moving perimeter sparkle into each pane.
 */
@font-face {
  font-family: Room;
  src: local("Inter"),local("Aptos"),local("Segoe UI");
  font-display: swap;
}
:root,
html[data-sabsus-theme] {
  --matte-text: #fff;
  --matte-muted: #d9dfe5;
  --matte-label: #e5eaf0;
  --matte-placeholder: #c3ccd6;
  --matte-info: #c1ddff;
  --matte-success: #b8efda;
  --matte-warning: #ffe1a8;
  --matte-error: #ffd2dd;
  --matte-line: rgba(232,245,255,.24);
  --matte-panel: linear-gradient(135deg,rgba(255,255,255,.12),rgba(255,255,255,.025)),rgba(11,25,44,.35);
  --matte-menu: linear-gradient(135deg,#30373fe8,#1c232bec);
  --matte-inset: #ffffff0a;
  --matte-hover: #ffffff12;
  --matte-selected: linear-gradient(125deg,#2867e87a,#204bb653);
  --matte-selected-line: #76a0ff80;
  --matte-blue: #a8d5ff;
  --matte-blue-ink: #fff;
  --matte-primary: linear-gradient(135deg,#326ee8,#2152c9);
  --matte-primary-hover: linear-gradient(135deg,#326ee8,#285bd6);
  --matte-primary-shadow: inset 0 1px 0 #ffffff33,0 3px 16px #123d9138;
  --matte-blur: blur(16px) saturate(1.12);
  --matte-off-panel: linear-gradient(135deg,rgba(255,255,255,.12),rgba(255,255,255,.025)),rgba(11,25,44,.46);
  --matte-off-blur: blur(12px) saturate(1.12);
  --glass-shadow: 0 16px 48px rgba(0,0,0,.22),0 2px 8px rgba(0,0,0,.08);
  --matte-shadow: var(--glass-shadow),inset 0 1px 0 rgba(255,255,255,.16);
  --crystal-text: var(--matte-text);
  --crystal-muted: var(--matte-muted);
  --crystal-line: var(--matte-line);
  --crystal-panel: var(--matte-panel);
  --crystal-blue: #65adff;
  --crystal-sky: var(--matte-blue);
  --crystal-shadow: var(--matte-shadow);
  --ink: var(--matte-text);
  --navy: var(--matte-text);
  --muted: var(--matte-muted);
  --blue: var(--matte-blue);
  --line: var(--matte-line);
  --shadow: var(--matte-shadow);
  --sales-ink: var(--matte-text);
  --sales-muted: var(--matte-muted);
  --sales-blue: var(--matte-blue);
  --sales-line: var(--matte-line);
  font-family: Room,Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-synthesis: none;
  color-scheme: dark;
  background: #12161b;
}
html body,
html[data-sabsus-theme] body,
body.sales-page,
body:has(> main > .terms-languages) {
  color: var(--matte-text);
  background: #12161b;
}

/* The ambient source matches the renderer; photographs retain AI's vignette. */
body:not(.sales-page)::before,
body.sales-page::before,
body:has(> main > .terms-languages)::before {
  border-color: #ffffff29;
  background:
    radial-gradient(ellipse 78% 90% at 53% 42%,transparent 23%,rgba(4,10,20,.14) 55%,rgba(4,10,20,.70) 100%),
    linear-gradient(to bottom,rgba(4,10,20,.18),transparent 23%,transparent 58%,rgba(4,10,20,.56)),
    linear-gradient(135deg,#6c747e,#a0a4aa 46%,#626b76);
  box-shadow: inset 0 0 100px #06101a45;
  pointer-events: none;
}
html body .sp-optics {
  display: none !important;
}
/* Keep source geometry available to the AI renderer. It is sampled, not shown. */
html.calls-matte #liquid-scene.glass-scene-source {
  display: block !important;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
  border-radius: 0;
  box-shadow: none;
  z-index: -1;
}
html.calls-matte body .sg-pane {
  display: block !important;
  position: absolute !important;
  inset: -1px !important;
  width: calc(100% + 2px) !important;
  height: calc(100% + 2px) !important;
  max-width: none !important;
  border-radius: inherit;
  opacity: 1 !important;
  visibility: visible;
  pointer-events: none !important;
  z-index: -1 !important;
  contain: strict;
}
html.calls-matte #app > .shell {
  border-color: #ffffff29;
  box-shadow: 0 0 0 1px #ffffff05,0 16px 60px #0004;
}

/* Exact AI fallback, until a sampled .glass-painted canvas is ready. */
html.calls-matte body :is(.glass,[data-glass],.dialog),
html.calls-matte body .glass-painted.glass,
html.calls-matte body.glass-off :is(.glass,[data-glass]),
html.calls-matte body :is(.studio-lobby .join-content,.studio-lobby .preview-controls,.studio-lobby-shell .header-right,.in-call .header-right,.cw-profile,.cab-nav,.cab-filters,.cab-card,.cab-empty,.cab-call-row,.room-dock),
body.sales-page :is(.sales-glass,.sales-header,.sales-use-cases,.sales-plan,.sales-minute-pack,.sales-feature,.sales-faq details,.sales-caption,.purchase-card),
html body :is(.cg-topic,.cg-dialog-body .cg-topic,.terms-languages ~ article) {
  color: var(--matte-text);
  background: var(--matte-panel) !important;
  border-color: var(--matte-line) !important;
  box-shadow: var(--matte-shadow) !important;
  backdrop-filter: var(--matte-blur) !important;
  -webkit-backdrop-filter: var(--matte-blur) !important;
}
html.calls-matte .studio-lobby .join-content {
  background: var(--matte-panel) !important;
  scrollbar-color: #8a8e9655 transparent;
}
html.calls-matte .calls-workspace[data-cw-layout] .cab-call-row {
  background: var(--matte-panel) !important;
  border-color: var(--matte-line) !important;
  box-shadow: var(--matte-shadow) !important;
}
html.calls-matte .calls-workspace[data-cw-layout] .cab-call-row:hover,
html.calls-matte .calls-workspace[data-cw-layout] .cab-call-row:focus-visible {
  background: linear-gradient(145deg,#ffffff28,#ffffff10) !important;
  border-color: #ffffff56 !important;
  box-shadow: var(--matte-shadow) !important;
}

/* Dialog fallback follows AI's app-dialog; painted menus use the scene below. */
html.calls-matte body :is(.dialog,.select-menu,.calls-select-popup,.profile-menu,.toast,.sabsus-suite-menu,.calls-profile-panel,.sp-panel,.calls-chat-overlay,.calls-admission,.calls-more-requests,.room-more-menu,.ux-caption,.calls-whisper-notice,.calls-consent-request),
html.calls-matte .in-call #side-panel:not([hidden]),
body.sales-page :is(.sabsus-suite-menu,.calls-profile-panel,.sp-panel),
html body :is(.cg-dialog,.cg-image-dialog) {
  --sp-bg: var(--matte-menu);
  --sp-fg: var(--matte-text);
  --sp-muted: var(--matte-muted);
  --sp-line: var(--matte-line);
  --sp-active: var(--matte-selected);
  --sp-blue: var(--matte-blue);
  color: var(--matte-text);
  background: var(--matte-menu) !important;
  border-color: #d5eaff45 !important;
  box-shadow: 0 24px 120px #0008,inset 0 1px 0 #ffffff20 !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
}
html.calls-matte body .sp-panel,
body.sales-page .sp-panel {
  --sp-bg: var(--matte-menu);
  --sp-fg: var(--matte-text);
  --sp-muted: var(--matte-muted);
  --sp-line: var(--matte-line);
  --sp-active: var(--matte-selected);
  --sp-blue: var(--matte-blue);
}
html.calls-matte #sabsus-suite-menu.sabsus-suite-menu {
  --suite-scheme: dark;
  --suite-surface: var(--matte-menu);
  --suite-solid: #1e252d;
  --suite-ink: #f0f5fa;
  --suite-muted: #d1dce6;
  --suite-accent: #a8d5ff;
  --suite-input: #ffffff0a;
  --suite-icon-bg: #c7e3ff16;
  --suite-line: #d5eaff45;
  --suite-hover: #ffffff12;
  --suite-current: #8cc8ff40;
  background: var(--matte-menu) !important;
}
html.calls-matte .scrim,
html body .cg-dialog::backdrop,
html body .cg-image-dialog::backdrop {
  background: #0a121a8c;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
html body .cg-dialog-head {
  background: rgba(255,255,255,.025);
  border-color: var(--matte-line);
}
html body .cg-dialog-body { scrollbar-color: #6c727b transparent; }

/* Fields and secondary controls stay quiet within their parent surface. */
html.calls-matte body :is(.btn,.icon-btn,.select-btn,.field-shell,.calls-select,.calls-select-search,.calls-translation-tabs button,.calls-option-card,.cab-search,.cab-back,.cw-view-switch,.cw-control,.calls-mini,.studio-panel-toggle,[data-sabsus-profile-created]),
body.sales-page :is(.sales-secondary,.purchase-tabs,.purchase-info),
html body :is(.cg-topics a,.cg-close,.cg-image-close,.cg-num,.terms-languages a) {
  color: var(--matte-text);
  background: var(--matte-inset) !important;
  border-color: var(--matte-line) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html.calls-matte body :is(.btn,.icon-btn,.select-btn,.cw-control,.calls-mini):hover,
html.calls-matte .calls-profile-panel button:hover,
body.sales-page .sales-secondary:hover,
html body :is(.cg-topics a,.cg-close,.cg-image-close):hover {
  background: var(--matte-hover) !important;
  border-color: rgba(255,255,255,.22) !important;
  box-shadow: none !important;
}
html.calls-matte body :is(input,select,textarea),
body.sales-page :is(input,select,textarea) {
  color: var(--matte-text);
  background-color: var(--matte-inset) !important;
  background-image: none !important;
  border-color: var(--matte-line) !important;
  box-shadow: none;
}
html.calls-matte body :is(.field-shell,.cab-search) :is(input,textarea) {
  background: transparent !important;
}
html.calls-matte body :is(input,select,textarea):focus,
body.sales-page :is(input,select,textarea):focus {
  border-color: var(--matte-selected-line) !important;
}
html body :is(input,textarea)::placeholder { color: var(--matte-placeholder); opacity: 1; }
html body option { color: var(--matte-text); background: #252a32; }
html.calls-matte body :is(input,textarea):-webkit-autofill,
body.sales-page input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px #252a32 inset !important;
  -webkit-text-fill-color: var(--matte-text);
  caret-color: var(--matte-text);
}
html.calls-matte :is(.calls-profile-panel button,.suite-icon,.cab-call-title>.icon,.cab-row-arrow,.calls-billing-icon,.cab-moment,.cab-task-row,.calls-balance-grid section,.calls-pack-option,.cab-stats>div),
body.sales-page :is(.sales-icon,.sales-product-controls>span,.sales-pill,.sales-pill.quiet) {
  background: rgba(255,255,255,.045);
  border-color: var(--matte-line);
  box-shadow: none;
}
html.calls-matte :is(.cab-avatar,.calls-avatar,.calls-avatar-large,.avatar) {
  color: #eceff3;
  background: #4b535f;
  border-color: rgba(255,255,255,.18);
  box-shadow: none;
}
html.calls-matte :is(.cab-player-slot,.cab-audio-cover) {
  background: #171b22;
  border-color: var(--matte-line);
}
html.calls-matte :is(.cab-integration-grid code,.cab-key-form code) {
  color: #d7e0e9;
  background: rgba(6,9,13,.3);
}
html.calls-matte #cab-segments .cab-segment-copy,
html.calls-matte .in-call .bubble {
  color: var(--matte-text);
  background: rgba(255,255,255,.045);
  border-color: var(--matte-line);
  box-shadow: none;
}

/* AI's borderless camera-button geometry, in the requested saturated blue. */
html.calls-matte body :is(.btn.primary,.btn.primary.glass-painted,.cab-nav-primary),
html.calls-matte body .calls-workspace .cw-create,
html.calls-matte .calls-chat-form .calls-mini,
body.sales-page .sales-primary {
  color: var(--matte-blue-ink) !important;
  background: var(--matte-primary) !important;
  border-color: transparent !important;
  box-shadow: var(--matte-primary-shadow) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html.calls-matte body :is(.btn.primary,.cab-nav-primary):hover,
html.calls-matte body .calls-workspace .cw-create:hover,
body.sales-page .sales-primary:hover {
  color: var(--matte-blue-ink) !important;
  background: var(--matte-primary-hover) !important;
  border-color: transparent !important;
  box-shadow: var(--matte-primary-shadow) !important;
}
html.calls-matte .calls-workspace .cab-nav nav>.btn {
  color: var(--matte-text);
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html.calls-matte .calls-workspace .cab-nav nav>.btn:hover { background: var(--matte-hover) !important; }
html.calls-matte .calls-workspace .cab-nav nav>.btn.cab-nav-active,
html.calls-matte body :is(.calls-select-popup [aria-selected=true],.calls-select-popup .focused,.calls-select-popup button:hover,.select-menu [aria-selected=true],.select-menu button:hover,.calls-translation-tabs [aria-selected=true],.calls-option-card[aria-checked=true],.cw-control[aria-expanded=true],.cw-control.cw-has-filters,.cw-view-switch .cw-control[aria-pressed=true],.cab-tabs [aria-selected=true],.calls-pack-option[aria-pressed=true],.calls-profile-panel button[aria-pressed=true]),
html.calls-matte .studio-lobby .preview-controls .btn[aria-pressed=true],
html.calls-matte .suite-item:is(:hover,:focus-visible,.is-current),
body.sales-page .purchase-tabs [aria-pressed=true],
html[lang=en] .terms-languages a[lang=en],
html[lang=ru] .terms-languages a[lang=ru] {
  color: #fff !important;
  background: var(--matte-selected) !important;
  border-color: var(--matte-selected-line) !important;
  box-shadow: inset 0 1px 1px #e8f7ff50,0 0 24px #3b9fff20 !important;
}
html.calls-matte #cab-segments :is(.cab-segment-own,.cab-speaking)>.cab-segment-copy,
html.calls-matte .in-call .message.mine .bubble {
  background: rgba(111,170,227,.13);
  border-color: rgba(162,207,246,.25);
}
html.calls-matte .studio-panel-toggle[aria-expanded=false] {
  color: var(--matte-blue-ink) !important;
  background: var(--matte-blue) !important;
  border-color: transparent !important;
}

/* A quiet camera-off mark: a soft, flat halo without a glass orb or ring. */
html.calls-matte .studio-lobby .camera-off::before {
  border: 0;
  background: radial-gradient(circle,rgba(210,214,220,.10),rgba(210,214,220,.035) 43%,transparent 70%);
  box-shadow: none;
  filter: blur(14px);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html.calls-matte .studio-lobby .camera-off::after { display: none; }
html.calls-matte .studio-lobby:has(.studio-backdrop) .camera-off::before { display: none; }
html.calls-matte .studio-lobby .camera-off>.icon { color: #d8dce3; opacity: .68; }
html.calls-matte .studio-lobby .camera-off small { color: #c4c9d1; }
html.calls-matte .studio-preview-label i { background: #adb5bf; box-shadow: none; }
html.calls-matte .studio-lobby:has(#preview-video:not([hidden])) .studio-preview-label i {
  background: #a1d3bd;
  box-shadow: none;
}
html.calls-matte .studio-lobby .mic-meter { background: rgba(255,255,255,.08); }
html.calls-matte .studio-lobby .mic-meter>i { background: #a8cfee; }

/* Standalone utility circles share AI's scene-sampled surface. */
html.calls-matte body :is(.studio-utilities .icon-btn,.in-call .calls-stage-actions>button,.sb-chat .sb-launch),
html body .cg-launch {
  color: var(--matte-text);
  background: var(--matte-panel) !important;
  border-color: var(--matte-line) !important;
  box-shadow: var(--matte-shadow) !important;
  backdrop-filter: var(--matte-blur) !important;
  -webkit-backdrop-filter: var(--matte-blur) !important;
}
html.calls-matte :is(.studio-utilities .icon-btn,.calls-stage-actions>button,.sb-chat .sb-launch):hover,
html body .cg-launch:hover {
  background: var(--matte-menu) !important;
  border-color: rgba(255,255,255,.22) !important;
}

/* The live room keeps its functional muted/active/leave distinctions. */
html.calls-matte .in-call .stage {
  border-color: var(--matte-line);
  box-shadow: none !important;
}
html.calls-matte .in-call .calls-overlay-layout>.calls-secondary {
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 8px 25px rgba(0,0,0,.28);
}
html.calls-matte .in-call :is(.tile .nameplate>span,.tile-tag,.shared-content .share-status) {
  color: var(--matte-text);
  background: var(--matte-panel);
  border-color: var(--matte-line);
  box-shadow: none;
  backdrop-filter: var(--matte-blur);
  -webkit-backdrop-filter: var(--matte-blur);
}
html.calls-matte .in-call .tile .nameplate .calls-translation-badge {
  background: transparent;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html.calls-matte .in-call .toolbar .tool,
html.calls-matte .in-call .room-dock>[data-action=translation] {
  color: #d9dde4;
  background: transparent;
  border-color: transparent;
  box-shadow: none !important;
}
html.calls-matte .in-call .toolbar .tool:hover {
  color: #fff;
  background: var(--matte-hover);
  border-color: var(--matte-line);
}
html.calls-matte .in-call .toolbar .tool:is(.selected,[data-state=active],[aria-pressed=true],[aria-expanded=true]) {
  color: #fff;
  background: var(--matte-primary);
  border-color: transparent;
  box-shadow: var(--matte-primary-shadow);
}
html.calls-matte .in-call .toolbar .tool.off {
  color: #f2bdc6;
  background: rgba(148,62,80,.28);
  border-color: rgba(233,146,166,.24);
}
html.calls-matte body :is(.btn.danger,.btn.danger.glass-painted,.calls-mini.danger,.icon-btn.danger),
html.calls-matte .in-call .toolbar .tool.end,
html.calls-matte .in-call .room-dock>[data-action=leave],
body.sales-page .sales-product-controls>.sales-control-end {
  color: #fff !important;
  background: #b84c63 !important;
  border-color: rgba(244,177,192,.2) !important;
  box-shadow: none !important;
}
html.calls-matte body .btn.danger:hover,
html.calls-matte .in-call .toolbar .tool.end:hover { background: #c9576f !important; }
html.calls-matte .in-call .room-more-menu { background: var(--matte-menu) !important; }
html.calls-matte .dialog .tr13-actions { background: linear-gradient(transparent,rgba(22,26,32,.97) 24%); }
html.calls-matte .notice { color: #d8dee6; background: rgba(29,36,45,.67); border-color: var(--matte-line); }
html.calls-matte body .calls-accept {
  color: #b8e5ce !important;
  background: rgba(49,112,83,.28) !important;
  border-color: rgba(152,210,179,.24) !important;
  box-shadow: none !important;
}
html.calls-matte #app .call-meta #duration {
  color: #d3d9e1;
  background: rgba(255,255,255,.04);
  border-color: var(--matte-line);
}
html.calls-matte :is(.cab-stats .icon,.cab-activity .icon,.cab-call-title>.icon,.cab-row-arrow),
html.calls-matte .cw-duration::before { color: #c3ccd7; }

/* Public pages use the same CSS fallback and blue selection palette. */
body.sales-page .sales-product { box-shadow: var(--matte-shadow); }
body.sales-page .sales-product::after { border-color: transparent; }
body.sales-page .sales-person { background: radial-gradient(ellipse at 45% 35%,#6b737b,#343c46); box-shadow: none; }
body.sales-page .sales-person-two { background: radial-gradient(ellipse at 40% 25%,#5c626c,#303741); }
body.sales-page .sales-person::before { display: none; }
body.sales-page :is(.sales-person-initial,.sales-person-two .sales-person-initial) {
  color: #f0f2f5;
  background: rgba(219,224,231,.10);
  border-color: rgba(255,255,255,.14);
  box-shadow: none;
}
body.sales-page .sales-person-label {
  color: var(--matte-text);
  background: var(--matte-panel);
  border-color: var(--matte-line);
  backdrop-filter: var(--matte-blur);
  -webkit-backdrop-filter: var(--matte-blur);
}
body.sales-page :is(.sales-plan-main,.sales-minute-pack:last-child) {
  border-color: rgba(159,200,237,.33) !important;
  box-shadow: var(--matte-shadow) !important;
}
body.sales-page :is(.sales-hero h1 em,.sales-use-cases h2 em) { color: #d7e5f1; }
body.sales-page :is(.sales-icon,.sales-product-controls .icon,.sales-kicker,.sales-step-number,.sales-plan-lead) { color: #c4cfdc; }
body.sales-page .sales-product-controls .sales-control-end .icon { color: #fff; }
html body .cg-figure { background: rgba(11,15,21,.2); border-color: var(--matte-line); }
html body .cg-illustration img { background: #232931; }

/* The AI renderer owns the visible material once its scene has been painted.
 * No CSS tint may sit on top: this was the cause of the opaque black panels.
 * Primary/danger controls retain their semantic CSS color inside the pane.
 */
html.calls-matte body .glass-painted.glass:not(:where(.primary,.cw-create,.cab-nav-primary,.danger)),
html.calls-matte body .glass-painted[data-glass]:not(:where(.primary,.cw-create,.cab-nav-primary,.danger)),
html.calls-matte .calls-workspace[data-cw-layout] .cab-call-row.glass-painted,
html.calls-matte body :is(.studio-utilities .icon-btn,.in-call .calls-stage-actions>button,.sb-chat .sb-launch).glass-painted,
html.calls-matte .in-call #side-panel.glass-painted,
html.calls-matte #sabsus-suite-menu.sabsus-suite-menu.glass-painted {
  background: transparent !important;
  border-color: rgba(235,247,255,.30) !important;
  box-shadow: var(--matte-shadow) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html.calls-matte .calls-workspace[data-cw-layout] .cab-call-row.glass-painted:hover {
  border-color: #ffffff56 !important;
}
/* The enclosing pane already samples and frosts the scene. Legacy glass
 * markers on its controls must not add a second CSS blur over that image. */
html.calls-matte body :is(.join-content,.preview-controls,.room-dock,.cab-nav,.cab-call-row,.cw-profile,.header-right) :is(button,a,select,input) {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html.calls-matte body :is(.primary,.cw-create,.cab-nav-primary,.danger)>.sg-pane,
html.calls-matte body :is(.join-content,.preview-controls,.room-dock,.cab-nav,.cab-call-row,.cw-profile,.header-right) :is(button,a,select,input)>.sg-pane {
  display: none !important;
}

/* Layout wrappers and live media are never treated as a blurred panel.
 * These explicit exemptions also cover legacy .glass/data-glass markers. */
html.calls-matte body .studio-lobby .preview-card.glass,
html.calls-matte body .studio-lobby .camera-preview,
html.calls-matte body .studio-lobby-shell .ux-topbar>.brand,
html.calls-matte body .in-call>.ux-topbar>.brand,
html.calls-matte body .calls-workspace .cw-brand,
html.calls-matte body .calls-workspace .cw-overview,
html.calls-matte body .calls-workspace .cw-overview .cab-stats>div,
html.calls-matte body .calls-workspace .cw-history .cab-table,
html.calls-matte body .in-call .stage {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html.calls-matte body .studio-lobby-shell .header-right [data-action=account] {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html.calls-matte :is(.cw-eyebrow,.studio-eyebrow,.studio-device-label,.studio-preview-label,.studio-about,.cab-header p,.cw-footer a) { color: var(--matte-muted); }
html.calls-matte .cw-brand small,
html.calls-matte .studio-lobby .entry-hint { color: var(--matte-muted); }

/* Keep the original Suite app-switcher; present the same SABSUS mark as AI. */
html.calls-matte :is(.studio-lobby-shell,.calls-workspace,.in-call) .suite-brand-mark {
  width: 42px !important;
  height: 50px !important;
  border: 0;
  border-radius: 0;
  font-size: 0 !important;
  color: transparent !important;
  background: url("data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2048%2056%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22brand-gradient%22%20x1%3D%220%22%20y1%3D%2256%22%20x2%3D%2248%22%20y2%3D%220%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23b8d9ff%22%2F%3E%3Cstop%20offset%3D%22.5%22%20stop-color%3D%22%2372b6ff%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23fff%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M21%2013c2.3%2013.3%206.5%2017.5%2020%2020-13.5%202.4-17.7%206.7-20%2020C18.6%2039.7%2014.3%2035.4%201%2033c13.3-2.5%2017.6-6.7%2020-20Z%22%20fill%3D%22url%28%23brand-gradient%29%22%2F%3E%3Cpath%20d%3D%22M37%200c1.2%207.5%203.5%209.8%2011%2011-7.5%201.3-9.8%203.6-11%2011-1.3-7.4-3.6-9.7-11-11C33.4%209.8%2035.7%207.5%2037%200Z%22%20fill%3D%22%23e6f4ff%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat !important;
  box-shadow: none;
  filter: drop-shadow(0 2px 12px #0003);
}
html.calls-matte :is(.studio-lobby-shell,.calls-workspace,.in-call) .suite-brand-mark img { display: none !important; }
html.calls-matte :is(.studio-lobby-shell,.calls-workspace,.in-call) .sabsus-suite-trigger>.suite-brand-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 3px !important;
}
html.calls-matte :is(.studio-lobby-shell,.calls-workspace,.in-call) .suite-brand-copy>.suite-current-label {
  color: #fff;
  text-transform: uppercase;
  font-size: 28px !important;
  line-height: 1.06;
  font-weight: 650;
  letter-spacing: .075em;
}
html.calls-matte :is(.studio-lobby-shell,.calls-workspace,.in-call) .sabsus-suite-trigger>.suite-brand-copy>small {
  color: #fff;
  font: 400 19px/1.4 Room,Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
  letter-spacing: .045em;
  max-width: none;
  opacity: .95;
}
html.calls-matte :is(.studio-lobby-shell,.calls-workspace,.in-call) .sabsus-suite-trigger>.suite-brand-copy>small::before { display: none; content: none; }

/* Busy states and the sliding sparkle are rendered by the shared AI engine. */
html.calls-matte .matte-loading::after { display: none; }

/* Lightweight perimeter fallback when the optical renderer is unavailable.
 * Mobile devices use the adaptive AI renderer; CSS is only its fallback.
 * The 21.739s turn matches the AI shader's .046 cycle/s.
 */
@property --calls-glint-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
html.calls-matte:is(.calls-static-glass,.calls-css-scene):not(.motion-off):not(.glass-off) :is(.studio-lobby .join-content,.studio-lobby .preview-controls,.calls-workspace .cab-nav,.calls-workspace .cw-profile,.in-call .room-dock,.in-call .room-more-menu)::after {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  background: conic-gradient(from var(--calls-glint-angle),transparent 0deg 302deg,rgba(210,235,255,.06) 317deg,rgba(235,247,255,.8) 333deg,rgba(210,235,255,.08) 344deg,transparent 354deg 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: calls-ai-edge-glint 21.739s linear infinite;
}
@keyframes calls-ai-edge-glint { to { --calls-glint-angle: 360deg; } }

@media (max-width:800px), (pointer:coarse) {
  :root,
  html[data-sabsus-theme] {
    --matte-panel: linear-gradient(135deg,rgba(255,255,255,.13),rgba(255,255,255,.025)),rgba(11,25,44,.45);
    --matte-shadow: 0 8px 24px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.18);
    --matte-blur: blur(10px) saturate(1.1);
    --matte-off-panel: linear-gradient(135deg,rgba(255,255,255,.13),rgba(255,255,255,.025)),rgba(11,25,44,.45);
    --matte-off-blur: blur(10px) saturate(1.1);
  }
  html.calls-matte .studio-lobby .camera-off::before { filter: blur(10px); }
}
@media (max-width:800px) {
  html.calls-matte :is(.studio-lobby-shell,.calls-workspace,.in-call) .suite-brand-mark { width: 30px !important; height: 36px !important; }
  html.calls-matte :is(.studio-lobby-shell,.calls-workspace,.in-call) .suite-brand-copy>.suite-current-label { font-size: 21px !important; }
  html.calls-matte :is(.studio-lobby-shell,.calls-workspace,.in-call) .sabsus-suite-trigger>.suite-brand-copy>small { font-size: 14px !important; }
}

/* AI's optical-off fallback; reduced transparency below remains fully opaque. */
html:is([data-sabsus-glass=off],.glass-off),
.glass-off {
  --matte-panel: var(--matte-off-panel);
  --matte-blur: var(--matte-off-blur);
}
html.calls-matte:is(.glass-off,[data-sabsus-glass=off]) body :is(.glass,[data-glass],.calls-workspace .cab-call-row,.in-call #side-panel).glass-painted:not(:where(.primary,.cw-create,.cab-nav-primary,.danger)) {
  background: var(--matte-panel) !important;
  border-color: rgba(232,245,255,.26) !important;
  backdrop-filter: var(--matte-blur) !important;
  -webkit-backdrop-filter: var(--matte-blur) !important;
}
html.calls-matte:is(.glass-off,[data-sabsus-glass=off]) body .sg-pane {
  visibility: hidden !important;
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  :root,html[data-sabsus-theme] {
    --matte-panel: linear-gradient(135deg,rgba(255,255,255,.12),rgba(255,255,255,.025)),rgba(13,28,46,.82);
    --matte-off-panel: linear-gradient(135deg,rgba(255,255,255,.12),rgba(255,255,255,.025)),rgba(13,28,46,.82);
  }
}
@media (prefers-reduced-transparency:reduce) {
  :root,
  html[data-sabsus-theme] {
    --matte-panel: #1e252d;
    --matte-menu: #1e252d;
    --matte-inset: #30373f;
    --matte-blur: none;
    --matte-off-panel: #1e252d;
    --matte-off-blur: none;
  }
  html.calls-matte body :is(.glass,[data-glass],.calls-workspace .cab-call-row,.in-call #side-panel).glass-painted:not(:where(.primary,.cw-create,.cab-nav-primary,.danger)) {
    background: #1e252d !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  html.calls-matte body .sg-pane { visibility: hidden !important; }
  html.calls-matte body :is(.dialog,.select-menu,.calls-select-popup,.profile-menu,.toast,.sabsus-suite-menu,.calls-profile-panel,.sp-panel,.calls-chat-overlay,.calls-admission,.calls-more-requests,.room-more-menu,.ux-caption,.calls-whisper-notice,.calls-consent-request),
  html.calls-matte .in-call #side-panel:not([hidden]),
  html body :is(.cg-dialog,.cg-image-dialog) { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  html.calls-matte .scrim,
  html body .cg-dialog::backdrop,
  html body .cg-image-dialog::backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; }
  html.calls-matte .studio-lobby .camera-off::before { display: none; }
  html.calls-matte:is(.calls-static-glass,.calls-css-scene) :is(.studio-lobby .join-content,.studio-lobby .preview-controls,.calls-workspace .cab-nav,.calls-workspace .cw-profile,.in-call .room-dock,.in-call .room-more-menu)::after { display: none; animation: none; }
}
@media (prefers-reduced-motion:reduce) {
  html.calls-matte:is(.calls-static-glass,.calls-css-scene) :is(.studio-lobby .join-content,.studio-lobby .preview-controls,.calls-workspace .cab-nav,.calls-workspace .cw-profile,.in-call .room-dock,.in-call .room-more-menu)::after { display: none; animation: none; }
  html.calls-matte .calls-workspace .cab-call-row,
  body.sales-page .sales-button { transition: none; }
  html.calls-matte .calls-workspace .cab-call-row:hover,
  body.sales-page .sales-button:hover { transform: none; }
}

/* One control family: pill actions and exact 44px utility circles. */
html.calls-matte body :is(.btn,.studio-panel-toggle),
body.sales-page :is(.sales-primary,.sales-secondary) { border-radius: 999px; }
html.calls-matte body .studio-lobby :is(.calls-entry-actions .btn,#join-form>.btn,.preview-controls .btn),
html.calls-matte body .dialog .btn { border-radius: 999px; }
html.calls-matte .studio-lobby .preview-controls .btn[aria-pressed=true] {
  color: var(--matte-blue-ink) !important;
  background: var(--matte-primary) !important;
  border-color: transparent !important;
  box-shadow: var(--matte-primary-shadow) !important;
}
html.calls-matte .studio-lobby .preview-controls .btn[aria-pressed=true]:hover {
  background: var(--matte-primary-hover) !important;
}
html.calls-matte body :is(.studio-utilities .icon-btn,.in-call .header-right>.icon-btn,.cg-launch:not(.room-help),.sb-chat .sb-launch,.in-call .calls-stage-actions>button):not([hidden]):not([data-sabsus-profile-legacy]),
html.calls-matte .studio-lobby .preview-controls :is([data-action=test-speaker],.studio-panel-toggle):not([hidden]) {
  box-sizing: border-box !important;
  display: inline-grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: 1fr !important;
  place-items: center !important;
  align-content: center !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  flex: 0 0 44px !important;
  padding: 0 !important;
  margin: 0;
  gap: 0 !important;
  border: 1px solid var(--matte-line);
  border-radius: 50% !important;
  line-height: 1 !important;
  vertical-align: middle;
  isolation: isolate;
}
html.calls-matte body :is(.studio-utilities .icon-btn,.in-call .header-right>.icon-btn,.cg-launch:not(.room-help),.sb-chat .sb-launch,.in-call .calls-stage-actions>button)>svg,
html.calls-matte .studio-lobby .preview-controls :is([data-action=test-speaker],.studio-panel-toggle)>svg {
  display: block !important;
  position: static !important;
  grid-area: 1 / 1 !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  min-height: 18px;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  align-self: center !important;
  justify-self: center !important;
}
html.calls-matte .cg-launch:not(.room-help) .cg-launch-label { display: none; }
html.calls-matte .cg-launch:not(.room-help) { font-size: 0; }
html.calls-matte .cg-launch-icon { flex: none; }

/* AI's capture buttons are unframed inside the sampled control capsule. */
html.calls-matte body .studio-lobby .preview-controls .btn:not([aria-pressed=true]),
html.calls-matte body .studio-lobby .preview-controls :is([data-action=test-speaker],.studio-panel-toggle),
html.calls-matte body .studio-lobby .calls-entry-actions .btn:not(.primary) {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
html.calls-matte body .studio-lobby .preview-controls .btn:not([aria-pressed=true]):hover,
html.calls-matte body .studio-lobby .preview-controls :is([data-action=test-speaker],.studio-panel-toggle):hover,
html.calls-matte body .studio-lobby .calls-entry-actions .btn:not(.primary):hover {
  background: rgba(255,255,255,.07) !important;
  border-color: transparent !important;
}
html.calls-matte body .studio-lobby .preview-controls .studio-panel-toggle[aria-expanded=false] {
  color: #d1e8ff !important;
  background: rgba(168,213,255,.12) !important;
}
html.calls-matte body .studio-lobby .preview-controls [data-action=test-speaker]::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: rgba(255,255,255,.17);
  pointer-events: none;
}
html.calls-matte body :is(.studio-lobby-shell,.in-call) .header-right>.icon-btn {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}
html.calls-matte body :is(.studio-utilities .icon-btn,.cg-launch:not(.room-help),.sb-chat .sb-launch):focus-visible {
  outline: 2px solid rgba(184,221,255,.65);
  outline-offset: 3px;
}

/* One mask-based chevron, without the legacy rotated border underneath. */
html.calls-matte .sabsus-suite-trigger.sabsus-suite-trigger>.suite-chevron {
  display: grid !important;
  place-items: center !important;
  line-height: 0 !important;
  transform: none !important;
}
html.calls-matte .sabsus-suite-trigger.sabsus-suite-trigger>.suite-chevron::before {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}
html.calls-matte .sabsus-suite-trigger.sabsus-suite-trigger[aria-expanded=true]>.suite-chevron::before {
  transform: rotate(180deg) !important;
}

/* Only the enclosing dock and standalone utility surfaces catch the light,
 * exactly like AI: nested camera/capture controls do not add a second ring.
 * The 21.739s cycle matches AI's optical perimeter renderer.
 */
html.calls-matte:is(.calls-static-glass,.calls-css-scene):not(.motion-off):not(.glass-off) :is(.studio-lobby-shell .header-right,.studio-utilities .icon-btn,.cg-launch:not(.room-help),.sb-chat .sb-launch,.room-call-summary)::after {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  background: conic-gradient(from var(--calls-glint-angle),transparent 0deg 302deg,rgba(210,235,255,.06) 317deg,rgba(235,247,255,.8) 333deg,rgba(210,235,255,.08) 344deg,transparent 354deg 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: calls-ai-edge-glint 21.739s linear infinite !important;
  animation-delay: var(--calls-control-phase,0s) !important;
}
html.calls-matte .cg-launch { --calls-control-phase: -8s; }
html.calls-matte .sb-chat .sb-launch { --calls-control-phase: -15s; }
/* The older compact-glass rule must not suppress the mobile edge light. */
html.calls-matte:is(.calls-static-glass,.calls-css-scene):not(.motion-off):not(.glass-off) :is(.studio-lobby .join-content,.studio-lobby .preview-controls,.calls-workspace .cab-nav,.calls-workspace .cw-profile,.in-call .room-dock,.in-call .room-more-menu)::after {
  animation: calls-ai-edge-glint 21.739s linear infinite !important;
}
@media (prefers-reduced-motion:reduce), (prefers-reduced-transparency:reduce) {
  html.calls-matte:is(.calls-static-glass,.calls-css-scene) :is(.studio-lobby-shell .header-right,.studio-utilities .icon-btn,.cg-launch:not(.room-help),.sb-chat .sb-launch,.room-call-summary,.studio-lobby .join-content,.studio-lobby .preview-controls,.calls-workspace .cab-nav,.calls-workspace .cw-profile,.in-call .room-dock,.in-call .room-more-menu)::after {
    content: none !important;
    display: none !important;
    animation: none !important;
  }
}

/* The optional edge shade is independent from panel blur and perimeter light. */
html.calls-vignette-off body:not(.sales-page)::before,
html.calls-vignette-off body.sales-page::before,
html.calls-vignette-off body:has(> main > .terms-languages)::before {
  background: linear-gradient(135deg,#6c747e,#a0a4aa 46%,#626b76) !important;
  box-shadow: none !important;
}
html.calls-vignette-off .studio-lobby .camera-preview::after,
html.calls-vignette-off .in-call .stage:is(.grid,.speaker,.ux-focus-stage)::after,
html.calls-vignette-off .in-call .tile::after {
  background: none !important;
  box-shadow: none !important;
}
html.calls-vignette-off #app>.shell.studio-lobby-shell {
  box-shadow: none !important;
}
html.calls-vignette-off .studio-lobby .studio-backdrop {
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

/* The meeting continues the lobby scene. The photograph is only an ambient
 * layer behind the room: its heavy blur removes identifiable detail, and it
 * is never placed in a participant tile. The shared renderer samples this
 * same DOM image, including its filter and opacity.
 */
html.calls-matte #app>.shell.in-call {
  --room-tile-surface: linear-gradient(135deg,rgba(255,255,255,.055),rgba(255,255,255,.012)),rgba(11,25,44,.20);
  --room-tile-line: rgba(232,245,255,.085);
  --room-tile-blur: blur(16px) saturate(1.08);
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  background: #46515c;
  border-color: rgba(232,245,255,.14);
  box-shadow: 0 16px 60px rgba(0,0,0,.20);
}
html.calls-matte .in-call>img.room-backdrop {
  position: absolute;
  inset: -64px;
  width: calc(100% + 128px);
  height: calc(100% + 128px);
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: blur(64px) saturate(.45) brightness(.84);
  opacity: .52;
  z-index: -2;
  pointer-events: none;
  user-select: none;
}
html.calls-matte #app>.shell.in-call::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 78% 90% at 53% 42%,transparent 23%,rgba(4,10,20,.14) 55%,rgba(4,10,20,.70) 100%),
    linear-gradient(to bottom,rgba(4,10,20,.18),transparent 23%,transparent 58%,rgba(4,10,20,.56));
  box-shadow: inset 0 0 100px #06101a45;
  pointer-events: none;
}
html.calls-matte.calls-vignette-off #app>.shell.in-call::after {
  background: none;
  box-shadow: none;
}

/* One room vignette behind the media, rather than separate dark bands on
 * every camera-off tile. Actual video and screen-share pixels stay untouched.
 */
html.calls-matte .in-call .stage:is(.grid,.speaker,.ux-focus-stage)::after {
  background: none;
  box-shadow: none;
}
html.calls-matte .in-call .tile {
  background: rgba(11,25,44,.14);
  border-color: transparent;
  box-shadow: none;
}
html.calls-matte .in-call .tile:has(.camera-off):not(:has(>video:not([hidden]))) {
  background: var(--room-tile-surface);
  border-color: transparent;
  box-shadow: inset 0 0 0 1px var(--room-tile-line),0 8px 32px rgba(0,0,0,.08);
  backdrop-filter: var(--room-tile-blur);
  -webkit-backdrop-filter: var(--room-tile-blur);
}
html.calls-matte .in-call .tile:has(.camera-off):not(:has(>video:not([hidden])))::after {
  background: none;
  box-shadow: none;
}
html.calls-matte .in-call .tile:is(.active,.speaking) {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(134,177,246,.36),0 0 32px rgba(44,100,190,.13);
}
html.calls-matte .in-call .tile:has(.camera-off):is(.active,.speaking):not(:has(>video:not([hidden]))) {
  box-shadow: inset 0 0 0 1px rgba(134,177,246,.36),0 0 32px rgba(44,100,190,.13);
}
html.calls-matte .in-call .calls-overlay-layout>.calls-secondary {
  border-color: rgba(232,245,255,.10);
  box-shadow: 0 8px 24px rgba(0,0,0,.20);
}

/* A clear identity in each camera-off tile, with no decorative avatar ring. */
html.calls-matte .in-call .tile .camera-off {
  gap: 10px;
  color: #e5edf5;
  text-align: center;
}
html.calls-matte .in-call .tile .camera-off :is(.calls-avatar-large,.avatar.big) {
  width: clamp(76px,8vw,124px);
  height: clamp(76px,8vw,124px);
  flex-basis: auto;
  font-size: clamp(29px,3.2vw,45px);
  font-weight: 450;
  line-height: 1;
  color: #f5f8fc;
  border: 0;
  outline: 0;
  background: linear-gradient(145deg,rgba(185,212,241,.22),rgba(104,144,184,.10));
  box-shadow: none;
  text-shadow: 0 2px 14px rgba(4,14,28,.12);
}
html.calls-matte .in-call .tile.speaking .camera-off :is(.calls-avatar-large,.avatar.big) {
  background: linear-gradient(145deg,rgba(155,198,246,.31),rgba(72,123,182,.16));
}
html.calls-matte .in-call .tile .camera-off>.icon {
  width: 18px;
  height: 18px;
  color: #cbd8e5;
  opacity: .65;
}
html.calls-matte .in-call .tile .camera-off small {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: .01em;
  color: #cfdae6;
}
html.calls-matte .in-call .calls-overlay-layout>.calls-secondary .camera-off {
  gap: 4px;
}
html.calls-matte .in-call .calls-overlay-layout>.calls-secondary .camera-off :is(.calls-avatar-large,.avatar.big),
html.calls-matte .in-call :is(.ux-strip,.filmstrip) .tile .camera-off :is(.calls-avatar-large,.avatar.big) {
  width: 40px;
  height: 40px;
  font-size: 17px;
}
html.calls-matte .in-call .calls-overlay-layout>.calls-secondary .camera-off>.icon { width: 12px; height: 12px; }
html.calls-matte .in-call .calls-overlay-layout>.calls-secondary .camera-off small { font-size: 9px; }
html.calls-matte .in-call .calls-overlay-layout>.calls-secondary .camera-off:has(>small) {
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 4px;
}
html.calls-matte .in-call .calls-overlay-layout>.calls-secondary .camera-off:has(>small)>:is(.calls-avatar-large,.avatar.big) { grid-column: 1/-1; }
html.calls-matte .in-call .stage.grid[data-participant-count]:not([data-participant-count="1"]):not([data-participant-count="2"]):not([data-participant-count="3"]):not([data-participant-count="4"]) .tile .camera-off :is(.calls-avatar-large,.avatar.big) {
  width: 64px;
  height: 64px;
  font-size: 24px;
}

/* Names and status are readable without adding another framed card. */
html.calls-matte .in-call .tile .nameplate>span {
  color: #f2f7fd;
  border: 0;
  border-radius: 999px;
  background: rgba(12,23,37,.27);
  box-shadow: none;
  backdrop-filter: blur(10px) saturate(1.08);
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(3,12,24,.12);
}
html.calls-matte .in-call .tile:has(.camera-off):not(:has(>video:not([hidden]))) .nameplate>span:first-child,
html.calls-matte .in-call .tile .nameplate>.calls-tile-status {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html.calls-matte .in-call .tile-tag {
  border-color: transparent;
  border-radius: 999px;
  color: #e1edfa;
  background: rgba(255,255,255,.07);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* The account, meeting status and controls share the lobby's outer material.
 * Their inner controls remain borderless; active actions use the same blue.
 */
html.calls-matte .in-call :is(.header-right,.room-call-summary,.room-dock):not(.glass-painted) {
  color: var(--matte-text);
  background: var(--matte-panel) !important;
  border-color: var(--matte-line) !important;
  box-shadow: var(--matte-shadow) !important;
  backdrop-filter: var(--matte-blur) !important;
  -webkit-backdrop-filter: var(--matte-blur) !important;
}
html.calls-matte .in-call .room-call-summary .call-meta { border-left-color: rgba(232,245,255,.13); }
html.calls-matte #app .in-call .room-call-summary #duration {
  color: #e1ebf5;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
html.calls-matte .in-call .room-dock .tool:not(.off):not(.end) {
  border-color: transparent;
  box-shadow: none !important;
}
html.calls-matte .in-call .room-dock .tool:is(.selected,[data-state=active],[aria-pressed=true],[aria-expanded=true]):not(.off):not(.end) {
  color: #fff;
  background: var(--matte-primary);
  border-color: transparent;
  box-shadow: var(--matte-primary-shadow) !important;
}
html.calls-matte .in-call .room-dock .tool:is(.selected,[data-state=active],[aria-pressed=true],[aria-expanded=true]):not(.off):not(.end):hover {
  background: var(--matte-primary-hover);
}
html.calls-matte .in-call .room-dock .tool.off,
html.calls-matte .in-call .room-dock>[data-action=leave] { border-color: transparent !important; }
html.calls-matte .in-call #side-panel .panel-head,
html.calls-matte .in-call #side-panel .chat-input { border-color: rgba(232,245,255,.12); }
html.calls-matte .in-call .room-more-menu .room-more-item {
  border-color: transparent;
  box-shadow: none;
}
/* Only the outer room surface samples/filters the scene. Keep inner action
 * controls clear, with their blue/red/green semantic fills and focus outlines.
 */
html.calls-matte body .in-call :is(.header-right,.room-call-summary,.room-dock,.room-more-menu,#side-panel,.calls-chat-overlay) :is(.btn,.icon-btn,.calls-mini,.tool,.room-more-item) {
  border-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html.calls-matte body .in-call :is(.header-right,.room-call-summary,.room-dock,.room-more-menu,#side-panel,.calls-chat-overlay) :is(.btn,.icon-btn,.calls-mini,.tool,.room-more-item):not(:where(.primary,.danger,.off,.end,.selected,[aria-pressed=true],[aria-expanded=true],[data-state=active])) {
  box-shadow: none !important;
}
html.calls-matte body .in-call :is(.header-right,.room-call-summary,.room-dock,.room-more-menu,#side-panel,.calls-chat-overlay) :is(button,a,select,input)>.sg-pane {
  display: none !important;
}

@media(max-width:800px), (pointer:coarse) {
  html.calls-matte #app>.shell.in-call { --room-tile-blur: blur(10px) saturate(1.08); }
  html.calls-matte .in-call .tile .camera-off :is(.calls-avatar-large,.avatar.big) { width: 76px; height: 76px; font-size: 29px; }
  html.calls-matte .in-call .calls-overlay-layout>.calls-secondary .camera-off :is(.calls-avatar-large,.avatar.big),
  html.calls-matte .in-call :is(.ux-strip,.filmstrip) .tile .camera-off :is(.calls-avatar-large,.avatar.big) { width: 36px; height: 36px; font-size: 16px; }
  html.calls-matte .in-call .tile .camera-off small { font-size: 11px; }
  html.calls-matte .in-call .calls-overlay-layout>.calls-secondary .camera-off small { font-size: 8px; }
}
@media(prefers-reduced-transparency:reduce) {
  html.calls-matte #app>.shell.in-call {
    --room-tile-surface: #25313e;
    --room-tile-blur: none;
    --room-tile-line: rgba(232,245,255,.10);
  }
  html.calls-matte .in-call .tile .nameplate>span,
  html.calls-matte .in-call .tile-tag { background: #25313e; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Finish the shared dark palette. These labels used to retain individual
 * light-theme blues even when their parent had the correct optical material.
 * Explicit roles preserve the distinction between copy, links and statuses.
 */
html.calls-matte .cab-shell :is(
  .calls-balance-grid section>span,
  .cab-key-form label,
  .calls-task-form label,
  .cab-player-controls label
) { color: var(--matte-label); }
html.calls-matte .cab-shell :is(
  .cab-card h2>span,
  .cab-detail-bottom .cab-person small,
  .cab-note-actions,
  .cab-chat-message time,
  .cab-call-info dt,
  .cab-task-row small,
  .cab-task-crm,
  .cab-integration-heading p,
  .cab-integration-heading small,
  .cab-key-form p,
  .calls-task-form p,
  .calls-billing-summary p,
  .calls-billing-plan ul,
  .calls-billing-plan small,
  .calls-billing-price>span,
  .calls-billing-details p,
  .calls-balance-grid small,
  .calls-pack-price del,
  .calls-billing-plan .calls-pack-option>small
) { color: var(--matte-muted); }
html.calls-matte .cab-shell :is(
  .cab-card h2,
  .cab-task-row strong,
  .cab-call-info dd,
  .calls-balance-grid strong,
  .calls-billing-price,
  .calls-pack-price
) { color: var(--matte-text); }
html.calls-matte .cab-shell .calls-pack-option[aria-pressed=true]>small {
  color: var(--matte-text);
}
html.calls-matte .cab-shell .calls-pack-price del {
  text-decoration-color: currentColor;
}
html.calls-matte .cab-shell .cab-card h2>.icon,
html.calls-matte .calls-schedule-countdown { color: var(--matte-info); }
html.calls-matte .cab-shell :is(.cab-ready,.calls-billing-included,.cab-task-check) {
  color: var(--matte-success);
}
html.calls-matte .cab-shell :is(.cab-failed,.cab-partial),
html.calls-matte #cab-player-message { color: var(--matte-warning); }
html.calls-matte .cab-shell .cab-error,
html.calls-matte .calls-email-notice[role=alert] { color: var(--matte-error); }

/* Account, invitation, voice and device settings use the same hierarchy. */
html.calls-matte :is(
  .dialog .field-label,
  .dialog .settings-field>label,
  .dialog .settings-row>label,
  .dialog .calls-option-card small,
  .prejoin .calls-option-card small,
  .calls-translation-description,
  .calls-translation-info,
  .calls-voice-details small,
  .calls-voice-caption
) { color: var(--matte-muted); }
html.calls-matte :is(.dialog,.prejoin) .calls-option-card>.icon,
html.calls-matte .calls-voice-placeholder { color: var(--matte-info); }
html.calls-matte .calls-voice-placeholder { background: rgba(168,213,255,.13); }
html.calls-matte .calls-phone-invite-list>li,
html.calls-matte .calls-voice-status {
  color: var(--matte-text);
  background: rgba(19,27,38,.76);
  border-color: var(--matte-line);
}
html.calls-matte .calls-email-status,
html.calls-matte .connection-banner {
  color: var(--matte-warning);
  background: rgba(83,61,29,.52);
}
html.calls-matte .calls-email-status.is-verified {
  color: var(--matte-success);
  background: rgba(28,86,67,.44);
}
html.calls-matte .ux-translation-state .ux-on { color: var(--matte-success); }
html.calls-matte .in-call .rec-badge {
  color: var(--matte-error);
  background: rgba(126,41,61,.42);
}
html.calls-matte .in-call :is(.presentation>small,.presentation p,.slide-footer) {
  color: var(--matte-muted);
}
html.calls-matte .in-call .presentation h2 { color: var(--matte-text); }
html.calls-matte body .tr13-modes button[aria-checked=true],
html.calls-matte body .calls-policy-row [aria-checked=true] {
  color: var(--matte-text);
  background: var(--matte-selected) !important;
  border-color: var(--matte-selected-line);
}
/* The old pale-primary loading state must not put navy copy on a blue action. */
html.calls-matte body :is(.btn.primary,.cw-create,.cab-nav-primary).is-loading,
html.calls-matte body :is(.btn.primary,.cw-create,.cab-nav-primary) .loading-label {
  color: var(--matte-blue-ink) !important;
}
