/* ================================================================
   PANIC-KIT — phosphor console design tokens
   ----------------------------------------------------------------
   MODE: old yellow-green monochrome screen (Game Boy / CRT phosphor).
   Two real colors only: a yellow-green SCREEN and a dark-green INK.
   Every "gray" is a DITHER (checkerboard of ink pixels on screen).
   Hard pixels, no anti-aliasing. Scanlines + vignette = CRT glass.
   ================================================================ */
:root {
  /* --- palette (phosphor) --- */
  --ink:    #0f380f;   /* darkest green — text, lines, fills        */
  --paper:  #ede84f;   /* light yellow phosphor screen — the background */
  --panic:  #0f380f;   /* no red on a CRT — emphasis is heavy ink   */

  /* --- dither patterns (crisp SVG checkerboards, dark-green ink) --- */
  --dither-50: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2' shape-rendering='crispEdges'%3E%3Crect width='1' height='1' fill='%230f380f'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%230f380f'/%3E%3C/svg%3E");
  --dither-25: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2' shape-rendering='crispEdges'%3E%3Crect width='1' height='1' fill='%230f380f'/%3E%3C/svg%3E");

  /* --- type --- */
  --font-ui:   "Silkscreen", "Chicago", monospace;     /* headings, menus, buttons */
  --font-body: "Pixelify Sans", "Geneva", sans-serif;   /* body copy */
  --font-mono: "VT323", "Monaco", monospace;            /* technical readouts */

  /* --- metrics (everything bigger than the old build) --- */
  --menubar-h: 36px;
  --hard-shadow: 4px 4px 0 var(--ink);
  --border: 2px solid var(--ink);
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: never;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

html, body {
  margin: 0; padding: 0; height: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  cursor: default;
  -webkit-user-select: none; user-select: none;
  overflow: hidden;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ===========================================================
   CRT GLASS — scanlines + vignette overlay over everything
   =========================================================== */
#scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 100000;
  background: repeating-linear-gradient(
    to bottom,
    rgba(15,56,15,0)   0px, rgba(15,56,15,0)   2px,
    rgba(15,56,15,.12) 2px, rgba(15,56,15,.12) 3px);
}
#scanlines::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 120px rgba(15,56,15,.28);
}
body.noscan #scanlines { display: none; }
@media (prefers-reduced-motion: no-preference) {
  body:not(.noscan) #scanlines { animation: crtflicker 5s steps(60) infinite; }
}
@keyframes crtflicker { 0%,97%,100% { opacity: 1; } 98% { opacity: .82; } 99% { opacity: .94; } }

/* ===========================================================
   MENU BAR
   =========================================================== */
#menubar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--menubar-h);
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  display: flex; align-items: stretch;
  font-family: var(--font-ui); font-size: 15px;
  z-index: 9000;
}
.menu {
  position: relative; display: flex; align-items: center;
  padding: 0 14px; height: 100%; white-space: nowrap; cursor: pointer;
}
.menu.logo { padding: 0 12px; }
.menu.logo .picon { width: 22px; height: 22px; display: block; }
.menu:hover, .menu.open { background: var(--ink); color: var(--paper); }
.menu:hover .picon, .menu.open .picon { color: var(--paper); }
#menubar .spacer { flex: 1; }
#clock { display: flex; align-items: center; padding: 0 14px; font-family: var(--font-ui); font-size: 15px; }
.mobile-menu { display: none; }

.dropdown {
  position: absolute; top: 100%; left: -3px;
  min-width: 240px;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: var(--hard-shadow);
  padding: 5px 0; display: none; color: var(--ink);
}
.menu.open .dropdown { display: block; }
.dropdown li {
  list-style: none; padding: 7px 18px 6px 20px; font-size: 15px;
  display: flex; justify-content: space-between; gap: 22px; cursor: pointer;
}
.dropdown li .key { opacity: .8; }
.dropdown li:hover:not(.sep) { background: var(--ink); color: var(--paper); }
.dropdown li.sep {
  padding: 0; margin: 5px 0; height: 3px;
  background-image: var(--dither-25); background-size: 2px 2px;
}

