/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root{
  --mint:#c4f7d7;
  --sky:#b8e8ef;
  --peri:#91b8ff;
  --brand-grad:linear-gradient(110deg,#c4f7d7 0%,#b8e8ef 48%,#91b8ff 100%);
  --brand-grad-2:linear-gradient(135deg,#c4f7d7 0%,#91b8ff 100%);
  --brand-ink:#0b1524;

  --bg:#fbfcfe;
  --bg-2:#f3f6fa;
  --surface:#ffffff;
  --surface-2:#f6f8fb;
  --text:#0d1a2b;
  --text-2:#4c5f74;
  --text-3:#596b80;
  --border:#e3e9f0;
  --border-2:#ccd7e3;
  --rule:#0d1a2b;
  --focus:#3a7bd5;

  --shadow-sm:0 1px 2px rgba(13,26,43,.05);
  --shadow-md:0 10px 30px -22px rgba(13,26,43,.4);
  --shadow-lg:0 30px 80px -40px rgba(13,26,43,.35);

  --sidebar-bg:#f1f7fb;
  --sidebar-active:linear-gradient(90deg, rgba(196,247,215,.55), rgba(145,184,255,.22) 90%);
  --thread:#cfdae6;

  --pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48' viewBox='0 0 56 48'%3E%3Cg fill='none' stroke='%230b1524' stroke-opacity='0.032' stroke-width='1'%3E%3Cpath d='M28 0 L56 12 L56 36 L28 48 L0 36 L0 12 Z'/%3E%3Cpath d='M0 12 L28 24 L56 12'/%3E%3Cpath d='M28 24 L28 48'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-size: 160px 138px;
  --pattern-strong:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48' viewBox='0 0 56 48'%3E%3Cg fill='none' stroke='%230b1524' stroke-opacity='0.075' stroke-width='1'%3E%3Cpath d='M28 0 L56 12 L56 36 L28 48 L0 36 L0 12 Z'/%3E%3Cpath d='M0 12 L28 24 L56 12'/%3E%3Cpath d='M28 24 L28 48'/%3E%3C/g%3E%3C/svg%3E");

  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:'Newsreader',ui-serif,Georgia,'Times New Roman',serif;
  --font-mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;

  --maxw:1280px;
  --readw:720px;
  --gutter:clamp(20px,4vw,48px);

  --r-xs:2px;
  --r-sm:3px;
  --r-md:4px;
  --r-lg:6px;
  --r-xl:8px;

  --ease:cubic-bezier(.22,.61,.36,1);
  --ease-out:cubic-bezier(.16,1,.3,1);

  --sidebar-w:240px;
  --mobile-bar-h:56px;
}

[data-theme="dark"]{
  --bg:#070d16;
  --bg-2:#0a1220;
  --surface:#0d1624;
  --surface-2:#111c2d;
  --text:#e9eff7;
  --text-2:#9fb1c6;
  --text-3:#8fa3bb;
  --border:#1b2739;
  --border-2:#26374d;
  --rule:#e9eff7;
  --focus:#8ab6ff;
  --shadow-sm:0 1px 2px rgba(0,0,0,.4);
  --shadow-md:0 12px 34px -22px rgba(0,0,0,.9);
  --shadow-lg:0 40px 100px -50px rgba(0,0,0,.9);
  --sidebar-bg:#0a1420;
  --sidebar-active:linear-gradient(90deg, rgba(196,247,215,.14), rgba(145,184,255,.10) 90%);
  --thread:#1e2c42;
  --pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48' viewBox='0 0 56 48'%3E%3Cg fill='none' stroke='%23a8c8f0' stroke-opacity='0.03' stroke-width='1'%3E%3Cpath d='M28 0 L56 12 L56 36 L28 48 L0 36 L0 12 Z'/%3E%3Cpath d='M0 12 L28 24 L56 12'/%3E%3Cpath d='M28 24 L28 48'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-strong:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48' viewBox='0 0 56 48'%3E%3Cg fill='none' stroke='%23a8c8f0' stroke-opacity='0.06' stroke-width='1'%3E%3Cpath d='M28 0 L56 12 L56 36 L28 48 L0 36 L0 12 Z'/%3E%3Cpath d='M0 12 L28 24 L56 12'/%3E%3Cpath d='M28 24 L28 48'/%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================================
   2. RESET + BASE
   ============================================================ */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font-sans);
  font-size:15.5px;
  line-height:1.65;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  transition:background .3s var(--ease);
}
body::before{
  content:"";
  position:fixed;inset:0;
  background-image:var(--pattern);
  background-size:var(--pattern-size);
  pointer-events:none;
  z-index:0;
}
img{max-width:100%;display:block}
button,input,select,textarea{font:inherit;color:inherit}
button{background:none;border:0;cursor:pointer}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{margin:0;line-height:1.15;letter-spacing:-.018em;font-weight:600}
p{margin:0}
ul,ol{margin:0;padding:0}
::selection{background:var(--mint);color:var(--brand-ink)}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:var(--r-xs)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip-link{
  position:absolute;left:12px;top:-70px;z-index:400;
  background:var(--text);color:var(--bg);
  padding:10px 16px;border-radius:var(--r-sm);
  font-size:13px;font-weight:600;transition:top .2s var(--ease);
}
.skip-link:focus{top:12px}

/* ============================================================
   3. APP SHELL
   ============================================================ */
.app-shell{
  padding-left:var(--sidebar-w);
  min-height:100vh;
  display:flex;
  flex-direction:column;
  position:relative;
  z-index:1;
}
.app-content{flex:1;display:flex;flex-direction:column}
main{flex:1;outline:none}

/* ============================================================
   4. SIDEBAR — Trace Thread + Notched Module
   ============================================================ */
.sidebar{
  position:fixed;
  top:0;left:0;bottom:0;
  width:var(--sidebar-w);
  background:var(--sidebar-bg);
  z-index:90;
  display:flex;
  flex-direction:column;
  border-right:1px solid var(--border);
}

.sidebar-brand{
  display:flex;
  align-items:center;
  gap:11px;
  padding:22px 20px 18px;
  border-bottom:1px solid var(--border);
  color:var(--text);
}
.sidebar-brand img{width:26px;height:26px;flex-shrink:0}
.sidebar-brand .name{
  font-family:var(--font-serif);
  font-size:20px;font-weight:500;
  letter-spacing:-.02em;
  line-height:1;
}
.sidebar-brand .tag{
  margin-left:auto;
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.14em;
  color:var(--text-3);
  text-transform:uppercase;
  border:1px solid var(--border);
  padding:2px 5px;
  border-radius:var(--r-xs);
}

.sidebar-search{
  margin:14px 14px 8px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:8px 11px;
  border:1px solid var(--border);
  background:var(--surface);
  border-radius:var(--r-sm);
  font-size:12.5px;
  color:var(--text-3);
  transition:border-color .15s var(--ease);
  text-align:left;
  width:calc(100% - 28px);
}
.sidebar-search:hover{border-color:var(--border-2)}
.sidebar-search svg{width:14px;height:14px;flex-shrink:0}
.sidebar-search .label{flex:1;text-align:left}
.sidebar-search kbd{
  font-family:var(--font-mono);
  font-size: 11px;
  padding:1px 5px;
  border:1px solid var(--border);
  border-radius:var(--r-xs);
  color:var(--text-3);
  background:var(--surface-2);
}

.sidebar-scroll{
  flex:1;
  overflow-y:auto;
  overflow-x:hidden;
  padding:10px 0 12px;
  scrollbar-width:thin;
  scrollbar-color:var(--border) transparent;
}
.sidebar-scroll::-webkit-scrollbar{width:6px}
.sidebar-scroll::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}

.sidebar-group + .sidebar-group{margin-top:10px}

.sidebar-group-label{
  display:block;
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--text-3);
  padding:14px 20px 7px;
}

.sidebar-nav{
  position:relative;
  padding:2px 8px;
}
.sidebar-nav::before{
  content:"";
  position:absolute;
  left:19px;
  top:16px;
  bottom:16px;
  width:1px;
  background:var(--thread);
  z-index:0;
}

.sidebar-item{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:11px;
  padding:7px 12px 7px 34px;
  font-size:13px;
  font-weight:500;
  color:var(--text-2);
  border-radius:var(--r-sm);
  transition:color .15s var(--ease),background .15s var(--ease);
  min-height:34px;
}
.sidebar-item svg{
  width:15px;height:15px;
  flex-shrink:0;
  stroke:currentColor;
  fill:none;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  color:var(--text-3);
  transition:color .15s var(--ease);
}

.sidebar-item::before{
  content:"";
  position:absolute;
  left:15.5px;
  top:50%;
  transform:translateY(-50%);
  width:8px;height:8px;
  border-radius:50%;
  background:var(--sidebar-bg);
  border:1.5px solid var(--border-2);
  z-index:2;
  transition:all .18s var(--ease);
}

.sidebar-item:hover{color:var(--text);background:rgba(11,21,36,.045)}
.sidebar-item:hover svg{color:var(--text-2)}
.sidebar-item:hover::before{border-color:var(--text-3)}

.sidebar-item[aria-current="page"]{
  color:var(--text);
  font-weight:600;
  background:var(--sidebar-active);
  padding-right:24px;
  clip-path:polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
}
.sidebar-item[aria-current="page"] svg{color:var(--text)}
.sidebar-item[aria-current="page"]::before{
  background:var(--peri);
  border-color:var(--peri);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--peri) 22%, transparent);
}

.sidebar-footer{
  border-top:1px solid var(--border);
  padding:10px 12px 14px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.sidebar-account{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border:1px solid var(--border);
  background:var(--surface);
  border-radius:var(--r-sm);
  font-size:12.5px;
  color:var(--text-2);
  transition:border-color .15s var(--ease);
}
.sidebar-account:hover{border-color:var(--border-2);color:var(--text)}
.sidebar-account .avatar{width:22px;height:22px;font-size: 11px}
.sidebar-account .who{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}

.sidebar-controls{
  display:flex;
  gap:6px;
}
.sidebar-control{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:7px 8px;
  border:1px solid var(--border);
  background:var(--surface);
  border-radius:var(--r-sm);
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  color:var(--text-2);
  letter-spacing:.04em;
  transition:all .15s var(--ease);
}
.sidebar-control:hover{border-color:var(--border-2);color:var(--text)}
.sidebar-control svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.sidebar-backdrop{
  position:fixed;inset:0;
  background:rgba(11,21,36,.5);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  z-index:85;
  opacity:0;visibility:hidden;
  transition:opacity .3s var(--ease),visibility .3s;
}
.sidebar-backdrop[data-open="true"]{opacity:1;visibility:visible}

/* ============================================================
   5. MOBILE TOP BAR + BOTTOM NAV
   ============================================================ */
.mobile-topbar{
  display:none;
  position:fixed;top:0;left:0;right:0;
  height:var(--mobile-bar-h);
  z-index:80;
  background:color-mix(in srgb,var(--bg) 92%,transparent);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--border);
  align-items:center;padding:0 8px;gap:4px;
}
.mobile-icon-btn{
  width:40px;height:40px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:var(--r-sm);
  color:var(--text-2);
  transition:background .16s var(--ease),color .16s var(--ease);
  flex-shrink:0;
}
.mobile-icon-btn:hover{background:var(--surface-2);color:var(--text)}
.mobile-icon-btn svg{width:19px;height:19px}
.mobile-brand{
  display:flex;align-items:center;gap:8px;
  margin-right:auto;padding:4px 6px;
}
.mobile-brand img{width:22px;height:22px}
.mobile-brand span{
  font-family:var(--font-serif);
  font-size:16px;font-weight:500;
  letter-spacing:-.015em;
}

.bottom-nav{
  display:none;
  position:fixed;bottom:0;left:0;right:0;
  height:60px;z-index:80;
  background:color-mix(in srgb,var(--bg) 95%,transparent);
  backdrop-filter:saturate(180%) blur(16px);
  -webkit-backdrop-filter:saturate(180%) blur(16px);
  border-top:1px solid var(--border);
  padding-bottom:env(safe-area-inset-bottom);
}
.bottom-nav-inner{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  height:60px;
}
.bottom-nav a{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:2px;
  color:var(--text-3);
  font-size: 11px;font-weight:600;
  letter-spacing:.02em;
  transition:color .16s var(--ease);
  position:relative;
}
.bottom-nav a:hover{color:var(--text-2)}
.bottom-nav a[aria-current="page"]{color:var(--text)}
.bottom-nav a[aria-current="page"]::after{
  content:"";
  position:absolute;top:0;left:50%;
  transform:translateX(-50%);
  width:22px;height:2px;
  background:var(--peri);
  border-radius:0 0 2px 2px;
}
.bottom-nav svg{
  width:19px;height:19px;
  stroke:currentColor;fill:none;
  stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;
}

.account-banner{
  display:none;
  align-items:center;gap:12px;
  padding:9px var(--gutter);
  background:var(--surface-2);
  border-bottom:1px solid var(--border);
  font-size:13.5px;color:var(--text-2);
  position:relative;z-index:5;
}
.account-banner[data-open="true"]{display:flex}
.account-banner .ab-text{flex:1;min-width:0}
.account-banner button.ab-action{
  font-size:13px;font-weight:600;color:var(--text);
  padding:5px 11px;border-radius:var(--r-sm);
  border:1px solid var(--border-2);background:var(--surface);
  transition:border-color .16s var(--ease);
  flex-shrink:0;
}
.account-banner button.ab-action:hover{border-color:var(--text-3)}
.account-banner button.ab-close{
  width:28px;height:28px;border-radius:var(--r-sm);
  color:var(--text-3);display:grid;place-items:center;flex-shrink:0;
}
.account-banner button.ab-close:hover{background:var(--surface);color:var(--text)}
.account-banner svg{width:14px;height:14px}

