/* Shared app chrome: theme tokens, sidebar nav, mobile drawer, scroll lock */

/*
 * Design tokens — single source for signed-in pages (page CSS may still
 * redefine :root; these are the fallbacks app-shell controls).
 */
body.app-shell{
  --bg:#151b23;
  --panel:#1f2937;
  --panel-2:#232f3e;
  --panel-edge:#2e3d4e;
  --well:#141b23;
  --ink:#e8eef4;
  --ink-dim:#93a5b8;
  --amber:#f0a844;
  --amber-2:#e8912d;
  --steel:#82abd1;
  --ok:#5fc48d;
  --danger:#e07070;
  --sans:'Sora',system-ui,sans-serif;
  --mono:'JetBrains Mono',ui-monospace,monospace;
}

/*
 * Lock the signed-in shell so the sidebar / mobile topbar stay put while the
 * page content scrolls. Single source of truth once body.app-shell is applied.
 */
html.app-shell-lock,
html:has(body.app-shell){
  height:100%;
  overflow:hidden;
}
body.app-shell{
  display:flex;
  height:100%;
  max-height:100%;
  min-height:0;
  overflow:hidden;
  margin:0;
  color:var(--ink);
  font:15px/1.55 var(--sans);
  background:var(--bg);
}

/* —— Unified sidebar chrome (overrides per-page copies) —— */
body.app-shell .sidebar{
  width:240px;
  background:#11161f;
  border-right:1px solid var(--panel-edge);
  padding:20px 16px;
  flex-shrink:0;
  display:flex;
  flex-direction:column;
  box-sizing:border-box;
}
body.app-shell .sidebar .brand{
  font:700 22px var(--sans);
  letter-spacing:-.02em;
  margin-bottom:12px;
}
body.app-shell .sidebar .brand a{text-decoration:none;color:inherit;display:inline-block}
body.app-shell .sidebar .brand img{
  height:28px;width:auto;display:block;
}
body.app-shell .sidebar nav[data-shell-nav]{
  display:flex;
  flex-direction:column;
  gap:2px;
}
body.app-shell .sidebar nav[data-shell-nav] a{
  display:flex;
  align-items:center;
  padding:10px 14px;
  margin:0;
  border-radius:8px;
  color:var(--ink-dim);
  text-decoration:none;
  font-size:14px;
  transition:background .1s ease,color .1s ease;
  border-left:3px solid transparent;
}
body.app-shell .sidebar nav[data-shell-nav] a:hover{
  background:#1a202c;
  color:var(--ink);
}
body.app-shell .sidebar nav[data-shell-nav] a.active{
  background:#2a3342;
  color:var(--amber);
  font-weight:600;
  border-left-color:var(--amber);
}
body.app-shell .sidebar .nav-section-label{
  margin:14px 0 4px;
  padding:0 14px;
  font-size:10px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#6b7d90;
  user-select:none;
}
/* Desktop: pin sidebar; only main column scrolls */
@media (min-width:901px){
  body.app-shell .sidebar{
    position:sticky !important;
    top:0 !important;
    align-self:flex-start;
    height:100vh !important;
    max-height:100vh !important;
    overflow-x:hidden;
    overflow-y:auto;
    flex-shrink:0;
    -webkit-overflow-scrolling:touch;
  }
  body.app-shell .main,
  body.app-shell .main-wrap{
    flex:1 1 auto;
    min-width:0;
    min-height:0;
    height:100%;
    max-height:100vh;
    overflow-x:hidden;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
  }
}

/* ── Site-wide themed thin scrollbars ───────────────────────────────────
 * Replaces thick OS defaults (and mismatched page rules) with a slim
 * steel thumb that warms to amber on hover. Applies to main panes, modals,
 * tables, and any overflow:auto region.
 */
