/* Dudbox landing. Warm paper, a dot-grid canvas, near-black ink, and Dud's
   tan as the one warm color. Light only.
   Layout: nav, one hero line, the live demo, then one section per thing a
   customer gets, each with its own animation, then the request form. */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: block; src: url(/fonts/figtree-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: block; src: url(/fonts/figtree-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: block; src: url(/fonts/geist-mono-latin.woff2) format('woff2'); }
/* Kalam: only for hand lettering: Dud's speech bubble (the beach at the bottom, 700) and the dashboard's "Click here to start" (400) */
@font-face { font-family: 'Kalam'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/kalam-400-latin.woff2) format('woff2'); }
@font-face { font-family: 'Kalam'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/kalam-latin.woff2) format('woff2'); }

:root {
  /* colors: one value each, set only here. Text from dark to light: ink,
     ink-2, muted, faint. Lines: edge for a border, edge-hover, rule for a
     divider or the canvas's dots. Grounds: paper, canvas, fill (a track, a
     loading bar, code), hover (a pressable thing under the pointer, only
     where the fill is fully inside a border), and page, the landing's warm
     ground. */
  --ink: #0E1014; --ink-2: #3B3F48; --muted: #5D616B; --faint: #8A8E96;
  --edge: #BABEC6; --edge-hover: #8F95A1; --rule: #DEE0E4;
  --paper: #FFFFFF; --canvas: #F6F7F8; --fill: #F1F2F4; --hover: #F8F9FA; --page: #FCFBF8;
  /* states: a dot or a ring in the color, words in -ink, a pill or a tint in
     -bg. busy is work that runs (a deploy, a build), a greenish blue. */
  --live: #1E9E5A; --live-ink: #1E7A4A; --live-bg: #E3F5EB;
  --busy: #1597B5; --busy-ink: #0F6E85; --busy-bg: #E2F3F7;
  --warn: #E9A23B; --warn-ink: #8F5A0E;
  --fail: #E5484D; --fail-ink: #B42318; --fail-bg: #FDECEA; --fail-line: #F2C6C1;
  /* a chart with two lines (Insights' p95 and p50): --chart-1 for the higher, a vivid blue, and
     --chart-2 for the one under it, a vivid green; apart for color blindness too (blue against
     an olive). Their areas are faint (dashapp.css .qf0). A chart of one line is in --dud.
     Never a state. */
  --chart-1: #0A6CFF; --chart-2: #00B86B;
  /* Dud's colors */
  --dud: #E0A95F; --dud-hover: #C99350; --tan: #F6E3C4; --tan-ink: #6E4A14; --tan-bg: #FDF6EA;
  /* the logs: light words on ink */
  --log-ink: #D6D9DE; --log-faint: #7D828C; --log-err: #FF9A90;
  /* every line on the page: borders, canvas lines, the status ring, the charts. Change it here. */
  --lw: 1px;
  /* shadows: four, and a shadow shows height, nothing else: how high a thing
     sits over what is under it. A button on its card; a card on the canvas or
     the page; what floats over the page (a menu, a toast, a tip); a window or
     the panel. A state never changes a shadow: a picked card changes its line. */
  --shadow-button: 0 1px 2px rgba(14,16,20,.06);
  --shadow-card: 0 1px 2px rgba(14,16,20,.06), 0 8px 20px rgba(14,16,20,.06);
  --shadow-float: 0 1px 2px rgba(14,16,20,.05), 0 8px 24px rgba(14,16,20,.10);
  --shadow-window: 0 2px 6px rgba(14,16,20,.04), 0 16px 48px rgba(14,16,20,.12);
  --sans: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  /* Motion: three times, by what moves (/frontend-design → Motion, and /frontend-design/motion
     to compare and tune them). Every part takes its time from here, never a number of its own;
     the scripts read them too (src/lib/motion.ts, ring.js, steps.js, demo.js), so each is set
     only here. Write them in ms. */
  --fast: 150ms;  /* what answers a click in place: a window opens or closes, a switch, a tab's line, a pressed button, a view that swaps in */
  --mid: 300ms;   /* a part that changes in place: a ring's color, the chevron, a drawer's content fades in, a window grows to fit */
  --slow: 450ms;  /* a part that travels or changes size, so the parts around it move: the panel, a drawer, a new deployment, the chart */
  --spin: 360ms;  /* one turn of a spinner: the rings (ring.js), the deploy's stroke (steps.js) and .spin keep one beat */
  --linger: 1500ms; /* a mark of what just changed (a new row's tint) fades out over this */
  /* ease: everything that moves or fades, a quick start and a soft stop. pop: grows past full
     size a little, then settles (a ring's check). sink: starts slow, then goes (the landing's). */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  --sink: cubic-bezier(.32, 0, .67, 0);
  --wrap: 1120px;
  --pw: clamp(380px, 48%, 550px);
  /* Space: one scale for the panel, the pages and the windows (/frontend-design → Primitives).
     Every part takes its space from here, never a number of its own. */
  --gap: 12px;        /* between boxes: cards, inputs, buttons, and dropdowns */
  --gap-title: 32px;  /* above a list's title, from the block over it: more than --gap */
  --gap-under: 8px;   /* under a list's title, to its list */
  --external-link-gap: .5em; /* from a link label to its new-tab arrow: as wide as the arrow, so it grows with the text */
  --row: 44px;        /* a row of a list */
  --win-pad: 32px;    /* a window's padding */
  --win-title: 32px;  /* under a window's title */
  --win: 480px;       /* a window's width: words, a list, a thing's details */
  --win-narrow: 400px; /* a window with one field, or one list to pick from (a branch, the memory limit) */
  --win-wide: 560px;  /* a window with a table of several columns (the plans), or a log (a deployment's) */
  --win-max: min(720px, 100dvh - 96px); /* a window's tallest: 720 px, or 48 px from the screen's top and bottom on a short screen. Past it, it scrolls inside. */
  --sbar: 10px;       /* a scrollbar's room: the site's thin pill and the space around it (::-webkit-scrollbar) */
  --col: 560px;       /* the widest a list of rows gets: a page's column, and Settings in a wide panel */
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Every scrollbar on the site (the page, the panel, a list, a log, a window): a thin pill with
   round ends, in the light gray of a divider (--rule), with no track. Under the pointer and
   while you drag it, it is --edge. A part can keep its room for it, or set its track's margin
   to stay clear of its round corners; the dark log sets its own color. Firefox has no
   ::-webkit-scrollbar, so it gets its own thin bar in the same colors. */
::-webkit-scrollbar { width: var(--sbar); height: var(--sbar); }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: none; }
::-webkit-scrollbar-thumb { background: var(--rule) padding-box; border: 3px solid transparent; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active { background-color: var(--edge); }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: var(--rule) transparent; } }
/* index.html hides the body until this file is in */
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
/* focus that Tab, the arrows, Home, End or the page keys did not bring (a click, or Enter or Escape closed a window): no ring, even after a key (js/focus.js) */
[data-quiet]:focus-visible { outline: none !important; }
.mono { font-family: var(--mono); font-weight: 400; }
/* counts and times: Figtree, with digits of one width */
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
h1, h2, h3 { text-wrap: balance; font-weight: 700; }
b, strong { font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons: two heights, by where the button sits (frontend-design/scales.ts). 38 px for the one
   main button of a window or a form, as tall as a field; 32 px (.sm) for a button among other
   things: in a card, a row or a bar. .big (50 px) only for the landing's own form. An icon button
   is 32 px in a bar (.icon, the bell, the avatar), 28 px in a window's head or a row (.ibtn, a
   deployment's chevron).
   Every button has one look, in the panel, a page, the bar and a window alike: a line and a
   small contact shadow. A button that stands next to a card or in one (.quiet) has no line: it
   is gray text that goes ink on hover. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--paper); border: var(--lw) solid var(--edge); border-radius: 12px; box-shadow: var(--shadow-button); padding: 0 16px; min-height: 38px; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--edge-hover); }
.btn.ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.ink:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn.ink[disabled] { background: var(--edge); border-color: var(--edge); box-shadow: none; cursor: default; }
.btn.sm { min-height: 32px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn.icon { width: 32px; padding: 0; }
.btn.danger { color: var(--fail-ink); border-color: var(--fail-line); }
.btn.danger:hover { border-color: var(--fail-ink); }
.btn.quiet { background: none; border-color: transparent; box-shadow: none; padding: 0 8px; color: var(--muted); }
.btn.quiet:hover { border-color: transparent; color: var(--ink); }
.btn.quiet.icon { padding: 0; }
.btn.quiet[disabled] { color: var(--edge); cursor: default; }
.btn.quiet.danger { border-color: transparent; }
.btn.quiet.danger:hover { border-color: transparent; color: var(--fail-ink); }
/* a button with a line fills on hover: gray, or light red for danger. The ink one lightens; a quiet one (no line) only changes its text. */
.btn:not(.ink):not(.quiet):not(.danger):not(:disabled):hover { background: var(--hover); }
.btn.danger:not(.quiet):not(:disabled):hover { background: var(--fail-bg); }
.btn.big { min-height: 50px; padding: 0 24px; font-size: 16px; border-radius: 12px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.nav.scrolled { border-bottom-color: var(--rule); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.nav nav { display: flex; gap: 24px; flex: 1 1 auto; font-size: 16px; }
.nav nav a { text-decoration: none; color: var(--ink-2); }
.nav nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav nav { display: none; } .nav .wrap { justify-content: space-between; } }

/* hero: one line, three points with icons, the live demo centered under them */
.hero { padding: clamp(48px, 6vw, 84px) 0 0; }
.hero > .wrap { display: flex; flex-direction: column; align-items: center; gap: clamp(32px, 4vw, 48px); }
.hero h1 { margin: 0; padding: 0 clamp(0px, 4vw, 64px); font-size: clamp(28px, 3.45vw, 42px); line-height: 1.12; letter-spacing: -.035em; font-weight: 750; text-align: center; }
@media (min-width: 900px) { .hero h1 { white-space: nowrap; } }
/* z-index: the tips under the pills lie over the demo */
.htext { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.hl { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 12px; }
/* Each pill has a tip under it: on hover with a mouse, on a tap, or on keyboard focus (js/site.js).
   The tip moves sideways (--dx) to stay on the screen; its arrow stays under the pill. */
.hl li { position: relative; }
.hl li:hover, .hl li.open, .hl li:focus-within { z-index: 1; }
/* A pill: the hero pills (.hlp). (.pill is the small badge in the panel.)
   The line is the canvas card's: --edge at rest, --edge-hover on hover. */
.chip { display: inline-flex; align-items: center; gap: 12px; margin: 0; padding: 8px 24px 8px 8px; background: var(--paper); border: var(--lw) solid var(--edge); border-radius: 999px; font-size: 16px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-button); }
.chip:focus-visible { border-radius: 999px; }
@media (hover: hover) { .chip:hover { border-color: var(--edge-hover); } }
.hlp { cursor: default; }
.htip { position: absolute; top: calc(100% + 10px); left: 50%; width: max-content; max-width: min(280px, calc(100vw - 24px)); padding: 8px 12px 12px; background: var(--ink); color: var(--paper); border-radius: 12px; font-size: 14px; line-height: 1.45; text-align: left; box-shadow: var(--shadow-float); transform: translateX(calc(-50% + var(--dx, 0px))); visibility: hidden; pointer-events: none; }
.htip::before { content: ''; position: absolute; top: -4px; left: calc(50% - var(--dx, 0px)); width: 10px; height: 10px; margin-left: -4px; background: inherit; border-radius: 4px; transform: rotate(45deg); }
.hl li.open .htip, .hlp:focus-visible:not([data-quiet]) + .htip { visibility: visible; }
@media (hover: hover) {
  .hl li:hover .htip { visibility: visible; }
}
.hi { --bg: var(--tan); width: 32px; height: 32px; flex: none; border-radius: 999px; background: var(--bg); color: var(--tan-ink); display: inline-flex; align-items: center; justify-content: center; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 18px; color: var(--ink-2); }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks svg { flex: none; margin-top: 4px; color: var(--tan-ink); }
/* the demo is one layer under the hero text, so its panel and menus never cover the pills' tips */
.hdemo { position: relative; z-index: 1; width: 100%; min-width: 0; }
.hdemo .demo { --pw: clamp(380px, 46%, 540px); }
.hdemo .stage { height: clamp(430px, 58vh, 580px); }

/* the live demo */
.demo-wrap { padding: 0; }
/* The dashboard has one line: --lw (1 px), in three grays (--edge at rest, --edge-hover, and
   --hot for what is selected), and a lighter one for dividers (--rule). /frontend-design → Primitives shows them. */
.demo { position: relative; border: var(--lw) solid var(--edge); border-radius: 24px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow-card); }
/* The bar: the profile picture at its end is as far from the end as from the top and
   from the line under it. --bar is the bar's height, the line included; --pic is the
   picture's (.avatar) size. */
.dtop { --bar: 52px; --pic: 26px; display: flex; align-items: center; gap: 8px 16px; min-height: var(--bar); padding: 0 calc((var(--bar) - var(--lw) - var(--pic)) / 2) 0 12px; border-bottom: var(--lw) solid var(--edge); position: relative; z-index: 10; background: var(--paper); }
.projw { position: relative; display: flex; align-self: stretch; }
/* the project button is as tall as the bar, as the tabs beside it; only its hint is a pill */
.projbtn { position: relative; display: inline-flex; align-items: center; align-self: stretch; gap: 8px; background: none; border: 0; border-radius: 8px; padding: 0 8px; font-weight: 600; cursor: pointer; font-size: 16px; }
.projbtn:hover svg { stroke: var(--ink); }
.phint { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); text-align: center; display: none; white-space: nowrap; font: 600 12px var(--sans); color: var(--tan-ink); background: var(--tan); border-radius: 8px; padding: 4px 12px; box-shadow: var(--shadow-float); pointer-events: none; }
.phint::before { content: ""; position: absolute; left: 50%; margin-left: -4px; top: -4px; width: 8px; height: 8px; background: var(--tan); transform: rotate(45deg); }
/* The hint ring grows 10 px on every side and fades. It is a layer behind
   the button that only scales and fades, so it never repaints. demo.js sets
   --hx and --hy from the button's size. */
.projbtn.hint { background: transparent; isolation: isolate; }
.projbtn.hint::before, .projbtn.hint::after { content: ""; position: absolute; inset: calc(50% - 16px) 0; border-radius: inherit; pointer-events: none; }
.projbtn.hint::before { z-index: -1; background: var(--tan-bg); }
.projbtn.hint::after { z-index: -2; background: color-mix(in srgb, var(--dud) 60%, transparent); animation: hint 1.6s ease-out infinite; }
.projbtn.hint .phint { display: block; animation: hintin .3s var(--ease); }
/* New, in the bar: the bar's one ink button */
.dnew { gap: 8px; padding: 0 12px; }
/* the bar's tabs look like the panel's: the selected one has an ink line that lies on
   the bar's divider. A project has two pages: Canvas and Settings. A tab keeps the width of its semibold text (::after), so a new selection moves no text. */
.dtabs { position: relative; display: flex; gap: 2px; flex: 1 1 auto; align-self: stretch; margin-left: 8px; font-size: 14px; }
.dtabs :is(button, a) { position: relative; padding: 0 8px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; background: none; border: 0; color: var(--muted); text-decoration: none; cursor: pointer; }
.dtabs :is(button, a)::after { content: attr(data-t); height: 0; overflow: hidden; visibility: hidden; font-weight: 600; }
.dtabs :is(button, a):hover { color: var(--ink); }
.dtabs :is(button, a)[aria-current="page"] { color: var(--ink); font-weight: 600; }
/* The selected tab's line, in the bar, the panel, and a deploy's drawer: one line per tab bar,
   on its divider. js/demo.js puts it under the selected tab's text, from its first letter to its
   last (a 1 px wide line, scaled to the text), and glides it to a new tab in 150 ms. */
.tline { position: absolute; left: 0; bottom: calc(-1 * var(--lw)); width: 1px; height: var(--lw); background: var(--ink); transform-origin: 0 0; pointer-events: none; }
/* The profile picture, in the demo and the dashboard: round, with the 1 px edge and the glow
   of the icon tiles (.hi) in the picture's own color (the dashboard sets --bg once the picture
   is in); with no picture, white with a gray figure, so the edge and glow are a soft gray. */
.avatar { --bg: var(--paper); width: 26px; height: 26px; border-radius: 999px; background: var(--paper); display: inline-flex; overflow: hidden; color: var(--edge); }
.avatar svg { display: block; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* what follows the spacer sits at the right, also with no tabs */
.dtop .grow { flex: 1 1 auto; }
@media (max-width: 640px) { .dtabs { display: none; } }
.menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; min-width: 300px; max-height: 60vh; overflow: auto; background: var(--paper); border: var(--lw) solid var(--edge); border-radius: 12px; box-shadow: var(--shadow-float); padding: 0; font-size: 14px; }
.menu.on { display: grid; }
.menu.up { top: auto; bottom: calc(100% + 8px); left: auto; right: 0; min-width: 220px; }
/* in the dashboard a menu is a popover, placed by components/Menu.tsx */
.menu[popover] { position: fixed; inset: auto; margin: 0; display: none; }
.menu[popover]:popover-open { display: grid; }
/* A menu is a list: its rows run from line to line, with a line between every two of them
   (the menu clips them to its corners). Hover is a gray fill and ink text. The project that is
   open is ink and semibold, with a check in place of its count. */
/* A row is a button, or a link (the dashboard's projects); "page" is the router's mark of the
   page you are on. */
.menu :is(button, a) { border: 0; border-top: var(--lw) solid var(--rule); background: none; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 16px; border-radius: 0; min-height: 40px; cursor: pointer; color: var(--muted); text-decoration: none; }
.menu > :first-child { border-top: 0; }
.menu :is(button, a) b { font-weight: 600; }
.menu :is(button, a):hover { background: var(--hover); }
.menu :is(button, a):is(:hover, [aria-current="true"], [aria-current="page"]) { color: var(--ink); }
.menu :is(button, a):is([aria-current="true"], [aria-current="page"]) b { font-weight: 700; }
.menu :is(button, a) .mck { display: none; flex: none; }
.menu :is(button, a):is([aria-current="true"], [aria-current="page"]) .mck { display: block; }
.menu :is(button, a):is([aria-current="true"], [aria-current="page"]) .num { display: none; }
.menu button .muted { font-size: 14px; }
.menu button:disabled { opacity: .5; cursor: default; }
.menu button:disabled:hover { background: none; }
.menu .mi { display: flex; align-items: center; gap: 12px; }
.menu .mi .tile { width: 22px; height: 22px; border-radius: 28%; }
.tile.sm { width: 22px; height: 22px; border-radius: 28%; font-size: 9px; }

