/* LOOM site styles: café-menu edition.
   Warm paper, ink, one vermilion accent, and a night palette for the
   private-room and specials panels.
   CSP: font-src and img-src fall back to 'none', so type uses system stacks
   and every mark is inline SVG. /specials also forbids inline styles. */

:root {
  color-scheme: light;
  --paper: #f4eee3;
  --paper-deep: #ebe2d2;
  --card: #fbf8f2;
  --ink: #1e1915;
  --ink-soft: #3b332c;
  --muted: #6b6158;
  --line: #d9cdb9;
  --accent: #b4381f;
  --accent-deep: #8f2a15;
  --on-accent: #fdf6ec;
  --night: #191512;
  --night-raised: #241e19;
  --night-bubble: #30271f;
  --night-ink: #f2e9db;
  --night-muted: #b8ab99;
  --night-line: #3a3129;
  --glow: #ec7a5c;
  --glow-soft: #f39a80;
  --danger: #a32d2d;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --jp: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif CJK JP", "Noto Serif JP", serif;
  --shell: min(1200px, calc(100% - 64px));
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--on-accent); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent-deep); }
a, button, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin-top: 0; }
h1, h2, h3, h4 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 6vw, 82px); letter-spacing: -.025em; margin-bottom: 26px; }
h2 { font-size: clamp(30px, 3.6vw, 48px); margin-bottom: 18px; }
h3 { font-size: 21px; font-weight: 700; line-height: 1.25; margin-bottom: 8px; }
h4 { font-size: 17px; }
h1 em, h2 em { color: var(--accent); font-style: italic; }
p { margin-bottom: 16px; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
small { color: var(--muted); font-size: 14px; line-height: 1.55; }
.quiet { color: var(--muted); }
.eyebrow {
  margin-bottom: 18px;
  color: var(--accent);
  font: 600 12px/1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.lede { max-width: 40em; color: var(--ink-soft); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; }
.fine-print { max-width: 36em; margin-top: 18px; color: var(--muted); font-size: 14px; }

/* Frame */
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 10; padding: 10px 14px; background: var(--ink); color: var(--card); }
.skip-link:focus { top: 12px; color: var(--card); }
.shell { width: var(--shell); margin-inline: auto; }
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding: 22px 0 20px;
  border-bottom: 1px solid var(--ink);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.mark { display: block; flex: none; width: 34px; height: 34px; }
.mark-seal { fill: var(--accent); }
.mark-cat { fill: var(--paper); }
.mark-eyes { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
.brand-name { font: 400 28px/1 var(--serif); letter-spacing: .14em; }
.brand-tag {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font: 12px/1.3 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; font-size: 15px; }
.site-nav a { padding-block: 10px; color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: .4em; }
.site-nav .nav-account { padding: 10px 18px; border: 1px solid var(--ink); border-radius: 999px; }
.site-nav .nav-account:hover { background: var(--ink); color: var(--paper); }
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: 14px;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.company { max-width: 640px; overflow-wrap: anywhere; }

/* Controls */
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 600 15px/1.3 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.button:hover, button:not(:disabled):hover { background: var(--ink); color: var(--paper); }
.button.primary, button[type="submit"], #topup { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.button.primary:hover, button[type="submit"]:not(:disabled):hover, #topup:not(:disabled):hover {
  border-color: var(--accent-deep);
  background: var(--accent-deep);
  color: var(--on-accent);
}
button:disabled { opacity: .45; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.inline-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.inline-link:hover { text-decoration: underline; }
input, select {
  max-width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--ink-soft);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font: 16px/1.4 var(--sans);
}
input { width: min(100%, 380px); }
select { width: 100%; }
input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
code, pre { font-family: var(--mono); }
code { padding: .12em .36em; border-radius: 4px; background: var(--paper-deep); font-size: .86em; overflow-wrap: anywhere; }
pre {
  overflow: auto;
  margin: 0 0 18px;
  padding: 20px 22px;
  border-radius: 12px;
  background: var(--night);
  color: #e8dccb;
  font-size: 13.5px;
  line-height: 1.7;
  scrollbar-color: var(--night-muted) var(--night);
  scrollbar-width: thin;
}
pre code { padding: 0; background: none; color: inherit; font-size: inherit; overflow-wrap: normal; }
details { margin-top: 12px; font-size: 15px; }
summary { color: var(--accent); font-weight: 600; cursor: pointer; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font: 600 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
th:first-child, td:first-child { padding-left: 0; white-space: nowrap; }

/* Home */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  padding: 72px 0 84px;
}
.hero h1 { max-width: 11em; }
.receipt {
  position: relative;
  margin-bottom: 10px;
  padding: 30px 28px 32px;
  background: var(--card);
  box-shadow: 0 1px 0 var(--line), 0 22px 44px -26px rgb(30 25 21 / .45);
  font-family: var(--mono);
  transform: rotate(1.2deg);
}
.receipt::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 8px;
  background: conic-gradient(from 135deg at top, var(--card) 90deg, transparent 0) 0 0 / 16px 100% repeat-x;
}
.receipt-head { padding-right: 70px; }
.receipt-kicker { margin-bottom: 8px; color: var(--accent); font: 600 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.receipt h2 { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px dashed var(--ink); font-size: 25px; line-height: 1.2; }
.receipt-lines { margin: 0 0 18px; font-size: 14px; }
.receipt-lines div { display: grid; grid-template-columns: auto minmax(12px, 1fr) auto; align-items: baseline; gap: 8px; padding: 5px 0; }
.receipt-lines div::before { content: ""; grid-row: 1; grid-column: 2; border-bottom: 1px dotted var(--muted); transform: translateY(-4px); }
.receipt-lines dt { grid-row: 1; grid-column: 1; }
.receipt-lines dd { grid-row: 1; grid-column: 3; margin: 0; white-space: nowrap; }
.receipt-lines .receipt-total { margin-top: 8px; padding-top: 12px; border-top: 2px solid var(--ink); font-size: 17px; font-weight: 700; }
.receipt-lines .receipt-total::before { display: none; }
.receipt-total dd { color: var(--accent); }
.receipt-note { color: var(--ink-soft); font: 14px/1.55 var(--sans); }
.receipt-small { margin-top: 12px; color: var(--muted); font: 12px/1.5 var(--sans); }
.paw { position: absolute; top: 20px; right: 20px; width: 56px; height: 56px; transform: rotate(-14deg); }
.paw-ring { fill: none; stroke: var(--accent); stroke-width: 2; }
.paw-pad { fill: var(--accent); }

/* Home: private room (night band) */
.night {
  padding: 92px 0;
  background: var(--night);
  color: var(--night-ink);
  border-image: conic-gradient(var(--night) 0 0) fill 0 / / 0 100vmax;
}
.night h2, .night h3 { color: var(--night-ink); }
.night h2 { font-size: clamp(38px, 4.8vw, 66px); }
.night .eyebrow { color: var(--glow); }
.night p { color: var(--night-muted); }
.night a { color: var(--glow); }
.night a:hover { color: var(--glow-soft); }
.night-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); align-items: center; gap: 64px; }
.night-copy p { max-width: 33em; }
.night-copy .night-lead { color: var(--night-ink); font-size: 19px; }
.booth { margin: 0; padding-bottom: 20px; overflow: hidden; border: 1px solid var(--night-line); border-radius: 18px; background: var(--night-raised); }
.booth-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--night-line);
  color: var(--night-muted);
  font: 12px/1.4 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.booth-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 4px rgb(236 122 92 / .18); }