/* ============================================================
   6. LAYOUT PRIMITIVES + MODULE SYSTEM
   ============================================================ */
.wrap{
  max-width:var(--maxw);
  margin:0 auto;
  padding-left:var(--gutter);
  padding-right:var(--gutter);
  width:100%;
}
main > .wrap{padding-top:clamp(28px,4vw,52px);padding-bottom:clamp(40px,6vw,80px)}

.module{
  padding:clamp(36px,5vw,68px) 0;
  border-top:1px solid var(--border-2);
  position:relative;
}
.module:first-of-type{border-top:0;padding-top:0}

.module-head{
  display:flex;
  align-items:center;
  gap:18px;
  margin-bottom:clamp(22px,3vw,36px);
}
.module-label{
  display:inline-flex;
  align-items:baseline;
  gap:8px;
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--text-3);
  white-space:nowrap;
}
.module-label .num{
  color:var(--text);
  font-weight:600;
  letter-spacing:.06em;
}
.module-rule{
  flex:1;
  height:1px;
  background:var(--border-2);
  min-width:16px;
}
.module-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--text-2);
  white-space:nowrap;
  transition:color .15s var(--ease),gap .15s var(--ease);
}
.module-link:hover{color:var(--text);gap:9px}
.module-link svg{width:12px;height:12px}

.module-title-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:24px;
  margin-bottom:clamp(20px,2.6vw,32px);
}
.module-title{
  font-family:var(--font-serif);
  font-size:clamp(26px,3.4vw,40px);
  font-weight:500;
  line-height:1.1;
  letter-spacing:-.026em;
  max-width:22ch;
  color:var(--text);
}
.module-sub{
  color:var(--text-2);
  font-size:14.5px;
  line-height:1.6;
  max-width:44ch;
  text-align:right;
}

/* ============================================================
   7. BUTTONS / TAGS / META
   ============================================================ */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  height:44px;padding:0 20px;
  border-radius:var(--r-sm);
  font-size:13.5px;font-weight:600;letter-spacing:-.002em;
  transition:transform .16s var(--ease),background .18s var(--ease),
             border-color .18s var(--ease),color .18s var(--ease),box-shadow .18s var(--ease);
  white-space:nowrap;cursor:pointer;
}
.btn:active{transform:translateY(1px)}
.btn:disabled{opacity:.55;cursor:not-allowed}
.btn svg{width:15px;height:15px;flex-shrink:0}
.btn--loading{pointer-events:none}
.btn--loading::after{
  content:"";width:12px;height:12px;border-radius:50%;
  border:1.6px solid currentColor;border-right-color:transparent;
  animation:spin .7s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}

.btn--primary{
  background:var(--text);
  color:var(--bg);
  border:1px solid var(--text);
}
.btn--primary:hover:not(:disabled){background:#1a2c44;border-color:#1a2c44}
[data-theme="dark"] .btn--primary{background:var(--brand-grad);color:var(--brand-ink);border-color:transparent}
[data-theme="dark"] .btn--primary:hover:not(:disabled){box-shadow:0 10px 26px -16px rgba(145,184,255,.7)}

.btn--ghost{border:1px solid var(--border-2);color:var(--text);background:var(--surface)}
.btn--ghost:hover:not(:disabled){border-color:var(--text-3);background:var(--surface-2)}
.btn--quiet{color:var(--text-2);padding:0 12px}
.btn--quiet:hover{color:var(--text);background:var(--surface-2)}
.btn--sm{height:34px;padding:0 13px;font-size:12.5px}
.btn--xs{height:28px;padding:0 9px;font-size:11.5px}
.btn--block{width:100%}
.btn--danger{color:#c0392b}
.btn--danger:hover{background:rgba(192,57,43,.08)}
.btn--ink{background:var(--brand-ink);color:#fff}
.btn--ink:hover{background:#16273d}
.btn--outline-ink{border:1px solid rgba(11,21,36,.32);color:var(--brand-ink)}
.btn--outline-ink:hover{background:rgba(11,21,36,.07)}

.btn--google{background:var(--surface);border:1px solid var(--border-2);color:var(--text);font-weight:500;font-size:14px}
.btn--google:hover:not(:disabled){border-color:var(--text-3);background:var(--surface-2)}
.btn--google svg{width:18px;height:18px;flex-shrink:0}

.link-arrow{
  display:inline-flex;align-items:center;gap:6px;
  font-size:13px;font-weight:600;color:var(--text-2);
  transition:color .18s var(--ease),gap .18s var(--ease);
}
.link-arrow:hover{color:var(--text);gap:9px}
.link-arrow svg{width:13px;height:13px}

.tag{
  display:inline-flex;align-items:center;
  padding:2px 7px;
  border-radius:var(--r-xs);
  font-family:var(--font-mono);
  font-size: 11px;font-weight:500;
  letter-spacing:.08em;text-transform:uppercase;
  border:1px solid var(--border);
  color:var(--text-3);background:var(--surface);
  white-space:nowrap;
}
.tag--topic{
  text-transform:none;
  letter-spacing:.01em;
  font-family:var(--font-sans);
  font-size:11px;
  font-weight:600;
}

.author-badge{
  display:inline-flex;align-items:center;gap:4px;
  padding:2px 7px;border-radius:var(--r-xs);
  font-family:var(--font-mono);
  font-size: 11px;font-weight:600;
  letter-spacing:.08em;text-transform:uppercase;
  background:var(--mint);color:var(--brand-ink);
  line-height:1.4;vertical-align:middle;margin-left:6px;
  white-space:nowrap;
}
.author-badge::before{
  content:"";
  width:7px;height:7px;
  background:var(--brand-ink);
  clip-path:polygon(14% 50%, 40% 76%, 86% 24%, 100% 38%, 40% 100%, 0% 62%);
  flex-shrink:0;
}

.diff{
  display:inline-flex;align-items:center;gap:6px;
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--text-3);
}
.diff::before{
  content:"";width:5px;height:5px;
  background:var(--mint);
  border:1px solid rgba(11,21,36,.14);
  border-radius:1px;
}
.diff[data-level="intermediate"]::before{background:var(--sky)}
.diff[data-level="advanced"]::before{background:var(--peri)}

.meta{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  font-family:var(--font-mono);
  font-size: 11px;
  color:var(--text-3);
  letter-spacing:.02em;
}
.meta .dot{width:3px;height:3px;border-radius:50%;background:var(--border-2)}
.meta strong{color:var(--text-2);font-weight:600;font-family:var(--font-sans);letter-spacing:0;font-size:12px}

/* ============================================================
   8. AVATAR
   ============================================================ */
.avatar{
  width:28px;height:28px;
  border-radius:50%;
  flex-shrink:0;
  background:var(--brand-grad);
  display:grid;place-items:center;
  font-size:11px;font-weight:700;
  color:var(--brand-ink);
  overflow:hidden;position:relative;
}
.avatar img{width:100%;height:100%;object-fit:cover;display:block}
.avatar--img{background:var(--surface-2)}
.avatar--lg{width:44px;height:44px;font-size:14px}
.avatar--sm{width:24px;height:24px;font-size: 11px}
.avatar--xl{width:68px;height:68px;font-size:22px}

/* ============================================================
   9. COVER ART
   ============================================================ */
.cover{
  position:relative;overflow:hidden;
  border-radius:var(--r-sm);
  background:var(--surface-2);
  border:1px solid var(--border);
  isolation:isolate;
}
.cover img{
  position:absolute;inset:0;
  width:100%;height:100%;object-fit:cover;
  display:block;
}
.cover-label{
  position:absolute;z-index:2;left:12px;bottom:10px;
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#fff;
  max-width:78%;
  background:rgba(11,21,36,.78);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  padding:3px 8px;
  border-radius:var(--r-xs);
}
.cover-num{
  position:absolute;z-index:2;right:12px;top:10px;
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:600;
  letter-spacing:.05em;
  color:rgba(255,255,255,.85);
  text-shadow:0 1px 3px rgba(0,0,0,.5);
  line-height:1;
}
.cover--sm{max-width:110px;aspect-ratio:16/9;flex-shrink:0}
.cover--empty{
  background:var(--surface-2);
  display:grid;place-items:center;
  color:var(--text-3);
}
.cover--empty svg{width:26px;height:26px;opacity:.5}

/* ============================================================
   10. HERO
   ============================================================ */
.hero{
  padding:clamp(28px,3.5vw,44px) 0 clamp(36px,5vw,68px);
  border-bottom:1px solid var(--border-2);
}
.hero-meta{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:clamp(20px,3vw,32px);
}
.hero-tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--text-3);
}
.hero-tag::before{
  content:"";
  width:16px;height:1px;
  background:var(--peri);
}

.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  gap:clamp(28px,5vw,64px);
  align-items:start;
}
.hero h1{
  font-family:var(--font-serif);
  font-size:clamp(38px,5.6vw,68px);
  font-weight:500;
  line-height:.98;
  letter-spacing:-.038em;
  max-width:13ch;
  color:var(--text);
}
.hero h1 em{
  font-style:italic;
  background:var(--brand-grad);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
  padding-right:.06em;
}
.hero-lede{
  margin-top:24px;
  font-size:clamp(15.5px,1.5vw,17px);
  color:var(--text-2);
  max-width:46ch;
  line-height:1.6;
}
.hero-actions{
  display:flex;flex-wrap:wrap;gap:10px;margin-top:28px;
}
.hero-note{
  margin-top:22px;
  font-family:var(--font-mono);
  font-size: 11px;
  letter-spacing:.04em;
  color:var(--text-3);
  display:flex;align-items:center;gap:8px;
}
.hero-note svg{width:13px;height:13px;flex-shrink:0;color:var(--peri)}

.hero-visual{
  position:relative;
  width:100%;
  max-width:480px;
  margin-left:auto;
}

/* ============================================================
   11. HERO DEMO — Brutalist Pipeline
   ============================================================ */
.demo-shell{
  position:relative;
  background:var(--surface);
  border:1px solid var(--border-2);
  border-radius:var(--r-sm);
  padding:18px 18px 14px;
  box-shadow:var(--shadow-sm);
  display:flex;
  flex-direction:column;
  gap:2px;
  overflow:hidden;
}
.demo-shell::before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;height:2px;
  background:var(--brand-grad);
}
.demo-head{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:10px;
  padding-top:4px;
}
.demo-eyebrow{
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--text-3);
}
.demo-count{
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  color:var(--text-3);
  letter-spacing:.05em;
}

.demo-svg{
  width:100%;height:auto;display:block;
  margin:4px 0 10px;overflow:visible;
}

.demo-node{cursor:pointer;outline:none}
.demo-node-marker{
  fill:var(--surface-2);
  stroke:var(--border-2);
  stroke-width:1.5;
  transition:fill .35s var(--ease),stroke .35s var(--ease);
}
.demo-node-num{
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:600;
  fill:var(--text-3);
  letter-spacing:.05em;
  transition:fill .35s var(--ease);
  pointer-events:none;
}
.demo-node-icon{
  stroke:var(--text-3);
  fill:none;stroke-width:1.5;
  stroke-linecap:round;stroke-linejoin:round;
  transition:stroke .35s var(--ease);
  pointer-events:none;
}
.demo-node-icon circle{fill:currentColor;stroke:none}
.demo-node-label{
  font-family:var(--font-sans);
  font-size:11px;
  font-weight:500;
  fill:var(--text-3);
  letter-spacing:.01em;
  transition:fill .35s var(--ease);
  pointer-events:none;
}
.demo-node:hover .demo-node-marker{stroke:var(--text-3)}
.demo-node:focus-visible .demo-node-marker{stroke:var(--focus);stroke-width:2}

.demo-node[data-state="active"] .demo-node-marker{
  fill:url(#demoGrad);
  stroke:transparent;
}
.demo-node[data-state="active"] .demo-node-icon{stroke:var(--brand-ink)}
.demo-node[data-state="active"] .demo-node-icon circle{fill:var(--brand-ink)}
.demo-node[data-state="active"] .demo-node-num{fill:var(--text)}
.demo-node[data-state="active"] .demo-node-label{fill:var(--text);font-weight:600}

.demo-node[data-state="done"] .demo-node-marker{fill:var(--mint);stroke:transparent;opacity:.65}
.demo-node[data-state="done"] .demo-node-icon{stroke:var(--brand-ink);opacity:.6}
.demo-node[data-state="done"] .demo-node-icon circle{fill:var(--brand-ink);opacity:.6}
.demo-node[data-state="done"] .demo-node-num{fill:var(--text-2)}

.demo-line-base{
  stroke:var(--border-2);
  stroke-width:1.5;
  stroke-dasharray:2 5;
  fill:none;
}
.demo-line-fill{
  transform-box:view-box;
  transform-origin:30px 60px;
  transition:transform .55s var(--ease);
  will-change:transform;
}

.demo-caption{
  min-height:120px;
  transition:opacity .18s var(--ease),transform .18s var(--ease);
  padding-top:8px;
}
.demo-caption-num{
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--text-3);
  display:block;
  margin-bottom:6px;
}
.demo-caption h3{
  font-family:var(--font-serif);
  font-size:clamp(18px,1.9vw,21px);
  font-weight:500;
  line-height:1.2;
  letter-spacing:-.02em;
  margin-bottom:8px;
  color:var(--text);
}
.demo-caption p{
  font-size:13px;
  line-height:1.6;
  color:var(--text-2);
  max-width:42ch;
}

.demo-controls{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;margin-top:4px;padding-top:12px;
  border-top:1px solid var(--border);
}
.demo-btn{
  width:30px;height:30px;
  display:grid;place-items:center;
  border-radius:var(--r-sm);
  border:1px solid var(--border);
  color:var(--text-2);background:var(--surface);
  transition:all .16s var(--ease);flex-shrink:0;
}
.demo-btn:hover{border-color:var(--border-2);color:var(--text)}
.demo-btn:active{transform:translateY(1px)}
.demo-btn:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.demo-btn svg{width:13px;height:13px}