/* ===========================================================
   HOME — main menu laid directly on the phosphor screen
   =========================================================== */
#desktop {
  position: fixed; inset: var(--menubar-h) 0 32px 0;
  background-color: var(--paper);
  background-image: none;
  overflow: auto;
  scrollbar-width: thin; scrollbar-color: var(--ink) var(--paper);
}
:root[data-wall="d25"] #desktop { background-image: var(--dither-25); background-size: 2px 2px; }
:root[data-wall="d50"] #desktop { background-image: var(--dither-50); background-size: 2px 2px; }

.home {
  max-width: 1080px; margin: 0 auto;
  padding: 40px 36px 64px;
  display: flex; flex-direction: column; gap: 36px;
}

/* hero block sits straight on the screen, no window */
.hero { max-width: 760px; }
.hero .eyebrow { margin-bottom: 14px; }
.hero .bighead { margin-bottom: 14px; }
.hero .lede { max-width: 620px; }
.hero .stat-strip { max-width: 620px; }

/* app launch tiles */
.tiles {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
}
.tile {
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--hard-shadow);
  padding: 20px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 12px;
  text-align: left; font-family: inherit; color: var(--ink);
}
.tile:hover, .tile:focus-visible, .tile.sel { background: var(--ink); color: var(--paper); outline: none; }
.tile:hover .picon, .tile:focus-visible .picon, .tile.sel .picon { color: var(--paper); }
.tile:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.tile .ico { width: 64px; height: 64px; }
.tile .ico .picon { width: 100%; height: 100%; display: block; }
.tile .tnum { font-family: var(--font-mono); font-size: 18px; }
.tile h3 { font-family: var(--font-ui); font-size: 21px; margin: 0; line-height: 1.15; }
.tile .tg { font-family: var(--font-body); font-size: 16px; line-height: 1.35; flex: 1; }
.tile .trow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tile .tplat { font-family: var(--font-mono); font-size: 16px; }
.tile .go { font-family: var(--font-ui); font-size: 14px; }

/* on-screen footer strip */
.home-strip {
  border-top: 3px solid var(--ink); padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: baseline;
  font-family: var(--font-mono); font-size: 18px;
}
.home-strip a { text-decoration: none; }
.home-strip a:hover { background: var(--ink); color: var(--paper); }
.home-strip .grow { flex: 1; }

/* ===========================================================
   STATUS BAR
   =========================================================== */
#statusbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 32px;
  background: var(--paper); border-top: 3px solid var(--ink);
  display: flex; align-items: center; gap: 16px; padding: 0 14px;
  font-family: var(--font-ui); font-size: 13px; z-index: 8000;
}
#statusbar .grow { flex: 1; }
#statusbar .well {
  background-image: var(--dither-25); background-size: 2px 2px;
  padding: 2px 10px; border: 2px solid var(--ink);
}

/* ===========================================================
   FULLSCREEN APP VIEW ("cartridge") + back bar
   =========================================================== */
.fsview {
  position: fixed; inset: 0; z-index: 9500;
  background: var(--paper);
  display: none; flex-direction: column;
}
.fsview.show { display: flex; }

.view-head {
  height: 52px; flex: none; position: relative;
  border-bottom: 3px solid var(--ink);
  display: flex; align-items: center; padding: 0 10px; gap: 12px;
  background: repeating-linear-gradient(
    to bottom, var(--ink) 0, var(--ink) 1px, var(--paper) 1px, var(--paper) 4px);
}
.back {
  font-family: var(--font-ui); font-size: 15px;
  background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink); padding: 7px 14px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  z-index: 2; line-height: 1;
}
.back:hover { background: var(--ink); color: var(--paper); }
.back:active { transform: translate(2px,2px); }
.view-head .vtitle {
  position: absolute; left: 50%; transform: translateX(-50%);
  background: var(--paper); padding: 0 14px;
  font-family: var(--font-ui); font-size: 17px; white-space: nowrap;
}
.view-head .vplat {
  margin-left: auto; font-family: var(--font-mono); font-size: 16px; white-space: nowrap;
  background: var(--paper); padding: 0 8px; z-index: 2;
}

