/* ---------------------------------------------------------------------------
   Toru — the machined flat plate.

   Vendored from the Toru design system (project
   toru-design-system-ef146876-1051-45f6-a34f-0e630e9cabd8): css/_base.css,
   css/utilities.css, css/shell.css and css/workspace.css concatenated, plus a
   landing-page block at the end. The app's screen stylesheets (machines,
   editor, settings, feedback, dialogs, onboarding, auth, cloud-vm) are not
   used by this page and are not vendored.

   The metal is the OBJECT, never the room. Pages are warm paper; the plate
   shows up only as the thing you handle — the rail bolted beside the page, the
   gate card screwed down in the middle of it, and the controls: raised plates,
   milled channels, engraved type. The plate is flat, with a vertical sheen
   wash and a fine horizontal grain on a 3px period. There are no flutes.

   Colour appears only where there is a decision — green granted, blue
   you-are-here, amber needs-attention. There is no red lamp. Dark glass is
   reserved for the machine's own output. Nothing moves except a working
   cursor and a lamp that is genuinely alive.
   ------------------------------------------------------------------------- */

:root {
  font-family:
    "Instrument Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #15181a;
  background: #fbfaf8;
  font-synthesis: none;

  /* --- Type ---------------------------------------------------------------
     Three families ship. Archivo is for the wordmark and engraved plate
     stamps only; it never sets body copy. */
  --font-ui: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-stamp: "Archivo", "Instrument Sans", sans-serif;

  /* --- Paper (the room) ---------------------------------------------------
     Every content page is paper. The pure white is gate-only: sign-in and
     loading, the two screens with no rail. */
  --bg: #fbfaf8; /* the app default backdrop */
  --paper: #fbfaf8; /* alias — reading surfaces */
  --paper-page: #fbfaf8;
  --paper-gate: #ffffff; /* sign-in / loading only */
  --paper-card: #fdfcfb; /* raised paper card on paper */
  --paper-well: #f1efea; /* table header, paper note block */
  --panel-inset: #eae8e3; /* milled channel cut into paper */
  --panel-inset-deep: #f1efea; /* shallow well: header rows, notes */

  /* --- Plate (the object) -------------------------------------------------
     Base colour + a vertical sheen + a 3px-period horizontal grain drawn at
     0deg: white hairline, gap, dark hairline, gap. Never change the period —
     it is what reads as machining rather than noise. */
  --plate-base: #d3d6d8;
  --plate-sheen: linear-gradient(
    180deg,
    rgb(255 255 255 / 35%) 0%,
    rgb(255 255 255 / 0%) 30%,
    rgb(0 0 0 / 0%) 60%,
    rgb(0 0 0 / 6%) 100%
  );
  --plate-grain: repeating-linear-gradient(
    0deg,
    rgb(255 255 255 / 16%) 0,
    rgb(255 255 255 / 0%) 1px,
    rgb(19 22 25 / 3.5%) 2px,
    rgb(19 22 25 / 0%) 3px
  );
  --plate-image: var(--plate-sheen), var(--plate-grain);
  --plate-bg:
    var(--plate-sheen), var(--plate-grain),
    linear-gradient(0deg, var(--plate-base), var(--plate-base));

  /* Short form — for surfaces too small to hold the grain without aliasing. */
  --plate-image-sm: linear-gradient(
    180deg,
    rgb(255 255 255 / 35%),
    rgb(0 0 0 / 5%)
  );
  --plate-bg-sm:
    var(--plate-image-sm),
    linear-gradient(0deg, var(--plate-base), var(--plate-base));

  /* Weaker still — the workspace tab strip. */
  --plate-image-strip: linear-gradient(
    180deg,
    rgb(255 255 255 / 30%),
    rgb(0 0 0 / 4%)
  );
  --plate-bg-strip:
    var(--plate-image-strip),
    linear-gradient(0deg, var(--plate-base), var(--plate-base));

  /* Metal steps, kept as names for anything still reaching for them. */
  --metal-hi: #edeff0; /* raised-plate top stop */
  --metal: #d3d6d8; /* the plate base */
  --metal-lo: #dcdfe0; /* raised-plate bottom stop */

  /* Plate elevation, by role. Plates are 4px; nothing else is. */
  --shadow-plate-gate:
    0 18px 42px rgb(19 22 25 / 32%), inset 0 0 0 1px rgb(19 22 25 / 32%);
  --shadow-plate-modal:
    0 24px 54px rgb(19 22 25 / 44%), inset 0 0 0 1px rgb(19 22 25 / 32%);
  --shadow-plate-dialog:
    0 20px 46px rgb(19 22 25 / 40%), inset 0 0 0 1px rgb(19 22 25 / 32%);
  --shadow-plate-chip:
    0 8px 22px rgb(19 22 25 / 22%), inset 0 0 0 1px rgb(19 22 25 / 30%);
  --shadow-toast:
    0 10px 26px rgb(19 22 25 / 30%), inset 0 0 0 1px rgb(19 22 25 / 30%);

  /* --- The seam -----------------------------------------------------------
     Exactly one hairline separates plate from paper. */
  --seam: rgb(19 22 25 / 28%);
  --seam-live: #1b4fd8; /* the collapse grip, on hover */
  --spine: rgb(19 22 25 / 28%); /* alias — the machined edge */

  /* --- Fasteners ----------------------------------------------------------
     One screw recipe everywhere: a 9px disc with a slot rotated a different
     amount on every single screw. */
  --screw: radial-gradient(circle at 35% 30%, #f2f4f4, #c6cacc 55%, #8f9598);
  --screw-ring: inset 0 0 0 1px rgb(19 22 25 / 25%);
  --screw-slot: rgb(19 22 25 / 45%);
  --screw-size: 9px;
  --screw-slot-length: 6px;
  --screw-inset-plate: 9px;
  --screw-inset-rail: 8px; /* x */
  --screw-inset-rail-y: 10px;

  /* Related discs — turned on the same lathe, but not fasteners. */
  --disc-avatar: radial-gradient(
    circle at 35% 30%,
    #f2f4f4,
    #c6cacc 60%,
    #9fa5a8
  );
  --toggle-knob: radial-gradient(circle at 35% 30%, #fdfefe, #d5d8da);

  /* --- Ink ----------------------------------------------------------------
     Paper ink runs dark to faint; plate ink is lighter and always engraved. */
  --text: #15181a; /* primary ink */
  --text-body: #5c6469; /* body copy on paper */
  --text-muted: #6a7074; /* muted secondary */
  --text-dim: #8a9094; /* muted tertiary, footnotes */
  --text-stamp: #41474a; /* engraved field label; icon strokes */
  --text-label: #575d61; /* wordmark and stamp-label ink */
  --text-on-plate: #2a2f32; /* ink on a raised plate; button labels */
  --text-plate: #4a5155; /* body copy sitting on metal */
  --text-plate-title: #2f3538; /* plate and modal headings */
  --text-rail: #5c6165; /* rail sub-text and rail icon strokes */
  --text-tab: #4a5054; /* stamp ink on metal; inactive tab */
  --text-stamp-dim: #9a9fa3; /* card footer stamp */
  --text-dead: #a6abae; /* stamp on something unavailable */
  --text-disabled: #a2a7aa; /* label on a disabled plate */
  --text-gate-stamp: #9b948a; /* the one warm grey, gate footer only */
  --text-on-dark: #e9eaea;

  /* --- Lamps --------------------------------------------------------------
     A lamp is physical: a lit dome or a dead recessed bulb. */
  --lamp-ok: #1c7a47; /* reachable · granted · running */
  --lamp-here: #1b4fd8; /* you-are-here · selected */
  --lamp-off: #a9aeb1; /* idle · asleep · not reached */
  --lamp-off-heavy: #a9afb2; /* the 10px host-table variant */
  --lamp-warn: #e8a13c; /* needs attention · update available */
  --lamp-bad: #95490f; /* DEPRECATED: no red lamp exists. */
  --lamp-ring: inset 0 0 0 1px rgb(19 22 25 / 30%);
  --lamp-ring-ok: inset 0 0 0 1px rgb(19 22 25 / 24%);
  --lamp-ring-card: inset 0 0 0 1px rgb(19 22 25 / 26%);
  --lamp-ring-host: inset 0 0 0 1px rgb(19 22 25 / 28%);
  --lamp-dead: inset 0 1px 1px rgb(19 22 25 / 35%); /* lit from above = dead */
  --lamp-socket: inset 0 1px 2px rgb(19 22 25 / 35%);
  --lamp-glow-ok: 0 0 6px rgb(28 122 71 / 55%);
  --lamp-glow-ok-sm: 0 0 5px rgb(28 122 71 / 50%);
  --radio-off-paper: #c6cacc;
  --radio-off-metal: #b4b9bc;
  --radio-disabled: #d9dcdd;
  --toggle-on: #2f4ec0; /* the toggle is the only place this blue appears */
  --toggle-off: #b6babd;

  /* --- Decisions ----------------------------------------------------------
     Two accents and nothing else. */
  --accent: #182ba0;
  --warn: #95490f;
  --warn-rule: rgb(149 73 15 / 35%);

  /* --- Raised plate controls ---------------------------------------------- */
  --btn-bg: linear-gradient(180deg, #edeff0, #dcdfe0);
  --btn-bg-hover: linear-gradient(180deg, #f3f5f5, #e2e5e6);
  --btn-shadow:
    0 1px 2px rgb(19 22 25 / 22%), inset 0 0 0 1px rgb(19 22 25 / 14%),
    inset 0 1px 0 rgb(255 255 255 / 80%);
  --btn-shadow-flat:
    inset 0 0 0 1px rgb(19 22 25 / 14%), inset 0 1px 0 rgb(255 255 255 / 80%);
  --btn-shadow-selected:
    0 1px 2px rgb(19 22 25 / 22%), inset 0 0 0 1px rgb(19 22 25 / 18%),
    inset 0 1px 0 rgb(255 255 255 / 80%);
  --btn-dark-bg: linear-gradient(180deg, #2a2e31, #151819);
  --btn-dark-bg-hover: linear-gradient(180deg, #33383b, #1b1f20);
  --btn-dark-shadow:
    0 1px 0 rgb(255 255 255 / 50%), inset 0 1px 0 rgb(255 255 255 / 14%);
  --btn-disabled-bg: #e2e0db;
  --btn-disabled-ink: #a2a7aa;
  --raised-card-bg: var(--btn-bg); /* alias — every raised surface is a plate */
  --raised-card-shadow: var(--btn-shadow);
  --case-bg: var(--plate-bg); /* alias — gate plates, modals, dialogs */
  --case-shadow: var(--shadow-plate-gate);
  --strip-bg: var(--plate-bg-strip); /* alias — the tab strip */
  --strip-shadow: inset 0 -1px 0 rgb(19 22 25 / 28%);
  --flutes: var(--plate-bg); /* DEPRECATED alias: 1b has no flutes. */

  /* Unavailable things are ghost rings, never a dimmed slab of metal. */
  --dim-card-bg: transparent;
  --dim-card-shadow: inset 0 0 0 1px rgb(19 22 25 / 18%);

  /* --- Milled channels (recessed) ----------------------------------------- */
  --channel-metal-bg: #c4c8ca;
  --channel-metal-shadow:
    inset 0 2px 3px rgb(19 22 25 / 22%), inset 0 0 0 1px rgb(19 22 25 / 20%),
    0 1px 0 rgb(255 255 255 / 70%);
  --channel-paper-bg: #eae8e3;
  --channel-paper-shadow:
    inset 0 2px 3px rgb(19 22 25 / 20%), 0 1px 0 rgb(255 255 255 / 80%);
  --input-shadow: var(--channel-paper-shadow); /* alias */
  --recessed-metal-bg: var(--channel-metal-bg); /* alias */
  --recessed-metal-shadow: var(--channel-metal-shadow);
  --track-bg: #c2c6c8; /* segmented-control track */
  --track-shadow:
    inset 0 2px 4px rgb(19 22 25 / 25%), inset 0 0 0 1px rgb(19 22 25 / 20%),
    0 1px 0 rgb(255 255 255 / 70%);

  /* --- Cards, rings, rules ------------------------------------------------ */
  --card-shadow:
    inset 0 0 0 1px rgb(19 22 25 / 18%), 0 2px 6px rgb(19 22 25 / 8%);
  --card-shadow-hover:
    inset 0 0 0 1px rgb(19 22 25 / 30%), 0 4px 10px rgb(19 22 25 / 12%);
  --card-shadow-hero:
    inset 0 0 0 1px rgb(19 22 25 / 22%), 0 2px 8px rgb(19 22 25 / 8%);
  --ring-live: inset 0 0 0 1px rgb(19 22 25 / 18%);
  --ring-soft: inset 0 0 0 1px rgb(19 22 25 / 14%);
  --ring-dead: inset 0 0 0 1px rgb(19 22 25 / 10%);
  --ring-metal: inset 0 0 0 1px rgb(19 22 25 / 20%);
  --ring-table: inset 0 0 0 1px rgb(19 22 25 / 16%);
  --rule: inset 0 -1px 0 rgb(19 22 25 / 10%);
  --rule-row: inset 0 -1px 0 rgb(19 22 25 / 8%);
  --rule-head: inset 0 -1px 0 rgb(19 22 25 / 12%);
  --hover-paper: rgb(19 22 25 / 3%);
  --hover-metal: rgb(255 255 255 / 28%);
  --hover-ink: rgb(19 22 25 / 7%);

  /* --- The rail ----------------------------------------------------------- */
  --rail-w: 246px; /* shell */
  --rail-w-setup: 264px; /* onboarding */
  --rail-w-collapsed: 16px;
  --rail-item-active-bg: rgb(19 22 25 / 7%);
  --rail-item-active-ring: inset 0 0 0 1px rgb(19 22 25 / 20%);
  --rail-item-hover: rgb(255 255 255 / 25%);
  --rail-well: rgb(255 255 255 / 28%); /* the frosted search well */

  /* --- Engraving ----------------------------------------------------------
     Any text sitting on metal carries a 1px white shadow underneath it. */
  --engrave-strong: 0 1px 0 rgb(255 255 255 / 65%); /* wordmarks, stamps */
  --engrave: 0 1px 0 rgb(255 255 255 / 50%); /* headings, labels */
  --engrave-soft: 0 1px 0 rgb(255 255 255 / 45%); /* mono notes */
  --engrave-faint: 0 1px 0 rgb(255 255 255 / 35%); /* muted body */

  /* --- Dark glass (the machine's own output) ------------------------------ */
  --glass: #15181a;
  --glass-text: #c7cbcd;
  --glass-emph: #e9eaea;
  --glass-secondary: #8a9094;
  --glass-dim: #7c8286;
  --glass-faint: #5c6165;
  --glass-hint: #41474a;
  --glass-ok: #57d98b; /* tool bullet · running lamp */
  --glass-agent: #d97757; /* assistant bullet · spinner */
  --glass-accent: #d97757; /* alias of --glass-agent */
  --glass-bad: #d96459; /* the stop glyph */
  --glass-diff-add: #7bd9a0;
  --glass-diff-add-bg: #1e3327;
  --glass-diff-del: #e8837b;
  --glass-diff-del-bg: #3a2224;
  --glass-ring: inset 0 0 0 1px rgb(255 255 255 / 22%);
  --glass-shadow: none; /* 1b terminal has no ring and no shadow */

  /* --- Scrims -------------------------------------------------------------- */
  --scrim: rgb(19 22 25 / 16%); /* modal over a page */
  --scrim-heavy: rgb(19 22 25 / 18%); /* standalone dialog screen */

  /* --- Radii --------------------------------------------------------------
     Tight. 2px controls, 3px cards, 4px plates. Nothing else is rounded. */
  --r-control: 2px;
  --r-card: 3px;
  --r-plate: 4px;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

/* Engraved type is never tightened — no negative tracking anywhere. */
h1 {
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

h2 {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

h3 {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

p {
  color: var(--text-body);
}

a {
  color: var(--warn);
  text-decoration: none;
  border-bottom: 1px solid var(--warn-rule);
}

a:hover {
  color: var(--text);
  border-bottom-color: rgb(19 22 25 / 50%);
}

code,
pre,
kbd,
.mono {
  font-family: var(--font-mono);
}

code {
  font-size: 0.86em;
}

kbd {
  color: var(--text-muted);
  font-size: 8px;
  font-weight: 400;
}

::selection {
  color: var(--text);
  background: rgb(24 43 160 / 20%);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 6px;
  background: rgb(19 22 25 / 28%);
  background-clip: padding-box;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spin {
  animation: spin 0.9s linear infinite;
  flex-shrink: 0;
}

/* The one permitted blink: a working cursor, or a lamp that is genuinely
   alive. Everything animated carries data-anim so it can be switched off. */
@keyframes toru-pulse {
  0%,
  100% {
    opacity: 0.25;
  }

  50% {
    opacity: 1;
  }
}

/* Three LEDs chasing each other while the workspace connects. */
@keyframes toru-led-chase {
  0%,
  100% {
    opacity: 0.2;
  }

  30% {
    opacity: 1;
  }

  60% {
    opacity: 0.2;
  }
}

/* ---------------------------------------------------------------------------
   Utilities: plate surfaces, fasteners, engraved type, lamps, tones, controls.

   Everything here is shared vocabulary. If two screens draw the same physical
   thing — a screw, a lamp, a milled channel — it is drawn once, here, from the
   recipe tokens above. Page stylesheets set size and position; they do not
   re-derive the material.
   ------------------------------------------------------------------------- */

/* --- Plate surfaces ---------------------------------------------------------
   The metal is the object. Reach for .plate only on the rail, the gate card,
   modals and controls — never on a content page. */
.plate {
  position: relative;
  background: var(--plate-bg);
}

/* Short form, for surfaces too small to hold the grain: badges, toasts, the
   collapsed rail. */
.plate-sm {
  position: relative;
  background: var(--plate-bg-sm);
}

/* The tab strip: a weaker sheen and the seam repeated along its underside. */
.plate-strip {
  position: relative;
  background: var(--plate-bg-strip);
  box-shadow: var(--strip-shadow);
}

/* Screws sit under the content and over the plate. Anything that must clear
   them takes .plate-content. */
.plate-content {
  position: relative;
  z-index: 1;
}

/* The one hairline that separates plate from paper. */
.seam {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: var(--seam);
}

/* --- Fasteners --------------------------------------------------------------
   One screw, everywhere. The slot is rotated a different amount on every
   single screw — that variance is the whole trick, so pass --slot-angle when
   you place one. .screwed sets the plate inset (9px); .screwed-rail sets the
   rail inset (8px across, 10px down). */
.screwed,
.screwed-rail {
  position: relative;
}

.screwed {
  --screw-x: var(--screw-inset-plate);
  --screw-y: var(--screw-inset-plate);
}

.screwed-rail {
  --screw-x: var(--screw-inset-rail);
  --screw-y: var(--screw-inset-rail-y);
}

.screw {
  position: absolute;
  z-index: 0;
  width: var(--screw-size);
  height: var(--screw-size);
  border-radius: 50%;
  background: var(--screw);
  box-shadow: var(--screw-ring);
  pointer-events: none;
}

.screw::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--screw-slot-length);
  height: 1px;
  background: var(--screw-slot);
  transform: translate(-50%, -50%) rotate(var(--slot-angle, 45deg));
}

.screw-tl {
  --slot-angle: 55deg;

  left: var(--screw-x, 9px);
  top: var(--screw-y, 9px);
}

.screw-tr {
  --slot-angle: -35deg;

  right: var(--screw-x, 9px);
  top: var(--screw-y, 9px);
}

.screw-bl {
  --slot-angle: 20deg;

  left: var(--screw-x, 9px);
  bottom: var(--screw-y, 9px);
}

.screw-br {
  --slot-angle: 65deg;

  right: var(--screw-x, 9px);
  bottom: var(--screw-y, 9px);
}

/* The workspace rail takes a second pair flanking the collapse grip. */
.screw-grip-top {
  --slot-angle: 40deg;

  left: 3px;
  top: 10px;
}

.screw-grip-bottom {
  --slot-angle: -15deg;

  left: 3px;
  bottom: 10px;
}

/* --- Engraved type ----------------------------------------------------------
   Text on metal is cut into it: a 1px white shadow underneath, always. Text on
   paper carries none. */
.engrave {
  text-shadow: var(--engrave);
}

.engrave-strong {
  text-shadow: var(--engrave-strong);
}

.engrave-soft {
  text-shadow: var(--engrave-soft);
}

.engrave-faint {
  text-shadow: var(--engrave-faint);
}

/* The engraved field label above a channel — mono, tiny, wide. */
.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--text-stamp);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow.on-metal {
  text-shadow: var(--engrave-soft);
}

/* The Archivo stamp: wordmarks and plate/modal headers. Not a title bar — a
   struck label. */
.stamp {
  display: block;
  color: var(--text-label);
  font-family: var(--font-stamp);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-shadow: var(--engrave-strong);
}

.stamp-wordmark {
  font-size: 12px;
  letter-spacing: 0.3em;
}

/* Mono chip / column-header ink — the small stamped words on a card. */
.stamp-mono {
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-plate);
}

/* --- Lamps ------------------------------------------------------------------
   A lamp is physical: a lit dome, or a dead bulb recessed in its socket (note
   the inset from ABOVE on the off state — that is what makes it read dead).
   Default 7px; set --lamp-size for the 6 / 8 / 10 / 14px variants. There is no
   red lamp in this design: attention is amber. */
.lamp,
.status-dot {
  display: inline-block;
  width: var(--lamp-size, 7px);
  height: var(--lamp-size, 7px);
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--lamp-off);
  box-shadow: var(--lamp-dead);
}

.lamp.ok,
.lamp.good,
.status-dot.ok,
.status-dot.good {
  background: var(--lamp-ok);
  box-shadow: var(--lamp-ring-ok);
}

.lamp.here,
.status-dot.here {
  background: var(--lamp-here);
  box-shadow: var(--lamp-ring);
}

.lamp.warn,
.lamp.bad,
.status-dot.warn,
.status-dot.bad {
  background: var(--lamp-warn);
  box-shadow: var(--lamp-ring);
}

.lamp.off,
.lamp.faint,
.status-dot.off,
.status-dot.faint {
  background: var(--lamp-off);
  box-shadow: var(--lamp-dead);
}

.lamp.dead,
.status-dot.dead {
  background: var(--radio-disabled);
  box-shadow: inset 0 1px 2px rgb(19 22 25 / 25%);
}

/* Unselected radio — a socket with no bulb in it. */
.lamp.radio,
.status-dot.radio {
  background: var(--radio-off-paper);
  box-shadow: var(--lamp-socket);
}

.lamp.radio.on-metal,
.status-dot.radio.on-metal {
  background: var(--radio-off-metal);
  box-shadow: inset 0 1px 2px rgb(19 22 25 / 30%);
}

/* The only thing that glows: user-confirmed truth. */
.lamp.glow,
.status-dot.glow {
  box-shadow: var(--lamp-ring-ok), var(--lamp-glow-ok-sm);
}

.lamp.glow.lg,
.status-dot.glow.lg {
  box-shadow: var(--lamp-ring-host), var(--lamp-glow-ok);
}

.lamp.pulse,
.status-dot.pulse {
  animation: toru-pulse 1.6s ease-in-out infinite;
  background: var(--lamp-here);
  box-shadow: var(--lamp-ring);
}

/* --- Ink tones --------------------------------------------------------------
   Status words, not lamps. `bad` is deliberately the same burnt sienna as
   `warn` — a failure asks to be dealt with; it does not shout in red. */
.tone-good,
.tone-ok {
  color: var(--lamp-ok);
}

.tone-warn,
.tone-bad {
  color: var(--warn);
}

.tone-faint,
.tone-off {
  color: var(--text-dim);
}

.tone-here {
  color: var(--lamp-here);
}

/* --- Buttons ----------------------------------------------------------------
   Two real buttons: a raised plate, and a dark one. The plate has a ring and a
   lit top lip; the dark button has NO ring — the white line under it is a lit
   bottom edge, not a shadow. Hover swaps the gradient and nothing moves. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r-control);
  color: var(--text-on-plate);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.button-sm {
  height: 32px;
  padding: 0 14px;
}

.button-lg {
  height: 40px;
  padding: 0 20px;
}

.button:disabled {
  cursor: not-allowed;
}

.button-primary {
  color: var(--text-on-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: var(--btn-dark-bg);
  box-shadow: var(--btn-dark-shadow);
}

.button-primary:hover:not(:disabled) {
  background: var(--btn-dark-bg-hover);
  color: var(--text-on-dark);
}

.button-primary:disabled {
  color: var(--btn-disabled-ink);
  background: var(--btn-disabled-bg);
  box-shadow: inset 0 0 0 1px rgb(19 22 25 / 12%);
}

.button-secondary {
  background: var(--btn-bg);
  box-shadow: var(--btn-shadow);
}

.button-secondary:hover:not(:disabled) {
  background: var(--btn-bg-hover);
}

.button-secondary:disabled {
  color: var(--btn-disabled-ink);
  background: var(--btn-disabled-bg);
  box-shadow: var(--ring-dead);
}

/* Ghost: an outlined tile on paper, or a bare word. */
.button-ghost {
  color: var(--text-muted);
  background: transparent;
  box-shadow: none;
}

.button-ghost:hover:not(:disabled) {
  color: var(--text);
  background: var(--hover-paper);
}

.button-ghost.outlined {
  border-radius: var(--r-card);
  box-shadow: var(--ring-live);
}

.button-ghost.on-metal:hover:not(:disabled) {
  background: var(--hover-metal);
}

/* Destructive is not red here — it is the attention sienna, on a plate. */
.button-danger {
  color: var(--warn);
  background: var(--btn-bg);
  box-shadow: var(--btn-shadow);
}

.button-danger:hover:not(:disabled) {
  background: var(--btn-bg-hover);
}

.button-danger:disabled {
  color: var(--btn-disabled-ink);
  background: var(--btn-disabled-bg);
  box-shadow: var(--ring-dead);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: var(--r-control);
  color: var(--text-rail);
  background: transparent;
  cursor: pointer;
}

.icon-button:hover {
  color: var(--text);
  background: var(--hover-ink);
}

.icon-button.active {
  color: var(--text);
  background: var(--rail-item-active-bg);
  box-shadow: var(--rail-item-active-ring);
}

/* --- Milled channels --------------------------------------------------------
   Recessed, not bordered: the field is a cut in the surface with a lit lip
   below it. */
.channel {
  border-radius: var(--r-control);
  color: var(--text);
  background: var(--channel-paper-bg);
  box-shadow: var(--channel-paper-shadow);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1;
}

.channel.on-metal {
  background: var(--channel-metal-bg);
  box-shadow: var(--channel-metal-shadow);
}

.channel.mono {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
}

/* Read-only note cut into the plate. */
.note-plate {
  padding: 10px 12px;
  border-radius: var(--r-control);
  color: var(--text-stamp);
  background: var(--channel-metal-bg);
  box-shadow: var(--channel-metal-shadow);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.7;
  text-shadow: var(--engrave-soft);
}

.note-paper {
  padding: 10px 12px;
  border-radius: var(--r-control);
  color: var(--text-muted);
  background: var(--paper-well);
  box-shadow: var(--ring-dead);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.7;
}

/* The one animated thing inside a field. */
.caret {
  display: inline-block;
  width: 2px;
  height: 15px;
  margin-left: 2px;
  background: var(--accent);
  animation: toru-pulse 1.1s ease-in-out infinite;
}

.channel.on-metal .caret {
  margin-left: 3px;
}

/* --- Chips ------------------------------------------------------------------
   A chip is a raised plate with no drop shadow, carrying a stamped word. */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 20px;
  padding: 0 9px;
  border-radius: var(--r-control);
  color: var(--text-on-plate);
  background: var(--btn-bg);
  box-shadow: var(--btn-shadow-flat);
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-badge .status-dot {
  width: 7px;
  height: 7px;
}

/* ---------------------------------------------------------------------------
   Shell: the plate rail bolted beside a paper page.

   The rail is the metal you handle — flat, grained, screwed at four corners,
   parted from the page by a single hairline seam. On this page it appears only
   inside the hero's still of the app, so the rules below are the subset of
   css/shell.css the still actually draws.
   ------------------------------------------------------------------------- */

/* --- Search -----------------------------------------------------------------
   A frosted well cut into the plate — not a milled channel, so no shadow
   falling in from the top lip. */
.rail-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  flex-shrink: 0;
  margin: 0 16px 12px;
  padding: 0 10px;
  border-radius: var(--r-control);
  color: var(--text-rail);
  background: var(--rail-well);
  box-shadow: var(--ring-metal);
}

/* Stamped group heading. The first sits tight under the search well. */
.rail-group {
  padding: 9px 5px 5px;
  color: var(--text-tab);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: var(--engrave-soft);
}

.rail-group:first-child {
  padding-top: 3px;
}

/* A machine on the rail: a lamp for its state, an engraved name, a mono
   sub-line. A running machine stands taller than an idle one. */
.rail-machine {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  flex-shrink: 0;
  padding: 0 9px;
  border: 0;
  border-radius: var(--r-control);
  cursor: pointer;
  text-align: left;
  background: transparent;
}

.rail-machine:hover {
  background: var(--rail-item-hover);
}

.rail-machine.dim {
  height: 36px;
}

/* The one you are inside is a well pressed into the plate. */
.rail-machine.active,
.rail-machine.active:hover {
  background: var(--rail-item-active-bg);
  box-shadow: var(--rail-item-active-ring);
}

/* Blue is you-are-here, whatever the machine happens to be doing. */
.rail-machine.active .status-dot {
  background: var(--lamp-here);
  box-shadow: var(--lamp-ring);
}

.rail-machine-text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.rail-machine-text strong {
  overflow: hidden;
  color: var(--text-on-plate);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1;
  text-overflow: ellipsis;
  text-shadow: var(--engrave);
  white-space: nowrap;
}

/* Cut in, not raised: the active name loses its engraving and darkens. */
.rail-machine.active .rail-machine-text strong {
  color: var(--text);
  font-weight: 600;
  text-shadow: none;
}

.rail-machine-text span {
  overflow: hidden;
  color: var(--text-rail);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Add a machine ----------------------------------------------------------
   A ghost strip ruled into the plate with its shortcut stamped opposite. */
.rail-add {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  flex-shrink: 0;
  margin: 10px 14px 0;
  padding: 0 11px;
  border: 0;
  border-radius: var(--r-control);
  cursor: pointer;
  color: var(--text-on-plate);
  background: transparent;
  box-shadow: var(--ring-live);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  text-shadow: var(--engrave);
}

.rail-add:hover {
  background: rgb(255 255 255 / 30%);
}

.rail-add kbd {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  text-shadow: none;
}

/* ---------------------------------------------------------------------------
   Machine workspace: the plate tab strip and the dark glass under it.

   The strip is metal with the seam along its underside; the active tab is the
   glass itself rising through the strip, so the two join with no line between
   them. Subset of css/workspace.css: what the hero still draws.
   ------------------------------------------------------------------------- */
.workspace-tab {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 3px 3px 0 0;
}

.workspace-tab:hover {
  background: rgb(255 255 255 / 30%);
}

/* The active tab is the glass, not a lighter piece of metal. */
.workspace-tab.active,
.workspace-tab.active:hover {
  background: var(--glass);
}

.workspace-tab-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 100%;
  padding: 0 0 0 14px;
  border: 0;
  color: var(--text-tab);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 11.5px;
  line-height: 1;
  white-space: nowrap;
}

.workspace-tab.active .workspace-tab-main {
  color: var(--glass-emph);
  font-weight: 500;
}

.workspace-tab-title {
  overflow: hidden;
  max-width: 150px;
  text-overflow: ellipsis;
}

.workspace-tab-key {
  color: var(--text-dim);
}

.workspace-tab.active .workspace-tab-key {
  color: var(--glass-dim);
}

.tab-status-dot {
  width: 6px;
  height: 6px;
}

/* On the glass, a running agent is the one lamp that breathes. */
.workspace-tab.active .tab-status-dot.ok {
  animation: toru-pulse 1.6s ease-in-out infinite;
  background: var(--glass-ok);
  box-shadow: none;
}

.new-tab-button {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 0;
  color: var(--text-tab);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.new-tab-button:hover {
  color: var(--text);
}

/* ---------------------------------------------------------------------------
   The landing page.

   Everything above is the app's own vocabulary, vendored unchanged. This block
   is the only part that belongs to toru.sh: it names the page's repeated
   shapes so the markup stays readable, and it carries the two things a static
   design cannot — hover states and the narrow viewports.
   ------------------------------------------------------------------------- */

.lp {
  min-height: 100vh;
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
}

/* --- Header ----------------------------------------------------------------- */
.lp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 0 20px;
}

.lp-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* A word on metal, not a link on paper: it loses the sienna and the rule. */
.lp-nav-link {
  padding: 6px 10px;
  border-radius: var(--r-control);
  border-bottom: none;
  color: var(--text-tab);
  font-size: 12px;
  font-weight: 500;
}

.lp-nav-link:hover {
  background: var(--hover-metal);
  color: var(--text);
  border-bottom-color: transparent;
}

.lp-nav .button {
  margin-left: 8px;
  border-bottom: none;
}

/* --- Page rhythm ------------------------------------------------------------
   One measure, one gutter, one gap between sections. */
.lp-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 44px 84px;
}

.lp-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 76px 44px 52px;
  text-align: center;
}

.lp-hero h1 {
  max-width: 720px;
  margin: 0 auto 14px;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.15;
  text-wrap: pretty;
}

.lp-hero-lede {
  max-width: 600px;
  margin: 0 auto 28px;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.65;
}

.lp-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.lp-hero-actions .button {
  border-bottom: none;
}

.lp-eyebrow {
  font-size: 9px;
}

.lp-section > h2 {
  margin-bottom: 22px;
  font-size: 20px;
}

/* --- The still of the app ---------------------------------------------------
   A plate rail bolted beside dark glass, cropped to a window. It is a picture
   of the product, so nothing in it is interactive. */
.lp-still {
  display: grid;
  grid-template-columns: 198px minmax(0, 1fr);

  /* The measure widened to 1120px but the still keeps the size it was drawn
     at — 832px on the old 920px measure, less its gutters — so it centres in
     the wider column rather than stretching to fill it. */
  max-width: 832px;
  height: 420px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--r-plate);
  box-shadow: var(--shadow-plate-chip);
  text-align: left;

  /* The plate ring is an inset shadow, which the panes paint straight over.
     That was fine when the glass was dark and drew its own edge; a paper-white
     pane on a #fbfaf8 page needs the line back. An outline paints above the
     children and still follows the radius. */
  outline: 1px solid rgb(19 22 25 / 30%);
  outline-offset: -1px;
}

.lp-still-rail {
  display: flex;
  flex-direction: column;
}

.lp-still-rail .plate-content {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.lp-still-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  flex-shrink: 0;
}

.lp-still-rail .rail-search {
  margin: 0 14px 10px;
}

.lp-still-list {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 3px;
  margin: 0 14px;
}

.lp-still-main {
  display: flex;
  min-width: 0;
  flex-direction: column;

  /* The still shows a machine running in light mode, so the glass here is
     paper, not the shell's #15181a. Scoped to the whole main column and not
     just the pane: the active tab paints itself with --glass so it merges
     with the output below, and a dark tab over a white terminal reads as a
     mistake. Greens and siennas are darkened from the dark-glass set — the
     shell's #57d98b sits at 1.9:1 on white and disappears. */
  --glass: #fdfcfb;
  --glass-text: #41474a;
  --glass-emph: #15181a;
  --glass-secondary: #5c6469;
  --glass-dim: #8a9094;
  --glass-faint: #a2a7aa;
  --glass-hint: #c0c4c6;
  --glass-ok: #2f8f57;
  --glass-agent: #bf5f3a;
  --glass-accent: #bf5f3a;
  --glass-bad: #bf4339;
  --glass-diff-add: #1f7a4d;
  --glass-diff-add-bg: #e4f4ea;
  --glass-diff-del: #b2423a;
  --glass-diff-del-bg: #fae8e6;
}

.lp-still-tabs {
  display: flex;
  align-items: stretch;
  gap: 4px;
  height: 40px;
  flex-shrink: 0;
  padding: 6px 12px 0;
}

.lp-still-tabs .workspace-tab-main {
  padding-right: 14px;
}

/* The machine's own output. */
.lp-glass {
  flex: 1;
  overflow: hidden;
  padding: 20px 24px;
  background: var(--glass);
  color: var(--glass-text);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 2.1;
}

.lp-glass-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  margin-left: 8px;
  background: var(--glass-text);
  vertical-align: middle;
}

/* --- Why Toru ---------------------------------------------------------------
   Three claims ruled onto the paper, each with its proof stamped opposite. */
.lp-claims {
  margin-top: 14px;
  border-top: 1px solid rgb(19 22 25 / 12%);
}

.lp-claim {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid rgb(19 22 25 / 12%);
}

.lp-claim h2 {
  max-width: 700px;
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  text-wrap: pretty;
}

.lp-claim-proof {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* --- Cards ------------------------------------------------------------------ */
.lp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.lp-card {
  padding: 18px 18px 20px;
  border-radius: var(--r-card);
  background: var(--paper-card);
  box-shadow: var(--card-shadow);
}

.lp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.lp-card-step {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
}

.lp-card h3 {
  margin-bottom: 6px;
}

.lp-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
}

/* --- Alternatives -----------------------------------------------------------
   A table of paper stock: a stamped header well, then one ruled row per thing
   you could have used instead. */
.lp-table {
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--paper-card);
  box-shadow: var(--card-shadow);
}

