/* Original schools 10 (Play/Memphis) and 9 (Prism/Glass), visual layer only. */
html[data-theme="memphis"]{--paper:#fff4e9;--panel:#fffaf4;--ink:#251b3d;--night:#e8dfff;--purple:#5834c9;--lime:#ffdc58;--muted:#675a76;--line:#35234d;--positive:#285c4e;--negative:#a12359;--card-line:2px solid #35234d;--card-shadow:5px 5px #35234d;--surface:#fffaf4;--wallet:#d4ece6;--reading:#ffdc58;--rose:#f8cddd;color:var(--ink);background:var(--paper)}
html[data-theme="glass"]{--paper:#0c1030;--panel:#ffffff0c;--ink:#f0f4ff;--night:#ffffff0c;--purple:#a7daff;--lime:#d9b6ff;--muted:#c2cce4;--line:#c1d8ff55;--positive:#a8eed7;--negative:#ffa5cc;--card-line:1px solid #c1d8ff55;--card-shadow:inset 0 1px 0 #ffffff25,0 15px 35px #0002;--surface:#ffffff0c;--wallet:#ffffff0c;--reading:#ffffff0c;--rose:#c9a1ff20;color:var(--ink);background:var(--paper);color-scheme:dark}
html[data-theme] body{font-family:var(--font-ar,'Zero Arabic','Noto Sans Arabic',Tahoma,sans-serif);color:var(--ink);line-height:1.6}
html[data-theme="memphis"] body{background:radial-gradient(#5834c91a 1px,transparent 1px),var(--paper);background-size:18px 18px}
html[data-theme="glass"] body{background:radial-gradient(ellipse at 5% 25%,#184f94 0,transparent 45%),radial-gradient(ellipse at 95% 45%,#572987 0,transparent 45%),#0c1030;background-attachment:fixed}
html[data-theme] .shell{max-width:1440px;padding-inline:4vw}
html[data-theme] :is(a,button,summary,select){-webkit-tap-highlight-color:transparent}
html[data-theme] :is(a,button,summary,select):focus-visible{outline:3px solid var(--purple);outline-offset:5px}
html[data-theme] .nav{height:auto;min-height:94px;flex-wrap:wrap;padding-block:18px;gap:16px;border-color:var(--line)}
html[data-theme] .brand strong,html[data-theme] .footer-brand{font-family:var(--font-en,'Zero Latin',Arial,sans-serif)}
html[data-theme] .brand-dot{color:var(--purple)}
html[data-theme] .brand-symbol{background:var(--lime);border-color:var(--ink);color:var(--ink);width:34px;height:34px;font:20px/1 var(--font-en,'Zero Latin',monospace);transform:none}
html[data-theme] .nav nav{font-size:14px;gap:24px}
html[data-theme] .nav nav a{color:var(--muted);min-height:44px;display:inline-flex;align-items:center}
html[data-theme] .nav nav a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:6px}
html[data-theme] .plus{border:1px solid var(--line);border-radius:28px;background:transparent;color:var(--ink);min-height:44px;padding:9px 16px}
html[data-theme] .plus:hover{background:var(--rose)}
html[data-theme] .plus>span{background:var(--purple);color:var(--paper);border-radius:50%;font-family:var(--font-en,'Zero Latin',Arial,sans-serif)}
html[data-theme] .masthead{padding:38px 0 30px;align-items:center;gap:30px}
html[data-theme] .eyebrow{font:12px/1.6 var(--font-en,'Zero Latin',monospace);letter-spacing:1.7px;color:var(--purple);direction:ltr;text-align:right;margin-bottom:12px}
html[data-theme] .masthead h1{font-family:inherit;font-size:clamp(36px,4.2vw,65px);line-height:1.45;font-weight:800;letter-spacing:-1.3px;margin:0}
html[data-theme] .masthead h1 :is(em,span){font-style:normal;color:#bc3268;text-decoration:underline wavy #f3be43;text-underline-offset:12px;text-decoration-thickness:4px}
html[data-theme] .intro-copy{background:var(--rose);border:var(--card-line);border-radius:45% 45% 5px 5px;padding:28px 25px 24px;transform:rotate(-3deg);font-size:15px;line-height:1.9;color:var(--ink);max-width:260px;box-shadow:none}
html[data-theme] .broadcast{background:transparent;color:var(--ink);border-radius:0;overflow:visible}
html[data-theme] .broadcast-top{padding:0 0 19px;gap:16px;min-height:58px;border:0;align-items:center}
html[data-theme] .broadcast-name{font-size:16px;gap:9px}
html[data-theme] .broadcast-name i{background:var(--purple)}
html[data-theme] .broadcast-code{color:var(--muted);font:12px/1.5 var(--font-en,'Zero Latin',monospace);direction:ltr}
html[data-theme] .feed-status{gap:10px;font-size:14px}
html[data-theme] .feed-status b{font-size:14px;line-height:1.6;background:var(--panel);border:1px solid var(--line);color:var(--ink);border-radius:24px;padding:5px 12px}
html[data-theme] .feed-status span{color:var(--muted);font-size:14px}
html[data-theme] .dashboard{grid-template-columns:1.15fr 1fr;gap:24px;align-items:stretch;direction:ltr}
html[data-theme] :is(.decision,.wallet){border:var(--card-line);box-shadow:var(--card-shadow);color:var(--ink);padding:28px;overflow:hidden}
html[data-theme] .decision{border-radius:110px 110px 25px 25px;padding-top:38px;background:#e8dfff}
html[data-theme] .wallet{border-radius:6px 6px 70px 6px;background:var(--wallet)}
html[data-theme] .card-head{font-size:15px;line-height:1.7;gap:12px}
html[data-theme] .card-head small{font-size:14px;line-height:1.7;color:var(--muted)}
html[data-theme] .gauge{max-width:500px;margin:28px auto 0}
html[data-theme] .gauge svg{height:auto;min-height:0;aspect-ratio:510/295}
html[data-theme] .gauge [data-sector]{stroke:#35234d;stroke-width:26}
html[data-theme] .gauge [data-sector].active{stroke:var(--purple);stroke-width:32}
html[data-theme] .gauge text{fill:var(--muted);font-family:inherit;font-size:18px}
html[data-theme] .gauge text .latin{font-family:var(--font-en,'Zero Latin',Arial,sans-serif);font-size:17px}
html[data-theme] .gauge text.active{fill:var(--ink);font-weight:800}
html[data-theme] #needle :is(path,circle){fill:var(--ink)}
html[data-theme] #needle circle:last-child{fill:#e8dfff}
html[data-theme] .gauge h2{font:700 clamp(26px,2.6vw,36px)/1.5 var(--font-ar,'Zero Arabic',Tahoma,sans-serif);margin:0 0 6px;color:var(--ink);unicode-bidi:plaintext}
html[data-theme] .gauge p{font-size:14px;color:var(--muted);margin:0;line-height:1.8}
html[data-theme] .decision-foot{display:flex;color:var(--muted);border-color:var(--line);font-size:12px;margin-top:22px}
html[data-theme] .decision-foot span:last-child{font-family:var(--font-en,'Zero Latin',monospace)}
html[data-theme] .wallet .card-head small{font:14px var(--font-en,'Zero Latin',monospace);color:var(--muted)}
html[data-theme] .balance{font:600 clamp(48px,5vw,70px)/1.25 var(--font-en,'Zero Latin',Arial,sans-serif);color:var(--ink);font-variant-numeric:tabular-nums lining-nums;letter-spacing:-2px;margin:30px 0 27px;unicode-bidi:isolate}
html[data-theme] .wallet dl{gap:20px;margin-bottom:22px}
html[data-theme] .wallet dl>div{border-color:var(--line)}
html[data-theme] .wallet dt{color:var(--muted);font-size:14px}
html[data-theme] .wallet dd{font:500 25px/1.5 var(--font-en,'Zero Latin',Arial,sans-serif);font-variant-numeric:tabular-nums lining-nums;unicode-bidi:isolate}
html[data-theme] .wallet dd[data-sign=positive]{color:var(--positive)}
html[data-theme] .wallet dd[data-sign=negative]{color:var(--negative)}
html[data-theme] .wallet-meta{margin-top:auto;border-color:var(--line)}
html[data-theme] :is(.wallet .empty-chart,.wallet .muted,.delivery){color:var(--muted);font-size:14px;line-height:1.8}
html[data-theme] .delivery summary{color:var(--ink);min-height:44px;font-size:14px}
html[data-theme] .delivery summary:before{color:var(--purple)}
html[data-theme] .cabin{margin-top:32px;border:var(--card-line);background:var(--surface);border-radius:26px;overflow:hidden;box-shadow:var(--card-shadow)}
html[data-theme] .cabin header{background:var(--surface);padding:22px 26px;border-bottom:1px solid var(--line)}
html[data-theme] .cabin h2{font:700 26px/1.6 var(--font-ar,'Zero Arabic',Tahoma,sans-serif)}
html[data-theme] .cabin small{font:12px/1.5 var(--font-en,'Zero Latin',monospace);color:var(--muted);letter-spacing:1px}
html[data-theme] .cabin header>span{border-color:var(--line);font-size:14px;line-height:1.6;color:var(--ink)}
html[data-theme] .camera-stage{aspect-ratio:3/2;background:#211d25}
html[data-theme] .world-footer{background:var(--surface);padding:16px 24px;border-top:1px solid var(--line);min-height:78px}
html[data-theme] :is(.scene-caption,.camera-controls>span){font-size:14px;line-height:1.7;color:var(--muted)}
html[data-theme] .camera-controls button{font-size:14px;color:var(--ink);border:1px solid var(--line);border-radius:8px;min-height:44px;padding:9px 12px}
html[data-theme] .camera-controls button:hover{background:var(--rose)}
html[data-theme] .camera-controls button[aria-pressed=true]{border-color:var(--ink);background:var(--rose)}
html[data-theme] .models{margin-top:38px;background:var(--reading);border:var(--card-line);border-radius:12px 70px 12px 12px;padding:24px 28px;box-shadow:var(--card-shadow)}
html[data-theme] .models h2{font:700 23px/1.6 var(--font-ar,'Zero Arabic',Tahoma,sans-serif)}
html[data-theme] .models h2 span{color:var(--purple)}
html[data-theme] .models .card-head small{color:var(--muted)}
html[data-theme] .model-grid{border-top:1px solid var(--line);border-bottom:0}
html[data-theme] .model-grid article{border-color:var(--line);padding:22px;min-width:0;align-items:center}
html[data-theme] .model-grid h3{font:14px/1.5 var(--font-en,'Zero Latin',monospace);color:var(--muted)}
html[data-theme] .model-grid p{color:var(--ink);font-size:18px}
html[data-theme] .triangle{background:var(--ink);width:38px;height:34px}
html[data-theme] .triangle:before{background:var(--reading)}
html[data-theme] .triangle span{font-family:var(--font-en,'Zero Latin',Arial,sans-serif);color:var(--ink);padding-top:10px}
html[data-theme] .model-grid [data-reading=up] .triangle{background:var(--positive)}
html[data-theme] .model-grid [data-reading=down] .triangle{background:var(--negative)}
html[data-theme] .history{margin-top:32px;background:var(--surface);padding:26px 28px;border:var(--card-line);border-radius:26px;box-shadow:var(--card-shadow)}
html[data-theme] .history h2{font:700 26px/1.6 var(--font-ar,'Zero Arabic',Tahoma,sans-serif);margin:0 0 14px}
html[data-theme] .history :is(p,caption,th){color:var(--muted);font-size:14px;line-height:1.8}
html[data-theme] .history table{table-layout:fixed}
html[data-theme] .history th{border-color:var(--line);padding:14px 10px}
html[data-theme] .history td{border-color:var(--line);padding:20px 10px;font-size:14px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
html[data-theme] .history td:first-child{font:700 15px/1.6 var(--font-en,'Zero Latin',Arial,sans-serif);color:var(--purple)}
html[data-theme] .history td:nth-child(2){font:500 20px/1.6 var(--font-en,'Zero Latin',Arial,sans-serif);unicode-bidi:isolate}
html[data-theme] .history tr:hover td{background:var(--rose)}
html[data-theme] .lab-note{background:#5834c9;color:#fffaf4;border:2px solid #35234d;box-shadow:7px 7px #f2b747;border-radius:70px 10px 50px 10px;margin-top:40px;padding:28px 34px}
html[data-theme] .lab-note h2{font:700 25px/1.6 var(--font-ar,'Zero Arabic',Tahoma,sans-serif)}
html[data-theme] .lab-note p{color:#fffaf4;font-size:14px;line-height:1.9}
html[data-theme] .lab-note a{min-height:44px;display:inline-flex;align-items:center;font-size:14px;border-color:#fffaf4}
html[data-theme] .note-symbol{border-color:#fffaf4}
html[data-theme] footer{font-size:12px;line-height:1.8;color:var(--muted);padding:32px 0;margin-top:25px;border-top:1px solid var(--line)}
html[data-theme] .footer-brand{color:var(--ink);font-size:20px;min-height:44px;display:inline-flex;align-items:center}
html[data-theme] .theme-switcher{display:flex;align-items:center;gap:10px;font-size:14px;flex-wrap:wrap;border:0;padding:0;margin:0 0 18px;min-width:0}
html[data-theme] .theme-switcher legend{float:inline-start;padding:0;margin-inline-end:10px;line-height:44px}
html[data-theme] .theme-options{display:inline-flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:28px;background:var(--panel)}
html[data-theme] :is(.theme-options button,.theme-switcher button){min-height:44px;min-width:44px;padding:8px 14px;color:var(--ink);border:1px solid transparent;border-radius:24px;background:transparent;font-size:14px}
html[data-theme] :is(.theme-options button,.theme-switcher button)[aria-pressed=true]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
html[data-theme] :is(.theme-options button,.theme-switcher button):hover{border-color:var(--purple)}
html[data-theme] .theme-switcher select{min-height:44px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:24px;padding:8px 16px;font:inherit}
html[data-theme] .skip{background:var(--lime);color:var(--ink);min-height:44px}
html[data-theme] body[data-paused=true] .feed-status b{background:var(--rose);color:var(--ink);border-color:var(--line)}
html[data-theme] body[data-paused=true] .broadcast-name i{background:var(--muted)}
html[data-theme] .gauge[data-unavailable=true] [data-sector]{stroke:var(--line);opacity:.35}
html[data-theme] .gauge[data-unavailable=true] #needle{opacity:.2}
html[data-theme="glass"] :is(.decision,.wallet,.cabin,.models,.history){background:var(--surface);border-radius:30px;backdrop-filter:blur(28px);-webkit-backdrop-filter:blur(28px)}
html[data-theme="glass"] .masthead h1{font-weight:400;letter-spacing:-1px}
html[data-theme="glass"] .masthead h1 :is(em,span){background:linear-gradient(90deg,#b4e7ff,#e4b9ff);background-clip:text;-webkit-background-clip:text;color:transparent;text-decoration:none}
html[data-theme="glass"] .intro-copy{background:linear-gradient(130deg,#d3edff25,#c9a1ff25);border-radius:24px;transform:none}
html[data-theme="glass"] .brand-symbol{border-color:#d8d6ff;background:transparent;color:#f0f4ff;box-shadow:0 0 20px #b8b9ff40}
html[data-theme="glass"] .gauge [data-sector]{stroke:#c1d8ff40}
html[data-theme="glass"] .gauge [data-sector].active{stroke:var(--purple);filter:drop-shadow(0 0 8px #9ddcff80)}
html[data-theme="glass"] #needle circle:last-child{fill:#182d59}
html[data-theme="glass"] .lab-note{background:linear-gradient(130deg,#d3edff25,#c9a1ff25);color:var(--ink);border:var(--card-line);box-shadow:var(--card-shadow);border-radius:30px;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
html[data-theme="glass"] .lab-note p{color:var(--ink)}
html[data-theme="glass"] .camera-controls button[aria-pressed=true]{background:#c9a1ff25}
html[data-theme="glass"] .triangle:before{background:#1a2d58}
/* The three source readings are icons only; their text remains screen-reader accessible. */
html[data-theme] .model-grid article{display:flex;justify-content:center;align-items:center;min-height:94px}
html[data-theme] .model-grid .triangle{flex:none}
@media(max-width:1000px){html[data-theme] .nav{gap:14px}html[data-theme] .nav nav{gap:18px}html[data-theme] .masthead{padding-top:30px}html[data-theme] .intro-copy{max-width:220px;padding:24px 20px}html[data-theme] .dashboard{gap:20px}html[data-theme] :is(.decision,.wallet){padding:26px 22px}html[data-theme] .decision{padding-top:36px}html[data-theme] .gauge text{font-size:22px}html[data-theme] .gauge text .latin{font-size:20px}html[data-theme] .balance{font-size:52px}html[data-theme] .cabin small{display:none}html[data-theme] .world-footer{flex-wrap:wrap}html[data-theme] .model-grid article{padding:20px 14px}}
@media(max-width:700px){html[data-theme] .shell{padding-inline:18px}html[data-theme] .nav{min-height:80px;padding-block:14px;gap:12px}html[data-theme] .brand strong{font-size:25px}html[data-theme] .nav nav{display:none}html[data-theme] .plus{font-size:14px;padding-inline:13px}html[data-theme] .theme-switcher{width:100%;justify-content:space-between;border-top:1px solid var(--line);padding-top:12px}html[data-theme] .theme-options{margin-inline-start:auto}html[data-theme] .masthead{padding:26px 0 22px;display:block}html[data-theme] .masthead h1{font-size:clamp(32px,8.2vw,44px);line-height:1.5;letter-spacing:-.7px}html[data-theme] .eyebrow{font-size:12px;letter-spacing:1px;margin-bottom:8px}html[data-theme] .intro-copy{display:none}html[data-theme] .broadcast-top{gap:10px;flex-wrap:wrap;padding-bottom:18px}html[data-theme] .broadcast-name{flex-basis:auto;font-size:15px}html[data-theme] .feed-status{gap:8px;width:100%}html[data-theme] .feed-status b,html[data-theme] .feed-status span{font-size:14px}html[data-theme] .broadcast-code{display:none}html[data-theme] .dashboard{grid-template-columns:1fr;gap:20px}html[data-theme] .decision{padding:35px 18px 24px;border-radius:85px 85px 22px 22px}html[data-theme] .wallet{padding:24px;border-radius:6px 6px 58px 6px}html[data-theme] .card-head{font-size:15px;gap:10px}html[data-theme] .card-head small{font-size:14px}html[data-theme] .gauge{margin-top:24px}html[data-theme] .gauge text{font-size:23px}html[data-theme] .gauge text .latin{font-size:21px}html[data-theme] .gauge h2{font-size:28px}html[data-theme] .gauge p{font-size:14px}html[data-theme] .decision-foot{font-size:12px;gap:10px;margin-top:20px}html[data-theme] .decision-foot span:last-child{font-size:11px}html[data-theme] .balance{font-size:54px;margin:22px 0}html[data-theme] .wallet dt{font-size:14px}html[data-theme] .wallet dd{font-size:24px}html[data-theme] .wallet-meta{margin-top:4px}html[data-theme] :is(.wallet .empty-chart,.wallet .muted,.delivery){font-size:14px}html[data-theme] .cabin{margin-top:26px;border-radius:22px}html[data-theme] .cabin header{padding:17px 16px;gap:12px}html[data-theme] .cabin h2{font-size:22px}html[data-theme] .cabin header>span{font-size:14px;max-width:46%;padding:6px 10px}html[data-theme] .world-footer{padding:16px;gap:14px}html[data-theme] .camera-controls{gap:8px}html[data-theme] .camera-controls>span{font-size:14px;flex-basis:100%}html[data-theme] .camera-controls button{font-size:14px;padding:8px 10px}html[data-theme] .models{margin-top:28px;padding:22px 16px;border-radius:12px 48px 12px 12px}html[data-theme] .models .card-head{display:block;margin-bottom:16px}html[data-theme] .models h2{font-size:22px}html[data-theme] .models .card-head small{font-size:14px;display:block;margin-top:4px}html[data-theme] .model-grid article{padding:18px 6px;grid-template-columns:1fr;grid-template-rows:auto auto auto;gap:12px;text-align:center}html[data-theme] .model-grid h3{font-size:13px;text-align:center}html[data-theme] .triangle{grid-row:3;grid-column:1;justify-self:center;width:32px;height:29px}html[data-theme] .triangle span{font-size:16px;padding-top:7px}html[data-theme] .history{margin-top:28px;padding:22px 16px;border-radius:22px}html[data-theme] .history h2{font-size:24px}html[data-theme] .history th{padding:12px 5px;font-size:14px}html[data-theme] .history td{padding:16px 5px;font-size:14px}html[data-theme] .history td:first-child{font-size:14px}html[data-theme] .history td:nth-child(2){font-size:18px}html[data-theme] .lab-note{margin-top:32px;padding:26px 22px;border-radius:48px 10px 38px 10px;gap:15px}html[data-theme] .lab-note h2{font-size:23px}html[data-theme] .lab-note p{font-size:14px}html[data-theme] .lab-note a{font-size:14px;margin-inline-start:0}html[data-theme] .note-symbol{display:none}html[data-theme] .lab-note>div{flex-basis:100%}html[data-theme] footer{padding:26px 0;gap:12px}html[data-theme="glass"] :is(.decision,.wallet,.cabin,.models,.history){border-radius:24px}}
@media(prefers-reduced-motion:reduce){html[data-theme] *,html[data-theme] *:before,html[data-theme] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}html[data-theme] body{background-attachment:scroll}}
@media(forced-colors:active){html[data-theme] :is(.decision,.wallet,.cabin,.models,.history,.lab-note){box-shadow:none;border:2px solid CanvasText}html[data-theme] .gauge [data-sector]{stroke:GrayText}html[data-theme] .gauge [data-sector].active{stroke:Highlight}html[data-theme] #needle :is(path,circle){fill:CanvasText}html[data-theme] .triangle{background:CanvasText}html[data-theme] .triangle:before{background:Canvas}html[data-theme] .model-grid [data-reading=up] .triangle,html[data-theme] .model-grid [data-reading=down] .triangle{background:CanvasText}}


html[data-theme] .brand,html[data-theme] .nav nav a{min-width:44px;min-height:44px}
html[data-theme] .theme-switcher{border:none!important;padding:0!important}

/* Keep the browser from enlarging individual labels in the fixed gauge geometry. */
html[data-theme] {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html[data-theme] .shell {
  padding-left: max(18px, 4vw, env(safe-area-inset-left));
  padding-right: max(18px, 4vw, env(safe-area-inset-right));
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
html[data-theme] .masthead h1 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .15em .45em;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.18;
}
html[data-theme] .hero-name {
  color: var(--purple);
  white-space: nowrap;
  letter-spacing: -.04em;
}
html[data-theme="memphis"] .hero-name { color: #a82b60; }
html[data-theme] .theme-switcher { gap: 12px; margin-bottom: 20px; }
html[data-theme] .theme-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
html[data-theme] .theme-options button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-color: var(--line);
  background: var(--surface);
}
html[data-theme] .theme-options button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
html[data-theme] .broadcast-top {
  border: var(--card-line);
  background: var(--surface);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
html[data-theme] .feed-badges { display: flex; flex-wrap: wrap; gap: 6px; }
html[data-theme] body[data-paused="true"] .feed-status .feed-tier { background: var(--panel); }
html[data-theme] .gauge-face { position: relative; }
html[data-theme] .gauge-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font: 500 clamp(11px, 1vw, 16px)/1.2 var(--font-en);
  color: var(--muted);
}
html[data-theme] .gauge-labels > span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translateX(-50%);
  display: grid;
  text-align: center;
  white-space: nowrap;
}
html[data-theme] .gauge-labels [data-key="ENTER_PUT"] { --x: 8%; --y: 56%; }
html[data-theme] .gauge-labels [data-key="HOLD_PUT"]  { --x: 23%; --y: 22%; }
html[data-theme] .gauge-labels [data-key="CENTER"]    { --x: 50%; --y: 9%; }
html[data-theme] .gauge-labels [data-key="HOLD_CALL"] { --x: 77%; --y: 22%; }
html[data-theme] .gauge-labels [data-key="ENTER_CALL"]{ --x: 92%; --y: 56%; }
html[data-theme] .gauge-labels .active { color: var(--ink); font-weight: 800; }
html[data-theme] .gauge h2 { unicode-bidi: isolate; }
html[data-theme] .gauge h2 bdi { display: inline-block; }
@media(max-width:700px) {
  html[data-theme] .masthead h1 { font-size: clamp(30px, 8vw, 42px); }
  html[data-theme] .broadcast-top { gap: 8px; }
  html[data-theme] .feed-status { gap: 6px; }
  html[data-theme] .gauge-labels { font-size: 12px; }
}

html[data-theme] {
  --call-ink: #125b60;
  --call-fill: #d5eeeb;
  --put-ink: #733575;
  --put-fill: #f1dcf1;
}
html[data-theme="glass"] {
  --call-ink: #a1f3e7;
  --call-fill: #50d3c523;
  --put-ink: #f7b4ee;
  --put-fill: #ee8bdd22;
}
.copy-ar, .copy-en { display: block; unicode-bidi: isolate; }
.copy-en { font-family: var(--font-en); }
html[lang="ar"] .copy-ar + .copy-en {
  font-size: .78em;
  font-weight: 500;
  line-height: 1.35;
}
html[lang="en"][data-theme] body,
html[lang="en"][data-theme] .masthead h1,
html[lang="en"][data-theme] .gauge h2 { font-family: var(--font-en); }
html[lang="en"][data-theme] :is(.decision,.wallet) { direction: ltr; }
html[lang="en"][data-theme] :is(.history th,.history caption,.history td:nth-child(2)) { text-align: left; }
html[data-theme] .masthead h1 { display: block; }
html[data-theme] .masthead h1 .copy-en { font-size: .56em; margin-top: .38em; }
html[lang="en"][data-theme] .masthead h1 .copy-en { font-size: 1em; margin-top: 0; }
.display-settings {
  flex-basis: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
html[data-theme] .nav:has(.display-settings) { padding-block-start: 0; row-gap: 2px; }
html[data-theme] .display-settings :is(.theme-options,.language-options) {
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  gap: 0;
}
html[data-theme] .display-settings .theme-options {
  margin-inline-start: 6px;
  padding-inline-start: 6px;
  border-inline-start: 1px solid var(--line);
}
html[data-theme] .display-settings button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  color: var(--ink);
  background: transparent;
}
html[data-theme] .setting-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font: 700 11px/1 var(--font-en);
}
html[data-theme] .setting-icon[lang="ar"] { font-family: var(--font-ar); font-size: 15px; }
html[data-theme] .theme-icon { font-size: 17px; }
html[data-theme] .display-settings button:hover .setting-icon { border-color: var(--purple); }
html[data-theme] .display-settings button[aria-pressed="true"] { background: transparent; color: var(--ink); }
html[data-theme] .display-settings button[aria-pressed="true"] .setting-icon {
  border-color: var(--ink);
  color: var(--paper);
  background: var(--ink);
}
html[data-theme] .feed-status b :is(.copy-ar,.copy-en) { color: inherit; }
html[lang="ar"][data-theme] .feed-status .copy-ar + .copy-en { font-size: 11px; }
html[data-theme] .gauge-labels .copy-en { white-space: nowrap; }
html[data-theme] .gauge-labels [data-key="ENTER_PUT"] { --x: 10%; }
html[data-theme] .gauge-labels [data-key="ENTER_CALL"] { --x: 90%; }
html[data-theme] .gauge-labels [data-key$="_CALL"] { color: var(--call-ink); }
html[data-theme] .gauge-labels [data-key$="_PUT"] { color: var(--put-ink); }
html[data-theme] .gauge [data-sector$="_CALL"].active { stroke: var(--call-ink); }
html[data-theme] .gauge [data-sector$="_PUT"].active { stroke: var(--put-ink); }

.wallet-chart {
  margin: 0 0 20px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.wallet-chart figcaption { font-weight: 700; line-height: 1.35; }
.wallet-chart p { margin: 9px 0 0; font-size: 13px; color: var(--muted); }
#wallet-plot { direction: ltr; margin-top: 8px; }
#wallet-plot:empty { display: none; }
#wallet-plot svg { display: block; width: 100%; height: auto; max-height: 106px; overflow: visible; }
.wallet-ticks, .wallet-times {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font: 500 11px/1.3 var(--font-en);
  font-variant-numeric: tabular-nums;
}
.wallet-ticks { margin-bottom: 4px; }
.chart-grid { fill: none; stroke: var(--line); opacity: .4; stroke-width: 1; }
.chart-line { fill: none; stroke: var(--purple); stroke-width: 2.5; stroke-linejoin: round; }
.chart-point { fill: var(--purple); stroke: var(--surface); stroke-width: 1.5; }

html[data-theme] .history td { vertical-align: middle; text-align: start; }
.trade-side {
  display: inline-block;
  padding: 4px 7px;
  border: 1px solid currentColor;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 12px;
}
.trade-side[data-side="call"] { color: var(--call-ink); background: var(--call-fill); }
.trade-side[data-side="put"] { color: var(--put-ink); background: var(--put-fill); }
.trade-percent { display: inline-block; white-space: nowrap; font-weight: 700; }
.trade-outcome { display: block; font: 500 13px/1.3 var(--font-ar); }
[data-outcome="win"] :is(.trade-percent,.trade-outcome) { color: var(--positive); }
[data-outcome="loss"] :is(.trade-percent,.trade-outcome) { color: var(--negative); }
.history td:last-child .copy-en { white-space: nowrap; }
@media(max-width:700px) {
  html[data-theme] .theme-switcher { width: auto; }
  html[data-theme] .gauge-labels .copy-en { font-size: 10px; }
  html[data-theme] .history td:nth-child(2) { font-size: 16px; }
  .history td:last-child .copy-en { white-space: normal; }
}