/* clip, not hidden: the closed panel waits past the right edge, and a hidden box still
   scrolls sideways to it when you type in a field on the settings page */
.stage { position: relative; height: clamp(460px, 62vh, 620px); background: var(--canvas); overflow: clip; }
/* the story plays on its own: while it does, only the boxes and the panel take hover and clicks */
.demo.playing .stage { pointer-events: none; }
.demo.playing .node, .demo.playing .panel { pointer-events: auto; }
.cv { position: absolute; inset: 0; overflow: hidden; background-color: var(--canvas); background-image: radial-gradient(var(--rule) 1px, transparent 1px); background-size: 18px 18px; }
.cv.grab { cursor: grabbing; }
.world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.edges, .tlayer, .glayer, .llayer, .nlayer { position: absolute; left: 0; top: 0; }
.tlayer { z-index: 1; } .edges { z-index: 2; } .glayer { z-index: 3; } .llayer { z-index: 4; } .nlayer { z-index: 5; }
.edges { overflow: visible; }

.node { position: absolute; left: 0; top: 0; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; column-gap: 12px; padding: 0 16px; background: var(--paper); border: var(--lw) solid var(--edge); border-radius: 12px; box-shadow: var(--shadow-card); text-align: left; cursor: pointer; transform-origin: 50% 50%; will-change: transform, opacity; }
.node:hover { border-color: var(--edge-hover); }
/* the open card keeps its white: it is already the one you are on */
.node:not(.sel):hover { background: var(--hover); }
/* cards, replicas, the globe, and lines: all --lw, selected or not */
.node.sel { border-color: var(--ink-2); }
.node:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.tile { width: 28px; height: 28px; border-radius: 28%; display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; letter-spacing: -.01em; flex: none; }
/* Every icon tile gets an edge and a glow, both the icon color (--bg: from tile() in
   canvas.js, or set in the HTML) with another OKLCH lightness, so they always match it.
   Edge: one --tile-step darker than the icon, and at least half a step darker than the
   card (--card-l), so a white icon still gets a soft edge.
   Glow: the icon color itself, so it glows instead of a gray shadow, but at least one
   step darker than the card, so a white icon keeps a soft gray shadow, and at most 0.6
   dark, so a black icon gets a soft gray shadow, not a black one.
   For a dark card later, set --card-l to its lightness, and the edge is a step lighter,
   at least half a step lighter than the card, with half the chroma, and the glow a step
   darker. Half the chroma, because a light icon (Typesense) made an edge lighter than the
   screen can show at full chroma, and the screen showed it at about the icon's color:
   --tile-edge-l: max(l + var(--tile-step), var(--card-l) + var(--tile-step) / 2);
   --tile-edge-c: calc(c / 2);
   --tile-glow-l: calc(l - var(--tile-step));
   The glow grows with the tile: --tile-glow. */
.tile, .hi {
  --card-l: 1; --tile-step: .12;
  --tile-edge-l: min(l - var(--tile-step), var(--card-l) - var(--tile-step) / 2);
  --tile-edge-c: c;
  --tile-glow-l: clamp(.6, l, var(--card-l) - var(--tile-step));
  --tile-glow: 0 1.5px 5px;
}
.tile, .hi { position: relative; box-shadow: var(--tile-glow) oklch(from var(--bg) var(--tile-glow-l) c h); }
/* on top of the logo, so the logo can't cover the edge */
.tile::after, .hi::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 var(--lw) oklch(from var(--bg) var(--tile-edge-l) var(--tile-edge-c) h); pointer-events: none; }
/* the canvas card's icon is a step bigger than the 28px tile elsewhere */
.node .tile { width: 32px; height: 32px; border-radius: 28%; }
.tile.lg { --tile-glow: 0 2px 7px; }
.menu .mi .tile, .vchip .tile, .fs .tile, .avatar { --tile-glow: 0 1px 3.5px; }
.tile.tan { --bg: var(--tan); }
.tile.p-build { --bg: var(--fill); }
.txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.l1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nm { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; min-width: 0; }
/* Replicas, not at launch: "×3" after a card's name.
.reps { font: 600 11px var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); flex: none; } */
.st { display: inline-flex; align-items: center; gap: 4px; font: 600 11px var(--sans); font-variant-numeric: tabular-nums; color: var(--faint); flex: none; }
/* The card's second line, with the status ring before its words (canvas.js): what it
   is doing, else what is wrong, else where it lives. New words roll in from below as
   the old ones roll up and out, so the line never jumps. */
.sub { display: block; height: 15px; font: 400 11px/15px var(--sans); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub.mono { font: 11px/15px var(--mono); } /* a hash */
.sub.warn { color: var(--warn-ink); }
.sub.bad { color: var(--fail-ink); }
.sub.quiet { color: var(--faint); }
.txt { position: relative; }
.l2 { position: relative; height: 15px; overflow: hidden; }
.l2 .sub { display: flex; padding-left: 16px; transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease); }
.sub .lm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* how long the running commit has been live: it stays whole, the message gives way */
.sub .age { flex: none; color: var(--faint); font-variant-numeric: tabular-nums; }
.sub .age::before { content: "·"; margin: 0 4px; }
.l2 .sub.in { opacity: 0; transform: translateY(10px); transition: none; }
.l2 .sub.out { position: absolute; left: 0; right: 0; top: 0; opacity: 0; transform: translateY(-10px); }
.txt > .rg { position: absolute; left: 0; bottom: 2.75px; }
/* a small spinner for buttons and tool calls, drawn like the ring: an arc on a track */
.spin { display: inline-block; width: 10px; height: 10px; border-radius: 999px; border: var(--lw) solid color-mix(in srgb, var(--busy) 40%, var(--paper)); border-top-color: var(--busy); animation: spin var(--spin) linear infinite; flex: none; }

/* the status ring (ring.js). The fill stops at the line's inner edge and the track is
   one solid color, so the track never shows two shades. */
.rg { position: relative; display: inline-block; width: 9.5px; height: 9.5px; flex: none; vertical-align: middle; }
.rg > i { position: absolute; inset: 0; display: block; }
.rg svg { display: block; width: 100%; height: 100%; overflow: visible; }
.rg[data-st="live"] { --c: var(--live); --fa: 20%; --ta: 100%; }
.rg[data-st="warn"] { --c: var(--warn); --fa: 26%; --ta: 100%; }
.rg[data-st="down"] { --c: var(--fail); --fa: 20%; --ta: 100%; }
.rg[data-st="off"] { --c: var(--edge); --fa: 0%; --ta: 100%; }
.rg[data-st="busy"] { --c: var(--busy); --fa: 12%; --ta: 40%; }
.rg[data-st="queue"] { --c: var(--edge); --fa: 0%; --ta: 40%; }
.rg-f { fill: color-mix(in srgb, var(--c) var(--fa), transparent); transition: fill var(--mid) var(--ease); }
.rg-k { fill: none; stroke-width: var(--lw); stroke: color-mix(in srgb, var(--c) var(--ta), var(--paper)); transition: stroke var(--mid) var(--ease); }
.rg-a { fill: none; stroke: var(--c); stroke-width: var(--lw); stroke-linecap: round; stroke-dasharray: 100 0; transition: stroke var(--mid) var(--ease), stroke-dasharray var(--mid) var(--ease); }
/* the work is done: the arc grows around into the full ring while the turn slows, and the
   track and fill turn green only as it closes, so the arc stays in view */
.rg[data-st="live"] .rg-a { transition: stroke var(--mid) var(--ease), stroke-dasharray var(--slow) var(--ease); }
.rg[data-st="live"] .rg-k, .rg[data-st="live"] .rg-f { transition-delay: var(--fast); }
.rg[data-st="busy"] .rg-a, .rg[data-st="queue"] .rg-a { stroke-dasharray: 30 70; }
.rg-h { border-radius: 999px; box-shadow: inset 0 0 0 var(--lw) var(--c); opacity: 0; pointer-events: none; }
.rg.pulse .rg-h { animation: rgring var(--slow) var(--ease); }
.rg.pop > .rg-t { animation: rgpop var(--slow) var(--pop); }
.rg-g { position: absolute; inset: 0; }
.rg-g path { fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; stroke-dashoffset: 1; opacity: 0; transition: opacity var(--fast) var(--ease), stroke-dashoffset var(--mid) var(--ease); }
/* the check (or cross) draws in from its start once the ring has closed */
.rg[data-st="live"] .rg-ok, .rg[data-st="down"] .rg-x { opacity: 1; stroke-dashoffset: 0; transition-delay: var(--mid); }
@keyframes rgring { from { opacity: .55; transform: scale(1); } to { opacity: 0; transform: scale(2.2); } }
@keyframes rgpop { 40% { scale: 1.25; } }
/* a ring and its word: "Live", "On" */
.rgw { display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--sans); color: var(--ink-2); white-space: nowrap; flex: none; }
/* Replicas, not at launch: the copies stacked under a card, and a rolling deploy that lights
   up the card and each copy in turn (@keyframes roll, at the end of this file).
.ghost { position: absolute; left: 0; top: 0; border: var(--lw) solid var(--edge); background: var(--fill); border-radius: 12px; box-shadow: var(--shadow-card); }
.node.roll, .ghost.roll { animation: roll .5s var(--ease); } */
.ball { position: absolute; left: 0; top: 0; border-radius: 999px; background: var(--paper); color: var(--faint); border: var(--lw) solid var(--edge); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-card); transform-origin: 50% 50%; }
.btag { font: 600 11px var(--sans); color: var(--tan-ink); background: var(--tan); border-radius: 4px; padding: 1px 8px; white-space: nowrap; }
.tlayer .btag { position: absolute; left: 0; top: 0; }
/* the canvas has one gray for lines, ports, cards, replicas, and the globe; the
   dots are a step lighter. A hovered card has a darker gray border; its lines
   stay. A selected card, its lines, and the globe its line goes into are one
   darker gray (--hot). */
.e { fill: none; stroke: var(--edge); stroke-width: var(--lw); }
.e.data { stroke-dasharray: 5 5; }
.e.inet { stroke: var(--edge); }
.e.hot { stroke: var(--ink-2); }
.port { fill: var(--paper); stroke: var(--edge); stroke-width: var(--lw); }
.port.hot { stroke: var(--ink-2); }
.ball.hot { border-color: var(--ink-2); }

.ov { position: absolute; z-index: 3; }
.dudc { left: 14px; bottom: 10px; display: flex; align-items: flex-end; gap: 8px; pointer-events: none; transition: transform .38s var(--ease); }
/* While the story plays, Dud sits at the bottom center, near what happens: in the middle of the canvas, or of
   what the panel leaves free. On your turn (.yours) he goes back to the corner. demo.js sets the distances. */
