/* Updraft appearance system. Default theme intentionally preserves the original landing page. */
:root{
  --hover:#20362e;--inactive:#829588;--surface:#0d1717;
  --font:'Cascadia Code',Consolas,'SFMono-Regular',Menlo,'Liberation Mono',monospace
}
html[data-theme="c64"]{
  color-scheme:dark;--bg:#6c5eb5;--text:#c4baff;--bright:#e8e4ff;--muted:#b5aafa;
  --line:#9990e2;--amber:#c4baff;--hover:#5b4ba8;--inactive:#b5aafa;--surface:#40318d;
  --font:'Courier New','Lucida Console',monospace
}
html[data-theme="apple2"]{
  color-scheme:dark;--bg:#09120b;--text:#a8e596;--bright:#bcff9c;--muted:#91c58d;
  --line:#39573a;--amber:#b9edaa;--hover:#14301a;--inactive:#95b591;--surface:#09120b;
  --font:'Lucida Console',Monaco,'Courier New',monospace
}
html[data-theme="dos"]{
  color-scheme:dark;--bg:#030303;--text:#dedede;--bright:#f4f4f4;--muted:#b1b1b1;
  --line:#505050;--amber:#d5d5d5;--hover:#232323;--inactive:#a2a2a2;--surface:#030303;
  --font:'Lucida Console',Consolas,'Courier New',monospace
}
html[data-theme="amber"]{
  color-scheme:dark;--bg:#150d05;--text:#f4ad5d;--bright:#ffbf71;--muted:#c38a4f;
  --line:#6c492b;--amber:#ffbf71;--hover:#35210b;--inactive:#c38a4f;--surface:#150d05;
  --font:'Lucida Console',Consolas,'Courier New',monospace
}
html[data-theme="win31"]{
  color-scheme:light;--bg:#008080;--text:#111;--bright:#000080;--muted:#414141;
  --line:#888;--amber:#000080;--hover:#e3e3e3;--inactive:#4c4c4c;--surface:#c0c0c0;
  --font:Tahoma,'MS Sans Serif',Arial,sans-serif
}
html[data-theme="amiga"]{
  color-scheme:dark;--bg:#1d4b99;--text:#fdf3d7;--bright:#fff;--muted:#c5d2ec;
  --line:#91a9cc;--amber:#ffbb56;--hover:#365fa8;--inactive:#e4ddbf;--surface:#1d4b99;
  --font:'Courier New',Consolas,monospace
}
html[data-theme="midcentury"]{
  color-scheme:light;--bg:#e0dbd3;--text:#242625;--bright:#1e2525;--muted:#555851;
  --line:#aaa69d;--amber:#9d392b;--hover:#f2eee4;--inactive:#62615c;--surface:#e0dbd3;
  --font:'Helvetica Neue',Helvetica,Arial,sans-serif
}
html[data-theme="bauhaus"]{
  color-scheme:light;--bg:#f3e9d0;--text:#202020;--bright:#202020;--muted:#53514c;
  --line:#aaa08e;--amber:#ac2728;--hover:#eadcc3;--inactive:#555;--surface:#f3e9d0;
  --font:Futura,'Century Gothic',Arial,sans-serif
}

body{font-family:var(--font)}
.program-state{color:var(--inactive)}
.is-live:hover,.is-live:focus-visible{background:var(--hover)}
/* The brand graphic is only a favicon, never an element in the page. */
.brand-mark{display:none!important}
.display-footer{
  margin-top:46px;border-top:1px solid var(--line);padding-top:14px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap
}
.display-footer label{font-size:12px;letter-spacing:.10em;color:var(--muted)}
.theme-controls{display:flex;align-items:center;gap:12px;max-width:100%;flex-wrap:wrap}
.theme-swatches{display:flex;gap:3px;flex:none}
.theme-swatches i{display:block;width:12px;height:20px;border:1px solid var(--line)}
.theme-swatches i:nth-child(1){background:var(--bg)}
.theme-swatches i:nth-child(2){background:var(--bright)}
.theme-swatches i:nth-child(3){background:var(--amber)}
#updraft-theme{
  font:inherit;font-size:12px;max-width:calc(100vw - 104px);min-height:38px;
  padding:6px 25px 6px 10px;color:var(--text);background:var(--surface);
  border:1px solid var(--line);border-radius:0;cursor:pointer
}
#updraft-theme:focus-visible,#updraft-crt:focus-visible{
  outline:2px solid var(--bright);outline-offset:3px
}
.crt-control{display:inline-flex;align-items:center;gap:7px;cursor:pointer;user-select:none;white-space:nowrap}
.crt-control[hidden]{display:none}
#updraft-crt{accent-color:var(--bright);width:16px;height:16px;margin:0;cursor:pointer}

/* Terminal modes use a full-size text screen, not the narrow modern index card. */
html:is([data-theme="c64"],[data-theme="apple2"],[data-theme="dos"],[data-theme="amber"]) body{
  font-size:clamp(17px,1.7vw,21px);line-height:1.52
}
html:is([data-theme="c64"],[data-theme="apple2"],[data-theme="dos"],[data-theme="amber"]) .screen{
  width:min(1160px,calc(100% - 7vw));min-height:100svh;
  padding:clamp(28px,4vw,58px) 0 26px;display:flex;flex-direction:column
}
html:is([data-theme="c64"],[data-theme="apple2"],[data-theme="dos"],[data-theme="amber"]) .masthead{
  padding:0 0 clamp(30px,5vw,56px)
}
html:is([data-theme="c64"],[data-theme="apple2"],[data-theme="dos"],[data-theme="amber"]) h1{
  font-size:clamp(42px,6vw,76px);letter-spacing:-.035em;margin-top:13px
}
html:is([data-theme="c64"],[data-theme="apple2"],[data-theme="dos"],[data-theme="amber"]) .section-tag{
  font-size:.82em;letter-spacing:.11em
}
html:is([data-theme="c64"],[data-theme="apple2"],[data-theme="dos"],[data-theme="amber"]) main{
  flex:1
}
html:is([data-theme="c64"],[data-theme="apple2"],[data-theme="dos"],[data-theme="amber"]) .directory-top{
  border-top:0;padding:0 0 14px;align-items:center
}
html:is([data-theme="c64"],[data-theme="apple2"],[data-theme="dos"],[data-theme="amber"]) h2{
  font-size:.87em;letter-spacing:.03em
}
html:is([data-theme="c64"],[data-theme="apple2"],[data-theme="dos"],[data-theme="amber"]) .dim{
  font-size:.71em
}
html:is([data-theme="c64"],[data-theme="apple2"],[data-theme="dos"],[data-theme="amber"]) .program-section{
  padding-top:clamp(20px,3vw,35px)
}
html:is([data-theme="c64"],[data-theme="apple2"],[data-theme="dos"],[data-theme="amber"]) .group-head{
  font-size:.82em;font-weight:bold;letter-spacing:.03em;margin-bottom:9px
}
html:is([data-theme="c64"],[data-theme="apple2"],[data-theme="dos"],[data-theme="amber"]) .program-row{
  min-height:55px;padding:9px 7px;border-top:0;grid-template-columns:4ch minmax(0,1fr) 7ch;
  gap:clamp(8px,2vw,24px)
}
html:is([data-theme="c64"],[data-theme="apple2"],[data-theme="dos"],[data-theme="amber"]) .program-row:last-child{
  border-bottom:0
}
html:is([data-theme="c64"],[data-theme="apple2"],[data-theme="dos"],[data-theme="amber"]) .program-name{
  font-size:.96em;letter-spacing:0;overflow-wrap:anywhere
}
html:is([data-theme="c64"],[data-theme="apple2"],[data-theme="dos"],[data-theme="amber"]) .program-state{
  font-size:0
}
html:is([data-theme="c64"],[data-theme="apple2"],[data-theme="dos"],[data-theme="amber"]) .program-state::after{
  content:"—";font-size:13px
}
html:is([data-theme="c64"],[data-theme="apple2"],[data-theme="dos"],[data-theme="amber"]) .program-state.state-live::after{
  content:"RUN ↵";font-size:13px
}
html:is([data-theme="c64"],[data-theme="apple2"],[data-theme="dos"],[data-theme="amber"]) .display-footer{
  margin-top:58px
}
html:is([data-theme="c64"],[data-theme="apple2"],[data-theme="dos"],[data-theme="amber"]) #updraft-theme{
  font-size:14px
}