.lp-table-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  padding: 9px 18px;
  background: var(--paper-well);
  box-shadow: var(--rule-head);
}

.lp-table-head .stamp-mono {
  color: var(--text-stamp);
}

.lp-table-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 14px 18px;
  box-shadow: var(--rule-row);
}

.lp-table-row:last-child {
  box-shadow: none;
}

.lp-table-row > span {
  font-family: var(--font-mono);
  font-size: 11px;
}

.lp-table-row p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
}

/* --- Agents ----------------------------------------------------------------- */
.lp-agents {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.lp-agent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 18px 8px 14px;
  border-radius: var(--r-card);
  background: var(--paper-card);
  box-shadow: var(--ring-live);
}

/* Not a tool we ship — a ghost ring, the way every unavailable thing is drawn. */
.lp-agent.any {
  background: transparent;
  box-shadow: var(--dim-card-shadow);
}

.lp-agent-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r-control);
  background: #fff;
  box-shadow: var(--ring-soft);
}

.lp-agent-mark img {
  width: 17px;
  height: 17px;
}

.lp-agent.any .lp-agent-mark {
  background: var(--glass);
  box-shadow: none;
  color: var(--glass-ok);
  font-family: var(--font-mono);
  font-size: 10px;
}

.lp-agent-name {
  font-size: 12px;
  font-weight: 500;
}

