@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("/static/fonts/atkinson-hyperlegible-next-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/atkinson-hyperlegible-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("/static/fonts/atkinson-hyperlegible-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  --paper: #F4F6F9; --surface: #FFFFFF; --ink: #172131; --muted: #5B6577; --line: #D3D9E2;
  --tint: #2B4C7E; --tint-soft: #E1E8F3; --sealed: #1E6A49; --sealed-soft: #DDEFE5;
  --caution: #7A4E00; --caution-soft: #FBEFCF; --caution-line: #E8C978;
  --danger: #A3301C; --danger-soft: #F8E1DC; --code-bg: #18202D; --code-text: #E6EBF2;
  --sans: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); }
:focus-visible { outline: 3px solid var(--tint); outline-offset: 2px; }
p { margin: 0; }
h1 { margin: 0; font-size: 36px; line-height: 44px; letter-spacing: -0.6px; }
h3 { margin: 0 0 10px; font-size: 19px; line-height: 26px; font-weight: 600; }
h4 { margin: 14px 0 6px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--muted); }
.small { font-size: 14px; line-height: 20px; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.topbar { padding: 18px 32px; }
.host { font: 13px/20px var(--mono); color: var(--muted); }

.column { max-width: 672px; margin: 0 auto; padding: 48px 16px 96px; display: grid; gap: 28px; }
.request { display: grid; gap: 8px; }

.envelope { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tint { height: 20px; background: var(--tint-soft) url("/static/tint.svg") repeat; background-size: 6px 9px; }
.contents { padding: 28px; display: grid; gap: 30px; }
.contents section > p { margin-bottom: 10px; }

pre { margin: 0; padding: 14px 16px; border-radius: 8px; background: var(--code-bg); color: var(--code-text);
      font: 14px/22px var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.install { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 6px 16px; align-items: center; }
.install dt { font-size: 14px; color: var(--muted); }
.install dd { margin: 0; }
.fine-print { border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 6px; }

.closed { max-width: 592px; margin: 0 auto; padding: 120px 16px 96px; display: grid; gap: 14px; }

@media (max-width: 480px) {
  h1 { font-size: 26px; line-height: 32px; }
  .topbar { padding: 18px 20px; }
  .column { padding-top: 28px; }
  .contents { padding: 20px 18px; }
  .install { grid-template-columns: 1fr; }
  .tabs [role=tab] { padding: 10px 12px; }
}

/* Admin */
h2 { margin: 0; font-size: 26px; line-height: 32px; }
.adminbar { display: flex; align-items: center; gap: 32px; padding: 14px 32px; background: var(--surface); border-bottom: 1px solid var(--line); }
.adminnav { display: flex; gap: 24px; flex: 1; }
.adminnav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.adminnav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.adminbar form { margin: 0; }
.admin { max-width: 792px; margin: 0 auto; padding: 36px 16px 96px; display: grid; gap: 24px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.card > * + * { border-top: 1px solid var(--line); }
.card-body { padding: 20px 22px; display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 16px; padding: 14px 20px; }
.row .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
a.row { color: inherit; text-decoration: none; }
a.row:hover { background: var(--paper); }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 8px; border: 1px solid transparent;
          font: 600 16px/24px var(--sans); cursor: pointer; text-decoration: none; }
.button.primary { background: var(--tint); color: #fff; }
.button.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.button.danger { background: var(--danger); color: #fff; }
.button.quiet { background: none; color: var(--tint); padding: 4px; }
.button.wide { width: 100%; }
.button:disabled { opacity: .5; cursor: default; }
.inline { display: inline; margin: 0; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.actions .grow { flex: 1; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.open { background: var(--tint-soft); color: var(--tint); }
.badge.submitted { background: var(--sealed-soft); color: var(--sealed); }
.badge.downloaded { background: var(--caution-soft); color: var(--caution); }
.badge.expired, .badge.revoked, .badge.deleted { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.tag { padding: 2px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--tint-soft); color: var(--tint); }
.tag.default { background: var(--sealed-soft); color: var(--sealed); }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; font-weight: 600; }
.field input[type=text], .field input[type=url], .field textarea { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
          font: 16px/24px var(--sans); background: var(--surface); color: var(--ink); }
.field textarea { font-family: var(--mono); font-size: 14px; min-height: 96px; resize: vertical; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 8px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; }
.choice .grow { flex: 1; min-width: 0; }
.choice:has(input:disabled) { opacity: .45; }
.flash { padding: 12px 16px; border-radius: 10px; background: var(--sealed-soft); color: var(--sealed); font-weight: 600; }
.form-error { padding: 12px 16px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.notice { padding: 16px 20px; border-radius: 10px; background: var(--caution-soft); border: 1px solid var(--caution-line); display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.notice p { flex: 1; min-width: 200px; }
.auth-card { max-width: 460px; margin: 100px auto; padding: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 16px; }
.mono { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.empty { padding: 32px 22px; text-align: center; color: var(--muted); }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 14px; }
@media (max-width: 480px) {
  .adminbar { flex-wrap: wrap; gap: 12px; padding: 14px 20px; }
  .row { flex-wrap: wrap; }
  .auth-card { margin: 32px 16px; padding: 24px; }
}

/* Request page: tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs [role=tab] { padding: 10px 16px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted);
  font: 600 16px/24px var(--sans); cursor: pointer; }
.tabs [role=tab][aria-selected=true] { color: var(--ink); border-bottom-color: var(--tint); }

/* Composer */
.composer, .sent { display: grid; gap: 22px; }
.private-window { align-items: flex-start; }
.composer .secret-input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  font: 14px/22px var(--mono); resize: vertical; min-height: 120px;
  /* Masked by default: the glyphs are drawn fully transparent (spike 2:
     -webkit-text-security collapses lines in WebKit). Visual masking only;
     screen readers still read the value. */
  color: transparent; text-shadow: none; caret-color: var(--ink); }
.secret-input::selection { color: transparent; background: var(--tint-soft); }
.secret-input.revealed { color: var(--ink); }
.secret-input.revealed::selection { color: var(--ink); }
/* Windows High Contrast ("forced colors") overrides authored colors with a
   small system palette, including `color: transparent` — the masked secret
   would otherwise become visible. forced-color-adjust: none keeps our own
   color (still transparent) instead (M6, final review). The caret stays
   visible via CanvasText, a forced-colors system color. */
@media (forced-colors: active) {
  .composer .secret-input:not(.revealed) { forced-color-adjust: none; color: transparent; caret-color: CanvasText;
    background-color: Canvas; border-color: CanvasText; }
}
.dropzone { position: relative; display: grid; place-items: center; min-height: 96px; padding: 18px; border: 2px dashed var(--line);
  border-radius: 10px; color: var(--muted); text-align: center; cursor: pointer; }
.dropzone.over, .dropzone:hover { border-color: var(--tint); background: var(--tint-soft); }
.dropzone:focus-within { outline: 3px solid var(--tint); outline-offset: 2px; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone.disabled { cursor: not-allowed; opacity: 0.6; }
.dropzone.disabled:hover { border-color: var(--line); background: none; }
.link { color: var(--tint); text-decoration: underline; }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.items li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; }
.items li .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* Sent */
.sent:focus { outline: none; }
.seal { height: 56px; width: 80px; border-radius: 8px; background: var(--sealed-soft) url("/static/tint.svg") repeat; background-size: 6px 9px;
  border: 1px solid var(--sealed); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Account pages */
.field input[type=email], .field input[type=password] { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font: 16px/24px var(--sans); background: var(--surface); color: var(--ink); }
.field > .hint { font-weight: 400; color: var(--muted); }
.stack { display: grid; gap: 16px; margin: 0; }
.banner { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 12px 32px;
  background: var(--caution-soft); border-bottom: 1px solid var(--caution-line); }
.banner p { flex: 1; min-width: 200px; }
.banner form { margin: 0; }
@media (max-width: 480px) { .banner { padding: 12px 20px; } }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* Landing page */
.landing-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-weight: 600; }
.landing-nav { display: flex; gap: 16px; align-items: center; }
.landing { max-width: 792px; margin: 0 auto; padding: 48px 16px 96px; display: grid; gap: 56px; }
.hero, .how { display: grid; gap: 20px; }
.lede { font-size: 19px; line-height: 28px; color: var(--muted); }
.promise { padding: 28px; background: var(--sealed-soft); border: 1px solid var(--sealed); border-radius: 12px; display: grid; gap: 10px; }
.price { display: grid; gap: 12px; justify-items: start; }

/* Footer and legal pages */
.site-footer { max-width: 792px; margin: 0 auto; padding: 24px 16px 48px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); font-size: 14px; }
.legal { max-width: 672px; margin: 0 auto; padding: 48px 16px 64px; display: grid; gap: 14px; }
.legal h2 { margin-top: 18px; font-size: 21px; line-height: 28px; }
.legal ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }

/* Billing */
.actions form { margin: 0; }