.bubble { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 0; }
.bubble .mark { width: 34px; height: 34px; margin-top: 2px; }
.bubble .mark-cat { fill: var(--night-ink); }
.night .bubble p { max-width: 30em; margin: 0; padding: 12px 16px; border-radius: 16px; font-size: 16px; line-height: 1.5; }
.night .from-you { justify-content: flex-end; }
.night .from-you p { border-bottom-right-radius: 4px; background: var(--night-ink); color: var(--night); }
.night .from-cat p { border-bottom-left-radius: 4px; background: var(--night-bubble); color: var(--night-ink); }
.bubble-name { display: block; margin-bottom: 4px; color: var(--glow); font: 600 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.bubble i { color: var(--night-muted); }
.booth figcaption { padding: 18px 20px 0; color: var(--night-muted); font-size: 13px; }

/* Home: specials and the menu */
.special-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .95fr);
  align-items: start;
  gap: 64px;
  padding: 92px 0;
}
.special-band .lede { font-size: 18px; }
.menu-card { padding: 34px 34px 30px; border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: -8px; background: var(--card); }
.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}
.menu-head h3 { margin: 0; font-size: 26px; font-style: italic; font-weight: 400; }
.stamp {
  display: inline-block;
  padding: 5px 10px;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font: 700 11px/1.2 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-4deg);
}
.menu-list, .hosting { margin: 0; padding: 0; list-style: none; }
.menu-list li, .hosting li { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px dotted var(--line); }
.menu-name { font: 400 20px/1.3 var(--serif); }
.menu-desc { align-self: center; color: var(--muted); font-size: 15px; line-height: 1.45; }
.menu-note { margin: 18px 0 12px; color: var(--ink-soft); font-size: 15px; }
.quants { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0; }
.quants span { padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink-soft); font: 12px/1.4 var(--mono); }
.menu-sub { margin: 0 0 4px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); color: var(--ink); font: 600 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.hosting-block { max-width: 560px; margin-top: 52px; }

/* Home: house rules */
.rules { padding: 92px 0; border-top: 1px solid var(--ink); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.rule-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin: 0; padding: 0; list-style: none; counter-reset: rule; }
.rule-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-content: start; padding: 26px 0; border-top: 1px solid var(--line); counter-increment: rule; }
.rule-list li::before { content: counter(rule, upper-roman) "."; grid-row: 1 / span 2; color: var(--accent); font: italic 400 24px/1.1 var(--serif); }
.rule-list h3 { grid-column: 2; font-size: 22px; }
.rule-list p { grid-column: 2; color: var(--ink-soft); font-size: 16px; }

/* Home: builders */
.builders {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 56px;
  padding: 92px 0;
  border-top: 1px solid var(--ink);
}
.builders-copy p:not(.eyebrow) { color: var(--ink-soft); }
.code-card { margin: 0; overflow: hidden; border-radius: 14px; background: var(--night); color: var(--night-ink); }
.code-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--night-line);
  color: var(--night-muted);
  font: 13px/1.4 var(--mono);
  overflow-wrap: anywhere;
}
.code-card figcaption code { padding: 0; background: none; color: var(--night-ink); }
.method { color: var(--glow); font: 700 12px/1 var(--mono); letter-spacing: .08em; }
.code-card pre { margin: 0; border-radius: 0; background: none; }
.code-key { color: var(--night-muted); }
.code-string { color: #f2c9a0; }
.code-foot { margin: 0; padding: 12px 20px 16px; border-top: 1px solid var(--night-line); color: var(--night-muted); font: 12px/1.6 var(--mono); }

/* Home: closing call */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 48px; padding: 76px 0 84px; border-top: 3px double var(--ink); }
.cta h2 { margin: 0; font-size: clamp(52px, 7.4vw, 108px); line-height: .95; letter-spacing: -.03em; }
.cta-body p { color: var(--ink-soft); }
.cta-body .actions { margin-top: 20px; }

/* Specials: the board */
.board-wrap { padding: 36px 0 56px; }
.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  column-gap: 32px;
  padding: 44px 48px;
  border-radius: 18px;
  background: var(--night);
  color: var(--night-ink);
  box-shadow: inset 0 0 0 10px var(--night-raised), inset 0 0 0 11px var(--night-line);
}
.board > * { grid-column: 1; }
.board .board-jp {
  grid-column: 2;
  grid-row: 1 / span 6;
  margin: 0;
  padding-left: 22px;
  border-left: 1px solid var(--night-line);
  color: var(--glow);
  font: 400 22px/1 var(--jp);
  letter-spacing: .3em;
  writing-mode: vertical-rl;
}
.board .board-date { margin-bottom: 14px; color: var(--glow); font: 600 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.board h2 { margin-bottom: 14px; color: var(--night-ink); font-size: clamp(32px, 4.2vw, 52px); font-style: italic; }
.board p { max-width: 34em; color: var(--night-muted); }
.board code { padding: 0; background: transparent; color: var(--night-ink); font: 500 12px/1.5 var(--mono); }
.board a:not(.button) { color: var(--glow); }
.board .button { border-color: var(--night-ink); color: var(--night-ink); }
.board .button:hover { background: var(--night-ink); color: var(--night); }
.board .button.primary { border-color: var(--glow); background: var(--glow); color: var(--night); }
.board .button.primary:hover { border-color: var(--glow-soft); background: var(--glow-soft); color: var(--night); }
.special-lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 20px 0 18px; border-top: 1px solid var(--night-line); }
.special-lines div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--night-line); }
.special-lines dt { margin-bottom: 4px; color: var(--night-muted); font: 600 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.special-lines dd { margin: 0; color: var(--night-ink); font: 400 20px/1.3 var(--serif); overflow-wrap: anywhere; }
.special-lines .special-price dd { color: var(--glow); }
.legend { padding: 8px 0 72px; }
.legend dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin: 0; }
.legend dl div { padding: 20px 0; border-top: 1px solid var(--line); }
.legend dt { margin-bottom: 6px; font: 400 22px/1.3 var(--serif); }
.legend dd { margin: 0; color: var(--ink-soft); }

/* Specials inside the popover iframe (/specials#widget) */
body#widget:target { background: var(--night); }
body#widget:target .site-header,
body#widget:target .site-footer,
body#widget:target .skip-link,
body#widget:target .page-heading,
body#widget:target .legend { display: none; }
body#widget:target .shell { width: 100%; }
body#widget:target .board-wrap { padding: 0; }
body#widget:target .board { min-height: 100svh; align-content: center; padding: 28px 24px; border-radius: 0; box-shadow: none; }
body#widget:target .board h2 { font-size: 32px; }
body#widget:target .board p { font-size: 15px; }
body#widget:target .board .board-jp { font-size: 18px; padding-left: 16px; }

/* Popover that frames today's special */
#specials-widget[popover] {
  position: fixed;
  inset: 0;
  width: min(560px, calc(100vw - 28px));
  height: fit-content;
  max-height: 88svh;
  margin: auto;
  padding: 16px;
  overflow: auto;
  border: 1px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / .6);
}
#specials-widget::backdrop { background: rgb(25 21 18 / .62); }
#specials-widget > button { display: flex; min-height: 40px; margin: 0 0 12px auto; padding: 6px 16px; font-size: 14px; }
#specials-widget iframe { display: block; width: 100%; height: 420px; max-height: calc(88svh - 130px); border: 0; border-radius: 12px; background: var(--night); }
#specials-widget > a { display: block; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; }
@supports not selector(:popover-open) {
  #specials-widget, [popovertarget="specials-widget"] { display: none !important; }
}