.view-body {
  flex: 1; overflow: auto; padding: 32px 28px 64px;
  scrollbar-width: thin; scrollbar-color: var(--ink) var(--paper);
}
.view-body .inner { max-width: 760px; margin: 0 auto; }

/* retro dithered scrollbar (WebKit) */
.view-body::-webkit-scrollbar, #desktop::-webkit-scrollbar { width: 18px; height: 18px; }
.view-body::-webkit-scrollbar-track, #desktop::-webkit-scrollbar-track {
  background-image: var(--dither-25); background-size: 2px 2px; background-color: var(--paper);
  border-left: 2px solid var(--ink);
}
.view-body::-webkit-scrollbar-thumb, #desktop::-webkit-scrollbar-thumb {
  background: var(--paper); border: 2px solid var(--ink);
}
.view-body::-webkit-scrollbar-thumb:active, #desktop::-webkit-scrollbar-thumb:active {
  background-image: var(--dither-50); background-size: 2px 2px;
}
.view-body::-webkit-scrollbar-button, #desktop::-webkit-scrollbar-button {
  background: var(--paper); border: 2px solid var(--ink); display: block; height: 18px;
}

/* ===========================================================
   GAME-STYLE LOADER ("inserting cartridge…")
   =========================================================== */
#loader {
  position: fixed; inset: 0; z-index: 9800;
  background: var(--paper);
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  text-align: center; padding: 24px;
}
#loader.show { display: flex; }
#loader .lico { width: 140px; height: 140px; }
#loader .lico .picon { width: 100%; height: 100%; display: block; }
@media (prefers-reduced-motion: no-preference) {
  #loader.show .lico { animation: blink 0.5s steps(1) infinite; }
}
@keyframes blink { 50% { opacity: 0.25; } }
#loader .lcap { font-family: var(--font-ui); font-size: 24px; }
#loader .lsub { font-family: var(--font-mono); font-size: 20px; }
#loader .progress { width: min(360px, 80vw); height: 26px; }
#loader .lpct { font-family: var(--font-mono); font-size: 24px; }

/* shared progress bar — dithered fill */
.progress { height: 18px; border: 3px solid var(--ink); background: var(--paper); position: relative; }
.progress > i {
  display: block; height: 100%;
  background-image: var(--dither-50); background-size: 2px 2px; background-color: var(--paper);
  border-right: 3px solid var(--ink);
}

/* ===========================================================
   BOOT SCREEN (console power-on)
   =========================================================== */
#boot {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
#boot .picon { width: 128px; height: 128px; }
#boot .boot-cap { font-family: var(--font-ui); font-size: 18px; }
#boot .progress { width: 300px; }
#boot.gone { display: none; }

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn {
  font-family: var(--font-ui); font-size: 15px;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 11px;
  padding: 9px 20px 8px; cursor: pointer; line-height: 1;
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; text-decoration: none;
}
.btn:active { background: var(--ink); color: var(--paper); transform: translate(1px,1px); }
.btn:active .picon { color: var(--paper); }
.btn.primary { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); margin: 3px; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:hover .picon { color: var(--paper); }

/* picon = pixel-icon SVG host */
.picon { display: inline-block; color: var(--ink); line-height: 0; }
.picon svg { display: block; }

/* ===========================================================
   TYPE + CONTENT COMPONENTS
   =========================================================== */
