:root {
  --bg: #ffffff;
  --bg-2: #fafafa;
  --bg-3: #f4f4f5;
  --ink: #0a0a0a;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --faint: #a1a1aa;
  --line: #ececee;
  --line-2: #dcdce0;
  --focus: #0a0a0a;
  --good: #16a34a;
  --good-soft: #f0fdf4;
  --bad: #dc2626;
  --bad-soft: #fef2f2;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --sel: #f4f4f5;
  --btn: #0a0a0a;
  --btn-ink: #ffffff;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.05), 0 24px 64px rgba(0,0,0,.14);
  --sans: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a; --bg-2: #111112; --bg-3: #18181b; --ink: #ededed; --ink-2: #d4d4d8; --muted: #a1a1aa;
    --faint: #71717a; --line: #222225; --line-2: #2e2e33; --focus: #ededed; --good: #22c55e; --good-soft: #0c1f14;
    --bad: #f87171; --bad-soft: #2a1212; --warn: #fbbf24; --warn-soft: #251c08; --sel: #18181b;
    --btn: #ededed; --btn-ink: #0a0a0a;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.4);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.5), 0 24px 64px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "ss01", "cv11";
}
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--bg); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); font-size: .92em; }
.good { color: var(--good); }
.bad { color: var(--bad); }

/* ---------- buttons & inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg); color: var(--ink);
  font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s, opacity .12s;
}
.btn:hover { background: var(--bg-3); }
.btn:focus-visible, .input:focus-visible, .icon-btn:focus-visible, .row:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn.primary { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.btn.primary:hover { opacity: .88; }
.btn.lg { height: 48px; padding: 0 22px; font-size: 16px; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13.5px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--bg-3); }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--line-2); cursor: pointer; font-weight: 500; }
.link:hover { text-decoration-color: var(--ink); }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 0;
  background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--bg-3); color: var(--ink); }
.icon-btn svg, .btn svg { width: 17px; height: 17px; flex: none; }
.input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line-2);
  background: var(--bg); transition: border-color .12s, box-shadow .12s;
}
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 8%, transparent); }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.label { display: block; font-size: 13px; font-weight: 500; margin: 18px 0 7px; color: var(--ink-2); }
.hint { font-size: 13px; color: var(--muted); margin-top: 7px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.check-dot { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; }
.check-dot svg { width: 13px; height: 13px; }
.check-dot.ok { background: var(--good); color: #fff; }
.check-dot.no { background: var(--bad); color: #fff; }
.check-dot.wait { border: 1.5px solid var(--line-2); }
.error { color: var(--bad); font-size: 14px; margin-top: 12px; min-height: 0; }
.error:empty { display: none; }

/* ---------- dev banner */
#banner .dev { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 7px 16px; font-size: 12.5px;
  background: var(--warn-soft); color: var(--warn); border-bottom: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); text-align: center; }
#banner .dev b { font-weight: 600; }

/* ---------- toast */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 500;
  transition: opacity .18s, transform .18s; z-index: 100; max-width: calc(100vw - 32px); box-shadow: var(--shadow-lg); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- marketing / flow pages */
.topbar { display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 28px; max-width: 1200px; margin: 0 auto; }
.logo { font-weight: 700; font-size: 21px; letter-spacing: -.04em; text-decoration: none; display: inline-flex; align-items: baseline; }
.logo i { font-style: normal; color: var(--good); }
.hero { max-width: 760px; margin: 0 auto; padding: 14vh 24px 80px; text-align: center; }
.hero h1 { font-size: clamp(44px, 8vw, 84px); line-height: .98; letter-spacing: -.055em; font-weight: 600; margin: 0; }
.hero h1 span { color: var(--faint); }
.hero p.sub { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); margin: 26px 0 44px; letter-spacing: -.01em; }
.domain-form { display: flex; gap: 8px; max-width: 520px; margin: 0 auto; padding: 6px; border: 1px solid var(--line-2);
  border-radius: 14px; background: var(--bg); box-shadow: var(--shadow); }