html{
  scrollbar-width:thin;
  scrollbar-color:rgba(130,171,209,.45) transparent;
}
body.app-shell,
body.app-shell *{
  scrollbar-width:thin;
  scrollbar-color:rgba(130,171,209,.45) transparent;
}
html::-webkit-scrollbar,
body.app-shell::-webkit-scrollbar,
body.app-shell *::-webkit-scrollbar{
  width:8px;
  height:8px;
}
html::-webkit-scrollbar-track,
body.app-shell::-webkit-scrollbar-track,
body.app-shell *::-webkit-scrollbar-track{
  background:transparent;
}
html::-webkit-scrollbar-thumb,
body.app-shell::-webkit-scrollbar-thumb,
body.app-shell *::-webkit-scrollbar-thumb{
  background:rgba(130,171,209,.38);
  border-radius:999px;
  border:2px solid transparent;
  background-clip:padding-box;
}
html::-webkit-scrollbar-thumb:hover,
body.app-shell::-webkit-scrollbar-thumb:hover,
body.app-shell *::-webkit-scrollbar-thumb:hover{
  background:rgba(240,168,68,.55);
  border:2px solid transparent;
  background-clip:padding-box;
}
html::-webkit-scrollbar-corner,
body.app-shell::-webkit-scrollbar-corner,
body.app-shell *::-webkit-scrollbar-corner{
  background:transparent;
}
/* Profile / page modals — shell owns closed chrome; open sizing for no-needless-scroll */
body.app-shell .pmodal{
  width:100%;
  max-width:400px;
  max-height:min(94vh,920px);
  overflow-x:hidden;
  overflow-y:auto;
  box-sizing:border-box;
  padding:16px 18px 14px;
  border-radius:16px;
  background:linear-gradient(180deg,#232f3e,#1f2937);
  border:1px solid #2e3d4e;
  -webkit-overflow-scrolling:touch;
}

/*
 * Modal / overlay chrome must live in the shell — soft-SPA disables per-page
 * <style> tags, which would otherwise drop display:none and leave sheets
 * (e.g. Profile action menu) stuck visible as a side column.
 */
body.app-shell .pmodal-backdrop,
body.app-shell .modal-backdrop,
body.app-shell .confirm-backdrop,
body.app-shell .viewer-overlay,
body.app-shell .detail-backdrop,
body.app-shell .nuvio-modal-backdrop,
body.app-shell .ib-nuvio-backdrop,
body.app-shell .ib-dialog-overlay,
body.app-shell .notice-dialog-overlay{
  display:none;
  position:fixed;
  inset:0;
  z-index:400;
  background:rgba(0,0,0,.6);
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
  align-items:center;
  justify-content:center;
  padding:20px;
}
/* Preview title drawer: dim only — no full-page blur (reads as broken UI) */
body.app-shell .detail-backdrop{
  z-index:350;
  background:rgba(8,12,18,.45);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  padding:0;
  align-items:stretch;
  justify-content:stretch;
}
body.app-shell .pmodal-backdrop.show,
body.app-shell .modal-backdrop.show,
body.app-shell .confirm-backdrop.show,
body.app-shell .viewer-overlay:not([hidden]),
body.app-shell .detail-backdrop.show,
body.app-shell .nuvio-modal-backdrop:not([hidden]),
body.app-shell .ib-nuvio-backdrop:not([hidden]),
body.app-shell .ib-dialog-overlay:not([hidden]),
body.app-shell .notice-dialog-overlay:not([hidden]){
  display:flex;
}
body.app-shell .detail-backdrop.show{
  display:block; /* full-bleed click catcher, not a flex centering box */
}
body.app-shell .pmodal-backdrop[hidden],
body.app-shell .modal-backdrop[hidden],
body.app-shell .confirm-backdrop[hidden]{
  display:none !important;
}
/* Keep drawer chrome in the shell so soft-SPA (page <style> off) still works */
body.app-shell .detail-panel{
  display:block;
  position:fixed;
  top:0;right:0;bottom:0;
  z-index:360;
  width:min(440px,100vw);
  background:linear-gradient(180deg,#1e2836,#141b25);
  border-left:1px solid #2e3d4e;
  transform:translateX(105%);
  transition:transform .22s cubic-bezier(.2,.9,.3,1);
  overflow-y:auto;
  padding:22px 20px 48px;
  box-shadow:-16px 0 48px rgba(0,0,0,.5);
  pointer-events:none;
}
body.app-shell .detail-panel.open{
  transform:translateX(0);
  pointer-events:auto;
}
body.app-shell .detail-panel:not(.open){
  pointer-events:none;
}

/* Soft SPA content transitions (static sidebar) */
body.app-shell .main-wrap,
body.app-shell .main{
  transition: opacity .18s ease, transform .18s ease;
  will-change: opacity, transform;
}
body.app-shell .main-wrap.spa-leaving,
body.app-shell .main.spa-leaving{
  opacity:0;
  transform:translateY(6px);
  pointer-events:none;
}
body.app-shell .main-wrap.spa-entering,
body.app-shell .main.spa-entering{
  animation: app-spa-in .22s ease both;
}
@keyframes app-spa-in{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:none}
}
@media (prefers-reduced-motion:reduce){
  body.app-shell .main-wrap,
  body.app-shell .main{transition:none}
  body.app-shell .main-wrap.spa-entering,
  body.app-shell .main.spa-entering{animation:none}
}

.nav-topbar{
  display:none;align-items:center;gap:12px;
  position:sticky;top:0;z-index:200;
  padding:10px 14px;background:#11161f;
  border-bottom:1px solid #2e3d4e;
  flex-shrink:0;
}
.nav-topbar .brand-mini img{
  height:26px;width:auto;max-height:26px;display:block;object-fit:contain;
}
.nav-toggle{
  display:inline-flex;align-items:center;justify-content:center;
  width:42px;height:42px;padding:0;border-radius:10px;cursor:pointer;
  background:#1a202c;border:1px solid #2e3d4e;color:#e8eef4;font-size:20px;line-height:1;
}
.nav-toggle:hover{border-color:#f0a844;color:#f0a844}
.sidebar-backdrop{
  display:none;position:fixed;inset:0;z-index:250;
  background:rgba(0,0,0,.55);backdrop-filter:blur(2px);
}
.sidebar-backdrop.show{display:block}

@media (max-width:900px){
  body.app-shell{
    flex-direction:column;
    height:100%;
    max-height:100%;
    overflow:hidden;
  }
  .nav-topbar{
    display:flex;
    position:sticky;
    top:0;
    z-index:200;
    flex-shrink:0;
  }
  .sidebar{
    position:fixed !important;top:0;left:0;bottom:0;
    width:min(280px,86vw) !important;height:100vh !important;max-height:100vh !important;
    z-index:300;transform:translateX(-105%);
    transition:transform .22s ease;
    border-right:1px solid #2e3d4e !important;
    border-bottom:0 !important;
    overflow-y:auto !important;
    box-shadow:8px 0 32px rgba(0,0,0,.45);
  }
  .sidebar.open{transform:translateX(0)}
  .sidebar nav{
    display:flex !important;flex-direction:column !important;flex-wrap:nowrap !important;gap:2px !important;
  }
  .sidebar nav a{
    padding:12px 14px !important;font-size:15px !important;min-height:44px;
    display:flex !important;align-items:center;
  }
  body.app-shell .main,
  body.app-shell .main-wrap{
    width:100%;
    max-width:100%;
    flex:1 1 auto;
    min-height:0;
    height:auto;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
    padding-left:16px;
    padding-right:16px;
  }
  body.app-shell.nav-open{overflow:hidden}
  /* Dashboard / grids that use 12-col spans */
  .grid .span-7,.grid .span-5,.grid .span-4,.grid .span-8,.grid .span-12,
  .span-7,.span-5,.span-4,.span-8,.span-12{grid-column:1 / -1 !important}
  .field-row{grid-template-columns:1fr !important}
  button,.btn,select,input:not([type=checkbox]):not([type=radio]),textarea{min-height:42px}
}

/* ── Shared switch — clean pill (desktop + mobile identical) ──────────────
 * Classic oval track + round white knob. No ON/OFF text, no square knob.
 * Track 44×26, knob 20×20, 3px inset → always balanced.
 */
input[type=checkbox].sw,
.toggle input[type=checkbox],
.check input[type=checkbox],
.svc-chip input[type=checkbox]{
  -webkit-appearance:none !important;
  appearance:none !important;
  box-sizing:border-box;
  width:44px !important;
  height:26px !important;
  min-width:44px !important;
  min-height:26px !important;
  max-width:44px !important;
  max-height:26px !important;
  margin:0 !important;
  padding:0 !important;
  border:none !important;
  border-radius:999px !important;
  background:#3a4554 !important;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.35) !important;
  position:relative !important;
  cursor:pointer;
  flex-shrink:0;
  vertical-align:middle;
  color:transparent !important;
  font-size:0 !important;
  transition:background .2s ease,box-shadow .2s ease;
}
/* Kill any leftover text pseudo from older switch designs */
input[type=checkbox].sw::before,
.toggle input[type=checkbox]::before,
.check input[type=checkbox]::before,
.svc-chip input[type=checkbox]::before{
  content:none !important;
  display:none !important;
}
/* Round knob */
input[type=checkbox].sw::after,
.toggle input[type=checkbox]::after,
.check input[type=checkbox]::after,
.svc-chip input[type=checkbox]::after{
  content:"" !important;
  position:absolute !important;
  top:3px !important;
  left:3px !important;
  width:20px !important;
  height:20px !important;
  margin:0 !important;
  border-radius:50% !important;
  background:#fff !important;
  border:none !important;
  box-shadow:0 1px 3px rgba(0,0,0,.35),0 0 0 1px rgba(0,0,0,.04) !important;
  transition:left .2s cubic-bezier(.4,0,.2,1),box-shadow .2s ease !important;
  display:block !important;
}
/* ON */
input[type=checkbox].sw:checked,
.toggle input[type=checkbox]:checked,
.check input[type=checkbox]:checked,
.svc-chip input[type=checkbox]:checked,
.svc-chip.on input[type=checkbox]{
  background:#f0a844 !important;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.12) !important;
}
input[type=checkbox].sw:checked::after,
.toggle input[type=checkbox]:checked::after,
.check input[type=checkbox]:checked::after,
.svc-chip input[type=checkbox]:checked::after,
.svc-chip.on input[type=checkbox]::after{
  left:21px !important; /* 44 - 20 - 3 */
  background:#fff !important;
}
input[type=checkbox].sw:hover:not(:disabled),
.toggle input[type=checkbox]:hover:not(:disabled),
.check input[type=checkbox]:hover:not(:disabled),
.svc-chip input[type=checkbox]:hover:not(:disabled){
  background:#465466 !important;
}
input[type=checkbox].sw:checked:hover:not(:disabled),
.toggle input[type=checkbox]:checked:hover:not(:disabled),
.check input[type=checkbox]:checked:hover:not(:disabled),
.svc-chip input[type=checkbox]:checked:hover:not(:disabled){
  background:#f5b55a !important;
}
input[type=checkbox].sw:focus-visible,
.toggle input[type=checkbox]:focus-visible,
.check input[type=checkbox]:focus-visible,
.svc-chip input[type=checkbox]:focus-visible{
  outline:none !important;
  box-shadow:0 0 0 3px rgba(240,168,68,.35) !important;
}
input[type=checkbox].sw:disabled,
.toggle input[type=checkbox]:disabled,
.check input[type=checkbox]:disabled{
  opacity:.4;
  cursor:default;
}

/* Tablet: denser chrome, still room for sidebar */
@media (min-width:901px) and (max-width:1100px){
  .sidebar{width:200px !important;padding:16px 12px !important}
  .sidebar nav a{padding:9px 10px !important;font-size:13px !important}
  .main,.main-wrap{padding-left:20px;padding-right:18px}
}

@media (min-width:901px){
  .nav-topbar{display:none !important}
  .sidebar-backdrop{display:none !important}
}

/* Safe area for notched phones */
@supports (padding: env(safe-area-inset-bottom)){
  .nav-topbar{padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}
  body.app-shell .sidebar{padding-bottom:max(16px,env(safe-area-inset-bottom))}
}

/* —— Profile switcher (all pages) —— */
.nav-profile-slot{margin:10px 0 14px;position:relative;z-index:50;overflow:visible}
.nav-profile-slot.sidebar-slot{display:block}
.nav-topbar .nav-profile-slot{margin:0 0 0 auto;flex-shrink:0}
.profile-switch{position:relative;width:100%;overflow:visible}
.profile-chip{
  display:flex;align-items:center;gap:10px;width:100%;
  padding:10px 12px;border-radius:12px;cursor:pointer;
  background:linear-gradient(180deg,#1e2633,#171d28);
  border:1px solid #3d4d62;color:#e8eef4;
  font:600 13px 'Sora',system-ui,sans-serif;text-align:left;
  transition:border-color .12s,box-shadow .12s;
  box-shadow:0 2px 8px rgba(0,0,0,.25);
  text-decoration:none;
}
.profile-chip:hover{border-color:#f0a844;box-shadow:0 0 0 1px rgba(240,168,68,.25)}
.profile-chip:disabled{opacity:.7;cursor:wait}
.profile-chip .p-av{
  width:34px;height:34px;border-radius:50%;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;font-size:16px;
  border:2px solid rgba(255,255,255,.12);
}
.profile-chip .p-av.sm,.profile-opt .p-av.sm{width:28px;height:28px;font-size:13px;border-width:0}
.profile-chip .p-meta{display:flex;flex-direction:column;min-width:0;flex:1}
.profile-chip .p-label{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:#93a5b8;font-weight:600}
.profile-chip .p-name{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#e8eef4}
.profile-chip .p-caret{color:#f0a844;font-size:12px;flex-shrink:0}
/* Mobile top bar: compact chip with icon + caret */
.nav-topbar .profile-chip{width:auto;max-width:none;padding:6px 10px 6px 6px;gap:6px}
.nav-topbar .profile-chip .p-meta{display:none}
.nav-topbar .profile-chip .p-av{width:30px;height:30px}

.profile-menu{
  position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:500;
  background:#1f2937;border:1px solid #3d4d62;border-radius:12px;
  /* Grow with content (≤4 profiles + main) — no inner scrollbar */
  box-shadow:0 16px 48px rgba(0,0,0,.55);padding:6px;max-height:none;overflow:visible;
}
.profile-menu[hidden]{display:none !important}
.profile-menu-title{
  font:600 10px 'Sora',system-ui,sans-serif;text-transform:uppercase;letter-spacing:.08em;
  color:#93a5b8;padding:8px 10px 6px;
}
.nav-topbar .profile-menu{left:auto;right:0;min-width:240px}
.profile-opt{
  display:flex;align-items:center;gap:10px;width:100%;
  padding:10px 10px;border-radius:9px;border:none;background:transparent;
  color:#e8eef4;font:600 13px 'Sora',system-ui,sans-serif;cursor:pointer;text-align:left;
  text-decoration:none;
}
.profile-opt:hover{background:#2a3342}
.profile-opt.active{background:rgba(240,168,68,.14)}
.profile-opt .p-opt-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-opt .p-check{color:#f0a844;font-size:14px}
.profile-opt.manage{
  margin-top:4px;border-top:1px solid #2e3d4e;border-radius:0 0 8px 8px;
  color:#f0a844;justify-content:center;font-size:12.5px;padding-top:12px;
}

/* Ensure page-level mobile sidebar CSS doesn't hide the slot */
@media (max-width:900px){
  .nav-profile-slot.sidebar-slot{display:block;margin:8px 0 12px}
}

/* —— Sidebar foot (signed-in + sign out) + Discord on every page —— */
.sidebar.shell-sidebar{
  display:flex !important;
  flex-direction:column !important;
}
.sidebar.shell-sidebar > div:first-child{
  flex:1 1 auto;
  min-height:0;
}
.shell-foot,
.sidebar .foot[data-shell-foot]{
  margin-top:auto !important;
  padding-top:16px !important;
  border-top:1px solid #2e3d4e;
  display:flex !important;
  flex-direction:column;
  gap:10px;
  flex-shrink:0;
}
.shell-who,
.sidebar .foot .who{
  font-size:13px;
  color:#93a5b8;
  margin:0;
}
.shell-who b,
.sidebar .foot .who b{
  color:#f0a844;
  font-weight:600;
}
.shell-logout,
.sidebar .foot button,
.sidebar .foot [data-shell-logout]{
  font:600 13px 'Sora',system-ui,sans-serif;
  padding:9px 12px;
  border-radius:8px;
  cursor:pointer;
  background:#1a202c;
  border:1px solid #2e3d4e;
  color:#e8eef4;
  width:100%;
  text-align:center;
}
.shell-logout:hover,
.sidebar .foot button:hover{
  border-color:#f0a844;
  color:#f0a844;
}
.shell-discord{
  display:flex !important;
  align-items:center;
  gap:8px;
  margin-top:8px !important;
  padding:10px 12px !important;
  border-radius:10px;
  background:#5865F2;
  color:#fff !important;
  font:600 13.5px 'Sora',system-ui,sans-serif !important;
}
.shell-discord:hover{
  background:#4752c4;
  color:#fff !important;
}
.shell-discord svg{
  width:16px;
  height:16px;
  flex-shrink:0;
}

@media (max-width:900px){
  .sidebar.shell-sidebar{
    /* drawer already flexes; keep foot visible at bottom of drawer */
  }
  .shell-foot,
  .sidebar .foot[data-shell-foot]{
    margin-top:20px !important;
  }
}

/* —— What's New: nav entry + popup —— */
.shell-whatsnew{
  position:relative;
  display:flex !important;
  align-items:center;
  gap:9px;
}
.wn-nav-ico{font-size:14px;line-height:1;flex-shrink:0}
.wn-nav-dot{
  width:7px;height:7px;border-radius:50%;
  background:#f0a844;flex-shrink:0;margin-left:2px;
  box-shadow:0 0 0 3px rgba(240,168,68,.18);
}

.wn-overlay{
  position:fixed;inset:0;z-index:900;
  display:flex;align-items:center;justify-content:center;
  padding:20px;
  background:rgba(10,13,18,.62);
  backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
  animation:wn-fade .16s ease;
}
.wn-overlay[hidden]{display:none}
@keyframes wn-fade{from{opacity:0}to{opacity:1}}
@keyframes wn-pop{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}

.wn-modal{
  width:100%;max-width:440px;max-height:min(84vh,640px);
  display:flex;flex-direction:column;
  background:linear-gradient(180deg,#232f3e,#1a2330);
  border:1px solid #34455a;border-radius:18px;
  box-shadow:0 24px 64px -20px rgba(0,0,0,.65);
  padding:22px 22px 18px;
  position:relative;
  animation:wn-pop .18s cubic-bezier(.2,.9,.3,1.2);
}
.wn-close{
  position:absolute;top:14px;right:14px;
  width:30px;height:30px;border-radius:9px;
  display:flex;align-items:center;justify-content:center;
  background:#1a202c;border:1px solid #2e3d4e;color:#93a5b8;
  cursor:pointer;font-size:13px;line-height:1;
}
.wn-close:hover{border-color:#f0a844;color:#f0a844}
.wn-head{display:flex;align-items:center;gap:13px;margin:0 26px 14px 0}
.wn-badge{
  width:42px;height:42px;border-radius:12px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;font-size:19px;
  background:radial-gradient(circle at 30% 30%,rgba(240,168,68,.35),rgba(240,168,68,.08));
  border:1px solid rgba(240,168,68,.4);
}
.wn-head h2{margin:0;font:700 17px 'Sora',system-ui,sans-serif;color:#e8eef4;letter-spacing:-.01em}
.wn-sub{margin:2px 0 0;font-size:12.5px;color:#93a5b8}
.wn-body{overflow-y:auto;margin:0 -4px;padding:0 4px;flex:1 1 auto;min-height:40px}
.wn-loading{color:#93a5b8;font-size:13.5px;margin:8px 0}
.wn-entry{
  padding:14px 0;
  border-top:1px solid #2e3d4e;
}
.wn-entry:first-child{border-top:0;padding-top:0}
.wn-entry-top{display:flex;align-items:center;gap:9px;margin-bottom:5px}
.wn-ver{font:700 11px 'JetBrains Mono',ui-monospace,monospace;color:#f0a844;letter-spacing:.03em}
.wn-date{font-size:11.5px;color:#6b7d90}
.wn-entry h3{margin:0 0 6px;font:600 14.5px 'Sora',system-ui,sans-serif;color:#e8eef4}
.wn-entry ul{margin:0;padding-left:18px;color:#93a5b8;font-size:13px;line-height:1.65}
.wn-entry li{margin-bottom:2px}
.wn-footer-link{
  display:block;text-align:center;margin-top:14px;padding-top:14px;
  border-top:1px solid #2e3d4e;
  color:#f0a844;text-decoration:none;font:600 12.5px 'Sora',system-ui,sans-serif;
}
.wn-footer-link:hover{text-decoration:underline}
body.wn-open{overflow:hidden}

/* Email policy notice — sits on What's New chrome; only extras differ */
.em-notice-overlay{z-index:950}
.em-notice-check{
  display:flex;align-items:flex-start;gap:10px;
  margin:10px 0 0;padding:10px 12px;border-radius:10px;
  background:#141b23;border:1px solid #2e3d4e;
  cursor:pointer;font-size:13.5px;color:#e8eef4;user-select:none;
}
/* Global page `input{padding:10px}` makes native checkboxes huge — reset hard. */
.em-notice-check input[type="checkbox"]{
  -webkit-appearance:checkbox;appearance:auto;
  width:14px !important;height:14px !important;
  min-width:14px;max-width:14px;min-height:14px;max-height:14px;
  margin:3px 0 0 !important;padding:0 !important;
  border:none !important;border-radius:0 !important;
  background:transparent !important;box-shadow:none !important;
  flex:0 0 14px;align-self:flex-start;
  accent-color:#f0a844;cursor:pointer;
  transform:none !important;scale:1 !important;
}
.em-notice-check strong{display:block;font-size:13.5px;color:#e8eef4;font-weight:600}
.em-notice-check-sub{display:block;font-size:12px;color:#6b7d90;margin-top:2px;font-weight:400}
.em-notice-cta{
  display:block;width:100%;margin-top:14px;
  font:600 13.5px 'Sora',system-ui,sans-serif;
  border:none;border-radius:10px;padding:12px 16px;cursor:pointer;
  background:linear-gradient(180deg,#f0a844,#e8912d);color:#241a08;
}
.em-notice-cta:hover{filter:brightness(1.05)}
.em-notice-cta:disabled{opacity:.55;cursor:default}
.em-notice-err{margin:10px 0 0;font-size:13px;color:#e07070}

@media (max-width:480px){
  .wn-modal{padding:18px 16px 14px;border-radius:14px}
}
