/* School-page top bar. Button glass, colour and sizes are the computed styles of the
   live ATO directory (https://go-around-aero.pages.dev/ato, Amethyst, 390px, 11 Nov 2026).
   Protected shell files are not loaded or edited. The back button uses the same .icb glass
   as search / More / refresh. */

/* Tokens for the four themes. Amethyst (night + purple) values below match live getComputedStyle. */
html[data-theme=night][data-pal=black]{--tg-bg:rgba(30,32,40,.52);--tg-hair:rgba(255,255,255,.10);--tg-rimT:rgba(255,255,255,.34);--tg-rimB:rgba(255,255,255,.08);--tg-sh1:rgba(0,0,0,.35);--tg-tx2-clk:rgba(245,245,247,.55)}
html[data-theme=night][data-pal=purple]{--tg-bg:rgba(46,26,84,.5);--tg-hair:rgba(220,200,255,.12);--tg-rimT:rgba(235,220,255,.38);--tg-rimB:rgba(235,220,255,.08);--tg-sh1:rgba(5,0,20,.4);--tg-tx2-clk:rgba(245,245,247,.55)}
html[data-theme=day][data-pal=white]{--tg-bg:rgba(250,251,255,.62);--tg-hair:rgba(20,30,70,.10);--tg-rimT:#fff;--tg-rimB:rgba(255,255,255,.55);--tg-sh1:rgba(20,30,70,.06);--tg-tx2-clk:rgba(17,17,20,.55)}
html[data-theme=day][data-pal=beige]{--tg-bg:rgba(252,245,233,.68);--tg-hair:rgba(90,70,35,.10);--tg-rimT:#fff;--tg-rimB:rgba(255,250,240,.6);--tg-sh1:rgba(80,60,25,.06);--tg-tx2-clk:rgba(28,24,20,.55)}

/* Live Amethyst computed box-shadow on #clk, .icb.wrf and #tb-theme. */
html[data-theme=night][data-pal=purple]{
  --tg-btn-shadow:rgba(220,200,255,.12) 0 0 0 .5px inset,rgba(235,220,255,.38) 0 .5px 0 0 inset,rgba(235,220,255,.08) 0 -.5px 0 0 inset,rgba(0,0,0,.18) 0 -10px 18px -14px inset,rgba(5,0,20,.4) 0 1px 2px 0,rgba(5,0,20,.4) 0 8px 18px -8px;
  --tg-icon:#B3AAC6; /* rgb(179, 170, 198) */
}
html[data-theme=night][data-pal=black]{
  --tg-btn-shadow:inset 0 0 0 .5px var(--tg-hair),inset 0 .5px 0 var(--tg-rimT),inset 0 -.5px 0 var(--tg-rimB),inset 0 -10px 18px -14px rgba(0,0,0,.18),0 1px 2px var(--tg-sh1),0 8px 18px -8px var(--tg-sh1);
  --tg-icon:#A3A8B4;
}
html[data-theme=day]{
  --tg-btn-shadow:inset 0 0 0 .5px var(--tg-hair),inset 0 .5px 0 var(--tg-rimT),inset 0 -.5px 0 var(--tg-rimB),inset 0 -10px 18px -14px rgba(0,0,0,.18),0 1px 2px var(--tg-sh1),0 8px 18px -8px var(--tg-sh1);
  --tg-icon:var(--tx);
}

body>header.topbar{
  position:sticky;top:0;z-index:30;
  display:flex;align-items:center;justify-content:space-between;
  height:59px;box-sizing:border-box;
  padding:10px 20px;
  padding-top:calc(10px + env(safe-area-inset-top));
  /* Live header.topbar: blur(20px) saturate(1.8), 70% --bg, 59px tall */
  -webkit-backdrop-filter:blur(20px) saturate(1.8);
  backdrop-filter:blur(20px) saturate(1.8);
  background:color-mix(in srgb,var(--bg) 70%,transparent);
  border-bottom:.5px solid var(--ln);
}
.topbar .tbleft{display:flex;align-items:center;gap:8px;min-width:0}
.topbar .logo{display:flex;align-items:center;text-decoration:none;color:var(--tx);flex:none}
.topbar .logo img{width:34px;height:34px;border-radius:9px;display:block;filter:brightness(1.22) contrast(1.05)}
.topbar .tbtn{display:flex;gap:8px;align-items:center;margin-left:auto;min-width:0}

/* Shared glass for clock, back, search, refresh, More — live computed: no backdrop-filter on the buttons. */
.topbar .tbtn>#clk,
.topbar .tbtn>.icb,
.topbar .tbtn>.wrf,
.topbar .tbleft>.icb{
  box-sizing:border-box;
  height:38px;border:0;border-radius:19px;
  background:var(--tg-bg);
  -webkit-backdrop-filter:none;backdrop-filter:none;
  box-shadow:var(--tg-btn-shadow);
  color:var(--tg-icon);
  cursor:pointer;flex:none;text-decoration:none;
  -webkit-tap-highlight-color:transparent;
}
.topbar .tbtn>.icb,
.topbar .tbtn>.wrf,
.topbar .tbleft>.icb{
  width:38px;padding:1px 6px;display:grid;place-items:center;
  font:600 11px/11px -apple-system,sans-serif;
}
.topbar .tbtn>#clk{
  width:auto;min-width:96.2px;padding:0 13px;
  display:flex;flex-direction:column;justify-content:center;
  text-align:right;cursor:default;color:var(--tx);
}
#clk b{
  display:block;
  font:600 13px/15.6px "JetBrains Mono",ui-monospace,Menlo,monospace;
  font-variant-numeric:tabular-nums;letter-spacing:normal;
  color:#111114;
}
#clk small{
  display:block;
  font:500 10.5px/12.6px "JetBrains Mono",ui-monospace,monospace;
  letter-spacing:normal;color:rgba(17,17,20,.55);
}
html[data-theme=night] #clk b{color:#F5F5F7}
html[data-theme=night] #clk small{color:rgba(245,245,247,.55)}