.lp-agent-cmd {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

/* --- Pricing ---------------------------------------------------------------- */
.lp-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lp-price {
  padding: 22px 22px 20px;
  border-radius: var(--r-card);
  background: var(--paper-card);
  box-shadow: var(--card-shadow);
}

/* Free is the offer, so it gets the heavier ring. */
.lp-price.hero {
  box-shadow: var(--card-shadow-hero);
}

.lp-price .stamp-mono {
  display: block;
  margin-bottom: 14px;
  color: var(--text-stamp);
}

.lp-price-figure {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.lp-price-figure strong {
  font-size: 30px;
  font-weight: 600;
}

.lp-price-unit {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.lp-price p {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.65;
}

.lp-price-terms {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

/* --- Closing plate ---------------------------------------------------------- */
.lp-cta {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 44px 96px;
  text-align: center;
}

.lp-cta-plate {
  padding: 36px 32px 32px;
  border-radius: var(--r-plate);
  box-shadow: var(--shadow-plate-chip);
}

.lp-cta-plate h2 {
  margin-bottom: 6px;
  color: var(--text-plate-title);
  font-size: 18px;
}

.lp-cta-plate p {
  margin: 0 0 18px;
  color: var(--text-plate);
  font-size: 12.5px;
}

.lp-cta-plate .button {
  border-bottom: none;
}

.lp-cta-terms {
  margin-top: 14px;
  color: var(--text-tab);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

/* --- Footer ----------------------------------------------------------------- */
.lp-footer {
  display: flex;
  max-width: 1120px;
  margin: 0 auto;
  align-items: center;
  gap: 20px;
  padding: 18px 44px 28px;
  border-top: 1px solid rgb(19 22 25 / 10%);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.lp-footer a {
  font-size: 9.5px;
}

/* --- Narrow viewports -------------------------------------------------------
   The measure is fixed, so everything below is the gutter closing and the
   grids folding. The still keeps its proportions by dropping the rail: a
   198px plate beside a 100px pane is not the product. */
@media (max-width: 900px) {
  .lp-section,
  .lp-cta {
    padding-right: 24px;
    padding-left: 24px;
  }

  .lp-hero {
    padding: 56px 24px 40px;
  }

  .lp-hero h1 {
    font-size: 34px;
  }

  .lp-footer {
    padding-right: 24px;
    padding-left: 24px;
  }

  .lp-agents {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .lp-still {
    grid-template-columns: minmax(0, 1fr);
    height: 340px;
  }

  .lp-still-rail {
    display: none;
  }

  .lp-claim {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .lp-claim h2 {
    font-size: 21px;
  }

  .lp-cards,
  .lp-prices {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-table-head {
    display: none;
  }

  .lp-table-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

@media (max-width: 520px) {
  .lp-hero h1 {
    font-size: 28px;
  }

  .lp-hero-actions {
    flex-direction: column;
  }

  .lp-hero-actions .button {
    width: 100%;
  }

  .lp-agents {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-footer {
    flex-wrap: wrap;
    gap: 10px 16px;
  }
}

/* Nothing moves except a working cursor and a lamp that is genuinely alive —
   and even those stop when the reader has asked for stillness. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