/* Documents: API guide, terms, privacy */
.page-heading { margin-bottom: 8px; padding: 56px 0 36px; border-bottom: 1px solid var(--line); }
.page-heading h1 { max-width: 15em; font-size: clamp(42px, 5.4vw, 72px); margin-bottom: 18px; }
.page-heading .company { margin-top: 16px; color: var(--muted); font-size: 14px; }
.document { max-width: 860px; }
.document section { padding: 36px 0; border-top: 1px solid var(--line); }
.document section h2 { font-size: clamp(27px, 2.6vw, 34px); }
.document h3 { margin-top: 28px; }
.document p, .document li { max-width: 46em; }
.document ol, .document ul { padding-left: 22px; }
.document li { margin-block: 8px; }
.document-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.document-nav a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-soft); font-size: 14px; text-decoration: none; }
.document-nav a:hover { border-color: var(--accent); color: var(--accent); }
.callout { margin: 28px 0; padding: 24px 26px; border-radius: 14px; background: var(--paper-deep); }
.callout h2, .callout h3 { font-size: 22px; font-weight: 700; }
.callout .button { margin-top: 6px; }
.quickstart { padding: 16px 20px; border-radius: 12px; background: var(--night); color: var(--night-ink); font: 14px/1.6 var(--mono); }
.quickstart code { padding: 0; background: none; color: var(--glow); }
.api-details { margin-top: 24px; padding: 16px 0; border-block: 1px solid var(--line); }
.api-details[open] summary { margin-bottom: 16px; }

