/* Loot's own screens.
 *
 * Taken from the artboards in `loot/design/`, which are the source of truth for
 * this layer. shared.css supplies the palette, the reset, the bar and the
 * buttons; everything below is what Loot has and the other two halves do not.
 *
 * Where the artboards restate a shared token they are ignored in favour of
 * shared.css, so the three halves of the site cannot drift apart. Where they add
 * something — the six-column price table, the numbered launch cards, the ledger
 * that becomes one row per entry on a phone — it is here.
 */

/* ------------------------------------------------------------------ shell */

/* `hidden` must actually hide, whatever else an element's class says.
 *
 * The browser's own [hidden] rule is a `display: none` in the user-agent
 * stylesheet, which ANY author rule outranks. So `.launch { display: grid }`
 * quietly beat the hidden attribute on #steps, and the key page rendered the
 * whole post-mint flow — the key box, the deposit memo, an empty "what you
 * just got" panel reading $0.00000 — to someone who had not pressed the
 * button yet.
 *
 * Every script here toggles the PROPERTY (`el.hidden = false`) and none of
 * them touch style.display, so !important costs nothing and closes the hole
 * for the next class that gains a display. */
[hidden] { display: none !important; }

.wrap { max-width: 1440px; margin: 0 auto; }
section { margin: 0; }

h1, h2, h3 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.92;
  margin: 0;
}

.hero { padding: 48px 24px 30px; }
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.045em;
  /* Two offset shadows, money then ink. The artboards use this on every h1. */
  text-shadow: 4px 4px 0 var(--money), 8px 8px 0 var(--ink);
}
.hero p { max-width: 66ch; margin-top: 16px; font-weight: 500; }

.hero--split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.hero__art {
  width: 82%;
  justify-self: end;
  border: 6px solid var(--ink);
  box-shadow: 16px 16px 0 var(--ink);
  background: var(--lime);
  transform: rotate(-2deg);
}

.sechead { padding: 0 24px 18px; }
.sechead h2 { font-size: clamp(26px, 4vw, 38px); text-shadow: 3px 3px 0 var(--money); }
.sechead p { max-width: 70ch; margin-top: 12px; font-weight: 500; }

.row { display: flex; gap: 14px; flex-wrap: wrap; }
.eyebrow {
  margin-top: 22px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.72;
}

footer {
  border-top: var(--edge) solid var(--ink);
  padding: 24px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

/* ------------------------------------------------------------------ stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--edge);
  margin: 0 24px 30px;
  border: var(--edge) solid var(--ink);
  background: var(--ink);
  box-shadow: var(--pop);
}
.stat { background: var(--cream); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.stat-k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.stat-v {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.stat-sub { font-size: 11px; font-weight: 500; opacity: 0.65; }
.is-money { color: var(--money); }
.is-navy { color: var(--navy); }

/* ------------------------------------------------------------------ table */

.tablewrap,
.panel {
  margin: 0 24px 34px;
  border: var(--edge) solid var(--ink);
  background: var(--cream);
  box-shadow: var(--pop);
  overflow-x: auto;
}
.panel .pad { padding: 22px; }

table { border-collapse: collapse; width: 100%; }
thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--lime);
  white-space: nowrap;
}
tbody td { padding: 14px 16px; border-bottom: 2px solid rgba(11, 11, 11, 0.12); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.model { font-family: var(--display); font-size: 16px; }
.ours { font-family: var(--display); font-size: 16px; color: var(--money); }
.delta { font-weight: 700; color: var(--money); }
.tmono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }

.badge {
  display: inline-block;
  border: 2px solid var(--ink);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge--live { background: var(--money); color: var(--cream); }
.badge--soon { background: var(--cream); }
.badge--err { background: var(--red); color: var(--cream); }

.empty { padding: 44px 22px; text-align: center; }
.empty h3 { font-size: 20px; margin-bottom: 8px; }
.empty p { max-width: 52ch; margin: 0 auto; opacity: 0.75; }

/* ------------------------------------------------------------------ notes */

.note {
  margin: 0 24px 34px;
  border: var(--edge) solid var(--ink);
  background: var(--navy);
  color: var(--cream);
  padding: 18px 22px;
  box-shadow: var(--pop-sm);
}
.note strong { color: var(--lime); }
.note--err { background: var(--red); }
.note--err strong { color: var(--cream); }

.honest {
  margin: 0 24px 40px;
  border: var(--edge) solid var(--ink);
  background: var(--navy);
  color: var(--cream);
  padding: 24px;
  box-shadow: var(--pop-sm);
}
.honest h3 { font-size: 20px; color: var(--lime); margin-bottom: 10px; }
.honest p { max-width: 70ch; }
.honest p + p { margin-top: 10px; }
.honest strong { color: var(--lime); }
.honest--light { background: var(--cream); color: var(--ink); }
.honest--light h3, .honest--light strong { color: var(--ink); }

.warn { border: 3px solid var(--ink); background: var(--lime); padding: 16px 18px; font-size: 15px; font-weight: 500; }
.warn strong { display: block; margin-bottom: 4px; }
.warn code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: var(--ink); color: var(--lime); padding: 2px 6px; }
.warn--red { background: var(--red); color: var(--cream); display: flex; gap: 16px; align-items: center; }
.warn--red code { background: var(--cream); color: var(--ink); }