.domain-form input { flex: 1; min-width: 0; border: 0; background: transparent; height: 48px; padding: 0 14px; font-size: 17px; outline: none; }
.domain-form .btn { height: 48px; border-radius: 10px; }
.steps-line { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 30px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.steps-line .sep { width: 18px; height: 1px; background: var(--line-2); }
.fineprint { margin: 90px auto 40px; max-width: 760px; padding: 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.fineprint h3 { font-size: 14px; font-weight: 600; margin: 0 0 6px; letter-spacing: -.01em; }
.fineprint p { margin: 0; font-size: 14px; color: var(--muted); }
.foot { text-align: center; color: var(--faint); font-size: 13px; padding: 40px 24px 60px; }

.flow { max-width: 540px; margin: 0 auto; padding: 7vh 24px 80px; }
.flow h1 { font-size: 34px; letter-spacing: -.04em; line-height: 1.1; font-weight: 600; margin: 0 0 10px; }
.flow h2 { font-size: 20px; letter-spacing: -.02em; font-weight: 600; margin: 0 0 6px; }
.flow .lede { color: var(--muted); font-size: 16px; margin: 0 0 30px; }
.progress { display: flex; gap: 6px; margin-bottom: 36px; }
.progress span { height: 3px; flex: 1; border-radius: 3px; background: var(--line); transition: background .3s; }
.progress span.on { background: var(--ink); }
.facts { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 0 0 22px; }
.fact { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 18px; border-top: 1px solid var(--line); }
.fact:first-child { border-top: 0; }
.fact .k { color: var(--muted); font-size: 14px; }
.fact .v { font-weight: 500; text-align: right; display: flex; align-items: center; gap: 8px; }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--bg-2);
  border: 1px solid var(--line); font-size: 15px; margin: 0 0 26px; }
.callout svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.callout.good svg { color: var(--good); }
.callout.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.callout.warn svg { color: var(--warn); }
.panel { border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 16px; }
.panel .panel-title { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; }
.steps-help { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps-help li { counter-increment: s; position: relative; padding-left: 30px; margin: 10px 0; font-size: 14px; color: var(--ink-2); }
.steps-help li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg-3); font-size: 12px; font-weight: 600; display: grid; place-items: center; color: var(--ink); }
code.chip { font-family: var(--mono); font-size: 13px; padding: 2px 7px; border-radius: 6px; background: var(--bg-3); border: 1px solid var(--line); }
.copy-row { display: inline-flex; align-items: center; gap: 6px; }
.address-input { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; height: 60px; padding: 0 18px;
  font-size: 22px; letter-spacing: -.02em; transition: border-color .12s, box-shadow .12s; }
.address-input:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 8%, transparent); }
.address-input input { border: 0; outline: 0; background: transparent; font-size: 22px; min-width: 0; flex: 1; text-align: right; padding: 0; letter-spacing: -.02em; font-weight: 500; }
.address-input .at { color: var(--muted); white-space: nowrap; margin-left: 2px; }
.check-list { list-style: none; padding: 0; margin: 20px 0 0; }
.check-list li { display: flex; gap: 12px; align-items: center; padding: 11px 0; font-size: 15px; color: var(--muted); transition: color .2s; }
.check-list li.done { color: var(--ink); }
.done-hero { text-align: center; padding-top: 6vh; }
.done-hero .big-check { width: 64px; height: 64px; border-radius: 50%; background: var(--good); color: #fff; display: grid; place-items: center; margin: 0 auto 26px;
  animation: pop .35s cubic-bezier(.2,1.4,.4,1); }