/* Icon sizes from live getComputedStyle: refresh 15px / 1.9, More 18px / 1.6 on the rects. */
.topbar .icb svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;color:inherit}
.topbar .icb.wrf svg,.topbar .wrf svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.9}
.topbar #tb-theme svg,.topbar .icb.more svg{width:18px;height:18px;stroke:none;fill:none;stroke-width:1.7}
.topbar #tb-theme svg .s,.topbar .icb.more svg .s{stroke:currentColor;fill:none;stroke-width:1.6}
/* Back uses the same 38px glass as search (.icb). Chevron at the standard .icb 18px / 1.7. */
.topbar .icb.wmback svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.7}

html[data-theme=night] .topbar .icb,
html[data-theme=night] .topbar .wrf,
html[data-theme=night] .topbar .icb svg,
html[data-theme=night] .topbar .wrf svg{color:#A3A8B4;filter:none}
html[data-theme=night][data-pal=purple] .topbar .icb,
html[data-theme=night][data-pal=purple] .topbar .wrf,
html[data-theme=night][data-pal=purple] .topbar .icb svg,
html[data-theme=night][data-pal=purple] .topbar .wrf svg{color:#B3AAC6;filter:none}
html[data-theme=night] .topbar .icb svg [stroke]:not([stroke=none]),
html[data-theme=night] .topbar .wrf svg{stroke:currentColor}

.topbar .icb:active,.topbar .wrf:active{transform:scale(.94)}


/* Appearance + Palette sheet only. Markup classes and styles match the live app sheet
   (site/index.html layout + the .sheet.mp polish from wm-shell.css, copied into this
   shim, not by editing the protected file). No GO/NO-GO, Reset, Status, or menu rows. */
.glass{
  background:var(--gl);
  -webkit-backdrop-filter:blur(24px) saturate(180%);
  backdrop-filter:blur(24px) saturate(180%);
  border-radius:var(--r);
  position:relative;
  box-shadow:inset 0 1px 0 var(--hl),inset 0 0 0 .5px var(--ln),var(--sh)
}
.glass::before{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(160deg,var(--gl2),transparent 40%)
}
.sheet{
  position:fixed;right:16px;top:calc(62px + env(safe-area-inset-top));z-index:40;
  padding:14px;width:230px;opacity:0;transform:translateY(-6px) scale(.98);
  pointer-events:none;transition:.35s var(--ease)
}
.sheet.on{opacity:1;transform:none;pointer-events:auto}
.sheet h6{margin:0 0 8px;font:600 11px/1 -apple-system,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--tx3)}
.sheet .sw+h6,.sheet .sw+.sw+h6{margin-top:16px}
.sheet{width:300px!important;max-height:calc(100vh - 170px);overflow:auto;-webkit-overflow-scrolling:touch}
.sw{position:relative;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;padding:3px;border-radius:14px;background:var(--gl2);box-shadow:inset 0 0 0 .5px var(--ln)}
.sw button{position:relative;z-index:1;border:0;background:none;color:var(--tx2);font:600 13px/1 -apple-system,sans-serif;height:32px;border-radius:11px;cursor:pointer;transition:color .4s var(--ease)}
.sw button.on{color:var(--tx)}
.sw i{position:absolute;top:3px;bottom:3px;left:3px;border-radius:11px;background:var(--gl);box-shadow:inset 0 1px 0 var(--hl),inset 0 0 0 .5px var(--ln),0 3px 10px rgba(0,0,0,.18);transition:transform .5s var(--ease),width .5s var(--ease)}
html[data-theme=day] .sw i{background:#fff}

/* .sheet.mp polish (copied into the shim only) */
.sheet.mp:not(#z){background:color-mix(in srgb,var(--gl) 62%,transparent);-webkit-backdrop-filter:blur(18px) saturate(190%);backdrop-filter:blur(18px) saturate(190%);
 box-shadow:inset 0 1px 0 var(--hl),inset 0 0 0 .75px color-mix(in srgb,#fff 55%,var(--ln)),var(--sh);width:260px!important}
html[data-theme=day][data-pal=white] .sheet.mp:not(#z):not(#y){background:rgba(250,251,255,.4957)!important;-webkit-backdrop-filter:blur(30px) saturate(190%)!important;backdrop-filter:blur(30px) saturate(190%)!important;box-shadow:#fff 0 .5px 0 0 inset,rgba(20,30,70,.10) 0 0 0 .5px inset,rgba(20,30,70,.06) 0 2px 6px 0,rgba(20,30,70,.16) 0 28px 56px -18px!important}
html[data-theme=day][data-pal=beige] .sheet.mp:not(#z):not(#y){background:rgba(252,245,233,.5427)!important;-webkit-backdrop-filter:blur(30px) saturate(190%)!important;backdrop-filter:blur(30px) saturate(190%)!important;box-shadow:#fff 0 .5px 0 0 inset,rgba(90,70,35,.10) 0 0 0 .5px inset,rgba(80,60,25,.06) 0 2px 6px 0,rgba(80,60,25,.16) 0 28px 56px -18px!important}
html[data-theme=night][data-pal=black] .sheet.mp:not(#z):not(#y){background:rgba(30,32,40,.4173)!important;-webkit-backdrop-filter:blur(30px) saturate(190%)!important;backdrop-filter:blur(30px) saturate(190%)!important;box-shadow:rgba(255,255,255,.34) 0 .5px 0 0 inset,rgba(255,255,255,.10) 0 0 0 .5px inset,rgba(0,0,0,.35) 0 2px 6px 0,rgba(0,0,0,.65) 0 28px 56px -18px!important}
html[data-theme=night][data-pal=purple] .sheet.mp:not(#z):not(#y){background:rgba(46,26,84,.4016)!important;-webkit-backdrop-filter:blur(30px) saturate(190%)!important;backdrop-filter:blur(30px) saturate(190%)!important;box-shadow:rgba(235,220,255,.38) 0 .5px 0 0 inset,rgba(220,200,255,.12) 0 0 0 .5px inset,rgba(5,0,20,.40) 0 2px 6px 0,rgba(5,0,20,.70) 0 28px 56px -18px!important}
.sheet.mp:not(#z):not(#y)::before{background:linear-gradient(160deg,rgba(255,255,255,.22),rgba(255,255,255,0) 35%)!important}
.sheet.mp:not(#z):not(#y) h6{font:700 17px/1.2 Satoshi,-apple-system,sans-serif;letter-spacing:-.02em;text-transform:none;color:var(--tx);padding-left:10px;margin:14px 0 10px;text-shadow:none}
.sheet.mp:not(#z):not(#y) h6:first-of-type{margin-top:0}
html[data-theme=day][data-pal=white] .sheet.mp:not(#z):not(#y) h6{color:#1D1D1F}
#tb-theme.icb.more:not(#z):not(#y){transition:background-color .3s ease,box-shadow .3s ease,color .3s ease}
#tb-theme.icb.more.wmsel:not(#z):not(#y){background:var(--gl2);box-shadow:inset 0 1px 0 var(--hl),inset 0 0 0 .5px var(--ln);color:var(--wmsel)}
#tb-theme.icb.more.wmsel:not(#z):not(#y) svg *{transition:color .3s ease}
html[data-theme=day]{--wmsel:#0019C9}
html[data-theme=night][data-pal=black]{--wmsel:#E6EEFF}
html[data-theme=night][data-pal=purple]{--wmsel:#E6DEF5}

/* Palette names + sun/moon (from site/index.html + app.html, not from protected files). */
@font-face{font-family:'Bebas Neue';font-weight:400;font-style:normal;font-display:block;src:url('/fonts/bebas-neue.woff2') format('woff2')}
.wmdn{width:18px;height:18px;display:block;margin:auto;pointer-events:none}
.wmtn{font-family:'Bebas Neue',Impact,'Arial Narrow',sans-serif!important;font-weight:400!important;letter-spacing:.06em!important;font-size:1.12em;line-height:1;background-size:200% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;padding-top:1px;animation:none!important;text-shadow:none!important;background-position:0 0}
.wmtn-pearl{background-image:linear-gradient(100deg,#2F3A52 0%,#5F7196 45%,#3B4866 60%,#2F3A52 100%)}
.wmtn-champagne{background-image:linear-gradient(100deg,#5A4218 0%,#7E6230 45%,#6A4F1F 60%,#5A4218 100%)}
.wmtn-obsidian,.wmtn-midnight{background-image:linear-gradient(100deg,#CFCFD6 0%,#E9D39C 45%,#B9B9C2 62%,#CFCFD6 100%)}
.wmtn-amethyst{background-image:linear-gradient(100deg,#E4DAFF 0%,#B79CFF 50%,#D4C6FF 100%)}

/* Appearance sun/moon polish (from the live sheet look; copied into the shim only, not from a protected-file edit). */
.wmtn-midnight{background-image:linear-gradient(100deg,#E6EEFF 0%,#E6EEFF 100%)}
.sheet.mp .sw[data-k=theme] button[data-v=day] .wmdn:not(#z){color:#F5A524!important;filter:drop-shadow(0 0 3px rgba(245,165,36,.45))!important}
.sheet.mp .sw[data-k=theme] button[data-v]:not(#z){display:flex!important;align-items:center!important;justify-content:center!important;line-height:0!important}
.sheet.mp .sw[data-k=theme] button[data-v] .wmdn:not(#z){flex:0 0 18px;width:18px!important;height:18px!important;margin:0!important;overflow:visible;transform:translateZ(0)!important;backface-visibility:hidden;transition:color .4s cubic-bezier(.22,.8,.2,1),filter .4s cubic-bezier(.22,.8,.2,1)!important}

/* Guest cannot open the theme sheet. Hidden, not shown disabled. */
html[data-guest-theme="1"] #tb-theme,
html[data-preview-view="guest"] #tb-theme,
html[data-guest-theme="1"] #ato-tb-refresh,
html[data-preview-view="guest"] #ato-tb-refresh { display: none !important; }
html[data-guest-theme="1"] .sheet { display: none !important; }