/* ------------------------------------------------------------------- code */

.code {
  border: var(--edge) solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
  line-height: 1.65;
  padding: 18px 20px;
  overflow-x: auto;
  box-shadow: var(--pop-sm);
  white-space: pre;
}
.code .k { color: var(--lime); }
.code .c { color: #7f93a8; }
.code .s { color: var(--skin); }

/* ------------------------------------------------------------------- keys */

.kv { display: grid; grid-template-columns: minmax(240px, 300px) 1fr; }
.kv > div { padding: 12px 22px; border-bottom: 2px solid rgba(11, 11, 11, 0.12); }
.kv > div:nth-last-child(-n + 2) { border-bottom: 0; }
.kv > div:nth-child(2n + 1) { font-family: ui-monospace, Consolas, monospace; font-size: 13px; font-weight: 700; }
.kv > div:nth-child(2n) { font-size: 15px; font-weight: 500; }

/* ------------------------------------------------------------- launch grid */

.launch { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: start; padding: 0 24px 56px; }
.launch-col { display: flex; flex-direction: column; gap: 26px; min-width: 0; }

/* A column is not the page, so its children drop the page's gutter.
 *
 * .note, .honest and .panel all carry `margin: 0 24px` because they were
 * written to sit directly in the page flow, where that gutter is what keeps
 * them off the edge. Dropped into a column they keep it, and indent
 * themselves 24px inside a column that is already inset — which is why the
 * navy panels on the key page sit narrower than the .signing block above
 * them. The bottom margin goes too: the column spaces itself with `gap`, and
 * the two were adding up.
 *
 * Named one by one, and not as `.launch-col > *`, so this outranks the phone
 * rule further down that re-applies a 16px gutter to the same components. A
 * single-class selector there would otherwise win on source order, and the
 * indent would come back below 900px only. */
.launch-col > .note,
.launch-col > .honest,
.launch-col > .panel,
.launch-col > .stats,
.launch-col > .cards,
.launch-col > .tablewrap { margin-left: 0; margin-right: 0; margin-bottom: 0; }

.card { border: var(--edge) solid var(--ink); background: #fff; box-shadow: var(--pop); }
.card-head { display: flex; align-items: center; gap: 14px; border-bottom: var(--edge) solid var(--ink); background: var(--lime); padding: 14px 22px; }
.card-n { font-family: var(--display); font-size: 26px; line-height: 1; }
.card-head h3 { font-size: 22px; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.lede { font-size: 15px; font-weight: 500; opacity: 0.78; margin: 0; }

.secret {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 20px;
  word-break: break-all;
  border: var(--edge) solid var(--ink);
  background: var(--ink);
  color: var(--lime);
  padding: 18px 20px;
  box-shadow: var(--pop-sm);
}
.codebox { border: var(--edge) solid var(--ink); background: var(--lime); padding: 20px 22px; box-shadow: var(--pop-sm); }
.codebox__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.bigcode { font-family: var(--display); font-size: clamp(30px, 5vw, 52px); letter-spacing: 0.02em; line-height: 1; color: var(--ink); }

.signing { border: var(--edge) solid var(--ink); background: var(--ink); color: var(--cream); box-shadow: var(--pop); }
.signing-head { border-bottom: var(--edge) solid var(--lime); padding: 16px 22px; }
.signing-head h3 { font-size: 22px; color: var(--lime); }
.srow { display: flex; gap: 16px; justify-content: space-between; align-items: baseline; padding: 12px 22px; border-bottom: 2px solid rgba(255, 248, 231, 0.16); }
.srow:last-child { border-bottom: 0; }
.srow .k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.55; }
.srow .v { font-family: ui-monospace, Consolas, monospace; font-size: 13px; text-align: right; word-break: break-all; }

/* An inline grid here could not be overridden by the phone breakpoint, which
   is exactly the bug that put ADD FUNDS in a 160px column at 375px. */
.funds { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 26px; margin: 0 24px 34px; align-items: start; }

/* ------------------------------------------------------------------ forms */

.field { display: grid; gap: 6px; }
.field > label, .field__k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; }
.field__row { display: flex; gap: 10px; align-items: stretch; }
.field__v {
  flex: 1 1 auto;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
  padding: 11px 13px;
  border: var(--edge) solid var(--ink);
  background: #fff;
  color: var(--ink);
  word-break: break-all;
}
.hint { font-size: 12px; opacity: 0.7; }
.err { margin-top: 10px; border: var(--edge) solid var(--ink); background: var(--red); color: var(--cream); padding: 12px 14px; font-weight: 500; }

/* ------------------------------------------------------------------- tabs */

.tabs { display: flex; margin: 0 24px; overflow-x: auto; }
.tab {
  border: var(--edge) solid var(--ink);
  border-bottom: 0;
  background: var(--cream);
  min-height: 46px;
  padding: 0 18px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.05em;
  cursor: pointer;
  margin-right: -4px;
  white-space: nowrap;
}
.tab[aria-selected="true"] { background: var(--ink); color: var(--lime); }

/* --------------------------------------------------------------- controls */

.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 24px 18px; }
.ctl-k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.chip {
  border: var(--edge) solid var(--ink);
  background: var(--cream);
  padding: 8px 14px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: var(--pop-sm);
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--lime); }
.chip[disabled] { opacity: 0.5; cursor: not-allowed; border-style: dashed; box-shadow: none; }