/* Console */
.account-layout { max-width: 960px; }
.account-layout section { padding: 34px 0; border-top: 1px solid var(--line); }
.account-layout h2 { font-size: clamp(27px, 2.6vw, 34px); }
.account-layout h3 { margin-top: 26px; }
.account-layout label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.account-layout p > small { display: block; }
.account-layout section.login-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  margin: 28px 0 32px;
  padding: 44px;
  border: 1px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: -8px;
  background: var(--card);
}
.login-panel h2 { margin-bottom: 12px; font-size: clamp(32px, 3.4vw, 44px); }
.login-panel small a { color: var(--accent); }
.login-details { display: grid; gap: 22px; padding-left: 36px; border-left: 1px solid var(--line); }
.login-details article { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
.feature-index { color: var(--accent); font: italic 400 22px/1.15 var(--serif); }
.login-details h3 { margin: 0 0 4px; font-size: 19px; }
.login-details p { margin: 0; color: var(--muted); font-size: 15px; }
.account-layout section.account-summary { margin: 28px 0; padding: 32px; border: 1px solid var(--ink); background: var(--card); }
#status { margin: 20px 0; color: var(--accent); font-weight: 600; }
#status:empty { display: none; }
#identity { margin-bottom: 6px; }
#balance { font: 400 clamp(22px, 2.4vw, 30px)/1.3 var(--serif); }
#mode:empty, #pricing:empty { display: none; }
#mode { color: var(--danger); font-weight: 600; }
#pricing { color: var(--muted); }
.account-summary > div:first-of-type p { margin-bottom: 10px; color: var(--ink-soft); font-size: 15px; }
#allocation-terms { margin-bottom: 10px; }
#model-choice, #allocation-choice { margin-bottom: 10px; }
#purchase-terms { margin: 26px 0; padding: 22px 24px; border-radius: 12px; background: var(--paper-deep); font-size: 15px; }
#purchase-terms h3 { margin-top: 0; }
#purchase-terms p { margin-bottom: 10px; }
#purchase-terms p:last-child { margin-bottom: 0; }
.purchase-controls { margin-bottom: 22px; padding-top: 4px; }
.purchase-controls #credit-dollars { width: 170px; padding: 10px 14px; font: 400 34px/1 var(--serif); }
.purchase-controls #credit-amount-help { margin: 10px 0 14px; color: var(--muted); font-size: 15px; }
.purchase-controls #purchase-total { color: var(--accent); font: 600 15px/1.6 var(--mono); }
.account-layout .purchase-acceptance { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 2px 12px; max-width: 660px; font-weight: 400; line-height: 1.6; }
.purchase-acceptance input[type="checkbox"] { grid-row: 1 / span 2; width: 20px; height: 20px; min-height: 0; margin: 3px 0 0; padding: 0; accent-color: var(--accent); }
.purchase-acceptance a { grid-column: 2; justify-self: start; }
#topup, #refresh { margin: 0 8px 14px 0; }
#secret { margin-top: 24px; padding: 24px; border-radius: 12px; background: var(--paper-deep); }
#keys, #requests { margin: 18px 0 0; padding: 0; list-style: none; }
#keys li, #requests li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; overflow-wrap: anywhere; }
#keys li button { min-height: 38px; margin-left: 10px; padding: 6px 14px; font-size: 14px; }
#keys:empty::after { content: "No API keys yet."; color: var(--muted); }
#requests:empty::after { content: "Your requests will appear here."; color: var(--muted); }
#example, #key-value, #requests pre { white-space: pre-wrap; overflow-wrap: anywhere; }
#requests pre { font-size: 12px; }
form button { margin-left: 8px; }
form p { margin-top: 14px; }
.danger { border-color: var(--danger); color: var(--danger); }
.danger:not(:disabled):hover { border-color: var(--danger); background: var(--danger); color: var(--card); }

/* Responsive */
@media (max-width: 960px) {
  .hero, .night-grid, .special-band, .builders, .cta { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero { padding-top: 56px; }
  .receipt { max-width: 520px; transform: rotate(.6deg); }
  .rule-list { grid-template-columns: minmax(0, 1fr); }
  .account-layout section.login-panel { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .login-details { padding: 26px 0 0; border-top: 1px solid var(--line); border-left: 0; }
}
@media (max-width: 640px) {
  :root { --shell: calc(100% - 36px); }
  body { font-size: 16px; }
  .site-header { gap: 8px 16px; padding: 16px 0 14px; }
  .brand-tag { display: none; }
  .brand-name { font-size: 24px; }
  .mark { width: 30px; height: 30px; }
  .site-nav { gap: 2px 16px; font-size: 14px; }
  .site-nav .nav-account { padding: 8px 14px; }
  .hero { padding: 40px 0 56px; }
  .receipt { padding: 26px 20px 28px; transform: none; }
  .receipt-head { padding-right: 58px; }
  .paw { top: 16px; right: 14px; width: 48px; height: 48px; }
  .night, .special-band, .rules, .builders { padding-block: 60px; }
  .night .bubble p { font-size: 15px; }
  .booth-bar { padding-inline: 16px; font-size: 11px; letter-spacing: .03em; }
  .menu-card { padding: 28px 22px 24px; }
  .menu-list li, .hosting li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .rule-list li { grid-template-columns: 42px minmax(0, 1fr); }
  .cta { padding: 56px 0 64px; }
  .board { grid-template-columns: minmax(0, 1fr); padding: 30px 24px; }
  .board .board-jp { display: none; }
  .special-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 14px 0 14px; }
  .special-lines div { padding: 10px 12px 10px 0; }
  .special-lines dd { font-size: 18px; }
  .legend dl { grid-template-columns: minmax(0, 1fr); }
  .page-heading { padding: 38px 0 28px; }
  .account-layout section.login-panel { padding: 30px 24px; }
  .account-layout section.account-summary { padding: 24px 20px; }
  form button { margin: 12px 0 0; }
  form input { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  body { background: #fff; color: #000; }
  .shell { width: 100%; }
  .site-nav, .skip-link, .actions, #specials-widget { display: none !important; }
  .night, .board, .code-card, pre { background: #fff !important; color: #000 !important; box-shadow: none !important; border-image: none !important; }
  .night p, .night h2, .board p, .board h2 { color: #000 !important; }
  .receipt { transform: none; box-shadow: none; border: 1px solid #000; }
  pre { white-space: pre-wrap; border: 1px solid #000; }
}

/* Compact model roster: keep all six GPU sizes together. */
.model-page .site-header { padding-block: 14px; }
.model-page .page-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 22px 0 14px;
  border: 0;
}
.model-page .page-heading h1 { margin: 0; font-size: clamp(28px, 3vw, 38px); }
.model-page .page-heading .button { min-height: 36px; padding: 7px 14px; font-size: 13px; }
.model-page .board-wrap { padding: 0 0 24px; }
.model-page .board {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 22px 24px;
  border: 1px solid var(--night-line);
  border-radius: 12px;
  box-shadow: inset 0 0 0 4px var(--night-raised);
}
.model-page .model-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.model-page .board h2 { margin: 0; font-size: clamp(25px, 2.6vw, 32px); }
.model-page .board .model-status {
  margin: 0;
  padding: 3px 9px;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  color: var(--night-muted);
  font-size: 12px;
  line-height: 1.5;
}
.model-page .model-roster { min-width: 0; margin-top: 12px; overflow-x: auto; }
.model-page .model-roster table { font-size: 14px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.model-page .model-roster caption { padding-bottom: 8px; color: var(--glow); font: 600 11px/1.4 var(--mono); text-align: left; }
.model-page .model-roster th, .model-page .model-roster td { padding: 8px 12px; border-color: var(--night-line); vertical-align: middle; }
.model-page .model-roster thead th { color: var(--night-muted); font-size: 10px; letter-spacing: .03em; }
.model-page .model-roster tbody th { color: var(--night-ink); font: 600 14px/1.4 var(--sans); letter-spacing: 0; text-transform: none; }
.model-page .model-roster th:first-child, .model-page .model-roster td:first-child { padding-left: 0; }
.model-page .model-roster th:last-child, .model-page .model-roster td:last-child { padding-right: 0; text-align: right; }
.model-page .model-roster tbody tr:last-child > * { border-bottom: 0; }
.model-page .board .roster-note { max-width: none; margin: 8px 0 12px; font-size: 12px; line-height: 1.4; }
.model-page .model-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 12px; border-top: 1px solid var(--night-line); }
.model-page .model-links p { margin: 0; font-size: 13px; }
.model-page .model-links .actions { gap: 8px; margin: 0; }
.model-page .model-links .button { min-height: 36px; padding: 7px 14px; font-size: 13px; }
.model-page .site-footer { gap: 10px 24px; padding: 16px 0 24px; font-size: 12px; }
body#widget.model-page:target .board { min-height: 0; align-content: start; padding: 16px 18px; border: 0; border-radius: 0; box-shadow: none; }
body#widget.model-page:target .board h2 { font-size: 25px; }
body#widget.model-page:target .board .model-status { font-size: 12px; }
body#widget.model-page:target .board .roster-note { font-size: 12px; }
body#widget.model-page:target .model-links p { font-size: 13px; }
@media (max-width: 640px) {
  .model-page .site-header { padding-block: 12px; }
  .model-page .page-heading { padding: 18px 0 12px; }
  .model-page .board { padding: 18px 16px; }
  .model-page .model-roster th, .model-page .model-roster td { padding-block: 7px; padding-inline: 8px; }
  .model-page .model-roster th:first-child, .model-page .model-roster td:first-child { padding-left: 0; }
  .model-page .model-roster th:last-child, .model-page .model-roster td:last-child { padding-right: 0; }
}
@media print {
  .model-page .model-roster caption, .model-page .model-roster th, .model-page .model-status { color: #000; }
  .model-page .model-roster th, .model-page .model-roster td { border-color: #ccc; }
}

/* Model feature plots: context on x, fresh GPU rate on y; seating changes color. */
.model-chart-selector { margin-bottom: 12px; }
.model-feature-chart {
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--night-line);
  border-radius: 10px;
  background: var(--night);
  color: var(--night-ink);
}
.model-feature-chart h4 { margin: 0; color: var(--night-ink); font: 600 16px/1.4 var(--mono); }
.model-feature-chart .chart-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; max-width: none; margin: 8px 0 4px; color: var(--night-muted); font: 12px/1.4 var(--sans); }
.chart-key { display: inline-flex; align-items: center; gap: 7px; }
.chart-key::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chart-key.chart-both::before { border-radius: 0; transform: rotate(45deg); }
.chart-shared { color: var(--glow); }
.chart-both { color: #87d7ec; }
.chart-reserved { color: var(--night-ink); }
.chart-caption { margin-left: auto; color: var(--night-muted); }
.chart-scroll { min-width: 0; overflow-x: auto; scrollbar-color: var(--night-muted) var(--night); scrollbar-width: thin; }
.feature-plot {
  display: block;
  width: 100%;
  min-width: 560px;
  max-width: 820px;
  margin-inline: auto;
  height: auto;
  background-image: linear-gradient(rgb(242 233 219 / .025) 1px, transparent 1px), linear-gradient(90deg, rgb(242 233 219 / .025) 1px, transparent 1px);
  background-size: 28px 28px;
}
.chart-axis { stroke: var(--night-muted); stroke-width: 1; }
.chart-grid { stroke: var(--night-line); stroke-width: 1; }
.chart-tick { fill: var(--night-muted); font: 14px var(--mono); }
.chart-axis-label { fill: var(--night-ink); font: 14px var(--mono); }
.chart-empty { fill: var(--night-muted); font: 18px var(--mono); }
.chart-extension { fill: #87d7ec; fill-opacity: .035; }
.chart-native { stroke: var(--night-muted); stroke-width: 1; stroke-dasharray: 5 5; }
.chart-native-label { fill: var(--night-muted); font: 12px var(--mono); }
.chart-unpriced-band { fill: var(--night-raised); stroke: var(--night-line); stroke-width: 1; stroke-dasharray: 3 4; }
.chart-point { cursor: pointer; }
.chart-quant-label { fill: currentColor; font: 600 14px var(--mono); }
.chart-hit { fill: transparent; stroke: transparent; stroke-width: 2; }
.chart-marker { fill: currentColor; stroke: currentColor; stroke-width: 2; }
.chart-unpriced .chart-marker { fill: var(--night); }
.chart-reference .chart-marker { fill: var(--night); stroke-dasharray: 3 2; }
.chart-point[aria-selected="true"] .chart-hit { fill: rgb(242 233 219 / .06); stroke: currentColor; }
.chart-point:focus-visible { outline: none; }
.chart-point:focus-visible .chart-hit { stroke: currentColor; stroke-dasharray: 3 2; }
.model-feature-chart .chart-note { max-width: none; margin: 2px 0 0; color: var(--night-muted); font: 12px/1.4 var(--sans); }
.feature-summary { margin: 8px 0; color: var(--ink-soft); font: 13px/1.5 var(--mono); }
.feature-summary:empty { display: none; }
.feature-seat-choices { display: flex; gap: 8px; margin: 8px 0; }
.feature-seat-choices button { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.feature-seat-choices button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.chart-unknown { display: flex; width: 100%; min-height: 34px; margin-top: 6px; padding: 6px 12px; color: var(--night-ink); border-color: var(--night-line); font-size: 13px; }
.model-page .board .model-feature-chart { margin: 8px 0 0; padding: 0; border: 0; background: transparent; }
.model-page .board .chart-point { cursor: default; }
.model-page .board .chart-legend { margin-top: 4px; }
@media (max-width: 640px) {
  .model-feature-chart { padding: 10px; }
  .model-feature-chart .chart-legend { gap: 6px 12px; }
  .chart-caption { margin-left: 0; }
}
@media print {
  .model-feature-chart { background: #fff; color: #000; }
  .feature-plot { min-width: 0; background-image: none; }
  .chart-axis, .chart-grid, .chart-native { stroke: #777; }
  .chart-tick, .chart-axis-label, .chart-empty, .chart-quant-label, .chart-index-label, .chart-native-label { fill: #000; }
  .chart-unpriced-band { fill: #fff; stroke: #777; }
}

/* One script-free diner board on /specials and the homepage iframe. */
.diner-home-page, .diner-page { --paper: #eaf1ed; --ink: #123c3b; --accent: #a32d26; --accent-deep: #7b201b; --night: #092c2b; --night-raised: #123a38; --night-line: #426662; --night-muted: #bed0c7; --night-ink: #fff3d5; --glow: #ffc76d; --glow-soft: #ffdb94; }
.diner-home-page { background-image: linear-gradient(90deg, transparent 50%, rgb(18 60 59 / .025) 50%); background-size: 16px 16px; }
.diner-home .page-heading { padding-block: 24px 18px; }
.diner-home .page-heading h1 { font: 800 clamp(28px, 4vw, 42px)/1.1 var(--sans); letter-spacing: -.04em; }
.diner-home .page-heading .button { font-size: 14px; }
.diner-embed { container-type: inline-size; container-name: diner-frame; overflow: hidden; border: 3px solid #738985; border-radius: 10px; background: var(--night); box-shadow: 0 6px 0 #c5d1cb; }
.diner-embed iframe { display: block; width: 100%; height: 1380px; border: 0; }
.diner-home-note { margin: 18px 0 24px; color: var(--muted); font-size: 14px; }
.diner-page .board-wrap { padding-block: 22px; }
.model-page .diner-board, body#widget.diner-page:target .diner-board { position: relative; display: block; padding: 32px; border: 3px solid #738985; border-radius: 10px; background: var(--night); box-shadow: inset 0 0 0 3px #153c39, inset 0 0 0 6px #738985; }
body#widget.diner-page:target .diner-board { border-radius: 0; }
.diner-board .diner-pause { display: inline-block; width: 18px; height: 18px; min-height: 0; margin: 0 8px 14px 0; padding: 0; vertical-align: middle; accent-color: var(--glow); }
.diner-pause-label { color: var(--night-muted); font: 14px/1.5 var(--sans); cursor: pointer; }
.diner-bulbs { position: absolute; inset: 0; pointer-events: none; }
/* .board > * places children in grid column 1; the absolute bulb layer must
   use the whole board's padding box (auto placement) in the grid widget too. */
.diner-board > .diner-bulbs { grid-area: auto; }
.diner-bulb { position: absolute; width: 8px; height: 8px; margin: -4px; border: 1px solid #cf9f57; border-radius: 50%; background: #725733; box-shadow: 0 0 0 2px #092c2b; animation: diner-bulb-chase 6.24s linear infinite; }
@keyframes diner-bulb-chase { 0%, 2% { background: #fff6d2; border-color: #fff6d2; box-shadow: 0 0 8px 2px #ffd176; } 6%, 100% { background: #725733; border-color: #cf9f57; box-shadow: 0 0 0 2px #092c2b; } }
.diner-pause:checked ~ .diner-bulbs .diner-bulb { animation-play-state: paused; }
.diner-bulb:nth-child(1) { left: calc(24px + (100% - 48px) * 0/15); top: 15px; animation-delay: -6.24s; }
.diner-bulb:nth-child(2) { left: calc(24px + (100% - 48px) * 1/15); top: 15px; animation-delay: -6.12s; }
.diner-bulb:nth-child(3) { left: calc(24px + (100% - 48px) * 2/15); top: 15px; animation-delay: -6.00s; }
.diner-bulb:nth-child(4) { left: calc(24px + (100% - 48px) * 3/15); top: 15px; animation-delay: -5.88s; }
.diner-bulb:nth-child(5) { left: calc(24px + (100% - 48px) * 4/15); top: 15px; animation-delay: -5.76s; }
.diner-bulb:nth-child(6) { left: calc(24px + (100% - 48px) * 5/15); top: 15px; animation-delay: -5.64s; }
.diner-bulb:nth-child(7) { left: calc(24px + (100% - 48px) * 6/15); top: 15px; animation-delay: -5.52s; }
.diner-bulb:nth-child(8) { left: calc(24px + (100% - 48px) * 7/15); top: 15px; animation-delay: -5.40s; }
.diner-bulb:nth-child(9) { left: calc(24px + (100% - 48px) * 8/15); top: 15px; animation-delay: -5.28s; }
.diner-bulb:nth-child(10) { left: calc(24px + (100% - 48px) * 9/15); top: 15px; animation-delay: -5.16s; }
.diner-bulb:nth-child(11) { left: calc(24px + (100% - 48px) * 10/15); top: 15px; animation-delay: -5.04s; }
.diner-bulb:nth-child(12) { left: calc(24px + (100% - 48px) * 11/15); top: 15px; animation-delay: -4.92s; }
.diner-bulb:nth-child(13) { left: calc(24px + (100% - 48px) * 12/15); top: 15px; animation-delay: -4.80s; }
.diner-bulb:nth-child(14) { left: calc(24px + (100% - 48px) * 13/15); top: 15px; animation-delay: -4.68s; }
.diner-bulb:nth-child(15) { left: calc(24px + (100% - 48px) * 14/15); top: 15px; animation-delay: -4.56s; }
.diner-bulb:nth-child(16) { left: calc(24px + (100% - 48px) * 15/15); top: 15px; animation-delay: -4.44s; }
.diner-bulb:nth-child(17) { right: 15px; top: calc(24px + (100% - 48px) * 1/11); animation-delay: -4.32s; }
.diner-bulb:nth-child(18) { right: 15px; top: calc(24px + (100% - 48px) * 2/11); animation-delay: -4.20s; }
.diner-bulb:nth-child(19) { right: 15px; top: calc(24px + (100% - 48px) * 3/11); animation-delay: -4.08s; }
.diner-bulb:nth-child(20) { right: 15px; top: calc(24px + (100% - 48px) * 4/11); animation-delay: -3.96s; }
.diner-bulb:nth-child(21) { right: 15px; top: calc(24px + (100% - 48px) * 5/11); animation-delay: -3.84s; }
.diner-bulb:nth-child(22) { right: 15px; top: calc(24px + (100% - 48px) * 6/11); animation-delay: -3.72s; }
.diner-bulb:nth-child(23) { right: 15px; top: calc(24px + (100% - 48px) * 7/11); animation-delay: -3.60s; }
.diner-bulb:nth-child(24) { right: 15px; top: calc(24px + (100% - 48px) * 8/11); animation-delay: -3.48s; }
.diner-bulb:nth-child(25) { right: 15px; top: calc(24px + (100% - 48px) * 9/11); animation-delay: -3.36s; }
.diner-bulb:nth-child(26) { right: 15px; top: calc(24px + (100% - 48px) * 10/11); animation-delay: -3.24s; }
.diner-bulb:nth-child(27) { right: calc(24px + (100% - 48px) * 0/15); bottom: 15px; animation-delay: -3.12s; }
.diner-bulb:nth-child(28) { right: calc(24px + (100% - 48px) * 1/15); bottom: 15px; animation-delay: -3.00s; }
.diner-bulb:nth-child(29) { right: calc(24px + (100% - 48px) * 2/15); bottom: 15px; animation-delay: -2.88s; }
.diner-bulb:nth-child(30) { right: calc(24px + (100% - 48px) * 3/15); bottom: 15px; animation-delay: -2.76s; }
.diner-bulb:nth-child(31) { right: calc(24px + (100% - 48px) * 4/15); bottom: 15px; animation-delay: -2.64s; }
.diner-bulb:nth-child(32) { right: calc(24px + (100% - 48px) * 5/15); bottom: 15px; animation-delay: -2.52s; }
.diner-bulb:nth-child(33) { right: calc(24px + (100% - 48px) * 6/15); bottom: 15px; animation-delay: -2.40s; }
.diner-bulb:nth-child(34) { right: calc(24px + (100% - 48px) * 7/15); bottom: 15px; animation-delay: -2.28s; }
.diner-bulb:nth-child(35) { right: calc(24px + (100% - 48px) * 8/15); bottom: 15px; animation-delay: -2.16s; }
.diner-bulb:nth-child(36) { right: calc(24px + (100% - 48px) * 9/15); bottom: 15px; animation-delay: -2.04s; }
.diner-bulb:nth-child(37) { right: calc(24px + (100% - 48px) * 10/15); bottom: 15px; animation-delay: -1.92s; }
.diner-bulb:nth-child(38) { right: calc(24px + (100% - 48px) * 11/15); bottom: 15px; animation-delay: -1.80s; }
.diner-bulb:nth-child(39) { right: calc(24px + (100% - 48px) * 12/15); bottom: 15px; animation-delay: -1.68s; }
.diner-bulb:nth-child(40) { right: calc(24px + (100% - 48px) * 13/15); bottom: 15px; animation-delay: -1.56s; }
.diner-bulb:nth-child(41) { right: calc(24px + (100% - 48px) * 14/15); bottom: 15px; animation-delay: -1.44s; }
.diner-bulb:nth-child(42) { right: calc(24px + (100% - 48px) * 15/15); bottom: 15px; animation-delay: -1.32s; }
.diner-bulb:nth-child(43) { left: 15px; bottom: calc(24px + (100% - 48px) * 1/11); animation-delay: -1.20s; }
.diner-bulb:nth-child(44) { left: 15px; bottom: calc(24px + (100% - 48px) * 2/11); animation-delay: -1.08s; }
.diner-bulb:nth-child(45) { left: 15px; bottom: calc(24px + (100% - 48px) * 3/11); animation-delay: -0.96s; }
.diner-bulb:nth-child(46) { left: 15px; bottom: calc(24px + (100% - 48px) * 4/11); animation-delay: -0.84s; }
.diner-bulb:nth-child(47) { left: 15px; bottom: calc(24px + (100% - 48px) * 5/11); animation-delay: -0.72s; }
.diner-bulb:nth-child(48) { left: 15px; bottom: calc(24px + (100% - 48px) * 6/11); animation-delay: -0.60s; }
.diner-bulb:nth-child(49) { left: 15px; bottom: calc(24px + (100% - 48px) * 7/11); animation-delay: -0.48s; }
.diner-bulb:nth-child(50) { left: 15px; bottom: calc(24px + (100% - 48px) * 8/11); animation-delay: -0.36s; }
.diner-bulb:nth-child(51) { left: 15px; bottom: calc(24px + (100% - 48px) * 9/11); animation-delay: -0.24s; }
.diner-bulb:nth-child(52) { left: 15px; bottom: calc(24px + (100% - 48px) * 10/11); animation-delay: -0.12s; }
.diner-marquee { position: relative; margin-bottom: 16px; padding: 20px 24px 24px; border: 1px solid #ee8473; border-radius: 3px; background: #a32d26; text-align: center; box-shadow: inset 0 0 0 4px #7b201b; }
.diner-board .diner-marquee h1 { margin: 4px 0 10px; color: #fff3d5; font: 900 clamp(34px, 5.5vw, 68px)/1 var(--sans); letter-spacing: -.045em; text-shadow: 2px 3px 0 #6b1d19; }
.diner-board .diner-kicker { max-width: none; margin: 0 0 8px; color: #ffe0a2; font: 700 14px/1.5 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.diner-board .diner-tagline { max-width: none; margin: 0; color: #fff3d5; font: 14px/1.5 var(--mono); }
.diner-board .diner-snapshot { max-width: none; margin: 0 0 14px; color: var(--night-muted); font: 12px/1.6 var(--mono); }
.diner-status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 10px 12px; border-left: 3px solid var(--glow); background: #153c39; color: var(--night-ink); font-size: 14px; }
.diner-status span { color: var(--night-muted); }
.diner-board .diner-scroll-hint { max-width: none; margin: 12px 0 18px; color: var(--night-muted); font: 14px/1.5 var(--sans); }
/* Menu + detail panel. Count-independent: each server-rendered row carries its
   own escaped .diner-selection; the checked row's section is placed into the
   detail slot. Its containing block is .diner-menu (outside the scrolling
   window), so it is not clipped and the list still scrolls internally. */
.diner-menu { --detail-w: 300px; --slot-top: 26px; --slot-h: 400px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--detail-w); grid-template-rows: 1fr auto auto; align-items: stretch; gap: 22px; }
.diner-list { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.diner-list-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 10px; }
.diner-board .diner-list-heading h2 { color: var(--night-ink); font: 700 22px/1.2 var(--sans); }
.diner-list-heading span { color: var(--night-muted); font: 14px/1.5 var(--mono); }
.diner-board .diner-status { display: flex; flex-direction: column; gap: 2px; max-width: none; margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid var(--glow); background: #153c39; color: var(--night-ink); font: 14px/1.5 var(--sans); }
.diner-board .diner-status span { color: var(--night-muted); font-size: 12px; }
.diner-board .specials-empty { max-width: none; color: var(--night-muted); font: 14px/1.5 var(--sans); }
.diner-catalog-window { flex: 1 1 auto; height: 300px; min-height: 220px; min-width: 0; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-color: var(--glow) var(--night-raised); scroll-padding-block: 50px 8px; border: 1px solid var(--night-line); border-radius: 3px; }
.diner-catalog-window:focus-visible { outline: 2px solid var(--glow); outline-offset: -2px; }
.diner-profile-table { width: 100%; min-width: 460px; margin: 0; font: 14px/1.5 var(--mono); font-variant-numeric: tabular-nums; }
.diner-profile-table th, .diner-profile-table td { padding: 12px 10px; color: var(--night-ink); border-color: var(--night-line); text-align: left; vertical-align: middle; }
.diner-profile-table thead th { position: sticky; top: 0; z-index: 1; background: var(--night-raised); color: var(--night-muted); font: 12px/1.5 var(--sans); letter-spacing: .04em; }
.diner-profile-table tbody th { padding: 0; font-weight: 400; text-transform: none; letter-spacing: 0; }
.diner-profile-table label { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 8px; row-gap: 3px; min-height: 82px; padding: 12px 10px; cursor: pointer; }
.diner-profile-table label b { color: var(--glow); font: 700 16px/1.2 var(--mono); overflow-wrap: anywhere; }
.diner-profile-table label span { font: 13px/1.4 var(--sans); overflow-wrap: anywhere; }
.diner-profile-table small { display: block; color: var(--night-muted); font: 12px/1.5 var(--sans); }
.diner-profile-table label:hover { background: #214b46; }
.diner-no-quote { color: var(--night-muted); font-size: 12px; white-space: nowrap; }
.diner-sr-only { min-height: 0; position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Sticky header never covers the focused radio row in either arrow direction. */
.diner-profile-table .diner-choice { position: static; grid-column: 1; grid-row: 1 / 4; align-self: center; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--glow); scroll-margin-block: 36px; }
.diner-profile-table label > b, .diner-profile-table label > span, .diner-profile-table label > small { grid-column: 2; }
.diner-row:has(.diner-choice:checked) { background: #214b46; box-shadow: inset 3px 0 var(--glow); }
.diner-profile-table label:has(.diner-choice:focus-visible) { outline: 2px solid var(--glow); outline-offset: -3px; }
.diner-selection { display: none; }
.diner-row:has(.diner-choice:checked) .diner-selection { display: block; position: absolute; z-index: 2; top: var(--slot-top); right: 0; width: calc(var(--detail-w) - 22px); height: var(--slot-h); overflow: auto; color: var(--night-ink); font: 14px/1.5 var(--sans); text-align: left; cursor: auto; }
.diner-menu:has(.diner-choice:checked) .diner-selection-empty { visibility: hidden; }
.diner-board .roster-note { margin: 10px 0 0; color: var(--night-muted); font: 12px/1.5 var(--sans); }
.diner-detail { grid-column: 2; grid-row: 1; min-width: 0; padding-left: 22px; border-left: 1px solid var(--night-line); }
.diner-board .diner-detail-kicker { height: 18px; margin: 0 0 8px; color: var(--glow); font: 700 12px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.diner-selection-slot { height: var(--slot-h); }
.diner-board .diner-selection-empty, .diner-board .diner-rate-note { margin: 0; color: var(--night-muted); font: 12px/1.5 var(--sans); }
.diner-board .diner-rate-note { margin-top: 10px; }
.diner-selection h3 { margin: 0 0 8px; color: var(--night-ink); font: 700 22px/1.2 var(--mono); overflow-wrap: anywhere; }
.diner-selection h3 span { display: block; margin-top: 4px; font: 15px/1.4 var(--sans); overflow-wrap: anywhere; }
/* th:first-child is nowrap site-wide; the diner's row header, its label and the
   detail section it carries hold prose and long model IDs, so they wrap. */
.diner-profile-table tbody th, .diner-profile-table tbody label, .diner-profile-table .diner-selection { white-space: normal; overflow-wrap: anywhere; }
.diner-board .diner-alias span { color: var(--night-ink); }
.diner-rates dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0 0; }
.diner-rates dt { color: var(--night-muted); font: 12px/1.5 var(--sans); }
.diner-rates dd { margin: 4px 0 0; color: var(--night-ink); font: 14px/1.4 var(--mono); overflow-wrap: anywhere; }
.diner-board .diner-selection .diner-rates p { margin: 8px 0 12px; }
.diner-menu > .diner-price-comparison, .diner-menu > .diner-context-map { grid-column: 1 / -1; min-width: 0; }
.diner-price-comparison { grid-row: 2; }
.diner-price-comparison h3 { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: space-between; margin: 0 0 6px; color: var(--night-ink); font: 700 14px/1.5 var(--sans); }
.diner-price-comparison h3 span { color: var(--night-muted); font: 12px/1.5 var(--mono); }
.diner-price-window { max-height: 132px; overflow: auto; overscroll-behavior: contain; scrollbar-color: var(--glow) var(--night-raised); }
.diner-price-window:focus-visible, .diner-context-map .chart-scroll:focus-visible { outline: 2px solid var(--glow); outline-offset: -2px; }
.diner-price-row { display: grid; grid-template-columns: minmax(90px, 1.2fr) minmax(20px, 1fr) minmax(62px, auto); align-items: center; gap: 8px; padding-block: 4px; color: var(--night-muted); font: 12px/1.5 var(--mono); }
.diner-price-row > span:first-child { overflow-wrap: anywhere; }
.diner-price-track { display: block; height: 7px; border: 1px dashed var(--night-line); border-radius: 1px; }
.diner-price-row > span:last-child { text-align: right; font-family: var(--sans); overflow-wrap: anywhere; }
.diner-price-fill { display: block; width: 0; height: 100%; background: var(--glow); }
.diner-bar-1 { width: 5%; } .diner-bar-2 { width: 10%; } .diner-bar-3 { width: 15%; } .diner-bar-4 { width: 20%; } .diner-bar-5 { width: 25%; }
.diner-bar-6 { width: 30%; } .diner-bar-7 { width: 35%; } .diner-bar-8 { width: 40%; } .diner-bar-9 { width: 45%; } .diner-bar-10 { width: 50%; }
.diner-bar-11 { width: 55%; } .diner-bar-12 { width: 60%; } .diner-bar-13 { width: 65%; } .diner-bar-14 { width: 70%; } .diner-bar-15 { width: 75%; }
.diner-bar-16 { width: 80%; } .diner-bar-17 { width: 85%; } .diner-bar-18 { width: 90%; } .diner-bar-19 { width: 95%; } .diner-bar-20 { width: 100%; }
.diner-board .diner-price-note { max-width: none; margin: 6px 0 0; color: var(--night-muted); font: 12px/1.5 var(--sans); }
.diner-context-map { grid-row: 3; margin-top: 0; border-top: 1px solid var(--night-line); }
.diner-context-map summary { padding-block: 12px; color: var(--night-ink); font: 14px/1.5 var(--sans); cursor: pointer; }
.diner-context-map .chart-scroll { overscroll-behavior-x: contain; }
.chart-index-label { fill: var(--night-ink); font: 700 14px var(--mono); }
.chart-key-window { max-height: 168px; margin-top: 8px; overflow: auto; overscroll-behavior: contain; border-top: 1px solid var(--night-line); scrollbar-color: var(--glow) var(--night-raised); }
.chart-key-window:focus-visible { outline: 2px solid var(--glow); outline-offset: -2px; }
.chart-key-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 2px 18px; margin: 0; padding: 6px 0; list-style: none; font: 12px/1.5 var(--sans); }
.chart-key-list li { display: grid; grid-template-columns: 2.6em minmax(0, 1fr); align-items: baseline; }
.chart-key-list b { font: 700 13px/1.5 var(--mono); }
.chart-key-list span { color: var(--night-muted); overflow-wrap: anywhere; }
.diner-board .diner-seat-plan { margin: 0 0 12px; color: var(--night-muted); font: 13px/1.5 var(--sans); }
.diner-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 12px; padding-block: 10px; border-block: 1px solid var(--night-line); }
.diner-specs dt { color: var(--night-muted); font: 12px/1.5 var(--sans); }
.diner-specs dd { margin: 4px 0 0; color: var(--night-ink); font: 700 18px/1.4 var(--mono); overflow-wrap: anywhere; }
.diner-specs small { display: block; color: var(--night-muted); font: 12px/1.4 var(--sans); overflow-wrap: anywhere; }
.diner-selection h4 { display: flex; flex-wrap: wrap; gap: 2px 10px; justify-content: space-between; margin: 0 0 2px; color: var(--night-ink); font: 700 13px/1.5 var(--sans); }
.diner-selection h4 span { color: var(--night-muted); font: 12px/1.5 var(--mono); }
.diner-board .diner-selection p { max-width: none; margin: 0 0 10px; color: var(--night-muted); font: 12px/1.5 var(--sans); overflow-wrap: anywhere; }
.diner-board .diner-selection strong { color: var(--night-ink); }
.diner-board .diner-selection a { color: var(--glow); }
.diner-board .model-links { margin-top: 8px; }
.diner-board .model-links p { overflow-wrap: anywhere; color: var(--night-muted); font-size: 14px; }
.diner-board .model-links .button { min-height: 40px; border-radius: 4px; font-size: 14px; }
@media (max-width: 900px) {
  /* Stacked: the detail panel sits above the menu so its slot offset stays constant. */
  .diner-menu { --slot-h: 360px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto auto; gap: 18px; }
  .diner-detail { grid-column: 1; grid-row: 1; padding: 0 0 14px; border-left: 0; border-bottom: 1px solid var(--night-line); }
  .diner-list { grid-row: 2; }
  .diner-price-comparison { grid-row: 3; }
  .diner-context-map { grid-row: 4; }
  .diner-row:has(.diner-choice:checked) .diner-selection { left: 0; width: auto; }
}
@media (max-width: 640px) {
  .diner-home .page-heading { padding-block: 18px 14px; }
  .diner-home .page-heading .button { padding-inline: 12px; }
  .model-page .diner-board, body#widget.diner-page:target .diner-board { padding: 28px 25px; }
  .diner-marquee { padding: 20px 12px; }
  .diner-board .diner-marquee h1 { font-size: clamp(32px, 8vw, 48px); }
  .diner-board .diner-kicker { font-size: 12px; letter-spacing: .06em; }
  .diner-board .diner-tagline { font-size: 12px; }
  .diner-menu { --slot-h: 400px; }
  .diner-profile-table { min-width: 0; font-size: 12px; }
  .diner-profile-table th, .diner-profile-table td { padding: 10px 5px; }
  .diner-profile-table label { padding: 10px 6px; }
  /* A focused radio scrolls only its own margin box into view. Cover the whole
     wrapped row (about 263px) below the sticky two-line header: the window holds
     header + row, the radio margin reaches both row edges. */
  .diner-catalog-window { height: 360px; min-height: 360px; scroll-padding-block: 64px 8px; }
  .diner-profile-table .diner-choice { scroll-margin-block: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  .diner-bulb { animation: none; background: #ffd176; border-color: #ffd176; }
  .diner-board .diner-pause, .diner-pause-label { display: none; }
  .diner-home-page, .diner-page { scroll-behavior: auto; }
}
@media print {
  .diner-bulbs, .diner-pause, .diner-pause-label { display: none; }
  .diner-marquee { background: #fff; border-color: #000; box-shadow: none; }
  .diner-board .diner-marquee h1 { color: #000; text-shadow: none; }
  .diner-catalog-window { height: auto; overflow: visible; }
  .diner-profile-table { min-width: 0; }
  .diner-profile-table th, .diner-profile-table td { color: #000; }
}

/* Keep low-level text readable inside the compact iframe. */
body#widget.diner-page:target .diner-board p { font-size: 14px; }
body#widget.diner-page:target .diner-board .diner-snapshot, body#widget.diner-page:target .diner-board .roster-note, body#widget.diner-page:target .diner-board .diner-selection p, body#widget.diner-page:target .diner-board .diner-rate-note, body#widget.diner-page:target .diner-board .diner-selection-empty { font-size: 12px; }

/* Widget document = exactly the iframe viewport when content fits. Every board
   child is placed in a named area: the pause input and its label share row 1
   (when reduced motion hides them the row collapses to 0 and nothing moves
   into the wrong row), and the menu area is the only flexible row, so spare
   height grows the internal list. The 1fr row keeps an auto minimum, so if the
   frame is shorter than the content the document grows instead of clipping. */
body#widget.diner-page:target .diner-board { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto auto 1fr auto auto; grid-template-areas: "pause pause-label" "marquee marquee" "snapshot snapshot" "hint hint" "menu menu" "note note" "links links"; column-gap: 8px; align-items: start; min-height: 100vh; border-radius: 0; }
body#widget.diner-page:target .diner-board > .diner-pause { grid-area: pause; align-self: center; margin: 0 0 14px; }
body#widget.diner-page:target .diner-board > .diner-pause-label { grid-area: pause-label; align-self: center; justify-self: start; margin: 0 0 14px; }
body#widget.diner-page:target .diner-board > .diner-marquee { grid-area: marquee; }
body#widget.diner-page:target .diner-board > .diner-snapshot { grid-area: snapshot; }
body#widget.diner-page:target .diner-board > .diner-scroll-hint { grid-area: hint; }
body#widget.diner-page:target .diner-board > .diner-menu { grid-area: menu; align-self: stretch; }
body#widget.diner-page:target .diner-board > .roster-note { grid-area: note; }
body#widget.diner-page:target .diner-board > .model-links { grid-area: links; }
/* Measured widget document heights (closed chart, mixed catalog) with ~40px
   headroom per container band; an opened chart may still scroll the frame. */
@container diner-frame (max-width: 900px) { .diner-embed iframe { height: 1760px; } }
@container diner-frame (max-width: 640px) { .diner-embed iframe { height: 1850px; } }
@container diner-frame (max-width: 520px) { .diner-embed iframe { height: 1960px; } }
@container diner-frame (max-width: 420px) { .diner-embed iframe { height: 2050px; } }
@container diner-frame (max-width: 380px) { .diner-embed iframe { height: 2110px; } }
@container diner-frame (max-width: 340px) { .diner-embed iframe { height: 2210px; } }
@container diner-frame (max-width: 300px) { .diner-embed iframe { height: 2300px; } }
@container diner-frame (max-width: 280px) { .diner-embed iframe { height: 2400px; } }

.diner-menu{ display:block;} .diner-board .diner-marquee{ margin-bottom:10px;padding:12px 18px;} .diner-board .diner-marquee h1{ margin:3px 0 5px;font-size:clamp(26px,4vw,38px);} .diner-board .diner-kicker{ margin-bottom:3px;font-size:11px;} .diner-board .diner-snapshot{ margin-bottom:6px;} .diner-board .diner-scroll-hint{ margin:6px 0 12px;font-size:12px;} .specials-tree{ min-width:0;font:13px/1.4 var(--mono);} .specials-tree-heading{ display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 14px;margin-bottom:8px;} .diner-board .specials-tree-heading h2{ margin:0;font:700 18px/1.4 var(--sans);} .specials-tree-heading span,.specials-tree small{ color:var(--night-muted);font:12px/1.4 var(--sans);} .specials-tree details{ min-width:0;margin:0;} .specials-tree summary{ display:flex;align-items:center;gap:8px;min-height:34px;padding:6px 8px;list-style:none;color:var(--night-ink);cursor:pointer;} .specials-tree summary::-webkit-details-marker{ display:none;} .specials-tree summary::before{ content:'▸';flex:0 0 12px;color:var(--glow);} .specials-tree details[open] > summary::before{ content:'▾';} .specials-tree summary:hover{ background:#214b46;} .specials-tree summary:focus-visible{ outline:2px solid var(--glow);outline-offset:-2px;} .specials-continent > summary{ background:var(--night-raised);border-bottom:1px solid var(--night-line);} .specials-continent > summary strong,.specials-gpu > summary code{ flex:1;} .specials-branches,.specials-leaves{ margin-left:15px;padding-left:6px;border-left:1px solid var(--night-line);} .specials-gpu > summary code{ font-size:12px;color:var(--glow);overflow-wrap:anywhere;} .specials-model > summary code{ flex:1;min-width:0;font-size:12px;overflow-wrap:anywhere;} .specials-rate{ flex:0 0 auto;color:var(--night-muted);font-size:12px;white-space:nowrap;} .diner-board button.specials-copy{ flex:0 0 auto;width:auto;min-height:28px;margin:0;padding:3px 8px;border:1px solid var(--night-line);border-radius:3px;background:var(--night-raised);color:var(--glow);font:12px/1.4 var(--sans);cursor:pointer;} .specials-copy:focus-visible{ outline:2px solid var(--glow);outline-offset:2px;} .specials-copy-status:empty{ display:none;} .specials-model-detail{ padding:8px 12px 10px 22px;border-block:1px solid var(--night-line);background:#153c39;} .specials-token-label{ display:block;margin:0 0 4px;color:var(--night-muted);font:11px/1.4 var(--sans);} .diner-board input.specials-token{ display:block;width:100%;height:32px;min-height:0;margin:0;padding:6px 8px;color:var(--night-ink);background:var(--night-raised);border:1px solid var(--night-line);border-radius:3px;font:12px/1.4 var(--mono);cursor:text;} .diner-board .specials-model-detail p{ margin:6px 0;max-width:none;font-size:12px;} .specials-model-detail .diner-rates dl{ display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:6px 0;} .specials-model-detail .diner-rates dd{ margin:3px 0;color:var(--night-ink);font-size:12px;overflow-wrap:anywhere;} .specials-model-detail .diner-rates dt{ color:var(--night-muted);font-size:11px;} .specials-aliases summary{ padding:4px 0;min-height:28px;font:12px/1.4 var(--sans);} .specials-aliases ul{ margin:0;padding-left:18px;overflow-wrap:anywhere;} .specials-aliases li{ margin:3px 0;font-size:11px;} .diner-board .specials-checked{ margin:8px 0;color:var(--night-muted);font-size:11px;} .diner-context-map{ margin-top:4px;} .diner-context-map summary{ padding-block:8px;font-size:12px;} body#widget.diner-page:target .diner-board{ display:block;min-height:0;padding:20px 18px;} body#widget.diner-page:target .diner-board .diner-marquee h1{ font-size:30px;} .diner-embed iframe{ height:760px !important;} @media (max-width:520px){ .specials-branches,.specials-leaves{ margin-left:10px;padding-left:4px;} .specials-tree summary{ padding-inline:4px;gap:5px;} .specials-model-detail{ padding-left:8px;padding-right:8px;} .diner-embed iframe{ height:900px !important;} }
/* Working API examples live in the funded console. */
.api-links{display:grid;grid-template-columns:4rem minmax(0,1fr);gap:.8rem 1rem}.api-links dt{font-family:ui-monospace,monospace}.api-links dd{margin:0;min-width:0}.api-links a{overflow-wrap:anywhere}#api-existing-key,#model-choice{max-width:100%;min-width:0}#api-gate{font-weight:600}
