/* OpenMail Studio — one stylesheet for the landing, the cabinet and the admin.
   Text is Space Grotesk (Manrope for Cyrillic), machine text — addresses,
   codes, times — is JetBrains Mono. The mint of the product's wordmark is the
   only signal colour: it means "live" or "the main action", nothing else. */

@font-face {
  font-family: "Studio Sans";
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  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: "Studio Sans";
  src: url("../fonts/space-grotesk-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Studio Sans";
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Studio Mono";
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  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: "Studio Mono";
  src: url("../fonts/jetbrains-mono-cyrillic.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --ink: #0a0a0f;
  --slate: #13131b;
  --slate-2: #1a1a24;
  --line: #272735;
  --line-soft: #1d1d29;
  --fog: #e8e8ef;
  --text: #c6c6d4;
  --ash: #8c8ca4;
  --dim: #5f5f76;
  --signal: #79fa90;
  --signal-ink: #06230f;
  --warn: #ffb224;
  --bad: #ff5c7c;

  --sans: "Studio Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Studio Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 12px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1; }
h1, h2, h3 { margin: 0; color: var(--fog); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; overflow-wrap: anywhere; }
p, a, dd, td, li, label, .notice, .secret-note { overflow-wrap: anywhere; }
.page-head-row > :first-child, .gate-box { min-width: 0; }
p { margin: 0; }
a { color: var(--fog); text-decoration-color: var(--dim); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--signal); color: var(--signal-ink); }
.mono, code, kbd, time { font-family: var(--mono); font-size: 0.9375em; letter-spacing: -0.01em; }
code { color: var(--fog); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 46rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0.75rem; padding: 0.5rem 0.875rem; background: var(--signal); color: var(--signal-ink); border-radius: 8px; font-weight: 600; text-decoration: none; z-index: 10; }
.skip-link:focus { left: 0.75rem; }

/* Masthead */
.masthead { border-bottom: 1px solid var(--line-soft); }
.masthead-row { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.wordmark { display: inline-flex; align-items: center; gap: 0.625rem; font-weight: 700; font-size: 1.375rem; letter-spacing: -0.03em; color: var(--fog); text-decoration: none; }
.wordmark img { width: 1.625rem; height: 1.625rem; }
.wordmark b { font-weight: inherit; color: var(--signal); }
.wordmark-tag { font: 500 0.75rem/1 var(--mono); color: var(--ash); border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.5rem; letter-spacing: 0; }
.masthead-nav { display: flex; align-items: center; gap: 0.25rem; margin-left: 0.5rem; }
.masthead-nav a { padding: 0.375rem 0.75rem; border-radius: 8px; color: var(--ash); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.masthead-nav a:hover { color: var(--fog); }
.masthead-nav a[aria-current="page"] { color: var(--fog); background: var(--slate-2); }
.masthead-end { margin-left: auto; display: flex; align-items: center; gap: 1rem; min-width: 0; }
.masthead-who { color: var(--ash); font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.5rem 1.125rem; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--fog); font: 600 0.9375rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color 0.15s, border-color 0.15s; }
.btn:hover { border-color: var(--dim); background: var(--slate-2); }
.btn-primary { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.btn-primary:hover { background: #93ffa7; border-color: #93ffa7; }
.btn-danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn-danger:hover { background: color-mix(in srgb, var(--bad) 12%, transparent); border-color: var(--bad); }
.btn-small { min-height: 2.25rem; padding: 0.375rem 0.75rem; font-size: 0.875rem; border-radius: 8px; }
.btn-quiet { border-color: transparent; color: var(--ash); padding-inline: 0.5rem; }
.btn-quiet:hover { color: var(--fog); background: transparent; border-color: transparent; }
.btn[disabled] { opacity: 0.5; cursor: default; }

/* Forms */
.field { display: grid; gap: 0.375rem; align-content: start; }
.field + .field { margin-top: 1.125rem; }
.field label { color: var(--fog); font-weight: 500; font-size: 0.9375rem; }
.field .hint { color: var(--ash); font-size: 0.875rem; }
.field .error { color: var(--bad); font-size: 0.875rem; }
.input { width: 100%; min-height: 2.75rem; padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--ink); color: var(--fog); font: 400 1rem/1.4 var(--sans); }
.input.mono { font-family: var(--mono); font-size: 0.9375rem; }
.input::placeholder { color: var(--dim); }
.input:hover { border-color: var(--dim); }
.input:focus-visible { outline-offset: 1px; border-color: var(--signal); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.input-affix { display: flex; align-items: stretch; }
.input-affix .input { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; }
.input-affix .affix { display: flex; align-items: center; padding: 0 0.75rem; border: 1px solid var(--line); border-left: 0; border-radius: 0 10px 10px 0; background: var(--slate); color: var(--ash); font: 400 0.9375rem/1 var(--mono); white-space: nowrap; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 1.5rem; }
.form-row { display: grid; gap: 1.125rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.form-row .field + .field { margin-top: 0; }
.form-row + .field, .field + .form-row { margin-top: 1.125rem; }

/* Notices */
.notice { padding: 0.75rem 1rem; border: 1px solid var(--line); border-left: 2px solid var(--ash); border-radius: 0 10px 10px 0; background: var(--slate); color: var(--text); font-size: 0.9375rem; }
.notice strong { color: var(--fog); font-weight: 600; }
.notice-ok { border-left-color: var(--signal); }
.notice-warn { border-left-color: var(--warn); }
.notice-bad { border-left-color: var(--bad); }
.stack > * + * { margin-top: var(--stack, 1rem); }
.stack > .form-actions { margin-top: 1.5rem; }

/* Landing */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 78% 30%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse 70% 80% at 78% 30%, #000 0%, transparent 72%); pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 44rem; height: 44rem; right: -14rem; top: -22rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(200, 160, 80, 0.10), transparent); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3.5rem, 9vw, 7rem); }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); letter-spacing: -0.04em; line-height: 1.02; max-width: 16ch; }
.hero .lead { margin-top: 1.5rem; max-width: 34rem; font-size: 1.1875rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.875rem 1.25rem; margin-top: 2.25rem; }
.hero-actions .btn { min-height: 3rem; padding-inline: 1.5rem; font-size: 1rem; }
.hero-actions .aside { color: var(--ash); font-size: 0.9375rem; }

.journey { margin: 0; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, var(--slate-2), var(--slate)); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9); overflow: hidden; }
.journey figcaption { display: flex; justify-content: space-between; gap: 1rem; padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--line); color: var(--ash); font: 400 0.8125rem/1.4 var(--mono); }
.journey figcaption span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.journey ol { list-style: none; margin: 0; padding: 0.5rem 0; }
.journey li { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: baseline; padding: 0.6875rem 1.25rem; font: 400 0.875rem/1.5 var(--mono); }
.journey time { color: var(--dim); font-size: inherit; }
.journey .what { color: var(--fog); }
.journey .reply { color: var(--ash); white-space: nowrap; }
.journey li.is-last .what { color: var(--signal); }
.journey li.is-last .what::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.5rem; border-radius: 50%; background: var(--signal); vertical-align: 0.05em; }
@media (prefers-reduced-motion: no-preference) {
  .journey li { opacity: 0; transform: translateY(6px); animation: journey-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
  .journey li:nth-child(1) { animation-delay: 0.35s; }
  .journey li:nth-child(2) { animation-delay: 1.05s; }
  .journey li:nth-child(3) { animation-delay: 1.85s; }
  .journey li:nth-child(4) { animation-delay: 2.65s; }
  .journey li.is-last .what::before { animation: journey-pulse 1.6s ease-out 3.2s 2; }
}
@keyframes journey-in { to { opacity: 1; transform: none; } }
@keyframes journey-pulse { 0% { box-shadow: 0 0 0 0 rgba(121, 250, 144, 0.55); } 100% { box-shadow: 0 0 0 0.625rem rgba(121, 250, 144, 0); } }

.band { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band + .band { border-top: 1px solid var(--line-soft); }
.band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.03em; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.facts h3 { font-size: 1.1875rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.facts p { margin-top: 0.625rem; color: var(--ash); max-width: 30ch; }
.start-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.start-grid > div > p { margin-top: 1rem; color: var(--ash); max-width: 28rem; }
.start-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.start-steps li { counter-increment: step; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1rem; padding-block: 1.25rem; border-top: 1px solid var(--line); }
.start-steps li:last-child { border-bottom: 1px solid var(--line); }
.start-steps li::before { content: counter(step); font: 500 1.125rem/1.5 var(--mono); color: var(--dim); }
.start-steps h3 { font-size: 1.0625rem; }
.start-steps p { margin-top: 0.25rem; color: var(--ash); }

.colophon { border-top: 1px solid var(--line-soft); color: var(--dim); font-size: 0.875rem; }
.colophon-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 1.5rem; }
.colophon a { color: var(--ash); }

/* Sign-in, invitation, messages */
.gate { display: grid; place-items: start center; padding-block: clamp(2.5rem, 9vw, 6rem); }
.gate-box { width: 100%; max-width: 26rem; }
.gate-box h1 { font-size: 1.875rem; letter-spacing: -0.03em; }
.gate-box .sub { margin-top: 0.625rem; color: var(--ash); }
.gate-box form { margin-top: 2rem; }
.gate-box .btn-primary { width: 100%; min-height: 3rem; }
.gate-foot { margin-top: 1.5rem; color: var(--ash); font-size: 0.9375rem; }

/* Cabinet and admin */
.page-head { padding-block: 2.5rem 1.75rem; }
.page-head h1 { font-size: clamp(1.625rem, 3vw, 2.125rem); letter-spacing: -0.03em; }
.page-head .sub { margin-top: 0.5rem; color: var(--ash); max-width: 44rem; }
.page-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.page-body { padding-bottom: 5rem; }
.crumb { display: inline-block; margin-bottom: 0.875rem; color: var(--ash); font-size: 0.9375rem; text-decoration: none; }
.crumb:hover { color: var(--fog); }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--slate); }
.panel-pad { padding: 1.375rem 1.5rem; }
.panel h2 { font-size: 1.0625rem; letter-spacing: -0.01em; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); }
.panel-foot { padding: 0.875rem 1.5rem; border-top: 1px solid var(--line); color: var(--ash); font-size: 0.875rem; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }

/* The path of an installation: three steps with their real state. */
.path { list-style: none; margin: 0; padding: 0; }
.path > li { position: relative; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 1.125rem; padding-bottom: 2.25rem; }
.path > li::before { content: ""; position: absolute; left: calc(1.125rem - 0.5px); top: 2.25rem; bottom: 0; width: 1px; background: var(--line); }
.path > li:last-child { padding-bottom: 0; }
.path > li:last-child::before { display: none; }
.path-mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid var(--line); border-radius: 50%; background: var(--ink); color: var(--ash); font: 500 0.875rem/1 var(--mono); }
.path .is-done .path-mark { border-color: var(--signal); background: var(--signal); color: var(--signal-ink); }
.path .is-now .path-mark { border-color: var(--signal); color: var(--signal); }
.path .is-warn .path-mark { border-color: var(--warn); color: var(--warn); }
.path .is-stop .path-mark { border-color: var(--bad); color: var(--bad); }
.path-body { min-width: 0; padding-top: 0.25rem; }
.path-body > h2 { font-size: 1.1875rem; }
.path-body > .sub { margin-top: 0.25rem; color: var(--ash); }
.path-body > .panel, .path-body > .notice, .path-body > form, .path-body > .secret, .path-body > .state { margin-top: 1rem; }
.state { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.875rem; }
.state p { color: var(--ash); flex-basis: 100%; max-width: 40rem; }
.panel-pad > :not(:first-child) { margin-top: 1.125rem; }
.page-body > .notice + .path { margin-top: 1.75rem; }
details.edit { margin-top: 0.875rem; }
details.edit > summary { display: inline-block; padding: 0.25rem 0; color: var(--fog); font-size: 0.9375rem; font-weight: 500; cursor: pointer; list-style: none; text-decoration: underline; text-decoration-color: var(--dim); text-underline-offset: 0.2em; }
details.edit > summary::-webkit-details-marker { display: none; }
details.edit > summary:hover { text-decoration-color: var(--signal); }
details.edit[open] > summary { color: var(--ash); text-decoration: none; }
details.edit > form { margin-top: 0.875rem; }
details.edit > form > .hint { margin-top: 0.875rem; color: var(--ash); font-size: 0.875rem; max-width: 44rem; }
.path-body > details.edit { margin-top: 1rem; }
.path-body > .actions { margin-top: 1rem; }
.todo { padding-top: 1.125rem; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.kv dd.with-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.625rem; }