/* Unit 025. The ways to pay that cannot be attributed without care, kept one
   click away rather than laid out as if they were the main path. */
.byhand { border: var(--edge) solid var(--ink); background: var(--cream); padding: 0 18px; }
.byhand > summary { cursor: pointer; padding: 14px 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; }
.byhand[open] { padding-bottom: 18px; }
.byhand[open] > * + * { margin-top: 14px; }
#pay-panel { display: flex; flex-direction: column; gap: 14px; }
#pay-panel .field__row { flex-wrap: wrap; }
.spacer { flex: 1 1 auto; }

.window { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: center; margin: 0 24px 34px; border: var(--edge) solid var(--ink); background: var(--money); color: var(--cream); padding: 24px; box-shadow: var(--pop); }
.window h3 { font-size: 22px; color: var(--lime); margin-bottom: 8px; }
.window p { max-width: 70ch; font-weight: 500; }
.window-fig { font-family: var(--display); font-size: clamp(30px, 5vw, 46px); line-height: 1; font-variant-numeric: tabular-nums; text-align: right; }
.window-cap { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; margin-top: 8px; color: var(--lime); text-align: right; }

/* ------------------------------------------------------------------- grid */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 0 24px 40px; }
.cards > div { border: var(--edge) solid var(--ink); background: var(--cream); padding: 20px; box-shadow: var(--pop-sm); }
.cards h3 { font-size: 20px; }
.cards p { font-size: 14px; font-weight: 500; margin-top: 8px; }
.is-soon { opacity: 0.62; }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--edge); margin: 0 24px 30px; border: var(--edge) solid var(--ink); background: var(--ink); box-shadow: var(--pop); }
.trio > div { background: var(--cream); padding: 24px; }
.trio .fig { font-family: var(--display); font-size: 34px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.trio .sub { font-size: 13px; font-weight: 500; opacity: 0.7; margin-top: 6px; }
.trio > .lit { background: var(--money); color: var(--cream); }
.trio > .lit .stat-k, .trio > .lit .sub { color: var(--lime); opacity: 1; }

/* ------------------------------------------------------------ the phone */

/* The desktop ledger has six columns and does not shrink; below 900px each
   entry becomes a row of its own. Both markups ship and CSS picks one, because
   a table that reflows into unreadable columns is worse than either. */
.entries-phone { display: none; }
.entry { padding: 14px 16px; border-bottom: 2px solid rgba(11, 11, 11, 0.12); display: flex; flex-direction: column; gap: 6px; }
.entry:last-child { border-bottom: 0; }
.entry-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.entry-model { font-family: var(--display); font-size: 15px; }
.entry-cost { font-family: var(--display); font-size: 15px; }
.entry-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; font-family: ui-monospace, Consolas, monospace; opacity: 0.7; }

