:root{
  --bg:#0b1120;--ground:#0b1120;
  --surface:#111a2e;--inset:#16213a;--deep:#070c17;--lit:#121c33;
  --line:#22304a;--line-strong:#2f3f5c;--control:#2f3f5c;
  --ink:#e6ecf5;--body:#c3cddc;--muted:#8e9fb8;
  --accent:#818cf8;--accent-strong:#a5b4fc;--accent-deep:#4f46e5;--accent-soft:rgba(129,140,248,.14);
  --high:#f87171;--high-soft:rgba(248,113,113,.14);
  --medium:#fbbf24;--medium-soft:rgba(251,191,36,.14);
  --ok:#4ade80;--ok-soft:rgba(74,222,128,.12);
  --info:#8e9fb8;--info-soft:rgba(142,159,184,.14);
  --danger:#f87171;
  --radius:12px;--radius-control:8px;--radius-pill:999px;
  --font:"IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/plex-sans-400.b5ad7bd3.woff2) format("woff2")}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/plex-sans-500.b5610af0.woff2) format("woff2")}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/plex-sans-600.fff0ab3a.woff2) format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/plex-mono-400.e8993d94.woff2) format("woff2")}

  *{box-sizing:border-box}
  body{margin:0;background:var(--bg);color:var(--body);font:400 15px/1.55 var(--font);-webkit-font-smoothing:antialiased}
  a{color:var(--accent-strong)}
  h1,h2,h3{color:var(--ink);letter-spacing:-.015em;text-wrap:balance}
  .wrap{max-width:1120px;margin:0 auto;padding:32px 40px 56px}
  /* Every screen ends with a way to reach a person, and the legal set. Prefixed
     page-, for the same reason the nav classes are prefixed nav-. */
  .page-foot{max-width:1120px;margin:0 auto;padding:0 40px 40px;font-size:13px;color:var(--muted)}
  .page-foot p{margin:0;padding-top:16px;border-top:1px solid var(--line)}
  .page-foot a{color:var(--muted)}

  .nav{position:sticky;top:0;z-index:20;background:rgba(11,17,32,.92);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
  .nav-inner{max-width:1120px;margin:0 auto;padding:0 40px;display:flex;align-items:center;gap:28px;min-height:64px}
  .nav-mark{display:inline-flex;align-items:center;color:var(--ink);text-decoration:none}
  .nav-links{display:flex;gap:22px}
  .nav-links a,.nav-sheet a{color:var(--body);text-decoration:none;font-size:15px;font-weight:500;min-height:44px;display:inline-flex;align-items:center}
  .nav-links a:hover,.nav-sheet a:hover{color:var(--ink)}
  .nav a.nav-here{color:var(--ink);font-weight:600;box-shadow:inset 0 -2px 0 var(--accent)}
  .nav-spacer{margin-left:auto}
  .nav-who{font:400 12.5px/1.35 var(--mono);color:var(--muted);text-align:right;max-width:28ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .nav-who-mail{display:block;font-size:11.5px}
  .nav-signout{margin:0}
  .nav-btn{min-height:40px;padding:0 14px;border:1px solid var(--line-strong);border-radius:var(--radius-control);background:transparent;color:var(--ink);font:500 14px/1 var(--font);cursor:pointer;display:inline-flex;align-items:center}
  .nav-btn:hover{background:var(--inset)}
  .nav-menu{display:none;position:relative}
  .nav-menu>summary{list-style:none;cursor:pointer;width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line-strong);border-radius:var(--radius-control);color:var(--ink)}
  .nav-menu>summary::-webkit-details-marker{display:none}
  .nav-menu[open]>summary{background:var(--inset);border-color:var(--accent)}
  .nav-i-close{display:none}
  .nav-menu[open] .nav-i-open{display:none}
  .nav-menu[open] .nav-i-close{display:inline}
  .nav-sheet{position:absolute;right:0;top:calc(100% + 10px);width:calc(100vw - 40px);max-width:390px;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--radius);box-shadow:0 24px 48px rgba(0,0,0,.45);overflow:hidden;z-index:30}
  .nav-sheet>a{min-height:56px;padding:0 20px;border-bottom:1px solid var(--line);font-size:17px}
  .nav-sheet-foot{display:flex;flex-direction:column;gap:10px;padding:16px 20px 20px;background:var(--deep)}
  .nav-sheet-foot .nav-who{text-align:left;max-width:none}
  .nav-sheet-foot .nav-btn{width:100%;min-height:44px;justify-content:center}
  @media (max-width: 640px) {
    .nav{position:static;backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--bg)}
    .nav-inner{padding:0 20px;gap:14px;min-height:60px}
    .nav-links,.nav-inner>.nav-who,.nav-inner>.nav-signout{display:none}
    .nav-menu{display:inline-block}
    .nav-menu[open]>.nav-sheet{display:flex}
    .nav-btn{min-height:44px}
  }

  /* The settings tabs. var() IS SAFE HERE ONLY BECAUSE DARK_HEAD IS PREPENDED
     ABOVE: these rules once used --line and --muted while the sheet defined no
     :root at all, and an undefined custom property is invalid at computed-value
     time -- the tab strip had NO bottom border for as long as it existed and
     nothing errored. tests/mobile.test.mjs asserts every var() used in a served
     sheet is defined in that sheet. */
  .subnav{display:flex;flex-wrap:wrap;gap:4px;margin:0 0 24px;border-bottom:1px solid var(--line)}
  .subnav a{color:var(--muted);text-decoration:none;font-size:14px;font-weight:500;padding:0 12px;min-height:42px;display:inline-flex;align-items:center;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}
  .subnav a:hover{color:var(--ink)}
  .subnav a.subnav-here{color:var(--ink);border-bottom-color:var(--accent)}
  .quiet{color:var(--muted);margin-left:14px;font-size:13px}
  .quiet:hover{color:var(--high)}

  /* The page head: a title, one line under it, and the screen's actions on
     the right. */
  h1{font-size:30px;line-height:1.15;margin:0 0 6px}
  .sub{color:var(--muted);font-size:15px;margin:0 0 28px;max-width:72ch}
  .sub a{color:var(--muted)}
  .sub a:hover{color:var(--ink)}
  .page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 28px}
  .page-head .sub{margin:0}
  .page-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
  .page-actions form{margin:0}
  .muted{color:var(--muted)}
  .kicker{margin:0 0 14px;font:500 12px/1.4 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--accent)}
  .lede{margin:0 0 16px;font-size:17px;line-height:1.55;color:var(--body);max-width:62ch}

  .card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);margin:0 0 20px;overflow:visible}
  .card h2{font-size:15px;font-weight:600;color:var(--ink);margin:0;padding:15px 20px;border-bottom:1px solid var(--line);background:var(--inset);border-radius:var(--radius) var(--radius) 0 0}
  .card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;border-bottom:1px solid var(--line);background:var(--inset);border-radius:var(--radius) var(--radius) 0 0}
  .card-head h2{padding:0;border:0;background:none;border-radius:0}
  .card-head .meta{margin:0}
  .card.lit{border-color:var(--accent);background:var(--lit)}
  .card.warn{border-color:rgba(251,191,36,.45)}
  .grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start;margin:0 0 20px}
  .grid-2>.card{margin:0}
  .grid-2.lead{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}

  /* The numbers a screen leads with. One bordered strip, tiles divided by the
     ground showing through a 1px gap, which survives wrapping where a
     border-right on each tile would not. */
  .stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin:0 0 24px}
  .stat{display:flex;flex-direction:column;gap:6px;padding:18px 20px;min-width:0;background:var(--surface)}
  .stat-n{font:600 30px/1.05 var(--font);letter-spacing:-.02em;color:var(--ink);font-variant-numeric:tabular-nums}
  .stat-l{font:500 11px/1.4 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
  .stat-s{font-size:12.5px;color:var(--muted)}
  .stat .bar{margin-top:2px}
  .spark{display:block;color:var(--accent);margin:2px 0 0}

  table{width:100%;border-collapse:collapse;font-size:14px}
  th{text-align:left;font:500 11px/1.4 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding:10px 20px;border-bottom:1px solid var(--line)}
  td{padding:12px 20px;border-bottom:1px solid var(--line);vertical-align:top;color:var(--body)}
  tr:last-child td{border-bottom:0}
  tbody tr:hover td{background:var(--inset)}
  tfoot td{border-top:1px solid var(--line-strong);font-weight:500;color:var(--ink)}
  tfoot tr:hover td{background:none}
  .title{display:block;font-weight:500;color:var(--ink)}
  a.title{text-decoration:none}
  a.title:hover{text-decoration:underline}
  .meta{display:block;color:var(--muted);font-size:12.5px;margin-top:2px}

  /* Status, as a small mono pill with a dot. The class names are the ones
     every screen already emits; only the treatment changed. */
  .pill,.sev{display:inline-flex;align-items:center;gap:7px;font:500 11px/1 var(--mono);letter-spacing:.08em;text-transform:uppercase;padding:6px 9px;border-radius:var(--radius-pill);white-space:nowrap;vertical-align:middle}
  .pill::before,.sev::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;flex:0 0 auto}
  .ok{color:var(--ok);background:var(--ok-soft)}
  .wait{color:var(--muted);background:var(--info-soft)}
  .dead{color:var(--high);background:var(--high-soft)}
  .held{color:var(--medium);background:var(--medium-soft)}
  .redacted{color:var(--accent-strong);background:var(--accent-soft)}
  .sev.high{color:var(--high);background:var(--high-soft)}
  .sev.medium{color:var(--medium);background:var(--medium-soft)}
  .sev.info{color:var(--info);background:var(--info-soft)}
  .chip{display:inline-flex;align-items:center;height:32px;padding:0 12px;border:1px solid var(--line-strong);border-radius:var(--radius-control);font:500 13px/1 var(--font);color:var(--ink)}
  .chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center}

  /* A comparison, not a measurement: the seconds are printed beside it. */
  .bar{height:8px;background:var(--inset);border-radius:4px;overflow:hidden;min-width:120px}
  .bar span{display:block;height:100%;background:var(--accent);border-radius:4px}
  /* Attention by page: one column per page, its height a share of the busiest
     page, the page number under it. Withheld pages are striped so a gap reads
     as "not shown" rather than "not read". */
  .chart{display:flex;align-items:flex-end;gap:6px;height:140px;padding:0 4px 26px;margin:20px 20px 0;border-bottom:1px solid var(--line);position:relative}
  .chart .col{flex:1 1 0;max-width:44px;min-width:6px;background:var(--accent);border-radius:3px 3px 0 0;position:relative;transition:background .15s}
  .chart .col:hover{background:var(--accent-strong)}
  .chart .col.withheld{background:repeating-linear-gradient(135deg,var(--line-strong) 0 4px,transparent 4px 8px);min-height:14px}
  .chart .col-label{position:absolute;top:100%;left:0;right:0;margin-top:8px;text-align:center;font:500 11px/1 var(--mono);color:var(--muted)}
  .chart-table{padding:8px 20px 16px}
  .chart-table summary{cursor:pointer;font-size:13px;color:var(--muted);min-height:32px;display:inline-flex;align-items:center}
  .chart-table[open] summary{margin-bottom:8px}
  .chart-table table{font-size:13.5px}
  .chart-table td,.chart-table th{padding:8px 12px}

  /* An EMPTY STATE: the whole card is this message, so it gets room. */
  .empty{padding:32px 20px;color:var(--muted);font-size:14.5px;line-height:1.6;max-width:60ch}
  .empty strong{color:var(--ink)}
  /* BODY COPY inside a card that has other content. A different thing, and it
     was being written as "empty tight" everywhere -- an empty-state style with
     its top padding canceled, which left 28px of nothing under every card
     heading and made the send flow read as half-finished. */
  .prose{padding:14px 20px 0;margin:0 0 6px;color:var(--body);font-size:14.5px;line-height:1.6}
  .prose:last-child{padding-bottom:18px}
  .prose + .prose{padding-top:8px}
  .prose strong{color:var(--ink)}
  /* A note directly inside a card sits on the card's padding, like prose. */
  .card>.note{padding:0 20px 16px;margin-top:0!important}
  .card>.controls+.note{padding-top:0}
  .note{margin:10px 0 0!important;font-size:13px;color:var(--muted);line-height:1.5}
  .hint{margin:0;padding:0 20px 16px;font-size:13px;color:var(--muted);line-height:1.5}
  /* A wait that is visibly a wait: the processing screen polls itself by meta
     refresh, and a still page for the seconds a conversion takes reads as a
     screen with nothing happening. Reduced motion gets a steady bar. */
  .progress{width:100%;height:4px;border-radius:2px;background:var(--inset);overflow:hidden;margin:0 0 20px}
  .progress::after{content:"";display:block;width:40%;height:100%;border-radius:2px;background:var(--accent);animation:sf-slide 1.4s ease-in-out infinite}
  @keyframes sf-slide{0%{transform:translateX(-110%)}100%{transform:translateX(260%)}}
  @media (prefers-reduced-motion: reduce){.progress::after{animation:none;width:100%;opacity:.6}}
  .flash{display:block;margin:0 0 20px;padding:14px 18px;border:1px solid var(--line-strong);border-left:3px solid var(--accent);border-radius:var(--radius);background:var(--surface);color:var(--body);font-size:14.5px;line-height:1.55}
  .flash p{margin:0}
  .flash strong{color:var(--ink)}
  .flash-ok{border-left-color:var(--ok)}
  .flash-err{border-left-color:var(--high)}
  .flash-info{border-left-color:var(--accent)}

  .controls{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;padding:16px 20px}
  .controls label{display:block;font-size:12.5px;font-weight:500;color:var(--muted);margin:0 0 6px}
  .controls input,.controls select,td select{min-height:40px;padding:0 12px;border:1px solid var(--line-strong);border-radius:var(--radius-control);background:var(--deep);color:var(--ink);font:400 14px/1.4 var(--font)}
  input::placeholder,textarea::placeholder{color:#5b6b85}
  input:focus,select:focus,textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(129,140,248,.25)}
  input[type=date]{color-scheme:dark}
  .controls input[type=file]{padding:0 10px 0 0;overflow:hidden}
  input[type=file]::file-selector-button{min-height:38px;margin-right:12px;padding:0 12px;border:0;border-right:1px solid var(--line-strong);background:var(--inset);color:var(--ink);font:500 13px/1 var(--font);cursor:pointer}
  td select{margin-right:6px;min-height:36px;padding:0 8px;font-size:13px}
  button,.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 16px;border:1px solid var(--line-strong);border-radius:var(--radius-control);background:transparent;color:var(--ink);font:500 14px/1 var(--font);text-decoration:none;cursor:pointer;white-space:nowrap}
  button:hover,.btn:hover{background:var(--inset)}
  /* The one primary action on a screen: indigo, per the brand spec. Everything
     else stays the outlined secondary, and danger is outlined red -- a filled
     red block invites the click it should slow down. */
  button.primary,.btn.primary{background:var(--accent-deep);border-color:var(--accent-deep);color:#fff}
  button.primary:hover,.btn.primary:hover{background:#4338ca;border-color:#4338ca}
  button.danger,.btn.danger{border-color:rgba(248,113,113,.5);color:var(--high)}
  button.danger:hover,.btn.danger:hover{background:var(--high-soft)}
  button.hero,.btn.hero{min-height:48px;padding:10px 22px;font-size:16px}
  button:disabled{opacity:.5;cursor:not-allowed}
  button:focus-visible,.btn:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
  form.inline{display:inline}

  /* The row menu is a <details>, not a script. Same reason the controls are
     plain forms: the dashboard has to work on the day JavaScript does not. */
  details.menu{position:relative;display:inline-block}
  details.menu>summary{list-style:none;cursor:pointer;min-width:36px;min-height:36px;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:var(--radius-control);color:var(--muted);font-size:18px;line-height:1;user-select:none}
  details.menu>summary::-webkit-details-marker{display:none}
  details.menu>summary:hover,details.menu[open]>summary{background:var(--inset);color:var(--ink);border-color:var(--line-strong)}
  .sheet{position:absolute;right:0;top:calc(100% + 6px);z-index:20;min-width:200px;background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--radius);box-shadow:0 12px 32px rgba(0,0,0,.45);padding:6px}
  .sheet a,.sheet button{display:flex;align-items:center;width:100%;text-align:left;min-height:36px;padding:8px 10px;border:0;background:none;border-radius:var(--radius-control);font:400 13.5px/1.3 var(--font);color:var(--ink);text-decoration:none;white-space:normal}
  .sheet a:hover,.sheet button:hover{background:var(--inset)}
  .sheet button.danger{color:var(--high)}
  .sheet form{margin:0}

  /* ---------------------------------------------------------------------
     Utilities, and the reason they exist rather than a style="" attribute.

     The sender app's CSP is default-src 'self' with no unsafe-inline, so a
     style= attribute is REFUSED by the browser -- silently, with no visible
     error beyond a console line nobody reads on a page that merely looks
     wrong. Everything under ui/ used them until 2026-08-30.

     Two things are impossible to express as a class: a bar's width and a
     column's height, both computed per page. Each is rounded to the nearest
     5% and picks a class from the scales below (barClass, colClass).
     ------------------------------------------------------------------- */
  .right{text-align:right}
  .grow{flex:1;min-width:220px}
  .tight{padding-top:0}
  .stack{display:block}
  .self-center{align-self:center}
  .w-half{width:55%}
  p.err,.err{color:var(--high)}
  p.good,.good{color:var(--ok)}
  .linkbox{width:100%;font:400 12.5px/1.5 var(--mono);min-height:38px;padding:8px 12px;border:1px solid var(--line-strong);border-radius:var(--radius-control);background:var(--deep);color:var(--ink)}
  .linkbox.sm{font-size:11.5px;min-height:34px;padding:6px 10px}
  .paste{width:100%;padding:10px 12px;border:1px solid var(--line-strong);border-radius:var(--radius-control);background:var(--deep);color:var(--ink);font:400 13px/1.5 var(--mono);min-height:120px}
  .bulleted{margin:0;padding-left:18px;line-height:1.7}
  .pad-b{padding-bottom:8px}
  .wide{width:100%}
  .textarea{width:100%;padding:10px 12px;border:1px solid var(--line-strong);border-radius:var(--radius-control);background:var(--deep);color:var(--ink);font:400 14px/1.5 var(--font);min-height:88px}
  .checkline{display:flex;gap:10px;align-items:flex-start;font-size:14px;color:var(--ink)}
  .checkline input{margin-top:3px;accent-color:var(--accent-deep);width:16px;height:16px;flex:0 0 auto}
  .bar span.p0{width:0%}
  .bar span.p5{width:5%}
  .bar span.p10{width:10%}
  .bar span.p15{width:15%}
  .bar span.p20{width:20%}
  .bar span.p25{width:25%}
  .bar span.p30{width:30%}
  .bar span.p35{width:35%}
  .bar span.p40{width:40%}
  .bar span.p45{width:45%}
  .bar span.p50{width:50%}
  .bar span.p55{width:55%}
  .bar span.p60{width:60%}
  .bar span.p65{width:65%}
  .bar span.p70{width:70%}
  .bar span.p75{width:75%}
  .bar span.p80{width:80%}
  .bar span.p85{width:85%}
  .bar span.p90{width:90%}
  .bar span.p95{width:95%}
  .bar span.p100{width:100%}
  .chart .col.h0{height:0}
  .chart .col.h5{height:5%}
  .chart .col.h10{height:10%}
  .chart .col.h15{height:15%}
  .chart .col.h20{height:20%}
  .chart .col.h25{height:25%}
  .chart .col.h30{height:30%}
  .chart .col.h35{height:35%}
  .chart .col.h40{height:40%}
  .chart .col.h45{height:45%}
  .chart .col.h50{height:50%}
  .chart .col.h55{height:55%}
  .chart .col.h60{height:60%}
  .chart .col.h65{height:65%}
  .chart .col.h70{height:70%}
  .chart .col.h75{height:75%}
  .chart .col.h80{height:80%}
  .chart .col.h85{height:85%}
  .chart .col.h90{height:90%}
  .chart .col.h95{height:95%}
  .chart .col.h100{height:100%}

  /* The API keys screen. Folded in from api-keys.ts so that ONE fingerprint
     covers everything /app.css serves -- see APP_CSS_PATH. */
  code{font:400 13px/1.5 var(--mono);color:var(--ink);background:var(--inset);padding:1px 6px;border-radius:5px;overflow-wrap:anywhere}
  .code{background:var(--deep);border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;font:400 13.5px/1.7 var(--mono);color:var(--body);overflow-x:auto}
  .code p{margin:0}
  .code .m{color:var(--accent-strong)}
  .code .c{color:var(--muted)}
  .code .s{color:var(--ok)}
  .fresh{border-color:rgba(74,222,128,.4)}
  .fresh h2{background:var(--ok-soft);border-bottom-color:rgba(74,222,128,.3);color:var(--ok)}
  .freshbody{padding:16px 20px}
  .freshbody p{margin:0 0 10px;font-size:14px}
  .keyval{width:100%;min-height:40px;padding:8px 12px;border:1px solid var(--line-strong);border-radius:var(--radius-control);font:400 13px/1.5 var(--mono);background:var(--deep);color:var(--ink)}

  /* Phones. The demo audience and the first-view moment both live here, so
     this is not an afterthought. The brand spec's two rules for a phone:
     TABLES BECOME STACKED CARDS below 640px -- never a horizontally scrolling
     table -- and CONTROLS GO TO A 44px MINIMUM.

     Stacked cards, mechanically: every cell becomes a block, the header row is
     hidden visually but kept for screen readers, and a cell that carries a
     data-label attribute prints it above its value. Two tables -- the home rows
     and a share's recipients -- are laid out as designed cards instead, with
     grid areas keyed on c-* classes, because "Recipients: dana@ +2" is not the
     row the canvas drew. The row menu survives the change: it is positioned to
     details.menu, not to the row.

     The first version of this block narrowed the cell gutter to 8px and hid
     columns, measured against a 412px table inside a 364px card. The stacked
     layout removes the reason; the gutters go back to being comfortable. */
  @media (max-width: 640px) {
    .wrap{padding:20px 20px 40px}
    .page-foot{padding:0 20px 32px}
    h1{font-size:26px}
    .page-head{align-items:stretch}
    .page-actions{width:100%}
    .page-actions .btn,.page-actions button{flex:1 1 auto}
    .grid-2,.grid-2.lead{grid-template-columns:minmax(0,1fr)}
    .stats{grid-template-columns:minmax(0,1fr)}
    .stat-n{font-size:26px}
    .chart{height:110px;margin:16px 16px 0}
    .card h2{padding:14px 16px}
    .card-head{padding:12px 16px}
    table,tbody,tfoot,tr,td{display:block}
    thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
    /* The header's cells still laid out at their table widths inside the
       clipped 1px box and pushed the document past the viewport on
       production's home (2026-09-03, 414px in 390). Blocks, and narrow. */
    thead tr,thead th{display:block;width:1px;overflow:hidden;padding:0}
    tr{padding:12px 16px;border-bottom:1px solid var(--line)}
    tr:last-child{border-bottom:0}
    td{padding:2px 0;border:0}
    tbody tr:hover td{background:none}
    td[data-label]::before{content:attr(data-label);display:block;font:500 11px/1.4 var(--mono);letter-spacing:.08em;
      text-transform:uppercase;color:var(--muted);margin:8px 0 2px}
    td:empty{display:none}
    tfoot td{border-top:0}
    .w-half{width:auto}
    .right{text-align:left}
    .bar{min-width:0}
    /* The designed cards. */
    tr.share,tr.recipient{display:grid;grid-template-columns:1fr auto;column-gap:12px;align-items:start}
    tr.share{grid-template-areas:"title menu" "who who" "time time" "state state" "when when"}
    tr.recipient{grid-template-areas:"title menu" "state state" "meta meta"}
    tr.waiting{display:grid;grid-template-columns:1fr auto;column-gap:12px;align-items:start;grid-template-areas:"title menu" "state state"}
    td.c-title{grid-area:title}
    td.c-who{grid-area:who}
    td.c-time{grid-area:time}
    td.c-state{grid-area:state}
    td.c-when{grid-area:when}
    td.c-menu{grid-area:menu;text-align:right}
    td.c-meta{grid-area:auto;grid-column:1 / -1}
    tr.recipient td.c-meta{display:inline-block;margin-right:16px;grid-column:auto;grid-area:auto}
    /* The 44px floor, on everything a thumb lands on. */
    button,.btn,.controls input,.controls select,td select,.sheet a,.sheet button,.subnav a,.linkbox,.linkbox.sm,.chart-table summary{min-height:44px}
    td select{padding:0 10px;font-size:14px}
    .sheet a,.sheet button{display:flex;align-items:center}
    details.menu>summary{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center}
    .sheet{top:44px}
    .controls{padding:14px 16px}
    .controls input,.controls select,.controls form,.controls .grow{width:100%;max-width:100%}
    .controls form button,.controls>button{width:100%}
    .flash{padding:14px 16px}
    .chart-table{padding:8px 16px 14px}
  }
