.os-frame {
  --os-ink: var(--as-stage,#ffffff);
  --os-panel: var(--as-stage-panel,#f6f8fc);
  --os-paper: var(--as-stage-ink,#162239);
  --os-quiet: var(--as-stage-muted,#52617a);
  --os-grid: color-mix(in srgb,var(--os-quiet) 72%,var(--os-ink));
  --os-mint: var(--os-channel);
  --os-red: var(--as-stage-accent,#2454d9);
  --os-server-top: color-mix(in srgb,var(--os-channel) 25%,var(--os-panel));
  --os-server-side: color-mix(in srgb,var(--os-channel) 9%,var(--os-panel));
  --os-alert-bg: color-mix(in srgb,var(--os-red) 12%,var(--os-panel));
  --os-share2: color-mix(in srgb,var(--os-mint) 76%,var(--os-paper));
  --os-share3: var(--os-mint);
  --os-share4: color-mix(in srgb,var(--os-mint) 84%,var(--os-ink));
  --os-share5: color-mix(in srgb,var(--os-mint) 69%,var(--os-ink));
  --os-share6: var(--os-quiet);
  --os-document:#f4f7fc; --os-doc-ink:#162239; --os-doc-rule:#cbd4e2;
  --os-doc-clause:color-mix(in srgb,var(--os-channel) 17%,var(--os-document));
  --os-marked-clause:color-mix(in srgb,var(--as-stage-accent,#2454d9) 44%,var(--os-document));
  color: var(--os-paper);
  background-color: var(--os-ink);
  background-image: none;
  background-size: 15px 15px;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  border: 0;
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
}
.os-frame * { box-sizing: border-box; }
.os-head,.os-sources { display: flex; align-items:center; justify-content:space-between; gap:8px; background:transparent; padding:9px clamp(10px,2vw,21px); }
.os-head { border-bottom:0; font: 600 12px/1.25 ui-monospace,monospace; text-transform:uppercase; letter-spacing:.055em; }
.os-head .os-phase { color:var(--os-mint); white-space:nowrap; }
.os-visual {min-height:0;height:100%;width:100%;}
.os-visual svg { display:block; width:100%; height:100%; overflow:visible; }
.os-visual svg text {font-family:Inter,system-ui,sans-serif;user-select:none;}
.os-visual svg .os-mono {font-family:ui-monospace,SFMono-Regular,monospace;letter-spacing:.045em;}
.os-sources { justify-content:flex-start;border-top:0; padding-block:5px; flex-wrap:nowrap;}
.os-source { border:0; background:transparent; color:var(--os-quiet); font:500 13px/1.25 Inter,system-ui,sans-serif; padding:7px 4px; display:inline-flex; gap:6px; align-items:center; white-space:nowrap; text-decoration:underline; text-decoration-color:var(--os-grid);text-underline-offset:4px; }
.os-source:hover,.os-source:focus-visible {color:var(--os-paper);text-decoration-color:var(--os-mint);background:transparent;}
.os-source:focus-visible {outline:2px solid var(--os-mint);outline-offset:1px;}
.os-source svg {width:14px;height:14px;color:var(--os-mint);}
.os-sources .os-separator {width:1px;height:15px;background:var(--os-grid);}
.os-frame.os-small .os-head {padding:7px 9px;font-size:10px;}
.os-frame.os-small .os-sources {gap:5px;padding:1px 7px;min-height:33px;}
.os-frame.os-small .os-source {font-size:12px;min-height:31px;}
.os-frame.os-small .os-source svg{width:12px;height:12px;}
.os-frame.os-orion {--os-channel:var(--as-s1,#0d6877);}
.os-frame.os-recovery {--os-channel:var(--as-s2,#5642a4);}

.os-head{position:relative;z-index:2}.os-small .as-stage-glyphs svg{width:18px;height:18px}

.sr-stage .os-frame{grid-template-rows:minmax(0,1fr) auto}
.sr-stage .os-head{display:none}
.sr-stage .os-visual{max-width:900px;margin-inline:auto}
.sr-stage .os-sources{justify-content:center;flex-wrap:wrap;gap:4px 14px;min-height:39px;padding:2px 12px}
.sr-stage .os-source{white-space:normal;min-height:30px;line-height:1.22;font-size:13px;color:var(--as-ink);text-decoration-color:var(--as-line)}
.sr-stage .os-separator{display:none}
@media(max-width:600px){.sr-stage .os-sources{justify-content:flex-start;gap:0 10px;padding:0;min-height:36px}.sr-stage .os-source{min-width:0;max-width:54%;min-height:34px;padding:4px 0;font-size:12px}.sr-stage .os-source svg{flex:none}}