@media (max-width: 1000px) {
  .hero--split { grid-template-columns: 1fr; }
  .hero__art { width: 60%; justify-self: start; }
  .launch { grid-template-columns: 1fr; gap: 26px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .window { grid-template-columns: 1fr; }
  .window-fig, .window-cap { text-align: left; }
  .kv { grid-template-columns: 1fr; }
  .kv > div:nth-child(2n + 1) { border-bottom: 0; padding-bottom: 0; }
  .trio { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  /* shared.css gives the bar one fixed-height row. Loot is the only half
     carrying nav AND an action, and at 375px they collide — so the nav scrolls
     sideways rather than pushing the action off the edge. Fixed here, per
     shared.css's own rule about what does not belong in it. */
  .bar { padding: 0 12px; gap: 8px; }
  .bar__mark span { display: none; }
  .bar__nav { flex: 1 1 auto; min-width: 0; overflow-x: auto; gap: 16px; font-size: 12px; }
  .bar__nav a { white-space: nowrap; }
  .bar .btn { padding: 8px 12px; font-size: 13px; }

  .hero { padding: 26px 16px 18px; }
  .hero h1 { text-shadow: 3px 3px 0 var(--money), 6px 6px 0 var(--ink); }
  .sechead { padding: 0 16px 14px; }
  .stats, .note, .honest, .tablewrap, .panel, .cards, .controls, .window, .trio, .tabs, .funds { margin-left: 16px; margin-right: 16px; }
  .launch { padding: 0 16px 40px; }
  .field__row { flex-wrap: wrap; }
  .field__v { flex-basis: 100%; }

  .funds { grid-template-columns: 1fr; gap: 20px; }
  .entries-desktop { display: none; }
  .entries-phone { display: block; }

  /* A six-decimal balance is nine or ten characters, and at the desktop size it
     wraps to two lines inside a half-width tile — which reads as two numbers.
     The figures cannot be shortened without hiding a charge, so the type gets
     smaller instead. */
  .stat-v { font-size: 19px; }
  .stat { padding: 12px 14px; }
}

/* Unit 018. A price cell carrying credits over the dollar figure.

   Both, because the column beside it is the vendor's own dollars and a
   comparison that needs a conversion first is not a comparison. The credit
   line leads; the dollar line is quieter but never hidden — unit 007 learned
   what happens when a money figure is rounded out of sight. */
.num.has-sub {
  white-space: pre-line;
  line-height: 1.35;
}
.num.has-sub::first-line {
  font-weight: 600;
}

/* ------------------------------------------------------ unit 026: models */

/* The docs' table of contents, and the line pointing at the playground. */
.toc { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 0 24px 34px; padding: 14px 18px; border: var(--edge) solid var(--ink); background: var(--cream); box-shadow: var(--pop-sm); }
.toc a { font-size: 14px; font-weight: 700; text-decoration: none; border-bottom: 3px solid var(--money); white-space: nowrap; }
.toc a:hover { background: var(--lime); }
.lede-try a { font-weight: 700; text-decoration: underline; }
[id] { scroll-margin-top: calc(var(--bar-h) + 16px); }
@media (max-width: 700px) {
  .toc { margin-left: 16px; margin-right: 16px; }
}

/* The landing page's live counts: eight tiles, four to a row, two on a phone. */
.stats--metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) {
  .stats--metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.eyebrow a { text-decoration: underline; font-weight: 700; }

/* The balance in the bar, for someone signed in or holding a key. */
.bar__balance {
  flex: 0 0 auto;
  border: 3px solid var(--ink);
  background: var(--cream);
  padding: 6px 10px;
  font-family: var(--display);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: var(--pop-sm);
}
.bar__balance:hover { background: var(--ink); color: var(--lime); }
.bar__balance.is-empty { background: var(--red); color: var(--cream); }
@media (max-width: 700px) {
  .bar__balance { font-size: 12px; padding: 5px 7px; box-shadow: none; }
}

.search {
  flex: 1 1 280px;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 15px;
  padding: 10px 12px;
  border: var(--edge) solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--pop-sm);
}
.select {
  font-family: var(--body);
  font-weight: 700;
  font-size: 14px;
  padding: 9px 10px;
  border: var(--edge) solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--pop-sm);
  max-width: 100%;
}
.is-red { color: var(--red); }
.rowcount { margin: -18px 24px 26px; font-size: 14px; font-weight: 500; opacity: 0.72; }

td.model a { text-decoration: none; border-bottom: 3px solid var(--money); white-space: nowrap; }
td.model a:hover { background: var(--lime); }
td.fam { white-space: pre-line; line-height: 1.3; font-weight: 700; font-size: 14px; }
td.fam::first-line { font-weight: 700; }
td.empty-row { padding: 36px 22px; text-align: center; font-weight: 500; }