h1, h2, h3, .ui { font-family: var(--font-ui); font-weight: 400; }
p { margin: 0 0 14px; }
.mono { font-family: var(--font-mono); font-size: 22px; line-height: 1.1; }

.eyebrow { font-family: var(--font-mono); font-size: 20px; line-height: 1; margin: 0 0 12px; display: inline-block; }
.bighead { font-family: var(--font-ui); font-size: 42px; line-height: 1.05; margin: 0 0 12px; }
.subhead { font-family: var(--font-body); font-size: 21px; margin: 0 0 14px; line-height: 1.3; }
.lede { font-size: 17px; line-height: 1.6; margin: 0 0 14px; }

/* stat strip */
.stat-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 3px solid var(--ink); margin: 18px 0; }
.stat { padding: 12px 14px; border-right: 3px solid var(--ink); display: flex; flex-direction: column; gap: 4px; }
.stat:last-child { border-right: none; }
.stat .num { font-family: var(--font-mono); font-size: 30px; line-height: 1.1; white-space: nowrap; }
.stat .lab { font-family: var(--font-ui); font-size: 11px; line-height: 1.2; }
@media (max-width: 620px) {
  .stat-strip { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-right: 3px solid var(--ink); }
  .stat:nth-child(even) { border-right: none; }
  .stat { border-bottom: 3px solid var(--ink); }
}

/* badge */
.badge { display: inline-block; font-family: var(--font-ui); font-size: 14px; background: var(--ink); color: var(--paper); padding: 6px 12px 5px; }

/* tag chips */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.tag { font-family: var(--font-ui); font-size: 13px; line-height: 1; border: 2px solid var(--ink); padding: 6px 9px 5px; }
.tag.fill { background: var(--ink); color: var(--paper); }

/* screenshot placeholder */
.shot {
  border: 3px solid var(--ink);
  background-image: var(--dither-25); background-size: 2px 2px; background-color: var(--paper);
  display: flex; align-items: center; justify-content: center; min-height: 150px; margin: 0 0 16px;
}
.shot span { font-family: var(--font-mono); font-size: 18px; white-space: nowrap; background: var(--paper); border: 2px solid var(--ink); padding: 5px 12px; }
.shot img { display: block; max-width: 100%; max-height: 540px; height: auto; image-rendering: pixelated; }

/* feature list — diamond bullets */
.feature-list { list-style: none; margin: 0 0 8px; padding: 0; }
.feature-list li { display: grid; grid-template-columns: 16px 1fr; gap: 14px; align-items: start; padding: 12px 0; border-bottom: 2px solid var(--ink); }
.feature-list li:last-child { border-bottom: none; }
.feature-list .dia { width: 9px; height: 9px; background: var(--ink); transform: rotate(45deg); margin: 7px 0 0 3px; flex: none; }
.feature-list b { font-family: var(--font-ui); font-size: 16px; display: block; margin-bottom: 5px; }
.feature-list span.t { font-size: 17px; line-height: 1.5; }
.feature-list .chk { width: 14px; height: 14px; border: 2px solid var(--ink); position: relative; margin-top: 3px; flex: none; }
.feature-list .chk::before, .feature-list .chk::after { content: ""; position: absolute; left: 1px; right: 1px; top: 5px; height: 2px; background: var(--ink); }
.feature-list .chk::before { transform: rotate(45deg); }
.feature-list .chk::after { transform: rotate(-45deg); }

/* contact list */
.kit-list { list-style: none; margin: 0; padding: 0; }
.kit-list li { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 14px; padding: 11px 4px; border-bottom: 2px solid var(--ink); line-height: 1.35; font-size: 18px; }
.kit-list li:last-child { border-bottom: none; }
.kit-list .picon { width: 28px; height: 28px; }

/* spec list */
.spec { margin: 0; }
.spec .row { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 9px 0; border-bottom: 2px solid var(--ink); }
.spec .row:last-child { border-bottom: none; }
.spec dt { font-family: var(--font-ui); font-size: 14px; padding-top: 3px; }
.spec dd { margin: 0; font-family: var(--font-mono); font-size: 20px; line-height: 1.25; }