.demo:not(.yours) .dudc { transform: translateX(var(--dudx, 0px)); }
.demo.popen:not(.yours) .dudc { transform: translateX(var(--dudxp, 0px)); }
.bubble { background: var(--paper); border: var(--lw) solid var(--edge); border-radius: 12px 12px 12px 4px; padding: 8px 12px; font-size: 14px; color: var(--ink-2); margin-bottom: 32px; max-width: 300px; box-shadow: var(--shadow-card); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.bubble:empty { visibility: hidden; }
.bubble.new { animation: bub .3s var(--ease); }
.bubble.gone { opacity: 0; transform: translateY(6px); }
.addw { position: relative; }
.cursor { position: absolute; left: 0; top: 0; z-index: 8; pointer-events: none; opacity: 0; transition: transform .7s var(--ease), opacity .2s; }
.cursor.on { opacity: 1; }
.cursor::after { content: ""; position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; border-radius: 999px; border: 2px solid var(--ink); opacity: 0; }
.cursor.tap::after { animation: tap .45s var(--ease); }
.demo-note { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin: 12px 4px 0; font: 14px var(--mono); color: var(--muted); }

/* the panel inside the demo */
.panel { position: absolute; z-index: 5; top: 10px; right: 10px; bottom: 10px; width: var(--pw); background: var(--paper); border: var(--lw) solid var(--edge); border-radius: 16px; box-shadow: var(--shadow-window); transform: translateX(calc(100% + 80px)); transition: transform var(--slow) var(--ease);
  /* the room inside its line, on all four sides of its head and its body (the dashboard's wide
     panel has 24 px: dashapp.css); a container, for what its width changes */
  --ppad: 16px; container: panel / inline-size; }
.panel.open { transform: none; }
.pin { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 16px; }
/* a new tab or another service: the page under the tabs fades in */
.pbody.swap { animation: fadein var(--fast) var(--ease); }
/* the head and the tabs keep their height: the page under them scrolls, never them */
.phead { position: relative; flex: none; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: var(--ppad) var(--ppad) 12px; }
.tile.lg { width: 40px; height: 40px; border-radius: 28%; font-size: 12px; }
.ptitle { min-width: 0; overflow: hidden; }
.ptitle h3 { white-space: nowrap; }
.ptitle h3 { margin: 0; font-size: 18px; line-height: 1.2; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
/* the name in the head: one line, cut with an ellipsis (Settings renames it) */
.ptitle h3 > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ptitle h3 > .btag { flex: none; letter-spacing: 0; }
.psub { display: flex; align-items: center; gap: 8px; margin-top: 0; min-width: 0; font-size: 12px; }
.psub > :first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.plink { color: var(--ink-2); }
/* the address in the panel's head: a link to the site, in a new tab */
.plink.ext { display: inline-flex; align-items: baseline; min-width: 0; border: 0; background: none; padding: 0; font: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; cursor: pointer; }
.plink.ext:hover { color: var(--ink); text-decoration-color: currentColor; }
.plink.ext > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the dashboard's are links (buttons in the demo): no line at rest */
a.dep-sha, a.dep-br, a.plink { text-decoration: none; }
a.plink.ext { text-decoration: underline; text-decoration-color: transparent; }
a.plink.ext:hover { text-decoration-color: currentColor; }
/* A link that opens a new tab always shows its arrow. Inline arrows are
   as tall as a lowercase x, with their bottom on the text baseline, and
   quieter than their text (any text color, any background) until hover. */
.xa { display: block; flex: none; width: .5em; height: .5em; opacity: .5; }
/* on hover the arrow takes the full text color, as the label does */
:is(a, button):is(:hover, :focus-visible) .xa { opacity: 1; }
:is(.plink, .link, .btn).ext { column-gap: var(--external-link-gap); }
:is(.dep-sha, .dep-br) > .xa { margin-inline-start: var(--external-link-gap); }
.pact { display: flex; gap: var(--gap); }
/* the demo's push, in place of a real one: a command, so it is in mono */
.gpush { font-family: var(--mono); font-size: 12px; }
/* Tabs: text, and for the selected one a line under it that lies on the divider (.tline).
   Hover: ink text. Selected: semibold and an ink line. ::after holds the width of the
   semibold text, so a new selection moves no text. */
/* A row of tabs scrolls sideways when it is wider than the panel (Postgres's on a phone). A box
   that scrolls clips its border, and the selected tab's line lies on it: so the divider is an
   inner shadow, and the line lies inside the box. The tabs are buttons in the demo, links in the
   dashboard. */
.ptabs { position: relative; flex: none; display: flex; gap: 2px; padding: 0 calc(var(--ppad) - 8px); overflow-x: auto; scrollbar-width: none; box-shadow: inset 0 calc(-1 * var(--lw)) var(--rule); }
.ptabs::-webkit-scrollbar { display: none; }
.ptabs .tline { bottom: 0; }
.ptabs :is(button, a) { position: relative; flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; height: 40px; padding: 0 8px; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; text-decoration: none; white-space: nowrap; }
.ptabs :is(button, a)::after { content: attr(data-t); height: 0; overflow: hidden; visibility: hidden; font-weight: 600; }
.ptabs :is(button, a):hover { color: var(--ink); }
.ptabs :is(button, a)[aria-selected="true"] { color: var(--ink); font-weight: 600; }
/* the scrollbar shows on every tab, so it never comes and goes as you change tabs */
.pbody { flex: 1 1 0; min-height: 0; overflow-x: hidden; overflow-y: scroll; padding: var(--ppad); display: flex; flex-direction: column; gap: var(--gap); font-size: 14px; }
/* its room is kept, but it draws no track: only the site's thin pill (::-webkit-scrollbar), inside the panel's line, when there is more to scroll */
.pbody::-webkit-scrollbar-track { margin: 8px 0; }
.pill { font: 700 11px var(--sans); letter-spacing: .06em; border-radius: 8px; padding: 2px 8px; white-space: nowrap; flex: none; }
.p-live { color: var(--live-ink); background: var(--live-bg); }
.p-build { color: var(--busy-ink); background: var(--busy-bg); }
.p-fail { color: var(--fail-ink); background: var(--fail-bg); }
.p-old { color: var(--ink-2); background: var(--fill); }
/* Cards in the panel: the canvas card's line and no shadow, because the panel floats
   and they don't. Nothing in a card has a border of its own, and none comes on hover:
   a row you press fills with --hover and its text goes ink (it is inside the card's line). A list (.box, .vars) is one card with a divider between
   its rows. The line around a card is the gray of the dividers in it (--rule), so a
   list is one gray, and a long line stays quiet. A control (a field, a button) keeps
   the darker --edge: it is what you can click. */
.dcard, .mc, .box, .vars { border: var(--lw) solid var(--rule); border-radius: 12px; }
.dcard { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.box { display: flex; flex-direction: column; }
.box > * { display: flex; align-items: center; gap: 12px; min-height: var(--row); padding: 0 16px; border-top: var(--lw) solid var(--rule); font-size: 14px; }
.box > :first-child { border-top: 0; }
.box .btn.quiet, .vtop .btn.quiet:last-child { margin-right: -8px; }
.dhead { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dmsg { flex: 1 1 auto; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.box .dmsg { font-weight: 400; }
.dhead .mono { font-size: 12px; }
/* the facts of the live deploy: its hash, branch, age, and build time */
.dmeta { display: flex; flex-wrap: wrap; gap: 0 8px; margin-top: -8px; font-size: 12px; color: var(--muted); }
.dmeta > * + *::before { content: "·"; margin-right: 8px; }
.dage { flex: none; font-size: 12px; color: var(--faint); }
.ppage .dage { color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.step { position: relative; display: grid; grid-template-columns: 24px auto 1fr; align-items: center; min-height: 32px; font-size: 14px; }
/* the title keeps the width of its bold form (the hidden copy), so the time after it never moves */
.step > span:nth-child(2) { display: inline-flex; flex-direction: column; transition: color var(--mid) var(--ease); }
.step > span:nth-child(2)::after { content: attr(data-t); height: 0; overflow: hidden; visibility: hidden; font-weight: 600; }
.step.pending > span:nth-child(2) { color: var(--faint); }
/* The line to the next step runs from this ring's bottom to the next ring's top (a row less the
   ring's 14.5 px), as thin as the rings' line. It is green once the step after it has started
   (data-rail, set by demo.js when the track's stroke has run down it). */
.step:not(:last-child)::before { content: ""; position: absolute; left: calc(8px - var(--lw) / 2); top: calc(50% + 7.25px); height: calc(100% - 14.5px); width: var(--lw); background: var(--edge); }
.step[data-rail="1"]:not(:last-child)::before { background: var(--live); }
/* it fades to green once the stroke has run down it and is all in the next ring (steps.js) */
.steps .step:not(:last-child)::before { transition: background-color var(--mid) var(--ease); }
/* The rings of the steps change at once: the track (.strk, demo.js) draws every motion. A running
   step's ring is a pale cyan, under the track's arc; a done step's check draws in. */
.steps .rg-f, .steps .rg-k, .steps .rg-a { transition: none; }
.steps .step.running .rg[data-st] { --c: var(--busy); --fa: 10%; --ta: 35%; }
.steps .step.running .rg-a { opacity: 0; } /* not a 0-long dash: with round ends, that draws a dot */
.steps .rg[data-st="live"] .rg-ok, .steps .rg[data-st="down"] .rg-x { transition-delay: 0s; }
/* the rings are 16 px; their check stays 14 px, in the middle (an svg is 100% wide, so a size, not an inset) */
.steps .rg-g { inset: 0; width: 14px; height: 14px; margin: auto; }
/* A done step's ring fades in green, slow at first, from the moment the step is done, under a
   copy of its running look that fades out fast (steps.js: the ghost and the stroke left on it,
   OUT ms), so there is no pause and the two colors barely meet. */
.steps .step.fade-in .rg-t, .steps .step.fade-in .rg-g { animation: stepin var(--slow) var(--ease) both; }
@keyframes stepin { from { opacity: 0; } }
.strk-g { display: none; fill: color-mix(in srgb, var(--busy) 10%, transparent); stroke: color-mix(in srgb, var(--busy) 35%, var(--paper)); stroke-width: var(--lw); }
.strk { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.strk path { fill: none; stroke-width: var(--lw); }
.strk-a { stroke: var(--busy); stroke-linecap: round; stroke-linejoin: round; }
.step.running > span:nth-child(2) { font-weight: 600; }
.step .tm { margin-left: 8px; font-size: 12px; color: var(--faint); }
.si { display: inline-flex; align-items: center; }
.step.canceled > span:nth-child(2) { color: var(--faint); }
/* Under the steps, the deploy's newest log line (steps.js rolls the rows; the last line stays), at
   the bottom of the 156 px, on a whole pixel (18 px lines). Its time (the demo: its number)
   starts 4 px in from where the rings above it start: a ring's round edge looks further in than
   the straight edge of a digit. A longer number pushes the words right, never itself left. The
   line is a button: a click opens the whole log (the dashboard: a window that streams it; the
   demo: Dud says so). On hover its words turn ink, with no fill: a fill sits inside lines. */
.dep-steps { position: relative; }
.dep-tail { position: absolute; left: 0; bottom: 0; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.dep-steps .dep-tail { padding-left: 2px; }
.btick { position: relative; display: block; height: 28px; overflow: hidden; mask-image: linear-gradient(transparent, #000 10px); }
.btl { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; font-size: 11px; line-height: 18px; color: var(--ink-2); white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.btl i { margin-right: 12px; font-style: normal; color: var(--faint); }
.btl.err { color: var(--fail-ink); }
.dep-tail:hover .btl:not(.err) { color: var(--ink); }
.dep-tail:hover .btl i { color: var(--muted); }
/* The Deploys tab: two kinds of card. The newest deploy is on top, with a picture of the app;
   every deploy before it is a row. Each opens a drawer with Steps and Log. demo.js animates
   every height that changes while you look. */
/* the card clips all it holds to its own rounded edge: the head's hover fill and the drawer never reach past it, at any moment of an open or a close */
.deps > .dep { position: relative; margin-bottom: 8px; border: var(--lw) solid var(--rule); border-radius: 12px; background: var(--paper); overflow: clip; }
.deps > .dep:last-child { margin-bottom: 0; }
.dep-clip { overflow: hidden; }
.dep:not(.big) .dep-tb, .dep.big .dep-row { display: none; }
.dep-chv { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: -4px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.dep-chv svg { transition: transform var(--mid) var(--ease); }
.dep.open .dep-chv svg { transform: rotate(180deg); }
.dep-tb { display: flex; align-items: center; gap: 16px; padding: 16px 12px 16px 16px; cursor: pointer; user-select: none; }
.dep-tb:hover .dep-ttl, .dep-tb:hover .dep-chv, .dep-row:hover .dep-cm, .dep-row:hover .dep-chv { color: var(--ink); }
/* The drawer starts with a line, so the head's hover fill is closed on all
   four sides while it shows (a fill always sits inside lines). The line is the
   drawer's own top: it slides in and out with the drawer. The head has no
   corners of its own: the card's clip rounds its fill. */
.dep > .dep-drw, .dep > .dcol { box-shadow: inset 0 var(--lw) var(--rule); }
.dep-top { position: relative; }
.dep-top:hover { background: var(--hover); }
/* The head a deploy card had a moment ago (the top card's, or a row's) lies over its new one while
   it fades out (Deployments.tsx: swap). */
.dep-ghost { position: absolute; top: 0; left: 0; right: 0; pointer-events: none; }
.dep > .dep-top > .dep-ghost > .dep-tb, .dep > .dep-top > .dep-ghost > .dep-row { display: flex; }
@media (prefers-reduced-motion: reduce) { .dep-ghost { display: none; } }
/* A drawer that opens with its height (the dashboard's Collapse; demo.js: depDrawer): grid rows from
   0 to its own. What is in it fades in a moment after it starts to open, or out at once as it
   closes, so nothing shows cut off. */
.dcol { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--slow) var(--ease); }
.dcol.open { grid-template-rows: 1fr; }
.dcol-in { min-height: 0; overflow: hidden; opacity: 0; transition: opacity var(--fast) var(--ease); }
.dcol.open > .dcol-in { opacity: 1; transition: opacity var(--mid) var(--ease); }
@media (prefers-reduced-motion: reduce) { .dcol, .dcol-in, .dcol.open > .dcol-in { transition: none; } }
.dep-txt { flex: 1 1 auto; min-width: 0; }
.dep-ttl { font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* one line under the commit: the ring with when it started (short, as on the rows), the hash,
   and the branch. The time's width moves when it changes (demo.js), so it clips. */
.dep-st { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; margin-top: 8px; font-size: 12px; color: var(--faint); }
.dep-when { flex: none; display: inline-block; overflow: hidden; white-space: nowrap; }
/* three parts, 14 px apart, each a mark and its text 5 px apart: the ring and the time, the
   commit mark and the hash, the branch mark and the branch. The hash and branch end in the link
   arrow, 5 px after. */
.dep-st > .rg { display: none; }
.dep-st.bad > .rg { display: inline-block; }
.dep-st.bad > .rg + .dep-when { margin-left: -8px; }
.dep-row .btag { flex: none; }
/* the commit and its tag: the tag after the commit, on the baseline of its first line */
.dep-hd { display: flex; align-items: baseline; gap: 8px; }
.dep-hd .dep-ttl { min-width: 0; }
.dep-hd .btag { flex: none; }
/* the picture: the app's first page, or its logo on a light tint of its color */
.dep-pv { position: relative; display: block; flex: none; width: 96px; height: 60px; }
.dep-pic { position: absolute; inset: 0; display: block; border-radius: 8px; overflow: hidden; background: var(--paper); }
.dep-pic > svg { display: block; width: 100%; height: 100%; }
.dep-pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.dep-pic::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 var(--lw) var(--rule); pointer-events: none; }
/* The pictures with no page: the canvas gray with a very faint tint of the app's color (3%), no dots. An app with no web page: its file
   ending (.go, .ts, .py) in its color, in a white badge with a light line of its color, in the
   middle. Its padding puts the middle of the lowercase letters (not of the line, which has room
   for capitals) in the middle of the badge, and moves the text a little left: the leading dot is
   light, so the letters after it carry the eye. */
.dep-pic.code, .dep-pic.wait { background: color-mix(in srgb, var(--bg) 3%, var(--canvas)); }
.dep-pic.code { display: flex; align-items: center; justify-content: center; }
.dep-pic.code b { display: block; padding: 4px 12px 8px; border: var(--lw) solid color-mix(in srgb, currentColor 30%, var(--paper)); border-radius: 8px; background: var(--paper); font: 600 16px/1 var(--mono); letter-spacing: -.02em; }
/* a leading dot: the text moves 2.8 px left, halfway from centering the ink of ".go" to
   centering the ink of "go" (measured at 15 px Geist Mono 650) */
.dep-pic.code b.dot { padding-left: 8px; padding-right: 12px; }
/* While a deploy runs: the same tint with no dots, breathing very faintly, from 3% to 6% of the
   app's color and back (1.6 s a breath, from the faintest), so it is there if you look and never
   strong. With reduced motion it holds still. */
.dep-pic.wait::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 6%, var(--canvas)); opacity: 0; animation: picbreath 1.6s ease-in-out infinite; }
@keyframes picbreath { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.dep-row { display: flex; align-items: center; gap: 12px; min-height: var(--row); padding: 0 12px 0 16px; font-size: 14px; color: var(--ink-2); cursor: pointer; user-select: none; }
.dep-cm { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dep-sp { flex: 1 1 0; }
.dep-end { flex: none; font-size: 12px; color: var(--faint); }
/* The drawer: the steps, and at their top right, on the first step's line, the hash and branch and
   the deploy's one action (the bar). The bar's 32 px (a small button) are the step's 32 px. It
   lies over the steps' box, so the line under the steps goes the whole width. The top card's bar
   is only its action, which always fits beside the first step. A row's bar has the hash and
   branch too: in a drawer under 400 px they don't fit side by side, so there it is a row of its
   own, over the steps. The drawer's top line is inside it, so the top padding starts under the
   line: the first ring is 16 px under the line, as it is 16 px from the card's left edge. */
.dep-drw { overflow: hidden; }
.dep-pad { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: start; padding: calc(8px + var(--lw)) 16px 12px; container-type: inline-size; }
.dep-bar { grid-area: 1 / 2; position: relative; z-index: 2; display: flex; align-items: flex-start; gap: 16px; }
.dep-steps { grid-area: 1 / 1 / auto / span 2; }
@container (max-width: 399px) {
  .dep:not(.big) .dep-bar { grid-column: 1 / span 2; margin: 0 0 4px; }
  .dep:not(.big) .dep-steps { grid-row: 2; }
}
/* the tabs of Insights' drawer */
.dep-tabs { position: relative; display: inline-flex; gap: 16px; }
.dep-tab { position: relative; display: inline-flex; flex-direction: column; align-items: center; padding: 0; border: 0; background: none; font: 400 12px var(--sans); color: var(--muted); cursor: pointer; }
/* under the selected one, the panel tabs' line (.tline, placed by demo.js), 6 px below the text */
.dep-tabs > .tline { bottom: -6px; }
.dep-tab::after { content: attr(data-t); height: 0; overflow: hidden; visibility: hidden; font-weight: 600; }
.dep-tab:hover { color: var(--ink); }
.dep-tab[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.dep-facts { margin-left: auto; display: flex; align-items: center; min-height: 32px; font-size: 12px; line-height: 1; color: var(--faint); white-space: nowrap; }
/* the top card has the hash and branch in its line, so its drawer bar has only the action */
.dep.big .dep-facts { display: none; }
.dep.big .dep-act { margin-left: auto; }
/* the hash and the branch, as links to GitHub */
.dep-git { display: inline-flex; align-items: center; gap: 16px; white-space: nowrap; }
/* the hash of a commit from GitHub: the commit mark, then the hash underlined as a link; the branch: its mark, then its name underlined.
   The text and the arrow line up on their baseline; the mark is centered on the line. */
.dep-sha, .dep-br { display: flex; align-items: center; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.dep-sha svg, .dep-br svg { display: block; flex: none; }
.dep-sha > svg:first-child, .dep-br > svg:first-child { margin-inline-end: 4px; }
.dep-sha > .mono, .dep-br > span, .dep-sha > .xa, .dep-br > .xa { align-self: baseline; }
.dep-sha .mono, .dep-br span { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.dep-sha:hover, .dep-br:hover { color: var(--ink); }
.dep-sha:hover .mono, .dep-br:hover span { text-decoration-color: currentColor; }
span.dep-br { cursor: default; }
/* the action; a refusal says why under it, at the right, in at most half the drawer's width */
.dep-act { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dep-act:empty { display: none; }
.dep-act .btn.quiet { margin-right: -8px; }
/* what went wrong, in words */
.ferr { margin: 0; color: var(--fail-ink); font-size: 12px; line-height: 1.45; }
.dep-act .ferr { max-width: 50cqw; text-align: right; }
/* four steps, 32 px each, and the log line, 28 px */
.dep-steps { height: 156px; }
.dep-steps .step { min-height: 32px; font-size: 14px; }
/* a deployment's whole log, in its window (components/dash/LogWindow.tsx): light, each line with
   its time, as the line under the steps. It keeps its spaces, so a build's tables line up. An
   error is red. A new row fades in fast at its place. Its rows are in .lmove inside .lin, as the
   runtime log's (.llog): once the window scrolls, new rows glide up into place and .lin cuts off
   what is still under the log's bottom edge. */
.dep-log { font-size: 11px; line-height: 18px; color: var(--ink-2); }
.dep-log .lin { overflow: hidden; overflow: clip; }
/* positioned, so its rows' offsetTop is from its top */
.dep-log .lmove { position: relative; }
.dep-log .lmove > div { display: flex; gap: 12px; min-height: 18px; white-space: nowrap; animation: lfade var(--fast) var(--ease) both; }
.dep-log i { flex: none; min-width: 2ch; text-align: right; font-style: normal; color: var(--faint); }
.dep-log span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: pre; }
.dep-log .err { color: var(--fail-ink); }
.dep-log .err span { white-space: pre-wrap; overflow-wrap: anywhere; }
.dhead .btn.quiet { margin: -8px -8px -8px 0; }
.logs .err { color: var(--log-err); }
.link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--edge-hover); text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.link:hover { text-decoration-color: currentColor; }
.link.ext { display: inline-flex; align-items: baseline; }
.empty { text-align: center; padding: 32px 12px; }
.logs { flex: 1 1 auto; min-height: 200px; overflow: auto; background: var(--ink); color: var(--log-ink); border-radius: 12px; padding: 12px 12px; font-size: 12px; line-height: 1.7; }
.logs .lt { color: var(--log-faint); margin-right: 12px; }
/* variables */
.vars { list-style: none; margin: 0; padding: 0; }
.vars li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 28px; gap: 12px; align-items: center; min-height: var(--row); padding: 0 8px 0 16px; border-bottom: var(--lw) solid var(--rule); font-size: 12px; }
.vars li:last-child { border-bottom: 0; }
/* a wide panel (the dashboard's): a value starts right after the longest name */
@container panel (min-width: 720px) { .vars li { grid-template-columns: 280px minmax(0, 1fr) 28px; } }
/* the row you edit: its fields, and under them the Secret switch */
.vars li.editing { row-gap: 0; padding: 8px 16px; }
.vars li.editing .vin { grid-column: 2 / -1; width: 100%; }
.vkin { text-transform: uppercase; }
.vkin::placeholder { text-transform: none; }
.vars li.del .vk, .vars li.del .vv > .mono { color: var(--faint); text-decoration: line-through; }
.vopt { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; min-height: 34px; color: var(--muted); }
.vopt .btn { margin-left: auto; margin-right: -8px; }
.vk { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.box .vk { flex: 1 1 auto; min-width: 0; font-size: 12px; }
.vv { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 32px; color: var(--ink-2); }
.vv[data-act] { cursor: pointer; }
.vv > .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vv .btag { flex: none; }
/* a secret: a lock and the word. No dots: dots look like something you can show. */
.vchip { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); }
.vchip .tile { width: 20px; height: 20px; border-radius: 28%; font-size: 8.5px; }
.vtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; font-size: 14px; }
.vbtns { display: flex; gap: 2px; }
.ibtn { width: 28px; height: 28px; flex: none; border: 0; border-radius: 8px; padding: 0; background: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ibtn:hover { color: var(--ink); }
/* A field in a card has no box and no line: the card is the box. Its text is a step
   lighter at rest, and ink on hover and while you type. */
.vin, .vkin { width: 100%; min-width: 0; height: 32px; border: 0; border-radius: 0; padding: 0; font-size: 12px; background: none; color: var(--ink-2); }
.vin:hover, .vkin:hover, .vin:focus, .vkin:focus { outline: 0; color: var(--ink); }
.vin::placeholder, .vkin::placeholder, .vfile::placeholder, .lsearch input::placeholder { color: var(--faint); opacity: 1; }
/* the variables as a file: it stands alone, so it has its own line */
.vfile { display: block; width: 100%; flex: none; resize: none; border: var(--lw) solid var(--edge); border-radius: 12px; padding: 12px 16px; background: var(--paper); color: var(--ink); font: 12px/1.8 var(--mono); white-space: pre; overflow: auto; }
.vfile:hover { border-color: var(--edge-hover); }
.vfile:focus { outline: 0; border-color: var(--ink); }
.pnote { margin: 0; color: var(--muted); font-size: 14px; }
.pnote.small { font-size: 12px; line-height: 1.45; }
/* settings: a group is one card, and each row is a label with its control right after it,
   so the eye does not cross the panel */
.sgrp { display: flex; align-items: center; gap: 8px; margin: calc(var(--gap-title) - var(--gap)) 0 calc(var(--gap-under) - var(--gap)); font-size: 12px; font-weight: 600; color: var(--muted); }
/* the first thing in its page, window or panel: the top padding is the space, the same
   as at the sides (one padding on all four sides) */
.sgrp:first-child { margin-top: 0; }
.box > .srow { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 12px; font-size: 14px; }
.srow > :first-child { color: var(--ink-2); }
.srow > .switch, .srow > .sv { justify-self: start; }
/* a value with a button after it: a field with its own (.vin), a domain, or a quiet button */
.box > .srow:has(> .vin:not(:only-of-type)) { grid-template-columns: 108px minmax(0, 1fr) 28px; padding-right: 8px; }
.box > .srow.dom, .box > .srow:has(> .btn.quiet:last-child) { grid-template-columns: 108px minmax(0, 1fr) auto; }
.srow > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.sv { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; color: var(--ink-2); font-size: 14px; font-weight: 600; }
/* a linked value is a value: as heavy as the others (.plink.ext takes font: inherit) */
.sv.plink, .sv .plink { display: inline-flex; align-items: baseline; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv.plink { font-weight: 600; }
.sv .btag { flex: none; }
.sv > .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* a setting's value is as big as its label, one weight up; code too. A value
   not set yet (its placeholder) stays plain. */
.sv .mono { font-weight: 600; }
.sv .ph { font-weight: 400; }
/* a field typed straight into the row (a new domain) is a value too */
.srow > .vin { font-size: 14px; font-weight: 600; }
.srow > .vin::placeholder { font-weight: 400; }
.sv > svg { flex: none; color: var(--muted); }
/* A value you can change (EditField in the dashboard): the value and its pencil right after
   it are one button, the row's height, and a click on either opens a small window with its
   field. Rest: the value a step lighter than ink, the pencil muted at half strength; hover:
   both ink. */
.sedit { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; height: 32px; padding: 0; border: 0; background: none; color: var(--ink-2); font: inherit; text-align: left; cursor: pointer; }
.sedit > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sedit > .ph { color: var(--faint); }
.sedit > svg { flex: none; color: var(--muted); opacity: .5; }
.sedit:hover, .sedit:hover > svg { color: var(--ink); opacity: 1; }
.sedit:hover > .ph { color: var(--muted); }
.sedit:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
/* A name you copy (a database's environment variables): the name and its copy icon are one
   .sedit button. The icon is a check in the live color for a moment. */
.sedit.scopy.done > svg { color: var(--live); opacity: 1; }
/* the "?" next to a setting, and its window */
.qmark { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; flex: none; padding: 0; border: var(--lw) solid var(--edge); border-radius: 999px; background: var(--paper); color: var(--muted); font: 600 11px/1 var(--sans); cursor: pointer; }
.qmark:hover { color: var(--ink); border-color: var(--edge-hover); background: var(--hover); }
.sv .qmark { margin-left: 2px; }
/* a "?"'s words: plain text, a step lighter than ink, in the middle as every
   window's description; a list in them keeps its rows at the left */
.infotext { color: var(--ink-2); line-height: 1.55; text-align: center; text-wrap: pretty; }
.infotext .box { text-align: left; }
.infotext p { margin: 0 0 12px; }
.infotext p:last-child { margin-bottom: 0; }
.infotext code { font: 12px var(--mono); background: var(--fill); border-radius: 4px; padding: 0 4px; }
/* Stack a window's fields above its centered footer. */
.mform { display: flex; flex-direction: column; gap: var(--gap); }
.field { height: 38px; min-width: 0; padding: 0 12px; border: var(--lw) solid var(--edge); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; }
.field.mono { font-family: var(--mono); font-size: 14px; }
.field:hover { border-color: var(--edge-hover); }
.field:focus { outline: 0; border-color: var(--ink); }
.field::placeholder { color: var(--faint); }
/* a list to pick from: a row is a button */
.pickrow { width: 100%; border: 0; border-top: var(--lw) solid var(--rule) !important; background: none; text-align: left; font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.box > .pickrow:first-child { border-top: 0 !important; }
.pickrow:hover .dmsg { color: var(--ink); }
/* A row you press fills from line to line on hover. The first and the last follow the
   card's corners (the card has no overflow: hidden, which would clip a focus ring). */
.box > .pickrow:not(:disabled):hover { background: var(--hover); }
.box > .pickrow:first-child { border-top-left-radius: calc(12px - var(--lw)); border-top-right-radius: calc(12px - var(--lw)); }
.box > .pickrow:last-child { border-bottom-left-radius: calc(12px - var(--lw)); border-bottom-right-radius: calc(12px - var(--lw)); }
.pickrow:disabled { cursor: default; opacity: .6; }
/* the arrow of a row that opens more: gray, ink with the row's text */
.pickrow > .next { flex: none; color: var(--faint); }
.pickrow:hover > .next { color: var(--ink); }
.pickrow.danger, .pickrow.danger:hover .dmsg, .pickrow.danger:hover > .next { color: var(--fail-ink); }
.box > .pickrow.danger:not(:disabled):hover { background: color-mix(in srgb, var(--fail) 5%, var(--paper)); }
/* a choice (PickField): its value, why it is shut at the right, and the check
   of the one picked now, ink, as a plan's; the check keeps its place on every
   row, so the ends line up */
.optrow > .mono { font-size: 12px; }
.optrow > .oside { flex: none; color: var(--muted); font-size: 12px; }
.optrow > .mck { flex: none; visibility: hidden; color: var(--ink); }
.optrow[aria-pressed="true"] > .mck { visibility: visible; }
.optrow[aria-pressed="true"] > .dmsg { color: var(--ink); }
/* The memory limit (MemoryField): every limit on one line, in one white card
   as tall as a field, the picked one ink. A shut one is faint. */
.mseg { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 2px; padding: 4px; border: var(--lw) solid var(--edge); border-radius: 12px; background: var(--paper); }
.mseg > button { height: 28px; min-width: 0; padding: 0 4px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
.mseg > button:not(:disabled, [aria-pressed="true"]):hover { color: var(--ink); }
.mseg > button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.mseg > button:disabled { color: var(--faint); opacity: .6; cursor: default; }
/* a database's settings with the limit: the name, and its value (the old one
   muted, then the new one ink, when a new limit changes it) */
.mtune > * { justify-content: space-between; }
.mtune .mono { font-size: 12px; color: var(--ink-2); }
.mtune .num { display: inline-flex; align-items: baseline; gap: 8px; color: var(--ink-2); }
.mtune .old { color: var(--muted); }
.mtune .to { color: var(--faint); }
.mtune b { font-weight: 600; color: var(--ink); }
/* The save bar: a change in Variables waits here until you save it. */
.applybar { position: sticky; bottom: -14px; margin: auto -16px -16px; padding: 12px 16px; background: var(--paper); border-top: var(--lw) solid var(--rule); display: flex; align-items: center; gap: 8px; font-size: 14px; }
.applybar span { flex: 1 1 auto; color: var(--ink-2); }
/* A field that stands alone has its own line: 38 px high, and its icon has the gray
   of its placeholder. */
.lsearch { flex: none; display: flex; align-items: center; gap: 8px; height: 38px; border: var(--lw) solid var(--edge); border-radius: 12px; padding: 0 12px; color: var(--faint); }
.lsearch:hover { border-color: var(--edge-hover); }
.lsearch:focus-within { border-color: var(--ink); }
.lsearch svg { flex: none; }
.lsearch input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); }
.logs mark { background: var(--dud); color: var(--ink); border-radius: 4px; }
/* The Logs tab's top: the time button at the left, then the search. The button says what the
   log shows: Live with its ring, or the time you picked with a clock. Its menu opens under it. */
.ltools { position: relative; flex: none; display: flex; gap: var(--gap); }
.ltools .lsearch { flex: 1 1 auto; min-width: 0; }
.panel .ltime { flex: none; width: 106px; min-height: 38px; height: 38px; justify-content: flex-start; gap: 8px; padding: 0 12px 0 12px; border-radius: 12px; font-size: 14px; color: var(--ink); }
.ltime .ltl { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.ltime .rg { margin: 0 2px; } /* as wide as the clock, so the words start at one place */
.ltime > svg:last-child { flex: none; color: var(--muted); }
.lmenu { min-width: 232px; font-size: 14px; }
/* the log */
.lwrap { position: relative; flex: 1 1 auto; min-height: 200px; display: flex; }
.lwrap .logs { flex: 1 1 auto; min-height: 0; overflow-anchor: none; }
/* .lmove glides up into place (demo.js lframe); .lin cuts off what is still under the log's
   bottom edge, so the gliding rows never make the log taller or move its scrollbar. The log's
   bottom padding is in .lin, so a new line shows from that edge, not from a black strip under it. */
.logs.llog { padding-bottom: 0; }
/* content-box: the height demo.js lset gives it is the rows' part, without the padding */
.llog .lin { box-sizing: content-box; overflow: hidden; overflow: clip; padding-bottom: 12px; }
/* a new line fades in fast, only while it comes up from the edge */
.lfade { animation: lfade .12s ease-out both; }
@keyframes lfade { from { opacity: 0; } }
.lday { display: flex; align-items: center; gap: 12px; margin: 4px 0; color: var(--log-faint); font: 600 11px/1.7 var(--sans); }
.lday::before, .lday::after { content: ""; flex: 1; border-top: var(--lw) solid var(--ink-2); }
/* The log's scrollbar: the site's thin pill (::-webkit-scrollbar), in the log's text color, so it
   shows on the dark ground; its track stays clear of the round corners. */
.logs::-webkit-scrollbar-track { margin: 8px 0; }
.logs::-webkit-scrollbar-thumb, .logs::-webkit-scrollbar-thumb:hover { background-color: var(--log-ink); }
@supports not selector(::-webkit-scrollbar) { .logs { scrollbar-color: var(--log-ink) transparent; } }
/* HTTP methods in a log: one color each, so requests are quick to scan. These colors
   are only for the dark log; everywhere else color means status. */
.lnone { color: var(--log-faint); }
/* a chart card: the chart runs to the card's sides and bottom, in Dud's color. Its area fades
   out toward the bottom, and the limit is a dashed line in the same color from edge to edge. The chart draws
   in from the left when it comes up; demo.js slides the line left on each new sample. */
.mc { flex: none; display: flex; flex-direction: column; padding: 12px 16px 0; }
.mch { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 600; }
.mch .num { font-size: 12px; font-weight: 400; }
.mch b { font-weight: 600; }
/* 2 wide to 1 high (MW and MH in demo.js). The highest point sits under the head's numbers with room between: LT in demo.js */
.mcw { position: relative; aspect-ratio: 2 / 1; margin: 0 -16px; touch-action: pan-y; }
.mcw svg { display: block; width: 100%; height: 100%; animation: mcin var(--slow) var(--ease) both; }
@keyframes mcin { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
.mcf0 { stop-color: var(--dud); stop-opacity: .34; }
.mcf1 { stop-color: var(--dud); stop-opacity: 0; }
/* hover (charts.js): a line down the chart, a dot on its line, and a tag with the number and its time */
.mctip { position: absolute; inset: 0; pointer-events: none; }
.mctip[hidden] { display: none; }
.mcx { position: absolute; top: 0; bottom: 0; width: 0; border-left: var(--lw) dashed var(--ink-2); }
.mcd { position: absolute; width: 10px; height: 10px; margin: -4px 0 0 -4px; border-radius: 999px; background: transparent; border: 1.5px solid var(--ink-2); box-sizing: border-box; }
.mctag { position: fixed; z-index: 9999; transform: translateY(-100%); pointer-events: none; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 8px 16px; white-space: nowrap; font-size: 12px; line-height: 1.3; background: var(--paper); border: var(--lw) solid var(--ink-2); border-radius: 8px; box-shadow: var(--shadow-card); }
.mctag[hidden] { display: none; }
.mctag b { font-weight: 600; color: var(--ink); }
.mctag span { color: var(--muted); }
/* the time axis, under the chart */
.mcax { display: flex; justify-content: space-between; padding: 8px 0 8px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mcl { fill: none; stroke: var(--dud); stroke-width: var(--lw); stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mlim { stroke: var(--dud); stroke-width: var(--lw); stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; shape-rendering: crispEdges; }
/* The project's settings: a white page over the canvas, under Dud. One column of the
   panel's lists. */
.ppage { position: absolute; inset: 0; z-index: 2; background: var(--paper); overflow: auto; display: flex; flex-direction: column; font-size: 14px; pointer-events: auto; }
.ppage[hidden] { display: none; }
/* the bar's Settings page fades in over the canvas, and the canvas fades in when you go back */
.ppage.swap, .cv.swap { animation: fadein var(--fast) var(--ease); }
.pcol { width: 100%; max-width: var(--col); margin: 0 auto; padding: var(--gap-title) 16px 84px; display: flex; flex-direction: column; gap: var(--gap); }

/* a switch has no fill: off is a gray line and a gray knob, on is a tan line and a tan
   knob. Ink, then a tan fill, were too heavy for a row of them. 34 x 20, a 12 px knob.
   Flex centers the knob, so its gap stays the same on all sides when the browser
   rounds the line to whole screen pixels. */
/* A switch: on, its knob slides right and turns tan, and a tan edge fades in over the gray one,
   in --fast. Hover changes the edge at once (only the tan edge's opacity moves, not its color). */
.switch { position: relative; width: 34px; height: 20px; flex: none; display: inline-flex; align-items: center; justify-content: flex-start; border-radius: 999px; border: var(--lw) solid var(--edge); background: var(--paper); cursor: pointer; padding: 0 2px; }
.switch::before { content: ""; position: absolute; inset: calc(-1 * var(--lw)); border: var(--lw) solid var(--dud); border-radius: inherit; opacity: 0; transition: opacity var(--fast) var(--ease); pointer-events: none; }
.switch:hover { border-color: var(--edge-hover); }
.switch i { width: 12px; height: 12px; flex: none; border-radius: 999px; background: var(--edge-hover); transition: transform var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.switch[aria-checked="true"]::before { opacity: 1; }
.switch[aria-checked="true"]:hover::before { border-color: var(--dud-hover); }
.switch[aria-checked="true"] i { transform: translateX(14px); background: var(--dud); }
/* Insights: the latency chart is a metric chart, 96 px high (LH in demo.js), so the mark's tag
   fits above the line. The mark is the Postgres section's "Index added": a dashed line in Dud's
   color down the chart, under a tan tag whose middle sits 12 px under the head, as the limit
   line does on Metrics. demo.js keeps the tag 6 px inside the chart's sides. */
.mc.lat .mcw { aspect-ratio: auto; height: 96px; }
.lmark { position: absolute; top: 24px; bottom: 0; width: 0; border-left: var(--lw) dashed var(--dud); animation: fadein .45s var(--ease) both; }
.lmark span { position: absolute; bottom: 100%; left: 0; margin-bottom: 4px; transform: translateX(-50%); font: 600 11px/16px var(--sans); color: var(--tan-ink); background: var(--tan); border-radius: 4px; padding: 0 8px; white-space: nowrap; }
/* a slow query: the SQL, with its time in amber at the right, then the index that fixes it,
   in a tan tag, as a hint. Its button is quiet, as it is in a card. */
.qhead { display: flex; align-items: baseline; gap: 12px; }
/* the SQL keeps its own line breaks, as people write it: a clause on each line */
.qsql { flex: 1 1 auto; min-width: 0; font: 12px/1.5 var(--mono); color: var(--ink); white-space: pre-line; }
.qhead b { flex: none; font-size: 14px; font-weight: 600; color: var(--warn-ink); }
.qfix { display: flex; align-items: center; gap: 8px; min-height: 32px; margin-bottom: -4px; }
.qfix code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 12px var(--mono); color: var(--ink-2); }
.qfix .btn, .qfix .rgw { margin-left: auto; }
.qfix .btn { margin-right: -8px; }
.qwrap .empty { padding: 24px 12px; animation: fadein .3s var(--ease); }
/* Backups: the point-in-time slider, drawn like the one in the Postgres section. A 12 px pill:
   a tan line and a light tan fill up to the knob, the panel's gray line after it. A dot for each
   off-site copy sits on a rail 6 px in from the pill's ends, and the knob runs on the same rail.
   An unseen range input lies on top and takes the pointer, the keys, and the screen reader. Its
   thumb is 12 px wide, so its middle runs on the rail too. --k is the knob's place (0 to 1). */
.pit { position: relative; height: 24px; --k: 1; }
.pit-ln { position: absolute; left: 0; right: 0; top: 6px; height: 12px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 var(--lw) var(--edge); color: var(--edge); }
.pit-ln.on { background: color-mix(in srgb, var(--dud) 20%, var(--paper)); box-shadow: inset 0 0 0 var(--lw) var(--dud); color: var(--dud); clip-path: inset(0 calc((100% - 12px) * (1 - var(--k)) + 6px) 0 0); }
.pit-ln i { position: absolute; top: 4px; left: calc(6px + (100% - 12px) * var(--f)); width: 4px; height: 4px; margin-left: -2px; border-radius: 999px; background: currentColor; }
/* The knob is the status ring, larger, with the Float shadow: it lies over the pill. A border
   gets darker on hover, as a switch's does. */
.pit-knob { position: absolute; top: 0; left: calc(6px + (100% - 12px) * var(--k)); width: 24px; height: 24px; margin-left: -12px; border-radius: 999px; pointer-events: none;
  background: color-mix(in srgb, var(--dud) 20%, var(--paper)); box-shadow: inset 0 0 0 var(--lw) var(--dud), var(--shadow-card); }
.pit input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: grab; -webkit-appearance: none; appearance: none; background: none; }
.pit input:active { cursor: grabbing; }
.pit input:disabled { cursor: default; }
.pit input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 12px; height: 24px; }
.pit input::-moz-range-thumb { width: 12px; height: 24px; border: 0; }
.pit:has(input:hover:not(:disabled)) .pit-knob { box-shadow: inset 0 0 0 var(--lw) var(--dud-hover), var(--shadow-card); }
.pit:has(input:focus-visible:not([data-quiet])) .pit-knob { outline: 2px solid var(--ink); outline-offset: 2px; }
/* the knob's time in the head: Now, the time you picked, or what the restore does */
.pit-t { flex: none; font-size: 12px; }
.pit-t b { font-weight: 600; color: var(--ink); }
.tll { display: flex; justify-content: space-between; font-size: 11px; margin-top: -8px; }
.bkn { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.bkn svg { flex: none; }
@media (max-width: 699px) {
  /* a phone shows so little of the canvas that the panel covers all of it; close it to go back */
  .panel { left: 8px; right: 8px; top: 8px; bottom: 8px; width: auto; transform: translateY(calc(100% + 40px)); }
  .dep-pv { width: 80px; height: 50px; }
  .bubble { max-width: 190px; font-size: 14px; }
}

.card { background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--shadow-card); }
.vis { padding: 16px 24px; display: flex; flex-direction: column; gap: 16px; }

/* sections: a title and its points, the animation on the other side, alternating */
.feat { padding: clamp(136px, 16vw, 224px) 0 0; }
.feat > .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px 64px; align-items: center; }
.feat.flip > .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.feat.flip .btext { order: 2; }
/* at most 48 px, so the longest title (Managed Postgres) fits its column on one line */
.feat h2, .lims h2, .access h2 { margin: 0; font-size: clamp(34px, 4.2vw, 48px); line-height: 1.02; letter-spacing: -.04em; font-weight: 750; }
.btext { display: flex; flex-direction: column; gap: 24px; }
.btext .ticks { color: var(--ink); gap: 12px; }
/* a quiet aside under a title. Color, not opacity: the scroll-in reveal sets the opacity of .btext > * */
.bnote { margin: -12px 0 0; max-width: 30em; font-size: 16px; line-height: 1.5; color: var(--faint); }
@media (max-width: 900px) { .feat > .wrap, .feat.flip > .wrap { grid-template-columns: 1fr; } .feat.flip .btext { order: 0; } }
.stagebox { position: relative; border-radius: 24px; padding: clamp(16px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px; }
#deploys .stagebox { background: linear-gradient(135deg, #F8E7CB, #F2CFAE); }
#postgres .stagebox { background: linear-gradient(135deg, #DCEAF6, #E4EFDF); }
#mcp .stagebox { background: linear-gradient(135deg, #ECE6F7, #F7E7EA); }
#security .stagebox { background: linear-gradient(135deg, #DCE6F4, #E9E4F2); }
#pricing .stagebox { background: linear-gradient(135deg, #F6EBD3, #E7EEDF); }
#founder .stagebox { background: linear-gradient(135deg, #F8E3D6, #F3E9D2); }

/* sections come up as they scroll in */
.js .feat .btext > *, .js .feat .stagebox, .js .lims .ltext > *, .js .lims .stagebox, .js .limcard li, .js .notyet { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .feat .stagebox, .js .lims .stagebox { transform: translateY(26px) scale(.985); transition-delay: .12s; }
.js .feat .ticks li { opacity: 0; transform: translateX(-10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .in .btext > *, .js .in .stagebox, .js .in .ltext > *, .js .in .limcard li, .js .in .notyet, .js .in .ticks li { opacity: 1; transform: none; }
.js .in .ticks li:nth-child(1) { transition-delay: .18s; } .js .in .ticks li:nth-child(2) { transition-delay: .26s; }
.js .in .ticks li:nth-child(3) { transition-delay: .34s; } .js .in .ticks li:nth-child(4) { transition-delay: .42s; }
.js .in .ticks li:nth-child(5) { transition-delay: .50s; }
.js .in .limcard li:nth-child(1) { transition-delay: 0.25s; } .js .in .limcard li:nth-child(2) { transition-delay: 0.30s; } .js .in .limcard li:nth-child(3) { transition-delay: 0.35s; }
.js .in .limcard li:nth-child(4) { transition-delay: 0.40s; } .js .in .limcard li:nth-child(5) { transition-delay: 0.45s; } .js .in .limcard li:nth-child(6) { transition-delay: 0.50s; }
.js .in .limcard li:nth-child(7) { transition-delay: 0.55s; } .js .in .notyet { transition-delay: 0.62s; }
.js .hero .htext > * { animation: rise .8s var(--ease) both; }
.js .hero .hl li { animation: rise .7s var(--ease) both; }
.js .hero .hl li:nth-child(1) { animation-delay: .12s; } .js .hero .hl li:nth-child(2) { animation-delay: .2s; } .js .hero .hl li:nth-child(3) { animation-delay: .28s; }
.js .hero .hdemo { animation: fadein .9s var(--ease) .25s both; }

/* scenes: drawn at a fixed size, scaled to fit */
.scene { position: relative; width: 100%; }
.card.scene { overflow: hidden; }
.sc { position: absolute; left: 0; top: 0; transform-origin: 0 0; font-size: 14px; }
.sc .btn { pointer-events: none; transition: transform var(--fast) var(--ease); }
.sc .btn.press { transform: scale(.93); }
.tile.img { overflow: hidden; padding: 0; }
.tile.img img { width: 100%; height: 100%; display: block; }
/* a site's favicon: room around it, on its own ground's color (the tile's fill) */
.tile.fav img { width: 58%; height: 58%; object-fit: contain; }

/* deploys */
/* Drawn like the demo: the dot grid, and cards like its cards. The grid is on the whole
   card, so it also fills the sides when the card is wider than the drawing. */
#scDeploy, #scSec { background-color: var(--canvas); background-image: radial-gradient(var(--rule) 1px, transparent 1px); background-size: 18px 18px; }
/* The deploy and security scenes match the canvas: lines, ports, cards, and the globe are --lw
   in its --edge gray, and a bead is white with the edge of a selected card (--hot). site.js
   draws the security scene with the same colors. */
#scDeploy .wires { position: absolute; left: 0; top: 0; }
.wire { fill: none; stroke: var(--edge); stroke-width: var(--lw); }
.wire.off { visibility: hidden; }
.dots circle { fill: var(--paper); stroke: var(--ink-2); stroke-width: var(--lw); }
.net { position: absolute; width: 48px; height: 48px; border-radius: 999px; background: var(--paper); color: var(--faint); border: var(--lw) solid var(--edge); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-card); }
/* a version: a card as on the canvas (the name, then the ring and the commit), and Roll back */
.ver { position: absolute; width: 272px; height: 56px; display: flex; align-items: center; background: var(--paper); border: var(--lw) solid var(--edge); border-radius: 12px; padding: 0 12px; box-shadow: var(--shadow-card); }
.vh { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; width: 100%; }
.vt { position: relative; display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
/* the status ring before the second line, as on the canvas cards */
.vt > .rg { position: absolute; left: 0; bottom: 2.75px; }
.vt b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt .mono { font-size: 11px; color: var(--muted); }
/* The old version's Roll back button pops in and out (.on). */
.vst { display: grid; justify-items: end; align-items: center; }
.vst > * { grid-area: 1 / 1; }
.vst > :not(.on) { visibility: hidden; }
.vst .rb { min-height: 26px; padding: 0 12px; font-size: 12px; }
/* The new version starts as a small "git push" card (.chip) in the middle of the top spot,
   grows out to the full card from there (.grow), then shows its content. site.js sets its box. */
#dpV2 { padding: 0; height: 56px; overflow: hidden; visibility: hidden; }
#dpV2.on { visibility: visible; }
#dpV2 .vbody { position: absolute; left: 0; top: 0; width: 269px; height: 53px; padding: 0 12px; display: flex; align-items: center; }
#dpV2.chip .vbody, #dpV2.grow .vbody, #dpV2:not(.chip) .vpush { visibility: hidden; }
.vpush { position: absolute; left: 50%; top: 50%; translate: -50% -50%; font: 600 12px/16px var(--mono); color: var(--ink); white-space: nowrap; }
.vt b > span { display: inline-block; }
/* The line under the title: each build step, then the commit. */
.vsub { position: relative; height: 15px; overflow: hidden; }
.vsub > span { position: absolute; left: 0; right: 0; top: 0; height: 15px; padding-left: 16px; display: flex; align-items: center; gap: 8px; }
.vsub .age::before { margin-left: 0; }
.vsub em { font: 600 11px/13px var(--sans); font-style: normal; color: var(--tan-ink); background: var(--tan); border-radius: 4px; padding: 0 4px; }
/* The pointer that clicks Roll back, with the demo's tap ring. It comes in from outside the scene. */
.dpcur { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; visibility: hidden; }
.dpcur.on { visibility: visible; }
.dpcur svg { display: block; }
.dpcur::after { content: ""; position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; border-radius: 999px; border: 2px solid var(--ink); opacity: 0; }
.dpcur.tap::after { animation: tap .45s var(--ease); }

/* Postgres: query latency. One card, 20 px in from the scene's edge on all four sides, and the
   chart is all of it: the panel's metric chart (.mc), a 1 px line in Dud's color with an area
   that fades out, to the card's sides and bottom. The title and the number sit together in the
   middle of the head. The scene has data-fill, so in a box wider than 540 px the card and the
   chart grow with it. site.js draws the line and shows it from left to right. */
.lt-card { position: absolute; inset: 20px; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
/* The head is one title: the words and the number in the same type, and they fade out and in together. */
.lt-head { position: absolute; left: 14px; right: 14px; top: 12px; display: flex; justify-content: center; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 600; transition: opacity .3s; }
/* The number keeps one width (244 ms or 40 ms), so the head stays put when it changes. An empty
   number keeps its line, so the head does not move when it fills in. */
.lt-num { min-width: 3.45em; font-weight: inherit; }
.lt-num:empty::before { content: "\00a0"; }
/* Room under the head before the mark's tag and chart begin. */
.lt-plot { position: absolute; left: 0; right: 0; top: 90px; bottom: 0; transition: opacity .3s; }
.lt-svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.lt-line { fill: none; stroke: var(--dud); stroke-width: var(--lw); stroke-linejoin: round; vector-effect: non-scaling-stroke; }
/* the moment of the index: a dashed line down the chart, as the panel's limit line, with a tan tag above */
.lt-mark { position: absolute; top: 0; bottom: 0; width: 0; border-left: var(--lw) dashed var(--dud); opacity: 0; transform: scaleY(.2); transform-origin: bottom; }
.lt-mark span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 4px; font: 600 11px/16px var(--sans); color: var(--tan-ink); background: var(--tan); border-radius: 4px; padding: 0 8px; white-space: nowrap; }
/* it grows in, and goes at once on the reset, out of sight */
#scLat.mark .lt-mark { opacity: 1; transform: none; transition: opacity .3s, transform .45s var(--ease); }
/* at the end of a loop, the chart fades out before it resets */
#scLat.out .lt-plot, #scLat.out .lt-head { opacity: 0; }

/* A toast in a scene: one line at the bottom of the card, only as
   wide as its words, with the Float shadow. It comes up from under the card's edge and goes
   back down. The pointer (.dpcur, as in the deploy scene) clicks its button. */
.sc-toast { position: absolute; z-index: 2; left: 50%; bottom: 14px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 4px 0 12px; box-sizing: border-box; background: var(--paper); border: var(--lw) solid var(--edge); border-radius: 12px; box-shadow: var(--shadow-float); font-size: 14px; color: var(--ink-2); white-space: nowrap; transform: translate(-50%, calc(100% + 30px)); transition: transform .42s var(--ease); }
.sc-toast.on { transform: translate(-50%, 0); }
.sc-toast b { font-weight: 600; color: var(--ink); }
.sc-toast code { font: 12px var(--mono); color: var(--ink-2); }
.sc-toast .btn { margin-left: 4px; }

/* Postgres: backups. After the chart, the same card shows the last 30 minutes as a slider
   (.bkmode): the head gets new words and the clock, and the chart is gone. */
#scLat.bkmode .lt-plot, #scLat:not(.bkmode) .pt-sl, #scLat.out .pt-sl { opacity: 0; }
.pt-sl { position: absolute; inset: 0; --k: 1; transition: opacity .3s; }
.pt-tr { position: absolute; inset: 0; }
/* The slider is drawn like the status ring: a 12 px pill with a 1 px line and, up to the knob,
   a tan line with a light tan fill. It is gray past the knob. The knob runs along a rail 6 px in
   from the pill's ends, where a dot for each backup sits; --k is where the knob is (0 to 1). */
.pt-ln { position: absolute; left: 28px; right: 28px; top: 140px; height: 12px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 var(--lw) var(--edge); color: var(--edge); }
.pt-ln.on { background: color-mix(in srgb, var(--dud) 20%, var(--paper)); box-shadow: inset 0 0 0 var(--lw) var(--dud); color: var(--dud); clip-path: inset(0 calc((100% - 12px) * (1 - var(--k)) + 6px) 0 0); }
.pt-dot { position: absolute; top: 4px; left: calc(6px + (100% - 12px) * var(--f)); width: 4px; height: 4px; margin-left: -2px; border-radius: 999px; background: currentColor; }
/* The knob is the status ring, larger, with a canvas card's shadow. Grabbed, it lifts like a
   selected card. */
.pt-knob { position: absolute; top: 134px; left: calc(34px + (100% - 68px) * var(--k)); width: 24px; height: 24px; margin-left: -12px; border-radius: 999px; background: color-mix(in srgb, var(--dud) 20%, var(--paper)); box-shadow: inset 0 0 0 var(--lw) var(--dud), var(--shadow-card); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
#scLat.grab .pt-knob { transform: scale(1.15); box-shadow: inset 0 0 0 var(--lw) var(--dud), var(--shadow-float); }
/* The drop is marked as on a chart, as "Index added": a tag above the slider and a dashed line
   down to it, in red. It grows in, and fades once the table is back. */
.pt-mark { position: absolute; top: 100px; height: 40px; left: calc(34px + (100% - 68px) * var(--d)); width: 0; border-left: var(--lw) dashed var(--fail-ink); opacity: 0; transform: scaleY(.2); transform-origin: bottom; }
.pt-mark span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 4px; font: 600 11px/16px var(--sans); color: var(--fail-ink); background: var(--fail-bg); border-radius: 4px; padding: 0 8px; white-space: nowrap; }
#scLat.drop .pt-mark { opacity: 1; transform: none; transition: opacity .3s, transform .45s var(--ease); }
#scLat.restored .pt-mark { opacity: 0; transition: opacity .4s; }
/* The restore's toast keeps one width while its words change, and they fade out and back in. */
.pt-toast { min-width: 268px; }
.pt-toast > * { transition: opacity .2s var(--ease); }
.pt-toast.swap > * { opacity: 0; }
.pt-toast .btn { margin-left: auto; }
/* "Restored to" has no button, so its words sit in the middle */
.pt-toast.done { justify-content: center; padding-right: 12px; }
.pt-toast .spin { margin-right: 2px; }
.pt-bar { flex: 1 1 auto; height: 4px; margin: 0 12px 0 4px; border-radius: 999px; background: var(--fill); overflow: hidden; }
.pt-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--busy); }

/* API and MCP: a chat with Claude */
.chat { display: flex; flex-direction: column; background: var(--page); }
.cbody { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 0 24px; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20px); mask-image: linear-gradient(to bottom, transparent, #000 20px); }
.cin { display: flex; flex-direction: column; gap: 12px; padding: 24px 0 4px; transition: opacity .4s; }
.cin > .gone { opacity: 0; transition: opacity .3s; }
.cin > *:not(.show), .trow:not(.show) { display: none !important; }
.cin > .show, .trow.show { animation: chatin .45s var(--ease); }
.chat.fade .cin { opacity: 0; }
.umsg { align-self: flex-end; max-width: 80%; background: var(--fill); border-radius: 16px 16px 4px 16px; padding: 12px 16px; font-size: 14px; line-height: 1.45; }
.amsg { min-height: 22px; display: flex; align-items: center; font-size: 14px; line-height: 1.5; }
.amsg.thinking .tx { display: none; }
.amsg .rest { color: transparent; }
.alink { color: #2F6FEB; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.think { display: none; gap: 4px; }
.amsg.thinking .think { display: inline-flex; }
.think i { width: 6px; height: 6px; border-radius: 999px; background: var(--faint); animation: think 1s ease-in-out infinite; }
.think i:nth-child(2) { animation-delay: .15s; } .think i:nth-child(3) { animation-delay: .3s; }
.found { border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; }
.fh { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.fh > span { font-size: 12px; color: var(--muted); }
.fl { display: flex; flex-wrap: wrap; gap: 8px; }
.fs { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--rule); border-radius: 8px; font-size: 12px; font-weight: 600; opacity: 0; transform: scale(.85); transition: opacity .3s var(--ease), transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.fs.on { opacity: 1; transform: none; }
.fs .tile { width: 20px; height: 20px; border-radius: 28%; }
.tools { border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); padding: 4px 16px; display: flex; flex-direction: column; }
.trow { display: flex; align-items: center; gap: 12px; height: 31px; font-size: 12px; color: var(--ink-2); }
.trow + .trow { border-top: 1px solid var(--fill); }
.trow b { color: var(--ink); font-weight: 600; }
.trow .st { margin-left: auto; display: inline-flex; color: var(--live); }
.trow .tbar { margin-left: auto; width: 84px; height: 5px; border-radius: 999px; background: var(--fill); overflow: hidden; }
.trow .tbar + .st { margin-left: 12px; }
.tbar i { display: block; height: 100%; width: 0; background: var(--busy); }
.trow.done .tbar i { background: var(--live); }
.dns { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 12px; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); font-size: 12px; }
.dns .arrow { color: var(--faint); }
.dns .btn { margin-left: auto; min-height: 28px; font-size: 12px; }
.cfoot { flex: none; position: relative; margin: 12px 16px 16px; }
.composer { display: flex; align-items: center; gap: 8px; height: 52px; transition: opacity .3s; padding: 0 8px 0 16px; border: 1px solid var(--edge); border-radius: 16px; background: var(--paper); font-size: 14px; }
.ctext { min-width: 0; white-space: nowrap; overflow: hidden; }
.chat.typing .ctext::after { content: ""; display: inline-block; width: 2px; height: 17px; margin-left: 1px; vertical-align: -3px; background: var(--ink); animation: blink 1s steps(1) infinite; }
.cph { color: var(--faint); }
.chat.typing .cph { display: none; }
.send { margin-left: auto; flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--edge); color: var(--paper); display: flex; align-items: center; justify-content: center; transition: background .2s, transform .12s var(--ease); }
.chat.ready .send { background: var(--ink); }
.send.press { transform: scale(.88); }
.creplay { position: absolute; inset: 0; margin: auto; width: max-content; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 16px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; }
.creplay:hover { border-color: var(--edge); }
#scMcp.done .creplay { opacity: 1; pointer-events: auto; }
#scMcp.done .composer { opacity: 0; }

/* security */
/* drawn like the demo: dot grid, cards, lines. The cards hold still; the shields on the canvas shake. */
#secCv { position: absolute; left: 0; top: 0; width: 630px; height: 414px; }
/* the drawing (x 32 to 577, y 39 to 341) moves 8 px right and 1 px down, so it has 40 px on every side */
.sbox { position: absolute; width: 176px; height: 56px; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; column-gap: 12px; padding: 0 12px; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow-card); }
.sbox .tile svg { display: block; }
.tile.tan { background: var(--tan); color: var(--tan-ink); }
.tile.gray { --bg: var(--fill); background: var(--bg); color: var(--muted); }
/* the edge: a square card, icon above the text */
.sbox.sq { width: 90px; height: 90px; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: center; row-gap: 8px; padding: 0 12px; text-align: center; }
.sbox.sq .txt { align-items: center; }

/* price */
.price { position: relative; gap: 16px; padding: 24px 24px 24px; container-type: inline-size; }
.gbs { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; background: var(--fill); border-radius: 12px; padding: 4px; }
.gbs button { position: relative; border: 0; background: none; border-radius: 8px; padding: 0 4px; min-height: 38px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.gbs button:hover, .gbs button[aria-checked="true"] { color: var(--ink); }
/* The picked plan's white pill glides to the next pick in 150 ms, as a tab's line does
   (site.js places it). It has no line: the one shadow on the landing without one. It has
   a card's shadow, not a button's, so it stands up off the gray. Until the script places
   it, the picked button draws the pill itself. */
.gbs .gthumb { position: absolute; top: 0; left: 0; border-radius: 8px; background: var(--paper); box-shadow: var(--shadow-card); transition: transform .15s var(--ease); pointer-events: none; }
.gbs:not(.glide) .gthumb { display: none; }
.gbs:not(.glide) button[aria-checked="true"] { background: var(--paper); box-shadow: var(--shadow-card); }
/* No dead space: each button's hit area runs to the middle of the gaps around it and to
   the edge of the gray box, so a click anywhere in the box picks a plan. */
.gbs button::after { content: ''; position: absolute; inset: -4px -2px; }
.gbs button:first-of-type::after { left: -4px; }
.gbs button:last-of-type::after { right: -4px; }
.pbig { display: flex; align-items: baseline; justify-content: center; margin-top: 16px; font: 750 min(64px, 21cqi)/1 var(--sans); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.pbig small { font: 600 18px var(--sans); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.specs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: -8px; font-size: 14px; color: var(--muted); }
.specs span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.specs svg { flex: none; }
.specs b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
/* on a phone the line has no room for icons; without them it stays on one line */
@container (max-width: 310px) { .specs svg { display: none; } }
.ramtop { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); margin: 4px 0 -8px; }
.ramtop .num { font-size: 12px; color: var(--ink); white-space: nowrap; }
.ramtop .num.over { color: var(--fail-ink); }
.rambar { position: relative; display: flex; height: 36px; border-radius: 12px; background: var(--fill); overflow: hidden; }
.rambar .rseg, .rambar .free { display: block; flex: none; height: 100%; width: 0; transition: width .6s var(--ease); }
.rambar .rseg { display: flex; align-items: center; justify-content: center; overflow: hidden; border-right: 2px solid var(--paper); }
.rambar .rseg:has(+ .free) { border-right: 0; }
/* the icon tile has the edge and glow of the other small tiles */
.rambar .rseg .tile { --tile-glow: 0 1px 3.5px; width: 19px; height: 19px; border-radius: 28%; transform-origin: center; transition: transform .35s var(--ease), opacity .3s var(--ease); }
/* a block too narrow for its icon scales the icon down to nothing, and back up when there is room */
.rambar .rseg { container-type: inline-size; }
/* Out: js/site.js sets .tight when a plan is picked so the icon eases out with its block.
   In: @container waits for the block to have room, then the icon eases back in. */
.rambar .rseg.tight .tile { opacity: 0; transform: scale(0); }
@container (max-width: 34px) { .rambar .rseg .tile { opacity: 0; transform: scale(0); } }
.rambar .free { position: relative; overflow: hidden; background: repeating-linear-gradient(-45deg, var(--rule) 0 5px, var(--fill) 5px 10px); }
.rambar .free::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--paper); }
.rambar .over { position: absolute; top: 0; bottom: 0; left: 100%; right: 0; pointer-events: none; background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--fail-ink) 34%, transparent) 0 5px, color-mix(in srgb, var(--fail-ink) 14%, transparent) 5px 10px); background-clip: padding-box; border-left: 2px solid color-mix(in srgb, var(--fail-ink) 34%, transparent); transition: left .6s var(--ease); }
/* hover (or tap) a block: its name and size in a tip above it */
.ramtip { position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 8px)); display: none; white-space: nowrap; font-size: 12px; color: var(--paper); background: var(--ink); border-radius: 8px; padding: 4px 8px; pointer-events: none; box-shadow: var(--shadow-float); }
.ramtip.on { display: block; }
.ramtip::after { content: ""; position: absolute; left: 50%; bottom: -4px; margin-left: -4px; width: 8px; height: 8px; background: var(--ink); transform: rotate(45deg); }
.ramtip b { font-weight: 600; }
.ramtip .num { font-size: 11px; color: var(--edge); }
.sro { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* The 6 sizes fit on one line down to 330 px: a button is at least 49 px (the widest label, 24 GB, is 41 px,
   and it has 8 px of padding), so 6 buttons, 5 gaps of 4 px and the 8 px around them take 322 px.
   A narrower card shows them in two rows of three. */
@container (max-width: 330px) {
  .gbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gbs button::after { inset: -2px; }
  .gbs button:nth-of-type(-n+3)::after { top: -4px; }
  .gbs button:nth-of-type(n+4)::after { bottom: -4px; }
  .gbs button:nth-of-type(3n+1)::after { left: -4px; }
  .gbs button:nth-of-type(3n)::after { right: -4px; }
}

/* compare: the demo priced on other platforms, a thick bar each (height =
   price / the highest price). A bar opens a modal with its line items. */
#compare .stagebox { background: linear-gradient(135deg, #E7EEDF, #F6EBD3); }
.cmpc { padding: 24px 44px; gap: 16px; container-type: inline-size; }
.chart { --gap: clamp(14px, 2vw, 28px); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--gap); align-items: end; }
.col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; height: 290px; min-width: 0; padding: 0; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; cursor: pointer; }
/* No dead space between bars: each column's hit area runs to the middle of the gaps beside it. */
.col::after { content: ''; position: absolute; inset: 0 calc(var(--gap) / -2 - .5px); }
.col:first-child::after { left: 0; }
.col:last-child::after { right: 0; }
.col:focus-visible { outline-offset: 4px; }
.cpv { text-align: center; font: 700 20px var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cb { display: block; height: calc(var(--h) * 200px); min-height: 12px; border-radius: 12px; background: var(--rule); transform-origin: 50% 100%; }
.col:hover .cb { background: var(--edge); }
.col.me .cb { background: var(--dud); }
.col.me:hover .cb { background: var(--dud-hover); }
.cn { display: flex; align-items: center; justify-content: center; gap: 4px; height: 26px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.cn svg { flex: none; }
@container (max-width: 400px) {
  .cn svg { display: none; }
}
/* the bars grow up the first time the section is seen, then their prices show */
.js #compare .cb { transform: scaleY(0); transition: transform .9s var(--ease); }
.js #compare .cpv { opacity: 0; transition: opacity .4s var(--ease); }
.js #compare.in .cb { transform: none; }
.js #compare.in .cpv { opacity: 1; }
.js #compare.in .col:nth-child(1) .cb { transition-delay: .35s; } .js #compare.in .col:nth-child(2) .cb { transition-delay: .45s; }
.js #compare.in .col:nth-child(3) .cb { transition-delay: .55s; } .js #compare.in .col:nth-child(4) .cb { transition-delay: .65s; }
.js #compare.in .col:nth-child(5) .cb { transition-delay: .75s; } .js #compare.in .col:nth-child(6) .cb { transition-delay: .85s; }
.js #compare.in .col:nth-child(1) .cpv { transition-delay: 1s; } .js #compare.in .col:nth-child(2) .cpv { transition-delay: 1.1s; }
.js #compare.in .col:nth-child(3) .cpv { transition-delay: 1.2s; } .js #compare.in .col:nth-child(4) .cpv { transition-delay: 1.3s; }
.js #compare.in .col:nth-child(5) .cpv { transition-delay: 1.4s; } .js #compare.in .col:nth-child(6) .cpv { transition-delay: 1.5s; }
@media (max-width: 480px) {
  .cmpc { padding: 16px; }
  .chart { --gap: 8px; }
  .col { height: 240px; }
  .cb { height: calc(var(--h) * 160px); }
  .cpv { font-size: 16px; }
  .cn { font-size: 12px; }
}
/* keep all six names readable on the smallest phones */
@media (max-width: 370px) {
  .cmpc { padding: 16px 12px; }
  .chart { --gap: 6px; }
  .cpv { font-size: 14px; }
  .cn { font-size: 11px; }
}

/* The landing and dashboard share this window layout. Modal.tsx renders it for
   the dashboard and design guide. The landing uses the same native dialog markup. */
.dmodal { width: min(var(--win), calc(100vw - 32px)); padding: 0; border: var(--lw) solid var(--edge); border-radius: 16px; background: var(--paper); color: var(--ink);
  font: 400 14px/1.5 var(--sans); text-align: left; letter-spacing: normal; text-transform: none;
  box-shadow: var(--shadow-window); }
.dmodal.wide { width: min(var(--win-wide), calc(100vw - 32px)); }
.dmodal.narrow { width: min(var(--win-narrow), calc(100vw - 32px)); }
/* Open and close: the window fades and grows from 92% in --fast, and the
   close takes as long. The page behind fades a little and blurs 4 px. Plain CSS on
   the native <dialog>: @starting-style for the open, display and overlay as
   discrete transitions so the close can play. After the first size, what is
   in it grows or shrinks it smoothly (Modal.tsx sets its height), up to
   --win-max; past it, it scrolls inside. A log's window grows so as its
   lines come in. Off under reduced motion. */
.dmodal { max-height: var(--win-max); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.dmodal:not(.log) { scrollbar-width: none; }
.dmodal:not(.log)::-webkit-scrollbar { display: none; }
/* A log's window (Modal.tsx: log) shows its scrollbar, the site's thin pill, from under the bar
   to near its foot. Its gutter is kept on both sides from the first frame, so nothing moves when
   the bar comes, and the padding is that much less, so the log's window looks as every window.
   The script keeps the log at its end, so no scroll anchoring. */
.dmodal.log { scrollbar-gutter: stable both-edges; overflow-anchor: none; }
/* the track starts under the bar: its 28 px row and its padding (2 × (--win-pad − 8 px)) */
.dmodal.log::-webkit-scrollbar-track { margin: calc(2 * var(--win-pad) + 12px) 0 8px; }
@supports selector(::-webkit-scrollbar) {
  .dmodal.log .dmodal-head { margin-inline: calc(-1 * var(--sbar)); padding-inline: calc(var(--win-pad) - 8px); }
  .dmodal.log .dmodal-body { padding-inline: calc(var(--win-pad) - var(--sbar)); }
}
@supports not selector(::-webkit-scrollbar) { .dmodal.log { scrollbar-width: thin; } }
.dmodal[open] { transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), filter var(--fast) var(--ease), overlay var(--fast) var(--ease) allow-discrete, display var(--fast) var(--ease) allow-discrete; }
.dmodal[open].sized { transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), filter var(--fast) var(--ease), overlay var(--fast) var(--ease) allow-discrete, display var(--fast) var(--ease) allow-discrete, height var(--mid) var(--ease), margin-top var(--mid) var(--ease); }
.dmodal:not([open]) { opacity: 0; transform: scale(.92); transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), overlay var(--fast) var(--ease) allow-discrete, display var(--fast) var(--ease) allow-discrete; }
@starting-style { .dmodal[open] { opacity: 0; transform: scale(.92); } }
.dmodal::backdrop { background-color: color-mix(in srgb, var(--ink) 6%, transparent); backdrop-filter: blur(4px); transition: background-color var(--fast) var(--ease), backdrop-filter var(--fast) var(--ease), overlay var(--fast) var(--ease) allow-discrete, display var(--fast) var(--ease) allow-discrete; }
.dmodal:not([open])::backdrop { background-color: transparent; backdrop-filter: blur(0); }
@starting-style { .dmodal[open]::backdrop { background-color: transparent; backdrop-filter: blur(0); } }
/* A window over a window (a database's or a repo's window over New, its memory
   limit over that): the one behind steps back a little and blurs 3 px, so
   only the one in front reads, and the page behind them stays as it was. A
   window as wide shows the one behind as a thin edge above and below; a
   narrow one (a field, a list to pick from) at its sides too. Esc and Close
   go back to the one behind. */
.dmodal[open].behind { transform: scale(.96); filter: blur(3px); }
.dmodal.stacked[open]::backdrop { background-color: color-mix(in srgb, var(--ink) 4%, transparent); backdrop-filter: none; }
/* a window with no field takes the focus itself: no ring around all of it */
.dmodal:focus { outline: 0; }
@media (prefers-reduced-motion: reduce) { .dmodal, .dmodal[open].sized, .dmodal::backdrop { transition: none; } }
/* Its space is the scale's (style.css :root): --win-pad all round, --win-title
   under the title. The head's row is 28 px for its buttons, a little taller
   than the title's letters, so it starts that much higher, and its buttons sit
   that much further out: the letters and the X's lines are at --win-pad. */
@media (max-width: 640px) { .dmodal { --win-pad: 24px; } }
/* The title and the close are the window's top bar: it stays while what is
   under it scrolls (a window past --win-max, a log). It has as much room
   under the title's row as above it; the rest of --win-title is the body's.
   It is glass: what scrolls under it shows through a little, blurred. It does not
   fade out at its foot: a faint line closes it (.scrolled, Modal.tsx) while
   something is under it, at once, as under the landing's nav. With nothing under
   it, it is the window's own white. */
.dmodal-head { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 28px minmax(0, 1fr) 28px; align-items: center; gap: 8px; padding: calc(var(--win-pad) - 8px); }
.dmodal-head::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: color-mix(in srgb, var(--paper) 75%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.8); backdrop-filter: blur(12px) saturate(1.8);
  box-shadow: inset 0 calc(-1 * var(--lw)) 0 transparent; }
.dmodal.scrolled .dmodal-head::before { box-shadow: inset 0 calc(-1 * var(--lw)) 0 var(--rule); }
/* The line goes all the way, to the window's right edge too. A log's scrollbar takes the right
   edge and the bar cannot reach over it, so there the window's own background draws the line
   (it does not scroll), at the bar's foot: the bar's height is its row and its padding, as the
   scrollbar's track starts under it. */
.dmodal.log.scrolled { background-image: linear-gradient(var(--rule), var(--rule)); background-repeat: no-repeat; background-size: 100% var(--lw); background-position: 0 calc(2 * var(--win-pad) + 12px - var(--lw)); }
.dmodal-action { grid-area: 1 / 1; display: flex; }
.dmodal-head .ibtn.done { color: var(--live); }
.dmodal-head > h2 { grid-area: 1 / 2; margin: 0; text-align: center; font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.dmodal-head > h2, .dtitle-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Leave room for the icon's glow and the link's focus ring. */
.dmodal-head > h2 { padding: 12px; margin: -12px; }
.dmodal-head .mclose { grid-area: 1 / 3; position: relative; }
.mclose::after { content: ''; position: absolute; inset: -8px; }
.dtitle { position: relative; display: inline-flex; align-items: center; gap: 12px; max-width: 100%; vertical-align: top; }
.dtitle .tile { width: 26px; height: 26px; }
/* Keep space for the arrow on long titles while the title stays centered. */
a.dtitle { max-width: calc(100% - 2 * (var(--external-link-gap) + .5em)); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
a.dtitle:is(:hover, :focus-visible) { text-decoration-color: currentColor; }
/* The title and its arrow share a baseline. The arrow takes no width, so the title stays centered. */
.dtitle-label { display: inline-flex; align-items: baseline; min-width: 0; }
.dtitle-label > .xa { margin-inline: var(--external-link-gap) calc(-1 * (var(--external-link-gap) + .5em)); }
.dmodal-body { display: flex; flex-direction: column; gap: var(--gap); padding: calc(var(--win-title) - var(--win-pad) + 8px) var(--win-pad) var(--win-pad); font-size: 14px; }
.mnote { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; text-align: center; text-wrap: balance; }
.mnote:has(+ :not(.mfoot)) { margin-bottom: calc(var(--gap-title) - var(--gap)); }
.mnote code { font: 12px var(--mono); background: var(--fill); border-radius: 4px; padding: 0 4px; }
:where(.dmodal) :is(.ferr, .pnote) { text-align: center; text-wrap: balance; }
.mfoot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--gap); }
.mfoot:not(:first-child) { margin-top: calc(var(--gap-title) - var(--gap)); }
.bd { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.bd li { display: grid; grid-template-columns: 168px minmax(0, 1fr) auto; gap: 2px 16px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--fill); }
.bd b { font-weight: 600; }
.bd span { color: var(--muted); font-size: 14px; }
.bd em { font: 400 14px var(--sans); font-style: normal; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; color: var(--ink-2); }
.bd .tot { border-bottom: 0; padding: 16px 0 0; }
.bd .tot b, .bd .tot em { font: 700 20px var(--sans); letter-spacing: -.02em; color: var(--ink); }
.bd .tot em { font-variant-numeric: tabular-nums; }
.bd .tot small { margin-left: 2px; font: 600 14px var(--sans); letter-spacing: 0; color: var(--muted); }
/* a note about one platform: a faded line under the total */
.cnote { margin: 0; font-size: 14px; color: var(--muted); text-align: center; text-wrap: balance; }
/* How backups work modal: one loop on the dot-grid canvas — Postgres streams encrypted copies
   off-site, feeding a point-in-time slider that restores back to any second. */
.bkv { position: relative; background-color: var(--canvas); background-image: radial-gradient(var(--rule) 1px, transparent 1px); background-size: 16px 16px; border: var(--lw) solid var(--rule); border-radius: 16px; padding: 24px 20px 20px; }
.bkv-top, .bkv-mid { display: grid; grid-template-columns: minmax(0, 1fr) 118px minmax(0, 1fr); align-items: center; }
.bkv-node { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 12px; background: var(--paper); border: var(--lw) solid var(--edge); border-radius: 12px; box-shadow: var(--shadow-card); min-width: 0; }
.bkv-node b { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.bkv-wire { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bkv-lbl { position: absolute; bottom: calc(50% + 8px); display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.bkv-lbl svg { color: var(--faint); flex: none; }
.bkv-svg { width: 100%; height: 14px; display: block; overflow: visible; }
.bkv-ln { stroke: var(--edge); stroke-width: 1.25; }
.bkv-hd { fill: none; stroke: var(--edge-hover); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.bkv-bead { fill: var(--paper); stroke: var(--ink-2); stroke-width: 1.2; animation: bkv-flow 2.4s linear infinite; }
.bkv-b2 { animation-delay: -.8s; }
.bkv-b3 { animation-delay: -1.6s; }
@keyframes bkv-flow { 0% { transform: translateX(6px); opacity: 0; } 14% { opacity: 1; } 86% { opacity: 1; } 100% { transform: translateX(98px); opacity: 0; } }
.bkv-mid { height: 44px; }
.bkv-col { position: relative; height: 100%; }
.bkv-v { position: absolute; left: 50%; top: 0; bottom: 0; transform: translateX(-50%); width: 14px; height: 100%; overflow: visible; }
.bkv-vln { stroke: var(--edge); stroke-width: 1.25; stroke-dasharray: 3 3; }
.bkv-vln.on { stroke: var(--dud); stroke-width: 1.4; }
.bkv-vhd { fill: none; stroke: var(--edge-hover); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.bkv-vhd.on { stroke: var(--dud-hover); stroke-width: 1.5; }
.bkv-rest { position: absolute; left: calc(50% + 12px); top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 600; color: var(--tan-ink); white-space: nowrap; }
.bkv-tl { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 16px; background: var(--paper); border: var(--lw) solid var(--edge); border-radius: 12px; box-shadow: var(--shadow-card); }
.bkv-tl .pit { flex: 1 1 auto; }
.bkv-time { flex: none; min-width: 64px; text-align: right; font-size: 12px; color: var(--muted); }
/* the ? after a point: a small ring that opens a modal. The hit area is 40px. */
/* the ? looks like a canvas card: its line, its shadows, and the ? in the globe's gray (.ball), half a px under the middle (padding-top), as a ? sits high */
.qm { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-left: 8px; padding: 1px 0 0; border: var(--lw) solid var(--edge); border-radius: 999px; background: var(--paper); color: var(--faint); box-shadow: var(--shadow-card); font: 750 12px/1 var(--sans); vertical-align: 2px; cursor: pointer; }
.qm::after { content: ''; position: absolute; inset: -10px; }
.nw { white-space: nowrap; }
.qm:hover { border-color: var(--edge-hover); color: var(--ink); }
.qm:focus-visible { border-radius: 999px; }
@media (max-width: 560px) {
  .bd li { grid-template-columns: minmax(0, 1fr) auto; }
  .bd span { grid-column: 1; grid-row: 2; }
  .bd em { grid-column: 2; grid-row: 1; }
  .bkv { padding: 16px; }
  .bkv-top { grid-template-columns: 1fr; gap: 16px; }
  .bkv-lbl { position: static; margin-bottom: 4px; }
  .bkv-mid { display: none; }
  .bkv-tl { margin-top: 12px; }
}

/* limitations: one spec card, with what is not in the box yet at its foot */
.lims { padding: clamp(136px, 16vw, 224px) 0 0; }
.lims > .wrap { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: 32px 64px; align-items: center; }
.lims.flip > .wrap { grid-template-columns: minmax(0, 1.38fr) minmax(0, .62fr); }
.lims.flip .ltext { order: 2; }
.ltext { display: flex; flex-direction: column; gap: 24px; }
.ltext p { margin: 0; font-size: 18px; color: var(--ink-2); max-width: 24em; }
#limits .stagebox { background: linear-gradient(135deg, #EDE8F5, #F5EADF); }
.limbox { display: block; padding: 0; overflow: hidden; }
.limcard { list-style: none; margin: 0; padding: 8px 24px; }
.limcard li { display: grid; grid-template-columns: 18px 96px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--fill); font-size: 16px; }
.limcard li:last-child { border-bottom: 0; }
.li-ic { display: flex; color: var(--muted); }
.li-ic svg { width: 16px; height: 16px; }
.limcard b { font-weight: 600; }
.limcard li > span:last-child { color: var(--ink-2); }
.notyet { display: flex; gap: 12px; align-items: flex-start; padding: 16px 24px 16px; background: var(--tan-bg); border-top: 1px solid var(--rule); }
.notyet > svg { flex: none; }
.notyet b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.nyl { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); }
.nyl li { display: inline-flex; align-items: center; gap: 8px; }
.nyl li::before { content: ""; width: 4px; height: 4px; border-radius: 999px; background: currentColor; opacity: .7; }
@media (max-width: 900px) { .lims > .wrap, .lims.flip > .wrap { grid-template-columns: 1fr; } .lims.flip .ltext { order: 0; } }
@media (max-width: 560px) {
  .btext, .ltext { padding: 0 12px; }
  .limcard { padding: 4px 16px; }
  .limcard li { grid-template-columns: 16px minmax(0, 1fr); gap: 2px 12px; }
  .limcard li > span:last-child { grid-column: 2; }
  .notyet { padding: 16px 16px 16px; }
}

/* founder: a placeholder until there is a photo */
.fem { font-size: 96px; line-height: 1; color: #000; } /* an opaque color: emoji take the alpha of the text color */
#founder .stagebox { align-items: center; padding: clamp(24px, 4vw, 48px); }
.founder { width: min(100%, 300px); aspect-ratio: 1; border-radius: 24px; background: color-mix(in srgb, var(--paper) 50%, transparent); border: var(--lw) dashed color-mix(in srgb, var(--tan-ink) 25%, transparent); display: flex; align-items: center; justify-content: center; color: color-mix(in srgb, var(--tan-ink) 40%, transparent); }

/* apply */
.access { padding: clamp(136px, 16vw, 224px) 0 clamp(120px, 15vw, 220px); }
/* The beach under the form, the end of the page (bun run art draws it). It fills the width:
   its middle (Dud, the umbrella, the bubble) is as large as fits, at the bottom, and past
   it the sea and the sand go on to the edges. Its sky is the page. */
.beach { display: block; width: 100%; height: min(52vw, 460px); }
.access > .wrap { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.atext { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.atext p { margin: 0; font-size: 18px; color: var(--ink-2); max-width: 30em; text-wrap: balance; }
/* The fields and the thanks share one grid cell, so the card keeps its size
   when it is sent and nothing on the page moves. */
.formcard { padding: 24px; width: 100%; max-width: 620px; display: grid; }
.formcard > .fields, .formcard > .thanks { grid-area: 1 / 1; min-width: 0; }
form.vis { padding: 24px; gap: 0; }
.fitem { display: flex; flex-direction: column; gap: 8px; }
.fitem label { font-weight: 600; font-size: 14px; }
.fitem label .hint { font-weight: 400; color: var(--muted); white-space: nowrap; }
.fitem input, .fitem textarea { font: inherit; font-size: 16px; border: 1px solid var(--edge); border-radius: 12px; padding: 12px 12px; background: var(--paper); color: var(--ink); min-width: 0; }
.fitem textarea { min-height: 96px; resize: vertical; }
.fitem input:focus, .fitem textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
/* A field that still needs something: a warm Dud outline, never red. */
.fitem [aria-invalid="true"], .fitem [aria-invalid="true"]:focus { border-color: var(--dud); outline: 2px solid var(--dud); outline-offset: 0; background: var(--tan-bg); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* The message sits next to the button, in room the row already has. */
.formfoot { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
@media (max-width: 420px) { .formfoot { min-height: 58px; } }
.msg { flex: 1 1 0; min-width: 0; margin: 0; font-size: 14px; line-height: 1.35; color: var(--tan-ink); }
/* While it sends, a spinner takes the label's place; the button keeps its size. */
#f-send { position: relative; flex: none; }
form.busy #f-send { cursor: default; }
form.busy #f-send > span { visibility: hidden; }
form.busy #f-send::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -8px 0 0 -8px; border-radius: 999px; border: 2px solid color-mix(in srgb, var(--paper) 30%, transparent); border-top-color: var(--paper); animation: spin var(--spin) linear infinite; }

/* Sent: the fields fold away, Dud pops up, the application drops into the
   box, the box takes the weight, and a check comes up. */
.thanks { visibility: hidden; align-self: center; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.thanks:focus { outline: none; }
.st1 { font-size: 20px; margin-top: 12px; }
/* Dud. Nothing on the page says so, but a click pokes him (see site.js),
   so he looks and acts like a picture: no cursor, no hover, no focus. */
.sdw { position: relative; }
.sdud { position: relative; width: 88px; height: 120px; transform-origin: 50% 100%; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.sdud > svg { display: block; overflow: visible; }
.sbub { visibility: hidden; position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); white-space: nowrap; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 8px 12px; font-size: 14px; color: var(--ink-2); box-shadow: var(--shadow-card); pointer-events: none; }
.sbub::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; margin-left: -4px; background: var(--paper); border: solid var(--rule); border-width: 0 1px 1px 0; transform: rotate(45deg); }
.sbub.on { visibility: visible; }
.sbox { transform-box: fill-box; transform-origin: 50% 100%; }
.slid { transform-box: fill-box; transform-origin: 50% 100%; }
.spaper { transform-box: fill-box; transform-origin: 50% 50%; }
/* the shades: site.js pushes them down and tilts them when you poke him */
.sshd { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .22s var(--ease); }
.sring { position: absolute; left: 44px; top: 83px; width: 120px; height: 120px; margin: -64px 0 0 -64px; border-radius: 999px; border: 2px solid var(--dud); opacity: 0; pointer-events: none; }
.sck { position: absolute; left: 66px; top: 38px; width: 26px; height: 26px; border-radius: 999px; background: var(--live); color: var(--paper); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px var(--paper); }
form.sent .fields { visibility: hidden; animation: fold .3s var(--ease) both; }
form.sent .thanks { visibility: visible; }
form.sent .sdud { animation: dudin .5s var(--ease) .14s both; }
form.sent .spaper { animation: drop .46s cubic-bezier(.5, 0, .85, .35) .5s both; }
form.sent .slid { animation: gulp .42s ease-in-out .62s both; }
form.sent .sbox { animation: squash .56s ease-out .95s both; }
form.sent .sring { animation: ring .7s ease-out .97s both; }
form.sent .sck { animation: ckin .4s var(--ease) 1.08s both; }
form.sent .st1 { animation: rise .55s var(--ease) 1.12s both; }
form.sent .st2 { animation: rise .55s var(--ease) 1.2s both; }
form.sent .sshd { animation: shnod .5s ease-in-out 1.9s; }

[hidden] { display: none !important; }

/* cards: a border a little firmer than the hairlines inside them. The panel and the menus
   have 1 px lines (--lw), so their gray is a step darker. The cards in the panel have the
   dividers' gray (--rule). */
.card, .ver, .sbox, .found, .tools, .dns, .fs, .vchip { border-color: var(--rule); }
.panel, .menu { border-color: var(--edge); }
/* but cards in the scenes are canvas cards */
#scDeploy .ver, #scSec .sbox { border: var(--lw) solid var(--edge); }

/* warm paper (index.html's head has it too, for before this file is in) */
body { background: var(--page); }
.nav { background: color-mix(in srgb, var(--page) 72%, transparent); }

/* The presentation (?show, js/show.js): a cartoon stage. Red curtains, and Dud
   peeks out from behind the left one (js/show.js moves him). A click opens
   them, the lights come on, and dudbox.com comes up on the sign. The next
   click flies Dud and the name up into the nav, and the stage goes. Only
   transform and opacity move, but for the sign's bulbs. All sizes are parts
   of --D, so the scene scales as one. Each curtain is folds (<i>, --j counts
   from the middle out) that slide over each other when it opens. */
.showx { display: none; }
.show .showx {
  /* show.js focuses the stage, so the :focus-visible rule would round its
     corners and the page's paper would show there */
  display: block; position: fixed; inset: 0; z-index: 100; overflow: hidden; cursor: pointer; outline: none; border-radius: 0;
  touch-action: none; overscroll-behavior: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  --D: clamp(140px, 30vmin, 340px);
  /* the lines, as on Dud */
  --k: #231d17; --lw: calc(var(--D) * .018);
  /* the curtains end at --hem. A fold is --sw wide, with a round end --lb high.
     Open, each fold shows --st of itself, and a curtain is --wo wide. */
  --hem: calc(50% + var(--D) * .24); --sw: calc(var(--D) * .45); --lb: calc(var(--D) * .1); --st: calc(var(--D) * .05);
  --wo: clamp(calc(var(--D) * .35), 9vw, calc(var(--D) * .6));
  /* the middle of the spot on Dud, from the top of a box that ends at the hem */
  --cy: calc(100% - var(--D) * .42);
  /* the curtains reach this far past the screen edge, so a sway never shows a gap */
  --b: calc(3vh + 8px);
}
.show .nav .brand { visibility: hidden; }
.showland .nav .brand { visibility: visible; }
/* The hero comes in the way it does on load (the rules above), once Dud
   has flown past it. The same animation names, so nothing starts over when
   the classes go. */
.show .nav .btn, .show .hero .htext > *, .show .hero .hl li, .show .hero .hdemo { animation: none; opacity: 0; }
.showgo .hero .htext > * { animation: rise .8s var(--ease) .65s both; }
.showgo .hero .hl li { animation: rise .7s var(--ease) both; }
.showgo .hero .hl li:nth-child(1) { animation-delay: .77s; } .showgo .hero .hl li:nth-child(2) { animation-delay: .85s; } .showgo .hero .hl li:nth-child(3) { animation-delay: .93s; }
.showgo .hero .hdemo { animation: fadein .9s var(--ease) .85s both; }
.showgo .nav .btn { animation: fadein .6s var(--ease) .95s both; }

.showx > *, .showsc, .showx i, .showbg::after, .showpool::before, .showpool::after, .showsign::before, .showsign::after { position: absolute; }
/* backstage: dark until the lights come on, then warm and light */
.showbg { inset: 0; background: #3A2027; will-change: opacity; }
.showbg::after { content: ''; inset: 0; opacity: 0; will-change: opacity; background:
  radial-gradient(calc(var(--D) * 1.15) calc(var(--D) * .95) at 50% calc(50% - var(--D) * .22), #F6E4C8 0 98.5%, rgba(246, 228, 200, 0) 100%),
  radial-gradient(farthest-corner at 50% calc(50% - var(--D) * .22), #E4C29C 30%, #C99A72); }
.showopen .showbg::after { animation: showon .5s linear .45s both; }
.showgo .showbg { opacity: 0; transition: opacity .6s ease .2s; }

/* the stage: boards, the edge, the front, the footlights, and the sign */
.showstage { z-index: 1; left: 0; right: 0; top: calc(50% + var(--D) * .06); bottom: 0; will-change: transform; background:
  linear-gradient(180deg, rgba(25, 0, 8, 0) calc(var(--D) * .55), rgba(25, 0, 8, .55)),
  linear-gradient(90deg, rgba(25, 0, 8, .35) 0 calc(var(--lw) * .7), transparent 0) center calc(var(--D) * .39) / calc(var(--D) * 1.1) 100% repeat-x,
  linear-gradient(180deg, var(--k) 0 var(--lw),
    #9A5D2D 0 calc(var(--D) * .07), #6B3C1C 0 calc(var(--D) * .076),
    #A66735 0 calc(var(--D) * .155), #6B3C1C 0 calc(var(--D) * .161),
    #B2723E 0 calc(var(--D) * .245), #6B3C1C 0 calc(var(--D) * .251),
    #BC7C46 0 calc(var(--D) * .34), var(--k) 0 calc(var(--D) * .34 + var(--lw)),
    #EFC184 0 calc(var(--D) * .372), #C98B3E 0 calc(var(--D) * .39), var(--k) 0 calc(var(--D) * .39 + var(--lw)),
    #7C171D 0); }
.showgo .showstage { transform: translateY(100%); transition: transform .7s cubic-bezier(.55, 0, .8, .3); }
.showpool { left: calc(50% - var(--D) * .75); top: calc(var(--D) * .03); width: calc(var(--D) * 1.5); height: calc(var(--D) * .26); }
.showpool::before, .showpool::after { content: ''; inset: 0; }
/* a pool of light, and Dud's shadow */
.showpool::before { opacity: 0; will-change: opacity; background: radial-gradient(closest-side, rgba(255, 234, 186, .42) 0 97%, rgba(255, 234, 186, 0)); }
.showpool::after { background: radial-gradient(closest-side, rgba(35, 12, 4, .5) 0 45%, rgba(35, 12, 4, 0) 47.5%); }
.showopen .showpool::before { animation: showon .5s linear .65s both; }
/* the room: heads in the dark */
.showroom { left: 0; right: 0; bottom: 0; height: calc(var(--D) * .4); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 124 40' preserveAspectRatio='none'%3E%3Cg fill='%232E1C22'%3E%3Cpath d='M12 40Q13 21.5 20 21.5Q27 21.5 28 40Z'/%3E%3Ccircle cx='20' cy='15' r='5'/%3E%3Cpath d='M16 12A5 5 0 0 1 24 12' fill='none' stroke='%236A3438' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M32.5 40Q33.5 20.4 41 20.4Q48.5 20.4 49.5 40Z'/%3E%3Ccircle cx='41' cy='13.5' r='5.4'/%3E%3Cpath d='M36.68 10.26A5.4 5.4 0 0 1 45.32 10.26' fill='none' stroke='%236A3438' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M54 40Q55 22.3 62 22.3Q69 22.3 70 40Z'/%3E%3Ccircle cx='62' cy='16' r='4.8'/%3E%3Cpath d='M58.16 13.120000000000001A4.8 4.8 0 0 1 65.84 13.120000000000001' fill='none' stroke='%236A3438' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M74.5 40Q75.5 20.7 83 20.7Q90.5 20.7 91.5 40Z'/%3E%3Ccircle cx='83' cy='14' r='5.2'/%3E%3Cpath d='M78.84 10.879999999999999A5.2 5.2 0 0 1 87.16 10.879999999999999' fill='none' stroke='%236A3438' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M96 40Q97 22 104 22Q111 22 112 40Z'/%3E%3Ccircle cx='104' cy='15.5' r='5'/%3E%3Cpath d='M100 12.5A5 5 0 0 1 108 12.5' fill='none' stroke='%236A3438' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M116 40Q117 20.8 124 20.8Q131 20.8 132 40Z'/%3E%3Ccircle cx='124' cy='14' r='5.3'/%3E%3Cpath d='M119.76 10.82A5.3 5.3 0 0 1 128.24 10.82' fill='none' stroke='%236A3438' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M-8 40Q-7 20.8 0 20.8Q7 20.8 8 40Z'/%3E%3Ccircle cx='0' cy='14' r='5.3'/%3E%3Cpath d='M-4.24 10.82A5.3 5.3 0 0 1 4.24 10.82' fill='none' stroke='%236A3438' stroke-width='1.3' stroke-linecap='round'/%3E%3C/g%3E%3Cg fill='%231C1216'%3E%3Cpath d='M0 40Q1 30.1 10 30.1Q19 30.1 20 40Z'/%3E%3Ccircle cx='10' cy='22' r='6.6'/%3E%3Cpath d='M4.72 18.04A6.6 6.6 0 0 1 15.280000000000001 18.04' fill='none' stroke='%235A2A30' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M20 40Q21 28.4 31 28.4Q41 28.4 42 40Z'/%3E%3Ccircle cx='31' cy='19.5' r='7.4'/%3E%3Ccircle cx='31' cy='11.3' r='3.1'/%3E%3Cpath d='M25.08 15.059999999999999A7.4 7.4 0 0 1 36.92 15.059999999999999' fill='none' stroke='%235A2A30' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M42.5 40Q43.5 30.7 52.5 30.7Q61.5 30.7 62.5 40Z'/%3E%3Ccircle cx='52.5' cy='23' r='6.2'/%3E%3Cpath d='M47.54 19.28A6.2 6.2 0 0 1 57.46 19.28' fill='none' stroke='%235A2A30' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M62.5 40Q63.5 29.5 73 29.5Q82.5 29.5 83.5 40Z'/%3E%3Ccircle cx='73' cy='21' r='7'/%3E%3Cpath d='M66.5 17.5Q73 10 79.5 17.5Z'/%3E%3Cpath d='M67.4 16.8A7 7 0 0 1 78.6 16.8' fill='none' stroke='%235A2A30' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M84 40Q85 30.4 94 30.4Q103 30.4 104 40Z'/%3E%3Ccircle cx='94' cy='22.5' r='6.4'/%3E%3Cpath d='M88.88 18.66A6.4 6.4 0 0 1 99.12 18.66' fill='none' stroke='%235A2A30' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M104 40Q105 29.2 114 29.2Q123 29.2 124 40Z'/%3E%3Ccircle cx='114' cy='20.5' r='7.2'/%3E%3Cellipse cx='114' cy='13.6' rx='5.6' ry='3.6'/%3E%3Cpath d='M108.24 16.18A7.2 7.2 0 0 1 119.76 16.18' fill='none' stroke='%235A2A30' stroke-width='1.3' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E") center bottom / calc(var(--D) * 1.24) 100% repeat-x; }
.showfeet { left: 0; right: 0; top: calc(var(--D) * .14); height: calc(var(--D) * .2); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 20' preserveAspectRatio='none'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.5' cy='.85' r='.6'%3E%3Cstop offset='0' stop-color='%23FFE7A3' stop-opacity='.8'/%3E%3Cstop offset='1' stop-color='%23FFE7A3' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cellipse cx='35' cy='16' rx='26' ry='15' fill='url(%23g)'/%3E%3Ccircle cx='35' cy='15.2' r='3.3' fill='%23FFF7DA' stroke='%23231d17' stroke-width='1.3'/%3E%3Cpath d='M27.5 20C27.5 13.6 42.5 13.6 42.5 20Z' fill='%23C98B3E' stroke='%23231d17' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M30 18.6C30.6 16.6 33 15.9 35 15.9' fill='none' stroke='%23EFC184' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E") center bottom / calc(var(--D) * .7) 100% repeat-x; }
/* the sign comes up with the lights */
.showsign { opacity: 0; will-change: transform, opacity; left: calc(50% - var(--D) * .8); width: calc(var(--D) * 1.6); top: calc(var(--D) * .48); height: calc(var(--D) * .42); box-sizing: border-box;
  background: #F7EAD0; border: var(--lw) solid var(--k); border-radius: calc(var(--D) * .06);
  box-shadow: 0 0 0 calc(var(--D) * .05) #E0A95F, 0 0 0 calc(var(--D) * .05 + var(--lw)) var(--k), 0 calc(var(--D) * .045) 0 calc(var(--D) * .05 + var(--lw)) rgba(25, 0, 8, .35); }
/* its bulbs: off, and on. Every other one is on, and they swap. The strip is as wide as the sign (16 bulbs) and both rows count from its left edge, so each lit bulb covers an off one and none is cut */
.showsign::before, .showsign::after { content: ''; inset: calc(var(--D) * -.05 - var(--lw) * 2); padding: 0 calc(var(--D) * .05 + var(--lw)); background-origin: content-box; background-clip: content-box; --dot: calc(var(--D) * .05 + var(--lw) * 2); }
.showsign::before { background:
  radial-gradient(circle closest-side, #8C5B2A 0 40%, transparent 48%) 0 top / calc(var(--D) * .1) var(--dot) repeat-x content-box,
  radial-gradient(circle closest-side, #8C5B2A 0 40%, transparent 48%) 0 bottom / calc(var(--D) * .1) var(--dot) repeat-x content-box; }
.showsign::after { opacity: 0; will-change: opacity; filter: drop-shadow(0 0 calc(var(--D) * .025) #FFC54D); background:
  radial-gradient(circle closest-side, #FFF8DC 0 42%, transparent 50%) calc(var(--D) * -.05) top / calc(var(--D) * .2) var(--dot) repeat-x content-box,
  radial-gradient(circle closest-side, #FFF8DC 0 42%, transparent 50%) calc(var(--D) * -.05) bottom / calc(var(--D) * .2) var(--dot) repeat-x content-box; }
.showopen .showsign { animation: showpop .5s var(--pop) .75s both; }
.showopen .showsign::after { animation: showon .45s linear .95s both, showchase .9s linear 1.4s infinite; }

/* two spotlights from above */
.showbeam { z-index: 2; inset: 0; opacity: 0; will-change: opacity; background: linear-gradient(180deg, rgba(255, 246, 222, .1) 10%, rgba(255, 246, 222, .5)); }
.showbeam.l { clip-path: polygon(7% 0, 15% 0, calc(50% + var(--D) * .32) calc(50% + var(--D) * .22), calc(50% - var(--D) * .72) calc(50% + var(--D) * .22)); }
.showbeam.r { clip-path: polygon(85% 0, 93% 0, calc(50% + var(--D) * .72) calc(50% + var(--D) * .22), calc(50% - var(--D) * .32) calc(50% + var(--D) * .22)); }
.showopen .showbeam.l { animation: showon .5s linear .45s both; }
.showopen .showbeam.r { animation: showon .5s linear .7s both; }
.showgo .showbeam.l, .showgo .showbeam.r, .showgo .showpool::before, .showgo .showsign::after { animation: showoff .3s ease both; }

.showdud { z-index: 3; left: calc(50% - var(--D) / 2); top: calc(50% - var(--D) * .68); width: var(--D); height: var(--D); }
.showdy, .showpose, .showd { display: block; width: 100%; height: 100%; }
.showd { overflow: visible; }
.showb { transform-box: fill-box; transform-origin: 50% 100%; }
/* a glint runs across his shades now and then, and right after the curtains open */
.showg { animation: showglint 5.5s ease-in-out 2.5s infinite; }
.showopen .showg { animation: showglint2 5.5s ease-in-out 1.2s infinite; }
.showopen .showb { animation: showsettle .8s var(--ease) 1.05s both; }
.showname { z-index: 3; left: 0; right: 0; top: calc(50% + var(--D) * .618); text-align: center; white-space: nowrap; font-size: calc(var(--D) * .22); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
.showw, .showdot { display: inline-block; opacity: 0; }
.showopen .showw { animation: rise .8s var(--ease) 1.1s both; }
.showopen .showdot { animation: rise .8s var(--ease) 1.22s both; }
/* on the way to the nav they fly over all of it */
.showgo .showdud, .showgo .showname { z-index: 10; }

/* the curtains */
.showc { z-index: 4; top: 0; height: var(--hem); width: calc(50% + var(--b)); transform-origin: 50% 0; will-change: transform; }
.showc.l { left: calc(var(--b) * -1); }
.showc.r { right: calc(var(--b) * -1); }
.showsc { inset: 0; will-change: transform; }
/* the bottom lags behind the top, swings past, and settles */
.showopen .showc.l { animation: showswayl 2.4s ease-in-out .25s both; }
.showopen .showc.r { animation: showswayr 2.4s ease-in-out .25s both; }
.showgo .showsc { transition: transform .75s cubic-bezier(.55, 0, .8, .3); }
.showgo .showc.l .showsc { transform: translateX(-100%); }
.showgo .showc.r .showsc { transform: translateX(100%); }
/* A fold: shade, red, and light toward the middle, with a round end. Its
   outline is a border, so the line follows the round end with no seams. A
   fold reaches --lw under the next one toward the middle, which is above it:
   no gap shows between them, and their two lines lie on each other as one.
   Open, the folds lie over each other at the side, each --st past the
   next; js/show.js sets --hw, half the screen. A fold that is already there
   stays. The middle one goes first and pulls the others. */
.showsc > i { top: 0; bottom: 0; width: calc(var(--sw) + var(--lw)); z-index: calc(20 - var(--j)); will-change: transform;
  border: 0 solid var(--k); border-width: 0 var(--lw) var(--lw);
  border-radius: 0 0 50% 50% / 0 0 var(--lb) var(--lb);
  background: linear-gradient(180deg, rgba(40, 0, 8, .45), rgba(40, 0, 8, 0) 16%), var(--cloth);
  box-shadow: inset 0 calc(var(--lb) * -.3) rgba(60, 0, 12, .22);
  transition: transform 1.5s cubic-bezier(.6, 0, .25, 1.04) calc(var(--j) * 50ms); }
.showc.l .showsc > i { right: calc(var(--j) * var(--sw) - var(--lw)); --cloth: linear-gradient(90deg, #9E2229 0 30%, #CB362E 0 58%, #DF5446 0 74%, #EE7560 0 80%, #CB362E 0); }
.showc.r .showsc > i { left: calc(var(--j) * var(--sw) - var(--lw)); --cloth: linear-gradient(270deg, #9E2229 0 30%, #CB362E 0 58%, #DF5446 0 74%, #EE7560 0 80%, #CB362E 0); }
.showopen .showc.l .showsc > i { transform: translateX(min(0px, calc(var(--wo) - var(--hw, 50vw) + var(--j) * (var(--sw) - var(--st))))); }
.showopen .showc.r .showsc > i { transform: translateX(max(0px, calc(var(--hw, 50vw) - var(--wo) - var(--j) * (var(--sw) - var(--st))))); }
/* The middle folds: round only on the outer side, so they meet flat. Each
   reaches half a line past the middle, and their lines there lie on each
   other as one: no gap between the curtains, and open, each still has its line. */
.showc.l .showsc > i:first-child { right: calc(var(--lw) * -.5); width: calc(var(--sw) + var(--lw) * .5); border-radius: 0 0 0 50% / 0 0 0 var(--lb); }
.showc.r .showsc > i:first-child { left: calc(var(--lw) * -.5); width: calc(var(--sw) + var(--lw) * .5); border-radius: 0 0 50% 0 / 0 0 var(--lb) 0; }
/* Dud is behind the left curtain, and in front of the right one */
.showc.r { z-index: 2; }

/* the valance: swags with a tan trim and tassels. The trim and the dark red band above it have round ends, so where two swags meet each is one round top, not two points.
   The knot is as high as the trim's round top, so its outline lies on the trim's outline there, not under it (two outlines read as one thick one) */
.showval { z-index: 5; left: 0; right: 0; top: 0; height: calc(var(--D) * .46); will-change: transform; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 46' preserveAspectRatio='none'%3E%3Cpath d='M0 0H50V28Q25 60 0 28Z' fill='%232A0610' fill-opacity='.32'/%3E%3Cpath d='M0 0H50V22Q25 54 0 22Z' fill='%23C7302B'/%3E%3Cpath d='M0 7Q25 33 50 7' fill='none' stroke='%239E2229' stroke-width='6' stroke-linecap='round'/%3E%3Cpath d='M7 2.5Q25 19 43 2.5' fill='none' stroke='%23E0594A' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M0 0H50V2.4H0Z' fill='%237A161C'/%3E%3Cpath d='M0 22Q25 54 50 22' fill='none' stroke='%23231d17' stroke-width='8.4' stroke-linecap='round'/%3E%3Cpath d='M0 22Q25 54 50 22' fill='none' stroke='%23EFC184' stroke-width='4.8' stroke-linecap='round'/%3E%3Cpath d='M3 24.4Q25 53 47 24.4' fill='none' stroke='%23C98B3E' stroke-width='1.2' stroke-dasharray='1.4 2.2'/%3E%3Cg stroke='%23231d17' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M-1.6 23.3L1.6 23.3L3.6 35.8Q0 37.8 -3.6 35.8Z' fill='%23E0A95F'/%3E%3Cpath d='M-1.2 28.8V36.1M1.2 28.8V36.1' stroke-width='1' stroke='%239A6528'/%3E%3Ccircle cx='0' cy='21.8' r='3.1' fill='%23EFC184'/%3E%3C/g%3E%3Cg stroke='%23231d17' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M48.4 23.3L51.6 23.3L53.6 35.8Q50 37.8 46.4 35.8Z' fill='%23E0A95F'/%3E%3Cpath d='M48.8 28.8V36.1M51.2 28.8V36.1' stroke-width='1' stroke='%239A6528'/%3E%3Ccircle cx='50' cy='21.8' r='3.1' fill='%23EFC184'/%3E%3C/g%3E%3C/svg%3E") center top / calc(var(--D) * .5) 100% repeat-x; }
.showgo .showval { transform: translateY(-100%); transition: transform .7s cubic-bezier(.55, 0, .8, .3); }

/* the lights before they come on: dim, but for a spot on Dud */
.showdim { z-index: 6; left: 0; right: 0; top: 0; height: var(--hem); background: radial-gradient(calc(var(--D) * .66) calc(var(--D) * .62) at 50% var(--cy), rgba(30, 6, 16, 0) 97%, rgba(30, 6, 16, .42) 100%); }
.showopen .showdim { opacity: 0; transition: opacity .3s ease .45s; }

/* Dud starts behind the left curtain, then peeks out: he leans on his bottom
   right corner. js/show.js moves him in and out, a little or a lot. */
.showpose { transform-origin: 92.5% 90%; transform: translateX(-64%); }
.showopen .showpose { transform: none; }
/* If he ever dips below the left curtain while he moves, this hides it, until
   the curtains open */
html:not(.showopen) .showdy { clip-path: polygon(-100% -100%, 200% -100%, 200% 200%, 50% 200%, 50% 92%, -100% 92%); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { from { opacity: .25; } to { opacity: .7; } }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes bub { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes tap { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(1.4); } }
/* Replicas, not at launch: a rolling deploy.
@keyframes roll { 0% { border-color: var(--busy); box-shadow: 0 0 0 3px var(--busy-bg); } 100% { } } */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes chatin { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes hintin { from { opacity: 0; transform: translate(-50%, 4px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes hint { from { transform: none; opacity: 1; } to { transform: scale(var(--hx, 1.18), var(--hy, 1.6)); opacity: 0; } }
@keyframes think { 0%, 100% { opacity: .3; transform: none; } 50% { opacity: 1; transform: translateY(-2px); } }
@keyframes fold { from { visibility: visible; opacity: 1; transform: none; } to { visibility: hidden; opacity: 0; transform: scale(.97); } }
@keyframes dudin { 0% { opacity: 0; transform: translateY(14px) scale(.7); } 60% { opacity: 1; transform: translateY(-2px) scale(1.03); } 100% { opacity: 1; transform: none; } }
@keyframes drop { 0% { opacity: 0; transform: translateY(-58px) rotate(-10deg); } 30% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes gulp { 0%, 100% { transform: none; } 40% { transform: translateY(-5px) rotate(-3deg); } }
@keyframes squash { 0% { transform: none; } 28% { transform: scale(1.08, .88); } 62% { transform: scale(.98, 1.03); } 100% { transform: none; } }
@keyframes ring { 0% { opacity: 0; transform: scale(.5); } 15% { opacity: .8; } 100% { opacity: 0; transform: scale(1.3); } }
@keyframes ckin { 0% { opacity: 0; transform: scale(.4); } 60% { opacity: 1; transform: scale(1.15); } 100% { opacity: 1; transform: none; } }
@keyframes shnod { 0%, 100% { transform: none; } 40% { transform: translateY(4px); } }
@keyframes showglint { 0%, 70% { transform: none; } 84%, 100% { transform: translateX(60px); } }
@keyframes showglint2 { 0%, 70% { transform: none; } 84%, 100% { transform: translateX(60px); } }
@keyframes showsettle { 0% { transform: none; } 35% { transform: scale(1.04, .95); } 70% { transform: scale(.99, 1.02); } 100% { transform: none; } }
@keyframes showswayl { 0% { transform: none; } 30% { transform: skewX(1.4deg); } 68% { transform: skewX(-.7deg); } 86% { transform: skewX(.22deg); } 100% { transform: none; } }
@keyframes showswayr { 0% { transform: none; } 30% { transform: skewX(-1.4deg); } 68% { transform: skewX(.7deg); } 86% { transform: skewX(-.22deg); } 100% { transform: none; } }
/* a light comes on: it flickers once, then stays */
@keyframes showon { 0% { opacity: 0; } 10% { opacity: 1; } 16% { opacity: .3; } 24%, 100% { opacity: 1; } }
@keyframes showpop { 0% { opacity: 0; transform: scale(.4); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes showoff { from { opacity: 1; } to { opacity: 0; } }
@keyframes showchase { 0%, 49.9% { background-position: calc(var(--D) * -.05) top, calc(var(--D) * -.05) bottom; } 50%, 100% { background-position: calc(var(--D) * .05) top, calc(var(--D) * .05) bottom; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .js .feat .btext > *, .js .feat .stagebox, .js .lims .ltext > *, .js .lims .stagebox, .js .limcard li, .js .notyet, .js .feat .ticks li { opacity: 1; transform: none; }
  .js #compare .cb { transform: none; } .js #compare .cpv { opacity: 1; }
  .bkv-bead { animation: none !important; opacity: 1; }
  .bkv-b1 { transform: translateX(30px); }
  .bkv-b2 { transform: translateX(56px); }
  .bkv-b3 { transform: translateX(82px); }
  .cursor { display: none; }
  form.sent * { animation-delay: 0s !important; }
}