.demo-dots{display:flex;gap:6px;align-items:center}
.demo-dots button{
  width:6px;height:6px;
  border-radius:50%;
  background:var(--border-2);
  transition:all .24s var(--ease);
  padding:0;position:relative;
}
.demo-dots button::before{content:"";position:absolute;inset:-7px}
.demo-dots button:hover{background:var(--text-3)}
.demo-dots button[aria-current="true"]{
  width:18px;border-radius:var(--r-xs);background:var(--peri);
}

.demo-link{
  display:inline-flex;align-items:center;gap:6px;
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--text-3);
  margin-top:10px;
  align-self:flex-end;
  transition:color .16s var(--ease),gap .16s var(--ease);
}
.demo-link:hover{color:var(--text);gap:9px}
.demo-link svg{width:11px;height:11px}

/* ============================================================
   12. START HERE MODULE — Index Grid
   ============================================================ */
.start-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border-top:1px solid var(--border-2);
  border-left:1px solid var(--border-2);
}
.start-item{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:22px 22px 24px;
  border-right:1px solid var(--border);
  border-bottom:1px solid var(--border);
  background:var(--surface);
  transition:background .15s var(--ease);
  position:relative;
  min-height:148px;
}
.start-item:hover{background:var(--surface-2)}
.start-item:hover .si-arrow{transform:translate(2px,-2px);color:var(--peri)}
.start-top{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:4px;
}
.si-num{
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:600;
  letter-spacing:.08em;
  color:var(--text-3);
}
.si-arrow{
  width:13px;height:13px;
  color:var(--text-3);
  transition:transform .2s var(--ease),color .2s var(--ease);
}
.si-title{
  font-family:var(--font-serif);
  font-size:17px;
  font-weight:500;
  line-height:1.25;
  letter-spacing:-.015em;
  color:var(--text);
}
.si-desc{
  font-size:12.5px;
  color:var(--text-3);
  line-height:1.5;
  margin-top:auto;
}

/* ============================================================
   13. FEATURED MODULE
   ============================================================ */
.feature{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:clamp(24px,4vw,56px);
  align-items:center;
  padding:clamp(22px,3vw,36px) 0 0;
}
.feature .cover{aspect-ratio:16/11;border-radius:var(--r-sm)}
.feature .c-item-top{margin-bottom:12px}
.feature h3{
  font-family:var(--font-serif);
  font-size:clamp(26px,3.4vw,42px);
  font-weight:500;
  line-height:1.05;
  letter-spacing:-.028em;
  margin:8px 0 14px;
}
.feature h3 a:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;text-decoration-color:var(--peri)}
.feature p.standfirst{
  color:var(--text-2);
  font-size:15.5px;
  line-height:1.62;
  max-width:46ch;
}
.feature-foot{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  margin-top:22px;padding-top:18px;
  border-top:1px solid var(--border);
}

/* ============================================================
   14. TODAY I LEARNED
   ============================================================ */
.til{
  position:relative;
  border-radius:var(--r-md);
  padding:clamp(28px,3.6vw,44px);
  background:var(--brand-ink);
  color:#e9eff7;
  overflow:hidden;
  isolation:isolate;
  border:1px solid transparent;
}
.til::before{
  content:"";position:absolute;inset:0;
  background-image:var(--pattern-strong);
  background-size:56px 48px;
  opacity:.55;
  pointer-events:none;z-index:0;
}
.til::after{
  content:"";
  position:absolute;right:-80px;bottom:-100px;
  width:300px;height:300px;
  border-radius:50%;
  background:var(--brand-grad-2);
  opacity:.08;filter:blur(8px);
  pointer-events:none;z-index:0;
}
.til > *{position:relative;z-index:1}

.til-head{
  display:flex;align-items:center;justify-content:space-between;
  gap:16px;margin-bottom:22px;
  padding-bottom:16px;
  border-bottom:1px solid rgba(233,239,247,.12);
}
.til-eyebrow{
  display:inline-flex;align-items:center;gap:9px;
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(233,239,247,.72);
}
.til-emoji{
  display:inline-grid;place-items:center;
  width:20px;height:20px;
  border-radius:var(--r-xs);
  background:var(--mint);
  color:var(--brand-ink);
  font-size:11px;line-height:1;
}
.til-count{
  font-family:var(--font-mono);
  font-size: 11px;
  letter-spacing:.06em;
  color:rgba(233,239,247,.5);
}
.til p.fact{
  font-family:var(--font-serif);
  font-size:clamp(20px,2.4vw,28px);
  font-weight:400;
  line-height:1.36;
  letter-spacing:-.018em;
  margin-bottom:26px;
  max-width:34ch;
  color:#e9eff7;
}
.til p.fact em{font-style:italic;color:var(--sky)}
.til-actions{
  display:flex;gap:12px;flex-wrap:wrap;align-items:center;
}
.til-actions .btn--til{
  background:var(--brand-grad);
  color:var(--brand-ink);
  font-weight:600;
  height:34px;
  padding:0 14px;
  border-radius:var(--r-sm);
  display:inline-flex;align-items:center;gap:7px;
  font-size:12px;
  letter-spacing:.01em;
  transition:transform .16s var(--ease),box-shadow .18s var(--ease);
}
.til-actions .btn--til:hover{box-shadow:0 10px 24px -12px rgba(145,184,255,.9)}
.til-actions .btn--til svg{width:13px;height:13px}
.til-actions .link-arrow{color:rgba(233,239,247,.7)}
.til-actions .link-arrow:hover{color:#e9eff7}

/* ============================================================
   15. LATEST MODULE
   ============================================================ */
.latest-grid{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
  gap:clamp(28px,4vw,56px);
}
.latest-lead .cover{aspect-ratio:16/9;margin-bottom:20px}
.latest-lead .c-item-top{margin-bottom:10px}
.latest-lead h3{
  font-family:var(--font-serif);
  font-size:clamp(24px,2.8vw,34px);
  font-weight:500;
  line-height:1.08;
  margin:6px 0 12px;
  letter-spacing:-.025em;
}
.latest-lead h3 a:hover{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px;text-decoration-color:var(--peri)}
.latest-lead p{color:var(--text-2);font-size:14.5px;line-height:1.65;max-width:54ch}

.row-list{
  border-top:1px solid var(--border-2);
}
.row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:16px;
  padding:16px 0;
  border-bottom:1px solid var(--border);
  align-items:start;
}
.row h4{
  font-family:var(--font-serif);
  font-size:17.5px;
  font-weight:500;
  line-height:1.25;
  margin:6px 0 5px;
  letter-spacing:-.015em;
}
.row h4 a:hover{text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--peri)}
.row p{font-size:13px;color:var(--text-2);line-height:1.6;max-width:60ch}
.row .thumb{
  width:72px;height:56px;
  border-radius:var(--r-xs);
  flex-shrink:0;
  position:relative;overflow:hidden;
  border:1px solid var(--border);
}
.row .thumb img{width:100%;height:100%;object-fit:cover}
.row--wide{grid-template-columns:1fr}
.c-item-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.c-item-foot{margin-top:12px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}

/* ============================================================
   16. PATHS MODULE
   ============================================================ */
.paths{
  border-top:1px solid var(--border-2);
}
.path{
  display:grid;
  grid-template-columns:56px minmax(0,1fr) auto;
  gap:22px;
  align-items:center;
  padding:20px 0;
  border-bottom:1px solid var(--border);
  transition:padding-left .22s var(--ease),background .18s var(--ease);
}
.path:hover{padding-left:10px;background:var(--surface-2)}
.path .pnum{
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:600;
  letter-spacing:.08em;
  color:var(--text-3);
}
.path h4{
  font-family:var(--font-serif);
  font-size:19px;
  font-weight:500;
  margin-bottom:5px;
  letter-spacing:-.015em;
}
.path p{font-size:13px;color:var(--text-2);max-width:62ch;line-height:1.55}
.path .pmeta{
  display:flex;gap:14px;align-items:center;
  font-family:var(--font-mono);
  font-size: 11px;
  letter-spacing:.04em;
  color:var(--text-3);
}
.path-progress{
  width:64px;height:3px;
  background:var(--border);
  overflow:hidden;flex-shrink:0;
  border-radius:1px;
}
.path-progress span{
  display:block;height:100%;
  background:var(--peri);
  border-radius:1px;
}

/* ============================================================
   17. EXPLORE MODULE — Asymmetric Grid
   ============================================================ */
.explore-grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:clamp(12px,1.4vw,16px);
}
.xl{grid-column:span 6}
.xm{grid-column:span 3}
.xs{grid-column:span 6}

.xblock{
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  padding:clamp(20px,2.2vw,26px);
  background:var(--surface);
  display:flex;
  flex-direction:column;
  transition:border-color .2s var(--ease);
  min-height:100%;
  position:relative;
}
.xblock:hover{border-color:var(--border-2)}

.xnum{
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.14em;
  color:var(--text-3);
  text-transform:uppercase;
  margin-bottom:16px;
}
.xblock h3{
  font-family:var(--font-serif);
  font-size:clamp(19px,2.2vw,25px);
  font-weight:500;
  margin-bottom:8px;
  letter-spacing:-.02em;
}
.xblock p{
  color:var(--text-2);
  font-size:13.5px;
  line-height:1.6;
  max-width:42ch;
}
.xlist{
  margin-top:18px;
  border-top:1px solid var(--border);
  padding-top:4px;
}
.xlist a{
  display:flex;justify-content:space-between;align-items:center;
  gap:14px;
  padding:9px 0;
  border-bottom:1px solid var(--border);
  font-size:13px;
  color:var(--text-2);
  transition:color .18s var(--ease),padding-left .18s var(--ease);
}
.xlist a:last-child{border-bottom:0}
.xlist a:hover{color:var(--text);padding-left:4px}
.xlist a svg{width:12px;height:12px;flex-shrink:0;opacity:.5}

/* ============================================================
   18. SPLIT LAYOUT
   ============================================================ */
.split{display:grid;grid-template-columns:repeat(12,1fr);gap:clamp(24px,3vw,44px)}
.col-7{grid-column:span 7}
.col-5{grid-column:span 5}
.col-6{grid-column:span 6}
.col-4{grid-column:span 4}
.col-8{grid-column:span 8}
.col-12{grid-column:span 12}

.quote-card{
  padding:22px 0 22px 22px;
  border-left:1px solid var(--border-2);
  border-top:1px solid var(--border);
  background:transparent;
}
.quote-card:first-child{border-top:0}
.quote-card blockquote{
  font-family:var(--font-serif);
  font-size:18px;
  line-height:1.44;
  margin:0 0 14px;
  font-weight:400;
  letter-spacing:-.012em;
  color:var(--text);
}
.quote-card blockquote::before{content:"\201C"}
.quote-card blockquote::after{content:"\201D"}
.quote-card .who{
  display:flex;align-items:center;gap:10px;
  font-size:12.5px;color:var(--text-2);
}

.note-block{
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  padding:clamp(22px,3vw,32px);
  background:var(--surface);
}
.note-block .signature{
  margin-top:22px;padding-top:18px;
  border-top:1px solid var(--border);
  font-family:var(--font-serif);
  font-style:italic;
  color:var(--text-2);
  font-size:14px;
}

/* ============================================================
   19. CTA BAND
   ============================================================ */
.cta-band{
  position:relative;overflow:hidden;
  border-radius:var(--r-sm);
  background:var(--brand-grad);
  color:var(--brand-ink);
  padding:clamp(32px,5vw,60px);
  border:1px solid transparent;
}
.cta-band::before{
  content:"";
  position:absolute;inset:0;
  background-image:var(--pattern-strong);
  background-size:56px 48px;
  opacity:.45;pointer-events:none;
}
.cta-band > *{position:relative;z-index:1}
.cta-band h2{
  font-family:var(--font-serif);
  font-size:clamp(26px,3.6vw,44px);
  font-weight:500;
  line-height:1.06;
  max-width:22ch;
  letter-spacing:-.028em;
}
.cta-band p{
  margin-top:14px;
  max-width:52ch;
  color:rgba(11,21,36,.78);
  font-size:15px;
  line-height:1.6;
}
.cta-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}

/* ============================================================
   20. PAGE HEAD + FILTERS
   ============================================================ */
.page-head{
  padding:0 0 clamp(20px,2.6vw,32px);
  margin-bottom:clamp(20px,2.6vw,32px);
  border-bottom:1px solid var(--border-2);
}
.page-head .kicker{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  margin-bottom:16px;
}
.page-head h1{
  font-family:var(--font-serif);
  font-size:clamp(32px,4.8vw,56px);
  font-weight:500;
  letter-spacing:-.032em;
  line-height:1.02;
  max-width:22ch;
}
.page-head .lede{
  margin-top:16px;
  color:var(--text-2);
  font-size:16px;
  max-width:60ch;
  line-height:1.6;
}

.filters{
  display:flex;flex-wrap:wrap;gap:8px;align-items:center;
  padding:14px 0;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  margin-bottom:clamp(20px,3vw,32px);
}
.field{
  display:flex;align-items:center;gap:7px;
  height:36px;padding:0 10px;
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  background:var(--surface);
  font-size:13px;
  color:var(--text-2);
  transition:border-color .18s var(--ease);
}
.field:focus-within{border-color:var(--border-2)}
.field svg{width:14px;height:14px;flex-shrink:0;color:var(--text-3)}
.field input,.field select{
  border:0;background:transparent;outline:none;
  font-size:13px;min-width:0;color:var(--text);
}
.field input::placeholder{color:var(--text-3)}
.field select{cursor:pointer;padding-right:2px}
.field--grow{flex:1 1 200px;min-width:180px}

