:root[data-theme="arc"] {
  color-scheme: dark;
  --bg: #0b0b17;
  --panel: #111524;
  --panel-soft: #272b3a;
  --border: #555665;
  --green: #eddfca;
  --green2: #ffbf16;
  --muted: #aeb1bf;
  --danger: #fa8186;
  --eg-frost: rgba(14,17,31,.93);
  --eg-frost-heavy: rgba(11,14,26,.985);
  --eg-frost-soft: rgba(37,40,58,.80);
  --eg-line: rgba(202,199,219,.28);
  --eg-toplight: rgba(242,231,216,.13);
  --eg-shadow: 0 13px 38px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.06);
  --eg-text: #f3ecdf;
  --arc-cream: #f3ecdf;
  --arc-amber: #ffbf16;
  --arc-muted: #b2b5c3;
  --arc-green: #41d18f;
  --arc-line: rgba(207,202,220,.28);
  --arc-heading-font: Bahnschrift, "Arial Narrow", "Segoe UI", sans-serif;
  /* Existing components use these legacy tone tokens. */
  --tone-10141d: #0b0b17;
  --tone-191f29: #111524;
  --tone-202832: #272b3a;
  --tone-313a43: #4c4e61;
  --tone-f0f4f3: #f3ecdf;
  --tone-edf4f1: #f3ecdf;
  --tone-9ba5b0: #b2b5c3;
  --tone-8c9ca2: #b2b5c3;
  --tone-1d252f: #1d2032;
  --tone-35414c: #4f5062;
  --tone-1c242e: #151829;
  --tone-1d252e: #161a2b;
  --tone-263b36: #2a293c;
  --tone-202a31: #18182a;
  --tone-405653: #313446;
  --tone-39444d: #535466;
  --tone-a3f2c7: #ffbf16;
  --tone-73dfad: #ffbf16;
  --tone-73dfad38: #ffbf1638;
  --tone-52d99617: #ffbf1617;
  --tone-345a49: #3f6256;
  --tone-1b332f: #18332a;
  --tone-111923: #131321;
  --tone-fff: #f3ecdf;
  --tone-0d1b16: #11131d;
  --rgba-0: rgba(216,206,230,.16);
  --rgba-5: rgba(27,27,43,.97);
  --rgba-6: rgba(17,20,34,.99);
  --rgba-10: rgba(18,21,36,.96);
  --rgba-11: rgba(14,17,31,.98);
}
/* Approved ARC reference, 2026-11-16. Only this theme changes geometry.
   Nine real FFT bands and all existing room/media handlers are preserved. */