.kv { display: grid; grid-template-columns: minmax(8rem, max-content) minmax(0, 1fr); gap: 0.625rem 1.5rem; margin: 0; }
.kv dt { color: var(--ash); font-size: 0.9375rem; }
.kv dd { margin: 0; color: var(--fog); min-width: 0; overflow-wrap: anywhere; }

.chip { display: inline-flex; align-items: center; gap: 0.4375rem; padding: 0.1875rem 0.625rem 0.1875rem 0.5rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 0.8125rem; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.chip::before { content: ""; width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--dim); }
.chip-ok { color: var(--fog); }
.chip-ok::before { background: var(--signal); }
.chip-warn::before { background: var(--warn); }
.chip-bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.chip-bad::before { background: var(--bad); }

.secret { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; padding: 1rem 1.125rem; border: 1px dashed color-mix(in srgb, var(--signal) 55%, var(--line)); border-radius: var(--radius); background: color-mix(in srgb, var(--signal) 5%, var(--ink)); }
.secret-value { flex: 1 1 14rem; min-width: 0; color: var(--fog); font: 500 1.125rem/1.4 var(--mono); overflow-wrap: anywhere; }
.secret-note { flex-basis: 100%; color: var(--ash); font-size: 0.875rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--slate); overflow: hidden; }
.stat { padding: 1.125rem 1.25rem; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.stat-value { color: var(--fog); font: 600 1.75rem/1.1 var(--sans); letter-spacing: -0.03em; }
.stat-name { margin-top: 0.375rem; color: var(--ash); font-size: 0.875rem; }
.stat-value.is-warn { color: var(--warn); }
.sections > * + * { margin-top: 1.5rem; }
.service { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.875rem; color: var(--ash); font-size: 0.9375rem; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); color: var(--ash); font-size: 0.8125rem; font-weight: 500; text-align: left; white-space: nowrap; }
.table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--slate-2); }
.table .who { display: block; color: var(--fog); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.table a.who:hover { text-decoration: underline; text-decoration-color: var(--signal); }
.table .under { display: block; margin-top: 0.125rem; color: var(--ash); font-size: 0.875rem; overflow-wrap: anywhere; }
.table .mono { font-size: 0.875rem; }
/* A name or an address in a table is one piece: the column that gives way
   to a long neighbour is the one with free text. */
.table td .mono { white-space: nowrap; }
/* A user's name in a table of names: wide enough to break between words. */
.table .cell-who { min-width: 11rem; }
.table .cell-action { text-align: right; white-space: nowrap; }
.muted { color: var(--ash); }
.empty { padding: 2.5rem 1.5rem; text-align: left; color: var(--ash); }
.empty strong { display: block; margin-bottom: 0.25rem; color: var(--fog); font-size: 1.0625rem; font-weight: 600; }
.empty { max-width: 44rem; }
.empty p { margin-top: 1.25rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.actions form { display: contents; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; }
.inline-form .field { flex: 1 1 11rem; }

.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr) auto; gap: 0.25rem 1.25rem; padding: 0.75rem 1.5rem; border-bottom: 1px solid var(--line-soft); }
.log li:last-child { border-bottom: 0; }
.log time { color: var(--ash); font-size: 0.8125rem; white-space: nowrap; padding-top: 0.125rem; }
.log .event { color: var(--fog); }
.log .detail { display: block; color: var(--ash); font-size: 0.875rem; overflow-wrap: anywhere; }
.log-who { max-width: 16rem; color: var(--text); font-size: 0.9375rem; text-align: right; overflow-wrap: anywhere; }