.chip{
  padding:6px 11px;
  border-radius:var(--r-xs);
  border:1px solid var(--border);
  background:var(--surface);
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--text-2);
  transition:all .18s var(--ease);
}
.chip:hover{border-color:var(--border-2);color:var(--text)}
.chip[aria-pressed="true"]{
  background:var(--text);
  border-color:var(--text);
  color:var(--bg);
  font-weight:600;
}

/* ============================================================
   21. CONTENT LISTS
   ============================================================ */
.c-list{display:grid;gap:0;border-top:1px solid var(--border-2)}
.c-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) 152px;
  gap:28px;
  padding:24px 0;
  border-bottom:1px solid var(--border);
  align-items:start;
}
.c-item h3{
  font-family:var(--font-serif);
  font-size:clamp(20px,2.2vw,25px);
  font-weight:500;
  line-height:1.16;
  margin:8px 0 8px;
  letter-spacing:-.022em;
}
.c-item h3 a:hover{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px;text-decoration-color:var(--peri)}
.c-item p.stand{color:var(--text-2);font-size:14px;line-height:1.65;max-width:68ch}
.c-item .cover{aspect-ratio:4/3}

.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,2.6vw,32px)}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(20px,2.6vw,32px)}
.mini{
  display:flex;flex-direction:column;
  border-top:2px solid var(--text);
  padding-top:14px;
}
.mini .cover{aspect-ratio:16/10;margin-bottom:14px}
.mini h3{
  font-family:var(--font-serif);
  font-size:18px;
  font-weight:500;
  line-height:1.24;
  margin:8px 0 6px;
  letter-spacing:-.015em;
}
.mini h3 a:hover{text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--peri)}
.mini p{font-size:13px;color:var(--text-2);line-height:1.6}

.res{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);
  gap:clamp(18px,2.6vw,40px);
  padding:24px 0;
  border-bottom:1px solid var(--border);
  align-items:start;
}
.res h3{
  font-family:var(--font-serif);
  font-size:21px;font-weight:500;margin-bottom:8px;
}
.res h3 a{
  text-decoration:underline;
  text-decoration-color:var(--peri);
  text-underline-offset:3px;
}
.res .rwhat{font-size:13.5px;color:var(--text-2);line-height:1.62}
.res dl{
  display:grid;
  grid-template-columns:80px 1fr;
  gap:6px 14px;
  font-size:13px;
  margin:0;
}
.res dt{
  font-family:var(--font-mono);
  color:var(--text-3);
  font-weight:500;
  font-size: 11px;
  letter-spacing:.1em;
  text-transform:uppercase;
  padding-top:3px;
}
.res dd{margin:0;color:var(--text-2);line-height:1.55}

/* ============================================================
   22. GLOSSARY
   ============================================================ */
.alpha{
  display:flex;flex-wrap:wrap;gap:3px;
  margin:18px 0 22px;
  padding-bottom:14px;
  border-bottom:1px solid var(--border);
}
.alpha button{
  width:28px;height:28px;
  border-radius:var(--r-xs);
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:600;
  color:var(--text-3);
  transition:background .16s var(--ease),color .16s var(--ease);
}
.alpha button:hover{background:var(--surface-2);color:var(--text)}
.alpha button[aria-pressed="true"]{
  background:var(--text);
  color:var(--bg);
}

.term{border-bottom:1px solid var(--border)}
.term summary{
  display:flex;align-items:baseline;gap:16px;
  padding:16px 0;
  cursor:pointer;list-style:none;
  transition:padding-left .2s var(--ease);
}
.term summary::-webkit-details-marker{display:none}
.term summary:hover{padding-left:5px}
.term summary .t{
  font-family:var(--font-serif);
  font-size:19px;
  font-weight:500;
  min-width:0;flex-shrink:0;
  letter-spacing:-.015em;
}
.term summary .d{
  font-size:13.5px;color:var(--text-2);
  flex:1;min-width:0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.term summary .plus{
  margin-left:auto;
  color:var(--text-3);
  font-family:var(--font-mono);
  font-size:16px;
  line-height:1;
  transition:transform .22s var(--ease);
  flex-shrink:0;
}
.term[open] summary .plus{transform:rotate(45deg)}
.term-body{padding:0 0 22px;max-width:72ch}
.term-body .block{margin-bottom:16px}
.term-body .block .lab{
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--text-3);
  margin-bottom:6px;display:block;
}
.term-body p{font-size:14.5px;line-height:1.68;color:var(--text-2)}
.term-body .analogy{
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  padding:12px 14px;
  font-family:var(--font-serif);
  font-size:15.5px;
  line-height:1.55;
  color:var(--text);
  font-style:italic;
}
.term-body .related-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.term-body .related-chips a{
  display:inline-flex;align-items:center;gap:6px;
  padding:4px 10px;
  border-radius:var(--r-xs);
  border:1px solid var(--border);
  background:var(--surface);
  font-size:12px;
  font-weight:500;
  color:var(--text-2);
  transition:all .16s var(--ease);
}
.term-body .related-chips a:hover{border-color:var(--peri);color:var(--text);background:var(--surface-2)}

/* ============================================================
   23. CONCEPT POPOVER
   ============================================================ */
.concept{
  cursor:pointer;
  color:var(--text);
  font-weight:inherit;
  text-decoration:underline;
  text-decoration-color:var(--peri);
  text-decoration-thickness:1.5px;
  text-underline-offset:3px;
  text-decoration-style:dotted;
  transition:text-decoration-color .16s var(--ease);
  border-radius:2px;
  padding:0 1px;
}
.concept:hover{text-decoration-color:var(--text);text-decoration-style:solid}

.concept-pop{
  position:fixed;z-index:150;
  max-width:320px;
  background:var(--surface);
  border:1px solid var(--border-2);
  border-radius:var(--r-sm);
  box-shadow:var(--shadow-lg);
  padding:16px 18px;
  opacity:0;visibility:hidden;
  transform:translateY(4px);
  transition:opacity .18s var(--ease),visibility .18s,transform .18s var(--ease);
  pointer-events:none;
}
.concept-pop[data-open="true"]{opacity:1;visibility:visible;transform:none;pointer-events:auto}
.concept-pop h4{
  font-family:var(--font-serif);
  font-size:16px;font-weight:600;
  letter-spacing:-.015em;
  margin-bottom:8px;
  display:flex;align-items:center;gap:8px;
}
.concept-pop h4::before{
  content:"";
  width:10px;height:10px;
  background:var(--peri);
  flex-shrink:0;
  border-radius:2px;
}
.concept-pop p{font-size:13px;line-height:1.55;color:var(--text-2);margin-bottom:10px}
.concept-pop p.ex{
  font-size:12.5px;
  color:var(--text-3);
  font-style:italic;
  border-left:2px solid var(--border);
  padding-left:9px;
  margin-bottom:12px;
}
.concept-pop .cp-cta{
  display:inline-flex;align-items:center;gap:6px;
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--text);
  text-decoration:underline;
  text-decoration-color:var(--peri);
  text-decoration-thickness:1.5px;
  text-underline-offset:3px;
}
.concept-pop .cp-cta:hover{text-decoration-color:var(--text)}
.concept-pop .cp-cta svg{width:11px;height:11px}

/* ============================================================
   24. EXPLAINS CALLOUT
   ============================================================ */
.explains{
  margin:2em 0;
  border:1px solid var(--border-2);
  border-radius:var(--r-sm);
  background:var(--surface);
  overflow:hidden;
}
.explains-head{
  display:flex;align-items:center;gap:12px;
  padding:14px 20px;
  border-bottom:1px solid var(--border);
  background:var(--surface-2);
}
.explains-icon{
  display:grid;place-items:center;
  width:26px;height:26px;
  border-radius:var(--r-xs);
  background:var(--mint);
  color:var(--brand-ink);
  font-size:12px;flex-shrink:0;
  font-weight:600;
}
.explains-head .eh-lbl{
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--text-2);
}
.explains-head .eh-sub{
  font-size:12px;
  color:var(--text-3);
  margin-top:1px;
}
.explains-body{padding:20px 22px 22px}
.explains-body .xe{
  font-size:14.5px;
  line-height:1.66;
  color:var(--text-2);
  padding:14px 16px;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  margin-bottom:14px;
}
.explains-body .xe::before{
  content:"Technical";
  display:block;
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--text-3);
  margin-bottom:5px;
}
.explains-body .je{
  font-family:var(--font-serif);
  font-size:17px;
  line-height:1.5;
  letter-spacing:-.015em;
  color:var(--text);
  padding:16px 18px;
  border-radius:var(--r-sm);
  background:var(--surface-2);
  border:1px solid var(--border-2);
}
.explains-body .je::before{
  content:"JITAPP explanation";
  display:block;
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--text-3);
  margin-bottom:6px;
}
.explains-body .je em{font-style:italic;color:var(--brand-ink)}
[data-theme="dark"] .explains-body .je em{color:var(--peri)}

/* ============================================================
   25. ARTICLE
   ============================================================ */
.reading-bar{
  position:fixed;
  left:var(--sidebar-w);right:0;top:0;
  height:2px;z-index:70;
  background:transparent;pointer-events:none;
}
.reading-bar span{
  display:block;height:100%;width:0%;
  background:var(--peri);
  transition:width .1s linear;
}

.article-head{padding:0 0 24px;max-width:900px;margin:0 auto}
.article-head .kicker{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  margin-bottom:16px;
}
.article-head h1{
  font-family:var(--font-serif);
  font-size:clamp(30px,4.6vw,54px);
  font-weight:500;
  line-height:1.02;
  letter-spacing:-.032em;
  max-width:18ch;
}
.article-standfirst{
  margin-top:20px;
  font-size:clamp(16px,1.8vw,19px);
  line-height:1.55;
  color:var(--text-2);
  max-width:62ch;
  font-family:var(--font-serif);
  font-weight:400;
}
.article-byline{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  margin-top:26px;
  padding:16px 0;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.byline-author{display:flex;align-items:center;gap:11px}
.byline-author .name{
  font-weight:600;font-size:13.5px;
  display:flex;align-items:center;
}
.byline-author .role{font-size:12px;color:var(--text-3)}
.byline-tools{
  margin-left:auto;
  display:flex;align-items:center;gap:6px;flex-wrap:wrap;
}
.tool-btn{
  display:inline-flex;align-items:center;gap:6px;
  height:32px;padding:0 11px;
  border-radius:var(--r-sm);
  border:1px solid var(--border);
  background:var(--surface);
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--text-2);
  transition:all .18s var(--ease);
}
.tool-btn:hover{border-color:var(--border-2);color:var(--text)}
.tool-btn svg{width:13px;height:13px}
.tool-btn[aria-pressed="true"]{
  background:var(--surface-2);
  border-color:var(--text-3);
  color:var(--text);
}

.article-hero{
  margin:24px auto 0;
  max-width:900px;
}
.article-hero .cover{aspect-ratio:21/9}

.article-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 220px;
  gap:clamp(28px,4vw,64px);
  padding:36px 0 0;
  align-items:start;
  max-width:900px;
  margin:0 auto;
}
.toc{position:sticky;top:20px}
.toc h2{
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--text-3);
  margin-bottom:12px;
}
.toc ol{list-style:none;border-left:1px solid var(--border)}
.toc li button{
  display:block;width:100%;text-align:left;
  padding:6px 0 6px 12px;margin-left:-1px;
  border-left:2px solid transparent;
  font-size:12.5px;
  color:var(--text-3);
  line-height:1.42;
  transition:color .16s var(--ease),border-color .16s var(--ease);
  cursor:pointer;font-family:inherit;
}
.toc li button:hover{color:var(--text-2)}
.toc li button[data-active="true"]{
  color:var(--text);
  border-left-color:var(--peri);
  font-weight:500;
}
.toc-tools{
  margin-top:24px;padding-top:16px;
  border-top:1px solid var(--border);
}
.toc-tools .lab{
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--text-3);
  margin-bottom:8px;display:block;
}
.seg{
  display:inline-flex;
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  overflow:hidden;
}
.seg button{
  padding:5px 11px;
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.04em;
  color:var(--text-3);
  transition:background .16s var(--ease),color .16s var(--ease);
}
.seg button[aria-pressed="true"]{background:var(--text);color:var(--bg)}

.prose{
  font-size:var(--read-size,18px);
  line-height:1.78;
  color:var(--text);
  max-width:var(--readw);
}
.prose > * + *{margin-top:1.18em}
.prose h2{
  font-family:var(--font-serif);
  font-size:clamp(24px,2.6vw,30px);
  font-weight:500;
  line-height:1.16;
  letter-spacing:-.026em;
  margin-top:2.2em;
  scroll-margin-top:24px;
}
.prose h3{
  font-size:18px;
  font-weight:600;
  margin-top:1.9em;
  scroll-margin-top:24px;
  letter-spacing:-.014em;
}
.prose p{color:var(--text)}
.prose a{
  color:var(--text);
  text-decoration:underline;
  text-decoration-color:var(--peri);
  text-decoration-thickness:1.5px;
  text-underline-offset:3px;
}
.prose a:hover{text-decoration-color:var(--text)}
.prose ul,.prose ol{padding-left:1.3em;color:var(--text)}
.prose li + li{margin-top:.5em}
.prose ul li::marker{color:var(--peri)}
.prose ol li::marker{color:var(--text-3);font-weight:600;font-size:.9em}
.prose strong{font-weight:600}
.prose[data-face="sans"]{font-family:var(--font-sans)}
.prose[data-face="serif"]{font-family:var(--font-serif);font-weight:400}

.callout{
  border:1px solid var(--border-2);
  background:var(--surface-2);
  padding:16px 20px;
  border-radius:var(--r-sm);
  font-size:15px;
  line-height:1.66;
  color:var(--text-2);
}
.callout .callout-lab{
  display:block;
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--text-3);
  margin-bottom:8px;
}
.pullquote{
  font-family:var(--font-serif);
  font-size:clamp(20px,2.4vw,26px);
  line-height:1.32;
  font-weight:400;
  letter-spacing:-.018em;
  padding:8px 0 8px 22px;
  border-left:2px solid var(--border-2);
  color:var(--text);
}