.done-hero .big-check svg { width: 30px; height: 30px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.done-hero h1 { font-size: 44px; }
.done-hero .addr { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin: 6px 0 34px; }
.records { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 13.5px; }
.records .r { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); align-items: start; }
.records .r:first-child { border-top: 0; }
.records .r .t { font-family: var(--mono); font-weight: 500; }
.records .r .val { font-family: var(--mono); word-break: break-all; color: var(--ink-2); }
.records .r .host { font-weight: 500; margin-bottom: 3px; }
.change-list { margin: 8px 0 0; padding-left: 18px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.change-list li { margin: 4px 0; word-break: break-all; }
details.tech summary { cursor: pointer; color: var(--muted); font-size: 14px; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
details.tech summary::-webkit-details-marker { display: none; }
details.tech[open] summary { margin-bottom: 12px; }
.or { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: 13px; margin: 24px 0; }
.or::before, .or::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.auth-card { max-width: 400px; margin: 0 auto; padding: 12vh 24px 60px; }
.auth-card h1 { font-size: 30px; letter-spacing: -.04em; margin: 0 0 8px; font-weight: 600; }

/* ---------- app shell */
.app { display: grid; grid-template-columns: 236px 1fr; height: 100vh; height: 100dvh; }
.has-banner .app { height: calc(100dvh - 33px); }
.side { border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 16px 12px; background: var(--bg-2); min-height: 0; }
.side .who { padding: 6px 10px 18px; }
.side .who .logo { font-size: 19px; }
.side .who .addr { font-size: 12.5px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .compose { margin: 0 2px 16px; }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav a { display: flex; align-items: center; gap: 11px; height: 36px; padding: 0 10px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-size: 14.5px; }
.nav a:hover { background: var(--bg-3); color: var(--ink); }
.nav a.on { background: var(--bg); color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--line); }
.nav a svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.nav a.on svg { color: var(--ink); }
.nav a .count { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ink); }
.nav a .dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.nav a .dot.bad { background: var(--bad); }
.nav .gap { height: 18px; }
.side .bottom { margin-top: auto; padding: 14px 10px 4px; }
.meter { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 8px 0 6px; }
.meter i { display: block; height: 100%; background: var(--ink); border-radius: 4px; transition: width .3s; }
.meter-label { font-size: 12px; color: var(--muted); }
.side .foot-links { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; }

.main { min-width: 0; min-height: 0; display: flex; }
.mail { display: grid; grid-template-columns: minmax(300px, 390px) 1fr; flex: 1; min-width: 0; }
.list-pane { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.list-head { padding: 14px 14px 10px; border-bottom: 1px solid var(--line); }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); }
.search input { padding-left: 36px; height: 38px; background: var(--bg-2); border-color: var(--line); }
.list-title { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 0 2px; }
.list-title h2 { font-size: 15px; margin: 0; font-weight: 600; letter-spacing: -.01em; }
.list { overflow-y: auto; flex: 1; }
.row { display: block; padding: 13px 16px 14px; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; outline: none; }
.row:hover { background: var(--bg-2); }
.row.sel { background: var(--sel); }
.row .top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.row .from { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.row .date { font-size: 12px; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.row .subj { font-size: 14px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; gap: 6px; align-items: center; color: var(--ink-2); }
.row .subj svg { width: 13px; height: 13px; color: var(--faint); flex: none; }
.row .prev { font-size: 13px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.unread .from, .row.unread .subj { color: var(--ink); font-weight: 600; }
.row.unread::before { content: ""; position: absolute; left: 6px; top: 20px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.empty { padding: 60px 24px; text-align: center; color: var(--muted); font-size: 14px; }
.empty svg { width: 28px; height: 28px; color: var(--faint); margin-bottom: 10px; }
.more { padding: 14px; text-align: center; }

.reader { min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.reader-bar { display: flex; align-items: center; gap: 2px; padding: 10px 14px; border-bottom: 1px solid var(--line); min-height: 57px; }
.reader-bar .spacer { flex: 1; }
.reader-body { overflow-y: auto; flex: 1; padding: 32px 40px 60px; }
.reader-body h1 { font-size: 24px; letter-spacing: -.03em; font-weight: 600; margin: 0 0 22px; line-height: 1.25; word-wrap: break-word; }
.msg-meta { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 26px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-3); display: grid; place-items: center; font-weight: 600;
  font-size: 15px; flex: none; color: var(--ink-2); border: 1px solid var(--line); }
.msg-meta .who { font-size: 14.5px; line-height: 1.45; min-width: 0; flex: 1; }
.msg-meta .who .n { font-weight: 600; }
.msg-meta .who .e { color: var(--muted); }
.msg-meta .who .to { color: var(--muted); font-size: 13px; overflow-wrap: break-word; word-break: break-word; }
.msg-meta .when { color: var(--faint); font-size: 13px; white-space: nowrap; }
.msg-text { white-space: pre-wrap; word-wrap: break-word; font-size: 15px; line-height: 1.6; max-width: 72ch; }
.msg-text .q { color: var(--muted); }
.msg-text a { text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.msg-html { width: 100%; border: 0; background: #fff; border-radius: 10px; min-height: 120px; display: block; }
.img-note { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.dev-note { font-size: 13px; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); margin-bottom: 18px; }
.atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.att { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px 8px 10px; border: 1px solid var(--line); border-radius: 10px;
  text-decoration: none; font-size: 13.5px; max-width: 280px; background: var(--bg); cursor: pointer; }
.att:hover { border-color: var(--line-2); background: var(--bg-2); }
.att .ic { width: 32px; height: 32px; border-radius: 7px; background: var(--bg-3); display: grid; place-items: center; font-size: 10px; font-weight: 700;
  letter-spacing: .02em; color: var(--ink-2); flex: none; font-family: var(--mono); text-transform: uppercase; }
.att .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.att .sz { color: var(--muted); font-size: 12px; }
.reader-empty { flex: 1; display: grid; place-items: center; color: var(--faint); font-size: 14px; }
.reader-empty svg { width: 40px; height: 40px; }
.back-btn { display: none; }

/* ---------- compose */
.compose-panel { position: fixed; right: 24px; bottom: 0; width: min(600px, calc(100vw - 48px)); height: min(640px, calc(100dvh - 60px)); background: var(--bg);
  border: 1px solid var(--line-2); border-bottom: 0; border-radius: 14px 14px 0 0; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; z-index: 50;
  animation: rise .2s cubic-bezier(.2,.9,.3,1); }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.compose-panel .head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--line); }
.compose-panel .head b { font-weight: 600; font-size: 14.5px; }
.cf { display: flex; align-items: center; border-bottom: 1px solid var(--line); padding: 0 18px; min-height: 44px; gap: 10px; }
.cf label { color: var(--muted); font-size: 14px; width: 52px; flex: none; }
.cf input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; height: 42px; font-size: 14.5px; }
.cf .link { font-size: 13px; color: var(--muted); }
.compose-panel textarea { flex: 1; border: 0; outline: 0; resize: none; padding: 16px 18px; font-size: 15px; line-height: 1.6; background: transparent; }
.compose-atts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 10px; }
.compose-atts .att { cursor: default; padding: 6px 6px 6px 10px; gap: 8px; }
.compose-atts .att .bar { height: 3px; background: var(--line); border-radius: 2px; width: 80px; overflow: hidden; }
.compose-atts .att .bar i { display: block; height: 100%; background: var(--ink); }
.compose-foot { display: flex; align-items: center; gap: 6px; padding: 10px 12px 12px 14px; border-top: 1px solid var(--line); }
.compose-foot .status { font-size: 12.5px; color: var(--faint); margin-left: 6px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compose-foot .err { color: var(--bad); }
.drop-hint { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); display: grid; place-items: center;
  font-weight: 500; border: 2px dashed var(--line-2); border-radius: 14px 14px 0 0; pointer-events: none; }

/* ---------- pages inside the app (health, settings, admin) */
.page { overflow-y: auto; flex: 1; }
.page-inner { max-width: 680px; margin: 0 auto; padding: 56px 32px 80px; }
.page-inner.wide { max-width: 1040px; }
.page h1 { font-size: 30px; letter-spacing: -.04em; font-weight: 600; margin: 0 0 6px; }
.page .lede { color: var(--muted); margin: 0 0 32px; }
.health-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.health-row { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-top: 1px solid var(--line); }
.health-row:first-child { border-top: 0; }
.health-row .lbl { font-weight: 600; width: 150px; flex: none; letter-spacing: -.01em; }
.health-row .msg { color: var(--muted); flex: 1; font-size: 14.5px; }
.health-row .detail { display: block; font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 4px; word-break: break-all; }
.health-summary { display: flex; align-items: center; gap: 14px; margin: 28px 0 0; font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.section { margin-top: 44px; }
.section h2 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 4px; }
.section > p.muted { margin: 0 0 16px; font-size: 14px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; font-size: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.kv .k { color: var(--muted); }
.kv .v { font-family: var(--mono); font-size: 13px; word-break: break-all; }
.form-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.form-row > * { flex: 1 1 180px; }
.form-row > .btn { flex: 0 0 auto; }
.history { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.history .h { padding: 14px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.history .h:first-child { border-top: 0; }
.history .h .top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.pill { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--bg-3); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.pill.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.stat .n { font-size: 26px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 13px; color: var(--muted); }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-weight: 500; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
table.t td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t td.mono { word-break: break-all; }
.table-wrap { border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.table-wrap table.t tr:last-child td { border-bottom: 0; }

/* ---------- responsive */
.mobile-bar { display: none; }
@media (max-width: 1100px) {
  .mail { grid-template-columns: minmax(280px, 340px) 1fr; }
  .reader-body { padding: 26px 26px 60px; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side { display: none; }
  .side.open { display: flex; position: fixed; inset: 0; z-index: 60; width: 280px; box-shadow: var(--shadow-lg); }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 55; }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid var(--line); }
  .mail { grid-template-columns: 1fr; }
  .mail.reading .list-pane { display: none; }
  .mail:not(.reading) .reader { display: none; }
  .back-btn { display: inline-grid; }
  .reader-body { padding: 22px 18px 60px; }
  .reader-bar { padding: 8px 8px; gap: 0; }
  .reader-bar .btn { padding: 0 9px; }
  .reader-bar .btn .lbl { display: none; }
  .msg-meta { flex-wrap: wrap; }
  .msg-meta .when { order: 3; width: 100%; padding-left: 50px; margin-top: -6px; }
  .compose-panel { right: 0; left: 0; width: 100%; height: 100dvh; border-radius: 0; top: 0; }
  .fineprint { grid-template-columns: 1fr; gap: 22px; margin-top: 60px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .page-inner { padding: 30px 18px 60px; }
  .health-row { flex-wrap: wrap; gap: 8px 14px; }
  .health-row .lbl { width: auto; }
  .health-row .msg { flex-basis: 100%; order: 3; padding-left: 36px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv .k { margin-top: 8px; }
}
@media (max-width: 520px) {
  .topbar { padding: 0 18px; }
  .domain-form { flex-direction: column; }
  .domain-form .btn { width: 100%; }
  .address-input, .address-input input { font-size: 18px; }
  .records .r { grid-template-columns: 1fr auto; }
  .records .r .t { grid-column: 1 / -1; }
}