/* readout */
.readout { border: 3px solid var(--ink); padding: 12px 14px; margin: 16px 0; font-family: var(--font-mono); font-size: 19px; line-height: 1.3; display: flex; flex-direction: column; gap: 9px; }
.readout .bar { height: 16px; border: 2px solid var(--ink); }
.readout .bar > i { display: block; height: 100%; background-image: var(--dither-50); background-size: 2px 2px; border-right: 2px solid var(--ink); }

/* meta footer / colophon */
.meta-foot { font-family: var(--font-mono); font-size: 18px; line-height: 1.55; border-top: 3px solid var(--ink); margin-top: 18px; padding-top: 14px; }
.meta-foot a { text-decoration: none; }
.meta-foot a:hover { background: var(--ink); color: var(--paper); }

hr { border: none; border-top: 3px solid var(--ink); margin: 22px 0; }
.linkrow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* section heading with diamond */
.dia-h { display: flex; align-items: center; gap: 12px; margin: 22px 0 12px; }
.dia-h .dia { width: 11px; height: 11px; background: var(--ink); transform: rotate(45deg); flex: none; }
.dia-h h3 { margin: 0; font-size: 17px; text-transform: uppercase; }

.manifesto { list-style: none; margin: 0; padding: 0; font-family: var(--font-ui); font-size: 17px; }
.manifesto li { padding: 9px 0; line-height: 1.3; border-bottom: 2px solid var(--ink); }
.manifesto li:last-child { border-bottom: none; }

/* ===========================================================
   ALERT DIALOG
   =========================================================== */
#modal-layer {
  position: fixed; inset: 0; z-index: 95000; display: none;
  align-items: center; justify-content: center;
  background-image: var(--dither-50); background-size: 2px 2px;
}
#modal-layer.show { display: flex; }
.alert {
  background: var(--paper); border: 3px solid var(--ink); box-shadow: var(--hard-shadow);
  width: min(480px, 92vw); padding: 24px;
  display: grid; grid-template-columns: 48px 1fr; gap: 20px;
}
.alert .picon { width: 44px; height: 44px; }
.alert .msg h2 { font-family: var(--font-ui); font-size: 17px; margin: 0 0 10px; }
.alert .msg p { font-size: 17px; line-height: 1.5; margin: 0; }
.alert .actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 12px; margin-top: 6px; }

#tweaks-root { position: fixed; z-index: 99998; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 760px) {
  #menubar .menu:not(.logo):not(.mobile-menu) { display: none; }
  .mobile-menu { display: flex !important; }
  #clock { display: none; }
  .home { padding: 28px 18px 56px; gap: 28px; }
  .bighead { font-size: 34px; }
  .dropdown { left: auto; right: -3px; }
  .view-head .vtitle { font-size: 14px; }
  .view-head .vplat { display: none; }
  .view-body { padding: 24px 16px 56px; }
}

/* ================================================================
   MARKETING LAYOUT HELPERS (added for app pages)
   ================================================================ */

/* hero grid — text + shot side-by-side */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
  margin: 0 0 16px;
}
.hero-grid > .hero-text { min-width: 0; }
.hero-grid > .shot,
.hero-grid > .phone-frame { margin: 0; }
.hero-grid .stat-strip { margin: 14px 0 0; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .hero-grid > .shot, .hero-grid > .phone-frame { max-width: 280px; margin: 0 auto; }
}