.codeblock{
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  overflow:hidden;
  background:var(--surface-2);
}
.codeblock-top{
  display:flex;align-items:center;justify-content:space-between;
  padding:7px 12px;
  border-bottom:1px solid var(--border);
  background:var(--surface);
}
.codeblock-top .lang{
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--text-3);
}
.copy-btn{
  display:inline-flex;align-items:center;gap:6px;
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--text-3);
  padding:3px 7px;
  border-radius:var(--r-xs);
  transition:color .16s var(--ease),background .16s var(--ease);
}
.copy-btn:hover{color:var(--text);background:var(--surface-2)}
.copy-btn svg{width:12px;height:12px}
.codeblock pre{
  margin:0;padding:14px 16px;
  overflow-x:auto;
  font-family:var(--font-mono);
  font-size:13px;
  line-height:1.65;
  color:var(--text);
}
.codeblock code{font-family:inherit}

.figure{margin:1.8em 0}
.figure-svg{
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  padding:16px 14px;
  overflow-x:auto;
}
.figure-svg svg{display:block;width:100%;height:auto;max-width:100%}
.figure-img img{
  width:100%;height:auto;display:block;
  border-radius:var(--r-sm);
  border:1px solid var(--border);
}
.figure figcaption{
  margin-top:9px;
  font-size:12.5px;
  color:var(--text-3);
  line-height:1.5;
}
.figure figcaption .fig-num{
  font-family:var(--font-mono);
  font-weight:600;
  color:var(--text-2);
  letter-spacing:.06em;
  text-transform:uppercase;
  font-size: 11px;
  margin-right:6px;
}

.references{
  margin-top:2.8em;padding-top:24px;
  border-top:1px solid var(--border);
}
.references h2{
  font-family:var(--font-serif);
  font-size:18px;
  font-weight:500;
  letter-spacing:-.015em;
  margin-bottom:12px;
  color:var(--text-2);
}
.references ol{
  list-style:decimal;
  padding-left:1.4em;
  font-size:13.5px;
  line-height:1.68;
  color:var(--text-2);
}
.references li + li{margin-top:10px}
.references li::marker{color:var(--text-3);font-weight:600}
.references a{
  color:var(--text);
  text-decoration:underline;
  text-decoration-color:var(--peri);
  text-decoration-thickness:1px;
  text-underline-offset:3px;
  word-break:break-word;
}

.keep-exploring{
  margin-top:2.4em;padding-top:24px;
  border-top:1px solid var(--border);
}
.keep-exploring h2{
  font-family:var(--font-serif);
  font-size:22px;font-weight:500;
  letter-spacing:-.02em;margin-bottom:5px;
}
.keep-exploring p.kx-sub{
  font-size:13.5px;color:var(--text-3);margin-bottom:16px;
}
.kx-chips{display:flex;flex-wrap:wrap;gap:7px}
.kx-chips a{
  display:inline-flex;align-items:center;gap:6px;
  padding:7px 13px;
  border-radius:var(--r-xs);
  border:1px solid var(--border);
  background:var(--surface);
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:500;
  letter-spacing:.02em;
  color:var(--text-2);
  transition:all .18s var(--ease);
}
.kx-chips a:hover{border-color:var(--peri);color:var(--text)}
.kx-chips a svg{width:11px;height:11px;opacity:.6}

.you-might{
  margin:2.2em 0;
  padding:18px 20px;
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  background:var(--surface-2);
}
.you-might .ym-head{
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--text-2);
  margin-bottom:12px;
}
.you-might .ym-head em{
  font-style:italic;
  color:var(--text-3);
  text-transform:none;
  letter-spacing:0;
  font-family:var(--font-serif);
  font-size:12.5px;
  font-weight:400;
}
.you-might ul{list-style:none;display:grid;gap:6px}
.you-might li a{
  display:flex;justify-content:space-between;align-items:center;
  gap:14px;
  padding:8px 0;
  border-bottom:1px solid var(--border);
  font-size:13.5px;
  color:var(--text-2);
  transition:color .16s var(--ease),padding-left .18s var(--ease);
}
.you-might li:last-child a{border-bottom:0}
.you-might li a:hover{color:var(--text);padding-left:4px}
.you-might li a svg{width:12px;height:12px;flex-shrink:0;opacity:.5}

.article-pager{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:28px;
  padding-top:24px;
  border-top:1px solid var(--border);
}
.article-pager a{
  display:flex;flex-direction:column;gap:6px;
  padding:16px 18px;
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  background:var(--surface);
  transition:border-color .18s var(--ease),background .18s var(--ease);
}
.article-pager a:hover{border-color:var(--border-2);background:var(--surface-2)}
.article-pager .ap-label{
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--text-3);
}
.article-pager .ap-title{
  font-family:var(--font-serif);
  font-size:16px;
  font-weight:500;
  line-height:1.3;
  color:var(--text);
  letter-spacing:-.015em;
}
.article-pager .ap-next{text-align:right}
.article-pager .ap-next .ap-label{text-align:right}
.article-pager .ap-next .ap-title{text-align:right}
.article-pager .ap-spacer{display:block}
@media (max-width:640px){
  .article-pager{grid-template-columns:1fr}
  .article-pager .ap-next,
  .article-pager .ap-next .ap-label,
  .article-pager .ap-next .ap-title{text-align:left}
}

.article-foot{
  margin-top:clamp(32px,4vw,52px);
  padding-top:24px;
  border-top:1px solid var(--border);
}
.tag-row{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:24px}
.author-box{
  display:flex;gap:16px;align-items:flex-start;
  padding:20px;
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  background:var(--surface);
}
.author-box h3{
  font-size:14.5px;font-weight:600;margin-bottom:3px;
  display:flex;align-items:center;flex-wrap:wrap;
}
.author-box p{font-size:13px;color:var(--text-2);line-height:1.6;margin-top:6px}

.comments{
  margin-top:clamp(32px,4vw,52px);
  padding-top:26px;
  border-top:1px solid var(--border);
}
.comments h2{
  font-family:var(--font-serif);
  font-size:22px;font-weight:500;
  margin-bottom:5px;letter-spacing:-.02em;
}
.comments .cnote{
  font-size:13px;color:var(--text-3);margin-bottom:20px;
}
.comment{padding:14px 0;border-bottom:1px solid var(--border)}
.comment-top{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.comment-top .name{font-size:13.5px;font-weight:600}
.comment-top .when{
  font-family:var(--font-mono);
  font-size: 11px;
  letter-spacing:.04em;
  color:var(--text-3);
}
.comment p{font-size:14px;color:var(--text-2);line-height:1.65}
.comment-form{margin-top:20px}
.comment-form textarea{
  width:100%;
  min-height:100px;
  resize:vertical;
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  padding:12px 13px;
  background:var(--surface);
  font-size:14px;
  line-height:1.6;
  outline:none;
  transition:border-color .18s var(--ease);
}
.comment-form textarea:focus{border-color:var(--border-2)}
.comment-form .cf-foot{
  display:flex;justify-content:space-between;align-items:center;
  margin-top:10px;gap:12px;flex-wrap:wrap;
}

body[data-reading="true"] .sidebar,
body[data-reading="true"] .mobile-topbar,
body[data-reading="true"] .site-footer,
body[data-reading="true"] .reading-bar,
body[data-reading="true"] .bottom-nav,
body[data-reading="true"] .account-banner{display:none !important}
body[data-reading="true"] .app-shell{padding-left:0;padding-bottom:0}
body[data-reading="true"] .article-layout{grid-template-columns:1fr;max-width:820px;margin:0 auto}
body[data-reading="true"] .toc{display:none}
body[data-reading="true"] .prose{max-width:820px;font-size:calc(var(--read-size,18px) * 1.05)}
body[data-reading="true"] .article-head,
body[data-reading="true"] .article-hero{max-width:820px;margin-left:auto;margin-right:auto}
.reading-exit{
  position:fixed;top:14px;right:14px;z-index:200;
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 14px;border-radius:99px;
  background:var(--text);color:var(--bg);
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.08em;
  text-transform:uppercase;
  box-shadow:var(--shadow-md);
  transition:transform .16s var(--ease);
}
.reading-exit:hover{transform:translateY(-1px)}
.reading-exit svg{width:13px;height:13px}

/* ============================================================
   26. PANELS / FORMS
   ============================================================ */
.panel{
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  background:var(--surface);
  padding:clamp(20px,2.4vw,30px);
}
.panel + .panel{margin-top:16px}
.panel h2{
  font-family:var(--font-serif);
  font-size:21px;
  font-weight:500;
  margin-bottom:6px;
  letter-spacing:-.02em;
}
.panel .pdesc{
  font-size:13.5px;
  color:var(--text-2);
  margin-bottom:18px;
  max-width:60ch;
  line-height:1.6;
}

.form-row{margin-bottom:14px}
.form-row label{
  display:block;
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:6px;
  color:var(--text-2);
}
.form-row .hint{
  font-size:12px;
  color:var(--text-3);
  margin-top:5px;
  line-height:1.5;
}
.input,.textarea,.select{
  width:100%;
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  background:var(--surface-2);
  padding:10px 12px;
  font-size:14px;
  outline:none;
  transition:border-color .18s var(--ease),background .18s var(--ease);
}
.input:focus,.textarea:focus,.select:focus{
  border-color:var(--peri);
  background:var(--surface);
}
.textarea{resize:vertical;min-height:100px;line-height:1.65}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}

.stat-row{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border:1px solid var(--border-2);
  border-radius:var(--r-sm);
  overflow:hidden;
  background:var(--surface);
}
.stat{padding:16px 20px;border-right:1px solid var(--border)}
.stat:last-child{border-right:0}
.stat .n{
  font-family:var(--font-serif);
  font-size:28px;
  font-weight:500;
  line-height:1;
  letter-spacing:-.025em;
}
.stat .l{
  font-family:var(--font-mono);
  font-size: 11px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--text-3);
  margin-top:7px;
}

.tabs{
  display:flex;gap:2px;
  border-bottom:1px solid var(--border);
  margin-bottom:22px;
  overflow-x:auto;
}
.tabs button{
  padding:10px 14px;
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--text-3);
  border-bottom:2px solid transparent;
  margin-bottom:-1px;
  white-space:nowrap;
  transition:color .16s var(--ease),border-color .16s var(--ease);
}
.tabs button:hover{color:var(--text-2)}
.tabs button[aria-selected="true"]{
  color:var(--text);
  border-bottom-color:var(--peri);
  font-weight:600;
}

.empty{
  border:1px dashed var(--border-2);
  border-radius:var(--r-sm);
  padding:clamp(28px,4vw,52px);
  text-align:center;
  background:var(--surface-2);
}
.empty h3{
  font-family:var(--font-serif);
  font-size:21px;
  font-weight:500;
  margin-bottom:10px;
  letter-spacing:-.02em;
}
.empty p{
  color:var(--text-2);
  font-size:14px;
  max-width:46ch;
  margin:0 auto 18px;
  line-height:1.6;
}
.empty .eacts{display:flex;gap:9px;justify-content:center;flex-wrap:wrap}
.empty .suggestions{
  display:flex;flex-wrap:wrap;gap:6px;
  justify-content:center;margin-top:14px;
}
.empty .suggestions a{
  padding:4px 11px;
  border-radius:var(--r-xs);
  border:1px solid var(--border);
  background:var(--surface);
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:500;
  color:var(--text-2);
  transition:all .16s var(--ease);
}
.empty .suggestions a:hover{border-color:var(--peri);color:var(--text)}

/* ============================================================
   27. SEARCH OVERLAY
   ============================================================ */