/* Confirmation */
dialog.confirm { width: min(26rem, calc(100vw - 2rem)); padding: 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: var(--slate); color: var(--text); box-shadow: 0 40px 100px -30px #000; }
dialog.confirm::backdrop { background: rgba(5, 5, 9, 0.72); }
dialog.confirm h2 { font-size: 1.1875rem; }
dialog.confirm p { margin-top: 0.625rem; color: var(--ash); }
dialog.confirm .form-actions { justify-content: flex-end; }

@media (max-width: 60rem) {
  .hero-grid, .start-grid, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .facts p { max-width: none; }
}
@media (max-width: 44rem) {
  .masthead-row { gap: 0.75rem; min-height: 3.75rem; flex-wrap: wrap; padding-block: 0.625rem; }
  .masthead-nav { order: 3; flex-basis: 100%; margin-left: -0.75rem; }
  .masthead-who { display: none; }
  .journey li { grid-template-columns: 4.75rem minmax(0, 1fr); }
  .journey .reply { grid-column: 2; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 0.125rem; }
  .kv dd + dt { margin-top: 0.75rem; }
  .log li { grid-template-columns: minmax(0, 1fr); padding-inline: 1.125rem; }
  .log-who { max-width: none; text-align: left; }
  .panel-pad, .panel-head { padding-inline: 1.125rem; }
  /* A table becomes a list of records. */
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table tr { padding: 0.875rem 1.125rem; border-bottom: 1px solid var(--line-soft); }
  .table tr:last-child { border-bottom: 0; }
  .table td { padding: 0.1875rem 0; border: 0; }
  .table td[data-label] { display: flex; align-items: baseline; gap: 0.75rem; }
  .table td[data-label]::before { content: attr(data-label); flex: 0 0 6.5rem; color: var(--ash); font-size: 0.8125rem; }
  .table td.cell-action { padding-top: 0.625rem; text-align: left; }
  .table td .mono { white-space: normal; }
  .table .cell-who { min-width: 0; }
  .path > li { grid-template-columns: 1.75rem minmax(0, 1fr); gap: 0.875rem; }
  .path > li::before { left: calc(0.875rem - 0.5px); top: 1.75rem; }
  .path-mark { width: 1.75rem; height: 1.75rem; font-size: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