.badge--kind { background: var(--cream); white-space: nowrap; }
.badge--chat { background: var(--lime); }
.badge--image { background: var(--skin); }
.badge--video { background: var(--blue); color: var(--cream); }
.badge--embedding, .badge--music { background: var(--navy); color: var(--cream); }

/* The model page (026c). */
.crumb { margin: 26px 24px 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.crumb a { text-decoration: none; border-bottom: 2px solid var(--ink); }
.crumb span { opacity: 0.6; overflow-wrap: anywhere; }
.mhead { padding: 10px 24px 26px; }
.mhead h1 {
  font-size: clamp(30px, 5vw, 56px);
  text-transform: none;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  text-shadow: 3px 3px 0 var(--money);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.badge--soft { background: transparent; }
.mdesc { max-width: 68ch; margin-top: 16px; font-size: 18px; font-weight: 500; }
.warn--block { margin: 0 24px 26px; max-width: 72ch; }
.warn--block a { font-weight: 700; }
.snippets { display: grid; gap: 18px; margin: 0 24px 34px; }
.snip { display: grid; gap: 6px; min-width: 0; }
.snip-k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; }

/* The playground (026d): input beside output, stacked on a phone. */
.playground {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 22px;
  margin: 0 24px 40px;
  align-items: start;
}
.pg-in, .pg-out { border: var(--edge) solid var(--ink); background: var(--cream); box-shadow: var(--pop); min-width: 0; }
.pg-in { padding: 18px; display: grid; gap: 14px; }
.pg-h { font-size: 18px; }
.pg-area { font-family: var(--body); font-size: 15px; word-break: normal; resize: vertical; width: 100%; }
.pg-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pg-pair .field__v { width: 100%; }
.pg-who { margin: 0; line-height: 1.45; opacity: 0.85; }
.pg-who a { font-weight: 700; }
.pg-run { width: 100%; }
.pg-run[disabled] { opacity: 0.5; cursor: not-allowed; }
.pg-tabs { display: flex; border-bottom: var(--edge) solid var(--ink); overflow-x: auto; }
.pg-tabs .tab { border-top: 0; border-left: 0; margin-right: 0; }
.pg-pane { padding: 18px; min-height: 260px; display: grid; gap: 12px; align-content: start; }
.pg-reply { display: grid; gap: 10px; }
.pg-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.55; }
.pg-code { white-space: pre; font-size: 13px; }
.pg-json { max-height: 460px; overflow: auto; font-size: 12.5px; white-space: pre; }
.pg-empty { opacity: 0.6; font-weight: 500; margin: 0; }
.pg-md-p { margin: 0; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.pg-md-h { margin: 6px 0 0; font-family: var(--display); text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.1; }
.pg-md-h1 { font-size: 22px; }
.pg-md-h2 { font-size: 18px; }
.pg-md-h3 { font-size: 15px; }
.pg-md-list { margin: 0; padding-left: 24px; display: grid; gap: 4px; font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.pg-md-quote { margin: 0; padding: 4px 0 4px 14px; border-left: 4px solid var(--ink); font-style: italic; opacity: 0.85; }
.pg-md-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.9em; background: rgba(11, 11, 11, 0.08); padding: 1px 5px; }
.pg-md-tablewrap { overflow-x: auto; border: 3px solid var(--ink); }
.pg-md-table thead th { font-size: 12px; padding: 8px 12px; }
.pg-md-table td { padding: 8px 12px; font-size: 15px; }
.pg-reply a { font-weight: 700; text-decoration: underline; }
.pg-reply hr { border: 0; border-top: 3px solid var(--ink); margin: 4px 0; width: 100%; }
.pg-cost { margin: 0; font-size: 13px; font-weight: 700; color: var(--money); }
.pg-select { width: 100%; }
.pg-status { margin: 0; font-family: var(--display); font-size: 18px; font-variant-numeric: tabular-nums; }
.pg-stage { display: grid; gap: 10px; }
.pg-media { display: block; max-width: 100%; max-height: 640px; width: auto; border: var(--edge) solid var(--ink); background: #fff; justify-self: start; }
.pg-kept { margin: 0; }
.pg-kept a { font-weight: 700; }

@media (max-width: 1000px) {
  .playground { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .rowcount { margin: -18px 16px 22px; }
  .crumb { margin: 20px 16px 0; }
  .mhead { padding: 8px 16px 20px; }
  .warn--block, .snippets, .playground { margin-left: 16px; margin-right: 16px; }
  .search { flex-basis: 100%; }
}