.overlay{
  position:fixed;inset:0;z-index:120;
  background:color-mix(in srgb,var(--bg) 75%,transparent);
  backdrop-filter:blur(10px) saturate(160%);
  -webkit-backdrop-filter:blur(10px) saturate(160%);
  opacity:0;visibility:hidden;
  transition:opacity .2s var(--ease),visibility .2s;
  overflow-y:auto;
  padding:clamp(16px,7vh,90px) var(--gutter) 40px;
}
.overlay[data-open="true"]{opacity:1;visibility:visible}
.search-panel{
  max-width:640px;
  margin:0 auto;
  background:var(--surface);
  border:1px solid var(--border-2);
  border-radius:var(--r-sm);
  box-shadow:0 30px 70px -40px rgba(13,26,43,.5);
  overflow:hidden;
  transform:translateY(-10px) scale(.99);
  transition:transform .24s var(--ease);
}
.overlay[data-open="true"] .search-panel{transform:none}
.search-top{
  display:flex;align-items:center;gap:12px;
  padding:14px 16px;
  border-bottom:1px solid var(--border);
}
.search-top svg{width:17px;height:17px;color:var(--text-3);flex-shrink:0}
.search-top input{
  flex:1;border:0;background:transparent;outline:none;
  font-size:16px;
}
.search-top input::placeholder{color:var(--text-3)}
.search-top kbd{
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  color:var(--text-3);
  border:1px solid var(--border);
  border-radius:var(--r-xs);
  padding:2px 6px;
  background:var(--surface-2);
}
.search-clear{
  width:26px;height:26px;
  display:none;align-items:center;justify-content:center;
  border-radius:var(--r-sm);
  color:var(--text-3);
  flex-shrink:0;
  transition:background .16s var(--ease),color .16s var(--ease);
}
.search-clear[data-visible="true"]{display:inline-flex}
.search-clear:hover{background:var(--surface-2);color:var(--text)}
.search-clear svg{width:14px;height:14px}
.search-body{
  max-height:min(62vh,500px);
  overflow-y:auto;
  overscroll-behavior:contain;
}
.search-group-lab{
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--text-3);
  padding:14px 16px 6px;
}
.s-result{
  display:flex;gap:12px;align-items:flex-start;
  padding:10px 16px;
  width:100%;text-align:left;
  transition:background .14s var(--ease);
}
.s-result:hover,.s-result[data-active="true"]{background:var(--surface-2)}
.s-result .si{
  width:32px;height:32px;
  border-radius:var(--r-xs);
  flex-shrink:0;
  background:var(--surface-2);
  border:1px solid var(--border);
  position:relative;overflow:hidden;
  display:grid;place-items:center;
  font-family:var(--font-mono);
  font-size: 11px;font-weight:600;
  color:var(--text-2);
}
.s-result .st{
  font-size:14px;font-weight:500;line-height:1.35;display:block;
}
.s-result .ss{
  font-size:12.5px;color:var(--text-3);
  margin-top:3px;line-height:1.45;display:block;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.s-result mark,.c-item mark,.term mark,.page-head mark{
  background:linear-gradient(180deg, transparent 55%, var(--mint) 55%);
  color:inherit;padding:0 1px;border-radius:2px;
}
[data-theme="dark"] .s-result mark,
[data-theme="dark"] .c-item mark,
[data-theme="dark"] .term mark,
[data-theme="dark"] .page-head mark{
  background:linear-gradient(180deg, transparent 55%, rgba(145,184,255,.4) 55%);
}
.search-foot{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  padding:10px 16px;
  border-top:1px solid var(--border);
  font-family:var(--font-mono);
  font-size: 11px;
  color:var(--text-3);
  background:var(--surface-2);
}
.search-foot .k{display:inline-flex;align-items:center;gap:5px}
.search-foot .k--push{margin-left:auto}
.search-full-link{color:var(--text-2);font-weight:600}
.search-foot kbd{
  font-family:var(--font-mono);
  font-size: 11px;font-weight:500;
  border:1px solid var(--border);
  border-radius:var(--r-xs);
  padding:1px 5px;
  background:var(--surface);
}

/* ============================================================
   28. FOOTER
   ============================================================ */
.site-footer{
  margin-top:clamp(40px,6vw,80px);
  border-top:1px solid var(--border);
  background:var(--bg-2);
  position:relative;z-index:1;
}
.footer-grid{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,1fr));
  gap:clamp(26px,4vw,52px);
  padding:clamp(36px,5vw,60px) 0 32px;
}
.footer-brand .brand{
  margin-bottom:14px;
  display:flex;align-items:center;gap:10px;
}
.footer-brand .brand img{width:26px;height:26px}
.footer-brand .brand .brand-name{
  font-family:var(--font-serif);
  font-size:20px;font-weight:600;
  letter-spacing:-.02em;
}
.footer-brand .brand .brand-name span{color:var(--text-3);font-weight:400}
.footer-brand p{
  font-size:13.5px;
  color:var(--text-2);
  max-width:38ch;
  line-height:1.65;
}
.footer-col h4{
  font-family:var(--font-mono);
  font-size: 11px;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--text-3);
  margin-bottom:12px;
}
.footer-col ul{list-style:none;display:grid;gap:8px}
.footer-col a{
  font-size:13.5px;color:var(--text-2);
  transition:color .16s var(--ease);
}
.footer-col a:hover{color:var(--text)}
.footer-bottom{
  display:flex;justify-content:space-between;align-items:center;
  gap:16px;flex-wrap:wrap;
  padding:18px 0 28px;
  border-top:1px solid var(--border);
  font-size:12.5px;
  color:var(--text-3);
}
.footer-bottom .fb-links{display:flex;gap:16px;flex-wrap:wrap}

/* ============================================================
   29. LOADER + TOAST
   ============================================================ */
#loader{
  position:fixed;inset:0;z-index:300;
  background:var(--bg);
  display:grid;place-items:center;
  transition:opacity .45s var(--ease),visibility .45s;
}


#loader .loader-bar,
#loader .loader-text {
  transition: opacity 180ms ease;
}

#loader.is-transitioning .loader-bar,
#loader.is-transitioning .loader-text {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  #loader .loader-bar,
  #loader .loader-text {
    transition: none;
  }
}



#loader[data-done="true"]{opacity:0;visibility:hidden}
.loader-inner{display:grid;justify-items:center;gap:16px}
.loader-inner img {
  width: 48px;
  height: 48px;
  animation: lpulse 1.6s var(--ease) 1 both;
  view-transition-name: jitapp-logo;
}
@keyframes lpulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(.92);opacity:.72}}
.loader-bar{
  width:120px;height:2px;
  background:var(--border);
  overflow:hidden;
}
.loader-bar span{
  display:block;height:100%;width:100%;
  background:var(--brand-grad);
  animation:none;
}
@keyframes lslide{0%{transform:translateX(-105%)}100%{transform:translateX(255%)}}
.loader-text{
  font-family:var(--font-mono);
  font-size: 11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--text-3);
  font-weight:500;
}

#toast-host{
  position:fixed;
  left:50%;bottom:26px;
  transform:translateX(-50%);
  z-index:210;
  display:grid;gap:8px;justify-items:center;
  pointer-events:none;
  width:max-content;
  max-width:calc(100vw - 32px);
}
body[data-reading="true"] #toast-host{bottom:26px}
.toast{
  background:var(--text);
  color:var(--bg);
  padding:10px 16px;
  border-radius:var(--r-sm);
  font-size:12.5px;
  font-weight:500;
  box-shadow:var(--shadow-md);
  animation:tin .28s var(--ease);
}
@keyframes tin{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* ============================================================
   30. AUTH MODAL
   ============================================================ */
.modal{
  position:fixed;inset:0;z-index:200;
  display:grid;place-items:center;
  padding:20px;
  opacity:0;visibility:hidden;
  transition:opacity .22s var(--ease),visibility .22s;
}
.modal[data-open="true"]{opacity:1;visibility:visible}
.modal-backdrop{
  position:absolute;inset:0;
  background:rgba(11,21,36,.52);
  backdrop-filter:blur(8px) saturate(140%);
  -webkit-backdrop-filter:blur(8px) saturate(140%);
}
.modal-panel{
  position:relative;z-index:1;
  width:100%;max-width:440px;
  background:var(--surface);
  border:1px solid var(--border-2);
  border-radius:var(--r-sm);
  padding:clamp(28px,4vw,38px);
  box-shadow:0 40px 90px -40px rgba(11,21,36,.55);
  transform:translateY(12px) scale(.97);
  transition:transform .3s var(--ease);
  max-height:calc(100vh - 40px);
  overflow-y:auto;
}
.modal[data-open="true"] .modal-panel{transform:none}
.modal-close{
  position:absolute;top:12px;right:12px;
  width:32px;height:32px;
  border-radius:var(--r-sm);
  color:var(--text-3);
  display:grid;place-items:center;
  transition:background .16s var(--ease),color .16s var(--ease);
}
.modal-close:hover{background:var(--surface-2);color:var(--text)}
.modal-close svg{width:16px;height:16px}
.modal-logo{
  width:40px;height:40px;
  margin-bottom:16px;display:block;
}
.modal h2{
  font-family:var(--font-serif);
  font-size:clamp(22px,2.4vw,27px);
  font-weight:500;
  letter-spacing:-.025em;
  line-height:1.14;
  margin-bottom:10px;
  max-width:22ch;
}
.modal .modal-desc{
  font-size:13.5px;
  color:var(--text-2);
  line-height:1.6;
  margin-bottom:20px;
}
.modal-form .form-row{margin-bottom:12px}
.modal-form .form-row label{font-size: 11px;margin-bottom:5px}
.modal-form .form-row .input,
.modal-form .form-row .select{padding:9px 11px;font-size:13.5px}
.modal-actions{display:flex;flex-direction:column;gap:8px;margin-top:18px}
.modal-divider{
  display:flex;align-items:center;gap:12px;
  margin:16px 0 12px;
  font-family:var(--font-mono);
  font-size: 11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--text-3);
}
.modal-divider::before,.modal-divider::after{
  content:"";flex:1;height:1px;background:var(--border);
}
.modal-foot-note{
  font-size:12.5px;
  color:var(--text-3);
  text-align:center;
  line-height:1.55;
  margin-top:14px;
}
.modal-link{
  color:var(--text);
  font-weight:600;
  text-decoration:underline;
  text-decoration-color:var(--peri);
  text-decoration-thickness:1.5px;
  text-underline-offset:3px;
}
.modal-link:hover{text-decoration-color:var(--text)}
.modal-inline-error{
  color:#c0392b;
  font-size:12.5px;
  margin-bottom:12px;
  padding:8px 11px;
  background:rgba(192,57,43,.08);
  border-radius:var(--r-sm);
  border:1px solid rgba(192,57,43,.22);
  line-height:1.5;
}
[data-theme="dark"] .modal-inline-error{
  color:#ff8a7a;
  background:rgba(255,138,122,.1);
  border-color:rgba(255,138,122,.42);
}
.auth-error-actions{display:flex;gap:9px;justify-content:center;flex-wrap:wrap}
.modal-error-state{text-align:center;padding:8px 0}
.modal-error-state h2{margin-left:auto;margin-right:auto}
.modal-error-state .modal-desc{margin-left:auto;margin-right:auto;max-width:34ch}

/* ============================================================
   31. REVEAL
   ============================================================ */
.reveal{opacity:0;transform:translateY(10px)}
.reveal[data-shown="true"]{
  opacity:1;transform:none;
  transition:opacity .5s var(--ease),transform .5s var(--ease);
}

/* ============================================================
   32. RESPONSIVE
   ============================================================ */
@media (max-width:1180px){
  .footer-grid{grid-template-columns:1fr 1fr}
  .article-layout{grid-template-columns:1fr}
  .toc{
    position:static;order:2;
    margin-top:32px;padding-top:22px;
    border-top:1px solid var(--border);
  }
  .toc ol{border-left:0;columns:2;column-gap:20px}
  .toc li button{border-left:0;padding-left:0}
}

@media (max-width:1024px){
  .hero-grid{grid-template-columns:1fr;gap:32px}
  .hero-visual{max-width:100%;margin-left:0}
  .start-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .latest-grid{grid-template-columns:1fr;gap:32px}
  .feature{grid-template-columns:1fr;gap:22px}
  .feature .cover{aspect-ratio:16/9}
  .explore-grid{grid-template-columns:repeat(6,1fr)}
  .xl{grid-column:span 6}
  .xm{grid-column:span 3}
  .xs{grid-column:span 6}
  .split{grid-template-columns:1fr}
  .col-7,.col-5,.col-6,.col-4,.col-8{grid-column:span 12}
  .col-7 + .col-5,.col-6 + .col-6{margin-top:32px}
  .grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stat-row{grid-template-columns:repeat(2,1fr)}
  .stat:nth-child(2){border-right:0}
  .stat:nth-child(1),.stat:nth-child(2){border-bottom:1px solid var(--border)}
  .res{grid-template-columns:1fr;gap:14px}
}

@media (max-width:900px){
  .app-shell{
    padding-left:0;
    padding-top:var(--mobile-bar-h);
    padding-bottom:calc(60px + env(safe-area-inset-bottom));
  }
  .mobile-topbar{display:flex}
  .bottom-nav{display:block}
  .sidebar{
    width:280px;
    transform:translateX(-100%);
    transition:transform .34s var(--ease-out),box-shadow .34s var(--ease-out);
    box-shadow:none;
  }
  .sidebar[data-open="true"]{
    transform:none;
    box-shadow:20px 0 60px -20px rgba(11,21,36,.35);
  }
  .reading-bar{left:0;top:var(--mobile-bar-h)}
  body[data-reading="true"] .app-shell{
    padding-top:var(--mobile-bar-h);
    padding-bottom:calc(60px + env(safe-area-inset-bottom));
  }
}

@media (max-width:720px){
  .c-item{grid-template-columns:1fr;gap:14px}
  .c-item .cover{aspect-ratio:16/9;order:-1}
  .row{grid-template-columns:1fr}
  .row .thumb{display:none}
  .path{grid-template-columns:32px minmax(0,1fr);gap:14px}
  .path .pmeta{grid-column:2;margin-top:4px;flex-wrap:wrap}
  .grid-2{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr;gap:26px}
  .article-head h1{max-width:none}
  .prose{font-size:16.5px}
  .toc ol{columns:1}
  .byline-tools{width:100%;margin-left:0}
  .author-box{flex-direction:column;gap:12px}
  .start-grid{grid-template-columns:1fr}
  .explore-grid{grid-template-columns:1fr}
  .xl,.xm,.xs{grid-column:span 1}
  .module-title-row{grid-template-columns:1fr;gap:10px}
  .module-sub{text-align:left;max-width:100%}
  .demo-caption{min-height:140px}
}