/* Commodore 64: authentic blue border, 40-column-inspired boot copy, full screen. */
html[data-theme="c64"] .screen{
  width:100%;max-width:none;margin:0;
  background:#40318d;border:clamp(12px,3.2vw,42px) solid #6c5eb5;
  padding:clamp(20px,4vw,62px);box-shadow:inset 0 0 22px rgba(14,10,64,.12)
}
html[data-theme="c64"] .masthead::before{
  content:"**** COMMODORE 64 BASIC V2 ****\A\A64K RAM SYSTEM   38911 BASIC BYTES FREE\A\AREADY.";
  display:block;white-space:pre-wrap;font-size:clamp(13px,1.65vw,19px);font-weight:bold;
  letter-spacing:.015em;line-height:1.5;max-width:43ch;margin-bottom:24px
}
html[data-theme="c64"] h1{font-weight:bold;text-shadow:2px 2px #231756;color:#e9e6ff}
html[data-theme="c64"] .directory-top{border-bottom:2px solid var(--line)}
html[data-theme="c64"] .program-row{font-weight:bold}
html[data-theme="c64"] .is-live:focus-visible{outline-offset:1px}

/* Apple II: quiet green phosphor, generous fixed-width columns. */
html[data-theme="apple2"] .masthead::before{
  content:"APPLE ][\AUPDRAFT SYSTEM DISK\A\A]CATALOG";
  display:block;white-space:pre-wrap;line-height:1.65;font-size:clamp(16px,1.8vw,21px);
  margin-bottom:18px
}
html[data-theme="apple2"] .directory-top{
  border-top:2px solid var(--bright);padding-top:13px
}
html[data-theme="apple2"] .program-row{border-bottom:1px dotted #28452c}

/* MS-DOS: real prompt typography, command-style links, no simulated unusable input. */
html[data-theme="dos"] .masthead::before{
  content:"MS-DOS VERSION 6.22\A\AC:\\UPDRAFT>DIR *.EXE";
  display:block;white-space:pre-wrap;line-height:1.6;font-size:clamp(16px,1.8vw,21px);
  margin-bottom:15px
}
html[data-theme="dos"] .directory-top{border-top:1px dashed var(--line);padding-top:14px}
html[data-theme="dos"] .program-section .group-head::before{content:"<"}
html[data-theme="dos"] .program-section .group-head::after{content:">"}
html[data-theme="dos"] .program-row:hover,html[data-theme="dos"] .program-row:focus-visible{
  background:#e7e7e7;color:#080808;outline:0
}
html[data-theme="dos"] .program-row:hover .program-state,html[data-theme="dos"] .program-row:hover .program-num,
html[data-theme="dos"] .program-row:focus-visible .program-state,html[data-theme="dos"] .program-row:focus-visible .program-num{
  color:#080808
}

/* Amber monochrome desktop terminal. */
html[data-theme="amber"] .masthead::before{
  content:"IBM PC MONOCHROME DISPLAY\A\ASYSTEM READY  >  LIST APPLICATIONS";
  display:block;white-space:pre-wrap;line-height:1.65;font-size:clamp(16px,1.8vw,21px);
  margin-bottom:15px
}
html[data-theme="amber"] h1{text-shadow:0 0 12px rgba(255,162,50,.18)}
html[data-theme="amber"] .directory-top{border-top:1px dashed var(--line);padding-top:12px}

/* Windows 3.1: desktop and program-manager window, rather than recoloured terminal. */
html[data-theme="win31"] .screen{
  width:min(1050px,calc(100% - 40px));min-height:calc(100svh - 46px);margin:22px auto 24px;
  background:var(--surface);padding:0 22px 26px;display:flex;flex-direction:column;
  border:3px solid #fff;outline:2px solid #505050;box-shadow:5px 6px 0 #005959
}
html[data-theme="win31"] .masthead{
  background:#000080;margin:0 -20px 30px;padding:15px 22px 17px;border-bottom:3px solid #666
}
html[data-theme="win31"] .masthead::before{
  content:"▣  PROGRAM MANAGER  —  UPDRAFT";display:block;
  font-size:12px;font-weight:700;color:#fff;margin-bottom:14px;letter-spacing:.05em
}
html[data-theme="win31"] h1{
  color:#fff;font-size:clamp(42px,7vw,68px);letter-spacing:-.05em;margin-bottom:2px
}
html[data-theme="win31"] .cursor,html[data-theme="win31"] .section-tag{color:#fff}
html[data-theme="win31"] .directory-top{border-top:2px solid #888}
html[data-theme="win31"] .group-head,html[data-theme="win31"] h2{color:#000080}
html[data-theme="win31"] main{flex:1}
html[data-theme="win31"] .program-row{min-height:56px}
html[data-theme="win31"] .is-live:hover,html[data-theme="win31"] .is-live:focus-visible{
  background:#000080;color:#fff;outline:0
}
html[data-theme="win31"] .is-live:hover .program-num,html[data-theme="win31"] .is-live:hover .program-state,
html[data-theme="win31"] .is-live:focus-visible .program-num,html[data-theme="win31"] .is-live:focus-visible .program-state{
  color:#fff
}
html[data-theme="win31"] #updraft-theme{background:#fff;border:2px inset #777}

/* Amiga Workbench, larger desktop-style screen. */
html[data-theme="amiga"] .screen{
  width:min(1120px,calc(100% - 7vw));min-height:100svh;display:flex;flex-direction:column;
  padding:35px 0 27px
}
html[data-theme="amiga"] .masthead{border-top:9px solid #fff;border-bottom:3px solid var(--amber);padding:19px 0 30px}
html[data-theme="amiga"] .masthead::before{
  content:"WORKBENCH 1.3     |     UPDRAFT";display:block;
  font-weight:bold;font-size:13px;letter-spacing:.09em;margin-bottom:17px
}
html[data-theme="amiga"] main{flex:1}
html[data-theme="amiga"] .program-row{min-height:57px}
html[data-theme="amiga"] .group-head{font-weight:bold}

/* Design-led alternatives deliberately keep the concise modern layout. */
html[data-theme="midcentury"] h1{font-weight:600;letter-spacing:-.09em}
html[data-theme="midcentury"] .program-name{letter-spacing:0;font-weight:600}
html[data-theme="midcentury"] .directory-top{border-top:2px solid var(--bright)}
html[data-theme="bauhaus"] .masthead{border-left:9px solid var(--amber);padding-left:18px}
html[data-theme="bauhaus"] h1{font-weight:900;letter-spacing:-.08em}
html[data-theme="bauhaus"] .group-head{font-weight:700}
html[data-theme="bauhaus"] .directory-top{border-top:4px solid var(--bright)}

/* Optional CRT: an extremely slow glow, not a rapid blink or flicker. */
html[data-crt="on"] body::after{
  content:"";position:fixed;inset:0;z-index:10;pointer-events:none;
  background:
    repeating-linear-gradient(to bottom,transparent 0,transparent 3px,rgba(0,0,0,.27) 4px),
    radial-gradient(ellipse at 50% 42%,rgba(255,255,255,.11),transparent 75%);
  opacity:.10;animation:updraft-crt-glow 12s ease-in-out infinite alternate
}
@keyframes updraft-crt-glow{from{opacity:.08}to{opacity:.17}}
@media(prefers-reduced-motion:reduce){
  html[data-crt="on"] body::after{animation:none;opacity:.085}
}
@media(max-width:600px){
 .display-footer{margin-top:33px}
 .theme-controls{width:100%;justify-content:space-between;gap:10px}
 #updraft-theme{flex:1;min-width:0;max-width:100%}
 html:is([data-theme="c64"],[data-theme="apple2"],[data-theme="dos"],[data-theme="amber"]) body{font-size:16px}
 html:is([data-theme="c64"],[data-theme="apple2"],[data-theme="dos"],[data-theme="amber"]) .screen{
   width:calc(100% - 28px);padding-top:25px
 }
 html:is([data-theme="c64"],[data-theme="apple2"],[data-theme="dos"],[data-theme="amber"]) .program-row{
   grid-template-columns:3ch minmax(0,1fr) 5ch;min-height:52px;gap:5px;padding:7px 2px
 }
 html:is([data-theme="c64"],[data-theme="apple2"],[data-theme="dos"],[data-theme="amber"]) .program-state.state-live::after{
   content:"RUN";font-size:12px
 }
 html[data-theme="c64"] .screen{width:100%;padding:23px 16px;border-width:12px}
 html[data-theme="c64"] .masthead::before{font-size:12px;line-height:1.5}
 html[data-theme="win31"] .screen{width:calc(100% - 24px);padding:0 12px 22px;margin:12px auto;min-height:calc(100svh - 28px)}
 html[data-theme="win31"] .masthead{padding:12px;margin:0 -10px 18px}
 html[data-theme="win31"] .masthead::before{font-size:11px}
 html[data-theme="amiga"] .screen{width:calc(100% - 32px);padding-top:20px}
 html[data-theme="bauhaus"] .masthead{padding-left:12px}
}


/* ============= ILLUMINATED MANUSCRIPT / PARCHMENT ============= */
html[data-theme="parchment"]{
 color-scheme:light;
 --bg:#c8b48a;--text:#422b1e;--bright:#5a2c1f;--muted:#68503b;
 --line:#ab9166;--amber:#7a3729;--hover:rgba(108,63,32,.11);
 --inactive:#6b5944;--surface:#f0e1bc;
 --font:'IM Fell English','Palatino Linotype','Book Antiqua',Georgia,serif
}
html[data-theme="parchment"] body{
 font-size:clamp(16px,1.4vw,19px);line-height:1.55;
 background:
  radial-gradient(ellipse at 12% 18%,rgba(94,64,32,.09),transparent 52%),
  radial-gradient(ellipse at 90% 83%,rgba(100,62,32,.09),transparent 48%),
  #c8b48a;
}
html[data-theme="parchment"] .screen{
 position:relative;isolation:isolate;
 width:min(1060px,calc(100% - 64px));min-height:calc(100svh - 70px);
 margin:35px auto;padding:clamp(43px,6vw,90px) clamp(27px,7vw,100px) 44px;
 display:flex;flex-direction:column;
 background:
   radial-gradient(circle at 13% 14%,rgba(135,87,45,.10),transparent 23%),
   radial-gradient(circle at 85% 72%,rgba(159,107,58,.13),transparent 30%),
   repeating-linear-gradient(0deg,rgba(75,52,25,.015) 0 1px,transparent 1px 5px),
   linear-gradient(115deg,#f6e9c8 2%,#ead8ac 50%,#f2e3bc 100%);
 border:2px solid #80633f;outline:10px solid #f0dfb7;
 box-shadow:0 12px 56px rgba(56,39,17,.34),inset 0 0 45px rgba(108,69,27,.10)
}
html[data-theme="parchment"] .screen::before{
 content:"";position:absolute;inset:15px;pointer-events:none;border:2px solid #8d6c43;
 box-shadow:inset 0 0 0 3px rgba(141,108,67,.22)
}
html[data-theme="parchment"] .screen::after{
 content:"❦";position:absolute;top:18px;right:31px;color:#7d3b2b;
 font-family:Georgia,serif;font-size:30px
}
html[data-theme="parchment"] .masthead{
 text-align:center;padding:0 0 36px;margin-bottom:22px;
 border-bottom:3px double #8a6546
}
html[data-theme="parchment"] .masthead::before{
 content:"✥  THE REGISTER OF WORKS  ✥";display:block;
 font-family:'Cinzel',Georgia,serif;letter-spacing:.16em;font-size:.64em;
 font-weight:700;color:#684132;margin-bottom:12px
}
html[data-theme="parchment"] h1{
 font-family:'UnifrakturCook','Old English Text MT','Cloister Black',Georgia,serif;
 font-size:clamp(51px,8vw,96px);font-weight:700;letter-spacing:0;
 line-height:1.1;margin:0;color:#512b22;text-shadow:1px 1px 0 rgba(255,255,255,.34)
}
html[data-theme="parchment"] .cursor{display:none}
html[data-theme="parchment"] .section-tag{
 font-family:'Cinzel',Georgia,serif;font-size:.7em;letter-spacing:.25em;
 color:#73523b;margin-top:10px
}
html[data-theme="parchment"] main{flex:1}
html[data-theme="parchment"] .directory-top{
 border:0;padding:0 0 20px;
 justify-content:center;gap:20px;align-items:center
}
html[data-theme="parchment"] .directory-top h2{
 font-family:'UnifrakturCook','Old English Text MT',Georgia,serif;
 font-size:clamp(28px,4vw,38px);letter-spacing:0;font-weight:700;
 color:#5a2c1f;text-transform:none
}
html[data-theme="parchment"] .directory-top .dim{
 font-family:Georgia,serif;font-size:14px;color:#68412b
}
html[data-theme="parchment"] .program-list{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:8px clamp(24px,4vw,50px)
}
html[data-theme="parchment"] .program-section{padding-top:12px;min-width:0}
html[data-theme="parchment"] .group-head{
 display:flex;align-items:center;gap:10px;font-family:'Cinzel',Georgia,serif;
 font-size:clamp(13px,1.35vw,16px);font-weight:700;letter-spacing:.07em;
 color:#733829;border-bottom:1px solid #a88e66;
 padding:0 0 9px;margin:0 0 8px
}
html[data-theme="parchment"] .group-head::before{
 content:"❧";font-family:Georgia,serif;font-size:20px;color:#8e4635
}
html[data-theme="parchment"] .program-row{
 grid-template-columns:2ch minmax(0,1fr) auto;
 min-height:50px;padding:9px 5px;gap:12px;
 border-top:0;border-bottom:1px solid rgba(102,74,45,.20);
 background:none;font-size:.89em;color:#422b1e
}
html[data-theme="parchment"] .program-row:last-child{
 border-bottom:1px solid rgba(102,74,45,.20)
}
html[data-theme="parchment"] .program-num{
 color:#784c35;font-family:'IM Fell English',Georgia,serif
}
html[data-theme="parchment"] .program-name{
 font-weight:normal;letter-spacing:0;
 font-family:'IM Fell English','Palatino Linotype',Georgia,serif;
 font-size:1.07em;line-height:1.2
}
html[data-theme="parchment"] .program-state{
 color:#705b45;font-family:Georgia,serif;font-size:.65em;white-space:nowrap
}
html[data-theme="parchment"] .program-state.state-live{color:#713c2f}
html[data-theme="parchment"] .is-live:hover,
html[data-theme="parchment"] .is-live:focus-visible{
 background:rgba(112,66,33,.12);outline:2px solid #805639;outline-offset:-2px
}
html[data-theme="parchment"] .display-footer{
 margin-top:45px;border-top:3px double #8a6546;padding-top:19px
}
html[data-theme="parchment"] .display-footer label{
 font-family:'Cinzel',Georgia,serif;color:#68422c;font-size:.7em
}
html[data-theme="parchment"] #updraft-theme{
 color:#422b1e;background:#f4e6c5;border:1px solid #896843;
 box-shadow:inset 0 1px 3px rgba(96,67,35,.10);
 min-height:42px;font:normal 15px 'IM Fell English',Georgia,serif
}
html[data-theme="parchment"] #updraft-theme:focus-visible{
 outline:2px solid #6e3a25;outline-offset:2px
}

/* ============= DEEP SPACE / STARSHIP CONSOLE ============= */
html[data-theme="space"]{
 color-scheme:dark;
 --bg:#050919;--text:#d9ecff;--bright:#82f0ed;--muted:#91b3d0;
 --line:#325570;--amber:#87b4ff;--hover:rgba(59,166,210,.15);
 --inactive:#91a9c3;--surface:#0c1831;
 --font:'Rajdhani','Trebuchet MS',Arial,sans-serif
}
html[data-theme="space"] body{
 font-family:var(--font);font-size:clamp(15px,1.45vw,18px);
 line-height:1.45;min-height:100svh;
 background:#050919;
}
html[data-theme="space"] body::before{
 content:"";position:fixed;inset:0;pointer-events:none;z-index:0;
 background-image:
   radial-gradient(1px 1px at 17px 29px,rgba(255,255,255,.66) 98%,transparent 100%),
   radial-gradient(2px 2px at 142px 73px,rgba(135,204,245,.52) 98%,transparent 100%),
   radial-gradient(1px 1px at 71px 165px,rgba(230,248,255,.59) 98%,transparent 100%),
   radial-gradient(ellipse at 83% 12%,rgba(23,58,113,.36),transparent 55%),
   radial-gradient(ellipse at 5% 95%,rgba(30,99,118,.17),transparent 70%);
 background-size:297px 211px,337px 263px,223px 307px,100% 100%,100% 100%;
 opacity:.63
}
html[data-theme="space"] .screen{
 position:relative;z-index:1;isolation:isolate;
 width:min(1320px,calc(100% - 72px));min-height:calc(100svh - 68px);
 margin:34px auto;padding:0 clamp(22px,4vw,58px) 25px;
 display:flex;flex-direction:column;
 border:1px solid #40617f;border-radius:14px;
 background:linear-gradient(155deg,rgba(14,33,64,.94),rgba(6,14,33,.97));
 box-shadow:0 0 0 1px rgba(104,221,241,.15),0 24px 70px rgba(0,0,0,.6),
 inset 0 0 90px rgba(27,84,124,.13)
}
html[data-theme="space"] .screen::before{
 content:"UPDRAFT / OPERATIONS DECK";display:block;
 margin:0 calc(clamp(22px,4vw,58px) * -1);
 padding:12px clamp(22px,4vw,58px);
 border-bottom:1px solid #40617f;
 font-family:'Orbitron','Trebuchet MS',sans-serif;
 font-size:10px;letter-spacing:.24em;color:#a5d5ef;
 background:linear-gradient(90deg,rgba(21,78,107,.52),rgba(6,17,40,.2))
}
html[data-theme="space"] .masthead{
 padding:clamp(25px,4vw,51px) 0 27px;
 border-bottom:1px solid #426780;margin-bottom:23px
}
html[data-theme="space"] .masthead::before{
 content:"◉  SYSTEM ONLINE     /     SECTOR 01";
 display:block;font-family:'Orbitron','Trebuchet MS',sans-serif;
 letter-spacing:.19em;font-size:11px;color:#82f0ed;
 margin-bottom:17px
}
html[data-theme="space"] h1{
 font-family:'Orbitron','Trebuchet MS',sans-serif;font-weight:600;
 font-size:clamp(39px,6vw,75px);line-height:1.09;letter-spacing:.07em;
 color:#d8f7ff;margin:0 0 11px;text-shadow:0 0 24px rgba(54,184,207,.19)
}
html[data-theme="space"] .cursor{display:none}
html[data-theme="space"] .section-tag{
 font-family:'Rajdhani','Trebuchet MS',sans-serif;
 color:#94b9d3;font-weight:600;font-size:13px;letter-spacing:.3em
}
html[data-theme="space"] main{flex:1}
html[data-theme="space"] .directory-top{
 align-items:center;border:0;padding:0 0 25px;gap:14px
}
html[data-theme="space"] .directory-top h2{
 font-family:'Orbitron','Trebuchet MS',sans-serif;
 font-size:15px;letter-spacing:.18em;font-weight:600;color:#95f4ef
}
html[data-theme="space"] .directory-top h2::before{content:"⌁ ";color:#83d7e6}
html[data-theme="space"] .dim{
 color:#adcede;font-family:'Orbitron',monospace;
 font-size:13px;letter-spacing:.07em
}
html[data-theme="space"] .program-list{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 align-content:start;gap:20px
}
html[data-theme="space"] .program-section{
 padding:18px 19px 14px;min-width:0;
 border:1px solid #2e526e;border-radius:12px;
 background:linear-gradient(160deg,rgba(30,67,99,.36),rgba(11,29,58,.60));
 box-shadow:inset 0 1px 0 rgba(177,239,255,.07)
}
html[data-theme="space"] .group-head{
 font-family:'Orbitron','Trebuchet MS',sans-serif;font-size:11px;
 font-weight:700;letter-spacing:.22em;color:#91d7e8;
 margin:0 0 12px;padding:0 0 13px;border-bottom:1px solid #31556b
}
html[data-theme="space"] .group-head::before{content:"◈ ";color:#83f0e9}
html[data-theme="space"] .program-row{
 grid-template-columns:3ch minmax(0,1fr) auto;gap:12px;
 border:1px solid transparent;border-radius:7px;
 padding:11px 9px;min-height:54px;
 font-family:'Rajdhani','Trebuchet MS',Arial,sans-serif;
 font-size:1.02em;transition:background-color .16s ease,border-color .16s ease;
}
html[data-theme="space"] .program-row:last-child{border-bottom:1px solid transparent}
html[data-theme="space"] .program-num{font-weight:700;color:#9bc6df}
html[data-theme="space"] .program-name{font-weight:700;letter-spacing:.06em;overflow-wrap:anywhere}
html[data-theme="space"] .program-state{font-weight:700;font-size:.72em;color:#a7bbd0;white-space:nowrap}
html[data-theme="space"] .program-state.state-live{color:#89f0ec}
html[data-theme="space"] .is-live:hover,html[data-theme="space"] .is-live:focus-visible{
 background:rgba(39,129,162,.24);border:1px solid #6ec6df;
 outline:2px solid rgba(111,230,234,.45);outline-offset:0
}
html[data-theme="space"] .display-footer{
 border-top:1px solid #446c84;margin-top:32px;padding-top:17px;gap:12px
}
html[data-theme="space"] .display-footer label{
 color:#a9cce2;font-family:'Orbitron','Trebuchet MS',sans-serif;
 letter-spacing:.12em;font-size:10px
}
html[data-theme="space"] #updraft-theme{
 font-family:'Rajdhani','Trebuchet MS',Arial,sans-serif;
 font-size:16px;font-weight:600;color:#d9ecff;
 background:#0a1e3a;border:1px solid #6095aa;border-radius:5px
}
html[data-theme="space"] #updraft-theme:focus-visible{
 outline:2px solid #82f0ed;outline-offset:3px
}
@media(max-width:740px){
 html[data-theme="parchment"] .screen{
  width:calc(100% - 34px);margin:19px auto;outline-width:5px;
  padding:45px 24px 24px;min-height:calc(100svh - 40px)
 }
 html[data-theme="parchment"] .screen::before{inset:9px}
 html[data-theme="parchment"] .screen::after{top:8px;right:14px;font-size:23px}
 html[data-theme="parchment"] .program-list{grid-template-columns:1fr;gap:0}
 html[data-theme="parchment"] .program-section{padding-top:19px}
 html[data-theme="parchment"] .masthead{padding-bottom:21px;margin-bottom:19px}
 html[data-theme="parchment"] .masthead::before{letter-spacing:.07em;font-size:10px}
 html[data-theme="parchment"] .directory-top h2{font-size:30px}
 html[data-theme="parchment"] .program-row{grid-template-columns:2ch minmax(0,1fr) auto;gap:9px}
 html[data-theme="space"] .screen{
  width:calc(100% - 20px);min-height:calc(100svh - 20px);margin:10px auto;
  padding:0 14px 20px;border-radius:8px
 }
 html[data-theme="space"] .screen::before{margin:0 -14px;padding:10px 14px;font-size:9px}
 html[data-theme="space"] .masthead{padding:30px 0 20px;margin-bottom:15px}
 html[data-theme="space"] .masthead::before{font-size:9px;letter-spacing:.10em}
 html[data-theme="space"] h1{font-size:clamp(35px,10vw,52px);letter-spacing:.03em}
 html[data-theme="space"] .program-list{grid-template-columns:1fr;gap:13px}
 html[data-theme="space"] .program-section{padding:15px 12px 10px}
 html[data-theme="space"] .program-row{min-height:56px;gap:7px;padding:10px 5px}
 html[data-theme="space"] .program-name{font-size:1em}
 html[data-theme="space"] .program-state{font-size:.67em}
 html[data-theme="space"] .directory-top h2{font-size:12px}
}
@media(prefers-reduced-motion:reduce){
 html[data-theme="space"] .program-row{transition:none}
}



/* ============= HARD BAUHAUS: primary geometry, asymmetric editorial grid ============= */
/* Replaces the previous minimal near-modern treatment; no changes to Modern. */
html[data-theme="bauhaus"]{
 --bg:#1b43aa;--text:#171c29;--bright:#172f86;--muted:#38445c;
 --line:#161c2b;--amber:#d13c2a;--hover:#f0dd9b;--inactive:#4c5469;--surface:#f3e9d0;
 --font:'Arial Black',Futura,'Century Gothic',Arial,sans-serif
}
html[data-theme="bauhaus"] body{
 background:#1b43aa;font-size:15px;line-height:1.4
}
html[data-theme="bauhaus"] .screen{
 width:min(1160px,calc(100% - 44px));min-height:calc(100svh - 44px);
 margin:22px auto;padding:0 clamp(20px,5vw,68px) 28px;
 display:flex;flex-direction:column;background:#f3e9d0;
 border:6px solid #151b27;
 box-shadow:13px 13px 0 rgba(0,0,0,.38)
}
html[data-theme="bauhaus"] .masthead{
 border:0;position:relative;isolation:isolate;overflow:hidden;
 min-height:clamp(230px,28vw,335px);
 padding:clamp(25px,5vw,60px) 0 27px;
 margin-bottom:22px;border-bottom:8px solid #152d82
}
html[data-theme="bauhaus"] .masthead::before{
 content:"";position:absolute;z-index:-1;
 width:clamp(180px,31vw,355px);height:clamp(180px,31vw,355px);
 right:-3%;top:-20%;border-radius:50%;background:#d8402d;
 box-shadow:inset -40px 0 0 #f7c932
}
html[data-theme="bauhaus"] .masthead::after{
 content:"";position:absolute;z-index:-1;
 width:clamp(65px,14vw,140px);height:clamp(140px,23vw,255px);
 right:25%;bottom:-60px;transform:rotate(-24deg);background:#152e89
}
html[data-theme="bauhaus"] h1{
 position:relative;z-index:1;max-width:75%;
 font-family:'Arial Black',Impact,Arial,sans-serif;font-size:clamp(45px,8.3vw,106px);
 font-weight:900;letter-spacing:-.095em;line-height:.99;
 color:#101b2b;margin:18px 0 18px;overflow-wrap:anywhere
}
html[data-theme="bauhaus"] .cursor{color:#d63a2d}
html[data-theme="bauhaus"] .section-tag{
 font:800 13px/1.3 'Arial Black',Arial,sans-serif;
 color:#172e82;letter-spacing:.15em
}
html[data-theme="bauhaus"] .masthead::marker{display:none}
html[data-theme="bauhaus"] main{flex:1}
html[data-theme="bauhaus"] .directory-top{
 border:0;border-bottom:5px solid #111921;padding:0 0 12px;
 align-items:end;gap:15px
}
html[data-theme="bauhaus"] h2{
 font:900 clamp(24px,3vw,36px)/1 Impact,'Arial Black',sans-serif;
 letter-spacing:.02em;color:#141b27
}
html[data-theme="bauhaus"] .dim{font:700 15px Arial,sans-serif;color:#141b27}
html[data-theme="bauhaus"] .program-list{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:23px;align-content:start;margin-top:19px
}
html[data-theme="bauhaus"] .program-section{
 padding:16px 19px 18px;margin:0;min-width:0;
 background:#f4d97b;border:4px solid #151b27
}
html[data-theme="bauhaus"] .program-section:nth-child(3n+2){background:#d2ddf0}
html[data-theme="bauhaus"] .program-section:nth-child(3n){background:#f0b4a8}
html[data-theme="bauhaus"] .group-head{
 margin:0 0 10px;padding:0 0 11px;
 border-bottom:3px solid #151b27;
 font:900 17px/1.2 Impact,'Arial Black',sans-serif;
 letter-spacing:.12em;color:#111925
}
html[data-theme="bauhaus"] .program-row{
 min-height:55px;padding:9px 4px;gap:9px;
 grid-template-columns:25px minmax(0,1fr) auto;
 border:0;border-bottom:1px solid rgba(21,27,39,.45);
 color:#17202a
}
html[data-theme="bauhaus"] .program-row:last-child{border-bottom:1px solid rgba(21,27,39,.45)}
html[data-theme="bauhaus"] .program-name{
 font:900 16px/1.2 Arial,sans-serif;
 letter-spacing:0;overflow-wrap:anywhere
}
html[data-theme="bauhaus"] .program-num,html[data-theme="bauhaus"] .program-state{
 font:700 12px Arial,sans-serif;color:#354258
}
html[data-theme="bauhaus"] .program-state.state-live{color:#101927}
html[data-theme="bauhaus"] .is-live:hover,html[data-theme="bauhaus"] .is-live:focus-visible{
 background:#131e35;color:#fff;outline:2px solid #131e35
}
html[data-theme="bauhaus"] .is-live:hover .program-state,
html[data-theme="bauhaus"] .is-live:hover .program-num,
html[data-theme="bauhaus"] .is-live:focus-visible .program-state,
html[data-theme="bauhaus"] .is-live:focus-visible .program-num{color:#fff}
html[data-theme="bauhaus"] .display-footer{
 margin-top:37px;border-top:5px solid #151b27;
 padding-top:15px
}
html[data-theme="bauhaus"] .display-footer label{
 font:900 12px Arial,sans-serif;color:#172e82
}
html[data-theme="bauhaus"] #updraft-theme{
 color:#151b27;background:#f3e9d0;border:3px solid #151b27;border-radius:0;
 font:700 14px Arial,sans-serif
}

/* ============= BETON BRUT: raw concrete, structural slabs ============= */
html[data-theme="brutalist"]{
 color-scheme:light;
 --bg:#8d8b84;--text:#222322;--bright:#171918;--muted:#4b4c47;
 --line:#32342f;--amber:#a3351d;--hover:#edc4a6;--inactive:#515249;--surface:#c3c0b6;
 --font:Impact,'Arial Narrow','Franklin Gothic Medium',Arial,sans-serif
}
html[data-theme="brutalist"] body{
 font-size:16px;line-height:1.4;color:#242524;
 background:
  repeating-linear-gradient(90deg,transparent 0 31px,rgba(38,39,34,.055) 32px,transparent 33px 84px),
  repeating-linear-gradient(0deg,transparent 0 6px,rgba(255,255,255,.038) 7px,transparent 8px 17px),
  radial-gradient(ellipse at 23% 37%,rgba(255,255,255,.23),transparent 62%),#8d8b84
}
html[data-theme="brutalist"] .screen{
 width:min(1240px,calc(100% - 65px));min-height:calc(100svh - 80px);
 margin:28px auto 52px;padding:0 clamp(17px,4vw,55px) 29px;
 display:flex;flex-direction:column;position:relative;isolation:isolate;
 background:
  repeating-linear-gradient(90deg,rgba(55,54,49,.025) 0 2px,transparent 2px 120px),
  repeating-linear-gradient(0deg,transparent 0 2px,rgba(60,61,56,.022) 3px,transparent 4px 24px),
  linear-gradient(105deg,#cbc9c0,#b2b0a7 60%,#c8c6be);
 border:5px solid #252623;box-shadow:14px 14px 0 #373934,0 24px 55px rgba(0,0,0,.33)
}
html[data-theme="brutalist"] .screen::before{
 content:"BÉTON BRUT   /   01";display:block;
 margin:0 calc(clamp(17px,4vw,55px) * -1);
 padding:12px clamp(17px,4vw,55px);
 background:#282a27;color:#e4e0d6;
 font:700 12px/1.3 'Courier New',monospace;letter-spacing:.19em
}
html[data-theme="brutalist"] .masthead{
 border-left:clamp(10px,2.5vw,23px) solid #a53920;
 border-bottom:6px solid #262824;
 padding:clamp(25px,5vw,58px) 0 30px clamp(15px,3vw,35px);
 margin:0 0 31px
}
html[data-theme="brutalist"] .masthead::before{
 content:"CONSTRUCTION  /  DIGITAL INDEX";display:block;
 font:700 12px/1.4 'Courier New',monospace;letter-spacing:.08em;
 margin:0 0 11px;color:#353632
}
html[data-theme="brutalist"] h1{
 font:900 clamp(66px,11vw,144px)/.90 Impact,'Arial Narrow','Arial Black',sans-serif;
 letter-spacing:-.064em;color:#20211f;
 margin:0 0 18px;max-width:100%;overflow-wrap:anywhere
}
html[data-theme="brutalist"] .cursor{
 font-weight:900;color:#a53920
}
html[data-theme="brutalist"] .section-tag{
 color:#33342e;letter-spacing:.12em;
 font:700 13px/1.3 'Courier New',monospace
}
html[data-theme="brutalist"] main{flex:1}
html[data-theme="brutalist"] .directory-top{
 border:0;align-items:end;border-bottom:5px solid #262824;
 padding:0 0 13px;gap:12px
}
html[data-theme="brutalist"] h2{
 font:900 clamp(28px,4vw,44px)/1 Impact,'Arial Narrow',Arial,sans-serif;
 letter-spacing:.04em;color:#232422
}
html[data-theme="brutalist"] .dim{
 font:700 14px 'Courier New',monospace;color:#33342f
}
html[data-theme="brutalist"] .program-list{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 align-content:start;gap:20px 25px;margin:22px 0 0
}
html[data-theme="brutalist"] .program-section{
 min-width:0;background:#d0cec5;
 border:4px solid #272925;
 padding:0 18px 13px;box-shadow:7px 7px 0 rgba(42,44,40,.56)
}
html[data-theme="brutalist"] .program-section:nth-child(3n+2){background:#bfbdb4}
html[data-theme="brutalist"] .program-section:nth-child(3n){background:#ddd9cf}
html[data-theme="brutalist"] .group-head{
 background:#272925;color:#f1efe9;
 padding:13px 17px;margin:0 -18px 10px;
 font:800 clamp(18px,1.9vw,24px)/1.15 Impact,'Arial Narrow',sans-serif;
 letter-spacing:.12em
}
html[data-theme="brutalist"] .group-head::before{
 content:"▰";font-size:14px;vertical-align:middle;color:#dc7254;margin-right:10px
}
html[data-theme="brutalist"] .program-row{
 grid-template-columns:32px minmax(0,1fr) auto;
 min-height:62px;padding:11px 2px;gap:12px;
 border:0;border-bottom:2px solid #5a5a52;
 color:#1b1d1b
}
html[data-theme="brutalist"] .program-row:last-child{border-bottom:2px solid #5a5a52}
html[data-theme="brutalist"] .program-num{
 font:700 15px 'Courier New',monospace;color:#343630
}
html[data-theme="brutalist"] .program-name{
 font:900 clamp(17px,1.85vw,23px)/1.1 Impact,'Arial Narrow','Arial Black',sans-serif;
 letter-spacing:.01em;overflow-wrap:anywhere
}
html[data-theme="brutalist"] .program-state{
 font:700 12px 'Courier New',monospace;
 color:#45463d;white-space:nowrap
}
html[data-theme="brutalist"] .program-state.state-live{color:#22231f}
html[data-theme="brutalist"] .is-live:hover,
html[data-theme="brutalist"] .is-live:focus-visible{
 background:#272925;color:#f3eee5;outline:0
}
html[data-theme="brutalist"] .is-live:hover .program-state,
html[data-theme="brutalist"] .is-live:hover .program-num,
html[data-theme="brutalist"] .is-live:focus-visible .program-state,
html[data-theme="brutalist"] .is-live:focus-visible .program-num{color:#f3eee5}
html[data-theme="brutalist"] .display-footer{
 border-top:6px solid #272925;margin-top:42px;padding-top:18px
}
html[data-theme="brutalist"] .display-footer label{
 font:700 13px 'Courier New',monospace;color:#30312d
}
html[data-theme="brutalist"] #updraft-theme{
 background:#d8d5cb;color:#222322;
 font:700 14px 'Courier New',monospace;
 border:3px solid #272925;border-radius:0
}
html[data-theme="brutalist"] #updraft-theme:focus-visible{
 outline:3px solid #a53920;outline-offset:3px
}
.brutalist-audio[hidden]{display:none!important}
html[data-theme="brutalist"] .brutalist-audio{
 display:flex;align-items:center;flex-wrap:wrap;gap:9px 16px;
 border-top:2px solid #4e5049;padding-top:17px;margin-top:15px
}
html[data-theme="brutalist"] .brutalist-audio button{
 background:#232522;color:#f2eee6;border:3px solid #232522;
 border-radius:0;padding:10px 16px;min-height:46px;
 cursor:pointer;font:700 13px 'Courier New',monospace
}
html[data-theme="brutalist"] .brutalist-audio button:hover,
html[data-theme="brutalist"] .brutalist-audio button:focus-visible{
 background:#a53920;color:#fff;outline:2px solid #242622;outline-offset:2px
}
html[data-theme="brutalist"] .brutalist-audio a{
 color:#252723;min-height:44px;display:inline-flex;align-items:center;
 font:700 13px 'Courier New',monospace;text-decoration:underline;
 text-underline-offset:3px
}
html[data-theme="brutalist"] .brutalist-audio a:hover,
html[data-theme="brutalist"] .brutalist-audio a:focus-visible{color:#852714}
html[data-theme="brutalist"] .brutalist-audio small{
 width:100%;font:12px/1.4 'Courier New',monospace;color:#454740
}
html[data-theme="brutalist"] .site-traffic{
 border-color:#474940
}

/* This redesign must survive narrow mobile screens without squeezing links. */
@media(max-width:760px){
 html[data-theme="bauhaus"] .screen{
  width:calc(100% - 20px);margin:10px auto;
  min-height:calc(100svh - 20px);padding:0 15px 24px;
  border-width:4px;box-shadow:5px 5px 0 rgba(0,0,0,.38)
 }
 html[data-theme="bauhaus"] .masthead{
  min-height:210px;padding:20px 0;
  border-bottom-width:5px
 }
 html[data-theme="bauhaus"] .masthead::before{
  width:185px;height:185px;right:-38px;top:-27px;box-shadow:inset -22px 0 0 #f7c932
 }
 html[data-theme="bauhaus"] .masthead::after{right:18%;width:58px;bottom:-45px}
 html[data-theme="bauhaus"] h1{
  font-size:clamp(39px,9vw,64px);letter-spacing:-.08em;max-width:83%
 }
 html[data-theme="bauhaus"] .program-list{grid-template-columns:1fr;gap:13px}
 html[data-theme="bauhaus"] .program-section{padding:13px 14px;border-width:3px}
 html[data-theme="bauhaus"] .program-row{min-height:52px}
 html[data-theme="brutalist"] .screen{
  width:calc(100% - 24px);margin:10px auto 25px;
  min-height:calc(100svh - 30px);
  padding:0 12px 20px;border-width:3px;box-shadow:6px 6px 0 #373934
 }
 html[data-theme="brutalist"] .screen::before{
  margin:0 -12px;padding:9px 12px;font-size:10px
 }
 html[data-theme="brutalist"] .masthead{
  border-left-width:9px;border-bottom-width:4px;
  padding:24px 0 19px 14px;margin-bottom:24px
 }
 html[data-theme="brutalist"] .masthead::before{font-size:9px}
 html[data-theme="brutalist"] h1{
  font-size:clamp(54px,13vw,95px);line-height:.98;letter-spacing:-.06em
 }
 html[data-theme="brutalist"] .program-list{
  grid-template-columns:1fr;gap:17px
 }
 html[data-theme="brutalist"] .program-section{
  padding:0 12px 11px;border-width:3px;box-shadow:4px 4px 0 rgba(42,44,40,.45)
 }
 html[data-theme="brutalist"] .group-head{margin:0 -12px 6px;padding:10px 12px}
 html[data-theme="brutalist"] .program-row{
  min-height:58px;grid-template-columns:25px minmax(0,1fr) auto;
  gap:7px;padding:9px 2px
 }
 html[data-theme="brutalist"] .program-name{font-size:clamp(17px,5vw,23px)}
 html[data-theme="brutalist"] .program-state{font-size:10px}
 html[data-theme="brutalist"] .display-footer{margin-top:30px}
}
@media(prefers-reduced-motion:reduce){
 html[data-theme="bauhaus"] *,html[data-theme="brutalist"] *{transition:none!important}
}


/* Licensed soundtrack stays in YouTube's embed; no local audio source. */
.brutalist-player[hidden]{display:none!important}
html[data-theme="brutalist"] .brutalist-player{
  width:min(100%,680px);margin-top:6px;
  background:#202320;border:4px solid #262824;
  box-shadow:5px 5px 0 #595b54;aspect-ratio:16/9
}
html[data-theme="brutalist"] .brutalist-player iframe{
  display:block;width:100%;height:100%;border:0
}
html[data-theme="brutalist"] .brutalist-audio button[aria-expanded="true"]{
  background:#a53920;color:#fff
}



/* ============= SOVIET-CONSTRUCTIVIST REVISION / BRUTALIST =============
   1920s poster geometry meets poured-concrete architecture.
   Historically inspired composition, not a political endorsement. */
html[data-theme="brutalist"]{
  color-scheme:light;
  --bg:#8c8880;--text:#171716;--bright:#171716;--muted:#42413d;
  --line:#302f2b;--amber:#c32d21;--hover:#f2d5aa;--inactive:#48443d;
  --surface:#e4dac2;--font:Impact,'Arial Narrow','Franklin Gothic Medium',Arial,sans-serif
}
html[data-theme="brutalist"] body{
  font-size:17px;line-height:1.43;color:#181817;
  background:
    repeating-linear-gradient(0deg,transparent 0 21px,rgba(0,0,0,.04) 21px 22px,transparent 22px 57px),
    radial-gradient(circle at 7% 32%,rgba(245,244,231,.17),transparent 49%),
    linear-gradient(130deg,#858078,#bab5a7 45%,#87847c)
}
html[data-theme="brutalist"] .screen{
  width:min(1280px,calc(100% - 64px));min-height:calc(100svh - 70px);
  padding:0 clamp(18px,4vw,60px) 30px;margin:26px auto 44px;
  background:
    repeating-linear-gradient(90deg,rgba(22,20,17,.021) 0 2px,transparent 2px 108px),
    repeating-linear-gradient(0deg,rgba(45,33,20,.02) 0 1px,transparent 1px 12px),
    linear-gradient(115deg,#ece1c9 5%,#d7cbb3 48%,#e7dcc4 100%);
  border:6px solid #171717;box-shadow:18px 18px 0 #ab3024,27px 27px 0 rgba(13,13,13,.43)
}
html[data-theme="brutalist"] .screen::before{
  content:"КОНСТРУКТИВИЗМ   /   UPDRAFT     •     INDEX  01";
  background:#171717;color:#f3e6cd;
  margin:0 calc(clamp(18px,4vw,60px) * -1);
  padding:12px clamp(18px,4vw,60px);
  font:700 12px/1.4 'Courier New',monospace;letter-spacing:.12em
}
html[data-theme="brutalist"] .masthead{
  position:relative;isolation:isolate;overflow:hidden;
  border:0;border-bottom:11px solid #151515;
  padding:clamp(45px,7vw,90px) 15px clamp(36px,6vw,73px);
  min-height:clamp(240px,31vw,360px);margin:0 0 28px
}
html[data-theme="brutalist"] .masthead::before{
  content:"";position:absolute;z-index:-1;
  width:clamp(300px,48vw,620px);height:clamp(300px,48vw,620px);
  right:-9%;top:-68%;border:clamp(30px,4.2vw,64px) solid #c52c20;border-radius:50%;
  transform:rotate(-18deg);
  box-shadow:0 0 0 11px #181818,0 0 0 15px rgba(226,215,193,.87);
}
html[data-theme="brutalist"] .masthead::after{
  content:"";position:absolute;z-index:-1;
  width:clamp(115px,18vw,250px);height:clamp(500px,58vw,750px);
  right:20%;top:-78%;transform:rotate(-35deg);
  background:#c52c20;
  box-shadow:clamp(52px,7.5vw,110px) 0 0 #161616;
}
html[data-theme="brutalist"] h1{
  position:relative;z-index:1;
  max-width:92%;overflow-wrap:anywhere;margin:20px 0 23px;
  color:#151515;font:900 clamp(68px,11vw,151px)/.88
  Impact,'Arial Narrow','Arial Black',sans-serif;
  letter-spacing:-.078em;text-transform:uppercase;
  text-shadow:3px 3px 0 rgba(238,224,194,.45)
}
html[data-theme="brutalist"] .cursor{color:#bc2a20}
html[data-theme="brutalist"] .section-tag{
  position:relative;z-index:1;display:inline-block;
  padding:10px 18px;background:#c52c20;color:#fff5db;
  font:800 clamp(12px,1.4vw,17px)/1.2 'Arial Narrow',Arial,sans-serif;
  letter-spacing:.20em;transform:rotate(-3deg)
}
html[data-theme="brutalist"] main{flex:1}
html[data-theme="brutalist"] .directory-top{
  margin-bottom:4px;padding:0 0 15px;border:0;border-bottom:7px solid #171717
}
html[data-theme="brutalist"] h2{
  font:900 clamp(31px,4.3vw,53px)/1 Impact,'Arial Narrow',sans-serif;
  letter-spacing:.015em;color:#161616
}
html[data-theme="brutalist"] .dim{
  font:800 16px 'Courier New',monospace;color:#161616;
  border:3px solid #161616;min-width:47px;padding:8px 10px;text-align:center
}
html[data-theme="brutalist"] .program-list{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  align-content:start;gap:18px 22px;margin:22px 0 0
}
html[data-theme="brutalist"] .program-section{
  position:relative;min-width:0;
  background:#e7dac0;border:5px solid #151515;
  padding:0 19px 15px;box-shadow:8px 8px 0 #bc2c23
}
html[data-theme="brutalist"] .program-section:nth-child(3n+2){background:#d4c9b0}
html[data-theme="brutalist"] .program-section:nth-child(3n){background:#e6d9c0}
html[data-theme="brutalist"] .group-head{
  background:#151515;color:#f3e5c9;padding:14px 16px;
  margin:0 -19px 10px;letter-spacing:.08em;
  font:900 clamp(19px,2.25vw,29px)/1.05 Impact,'Arial Narrow',sans-serif
}
html[data-theme="brutalist"] .group-head::before{
  content:"★";color:#e33c2d;margin-right:10px;
  font-size:.8em;vertical-align:.08em
}
html[data-theme="brutalist"] .program-row{
  grid-template-columns:30px minmax(0,1fr) auto;
  gap:10px;min-height:64px;
  border:0;border-bottom:2px solid #665e50;color:#161616
}
html[data-theme="brutalist"] .program-row:last-child{border-bottom:2px solid #665e50}
html[data-theme="brutalist"] .program-name{
  font:900 clamp(18px,1.9vw,24px)/1.12 Impact,'Arial Narrow',sans-serif;
  letter-spacing:.018em;overflow-wrap:anywhere
}
html[data-theme="brutalist"] .program-state.state-live{color:#aa241d}
html[data-theme="brutalist"] .is-live:hover,
html[data-theme="brutalist"] .is-live:focus-visible{
  background:#bf2c20;color:#fff4de;outline:3px solid #161616;outline-offset:-2px
}
html[data-theme="brutalist"] .is-live:hover .program-num,
html[data-theme="brutalist"] .is-live:hover .program-state,
html[data-theme="brutalist"] .is-live:focus-visible .program-num,
html[data-theme="brutalist"] .is-live:focus-visible .program-state{color:#fff4de}
html[data-theme="brutalist"] .brutalist-audio{
  order:1;
  margin-top:23px;
  background:linear-gradient(110deg,#1b1b1b 0 26%,#bf3023 26% 29%,#e7d9be 29% 100%);
  border:5px solid #161616;
  padding:18px 20px 17px;gap:12px 19px
}
html[data-theme="brutalist"] .brutalist-audio button{
  border:3px solid #161616;background:#bd2e22;color:#fff6df;
  font:800 14px/1.2 'Arial Narrow','Courier New',Arial,sans-serif;
  letter-spacing:.11em;min-height:48px
}
html[data-theme="brutalist"] .brutalist-audio button:hover,
html[data-theme="brutalist"] .brutalist-audio button:focus-visible{
  background:#171717;color:#fff3d9;outline:2px solid #b92d20;outline-offset:2px
}
html[data-theme="brutalist"] .brutalist-audio a{
  color:#181818;font-weight:800;line-height:1.3
}
html[data-theme="brutalist"] .brutalist-audio small{
  color:#35302a;font-size:12px;line-height:1.45
}
html[data-theme="brutalist"] .brutalist-player{
  width:min(100%,640px);border:4px solid #171717;
  background:#171717;box-shadow:6px 6px 0 #a82e22
}
html[data-theme="brutalist"] .display-footer{
  order:2;margin-top:36px;border-top:7px solid #171717;padding-top:17px
}
html[data-theme="brutalist"] .site-traffic,
html[data-theme="brutalist"] .traffic-explainer{order:3}
html[data-theme="brutalist"] .site-traffic{border-top:2px solid #171717}
html[data-theme="brutalist"] .display-footer label{color:#231e1c}
html[data-theme="brutalist"] #updraft-theme{
  background:#e7d9be;color:#181818;border-color:#191919
}
html[data-theme="brutalist"] #updraft-theme:focus-visible{
  outline:3px solid #c52c20;outline-offset:3px
}
@media(max-width:760px){
  html[data-theme="brutalist"] .screen{
    width:calc(100% - 24px);margin:12px auto 27px;
    padding:0 13px 20px;border-width:4px;
    box-shadow:6px 6px 0 #ab3024,10px 10px 0 rgba(13,13,13,.4)
  }
  html[data-theme="brutalist"] .screen::before{
    margin:0 -13px;padding:9px 13px;font-size:10px
  }
  html[data-theme="brutalist"] .masthead{
    padding:45px 3px 29px;min-height:230px;border-bottom-width:7px;margin-bottom:23px
  }
  html[data-theme="brutalist"] .masthead::before{
    width:275px;height:275px;top:-105px;right:-93px;border-width:32px;
    box-shadow:0 0 0 6px #181818
  }
  html[data-theme="brutalist"] .masthead::after{
    height:440px;width:95px;top:-200px;right:26%;
    box-shadow:46px 0 0 #161616
  }
  html[data-theme="brutalist"] h1{
    font-size:clamp(48px,12.5vw,87px);max-width:100%;
    letter-spacing:-.07em;line-height:.91
  }
  html[data-theme="brutalist"] .section-tag{padding:8px 11px;letter-spacing:.09em}
  html[data-theme="brutalist"] h2{font-size:clamp(25px,8vw,42px)}
  html[data-theme="brutalist"] .program-list{grid-template-columns:1fr;gap:20px}
  html[data-theme="brutalist"] .program-section{
    padding:0 12px 10px;border-width:4px;box-shadow:5px 5px 0 #bc2c23
  }
  html[data-theme="brutalist"] .group-head{margin:0 -12px 8px;padding:10px 12px}
  html[data-theme="brutalist"] .program-row{
    min-height:57px;grid-template-columns:23px minmax(0,1fr) auto;gap:6px
  }
  html[data-theme="brutalist"] .program-name{font-size:clamp(17px,5vw,22px)}
  html[data-theme="brutalist"] .brutalist-audio{
    background:#e7d9be;border-width:4px;margin-top:24px;padding:14px 11px
  }
  html[data-theme="brutalist"] .brutalist-audio button{width:100%}
  html[data-theme="brutalist"] .brutalist-player{width:100%;box-shadow:3px 3px 0 #ab3024}
}

/* Keep the music controls truly hidden when playback is stopped. */
.brutalist-audio [hidden]{display:none!important}



/* ============= DEEP SPACE / 2001-ERA CINEMATIC RETROFUTURISM =============
   Replaces the prior neon-blue game-console appearance with sparse, precise
   ivory spacecraft panels, black instruments and one red optical sensor.
   Static decoration, no strobing, no background images, no external assets. */
html[data-theme="space"]{
  color-scheme:light;
  --bg:#0b0c0f;--text:#1d2023;--bright:#111316;--muted:#484d51;
  --line:#b5b7b8;--amber:#b42e26;--hover:#e8e8e4;
  --inactive:#596066;--surface:#f0f0ec;
  --font:'Space Grotesk','Helvetica Neue',Arial,sans-serif
}
html[data-theme="space"] body{
  background:#090a0c;color:#17191d;font:400 clamp(15px,1.3vw,17px)/1.48 var(--font);
}
html[data-theme="space"] body::before{display:none}
html[data-theme="space"] .screen{
  position:relative;isolation:isolate;
  width:min(1250px,calc(100% - 54px));min-height:calc(100svh - 54px);
  margin:27px auto;padding:0 clamp(20px,4.6vw,65px) 33px;
  display:flex;flex-direction:column;
  border:1px solid #85888b;border-radius:0;
  background:
    linear-gradient(90deg,transparent 0 98.9%,rgba(28,29,30,.065) 99% 99.1%,transparent 99.2%),
    linear-gradient(180deg,#f5f5f1,#eaeae6);
  box-shadow:0 0 0 7px #111315,0 24px 75px rgba(0,0,0,.75);
}
html[data-theme="space"] .screen::before{
  content:"UPDRAFT   /   SHIP SYSTEMS                               01 — OPERATIONS";
  display:block;white-space:normal;
  margin:0 calc(clamp(20px,4.6vw,65px) * -1);
  padding:14px clamp(20px,4.6vw,65px) 13px;
  border:0;border-bottom:1px solid #26282b;
  background:#111315;color:#e4e6e5;
  font:500 10px/1.4 'IBM Plex Mono',Consolas,monospace;
  letter-spacing:.15em
}
html[data-theme="space"] .masthead{
  position:relative;isolation:isolate;overflow:hidden;
  padding:clamp(30px,5vw,62px) 30px clamp(34px,5vw,62px);
  min-height:clamp(255px,29vw,340px);
  margin:0 calc(clamp(20px,4.6vw,65px) * -1) 30px;
  background:
    linear-gradient(90deg,transparent 0 81.5%,#303338 81.6% 82%,transparent 82.1%),
    linear-gradient(150deg,#1c1f23,#08090b 70%);
  border:0;border-bottom:9px solid #b8bab8;
}
html[data-theme="space"] .masthead::before{
  content:"COMPUTER / ACTIVE     ●     MISSION 2001";
  display:block;
  color:#f0ede7;
  font:500 11px/1.5 'IBM Plex Mono',Consolas,monospace;
  letter-spacing:.12em;margin:0 0 28px;
  max-width:calc(100% - 180px)
}
html[data-theme="space"] .masthead::after{
  content:"";position:absolute;z-index:0;
  right:clamp(46px,9vw,132px);top:clamp(75px,8vw,98px);
  width:clamp(92px,12vw,142px);height:clamp(92px,12vw,142px);
  border-radius:50%;pointer-events:none;
  background:
    radial-gradient(circle at 43% 38%,#ffb39b 0 3%,#f64832 5%,#bd1010 17%,
      #510909 38%,#190c0c 63%,#070809 76%,#090a0c 100%);
  border:9px solid #111215;
  box-shadow:
    0 0 0 10px #4a4d50,
    0 0 0 15px #101114,
    0 0 0 18px #707174,
    0 0 28px 7px rgba(204,28,24,.30),
    inset 0 0 25px 8px #160606;
}
html[data-theme="space"] h1{
  position:relative;z-index:1;
  color:#efefea;margin:25px 0 17px;
  max-width:calc(100% - 175px);
  font:600 clamp(42px,6.3vw,84px)/1.04 'Space Grotesk','Helvetica Neue',Arial,sans-serif;
  letter-spacing:.025em;text-shadow:none;overflow-wrap:anywhere
}
html[data-theme="space"] .cursor{display:none}
html[data-theme="space"] .section-tag{
  position:relative;z-index:1;
  font:500 11px/1.4 'IBM Plex Mono',Consolas,monospace;
  letter-spacing:.19em;color:#c4c7c8;
  max-width:calc(100% - 170px)
}
html[data-theme="space"] main{flex:1}
html[data-theme="space"] .directory-top{
  padding:0 0 17px;margin-bottom:3px;
  border:0;border-bottom:2px solid #17191c;
  align-items:end;gap:15px
}
html[data-theme="space"] .directory-top h2{
  font:600 clamp(20px,2.3vw,29px)/1.16 'Space Grotesk',Arial,sans-serif;
  letter-spacing:.055em;color:#191b1e
}
html[data-theme="space"] .directory-top h2::before{
  content:"■";color:#bd2920;font-size:.55em;
  display:inline-block;vertical-align:.13em;margin-right:12px
}
html[data-theme="space"] .dim{
  font:500 13px/1.2 'IBM Plex Mono',Consolas,monospace;
  letter-spacing:.02em;color:#26292d;
  border:1px solid #aaa;padding:6px 9px;background:#f5f5f1
}
html[data-theme="space"] .program-list{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:15px;align-content:start;
  margin-top:21px
}
html[data-theme="space"] .program-section{
  min-width:0;padding:0 20px 12px;
  border:1px solid #a1a5a7;border-radius:0;
  background:#f8f8f5;box-shadow:inset 0 1px 0 #fff
}
html[data-theme="space"] .program-section:nth-child(3n+2){
  background:#181b20;border-color:#181b20;box-shadow:none
}
html[data-theme="space"] .group-head{
  font:500 12px/1.4 'IBM Plex Mono',Consolas,monospace;
  letter-spacing:.15em;color:#e9ecea;
  background:#202328;
  border:0;border-bottom:2px solid #a3a5a6;
  margin:0 -20px 9px;padding:13px 20px
}
html[data-theme="space"] .group-head::before{
  content:"";display:inline-block;
  width:7px;height:7px;margin-right:10px;
  background:#c42a23;vertical-align:1px
}
html[data-theme="space"] .program-section:nth-child(3n+2) .group-head{
  background:#111315;color:#f2f2eb;border-bottom-color:#44484e
}
html[data-theme="space"] .program-row{
  min-height:60px;padding:12px 6px;
  display:grid;grid-template-columns:26px minmax(0,1fr) auto;
  gap:10px;border:0;border-bottom:1px solid #d1d1cd;
  border-radius:0;color:#1c2023;
  font:500 clamp(15px,1.3vw,17px)/1.25 'Space Grotesk',Arial,sans-serif;
  transition:none
}
html[data-theme="space"] .program-row:last-child{
  border-bottom:1px solid #d1d1cd
}
html[data-theme="space"] .program-num{
  color:#50565b;font:500 12px/1.3 'IBM Plex Mono',Consolas,monospace
}
html[data-theme="space"] .program-name{
  font-weight:600;letter-spacing:.025em;overflow-wrap:anywhere
}
html[data-theme="space"] .program-state{
  color:#5d656a;font:500 11px/1.3 'IBM Plex Mono',Consolas,monospace;
  letter-spacing:0;white-space:nowrap
}
html[data-theme="space"] .program-state.state-live{color:#af2821}
html[data-theme="space"] .program-section:nth-child(3n+2) .program-row{
  color:#f2f1eb;border-bottom-color:#42464b
}
html[data-theme="space"] .program-section:nth-child(3n+2) .program-num,
html[data-theme="space"] .program-section:nth-child(3n+2) .program-state{
  color:#c6ccce
}
html[data-theme="space"] .program-section:nth-child(3n+2) .program-state.state-live{
  color:#f99d89
}
html[data-theme="space"] .is-live:hover,
html[data-theme="space"] .is-live:focus-visible{
  background:#b42b24;color:#fff!important;
  outline:2px solid #a82a24;outline-offset:-2px
}
html[data-theme="space"] .is-live:hover .program-num,
html[data-theme="space"] .is-live:hover .program-state,
html[data-theme="space"] .is-live:focus-visible .program-num,
html[data-theme="space"] .is-live:focus-visible .program-state{
  color:#fff!important
}
html[data-theme="space"] .display-footer{
  margin-top:37px;padding-top:20px;border-top:2px solid #181b1f;
  gap:16px
}
html[data-theme="space"] .display-footer label{
  color:#383c42;font:500 11px/1.3 'IBM Plex Mono',Consolas,monospace;
  letter-spacing:.11em
}
html[data-theme="space"] #updraft-theme{
  color:#181b1e;background:#f9f9f6;
  border:1px solid #81868b;border-radius:0;
  font:500 14px 'Space Grotesk',Arial,sans-serif;
  min-height:42px
}
html[data-theme="space"] #updraft-theme:focus-visible{
  outline:2px solid #b42b24;outline-offset:3px
}
html[data-theme="space"] .site-traffic{
  margin-top:25px;border-top:1px solid #999b9d
}
html[data-theme="space"] .site-traffic .metric-label,
html[data-theme="space"] .traffic-explainer{
  color:#4d5356
}
html[data-theme="space"] .site-traffic strong{color:#191d20}

/* Compact 2001-style controls on narrow screens: the red sensor remains
   decorative and never obscures real link text or navigation. */
@media(max-width:760px){
 html[data-theme="space"] .screen{
   width:calc(100% - 18px);min-height:calc(100svh - 18px);
   margin:9px auto;padding:0 15px 19px;box-shadow:0 0 0 4px #111315;
 }
 html[data-theme="space"] .screen::before{
   margin:0 -15px;padding:11px 15px;
   font-size:9px;letter-spacing:.04em
 }
 html[data-theme="space"] .masthead{
   margin:0 -15px 19px;min-height:238px;
   padding:19px 16px 26px;border-bottom-width:6px
 }
 html[data-theme="space"] .masthead::before{
   font-size:9px;letter-spacing:.06em;
   max-width:calc(100% - 102px);margin-bottom:20px
 }
 html[data-theme="space"] .masthead::after{
   top:35px;right:33px;width:69px;height:69px;
   border-width:6px;
   box-shadow:0 0 0 6px #484a4c,0 0 0 9px #101114,0 0 0 11px #64686a,
     0 0 18px 3px rgba(200,25,20,.24),inset 0 0 14px 4px #160606
 }
 html[data-theme="space"] h1{
   margin-top:88px;margin-bottom:9px;
   max-width:100%;font-size:clamp(37px,8.8vw,61px);
   letter-spacing:0;line-height:1.05
 }
 html[data-theme="space"] .section-tag{
   max-width:100%;font-size:10px;letter-spacing:.12em
 }
 html[data-theme="space"] .directory-top h2{font-size:20px}
 html[data-theme="space"] .program-list{grid-template-columns:1fr;gap:13px;margin-top:16px}
 html[data-theme="space"] .program-section{padding:0 12px 8px}
 html[data-theme="space"] .group-head{margin:0 -12px 6px;padding:10px 12px}
 html[data-theme="space"] .program-row{
   min-height:55px;grid-template-columns:22px minmax(0,1fr) auto;
   gap:7px;padding:10px 4px;font-size:16px
 }
 html[data-theme="space"] .program-name{font-size:16px}
 html[data-theme="space"] .program-state{font-size:10px}
 html[data-theme="space"] .display-footer{margin-top:29px}
}
@media(prefers-reduced-motion:reduce){
 html[data-theme="space"] .masthead::after,
 html[data-theme="space"] .program-row{animation:none;transition:none}
}



/* ======================================================================
   UTOPIAN SCHOLASTIC / CABINET OF IMPOSSIBILITIES
   Surreal scholar's still life; deliberately unlike ordinary card UI.
   Real application links stay readable, keyboard accessible and untitled.
   ====================================================================== */
html[data-theme="scholastic"]{
  color-scheme:light;
  --bg:#172b45;--text:#342a36;--bright:#3a2448;--muted:#66576a;
  --line:#c19a6c;--amber:#9f4560;--hover:#f4e2c7;
  --inactive:#615461;--surface:#f3e4c6;
  --font:Georgia,'Book Antiqua','Palatino Linotype',serif
}
html[data-theme="scholastic"] body{
  font:400 clamp(15px,1.4vw,17px)/1.55 Georgia,'Book Antiqua',serif;
  color:#3e2e36;
  background:
    radial-gradient(ellipse at 9% 13%,rgba(237,200,137,.16),transparent 34%),
    radial-gradient(ellipse at 94% 88%,rgba(122,64,105,.17),transparent 39%),
    repeating-linear-gradient(90deg,transparent 0 89px,rgba(232,194,128,.027) 90px 91px),
    linear-gradient(123deg,#172b45,#254f59 53%,#382e48);
}
html[data-theme="scholastic"] .screen{
  width:min(1260px,calc(100% - 60px));
  min-height:calc(100svh - 66px);
  margin:33px auto 45px;padding:0 0 25px;
  overflow:hidden;position:relative;isolation:isolate;
  display:flex;flex-direction:column;
  background:#e9d6b2;
  border:6px solid #372b45;
  outline:3px solid #caa776;
  box-shadow:13px 14px 0 #6d3958,0 36px 90px rgba(2,14,26,.62)
}
html[data-theme="scholastic"] .screen::before{
  content:"THE UTOPIAN SCHOLASTIC   /   CABINET OF CURIOSITIES   /   VOL. I";
  display:block;
  padding:12px clamp(20px,4vw,55px);
  background:#312640;color:#eed8b0;
  border-bottom:4px double #dbb780;
  font:700 11px/1.45 Georgia,serif;letter-spacing:.13em
}
html[data-theme="scholastic"] .masthead{
  position:relative;isolation:isolate;
  overflow:hidden;
  margin:0;
  min-height:clamp(515px,53vw,665px);
  padding:clamp(34px,4.3vw,60px) clamp(27px,4vw,52px) 40px;
  border:0;border-bottom:12px double #d9b880;
  background:
    radial-gradient(circle at 70% 40%,rgba(235,195,120,.14),transparent 45%),
    #163c4c;
}
html[data-theme="scholastic"] .masthead::before{
  content:"";display:none;
}
html[data-theme="scholastic"] .masthead::after{
  content:"";position:absolute;z-index:0;inset:0;
  width:auto;height:auto;
  right:0;top:0;bottom:0;left:0;
  background:url("/assets/utopian-cabinet.svg?v=1") center center/cover no-repeat;
  opacity:1;border:0;border-radius:0;transform:none;
  filter:none;pointer-events:none;box-shadow:none
}
html[data-theme="scholastic"] h1{
  position:relative;z-index:2;
  max-width:min(48%,560px);
  display:block;
  margin:clamp(24px,3vw,44px) 0 14px;
  padding:28px 23px 24px;
  border-left:7px solid #cfa66a;
  background:linear-gradient(90deg,rgba(20,39,54,.89),rgba(22,38,51,.76) 70%,rgba(22,38,51,.04));
  color:#ffebc4;
  font:400 clamp(45px,6.5vw,91px)/.98 Georgia,'Palatino Linotype',serif;
  letter-spacing:-.065em;text-shadow:0 3px 2px rgba(6,15,24,.68);
  overflow-wrap:anywhere;
}
html[data-theme="scholastic"] h1::before{
  content:"UTOPIAN  ·  SCHOLASTIC";
  display:block;
  margin-bottom:13px;padding-bottom:9px;
  border-bottom:1px solid rgba(242,207,158,.55);
  font:700 clamp(10px,1.1vw,13px)/1.3 Georgia,serif;
  color:#f5d49d;letter-spacing:.20em;
  text-shadow:none
}
html[data-theme="scholastic"] .cursor{display:none}
html[data-theme="scholastic"] .section-tag{
  position:relative;z-index:2;display:inline-block;
  width:max-content;max-width:42%;
  margin:0 0 0 25px;
  padding:10px 21px 13px;
  color:#3d2944;
  background:linear-gradient(105deg,#e2b777,#ffe6ae 55%,#b38360);
  border:1px solid #efdcaa;
  box-shadow:4px 6px 0 rgba(24,29,38,.4);
  font:italic 700 clamp(16px,1.6vw,21px)/1.2 Georgia,serif;
  letter-spacing:.02em;transform:rotate(-3deg);
  text-shadow:none
}
html[data-theme="scholastic"] .section-tag::before{
  content:"AN ATLAS OF STRANGE THINGS";
  display:block;margin:0 0 4px;
  color:#704459;font:700 10px/1.35 Georgia,serif;
  letter-spacing:.11em
}
html[data-theme="scholastic"] main{
  flex:1;position:relative;isolation:isolate;
  padding:40px clamp(24px,4.5vw,62px) 26px;
  background:
    radial-gradient(ellipse at 90% 17%,rgba(184,123,76,.09),transparent 31%),
    radial-gradient(ellipse at 6% 94%,rgba(107,90,74,.09),transparent 48%),
    repeating-linear-gradient(0deg,transparent 0 3px,rgba(90,63,44,.013) 4px,transparent 5px 23px),
    linear-gradient(110deg,#f8e8c8,#e9d5ad 64%,#f4dfb8);
}
html[data-theme="scholastic"] main::before{
  content:"";position:absolute;z-index:-1;pointer-events:none;
  inset:14px;opacity:.52;
  border:2px solid #cfb286;
  box-shadow:inset 0 0 0 3px rgba(255,250,226,.51)
}
html[data-theme="scholastic"] .directory-top{
  display:flex;align-items:baseline;justify-content:space-between;
  border:0;border-bottom:3px double #8f6b51;
  gap:15px;margin:0 0 19px;
  padding:0 0 18px
}
html[data-theme="scholastic"] .directory-top h2{
  color:#56344b;
  font:400 clamp(32px,4.6vw,56px)/1.06 Georgia,'Book Antiqua',serif;
  letter-spacing:-.06em;
  margin:0;text-transform:none;
}
html[data-theme="scholastic"] .directory-top h2::before{
  content:"✥";margin-right:15px;
  color:#a04d5c;font:400 .63em Georgia,serif
}
html[data-theme="scholastic"] .dim{
  color:#69455b;background:#f2dec0;
  border:2px solid #b98d61;padding:6px 11px;
  font:700 13px/1.2 Georgia,serif
}
html[data-theme="scholastic"] .program-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-auto-flow:row;
  gap:33px 37px;
  align-content:start;
  margin:26px 10px 35px;
  counter-reset:scholastic-plate;
}
html[data-theme="scholastic"] .program-section{
  position:relative;isolation:isolate;overflow:visible;
  min-width:0;padding:0 21px 17px;margin:0;
  counter-increment:scholastic-plate;
  border:0;border-radius:2px;
  background:
    radial-gradient(circle at 100% 0%,rgba(163,88,71,.065),transparent 45%),
    linear-gradient(139deg,#fff3d6 0%,#e9d3ad 100%);
  box-shadow:
    2px 3px 0 #a37d5a,
    7px 9px 0 rgba(68,47,47,.17),
    0 2px 20px rgba(63,44,40,.13);
  transform:rotate(-.55deg);
}
html[data-theme="scholastic"] .program-section:nth-child(2n){
  transform:rotate(.65deg);
  background:linear-gradient(139deg,#f5ead6,#dbe6cf)
}
html[data-theme="scholastic"] .program-section:nth-child(3n){
  transform:rotate(-.85deg);
  background:linear-gradient(139deg,#f5e1cb,#ecd1be)
}
html[data-theme="scholastic"] .program-section:nth-child(4n){
  transform:rotate(.42deg);
  background:linear-gradient(139deg,#fff1db,#e9d7b3)
}
html[data-theme="scholastic"] .program-section::before{
  content:"";
  position:absolute;z-index:3;pointer-events:none;
  top:-17px;right:27px;width:35px;height:74px;
  background:linear-gradient(90deg,#8a3854,#cb6470 51%,#7b3458);
  clip-path:polygon(0 0,100% 0,100% 100%,50% 78%,0 100%);
  box-shadow:0 2px 2px rgba(0,0,0,.2);
  transform:rotate(9deg)
}
html[data-theme="scholastic"] .program-section:nth-child(2n)::before{
  background:linear-gradient(90deg,#27676e,#69a69e 55%,#2c7271);
  right:34px;transform:rotate(-8deg)
}
html[data-theme="scholastic"] .program-section:nth-child(3n)::before{
  background:linear-gradient(90deg,#a87634,#e2b76f 55%,#9f6d34);
}
html[data-theme="scholastic"] .program-section::after{
  content:"✥";position:absolute;z-index:4;pointer-events:none;
  right:4px;bottom:4px;display:grid;place-items:center;
  width:38px;height:38px;border-radius:50%;
  background:radial-gradient(circle at 35% 28%,#e58c83,#8d3652 78%);
  border:2px solid #e3aa91;
  color:#fce6c2;font:700 20px Georgia,serif;
  box-shadow:0 2px 3px rgba(57,38,44,.28);
  transform:rotate(-17deg)
}
html[data-theme="scholastic"] .program-section:nth-child(2n)::after{
  background:radial-gradient(circle at 35% 28%,#8fc4ab,#3c827c 80%);
  border-color:#b7d9bf
}
html[data-theme="scholastic"] .group-head{
  position:relative;
  display:flex;gap:10px;align-items:center;
  padding:16px 65px 14px 24px;
  margin:0 -21px 13px -25px;
  background:linear-gradient(94deg,#523550,#7f4a60 75%,#543b57);
  color:#fff0d0;
  border:0;border-bottom:3px solid #c6a478;
  box-shadow:2px 3px 0 rgba(69,45,50,.19);
  font:700 clamp(17px,2.1vw,24px)/1.15 Georgia,serif;
  letter-spacing:.02em;text-transform:capitalize;
  clip-path:polygon(0 0,100% 0,98% 50%,100% 100%,0 100%,2% 50%)
}
html[data-theme="scholastic"] .program-section:nth-child(2n) .group-head{
  background:linear-gradient(94deg,#205966,#286e6a 75%,#255b69)
}
html[data-theme="scholastic"] .program-section:nth-child(3n) .group-head{
  background:linear-gradient(94deg,#804535,#92543c 75%,#874637)
}
html[data-theme="scholastic"] .program-section:nth-child(4n) .group-head{
  background:linear-gradient(94deg,#755226,#80602e 75%,#725025)
}
html[data-theme="scholastic"] .group-head::before{
  content:"❧";margin:0 3px 0 0;
  color:#f4cc91;font:400 26px/.8 Georgia,serif
}
html[data-theme="scholastic"] .group-head::after{
  content:"FOLIO " counter(scholastic-plate,upper-roman);
  margin-left:auto;
  white-space:nowrap;color:#fbe6bf;
  font:700 10px/1.4 Georgia,serif;letter-spacing:.1em
}
html[data-theme="scholastic"] .program-row{
  min-height:62px;
  grid-template-columns:3ch minmax(0,1fr) auto;
  gap:10px;padding:10px 11px;
  border:0;border-bottom:1px solid rgba(109,83,67,.25);
  color:#403143;
  font:400 16px/1.4 Georgia,serif
}
html[data-theme="scholastic"] .program-row:last-child{
  border-bottom:1px solid rgba(109,83,67,.25)
}
html[data-theme="scholastic"] .program-num{
  font:700 12px/1.4 Georgia,serif;
  color:#7c5267;
}
html[data-theme="scholastic"] .program-name{
  color:inherit;
  font:700 clamp(16px,1.65vw,20px)/1.23 Georgia,serif;
  letter-spacing:0;overflow-wrap:anywhere
}
html[data-theme="scholastic"] .program-state{
  color:#655365;
  font:700 11px/1.2 Georgia,serif;white-space:nowrap
}
html[data-theme="scholastic"] .program-state.state-live{color:#17665c}
html[data-theme="scholastic"] .is-live:hover,
html[data-theme="scholastic"] .is-live:focus-visible{
  color:#fff2d7;
  background:#513950;
  outline:2px solid #694a56;outline-offset:-2px
}
html[data-theme="scholastic"] .is-live:hover .program-num,
html[data-theme="scholastic"] .is-live:hover .program-state,
html[data-theme="scholastic"] .is-live:focus-visible .program-num,
html[data-theme="scholastic"] .is-live:focus-visible .program-state{
  color:#fff2d7
}
html[data-theme="scholastic"] .display-footer{
  margin:0 clamp(24px,4.5vw,62px);
  padding-top:21px;
  gap:14px;border-top:4px double #a38057
}
html[data-theme="scholastic"] .display-footer label{
  font:700 13px Georgia,serif;
  color:#5f4056;letter-spacing:.06em
}
html[data-theme="scholastic"] #updraft-theme{
  min-height:44px;max-width:100%;
  background:#fff1d7;color:#49334b;
  font:700 13px Georgia,serif;
  border:2px ridge #ad8359;border-radius:0;
  box-shadow:inset 0 0 0 1px #fff5e2;
}
html[data-theme="scholastic"] #updraft-theme:focus-visible{
  outline:3px solid #703f58;outline-offset:2px
}
html[data-theme="scholastic"] .install-control button{
  color:#4b324b;
  min-height:44px;border:2px ridge #ba9466;border-radius:0;
  background:linear-gradient(#ffe8b9,#dfbb87);
  font:700 12px Georgia,serif
}
html[data-theme="scholastic"] .install-control button:hover,
html[data-theme="scholastic"] .install-control button:focus-visible{
  background:#5d3d5a;color:#fff0d4;
  outline:2px solid #5d3d5a
}
html[data-theme="scholastic"] .site-traffic{
  margin:22px clamp(24px,4.5vw,62px) 0;
  border-top:1px solid #ac8665
}
html[data-theme="scholastic"] .traffic-explainer{
  margin:10px clamp(24px,4.5vw,62px) 0;
  color:#675368;
}
html[data-theme="scholastic"] .site-traffic strong{color:#50354a}
html[data-theme="scholastic"] .site-traffic .metric-label{color:#69546c}

/* Deliberate collage remains spacious, but cards become straight and
   single-column on phone so project links remain easy to tap. */
@media(max-width:900px){
  html[data-theme="scholastic"] .masthead{
    min-height:560px;
    padding:28px
  }
  html[data-theme="scholastic"] .masthead::after{
    background-position:57% center;
    background-size:cover
  }
  html[data-theme="scholastic"] h1{
    max-width:62%;
    padding:22px 18px;
    font-size:clamp(49px,7vw,72px)
  }
  html[data-theme="scholastic"] .section-tag{max-width:56%}
}
@media(max-width:720px){
  html[data-theme="scholastic"] .screen{
    width:calc(100% - 18px);margin:9px auto 23px;
    border-width:3px;outline-width:1px;
    box-shadow:5px 6px 0 #6d3958,0 18px 42px rgba(2,14,26,.38)
  }
  html[data-theme="scholastic"] .screen::before{
    padding:9px 13px;
    font-size:9px;letter-spacing:.04em;
  }
  html[data-theme="scholastic"] .masthead{
    min-height:510px;
    padding:20px 17px;
    border-bottom-width:8px;
  }
  html[data-theme="scholastic"] .masthead::after{
    background-position:54% bottom;
    background-size:auto 100%;
  }
  html[data-theme="scholastic"] h1{
    width:auto;max-width:100%;margin:16px 0 9px;
    padding:17px 14px 17px;
    font-size:clamp(45px,9vw,65px);
    letter-spacing:-.065em;
    border-left-width:5px;
    background:linear-gradient(90deg,rgba(19,37,49,.96),rgba(20,35,48,.65) 84%,transparent);
  }
  html[data-theme="scholastic"] h1::before{
    font-size:10px;letter-spacing:.14em;
    margin-bottom:9px
  }
  html[data-theme="scholastic"] .section-tag{
    max-width:94%;
    margin-left:10px;padding:8px 12px;
    font-size:16px
  }
  html[data-theme="scholastic"] .section-tag::before{
    font-size:9px
  }
  html[data-theme="scholastic"] main{
    padding:26px 18px 17px
  }
  html[data-theme="scholastic"] main::before{inset:8px}
  html[data-theme="scholastic"] .directory-top{
    gap:9px;padding-bottom:12px
  }
  html[data-theme="scholastic"] .directory-top h2{
    font-size:clamp(28px,7.8vw,40px)
  }
  html[data-theme="scholastic"] .directory-top h2::before{
    margin-right:8px
  }
  html[data-theme="scholastic"] .program-list{
    grid-template-columns:1fr;
    gap:25px;margin:19px 5px 27px
  }
  html[data-theme="scholastic"] .program-section,
  html[data-theme="scholastic"] .program-section:nth-child(n){
    transform:none;padding:0 13px 13px
  }
  html[data-theme="scholastic"] .program-section::before{
    width:26px;height:51px;top:-12px;right:22px
  }
  html[data-theme="scholastic"] .program-section::after{
    width:30px;height:30px;font-size:15px
  }
  html[data-theme="scholastic"] .group-head{
    margin:0 -13px 10px -17px;
    padding:12px 45px 11px 13px;
    font-size:19px
  }
  html[data-theme="scholastic"] .group-head::before{font-size:20px}
  html[data-theme="scholastic"] .group-head::after{font-size:9px}
  html[data-theme="scholastic"] .program-row{
    min-height:57px;
    grid-template-columns:22px minmax(0,1fr) auto;
    gap:7px;padding:9px 5px
  }
  html[data-theme="scholastic"] .program-name{font-size:17px}
  html[data-theme="scholastic"] .display-footer{
    margin:0 18px;padding-top:15px
  }
  html[data-theme="scholastic"] .site-traffic,
  html[data-theme="scholastic"] .traffic-explainer{
    margin-left:18px;margin-right:18px
  }
}
@media(max-width:390px){
  html[data-theme="scholastic"] h1{font-size:41px}
  html[data-theme="scholastic"] .group-head{font-size:17px}
  html[data-theme="scholastic"] .group-head::after{font-size:8px}
  html[data-theme="scholastic"] .masthead{min-height:478px}
}
@media(prefers-reduced-motion:reduce){
 html[data-theme="scholastic"] *{transition:none!important;animation:none!important}
}



/* ==============================================================
   CLASSIC MAIL / MESSAGE VIEW — early-2000s email-client edition.
   A readable email with live project links and an editable display
   theme within the signature. Not a simulated email account.
   ============================================================== */
.mail-navigation,.mail-header-fields,.mail-signature-heading{display:none}
html[data-theme="mail"]{
  color-scheme:light;
  --bg:#d7e0eb;--text:#233449;--bright:#274c7d;--muted:#56667a;
  --line:#b7c4d3;--amber:#bd7e37;--hover:#e9f2fb;
  --inactive:#6b7787;--surface:#ffffff;
  --font:Verdana,Tahoma,Arial,sans-serif
}
html[data-theme="mail"] body{
  background:
    linear-gradient(180deg,rgba(255,255,255,.26),transparent 240px),
    #d7e0eb;
  color:#283648;
  font:400 14px/1.55 Verdana,Tahoma,Arial,sans-serif;
}
html[data-theme="mail"] .screen{
  width:min(1120px,calc(100% - 48px));
  min-height:calc(100svh - 45px);
  margin:23px auto;
  padding:0 0 25px;
  display:flex;flex-direction:column;
  background:#fff;
  border:1px solid #7e95ad;
  box-shadow:0 2px 0 #fff inset,0 8px 32px rgba(38,62,94,.25);
}
html[data-theme="mail"] .screen::before{
  content:"UPDRAFT MAIL      /      READING PANE";
  display:block;
  padding:12px clamp(20px,4vw,52px);
  background:linear-gradient(180deg,#477eae,#2d5c90 60%,#255484);
  border-bottom:4px solid #d2dce9;
  color:#f4f8ff;
  font:700 11px/1.4 Verdana,Tahoma,sans-serif;
  letter-spacing:.09em;
}
html[data-theme="mail"] .masthead{
  display:block;
  padding:20px clamp(20px,4vw,52px) 21px;
  margin:0;
  background:linear-gradient(180deg,#f9fafc,#f0f3f8);
  border-bottom:2px solid #b0bfce;
}
html[data-theme="mail"] .mail-navigation{
  display:flex;align-items:center;flex-wrap:wrap;gap:9px;
  margin:0 0 19px;
  padding:0 0 14px;
  border-bottom:1px solid #d6dfe9;
  color:#385b80;
  font:400 12px/1.45 Verdana,Tahoma,sans-serif;
}
html[data-theme="mail"] .mail-navigation strong{
  color:#1d4c80;font-weight:700;
}
html[data-theme="mail"] .mail-navigation .mail-separator{color:#99a5b4}
html[data-theme="mail"] h1{
  display:block;
  margin:0 0 12px;
  color:#1e2d40;
  font:700 clamp(25px,3.25vw,36px)/1.35 Verdana,Tahoma,sans-serif;
  letter-spacing:-.02em;
  overflow-wrap:anywhere
}
html[data-theme="mail"] h1::before{
  content:"Subject:";
  display:inline-block;min-width:76px;margin-right:12px;
  color:#56647a;vertical-align:.15em;
  font:400 13px/1.4 Verdana,Tahoma,sans-serif;
  letter-spacing:0;
}
html[data-theme="mail"] .cursor{display:none}
html[data-theme="mail"] .mail-header-fields{
  display:grid;grid-template-columns:1fr;
  gap:7px;padding-left:0;
}
html[data-theme="mail"] .mail-header-row{
  display:grid;grid-template-columns:76px minmax(0,1fr);
  gap:12px;align-items:baseline;
  color:#29405b;
  font:400 13px/1.5 Verdana,Tahoma,Arial,sans-serif;
}
html[data-theme="mail"] .mail-header-label{color:#56647a}
html[data-theme="mail"] .mail-header-value{overflow-wrap:anywhere}
html[data-theme="mail"] .section-tag{display:none}
html[data-theme="mail"] main{
  flex:1;
  width:100%;
  padding:34px clamp(22px,5vw,68px) 26px;
  background:#fff;
}
html[data-theme="mail"] main::before{
  content:"Current Updraft projects and applications:";
  display:block;margin-bottom:28px;
  color:#33465e;
  font:400 14px/1.5 Verdana,Tahoma,sans-serif;
}
html[data-theme="mail"] .directory-top{
  display:flex;align-items:baseline;justify-content:space-between;
  border:0;border-bottom:1px solid #b6c4d3;
  padding:0 0 11px;margin-bottom:13px;
}
html[data-theme="mail"] h2{
  color:#34567c;
  font:700 15px/1.4 Verdana,Tahoma,sans-serif;
  letter-spacing:0;
}
html[data-theme="mail"] .dim{
  color:#64768b;font:400 12px/1.4 Verdana,sans-serif;
}
html[data-theme="mail"] .program-list{
  display:block;
  max-width:900px;margin:0;
}
html[data-theme="mail"] .program-section{
  margin:0 0 25px;padding:0;
  background:transparent;
  border:0;
}
html[data-theme="mail"] .group-head{
  margin:0 0 7px;padding:0 0 6px;
  color:#2e5e8c;border-bottom:1px dotted #b7c5d5;
  font:700 14px/1.4 Verdana,Tahoma,sans-serif;
  letter-spacing:0;
}
html[data-theme="mail"] .group-head::before{
  content:"▸";margin-right:8px;color:#6488a8;
}
html[data-theme="mail"] .program-row{
  display:grid;
  grid-template-columns:29px minmax(0,1fr) auto;
  align-items:center;gap:10px;
  min-height:46px;padding:9px 8px;
  border:0;border-bottom:1px solid #e6ecf2;
  color:#1c5898;
  font:400 14px/1.45 Verdana,Tahoma,sans-serif;
}
html[data-theme="mail"] .program-row:last-child{
  border-bottom:1px solid #e6ecf2;
}
html[data-theme="mail"] .program-num{
  color:#768395;
  font:400 11px/1.2 Verdana,Tahoma,sans-serif;
}
html[data-theme="mail"] .program-name{
  color:inherit;
  font:400 14px/1.35 Verdana,Tahoma,sans-serif;
  letter-spacing:0;
  overflow-wrap:anywhere
}
html[data-theme="mail"] .is-live .program-name{
  text-decoration:underline;text-underline-offset:2px;
}
html[data-theme="mail"] .program-state{
  color:#596b80;
  font:400 11px/1.2 Verdana,Tahoma,sans-serif;
  white-space:nowrap;
}
html[data-theme="mail"] .program-state.state-live{
  color:#366b54
}
html[data-theme="mail"] .is-live:hover,
html[data-theme="mail"] .is-live:focus-visible{
  background:#e8f1fb;
  color:#164877;
  outline:2px solid #477eae;outline-offset:-2px;
}
html[data-theme="mail"] .is-pending .program-name{
  color:#718094;text-decoration:none;
}
html[data-theme="mail"] .display-footer{
  position:relative;
  flex-direction:column;align-items:flex-start;justify-content:flex-start;
  width:auto;margin:0 clamp(22px,5vw,68px);
  padding:22px 20px 12px;
  gap:9px;
  border:0;border-top:1px solid #d9e2ea;border-left:4px solid #2d68a0;
  background:#f7f9fc;
}
html[data-theme="mail"] .mail-signature-heading{
  display:flex;flex-direction:column;gap:2px;
  padding:0 0 12px;
  border-bottom:1px solid #dce4eb;
  width:100%;
}
html[data-theme="mail"] .mail-signature-heading span{
  color:#4d5b6a;font:400 12px/1.6 Verdana,Tahoma,sans-serif;
}
html[data-theme="mail"] .mail-signature-heading strong{
  color:#1e568a;
  font:700 22px/1.25 Verdana,Tahoma,sans-serif;
}
html[data-theme="mail"] .mail-signature-heading small{
  color:#52677d;
  font:400 12px/1.5 Verdana,Tahoma,sans-serif;
}
html[data-theme="mail"] .display-footer label{
  color:#56667a;
  font:400 12px/1.45 Verdana,Tahoma,sans-serif;
  letter-spacing:0;
}
html[data-theme="mail"] .theme-controls{
  align-items:center;
  width:100%;max-width:100%;gap:12px;
}
html[data-theme="mail"] .theme-swatches i{
  width:11px;height:18px;border-color:#aebdcb;
}
html[data-theme="mail"] #updraft-theme{
  color:#233b58;background:#fff;border:1px solid #96a9bc;
  border-radius:2px;
  font:400 13px Verdana,Tahoma,sans-serif;
  min-height:40px;max-width:min(100%,450px);
}
html[data-theme="mail"] #updraft-theme:focus-visible{
  outline:2px solid #27639d;outline-offset:2px;
}
html[data-theme="mail"] .install-control{margin-top:5px}
html[data-theme="mail"] .install-control button{
  color:#21588d;background:#fff;border:1px solid #93a5b9;
  border-radius:2px;min-height:39px;
  font:400 12px Verdana,Tahoma,sans-serif;
}
html[data-theme="mail"] .install-control button:hover,
html[data-theme="mail"] .install-control button:focus-visible{
  background:#e4eef8;color:#144472;
  outline:2px solid #2d68a0;outline-offset:2px;
}
html[data-theme="mail"] .site-traffic{
  width:auto;margin:0 clamp(22px,5vw,68px);
  padding:11px 20px 6px;
  border:0;border-left:4px solid #2d68a0;
  background:#f7f9fc;gap:23px;
}
html[data-theme="mail"] .site-traffic .metric-label{
  color:#617187;letter-spacing:0;
  font:400 11px Verdana,Tahoma,sans-serif;
}
html[data-theme="mail"] .site-traffic strong{
  color:#315f91;font:700 12px Verdana,Tahoma,sans-serif;
}
html[data-theme="mail"] .traffic-explainer{
  margin:0 clamp(22px,5vw,68px);
  padding:4px 20px 15px;
  background:#f7f9fc;
  border:0;border-left:4px solid #2d68a0;
  color:#607084;
  font:400 11px/1.55 Verdana,Tahoma,sans-serif;
}

/* Email body remains generous on phones; the signature controls wrap. */
@media(max-width:640px){
  html[data-theme="mail"] .screen{
    width:calc(100% - 16px);
    min-height:calc(100svh - 16px);
    margin:8px auto;
    padding-bottom:14px;
  }
  html[data-theme="mail"] .screen::before{
    padding:11px 14px;font-size:10px;letter-spacing:.02em;
  }
  html[data-theme="mail"] .masthead{padding:16px 17px 19px}
  html[data-theme="mail"] .mail-navigation{
    gap:6px;font-size:11px;margin-bottom:15px;padding-bottom:10px;
  }
  html[data-theme="mail"] h1{
    font-size:clamp(23px,6vw,30px);
    line-height:1.3;
  }
  html[data-theme="mail"] h1::before{
    display:block;margin-bottom:4px;
  }
  html[data-theme="mail"] .mail-header-row{
    grid-template-columns:72px minmax(0,1fr);
    gap:8px;font-size:12px;
  }
  html[data-theme="mail"] main{
    padding:24px 18px 14px
  }
  html[data-theme="mail"] main::before{margin-bottom:20px}
  html[data-theme="mail"] .program-section{margin-bottom:20px}
  html[data-theme="mail"] .program-row{
    min-height:53px;grid-template-columns:22px minmax(0,1fr) auto;
    gap:6px;padding:9px 4px;
  }
  html[data-theme="mail"] .program-name{font-size:13px}
  html[data-theme="mail"] .program-state{font-size:10px}
  html[data-theme="mail"] .display-footer,
  html[data-theme="mail"] .site-traffic,
  html[data-theme="mail"] .traffic-explainer{
    margin-left:17px;margin-right:17px;
    padding-left:13px;padding-right:12px;
  }
  html[data-theme="mail"] .theme-controls{width:100%;gap:9px}
  html[data-theme="mail"] #updraft-theme{
    min-width:0;flex:1;max-width:calc(100% - 54px);
  }
}