/* CTA bar — prominent button row with optional inline note */
.cta-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  border: var(--border);
  padding: 12px 14px;
  margin: 0 0 22px;
  background-image: var(--dither-25);
  background-size: 2px 2px;
  background-color: var(--paper);
}
.cta-bar .cta-grow { flex: 1; min-width: 0; }
.cta-bar .cta-note {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.cta-bar .cta-note .dot {
  display: inline-block; width: 9px; height: 9px;
  background: var(--ink); margin-right: 8px;
  vertical-align: 2px;
}

/* feature grid — alternative to vertical feature-list */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 0 16px;
}
.feature-grid .feat {
  border: var(--border);
  padding: 14px 16px;
  background: var(--paper);
}
.feature-grid .feat .h {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.feature-grid .feat p { font-family: var(--font-body); font-size: 17px; line-height: 1.45; margin: 0; }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* module grid — 3-col (don't panic) */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 16px;
}
.module-grid .mod {
  border: var(--border);
  padding: 16px;
  background: var(--paper);
  display: flex; flex-direction: column; gap: 8px;
}
.module-grid .mod .num {
  font-family: var(--font-mono);
  font-size: 16px; letter-spacing: 1px;
  opacity: 0.7;
}
.module-grid .mod .h {
  font-family: var(--font-ui);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.module-grid .mod p { font-family: var(--font-body); font-size: 16px; line-height: 1.45; margin: 0; }
@media (max-width: 700px) { .module-grid { grid-template-columns: 1fr; } }

/* gallery — equal thumbs in a row */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 16px;
}
.gallery .item { display: flex; flex-direction: column; gap: 8px; }
.gallery .item .shot { margin: 0; padding: 10px; min-height: 0; }
.gallery .item .shot img { max-height: 360px; max-width: 100%; }
.gallery .item .cap {
  font-family: var(--font-mono);
  font-size: 16px; letter-spacing: 1px;
  text-transform: uppercase; text-align: center;
}
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }

/* phone frame — narrow portrait screenshot container */
.phone-frame {
  border: 3px solid var(--ink);
  background: var(--paper);
  padding: 6px;
  max-width: 240px;
  margin: 0 auto;
}
.phone-frame img {
  display: block; width: 100%; height: auto;
  max-height: none; image-rendering: pixelated;
}

/* tone grid — skald five-tone cards */
.tone-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 0 0 12px;
}
.tone-grid .tone {
  border: var(--border);
  padding: 12px 12px 14px;
  background: var(--paper);
}
.tone-grid .tone .h {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.tone-grid .tone p { font-family: var(--font-body); font-size: 14px; line-height: 1.4; margin: 0; }
@media (max-width: 920px) { .tone-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .tone-grid { grid-template-columns: 1fr; } }

/* spec grid — clean key/value table */
.spec-grid {
  border: var(--border);
  background: var(--paper);
  padding: 6px 16px;
  margin: 0 0 16px;
}
.spec-grid .row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
}
.spec-grid .row:last-child { border-bottom: none; }
.spec-grid .row dt {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-top: 2px;
}
.spec-grid .row dd { margin: 0; }
@media (max-width: 600px) {
  .spec-grid .row { grid-template-columns: 1fr; gap: 4px; }
  .spec-grid .row dd { padding-left: 0; }
}

/* wider inner for marketing pages */
.view-body .inner.wide { max-width: 920px; }

/* badge row for tags/status pills */
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.tag-row .tag { font-family: var(--font-mono); font-size: 14px; letter-spacing: 1px; }

/* steps list (skald how it works) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 16px;
}
.steps .step {
  border: var(--border);
  padding: 16px;
  background: var(--paper);
}
.steps .step .n {
  font-family: var(--font-ui);
  font-size: 22px;
  margin: 0 0 8px;
}
.steps .step .h {
  font-family: var(--font-ui);
  font-size: 13px; letter-spacing: 0.6px; text-transform: uppercase;
  margin: 0 0 6px;
}
.steps .step p { font-family: var(--font-body); font-size: 16px; line-height: 1.45; margin: 0; }
.steps .step .kbd {
  display: inline-block; padding: 1px 8px;
  border: var(--border);
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--paper);
}
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }
