: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.upd { background: var(--warn); 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); }
.hero-note { margin: 18px 0 0; font-size: 13.5px; color: var(--faint); }

/* landing sections */
.lp { max-width: 960px; margin: 0 auto; padding: 64px 24px 0; text-align: center; }
.lp h2 { font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -.04em; font-weight: 600; margin: 0 0 10px; line-height: 1.1; }
.lp-sub { color: var(--muted); margin: 0 0 32px; font-size: 16px; }
.lp-note { color: var(--muted); font-size: 14px; margin: 22px 0 0; }
.how { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.how li { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: var(--bg-2); }
.how .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg);
  font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.how h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -.02em; }
.how p { margin: 0; font-size: 14px; color: var(--muted); }
.reg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.reg { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 10px 16px; border: 1px solid var(--line); border-radius: 14px; }
.reg .rlogo { width: 30px; height: 30px; color: var(--ink-2); }
.reg .nm { font-weight: 500; font-size: 14.5px; letter-spacing: -.01em; }
.reg .tag { font-size: 11.5px; color: var(--faint); }
.reg.auto { border-color: color-mix(in srgb, var(--good) 40%, var(--line)); background: var(--good-soft); }
.reg.auto .tag { color: var(--good); font-weight: 600; }
.rlogo { display: inline-block; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain; }
.lp.cta { padding-top: 90px; }
.lp.cta h2 { margin-bottom: 26px; }
.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; }
.pstep { flex: 1; min-width: 0; }
.pstep .bar { display: block; height: 3px; border-radius: 3px; background: var(--line); transition: background .3s; }
.pstep.on .bar { background: var(--ink); }
.pstep .pn { display: block; margin-top: 8px; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pstep.on .pn { color: var(--muted); }
.pstep.now .pn { color: var(--ink); font-weight: 500; }
.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; }
.panel .panel-title .pill { margin-left: auto; font-weight: 500; }
.panel-sub { margin: 8px 0 0; font-size: 14.5px; }
.steps-help li b { color: var(--ink); font-weight: 600; }
.steps-help li .sub { margin-top: 5px; font-size: 13px; color: var(--muted); }
.steps-help li .sub .copy-row { margin-top: 2px; }
.alt { font-size: 14px; color: var(--ink-2); padding: 14px 16px; border-radius: 12px; background: var(--bg-2); border: 1px dashed var(--line-2); margin-bottom: 16px; }
.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; font-family: var(--mono); }
.records .r { align-items: center; }
.records .rbody { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.records .field { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; }
.records .field .k { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); width: 42px; flex: none; }
.records .field .val { flex: 1; min-width: 0; }
.records .field .btn.sm { height: 24px; padding: 0 6px; }
.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; }
.acct { position: relative; margin-top: 8px; }
.acct-btn { display: flex; align-items: center; gap: 6px; width: 100%; border: 1px solid transparent; background: transparent; border-radius: 8px;
  padding: 5px 6px 5px 0; cursor: pointer; color: var(--muted); font-size: 12.5px; text-align: left; }
.acct-btn:hover { color: var(--ink); }
.acct-btn .addr { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0 !important; }
.acct-btn svg { width: 14px; height: 14px; flex: none; }
.acct-menu { position: absolute; left: -6px; top: calc(100% + 4px); width: 280px; background: var(--bg); border: 1px solid var(--line-2);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 70; }
.acct-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; border-radius: 8px; padding: 8px;
  cursor: pointer; text-align: left; font-size: 14px; color: var(--ink); }
.acct-item:hover { background: var(--bg-3); }
.acct-item > svg { width: 16px; height: 16px; margin-left: auto; color: var(--ink); flex: none; }
.acct-text { display: flex; flex-direction: column; min-width: 0; }
.acct-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.acct-name { font-size: 12px; color: var(--muted); }
.acct-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.avatar.sm { width: 28px; height: 28px; font-size: 11.5px; }
.avatar.plus { font-size: 16px; font-weight: 500; }
.avatar.plus svg { width: 14px; height: 14px; }
.modal-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.32); display: grid; place-items: center; z-index: 90; padding: 16px; }
.modal { width: min(420px, 100%); background: var(--bg); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 18px 22px 22px; border: 1px solid var(--line); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin: 0 -8px 10px 0; font-size: 16px; }
.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 a .dot.upd { background: var(--warn); }
.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; }
  .how { grid-template-columns: 1fr; }
  .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; }
  .reg-grid { grid-template-columns: repeat(2, 1fr); }
  .pstep .pn { font-size: 11px; }
  .panel { padding: 18px 16px; }
}

/* ---------- homepage (colourful) */
.home { --violet: #7c5cff; --pink: #ff5c8a; --amber: #ffb020; --mint: #14c08c;
  --grad: linear-gradient(100deg, var(--violet) 0%, var(--pink) 55%, var(--amber) 100%);
  position: relative; overflow-x: clip; min-height: 100vh; }
.home .glow { position: absolute; inset: -10% -20% auto; height: 900px; z-index: -1; pointer-events: none; filter: blur(60px); opacity: .55;
  background:
    radial-gradient(38% 42% at 18% 30%, color-mix(in srgb, var(--violet) 45%, transparent), transparent 70%),
    radial-gradient(34% 40% at 82% 22%, color-mix(in srgb, var(--pink) 40%, transparent), transparent 70%),
    radial-gradient(30% 36% at 60% 70%, color-mix(in srgb, var(--amber) 38%, transparent), transparent 70%); }
@media (prefers-color-scheme: dark) { .home .glow { opacity: .35; } }
.home .topbar .logo i { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-hero { max-width: 820px; margin: 0 auto; padding: 11vh 24px 40px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; padding: 6px 14px 6px 10px; border-radius: 99px;
  background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--line-2); backdrop-filter: blur(8px); color: var(--ink-2); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 22%, transparent); }
.home-hero h1 { font-size: clamp(40px, 7.4vw, 82px); line-height: 1.02; letter-spacing: -.055em; font-weight: 600; margin: 26px 0 0; }
.grad-text, .addr-swap { display: inline-block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .08em; transition: opacity .26s, transform .26s; max-width: 100%; overflow-wrap: anywhere; }
.home-hero .sub { font-size: clamp(16.5px, 2vw, 19px); color: var(--muted); margin: 24px auto 38px; max-width: 590px; line-height: 1.55; }
.home .domain-form { border-color: color-mix(in srgb, var(--violet) 25%, var(--line-2));
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 18px 50px color-mix(in srgb, var(--violet) 22%, transparent); }
.home .domain-form .btn.primary { background: var(--grad); border: 0; color: #fff; font-weight: 600; }
.home .domain-form .btn.primary:hover { opacity: .92; filter: saturate(1.1); }
.home .hero-note { margin-top: 18px; }

.home-sec { max-width: 1000px; margin: 0 auto; padding: 84px 24px 0; text-align: center; }
.home-sec h2 { font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -.04em; font-weight: 600; margin: 0 0 10px; line-height: 1.1; }
.home .c-violet { --c: var(--violet); } .home .c-pink { --c: var(--pink); } .home .c-amber { --c: var(--amber); } .home .c-mint { --c: var(--mint); }
.home-how { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; }
.home-how li { position: relative; border-radius: 20px; padding: 24px 24px 26px; overflow: hidden;
  background: color-mix(in srgb, var(--c) 9%, var(--bg)); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); }
.home-how .n { display: block; font-size: 44px; font-weight: 700; letter-spacing: -.05em; line-height: 1; color: var(--c); margin-bottom: 18px; }
.home-how h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.02em; }
.home-how p { margin: 0; font-size: 14.5px; color: var(--muted); }
.home-regs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 860px; margin: 30px auto 0; }
.hreg { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 16px 0 13px; border-radius: 99px; background: var(--bg);
  border: 1px solid var(--line); font-weight: 500; font-size: 14.5px; transition: transform .15s, border-color .15s, box-shadow .15s; }
.hreg:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand, var(--ink)) 40%, var(--line)); box-shadow: var(--shadow); }
.hreg .rlogo { width: 20px; height: 20px; color: var(--brand, var(--ink)); }
.hreg.auto { border-color: color-mix(in srgb, var(--mint) 45%, var(--line)); }
.hreg .tag { font-size: 11px; font-weight: 600; color: #fff; background: var(--mint); padding: 2px 7px; border-radius: 99px; margin-left: 2px; }
.home .lp-note { display: inline-flex; align-items: center; gap: 8px; }
.dot-auto { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.home-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: left; }
.perk .ic { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 14px;
  background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.perk .ic svg { width: 20px; height: 20px; }
.perk h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -.02em; }
.perk p { margin: 0; font-size: 14.5px; color: var(--muted); }
.home-cta { --pad: 64px; max-width: 1000px; width: calc(100% - 48px); margin: 96px auto 0; padding: var(--pad) 24px;
  border-radius: 28px; background: var(--grad); color: #fff; text-align: center; }
.home-cta h2 { font-size: clamp(28px, 4.2vw, 42px); letter-spacing: -.045em; font-weight: 600; margin: 0 0 8px; line-height: 1.1; }
.home-cta p { margin: 0 0 30px; opacity: .9; font-size: 16.5px; }
.home-cta .domain-form { background: #fff; border: 0; box-shadow: 0 20px 50px rgba(0,0,0,.18); max-width: 500px; }
.home-cta .domain-form input { color: #0a0a0a; }
.home-cta .domain-form .btn.primary { background: #0a0a0a; color: #fff; }
.home .foot { padding-top: 48px; }
.home .foot b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 860px) {
  .home-how, .home-perks { grid-template-columns: 1fr; }
  .home-cta { --pad: 44px; width: calc(100% - 32px); border-radius: 22px; }
}
@media (max-width: 520px) {
  .home-hero { padding-top: 7vh; }
  .home-sec { padding-top: 64px; }
  .hreg { height: 40px; font-size: 13.5px; padding: 0 13px 0 11px; }
}
@media (prefers-color-scheme: dark) { .hreg .rlogo { color: color-mix(in srgb, var(--brand, var(--ink)) 75%, #fff); } }

/* ---------- manual setup guide */
.gpick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 22px; font-size: 13.5px; }
.gpick .muted { margin-right: 4px; }
.gchip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line-2);
  background: var(--bg); cursor: pointer; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.gchip:hover { border-color: var(--ink); }
.gchip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.gchip .rlogo { width: 14px; height: 14px; }
.gsteps { list-style: none; counter-reset: g; padding: 20px 22px; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.gsteps li { counter-increment: g; position: relative; padding-left: 38px; margin: 0 0 14px; font-weight: 500; min-height: 26px; display: flex; flex-direction: column; justify-content: center; }
.gsteps li:last-child { margin-bottom: 0; }
.gsteps li::before { content: counter(g); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink);
  color: var(--bg); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.gsteps li > b { display: block; font-size: 15px; letter-spacing: -.01em; }
.gsteps .sub { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.gsteps .gopen { height: 38px; align-self: flex-start; }
.gsteps .sub { font-weight: 400; }
.rcs { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rc { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.rc:first-child { border-top: 0; }
.rc-t { font-family: var(--mono); font-size: 12.5px; font-weight: 600; padding-top: 6px; }
.rc-cells { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rc-cell { display: grid; grid-template-columns: 74px 1fr auto; gap: 8px; align-items: center; min-height: 32px; }
.rc-k { color: var(--faint); font-size: 12.5px; }
.rc-v { min-width: 0; word-break: break-all; font-family: var(--mono); font-size: 13px; }
.rc-cell .btn.sm { height: 28px; padding: 0 8px; }
.rc-note { font-size: 12.5px; color: var(--warn); }
@media (max-width: 520px) { .rc { grid-template-columns: 1fr; gap: 4px; } .rc-t { padding-top: 0; } .gsteps { padding: 16px; } }

/* ---------- compact Namecheap connect */
.nc-steps { list-style: none; counter-reset: n; padding: 0; margin: 14px 0 0; }
.nc-steps li { counter-increment: n; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px;
  padding: 6px 0; border-top: 1px solid var(--line); font-size: 14.5px; flex-wrap: wrap; }
.nc-steps li:first-child { border-top: 0; }
.nc-steps li > span:first-child::before { content: counter(n); display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px;
  border-radius: 50%; background: var(--bg-3); font-size: 12px; font-weight: 600; }
.nc-creds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.alt-line { text-align: center; font-size: 14px; color: var(--muted); margin: 4px 0 0; }
@media (max-width: 520px) { .nc-creds { grid-template-columns: 1fr; } }
.btn.sm.icon-only { width: 30px; padding: 0; }