@font-face{font-family:"Echo ARC";font-style:normal;font-weight:400 700;font-display:swap;src:url("/arc-oswald-cyrillic.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Echo ARC";font-style:normal;font-weight:400 700;font-display:swap;src:url("/arc-oswald-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
.connection-arc-rotor{display:none}
:root[data-theme="arc"]{
  --arc-heading-font:"Echo ARC","Bahnschrift Condensed","Arial Narrow",sans-serif;
  --arc-cut:polygon(12px 0,calc(100% - 12px) 0,100% 12px,100% calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,0 calc(100% - 12px),0 12px);
  --arc-slot-cut:polygon(8px 0,calc(100% - 8px) 0,100% 8px,100% calc(100% - 8px),calc(100% - 8px) 100%,8px 100%,0 calc(100% - 8px),0 8px);
}
:root[data-theme="arc"] body{
  color:var(--arc-cream);
  background:radial-gradient(ellipse at 79% 63%,#e15ba40d,transparent 35%),url("/arc-background.webp") center center/cover fixed no-repeat,#0b0b17;
}
:root[data-theme="arc"] body::before{
  content:"";position:fixed;inset:0 auto 0 0;width:min(56vh,100vw);height:100dvh;
  background:url("/arc-ribbon.svg") 0 0/auto 100% no-repeat;pointer-events:none;z-index:0;
}
:root[data-theme="arc"] .app-shell{position:relative;isolation:isolate;width:90%;max-width:1600px;z-index:1}
:root[data-theme="arc"] .topbar{height:clamp(54px,8vh,72px);min-height:54px;border-bottom:1px solid #b1a58488;gap:16px}
:root[data-theme="arc"] .brand{position:relative;color:var(--arc-cream);font-style:italic;font-size:32px;letter-spacing:-1.5px}
:root[data-theme="arc"] .brand-mark{width:40px;height:40px}
:root[data-theme="arc"] .brand-mark svg path{stroke:#68c7d7}
:root[data-theme="arc"] .brand-mark svg text{fill:var(--arc-cream)}
:root[data-theme="arc"] .brand-dot{color:var(--arc-cream)}
:root[data-theme="arc"] .brand::after{content:"";position:absolute;left:calc(100% + 30px);top:8px;width:62px;height:24px;border-left:1px solid #d9cdad99;background:repeating-linear-gradient(120deg,transparent 0 4px,#a1957688 4px 8px,transparent 8px 12px) right center/34px 16px no-repeat;pointer-events:none}
:root[data-theme="arc"] .topbar-windows-download,
:root[data-theme="arc"] .preferences-open{
  border:1px solid #e9bd48;border-radius:0;clip-path:var(--arc-slot-cut);background:#11131e;color:var(--arc-amber);
}
:root[data-theme="arc"] .topbar-windows-download{font:600 14px var(--arc-heading-font);letter-spacing:.5px;text-transform:uppercase;min-height:36px;padding:7px 15px}
:root[data-theme="arc"] .topbar-windows-version{font:11px "Segoe UI",sans-serif;color:var(--arc-cream)}
:root[data-theme="arc"] .preferences-open{width:38px;height:36px;min-width:38px;min-height:36px;color:var(--arc-cream);border-color:#b9aa87;font-size:25px}
:root[data-theme="arc"] .topbar-windows-download:hover,
:root[data-theme="arc"] .preferences-open:hover{background:#2b2930;border-color:#ffe194}
:root[data-theme="arc"] .footer{border-top:1px solid #b1a58499;color:#c4b794}
:root[data-theme="arc"] .footer>span{font:12px "Segoe UI",sans-serif;color:#e4d6b8;position:relative}
:root[data-theme="arc"] .footer>span::after{content:"";display:inline-block;width:24px;height:9px;margin-left:18px;background:repeating-linear-gradient(120deg,transparent 0 3px,#aa9c7b 3px 5px,transparent 5px 8px)}
:root[data-theme="arc"] #feedbackOpen{color:#b6a98b;border-color:#776e58;background:#10121a}
/* The bounded room grid still owns the fixed-height dock row; only content scrolls. */
:root[data-theme="arc"] body.in-room #screenCall.call-layout{width:calc(100% - min(10vw,128px));max-width:1320px;margin-inline:auto;padding:12px 0 14px;gap:0}
:root[data-theme="arc"] body.in-room #screenCall .call-main{gap:10px}
:root[data-theme="arc"] body.in-room #screenCall .room-scroll{width:100%;max-width:none;padding:0 4px 8px;margin:0;scrollbar-gutter:auto}
:root[data-theme="arc"] .call-heading{margin:0 6px 12px;min-height:58px;align-items:center}
:root[data-theme="arc"] .call-heading h1{font:700 clamp(34px,3.5vw,48px)/1.05 var(--arc-heading-font);text-transform:uppercase;letter-spacing:.4px;margin:0;color:#f5e7c5}
:root[data-theme="arc"] .call-heading h1::after{content:"";display:inline-block;width:42px;height:.7em;margin-left:15px;transform:skew(-23deg);background:repeating-linear-gradient(90deg,#ffbf16 0 7px,transparent 7px 12px);vertical-align:5%}
:root[data-theme="arc"] .connection-pill{font:600 14px var(--arc-heading-font);text-transform:uppercase;letter-spacing:.8px;background:#0d211d;border-color:#6bb684;color:#85efb0;padding:6px 16px;min-height:32px}
:root[data-theme="arc"] .connection-pill .online-dot{background:#76f0ab;box-shadow:0 0 8px #6df0ad33;width:10px;height:10px}
/* Reusable nine-slice metalwork keeps line/corner widths constant at every size. */
:root[data-theme="arc"] :is(.room-banner,.participant-card,.control-dock,.entry-card,.chat-panel,.preferences-dialog,.image-dialog,.image-viewer,.screen-share-preview,.whats-new-dialog){
  border:1px solid transparent;border-image:url("/arc-panel.svg") 12 fill/12px/0 stretch;
  border-radius:0;background:linear-gradient(145deg,#22242b,#10131e 75%);box-shadow:0 8px 22px #03040c55;clip-path:var(--arc-cut);
}
:root[data-theme="arc"] body.in-room #screenCall .room-banner{
  width:100%;max-width:none;min-height:58px;margin:0 0 18px;padding:10px 11px 10px 20px;
  display:grid;grid-template-columns:114px minmax(190px,1fr) 192px 185px;align-items:center;gap:12px;
}
:root[data-theme="arc"] body.in-room #screenCall .room-banner-code,
:root[data-theme="arc"] body.in-room #screenCall .room-banner-code-row,
:root[data-theme="arc"] body.in-room #screenCall .room-banner-secondary{display:contents}
:root[data-theme="arc"] .room-banner-secondary>span{display:none}
:root[data-theme="arc"] .room-banner .mini-label{font:600 14px var(--arc-heading-font);letter-spacing:.2px;color:#f0e3c4;position:relative;white-space:nowrap}
:root[data-theme="arc"] .room-banner .mini-label::after{content:"";width:2px;height:30px;background:#ffbf16;position:absolute;right:-4px;top:-6px;transform:skew(-25deg)}
:root[data-theme="arc"] #roomName{color:#f2e4c6;font:600 clamp(18px,1.8vw,24px)/1.2 var(--arc-heading-font);white-space:nowrap;letter-spacing:.5px;overflow:visible;min-width:0}
:root[data-theme="arc"] .room-banner :is(.copy-room-code,.banner-button){
  width:100%;min-width:0;min-height:36px;padding:6px 12px;font:600 15px/1.2 var(--arc-heading-font);
  text-transform:uppercase;letter-spacing:.15px;border:1px solid #c7b78c;border-radius:0;clip-path:var(--arc-slot-cut);
}
:root[data-theme="arc"] .room-banner .copy-room-code{color:#141417;background:#ffbf16;border-color:#ffe19b;box-shadow:inset 0 1px 0 #fff7}
:root[data-theme="arc"] .room-banner .banner-button{color:#eee2c4;background:#23242a;border-color:#a99a7b}
:root[data-theme="arc"] .room-banner .copy-room-code:hover{background:#ffdb69}
:root[data-theme="arc"] .room-banner .banner-button:hover{background:#38352f;border-color:#f6ce70}
:root[data-theme="arc"] body.in-room #screenCall .section-heading{margin:0 7px 12px}
:root[data-theme="arc"] .section-heading h2{font:600 21px/1.2 var(--arc-heading-font);text-transform:uppercase;letter-spacing:.3px;color:#eadcbd}
:root[data-theme="arc"] .count-badge{font:500 15px var(--arc-heading-font);padding:1px 9px;min-width:44px;border:1px solid #b38b22;color:#ffd454;background:#15151a;clip-path:var(--arc-slot-cut);border-radius:0}
/* Horizontal radio modules. CSS counters label the existing cards; no protocol fields. */
:root[data-theme="arc"] body.in-room #screenCall .participant-grid{counter-reset:arc-operator;gap:16px;grid-template-columns:repeat(4,minmax(0,1fr));justify-content:center;align-items:stretch}
:root[data-theme="arc"] body.in-room #screenCall .participant-card{
  counter-increment:arc-operator;position:relative;overflow:hidden;display:grid;box-sizing:border-box;
  grid-template-columns:44% minmax(0,1fr);grid-template-rows:27px 49px minmax(62px,1fr);gap:0 10px;
  min-height:172px;height:auto;padding:7px 10px 10px;isolation:isolate;
}
:root[data-theme="arc"] body.in-room #screenCall .participant-card:has(.peer-volume){grid-template-rows:27px 49px minmax(58px,1fr) 16px}
:root[data-theme="arc"] body.in-room #screenCall .participant-card.is-self{background:linear-gradient(145deg,#2a2932,#11141e)}
:root[data-theme="arc"] body.in-room #screenCall .participant-card.speaking{filter:drop-shadow(0 0 5px #f5c53c44)}
:root[data-theme="arc"] body.in-room #screenCall .participant-card::before{content:"";position:absolute;inset:34px 9px auto;height:1px;background:#b9aa7c88;pointer-events:none}
:root[data-theme="arc"] body.in-room #screenCall .tile-top{grid-column:1/-1;grid-row:1;display:flex;justify-content:space-between;align-items:center;gap:8px;z-index:1;min-width:0}
:root[data-theme="arc"] body.in-room #screenCall .tile-tag{
  font:700 15px/1 var(--arc-heading-font);text-transform:uppercase;white-space:nowrap;letter-spacing:.3px;position:relative;color:#101218;align-self:stretch;display:flex;align-items:center;padding:0 20px 0 14px;
  background:linear-gradient(120deg,#ffbf16 0 75%,transparent 75% 78%,#ffbf16 78% 82%,transparent 82% 85%,#ffbf16 85% 89%,transparent 89%);
}
:root[data-theme="arc"] body.in-room #screenCall .tile-tag::before{content:none;display:none}
:root[data-theme="arc"] body.in-room #screenCall .tile-top .small-muted{font:500 12px var(--arc-heading-font);color:#e2d5b5;text-align:right;line-height:1.1;min-width:0}
:root[data-theme="arc"] body.in-room #screenCall .avatar-wrap{display:contents}
:root[data-theme="arc"] body.in-room #screenCall .activity-ring{display:none}
:root[data-theme="arc"] body.in-room #screenCall .participant-grid .participant-card .avatar{
  grid-column:1;grid-row:2/-1;position:relative;display:block;width:100%;height:100%;min-height:0;min-width:0;
  align-self:stretch;margin:0;border:0;border-radius:0;overflow:hidden;background:linear-gradient(160deg,#1c283a,#0b1321);
}
:root[data-theme="arc"] body.in-room #screenCall .avatar img{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;border:0;border-radius:0;transform:none}
:root[data-theme="arc"] body.in-room #screenCall .voice-wave-meter{
  grid-column:2;grid-row:2;position:relative;display:flex;align-items:flex-end;justify-content:center;gap:4px;
  width:100%;height:100%;max-width:none;min-width:0;left:auto;right:auto;top:auto;bottom:auto;
  margin:0;padding:12px 0 8px;opacity:1;transform:none!important;border:0;border-bottom:1px solid #a6967266;border-radius:0;
  background:repeating-linear-gradient(90deg,transparent 0 10px,#b9aa7c44 10px 11px,transparent 11px 16px) left bottom/100% 3px no-repeat;
  box-shadow:none;pointer-events:none;
}
:root[data-theme="arc"] body.in-room #screenCall .voice-wave-meter i{
  width:auto;min-width:2px;max-width:16px;flex:1 1 0;height:100%;border-radius:0;
  background:repeating-linear-gradient(0deg,#77766f 0 3px,transparent 3px 4px);opacity:.65;
  transform:scaleY(var(--spectrum-level,.14));transform-origin:bottom;animation:none!important;
}
:root[data-theme="arc"] body.in-room #screenCall .participant-card.is-spectrum-active .voice-wave-meter i{background:repeating-linear-gradient(0deg,#ffbf16 0 3px,transparent 3px 4px);opacity:1}
:root[data-theme="arc"] body.in-room #screenCall .participant-card:not(.is-spectrum-active) .voice-wave-meter i{transform:scaleY(.14)!important}
:root[data-theme="arc"] body.in-room #screenCall .tile-bottom{grid-column:2;grid-row:3;display:flex;align-items:center;justify-content:space-between;align-self:stretch;min-width:0;gap:6px;padding:7px 0 2px}
:root[data-theme="arc"] body.in-room #screenCall .tile-name{min-width:0;display:grid;gap:4px}
:root[data-theme="arc"] body.in-room #screenCall .tile-name strong{font:500 18px/1.15 var(--arc-heading-font);text-transform:uppercase;letter-spacing:.1px;white-space:normal;overflow-wrap:anywhere;overflow:visible;max-width:none;color:#f0dfb9}
:root[data-theme="arc"] body.in-room #screenCall .tile-bottom .small-muted{font:11px/1.25 "Segoe UI",sans-serif;color:#d7c8ac;white-space:normal}
:root[data-theme="arc"] body.in-room #screenCall .mic-icon{width:24px;flex:none;color:#87ddb4}
:root[data-theme="arc"] body.in-room #screenCall .mic-icon.is-muted{color:#ff443e}
:root[data-theme="arc"] body.in-room #screenCall .peer-volume{grid-column:2;grid-row:4;min-width:0;width:100%;margin:0;height:12px;accent-color:#ffbf16}
:root[data-theme="arc"] body.in-room #screenCall .participant-grid.is-solo{grid-template-columns:minmax(0,clamp(440px,37vw,560px))}
:root[data-theme="arc"] body.in-room #screenCall .participant-grid.is-solo .participant-card{height:clamp(224px,29vh,280px);min-height:224px;padding:7px 11px 11px;grid-template-columns:48% minmax(0,1fr);grid-template-rows:30px 46% minmax(0,1fr);gap:0 14px}
:root[data-theme="arc"] body.in-room #screenCall .participant-grid.is-solo .tile-tag::before{font-size:16px}
:root[data-theme="arc"] body.in-room #screenCall .participant-grid.is-solo .tile-top .small-muted{font-size:15px;letter-spacing:.3px}
:root[data-theme="arc"] body.in-room #screenCall .participant-grid.is-solo .tile-name strong{font-size:23px}
:root[data-theme="arc"] body.in-room #screenCall .participant-grid.is-solo .mic-icon{width:28px}
:root[data-theme="arc"] body.in-room #screenCall .participant-grid.is-duo{grid-template-columns:repeat(2,minmax(0,430px))}
:root[data-theme="arc"] body.in-room #screenCall .participant-grid.is-duo .participant-card{min-height:205px;grid-template-rows:28px 70px minmax(62px,1fr)}
:root[data-theme="arc"] body.in-room #screenCall .participant-grid.is-duo .participant-card:has(.peer-volume){grid-template-rows:28px 70px minmax(62px,1fr) 16px}
:root[data-theme="arc"] body.in-room #screenCall .empty-notice{margin:18px auto 4px;text-align:center;justify-content:center;padding:0;color:#dfd1b4;background:none;border:0}
:root[data-theme="arc"] body.in-room #screenCall .empty-notice strong{font:600 23px/1.1 var(--arc-heading-font);text-transform:uppercase;letter-spacing:.4px;color:#f4e2ba}
:root[data-theme="arc"] body.in-room #screenCall .empty-notice p{font-size:12px;letter-spacing:.2px;color:#e0d2b4;margin-top:6px}
/* Seven existing actions, one equipment tray, one functional rotor. */
:root[data-theme="arc"] body.in-room #screenCall .control-dock{
  display:flex;flex-direction:column;align-items:center;justify-content:center;justify-self:center;
  width:max-content;max-width:100%;margin:0 auto;gap:6px;padding:12px 18px 8px;position:relative;
}
:root[data-theme="arc"] body.in-room #screenCall .control-dock::before{content:"";position:absolute;top:1px;left:18px;width:64px;height:3px;background:#ffbf16;pointer-events:none}
:root[data-theme="arc"] body.in-room #screenCall .room-quick-controls>.dock-buttons{display:flex;flex-wrap:nowrap;gap:10px;width:max-content;max-width:100%;padding:0;margin:0;background:none;border:0}
:root[data-theme="arc"] body.in-room #screenCall .dock-divider{display:none}
:root[data-theme="arc"] body.in-room #screenCall :is(#micButton,#deafenButton,#chatToggle,#screenButton,#noiseDockControl,#openDiagnostics,#leaveButton){
  flex:0 0 68px;box-sizing:border-box;width:68px;height:46px;min-width:68px;min-height:46px;max-width:68px;max-height:46px;
  margin:0;padding:8px;border:1px solid transparent;border-image:url("/arc-slot.svg") 8/8px/0 stretch;
  border-radius:0;clip-path:var(--arc-slot-cut);background:linear-gradient(145deg,#303133,#15181f);color:#f2e7c8;
  box-shadow:inset 0 1px 0 #fff2;display:grid;place-items:center;position:relative;
}
:root[data-theme="arc"] body.in-room #screenCall :is(#micButton,#deafenButton,#chatToggle,#screenButton,#noiseDockControl,#openDiagnostics):hover:not(:disabled){background:#3e3b33;color:#fff3cf}
:root[data-theme="arc"] body.in-room #screenCall :is(#micButton,#deafenButton).is-off{color:#ff554c;background:#422a35}
:root[data-theme="arc"] body.in-room #screenCall #leaveButton{background:linear-gradient(#b62f32,#79252a);color:#fff1d0;border-color:#db6954;border-image:none}
:root[data-theme="arc"] body.in-room #screenCall #leaveButton:hover{background:#c13c36}
:root[data-theme="arc"] body.in-room #screenCall #noiseDockControl:has(input:checked){color:#ffe28b;background:#4a3d20}
:root[data-theme="arc"] body.in-room #screenCall #chatToggle[aria-expanded="true"],
:root[data-theme="arc"] body.in-room #screenCall #screenButton[aria-pressed="true"]{background:#ffbf16;color:#181a20}
:root[data-theme="arc"] body.in-room #screenCall :is(.dock-button svg,.quick-control-icon,.chat-toggle-icon svg){width:26px;height:26px}
:root[data-theme="arc"] body.in-room #screenCall #chatToggle>span:not(.chat-toggle-icon):not(.chat-unread){display:none}
:root[data-theme="arc"] body.in-room #screenCall #chatUnread{position:absolute;right:1px;top:1px;min-width:15px;height:15px;font-size:9px}
:root[data-theme="arc"] body.in-room #screenCall #openDiagnostics::after{display:none}
:root[data-theme="arc"] body.in-room #screenCall #openDiagnostics .connection-standard-symbol{display:none}
:root[data-theme="arc"] body.in-room #screenCall #openDiagnostics .connection-arc-rotor{display:inline}
:root[data-theme="arc"] body.in-room #screenCall #openDiagnostics .connection-status-icon svg{display:block;width:33px;height:33px;color:#88cdff;stroke-width:1;filter:drop-shadow(0 0 2px #4199ef66);animation:none;transform-origin:center}
:root[data-theme="arc"] body.in-room #screenCall #openDiagnostics .arc-rotor-blade{fill:url(#arc-rotor-blade-fill);stroke:currentColor;stroke-width:.75;stroke-linejoin:round}
:root[data-theme="arc"] body.in-room #screenCall #openDiagnostics .connection-arc-rotor circle{fill:none;stroke:currentColor;stroke-width:.65}
:root[data-theme="arc"] body.in-room #screenCall #openDiagnostics .arc-rotor-track{stroke-opacity:.20;stroke-width:.45}
:root[data-theme="arc"] body.in-room #screenCall #openDiagnostics .arc-rotor-hub{fill:#0c152d;stroke-opacity:.45;stroke-width:.5}
:root[data-theme="arc"] body.in-room #screenCall #openDiagnostics .arc-rotor-bore{fill:#0c152d;stroke-width:.6}
:root[data-theme="arc"] body.in-room #screenCall #openDiagnostics[data-quality="warning"] .connection-status-icon svg{color:#ffcf79}
:root[data-theme="arc"] body.in-room #screenCall #openDiagnostics[data-quality="bad"] .connection-status-icon svg{color:#ff9595}
:root[data-theme="arc"] body.in-room:where(:has(#connectionPill[data-connection-state="reconnecting"])) #screenCall #openDiagnostics .connection-status-icon svg,
:root[data-theme="arc"] body.in-room #screenCall #openDiagnostics[data-pending="true"] .connection-status-icon svg{animation:arc-rotor-connect 1.6s linear infinite!important}
@keyframes arc-rotor-connect{to{transform:rotate(360deg)}}
:root[data-theme="arc"] body.in-room #screenCall .control-dock .dock-label{display:flex;width:100%;min-height:15px;margin:0;justify-content:center;color:#dfd1b3;font:500 12px var(--arc-heading-font);text-transform:uppercase;letter-spacing:.5px}
:root[data-theme="arc"] .dock-label[data-tone="muted"] .online-dot{background:#ef7b87}
:root[data-theme="arc"] .dock-label[data-tone="active"] .online-dot{background:#41d18f}
:root[data-theme="arc"] .dock-label:is([data-tone="ptt"],[data-tone="deafened"]) .online-dot{background:#f7c56c}
:root[data-theme="arc"] :is(button,a,input,textarea,select):focus-visible,
:root[data-theme="arc"] #noiseDockControl:focus-within{outline:2px solid #ffe19a;outline-offset:-4px}
/* Entrance, preferences, chat and sharing use the same dense surface system. */
:root[data-theme="arc"] .hero h1{font:700 clamp(48px,5.4vw,78px)/1.05 var(--arc-heading-font);text-transform:uppercase;letter-spacing:0;color:#f3e3c1}
:root[data-theme="arc"] .hero-description{color:#d8cfbd}
:root[data-theme="arc"] .orbit-art{display:none}
:root[data-theme="arc"] .entry-card{padding:30px}
:root[data-theme="arc"] :is(.entry-card h2,.preferences-header h2,.preferences-content h3,.preferences-content h4,.image-dialog h2,.screen-share-preview-heading strong){font-family:var(--arc-heading-font);text-transform:uppercase;letter-spacing:.3px;color:#efdfba}
:root[data-theme="arc"] :is(.primary-button,.entry-mode-tab,.preferences-content button:not(.avatar-choice),.chat-head button,.chat-compose button,.screen-share-preview button,.image-actions button,.image-viewer button,.whats-new-accept){
  border-radius:0;clip-path:var(--arc-slot-cut);font-family:var(--arc-heading-font);font-weight:500;letter-spacing:.2px;border-color:#97876a;background:#22252d;color:#e7d8b7;
}
:root[data-theme="arc"] :is(.primary-button,#imageSend,.whats-new-accept){color:#15161b;background:#ffbf16;border-color:#ffdd83}
:root[data-theme="arc"] .entry-card .entry-mode-tab.is-active{background:#e8dac0;color:#141722;border-color:#eed9a9}
:root[data-theme="arc"] .entry-mode-tabs{border-radius:0;background:#12151d;border-color:#7c715c}
:root[data-theme="arc"] :is(input:not([type="range"]):not([type="checkbox"]),textarea,select){background:#11151f;border-color:#766e5b;border-radius:3px;color:#eee3c8}
:root[data-theme="arc"] :is(.entry-create-info,.about-card,.about-hero,.preferences-live-meter .sound-card,.avatar-profile-preview){background:#191d28;border-color:#766c57;border-radius:2px}
:root[data-theme="arc"] .entry-create-info-icon{background:#2b291f;border-color:#977f42;color:#ffcf57;border-radius:0;clip-path:var(--arc-slot-cut)}
:root[data-theme="arc"] .preferences-dialog{padding:0;clip-path:none;border-radius:3px}
:root[data-theme="arc"] .preferences-header{border-bottom:1px solid #8d8065;background:#1d2029}
:root[data-theme="arc"] .preferences-navigation{border-color:#746a53;background:#121620}
:root[data-theme="arc"] [data-preferences-section]{font-family:var(--arc-heading-font);border-radius:0;color:#e6d6b8}
:root[data-theme="arc"] [data-preferences-section][aria-current="true"]{color:#15171d;background:#ffbf16;border-color:#d6ba6c}
:root[data-theme="arc"] [data-preferences-section][aria-current="true"] svg{color:inherit;stroke:currentColor}
:root[data-theme="arc"] .preferences-content>section{background:#151923;border-color:#746a53}
:root[data-theme="arc"] .avatar-choice{border-radius:5px;background:#151b28;border-color:#786f5e}
:root[data-theme="arc"] .avatar-choice img{object-fit:contain;border-radius:3px}
:root[data-theme="arc"] .avatar-choice[aria-pressed="true"]{border-color:#ffd04e;box-shadow:0 0 0 2px #f5c44066}
:root[data-theme="arc"] .avatar-profile-preview{color:#f4e8c8}
:root[data-theme="arc"] .avatar-collection-note,
:root[data-theme="arc"] .arc-fan-note{color:#c5b99f;font-size:12px;line-height:1.5}
:root[data-theme="arc"] body.in-room #chatPanel{clip-path:var(--arc-cut);border:1px solid transparent;border-image:url("/arc-panel.svg") 12 fill/12px/0 stretch;border-radius:0;background:#121620}
:root[data-theme="arc"] body.in-room #chatPanel .chat-head{background:#24252c;border-color:#9d8e6b;color:#eeddb5}
:root[data-theme="arc"] body.in-room #chatPanel .chat-heading strong{font:600 19px var(--arc-heading-font);text-transform:uppercase}
:root[data-theme="arc"] body.in-room #chatPanel .chat-messages{background:#10151f}
:root[data-theme="arc"] body.in-room #chatPanel .chat-message{background:#20242c;border:1px solid #756d59;border-radius:3px;color:#eee4cf}
:root[data-theme="arc"] body.in-room #chatPanel .chat-own{background:#302d22;border-color:#a18a48}
:root[data-theme="arc"] body.in-room #chatPanel .chat-compose{background:#1b2029;border-color:#8f8062}
:root[data-theme="arc"] body.in-room #chatPanel .chat-avatar{border-radius:3px;background:#101723}
:root[data-theme="arc"] .image-thumbnail img{border-radius:2px}
:root[data-theme="arc"] .screen-share-preview-heading{border-color:#8d7b56;background:#1b202a}
:root[data-theme="arc"] .screen-share-preview{padding:12px}
:root[data-theme="arc"] .screen-share-preview video{border-radius:2px;background:#080e19}
:root[data-theme="arc"] .toast{background:#efe0b9;color:#171a22;border:1px solid #bd9c53;border-radius:2px}
:root[data-theme="arc"] :is(.lobby-error,.audio-unlock-notice){background:#3a2025;color:#ffc1ad;border-color:#b56756}
@media(min-width:781px) and (max-width:1199px){
 :root[data-theme="arc"] body.in-room #screenCall .participant-grid:is(.is-small-group,.is-crowded){grid-template-columns:repeat(2,minmax(0,1fr))}
 :root[data-theme="arc"] body.in-room #screenCall .room-banner{grid-template-columns:96px minmax(175px,1fr) 158px 155px;gap:9px;padding-left:14px}
 :root[data-theme="arc"] .room-banner :is(.copy-room-code,.banner-button){font-size:13px;padding-inline:6px}
}
@media(max-width:780px){
 :root[data-theme="arc"] .app-shell{width:calc(100% - 28px)}
 :root[data-theme="arc"] .brand::after{display:none}
 :root[data-theme="arc"] body::before{width:min(56vh,100vw);opacity:.28}
 :root[data-theme="arc"] body.in-room #screenCall.call-layout{width:100%;padding:10px 0 12px}
 :root[data-theme="arc"] .call-heading{margin:0 3px 10px;min-height:47px}
 :root[data-theme="arc"] .call-heading h1{font-size:34px}
 :root[data-theme="arc"] .connection-pill{font-size:12px;padding:6px 10px;min-height:30px}
 :root[data-theme="arc"] .connection-pill .online-dot{width:7px;height:7px}
 :root[data-theme="arc"] .call-heading h1::after{width:28px;margin-left:9px;background-size:10px 100%}
 :root[data-theme="arc"] body.in-room #screenCall .room-banner{grid-template-columns:80px minmax(0,1fr);gap:8px;min-height:94px;padding:12px;margin-bottom:14px}
 :root[data-theme="arc"] .room-banner .mini-label{font-size:12px}
 :root[data-theme="arc"] .room-banner .mini-label::after{height:23px;top:-4px;right:1px}
 :root[data-theme="arc"] #roomName{font-size:18px;letter-spacing:0}
 :root[data-theme="arc"] .room-banner :is(.copy-room-code,.banner-button){font-size:14px;min-height:34px;width:100%}
 :root[data-theme="arc"] .room-banner .copy-room-code{grid-column:1}
 :root[data-theme="arc"] .room-banner .banner-button{grid-column:2}
 :root[data-theme="arc"] .room-banner .copy-room-code svg{display:none}
 :root[data-theme="arc"] body.in-room #screenCall .participant-grid{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
 :root[data-theme="arc"] body.in-room #screenCall .participant-grid.is-solo{grid-template-columns:minmax(0,500px)}
 :root[data-theme="arc"] body.in-room #screenCall .participant-grid.is-solo .participant-card{height:220px;min-height:220px;grid-template-columns:46% minmax(0,1fr);grid-template-rows:27px 44% minmax(0,1fr);gap:0 9px}
 :root[data-theme="arc"] body.in-room #screenCall .participant-grid.is-solo .tile-name strong{font-size:20px}
 :root[data-theme="arc"] body.in-room #screenCall .participant-grid.is-solo .tile-tag::before{font-size:13px}
 :root[data-theme="arc"] body.in-room #screenCall .participant-grid.is-solo .tile-top .small-muted{font-size:12px}
 :root[data-theme="arc"] body.in-room #screenCall .participant-grid:not(.is-solo) .participant-card{grid-template-columns:minmax(0,1fr);grid-template-rows:24px 90px auto 14px;min-height:216px;padding:7px 9px 10px;gap:0}
 :root[data-theme="arc"] body.in-room #screenCall .participant-grid:not(.is-solo) :is(.tile-top,.tile-bottom,.avatar,.peer-volume,.voice-wave-meter){grid-column:1}
 :root[data-theme="arc"] body.in-room #screenCall .participant-grid:not(.is-solo) .tile-tag{padding:0 5px;background:#ffbf16}
 :root[data-theme="arc"] body.in-room #screenCall .participant-grid:not(.is-solo) .tile-tag::before{font-size:10px}
 :root[data-theme="arc"] body.in-room #screenCall .participant-grid:not(.is-solo) .tile-top .small-muted{font-size:10px;max-width:57px}
 :root[data-theme="arc"] body.in-room #screenCall .participant-grid:not(.is-solo) .avatar{grid-row:2;margin:0 auto;width:100%;height:90px}
 :root[data-theme="arc"] body.in-room #screenCall .participant-grid:not(.is-solo) .avatar img{transform:none}
 :root[data-theme="arc"] body.in-room #screenCall .participant-grid:not(.is-solo) .voice-wave-meter{grid-row:2;align-self:end;width:55%;height:25px;justify-self:end;background:#0d121acc;z-index:2;border:0;padding:5px}
 :root[data-theme="arc"] body.in-room #screenCall .participant-grid:not(.is-solo) .tile-bottom{grid-row:3;padding:6px 0}
 :root[data-theme="arc"] body.in-room #screenCall .participant-grid:not(.is-solo) .tile-name strong{font-size:16px}
 :root[data-theme="arc"] body.in-room #screenCall .participant-grid:not(.is-solo) .peer-volume{grid-row:4}
 :root[data-theme="arc"] body.in-room #screenCall .control-dock{padding:12px 12px 8px;width:max-content;max-width:100%}
 :root[data-theme="arc"] body.in-room #screenCall .room-quick-controls>.dock-buttons{gap:7px}
 :root[data-theme="arc"] body.in-room #screenCall :is(#micButton,#deafenButton,#chatToggle,#screenButton,#noiseDockControl,#openDiagnostics,#leaveButton){width:54px;min-width:54px;max-width:54px;flex-basis:54px}
}
@media(max-width:600px){
 :root[data-theme="arc"] body.in-room #screenCall .room-quick-controls>.dock-buttons{display:grid;grid-template-columns:repeat(5,46px);grid-template-rows:46px 44px;gap:7px 9px}
 :root[data-theme="arc"] body.in-room #screenCall :is(#micButton,#deafenButton,#chatToggle,#screenButton,#noiseDockControl,#openDiagnostics,#leaveButton){width:46px;min-width:46px;max-width:46px;flex-basis:46px;height:44px;min-height:44px;max-height:44px;padding:7px}
 :root[data-theme="arc"] body.in-room #screenCall #openDiagnostics .connection-status-icon svg{width:30px;height:30px}
 :root[data-theme="arc"] .hero h1{font-size:51px}
 :root[data-theme="arc"] .entry-card{padding:24px 20px}
}
:root[data-theme="arc"][data-reduce-motion="true"] body.in-room #screenCall #openDiagnostics .connection-status-icon svg{animation:none!important}
@media(prefers-reduced-motion:reduce){:root[data-theme="arc"] body.in-room #screenCall #openDiagnostics .connection-status-icon svg{animation:none!important}}

/* Metal frames. Source artwork already contains a head-to-waist portrait; never zoom it to a face crop. */
:root[data-theme="arc"] body.in-room #screenCall :is(.room-banner,.participant-card,.control-dock){border:1px solid transparent;border-image:url("/arc-panel.svg") 12 fill/12px/0 stretch;border-radius:0;clip-path:var(--arc-cut)}
:root[data-theme="arc"] body.in-room .footer{height:40px;min-height:40px}
:root[data-theme="arc"] body.in-room #screenCall.call-layout{padding-bottom:18px}
:root[data-theme="arc"] .topbar{height:clamp(54px,7.6vh,68px)}
:root[data-theme="arc"] body.in-room #screenCall .room-banner{min-height:48px;padding-block:5px}
:root[data-theme="arc"] body.in-room #screenCall .participant-card .avatar{background:linear-gradient(160deg,#1c283a,#0b1321)}
:root[data-theme="arc"] body.in-room #screenCall .participant-card .avatar img{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;object-fit:contain;object-position:center bottom;transform:none}
:root[data-theme="arc"] body{background:linear-gradient(0deg,#0b0b17,transparent 80px),radial-gradient(ellipse at 82% 61%,#ed50ae23,transparent 36%),url("/arc-background.webp") calc(50% + 2vw) calc(50% - 5vh)/cover fixed no-repeat,#0b0b17}
@media(max-width:780px){:root[data-theme="arc"] body.in-room #screenCall .participant-grid:not(.is-solo) .avatar img{position:static;width:100%;height:100%;aspect-ratio:auto;transform:none}}
/* Tighten the roster rhythm and leave the whole operator label before its stripes. */
:root[data-theme="arc"] body.in-room #screenCall .section-heading{margin-bottom:0}
:root[data-theme="arc"] body.in-room #screenCall .tile-tag{padding-right:64px}
:root[data-theme="arc"] body.in-room #screenCall .participant-grid:not(.is-solo) .tile-tag{padding-right:32px}
:root[data-theme="arc"] body.in-room #screenCall .tile-top .small-muted{text-transform:uppercase}
:root[data-theme="arc"] body.in-room #screenCall .participant-grid .participant-card .avatar{border-right:1px solid #9f8d6580}
:root[data-theme="arc"] body.in-room #screenCall .empty-notice{width:max-content;max-width:100%}
@media(max-width:780px){:root[data-theme="arc"] body.in-room #screenCall .participant-grid:not(.is-solo) .tile-tag{padding-inline:5px}}
:root[data-theme="arc"] :is(.topbar-windows-download,.preferences-open){border-image:url("/arc-slot.svg") 8/8px/0 stretch}
@media(max-width:780px){
 :root[data-theme="arc"] body.in-room #screenCall .room-banner{grid-template-columns:1fr 1fr;gap:8px 10px;min-height:94px;padding:12px}
 :root[data-theme="arc"] body.in-room #screenCall .room-banner-code .mini-label{display:block;grid-column:1;grid-row:1}
 :root[data-theme="arc"] body.in-room #screenCall .room-banner .mini-label::after{display:none}
 :root[data-theme="arc"] body.in-room #screenCall #roomName{grid-column:2;grid-row:1;font-size:18px;letter-spacing:0}
 :root[data-theme="arc"] body.in-room #screenCall .room-banner :is(.copy-room-code,.banner-button){width:100%;min-width:0;height:36px;min-height:36px;padding:6px;font-size:14px}
 :root[data-theme="arc"] body.in-room #screenCall .room-banner .copy-room-code{grid-row:2;grid-column:1}
 :root[data-theme="arc"] body.in-room #screenCall .room-banner .banner-button{grid-row:2;grid-column:2}
 :root[data-theme="arc"] body.in-room #screenCall :is(#copyRoomCodeLabel,#copyInviteLabel){display:inline}
}
:root[data-theme="arc"] body.in-room #screenCall .control-dock .dock-label[data-tone="muted"] .online-dot{background:#ef7b87}
:root[data-theme="arc"] body.in-room #screenCall .control-dock .dock-label[data-tone="active"] .online-dot{background:#41d18f}
:root[data-theme="arc"] body.in-room #screenCall .control-dock .dock-label:is([data-tone="ptt"],[data-tone="deafened"]) .online-dot{background:#f7c56c}
/* Active equipment stays identifiable while the pointer is over it. */
:root[data-theme="arc"] body.in-room #screenCall #chatToggle[aria-expanded="true"]:hover,
:root[data-theme="arc"] body.in-room #screenCall #screenButton[aria-pressed="true"]:hover{background:#ffdb69;color:#181a20}
:root[data-theme="arc"] body.in-room #screenCall :is(#micButton,#deafenButton).is-off:hover:not(:disabled){background:#593036;color:#ff9182}
:root[data-theme="arc"] body.in-room #screenCall #noiseDockControl:has(input:checked):hover{background:#5a4822;color:#ffe28b}
:root[data-theme="arc"] .preferences-dialog .preferences-content>section{border-radius:0;clip-path:var(--arc-slot-cut)}
:root[data-theme="arc"] .avatar-profile-preview :is(.avatar-profile-image,img){border-radius:0;object-fit:contain;background:#0d1729}
:root[data-theme="arc"] .windows-download-card{border:1px solid transparent;border-image:url("/arc-panel.svg") 12 fill/12px/0 stretch;border-radius:0;background:#161923;clip-path:var(--arc-cut);color:#e6d6b8}
:root[data-theme="arc"] .windows-download-actions a{clip-path:var(--arc-slot-cut);border-radius:0;font-family:var(--arc-heading-font)}
:root[data-theme="arc"] .windows-download-actions a:not(.primary-button){background:#23262d;border:1px solid #978365;color:#eddbb5}
:root[data-theme="arc"] .windows-download-actions a.windows-download-primary{background:#ffbf16;border-color:#f2c762;color:#171820}
:root[data-theme="arc"] #avatarPreview{border-radius:0;clip-path:var(--arc-slot-cut);background:#101827;border:1px solid #ae9870}
/* Match the messenger controls without changing floating-chat geometry. */
:root[data-theme="arc"] body.in-room #chatPanel :is(.chat-head button,.chat-compose button){border-radius:0;clip-path:var(--arc-slot-cut);border-color:#97876a;background:#22252d;color:#e7d8b7}
:root[data-theme="arc"] body.in-room #chatPanel .chat-compose textarea{background:#11151f;border-color:#766e5b;border-radius:3px;color:#eee3c8}
:root[data-theme="arc"] body.in-room #chatPanel .chat-message-head strong{color:#e8d4a7}
:root[data-theme="arc"] body.in-room #chatPanel .chat-compose #chatSend,
:root[data-theme="arc"] body.in-room #chatPanel .chat-compose #chatSend:hover:not(:disabled){background:#ffbf16;color:#171820;border-color:#e5bf5c;box-shadow:inset 0 1px 0 #ffe5a555}
:root[data-theme="arc"] .preferences-dialog .preferences-header button{border-radius:0;clip-path:var(--arc-slot-cut);border:1px solid #8d8065;background:#252830;color:#eee0bd}

/* All 19 source portraits include helmets, chest and waist. Contain the full
   image on every surface; no source-specific zoom or negative translation. */
:root[data-theme="arc"] :is(.avatar,.chat-avatar,.avatar-choice) img[src^="/avatars/arc-raider-"]{width:100%;height:100%;aspect-ratio:auto;object-fit:contain;object-position:center bottom;transform:none;border-radius:0;background:transparent}

:root[data-theme="arc"] body.in-room #chatPanel .chat-avatar img[src^="/avatars/arc-raider-"]{object-fit:contain;object-position:center bottom;transform:none;border-radius:0}

/* ARC legibility and alignment polish (visual review, 16 Nov 2026).
   Only the ARC theme is affected: base Echo layouts and icons stay unchanged. */

/* One restrained copy surface. Its fading edges leave the ribbon visible.
   The neutral wrapper is display:contents in other themes. */
:root[data-theme="arc"] #screenLobby .hero{overflow:visible}
:root[data-theme="arc"] #screenLobby .hero-copy{
  display:flow-root;position:relative;isolation:isolate;box-sizing:border-box;
  width:fit-content;max-width:min(100%,560px);padding:16px 14px 14px;
}
:root[data-theme="arc"] #screenLobby .hero-copy::before{
  content:"";position:absolute;inset:-6px -12px -8px -4px;z-index:-1;pointer-events:none;border-radius:12px;
  background:linear-gradient(100deg,rgba(9,12,25,.80),rgba(9,12,25,.70) 52%,rgba(9,12,25,.20) 88%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 18px,#000 calc(100% - 28px),transparent),linear-gradient(180deg,transparent,#000 16px,#000 calc(100% - 18px),transparent);
  mask-composite:intersect;
  backdrop-filter:blur(3px);filter:blur(6px);
}
:root[data-theme="arc"] #screenLobby .hero h1{
  width:max-content;max-width:100%;padding:0;border:0;background:none;text-shadow:0 2px 3px #06061088;
}
:root[data-theme="arc"] #screenLobby .hero-description{
  max-width:470px;padding:0;color:#f3e9d9;background:none;text-shadow:0 1px 2px #05050d88;
}
:root[data-theme="arc"] #screenLobby .feature-row{
  width:max-content;max-width:100%;padding:0;background:none;color:#eee3d0;text-shadow:0 1px 2px #05050d88;
}
:root[data-theme="arc"] .footer{
  background:linear-gradient(90deg,rgba(8,10,21,.76),rgba(8,10,21,.48) 240px,transparent 440px);
}
:root[data-theme="arc"] .footer>span{
  display:inline-flex;align-items:center;gap:2px;padding:5px 9px;border:0;border-radius:8px;
  background:transparent;color:#fff0d2;font:600 13px/1.3 "Segoe UI",sans-serif;text-shadow:0 1px 3px #000;
}
:root[data-theme="arc"] .footer>span::after{margin-left:10px;flex:none}
@media(max-width:680px){:root[data-theme="arc"] #screenLobby .hero-copy::before{inset:-6px -2px -8px}}
@media(min-width:681px) and (max-height:640px){
  :root[data-theme="arc"] #screenLobby .hero-copy{padding-block:6px}
  :root[data-theme="arc"] #screenLobby .hero-copy::before{inset:-10px -10px}
}
:root[data-theme="arc"][data-reduce-transparency="true"] #screenLobby .hero-copy::before{
  background:linear-gradient(100deg,rgba(9,12,25,.97),rgba(9,12,25,.92) 65%,rgba(9,12,25,.55) 90%,transparent);backdrop-filter:none;
}
:root[data-theme="arc"] body.in-room #screenCall .section-heading h2 {
  display:inline-flex;
  align-items:center;
  gap:9px;
  max-width:100%;
  padding:5px 12px;
  border:0;border-radius:8px;padding-left:15px;
  background:linear-gradient(100deg,rgba(12,15,29,.84),rgba(12,15,29,.62) 70%,rgba(12,15,29,.12));
  color:#fff0d2;
  text-shadow:0 1px 3px #000;
  box-shadow:0 3px 12px rgba(3,4,11,.20);
}
:root[data-theme="arc"] body.in-room #screenCall .section-heading .count-badge {
  color:#ffe18b;
  background:#101422;
  border-color:#b89345;
}
:root[data-theme="arc"] body.in-room #screenCall .tile-name strong {
  color:#fff0d2;
  font-weight:700;
  text-shadow:0 1px 2px #000;
}
:root[data-theme="arc"] body.in-room #screenCall .participant-grid.is-solo .tile-name strong {
  font-size:clamp(22px,1.7vw,26px);
}
:root[data-theme="arc"] body.in-room #screenCall .tile-name .small-muted {
  color:#eadcc6;
  font-size:13px;
}
:root[data-theme="arc"] body.in-room #screenCall .tile-tag {
  text-shadow:0 1px 0 rgba(255,255,255,.16);
}
@media (max-width:780px) {
  :root[data-theme="arc"] body.in-room #screenCall .participant-grid:not(.is-solo) .tile-tag {
    font-size:11px;
    padding:0 7px;
  }
  :root[data-theme="arc"] body.in-room #screenCall .participant-grid:not(.is-solo) .tile-name .small-muted {
    font-size:11px;
  }
}
/* The icon's former 33px SVG lived in a 24px wrapper, creating a
   measurable 4.5px right/down shift. Center it against the whole button
   box instead; the SVG's connection animation still works unchanged. */
:root[data-theme="arc"] body.in-room #screenCall #openDiagnostics .connection-status-icon {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0;
  padding:0;
  pointer-events:none;
}
:root[data-theme="arc"] body.in-room #screenCall #openDiagnostics .connection-status-icon svg {
  display:block;
  flex:0 0 auto;
  align-self:center;
  margin:0;
  transform-origin:50% 50%;
}

/* Secondary settings surfaces use the same quiet palette as the copy group. */
:root[data-theme="arc"] .preferences-dialog .feedback-settings-card{background:#191f2b;border-color:#6f6654;border-radius:10px}
:root[data-theme="arc"] .preferences-dialog #feedbackSettingsOpen{background:#252832;color:#efdfba;border-color:#9a8866;border-radius:0;clip-path:var(--arc-slot-cut);font-family:var(--arc-heading-font)}
:root[data-theme="arc"] .preferences-dialog #feedbackSettingsOpen:hover{background:#37342b;border-color:#e5bf5c}
:root[data-theme="arc"] .preferences-dialog .audio-diagnostics{background:#19212c;border-color:#655f50;border-radius:8px}
:root[data-theme="arc"] .preferences-dialog .audio-diagnostics pre{background:#0e1420;border-color:#645d4e;border-radius:6px;color:#ded5c4}

/* One proportionally scaled scene on both screens. The clear circle stays
   inside the dividers; atmosphere fades at source-image edges, never at a
   header/footer stripe. Decorative layers do not clip user content. */
:root[data-theme="arc"] body{
  --arc-circle-diameter:min(calc(100dvh - 166px),calc(100vw - 48px));
  --arc-scene-size:calc(var(--arc-circle-diameter)*1.367733);
  --arc-scene-x:clamp(calc(var(--arc-circle-diameter)*.5 + 24px),76vw,calc(100vw - var(--arc-circle-diameter)*.5 - 24px));
  --arc-scene-y:calc(50dvh + 9px);
  --arc-scene-left:calc(var(--arc-scene-x) - var(--arc-scene-size)*1.16153);
  --arc-scene-top:calc(var(--arc-scene-y) - var(--arc-scene-size)*.47609);
  background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22160%22%20height%3D%22160%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.72%22%20numOctaves%3D%223%22%20seed%3D%2217%22%20stitchTiles%3D%22stitch%22%2F%3E%3CfeColorMatrix%20type%3D%22saturate%22%20values%3D%220%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url%28%23n%29%22%20opacity%3D%22.16%22%2F%3E%3C%2Fsvg%3E") 0 0/160px 160px repeat,radial-gradient(ellipse at 85% 18%,#18273d88,transparent 65%),radial-gradient(ellipse at 48% 80%,#321b4380,transparent 70%),linear-gradient(125deg,#100f20,#141429 52%,#101a2a);
  background-blend-mode:soft-light,normal,normal,normal;background-attachment:fixed;isolation:isolate;
}
:root[data-theme="arc"] body::after{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;
  background-image:url("/arc-background.webp");background-repeat:no-repeat;
  background-size:auto var(--arc-scene-size);
  background-position:var(--arc-scene-left) var(--arc-scene-top);
  mask-image:linear-gradient(90deg,transparent var(--arc-scene-left),#000 calc(var(--arc-scene-left) + var(--arc-scene-size)*.12),#000 calc(var(--arc-scene-left) + var(--arc-scene-size)*1.67683),transparent calc(var(--arc-scene-left) + var(--arc-scene-size)*1.77683)),linear-gradient(180deg,transparent var(--arc-scene-top),#000 calc(var(--arc-scene-top) + var(--arc-scene-size)*.06),#000 calc(var(--arc-scene-top) + var(--arc-scene-size)*.92),transparent calc(var(--arc-scene-top) + var(--arc-scene-size)));
  mask-composite:intersect;
}
:root[data-theme="arc"] #openPreferences{
  display:grid;place-items:center;box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;
  padding:0;border:1px solid transparent;border-image:url("/arc-slot.svg") 8/8px/0 stretch;
  background:linear-gradient(145deg,#303133,#15181f);box-shadow:inset 0 1px 0 #fff2;
}
:root[data-theme="arc"] #openPreferences .preferences-symbol{display:grid;place-items:center;width:24px;height:24px;font:22px/1 "Segoe UI Symbol",sans-serif}
:root[data-theme="arc"] #openPreferences:hover{background:#3e3b33;color:#fff3cf}
:root[data-theme="arc"] #openPreferences:active{background:#50462e;box-shadow:inset 0 2px 5px #0006}
:root[data-theme="arc"] #openPreferences:focus-visible{outline:2px solid #ffe19a;outline-offset:-4px}
/* #08's antenna occupies more of the source's upper silhouette. Reclaim only
   transparent margins: +8% uniform contain box, waist anchored to the bottom. */
:root[data-theme="arc"] body.in-room #screenCall .participant-card .avatar img[src="/avatars/arc-raider-08.webp"]{
  position:absolute;inset:-8% auto auto -4%;width:108%;height:108%;object-fit:contain;object-position:center bottom;transform:none;
}
:root[data-theme="arc"] .room-preview{background:#1c2330;border-color:#82775f;border-radius:3px;color:#efdfba}
:root[data-theme="arc"] .room-preview-icon{background:#2b2c31;color:#ffce62;border-radius:3px}
:root[data-theme="arc"] .room-preview .mini-label,:root[data-theme="arc"] .room-preview-check{color:#dacda9}

/* Crown #18: source alpha reaches the waist edge (512/512). Bottom-anchored
   uniform 5% scaling raises the head without the floating gap of translateY. */
:root[data-theme="arc"] :is(.avatar,.chat-avatar,.avatar-choice) img[src="/avatars/arc-raider-18.webp"],
:root[data-theme="arc"] body.in-room #screenCall .participant-card .avatar img[src="/avatars/arc-raider-18.webp"],
:root[data-theme="arc"] body.in-room #chatPanel .chat-avatar img[src="/avatars/arc-raider-18.webp"]{transform:scale(1.05);transform-origin:center bottom}
/* The dock owns the visible mic sentence. The card icon has an accessible state label. */
:root[data-theme="arc"] #selfMicState{display:none}

/* ARC radio log: message groups stay quiet; the metal window stays intact. */
:root[data-theme="arc"] body.in-room #chatPanel .chat-messages{padding:10px 9px 12px;gap:0;background:#111722;scrollbar-width:thin;scrollbar-color:#566072 transparent}
:root[data-theme="arc"] body.in-room #chatPanel .chat-message{position:relative;padding:7px 9px 5px;border:0;border-radius:5px;background:#1a2230;color:#eee5d4;box-shadow:none}
:root[data-theme="arc"] body.in-room #chatPanel .chat-message.chat-own{background:#272832}
:root[data-theme="arc"] body.in-room #chatPanel .chat-message:not(.chat-consecutive){margin-top:10px}
:root[data-theme="arc"] body.in-room #chatPanel .chat-message:first-of-type{margin-top:0}
:root[data-theme="arc"] body.in-room #chatPanel .chat-message:has(+.chat-consecutive){border-bottom-left-radius:0;border-bottom-right-radius:0}
:root[data-theme="arc"] body.in-room #chatPanel .chat-message.chat-consecutive{margin-top:0;padding-top:2px;padding-bottom:4px;border-top-left-radius:0;border-top-right-radius:0}
:root[data-theme="arc"] body.in-room #chatPanel .chat-message:hover{background:#2b3240}
:root[data-theme="arc"] body.in-room #chatPanel .chat-message-head{margin-bottom:3px}
:root[data-theme="arc"] body.in-room #chatPanel .chat-message-head strong{color:#c7d6e8}
:root[data-theme="arc"] body.in-room #chatPanel .chat-own .chat-message-head strong{color:#e8d4a7}
:root[data-theme="arc"] body.in-room #chatPanel .chat-message-head time{color:#b2bac8;opacity:.9;font-variant-numeric:tabular-nums}
:root[data-theme="arc"] body.in-room #chatPanel .chat-consecutive .chat-message-head{display:flex;position:absolute;left:8px;top:3px;width:27px;min-height:19px;margin:0;pointer-events:none}
:root[data-theme="arc"] body.in-room #chatPanel .chat-consecutive .chat-author{display:none}
:root[data-theme="arc"] body.in-room #chatPanel .chat-consecutive .chat-message-head time{font-size:9px;margin:0;opacity:0}
:root[data-theme="arc"] body.in-room #chatPanel .chat-consecutive:is(:hover,:focus-within) .chat-message-head time{opacity:.9}
:root[data-theme="arc"] body.in-room #chatPanel .chat-message-text{color:#eee7da;line-height:1.55;overflow-wrap:anywhere;word-break:break-word}
:root[data-theme="arc"] body.in-room #chatPanel .chat-message-text a{color:#b8d2e8;text-decoration-color:#b8d2e855}
:root[data-theme="arc"] body.in-room #chatPanel .image-message .image-thumbnail{border-color:#56607380;border-radius:4px}
:root[data-theme="arc"] body.in-room #chatPanel .image-message :is(.image-status,.image-save){color:#bdc6d3}
:root[data-theme="arc"] body.in-room #chatPanel .chat-compose{align-items:flex-end}
:root[data-theme="arc"] body.in-room #chatPanel .chat-compose textarea{height:40px;min-height:40px;max-height:120px;padding:9px 10px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#647084 transparent;scrollbar-gutter:auto;border-color:#596171;background:#101620}
:root[data-theme="arc"] body.in-room #chatPanel .chat-compose textarea:focus-visible{border-color:#c6ac63;box-shadow:0 0 0 1px #d7b95333}
:root[data-theme="arc"] body.in-room #chatPanel :is(.chat-compose textarea,.chat-messages)::-webkit-scrollbar{width:5px}
:root[data-theme="arc"] body.in-room #chatPanel :is(.chat-compose textarea,.chat-messages)::-webkit-scrollbar-thumb{border-radius:4px;background:#586375}
:root[data-theme="arc"] body.in-room #chatPanel :is(.chat-compose textarea,.chat-messages)::-webkit-scrollbar-button{display:none;width:0;height:0}

:root[data-theme="arc"] .screen-audio-controls{background:linear-gradient(110deg,#15171d,#10121a);border-color:rgba(226,212,170,.24)}
:root[data-theme="arc"] .screen-audio-controls select{border-radius:0;border-color:rgba(226,212,170,.4);background:#1c1e24;color:#f1e3bc}

/* ARC: the same compact audio row with cut corners and warm accents. */
:root[data-theme="arc"] #screenSharePreview .screen-audio-controls{
  background:transparent;border-color:rgba(226,212,170,.25)
}
:root[data-theme="arc"] #screenSharePreview .screen-audio-summary-icon{
  border-radius:0;clip-path:var(--arc-slot-cut);
  border-color:#97876a;background:#22252d;color:#ffcb4e
}
:root[data-theme="arc"] #screenSharePreview #screenAudioSettingsToggle{
  border-radius:0;clip-path:var(--arc-slot-cut);
  font-family:var(--arc-heading-font);border-color:#97876a;
  background:#22252d;color:#e7d8b7
}
:root[data-theme="arc"] #screenSharePreview #stopScreenAudio{
  border-color:#97876a;background:#22252d;color:#e7d8b7
}
:root[data-theme="arc"] #screenSharePreview #stopScreenPreview{
  border-color:#ce7780;color:#ef9ba0;background:#292027
}