@media (max-width:480px){
  .demo-node-label{display:none}
  .demo-svg{margin:0 0 4px}
  .demo-shell{padding:16px 14px 12px}
  .bottom-nav a{font-size: 11px}
  .mobile-brand span{display:none}
  .hero h1{font-size:34px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
  .reveal{opacity:1;transform:none}
}
html[data-motion="reduced"] .reveal{opacity:1;transform:none;transition:none}
html[data-motion="reduced"] *{animation-duration:.001ms !important;transition-duration:.001ms !important}

@media print{
  .sidebar,.mobile-topbar,.bottom-nav,.site-footer,.reading-bar,.byline-tools,.toc,.account-banner,.article-pager{display:none !important}
  .app-shell{padding:0}
  .article-layout{grid-template-columns:1fr;padding:0}
}


/* JITAPP loading-logo transition */
.jitapp-vt-logo {
  view-transition-name: jitapp-logo;
}

::view-transition-group(jitapp-logo) {
  animation-duration: 850ms;
  animation-timing-function: cubic-bezier(.22, .75, .3, 1);
}

::view-transition-old(jitapp-logo),
::view-transition-new(jitapp-logo) {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(jitapp-logo),
  ::view-transition-old(jitapp-logo),
  ::view-transition-new(jitapp-logo) {
    animation-duration: 1ms !important;
  }
}


@view-transition {
  navigation: auto;
}

/* ============================================================
   PRODUCT FEATURES — help, feedback, notes, admin and policies
   ============================================================ */
.feature-page{max-width:1120px;margin:0 auto;padding:clamp(28px,5vw,64px) 0 84px}
.feature-head{max-width:760px;margin-bottom:34px}
.feature-head .eyebrow,.feature-kicker{font:600 10px/1.4 var(--font-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--text-3)}
.feature-head h1{font-family:var(--font-serif);font-size:clamp(34px,5vw,58px);font-weight:500;line-height:1.04;letter-spacing:-.04em;margin:10px 0 14px}
.feature-head .lede{max-width:680px;color:var(--text-2);font-size:16px;line-height:1.7}
.feature-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:18px;align-items:start}
.feature-grid--help{grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr)}
.feature-grid--notes{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
.feature-panel{min-width:0;padding:clamp(20px,3vw,30px);border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface);box-shadow:0 8px 28px rgba(20,24,40,.035)}
.feature-panel h2{font:500 23px/1.2 var(--font-serif);letter-spacing:-.02em;margin:0 0 12px}
.feature-panel p{color:var(--text-2);font-size:14px;line-height:1.75;margin:0 0 14px}
.feature-panel--wide{grid-row:span 2}
.feature-panel-heading,.feature-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.feature-section-head{align-items:end;margin-bottom:18px}
.feature-section-head h2{font:500 clamp(23px,3vw,32px)/1.15 var(--font-serif);margin:5px 0 8px}
.feature-section-head p{color:var(--text-2);font-size:14px;margin:0}
.feature-section-head .link-arrow{white-space:nowrap}
.feature-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:16px}
.feature-privacy-note,.legal-disclaimer{font-size:12px!important;color:var(--text-3)!important;line-height:1.65!important}
.feature-link-list{display:grid;gap:10px}
.feature-link-list a{color:var(--text-1);text-decoration:none;font-size:14px;padding:7px 0;border-bottom:1px solid var(--border)}
.feature-link-list a:hover{color:var(--peri)}
.faq-item{border-bottom:1px solid var(--border);padding:0}
.faq-item:first-of-type{border-top:1px solid var(--border)}
.faq-item summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none;padding:15px 0;font-size:14px;font-weight:600;color:var(--text-1)}
.faq-item summary::-webkit-details-marker{display:none}
.faq-plus{font-size:20px;line-height:1;color:var(--text-3);transition:transform .2s}
.faq-item[open] .faq-plus{transform:rotate(45deg)}
.faq-answer{padding:0 28px 14px 0}
.faq-answer p{margin:0}
.legal-document{max-width:850px}
.legal-updated{font:11px var(--font-mono);color:var(--text-3)!important;margin-bottom:22px!important}
.legal-section{padding:18px 0;border-top:1px solid var(--border)}
.legal-section h2{font-size:19px;margin-bottom:8px}
.legal-section p{margin:0;max-width:760px}
.legal-disclaimer{margin-top:24px!important;padding-top:18px;border-top:1px solid var(--border)}
.feedback-question h2{font-size:27px;max-width:620px;margin-top:8px}
.feedback-question p{margin-bottom:18px}
.nps-scale{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));gap:6px;border:0;padding:0;margin:18px 0 8px}
.nps-option{position:relative;cursor:pointer}
.nps-option input{position:absolute;opacity:0;inset:0;width:100%;height:100%;cursor:pointer}
.nps-option span{display:grid;place-items:center;min-height:44px;border:1px solid var(--border-2);border-radius:8px;font-weight:600;font-size:14px;background:var(--surface-2);color:var(--text-1);transition:border-color .15s,background .15s,color .15s}
.nps-option input:checked+span{background:var(--brand-ink);border-color:var(--brand-ink);color:#fff}
.nps-option input:focus-visible+span{outline:3px solid var(--peri);outline-offset:2px}
.nps-labels{display:flex;justify-content:space-between;color:var(--text-3);font-size:11px;margin-bottom:22px}
.form-status{font-size:12px;color:var(--text-2)}
.feature-error{padding:16px;border:1px solid var(--border);border-radius:10px;color:var(--text-2)}
.count-pill{display:inline-grid;place-items:center;min-width:27px;height:27px;padding:0 8px;border-radius:99px;background:var(--surface-2);font-size:12px;font-weight:600}
.note-list,.admin-record-list,.notification-list{display:grid;gap:12px}
.note-card,.admin-record,.notification-item{border:1px solid var(--border);border-radius:10px;padding:16px;background:var(--surface-2)}
.note-card h3,.admin-record h3,.notification-copy h3{font-size:15px;font-weight:600;margin:8px 0}
.note-card p,.admin-record p,.notification-copy p{font-size:13px;line-height:1.65;color:var(--text-2);margin:0 0 10px;overflow-wrap:anywhere}
.note-card-top,.record-meta{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.muted{font-size:11px;color:var(--text-3)}
.empty-feature{padding:30px 12px;text-align:center}
.empty-feature h2{font:500 22px var(--font-serif)}
.empty-feature p{max-width:480px;margin:0 auto;color:var(--text-2)}
.notification-item{display:flex;gap:13px;align-items:flex-start}
.notification-item[data-read="false"]{border-color:var(--peri);background:color-mix(in srgb,var(--peri) 5%,var(--surface))}
.notification-dot{width:8px;height:8px;border-radius:50%;background:var(--peri);margin-top:6px;flex:0 0 auto}
.notification-item[data-read="true"] .notification-dot{background:var(--border-2)}
.notification-copy{flex:1;min-width:0}
.notification-copy h3{margin:0 0 4px}
.notification-copy p{margin-bottom:5px}
.notification-actions{display:flex;gap:5px;flex-wrap:wrap}
.reported-preview{padding:16px;background:var(--surface-2);border-radius:9px;margin-bottom:18px}
.reported-preview h2{margin:7px 0;font-size:18px}
.reported-preview p{margin:0}
.admin-tabs{display:flex;gap:6px;flex-wrap:wrap;padding:6px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2);margin-bottom:20px}
.admin-tabs a{padding:9px 13px;border-radius:8px;color:var(--text-2);text-decoration:none;font-size:12px;font-weight:600}
.admin-tabs a[aria-current="page"]{background:var(--surface);color:var(--text-1);box-shadow:0 1px 5px rgba(0,0,0,.06)}
.admin-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.admin-stat{padding:18px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}
.admin-stat span,.admin-stat small{display:block;color:var(--text-3);font-size:11px}
.admin-stat strong{display:block;font:500 30px var(--font-serif);margin:7px 0}
.admin-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.admin-record blockquote{margin:12px 0;padding:10px 12px;border-left:2px solid var(--border-2);background:var(--surface);font-size:13px;color:var(--text-2)}
.admin-record small{font-size:10px;color:var(--text-3);overflow-wrap:anywhere}
.status-chip{display:inline-flex;padding:4px 8px;border-radius:99px;background:var(--surface);color:var(--text-2);font:600 10px var(--font-mono);text-transform:uppercase}
.status-chip--open{background:#fff0dc;color:#87530a}
.status-chip--published{background:#e4f5ec;color:#17683d}
.status-chip--draft{background:var(--surface);color:var(--text-3)}
.status-chip--dismissed{background:var(--surface);color:var(--text-3)}
.nps-summary{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:22px;border:1px solid var(--border);border-radius:11px;margin-bottom:16px;background:var(--surface-2)}
.nps-summary strong{display:block;font:500 46px var(--font-serif);margin:4px 0}
.nps-summary small{color:var(--text-3);font-size:11px}
.nps-breakdown{display:grid;gap:9px;min-width:160px}
.nps-breakdown span{display:flex;justify-content:space-between;gap:20px;color:var(--text-2);font-size:13px}
.admin-editorial-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.feature-recommendations{margin-top:clamp(40px,6vw,76px);padding-top:30px;border-top:1px solid var(--border)}
.feature-rec-card{padding:18px;border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface)}
.feature-rec-card h3{font:500 19px/1.2 var(--font-serif);margin:10px 0}
.feature-rec-card h3 a{color:var(--text-1);text-decoration:none}
.feature-rec-card p{font-size:13px;line-height:1.6;color:var(--text-2);margin-bottom:14px}
.nav-feature-icon{width:18px;display:inline-flex;justify-content:center;align-items:center;font-size:15px;color:var(--text-3)}
.nav-count{margin-left:auto;font-size:10px;color:var(--peri);font-weight:700}
@media(max-width:900px){.feature-grid,.feature-grid--help,.feature-grid--notes,.admin-editorial-layout{grid-template-columns:1fr}.feature-panel--wide{grid-row:auto}.admin-overview-grid{grid-template-columns:1fr 1fr}.admin-stat-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.feature-page{padding-top:24px}.nps-scale{gap:3px}.nps-option span{min-height:38px;font-size:12px;border-radius:6px}.feature-panel{padding:18px}.notification-item{flex-wrap:wrap}.notification-actions{width:100%;padding-left:20px}.admin-overview-grid{grid-template-columns:1fr}.nps-summary{align-items:flex-start;flex-direction:column}}

.comment-report-link{display:inline-flex;margin-top:8px;color:var(--text-3);font-size:11px;text-decoration:underline;text-underline-offset:3px}.comment-report-link:hover{color:var(--peri)}
.feature-feedback-prompt{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 0;margin-top:34px;border-top:1px solid var(--border)}.feature-feedback-prompt h2{font:500 25px/1.2 var(--font-serif);margin:7px 0}.feature-feedback-prompt p{max-width:600px;color:var(--text-2);font-size:14px;line-height:1.6;margin:0}
@media(max-width:600px){.feature-feedback-prompt{align-items:flex-start;flex-direction:column}}

/* Administrator account directory */
.admin-loading{display:flex;align-items:center;gap:12px;min-height:92px}
.admin-loading p{margin:0}
.admin-loading-dot{width:9px;height:9px;border-radius:50%;background:var(--peri);box-shadow:0 0 0 5px color-mix(in srgb,var(--peri) 14%,transparent)}
.admin-denied-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--surface-2);color:var(--text-2);font-size:26px;margin-bottom:14px}
.admin-users-section{display:grid;gap:14px}
.admin-users-toolbar{display:flex;align-items:end;justify-content:space-between;gap:22px;padding:8px 0 4px}
.admin-users-toolbar h2{font:500 clamp(23px,3vw,30px)/1.15 var(--font-serif);margin:6px 0}
.admin-users-toolbar p{max-width:650px;color:var(--text-2);font-size:13px;line-height:1.65;margin:0}
.admin-user-search{display:flex;align-items:center;gap:9px;flex:0 1 280px;min-width:220px;padding:0 12px;border:1px solid var(--border-2);border-radius:9px;background:var(--surface);color:var(--text-3)}
.admin-user-search input{width:100%;min-width:0;height:42px;border:0;outline:0;background:transparent;color:var(--text-1);font:inherit;font-size:13px}
.admin-users-summary{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:11px 14px;border:1px solid var(--border);border-radius:9px;background:var(--surface-2);color:var(--text-3);font-size:11px}
.admin-users-summary strong{color:var(--text-1);font-size:13px}
.admin-user-list{display:grid;gap:9px}
.admin-user-card{display:flex;align-items:center;justify-content:space-between;gap:18px;min-width:0;padding:16px;border:1px solid var(--border);border-radius:12px;background:var(--surface);transition:border-color .18s ease,background .18s ease}
.admin-user-card:hover{border-color:var(--border-2);background:var(--surface-2)}
.admin-user-main{display:flex;align-items:flex-start;gap:13px;min-width:0;flex:1}
.admin-user-avatar{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:color-mix(in srgb,var(--peri) 13%,var(--surface-2));color:var(--peri);font:600 16px var(--font-sans)}
.admin-user-copy{min-width:0;flex:1}
.admin-user-name-line{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.admin-user-name-line h3{margin:0;color:var(--text-1);font-size:14px;font-weight:650;overflow-wrap:anywhere}
.admin-user-email{margin:3px 0 7px!important;color:var(--text-2)!important;font-size:12px!important;overflow-wrap:anywhere}
.admin-user-uid{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
.admin-user-uid code{font:11px/1.5 var(--font-mono);color:var(--text-3);overflow-wrap:anywhere}
.admin-copy-uid{padding:2px 7px;border:1px solid var(--border);border-radius:5px;background:transparent;color:var(--text-2);font:600 10px var(--font-sans);cursor:pointer}
.admin-copy-uid:hover{border-color:var(--peri);color:var(--peri)}
.admin-user-meta{display:flex;gap:12px;flex-wrap:wrap;margin-top:9px;color:var(--text-3);font-size:10px}
.admin-user-side{display:grid;justify-items:end;gap:12px;flex:0 0 auto}
.admin-user-flags{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.admin-role,.admin-user-status{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:99px;background:var(--surface-2);color:var(--text-2);font:600 10px/1.3 var(--font-mono);letter-spacing:.01em}
.admin-role--admin{background:color-mix(in srgb,var(--peri) 13%,var(--surface));color:var(--peri)}
.admin-role--moderator{background:color-mix(in srgb,#248b68 12%,var(--surface));color:#248b68}
.admin-user-status--active{color:#23845f}
.admin-user-status--active i{width:6px;height:6px;border-radius:50%;background:currentColor}
.admin-user-status--banned{background:rgba(190,55,55,.10);color:#c24949}
.admin-user-status--disabled{color:#a66c23;background:rgba(190,130,40,.10)}
.admin-protected-label{font-size:10px;color:var(--text-3)}
.admin-user-actions{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.btn--danger-soft{border:1px solid rgba(190,55,55,.25);background:rgba(190,55,55,.06);color:#c24949}
.btn--danger-soft:hover:not(:disabled){background:rgba(190,55,55,.12);border-color:rgba(190,55,55,.4)}
.admin-user-pagination{display:flex;align-items:center;justify-content:center;gap:16px;padding:8px 0}
.admin-user-pagination span{min-width:56px;text-align:center;color:var(--text-3);font-size:11px}
.admin-user-card[hidden]{display:none!important}
@media(max-width:760px){.admin-users-toolbar{align-items:stretch;flex-direction:column}.admin-user-search{flex-basis:auto;width:100%}.admin-user-card{align-items:stretch;flex-direction:column}.admin-user-side{justify-items:start;gap:10px}.admin-user-flags,.admin-user-actions{justify-content:flex-start}.admin-user-actions{width:100%}}
@media(max-width:420px){.admin-user-card{padding:13px}.admin-user-main{gap:10px}.admin-user-avatar{width:34px;height:34px;flex-basis:34px;border-radius:10px}.admin-user-meta{display:grid;gap:4px}.admin-user-actions .btn{flex:1}}

/* Shared feature-page interaction polish */
.feature-head{position:relative;padding-bottom:22px;border-bottom:1px solid var(--border)}
.feature-head .eyebrow{display:inline-flex;align-items:center;gap:8px;padding:6px 9px;border:1px solid var(--border);border-radius:99px;background:var(--surface-2)}
.feature-head .lede{max-width:720px}
.feature-panel{transition:border-color .18s ease,box-shadow .18s ease}
.feature-panel:focus-within{border-color:color-mix(in srgb,var(--peri) 40%,var(--border))}
.feature-panel :is(input,select,textarea):focus-visible{outline:2px solid color-mix(in srgb,var(--peri) 55%,transparent);outline-offset:2px}
.faq-item{border-bottom:1px solid var(--border)}
.faq-item:last-child{border-bottom:0}
.faq-item summary{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 2px;list-style:none;color:var(--text-1);font-size:14px;font-weight:600;cursor:pointer}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary:hover{color:var(--peri)}
.faq-plus{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border:1px solid var(--border);border-radius:50%;color:var(--text-3);font-size:17px;font-weight:400;transition:transform .18s ease,background .18s ease,color .18s ease}
.faq-item[open] .faq-plus{transform:rotate(45deg);background:var(--surface-2);color:var(--peri)}
.faq-answer{padding:0 34px 13px 2px;animation:feature-answer-in .18s ease both}
.faq-answer p{max-width:700px;margin:0!important}
@keyframes feature-answer-in{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
.feedback-form{display:grid;gap:17px}
.feedback-question h2{max-width:660px;font:500 clamp(21px,3vw,29px)/1.2 var(--font-serif);margin:8px 0}
.feedback-question p{margin:0;color:var(--text-2)}
.nps-scale{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));gap:6px;margin:0;padding:0;border:0}
.nps-option{position:relative;display:block;cursor:pointer}
.nps-option input{position:absolute;opacity:0;pointer-events:none}
.nps-option span{display:grid;place-items:center;min-height:45px;border:1px solid var(--border);border-radius:8px;background:var(--surface-2);color:var(--text-2);font-size:13px;font-weight:650;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}
.nps-option:hover span{border-color:var(--peri);transform:translateY(-2px)}
.nps-option input:checked+span{border-color:var(--peri);background:var(--peri);color:#fff;box-shadow:0 5px 14px color-mix(in srgb,var(--peri) 23%,transparent)}
.nps-option input:focus-visible+span{outline:2px solid var(--peri);outline-offset:3px}
.nps-labels{display:flex;justify-content:space-between;gap:12px;color:var(--text-3);font-size:10px}
.note-card{transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.note-card:hover{transform:translateY(-2px);border-color:var(--border-2);box-shadow:0 8px 22px rgba(20,24,40,.05)}
.notification-item{transition:border-color .16s ease,background .16s ease}
.notification-item:hover{border-color:var(--border-2)}
.reported-preview{border:1px solid var(--border);background:var(--surface-2)}
.reported-preview .feature-kicker{display:block;margin-bottom:5px}
.admin-tabs{position:sticky;top:12px;z-index:4;backdrop-filter:blur(12px);box-shadow:0 5px 18px rgba(20,24,40,.04)}
.admin-stat{transition:transform .16s ease,border-color .16s ease}
.admin-stat:hover{transform:translateY(-2px);border-color:var(--border-2)}
.admin-overview-grid .feature-panel{height:100%}
.admin-overview-grid .feature-panel .link-arrow{display:inline-flex;margin-top:8px;font-size:12px;font-weight:650}
.admin-record{transition:border-color .16s ease,background .16s ease}
.admin-record:hover{border-color:var(--border-2)}
@media(prefers-reduced-motion:reduce){.feature-answer-in,.note-card,.notification-item,.admin-stat,.admin-user-card{animation:none!important;transition:none!important}}
@media(max-width:560px){.feature-head{padding-bottom:17px}.faq-item summary{padding:14px 0;font-size:13px}.nps-scale{grid-template-columns:repeat(6,minmax(0,1fr))}.nps-option span{min-height:42px}.admin-tabs{position:static;gap:4px}.admin-tabs a{padding:8px 10px}}


/* Spark-plan account directory: display only; privileged account mutations are local Admin SDK operations. */
.admin-user-readonly-label{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid var(--border);border-radius:8px;color:var(--text-2);font-size:11px;font-weight:600;background:var(--surface-2)}
.admin-account-operations{margin-top:18px;padding:20px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2)}
.admin-account-operations h3{margin:7px 0;font-size:16px}
.admin-account-operations p{max-width:760px;color:var(--text-2);font-size:13px;line-height:1.65}
.admin-account-operations code{font-size:12px}

.admin-account-check{display:grid;gap:9px;margin:18px 0;padding:16px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2)}
.admin-account-check strong{font-size:15px;color:var(--text-1)}
.admin-account-check code{overflow-wrap:anywhere;font-size:12px;color:var(--text-2)}
.admin-account-check p{margin:4px 0 0;font-size:13px;line-height:1.65}


/* ============================================================
   4A. TOP NAVIGATION — landing-page aligned application header
   ============================================================ */
:root { --app-topbar-height: 76px; }
.app-shell { padding-left: 0 !important; padding-top: var(--app-topbar-height); }
.app-topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  min-height: var(--app-topbar-height); display: flex; align-items: center;
  gap: clamp(12px, 2vw, 28px); padding: 0 clamp(16px, 3vw, 42px);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}
.topbar-brand { display:flex; align-items:center; gap:10px; flex:0 0 auto; color:var(--text); font:600 19px/1 var(--font-serif); letter-spacing:-.025em; }
.topbar-brand img { width:28px; height:28px; }
.topbar-search { display:flex; align-items:center; gap:9px; min-width:150px; max-width:210px; padding:9px 11px; border:1px solid var(--border); border-radius:var(--r-sm); color:var(--text-3); background:var(--surface); font-size:12px; }
.topbar-search svg { width:15px; height:15px; flex:none; }
.topbar-search kbd { margin-left:auto; font:11px var(--font-mono); color:var(--text-3); }
.topbar-nav { display:flex; align-items:center; justify-content:center; gap:clamp(2px, .7vw, 12px); flex:1; min-width:0; }
.topnav-home,.topnav-trigger { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:0 13px; border-radius:var(--r-sm); color:var(--text-2); font-size:13px; font-weight:550; white-space:nowrap; transition:background .16s ease,color .16s ease; }
.topnav-notifications { display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 12px;border-radius:var(--r-sm);color:var(--text-2);font-size:13px;font-weight:550;white-space:nowrap;transition:background .16s ease,color .16s ease; }
.topnav-notifications svg { width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }
.topnav-notifications:hover,.topnav-notifications.is-active,.topnav-notifications[aria-current="page"] { background:var(--surface-2);color:var(--text); }
.topnav-notifications .nav-count { display:inline-grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:99px;background:var(--peri);color:#0b1524;font-size:10px;line-height:1;font-weight:750; }
.topnav-notifications .nav-count[hidden] { display:none !important; }
.topnav-home svg { width:16px;height:16px; fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }
.topnav-home:hover,.topnav-trigger:hover,.topnav-group:focus-within > .topnav-trigger,.topnav-home.is-active,.topnav-group.is-active > .topnav-trigger { background:var(--surface-2); color:var(--text); }
.topnav-group { position:relative; }
.topnav-trigger { border:0; background:transparent; cursor:pointer; font:inherit; }
.topnav-trigger svg { width:14px;height:14px; fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; transition:transform .18s ease; }
.topnav-group.is-open .topnav-trigger svg { transform:rotate(180deg); }
.topnav-menu { position:absolute; top:calc(100% + 10px); left:50%; transform:translate(-50%,-5px); min-width:220px; max-width:min(300px, calc(100vw - 24px)); padding:7px; border:1px solid var(--border); border-radius:var(--r-md); background:var(--surface); box-shadow:0 18px 48px rgba(0,0,0,.18); opacity:0; visibility:hidden; pointer-events:none; transition:opacity .16s ease,transform .16s ease,visibility .16s; }
.topnav-group.is-open .topnav-menu { opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,0); }
.topnav-link { display:flex;align-items:center;gap:10px;min-height:38px;padding:8px 10px;border-radius:var(--r-sm);color:var(--text-2);font-size:13px;line-height:1.3; }
.topnav-link:hover,.topnav-link[aria-current="page"] { background:var(--surface-2);color:var(--text); }
.topnav-link[aria-current="page"] { font-weight:650; }
.topnav-link svg { width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }
.topnav-feature-nav { border-top:1px solid var(--border); margin-top:6px; padding-top:6px; }
.topnav-feature-nav:empty { display:none; }
.topbar-actions { display:flex;align-items:center;gap:7px;flex:0 0 auto; }
.topbar-account { display:flex;align-items:center;gap:8px;max-width:145px;color:var(--text-2);font-size:12px; }
.topbar-account .avatar { width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:var(--surface-2);color:var(--text);font-weight:650; }
.topbar-account-name { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.topbar-actions .sidebar-control { width:34px;height:34px;display:grid;place-items:center;border-radius:var(--r-sm);color:var(--text-2); }
.topbar-actions .sidebar-control:hover { background:var(--surface-2); }
.topbar-actions .sidebar-control svg { width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }
.topbar-menu { display:none; }
.sidebar-backdrop { display:none !important; }
@media (max-width: 900px) {
  .app-topbar { gap:12px;padding:0 16px; }
  .topbar-search { max-width:42px;min-width:42px;padding:10px;overflow:hidden; }
  .topbar-search span,.topbar-search kbd { display:none; }
  .topbar-nav { gap:0; }
  .topnav-home,.topnav-trigger,.topnav-notifications { padding:0 8px;font-size:12px; }
  .topbar-account-name { display:none; }
}
@media (max-width: 860px) {
  :root { --app-topbar-height: 64px; }
  .app-topbar { min-height:64px;gap:9px;padding:0 12px; }
  .topbar-menu { display:flex;flex-direction:column;justify-content:center;gap:4px;width:34px;height:36px;padding:7px;border-radius:var(--r-sm); }
  .topbar-menu span { display:block;width:19px;height:2px;background:var(--text-2);border-radius:2px; }
  .topbar-brand { gap:7px;font-size:17px; }
  .topbar-brand img { width:25px;height:25px; }
  .topbar-search { margin-left:auto; }
  .topbar-nav {
    display:none;position:absolute;top:calc(100% + 1px);left:0;right:0;
    align-items:stretch;flex-direction:column;gap:3px;
    max-height:calc(100vh - var(--app-topbar-height) - env(safe-area-inset-bottom) - 8px);
    max-height:calc(100dvh - var(--app-topbar-height) - env(safe-area-inset-bottom) - 8px);
    overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;
    touch-action:pan-y;scrollbar-width:thin;
    padding:10px 14px calc(14px + env(safe-area-inset-bottom));
    background:var(--bg);border-bottom:1px solid var(--border);
    box-shadow:0 16px 30px rgba(0,0,0,.12);
  }
  .app-topbar.mobile-nav-open .topbar-nav { display:flex; }
  .topnav-home,.topnav-trigger,.topnav-notifications { justify-content:space-between;width:100%;min-height:42px;padding:0 12px; }
  .topnav-group { width:100%; }
  .topnav-menu { position:static;transform:none;display:none;min-width:0;max-width:none;margin:2px 0 6px 8px;padding:5px;border:0;border-left:1px solid var(--border);border-radius:0;background:transparent;box-shadow:none;opacity:1;visibility:visible;pointer-events:auto; }
  .topnav-group.is-open .topnav-menu { display:block;transform:none; }
  
  .topbar-actions { margin-left:0; }
  .topbar-actions .sidebar-control { display:none; }
  .topbar-account .avatar { width:29px;height:29px; }
}
@media (prefers-reduced-motion: reduce) {
  .topnav-menu,.topnav-trigger svg,.topnav-home,.topnav-trigger { transition:none !important; }
}

.notification-kind{display:inline-flex;margin-bottom:6px;color:var(--text-3);font:600 10px var(--font-mono);letter-spacing:.07em;text-transform:uppercase}
.admin-notification-composer .form-row{margin:16px 0}
.admin-notification-composer .form-row label{display:block;margin-bottom:7px;font-size:12px;font-weight:650;color:var(--text-2)}
.admin-notification-composer .input,.admin-notification-composer .textarea,.admin-notification-composer .select{width:100%;max-width:100%}
.admin-notification-composer .muted{font-weight:400}
#cover-preview{color:var(--text-3);font-size:13px;text-align:center;padding:12px}
#cover-preview img{display:block}
