:root {
  /* White theme: white surfaces, hairline borders, one blue accent. */
  --bg: #ffffff;
  --surface: #ffffff;
  --subtle: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e8ebf0;
  --line-strong: #d9dee6;
  --hover: #f4f6f9;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eef3ff;
  --accent: #6366f1;
  --ok: #047857;
  --ok-soft: #ecfdf5;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --bad: #dc2626;
  --bad-soft: #fef2f2;
  --star: #f59e0b;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 32px -12px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .05);
  --ring: 0 0 0 3px rgba(37, 99, 235, .16);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
code { background: var(--hover); padding: 1px 5px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0 0 .4em; font-weight: 600; line-height: 1.25; }
h1 { font-size: 24px; } h2 { font-size: 18px; } h3 { font-size: 15px; } h4 { font-size: 14px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.grow { flex: 1; }
.wide { width: 100%; justify-content: center; }
.ic { width: 20px; height: 20px; fill: currentColor; flex: none; }
.ic.huge { width: 72px; height: 72px; opacity: .25; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 6px; padding: 9px 20px;
  font: inherit; font-weight: 500; cursor: pointer; background: var(--hover); color: var(--text); text-decoration: none !important; white-space: nowrap; }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--primary); }
.btn-outline:hover { background: var(--hover); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-lg { padding: 12px 26px; font-size: 15px; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent;
  color: var(--muted); cursor: pointer; font-size: 22px; text-decoration: none !important; }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.link { background: none; border: 0; padding: 0; color: var(--primary); cursor: pointer; font: inherit; }

/* Forms */
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  padding: 10px 12px; width: 100%; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--primary); }
.form { display: grid; gap: 16px; }
.form label, .grid-form label { display: grid; gap: 6px; font-weight: 500; }
.form small, .grid-form small { font-weight: 400; color: var(--muted); }
.form.narrow { max-width: 420px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: end; }
.inline-form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.inline-form label { display: grid; gap: 6px; font-weight: 500; }
.inline-form select { width: auto; min-width: 200px; }
.addr-input { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); }
.addr-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.addr-input input { border: 0; box-shadow: none !important; border-radius: 0; min-width: 0; }
.addr-suffix { display: flex; align-items: center; padding: 0 12px; background: var(--hover); color: var(--muted); font-weight: 400; white-space: nowrap; flex: none; max-width: 65%; overflow: hidden; text-overflow: ellipsis; }

/* Alerts, badges, toasts */
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.alert-error { background: var(--bad-soft); color: var(--bad); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--hover); color: var(--muted); text-transform: capitalize; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 4px; background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; background: #323232; color: #fff; padding: 12px 20px;
  border-radius: 6px; box-shadow: 0 4px 16px rgba(0, 0, 0, .3); max-width: min(640px, 92vw); transition: opacity .4s; }
.toast-warn { background: #7a4f00; }
.toast.hide { opacity: 0; pointer-events: none; }

/* Brand */
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; color: var(--text); text-decoration: none !important; letter-spacing: -.01em; }
.logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; color: #fff; flex: none;
  background: linear-gradient(140deg, #1d4ed8 0%, #4f46e5 55%, #0ea5e9 130%); box-shadow: 0 4px 12px -4px rgba(29, 78, 216, .55); }
.logo svg { width: 24px; height: 24px; fill: currentColor; }
.logo.big { width: 52px; height: 52px; border-radius: 6px; }
.logo.big svg { width: 36px; height: 36px; }
.wordmark { font-weight: 700; }
.wordmark b { font-weight: 400; color: var(--muted); margin-left: 3px; }

/* Public header */
.pubbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 5vw, 64px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.pubnav { display: flex; gap: 4px; margin-left: 12px; }
.pubnav a { color: var(--muted); font-weight: 500; padding: 8px 12px; border-radius: 6px; text-decoration: none !important; }
.pubnav a:hover, .pubnav a[aria-current] { color: var(--text); background: var(--hover); }
.pubcta { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.pubcta .link { font-weight: 500; }

/* Landing */
.landing { padding: 0 clamp(16px, 5vw, 64px); overflow-x: clip; }
.landing > section { max-width: 1180px; margin-left: auto; margin-right: auto; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head h2, .free-explainer h2, .privacy-band h2, .compare h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.02em; line-height: 1.15; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.hero { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 56px 0 72px; }
.hero::before { content: ""; position: absolute; inset: -40px -20vw 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 320px at 18% 20%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%),
              radial-gradient(520px 300px at 85% 30%, color-mix(in srgb, #0ea5e9 14%, transparent), transparent 70%); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ok); background: var(--ok-soft); padding: 6px 14px 6px 10px;
  border-radius: 6px; font-size: 13.5px; text-decoration: none !important; border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); line-height: 1.04; margin: 22px 0 20px; letter-spacing: -.035em; font-weight: 750; }
.grad { background: linear-gradient(90deg, #1d4ed8, #4f46e5 50%, #0ea5e9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18.5px; line-height: 1.6; color: var(--muted); max-width: 580px; }
.lead strong { color: var(--text); font-weight: 600; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 22px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 14px; }
.trust li { display: flex; align-items: center; gap: 6px; }
.trust .ic { width: 18px; height: 18px; color: var(--ok); }
.fine { color: var(--muted); font-size: 13px; }
.hero-art { position: relative; }
.mock { background: var(--surface); border-radius: 8px; box-shadow: 0 40px 80px -30px rgba(29, 78, 216, .45), 0 2px 6px rgba(0, 0, 0, .06); overflow: hidden; border: 1px solid var(--line); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock-bar > span { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.mock-url { margin: 0 auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); background: var(--hover); padding: 4px 14px; border-radius: 6px; }
.mock-url .ic { width: 13px; height: 13px; color: var(--ok); }
.mock-body { display: grid; grid-template-columns: 76px 1fr; min-height: 290px; }
.mock-side { padding: 16px 12px; display: grid; gap: 12px; align-content: start; border-right: 1px solid var(--line); }
.mock-side i { display: block; height: 10px; border-radius: 4px; background: var(--hover); }
.mock-side i.on { background: var(--primary-soft); }
.mock-compose { display: block; height: 26px; border-radius: 6px; background: var(--primary-soft); margin-bottom: 6px; }
.mock-list .row { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.mock-list .row.unread { color: var(--text); font-weight: 600; }
.mock-list .row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-list .row em { font-style: normal; font-size: 12px; }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  padding: 12px 16px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .3); font-size: 13px; }
.float-card small { display: block; color: var(--muted); }
.float-card .ic { color: var(--ok); width: 26px; height: 26px; }
.fc-1 { left: -28px; bottom: -22px; }
.fc-2 { right: -18px; top: -24px; }
.fc-num { font-size: 26px; font-weight: 800; color: var(--primary); line-height: 1; }
.clients { text-align: center; padding: 8px 0 64px; }
.clients p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.clients ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0; }
.clients li { padding: 7px 16px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-weight: 500; background: var(--surface); }
.free-explainer { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 48px; margin-bottom: 96px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .25); }
.free-explainer p { color: var(--muted); font-size: 16.5px; line-height: 1.65; }
.free-explainer p strong { color: var(--text); }
.link-arrow { font-weight: 600; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.stats > div { padding: 22px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); }
.stats dt { color: var(--muted); font-size: 13px; font-weight: 500; }
.stats dd { margin: 4px 0 0; font-size: 34px; font-weight: 750; letter-spacing: -.02em; }
.stats > div:first-child { background: linear-gradient(140deg, #1d4ed8, #4f46e5); border: 0; color: #fff; }
.stats > div:first-child dt { color: rgba(255, 255, 255, .8); }
.features { margin-bottom: 96px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 28px; transition: transform .15s, box-shadow .15s; }
.feature:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -24px rgba(0, 0, 0, .35); }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; line-height: 1.6; }
.fi { width: 46px; height: 46px; border-radius: 6px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 18px; }
.steps { margin-bottom: 96px; }
.steps ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.steps li > span { width: 38px; height: 38px; border-radius: 6px; display: grid; place-items: center; font-weight: 750; color: #fff; margin-bottom: 16px;
  background: linear-gradient(140deg, #1d4ed8, #4f46e5); }
.steps h3 { font-size: 17px; }
.steps p { margin: 0; color: var(--muted); line-height: 1.6; }
.privacy-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 56px; border-radius: 8px; margin-bottom: 96px;
  background: #0b1430; color: #e8ecf6; }
.privacy-band .kicker { color: #7dd3fc; }
.privacy-band p { color: #a9b4cc; font-size: 16.5px; line-height: 1.65; }
.privacy-band a { color: #93c5fd; }
.privacy-band .ticks li::before { background-color: #1e3a8a; color: #93c5fd; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; line-height: 1.5; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; background: var(--ok-soft); color: var(--ok); }
.pricing-section { margin-bottom: 96px; }
.plans { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; max-width: 920px; margin: 0 auto; align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 32px; display: grid; gap: 16px; }
.plan-featured { border: 2px solid var(--primary); box-shadow: 0 30px 60px -30px rgba(29, 78, 216, .45); }
.plan-head { display: flex; align-items: center; justify-content: space-between; }
.plan-head h3 { font-size: 20px; margin: 0; }
.plan-price { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.plan-price .amount { font-size: 52px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.plan-price .amount-sm { font-size: 34px; }
.plan-price .per { color: var(--muted); }
.plan-sub { margin: 0; color: var(--muted); }
.plan-note { margin: 0; text-align: center; color: var(--muted); font-size: 13px; }
.faq-section { margin-bottom: 96px; }
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); line-height: 1.65; }
.cta-band { margin-bottom: 72px; padding: 64px 24px; border-radius: 8px; text-align: center; color: #fff;
  background: radial-gradient(500px 240px at 20% 0%, rgba(14, 165, 233, .5), transparent 70%), linear-gradient(140deg, #1d4ed8, #4338ca); }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.02em; margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 0 0 26px; font-size: 17px; }
.page-hero { text-align: center; max-width: 760px !important; padding: 64px 0 48px; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 50px); letter-spacing: -.03em; line-height: 1.08; margin-bottom: 16px; }
.page-hero .lead { margin: 0 auto; }
.compare { max-width: 920px !important; margin-bottom: 96px; }
.compare h2 { text-align: center; margin-bottom: 24px; }
table.cmp { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
table.cmp th { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); width: 42%; }
table.cmp th, table.cmp td { padding: 16px 20px; }
table.cmp tr:last-child th, table.cmp tr:last-child td { border-bottom: 0; }

/* Documents (legal, security, contact) */
.doc-wrap { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 56px; justify-content: center; padding: 48px clamp(16px, 5vw, 64px) 72px; }
.legalnav { position: sticky; top: 88px; align-self: start; display: grid; gap: 2px; }
.legalnav a { color: var(--muted); padding: 8px 12px; border-radius: 6px; font-weight: 500; text-decoration: none !important; }
.legalnav a:hover { background: var(--hover); color: var(--text); }
.legalnav a[aria-current] { background: var(--primary-soft); color: var(--text); }
.doc { font-size: 15.5px; line-height: 1.75; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -.025em; margin-bottom: 8px; }
.doc h2 { font-size: 21px; margin: 40px 0 10px; letter-spacing: -.01em; scroll-margin-top: 90px; }
.doc .lead { font-size: 17.5px; max-width: none; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc table { font-size: 14px; line-height: 1.5; }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px 24px; margin: 24px 0; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 14.5px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 8px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px; line-height: 1.5; }
.contact-card .ic { color: var(--primary); }
.contact-card h3 { margin: 8px 0 4px; }
.contact-card p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.contact-card a { font-weight: 600; word-break: break-all; }

/* Site footer */
.sitefoot { border-top: 1px solid var(--line); background: var(--surface); padding: 56px clamp(16px, 5vw, 64px) 28px; margin-top: 24px; }
.sitefoot-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.sitefoot-brand p { color: var(--muted); max-width: 320px; }
.sitefoot nav { display: grid; gap: 8px; align-content: start; }
.sitefoot h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.sitefoot nav a { color: var(--text); }
.sitefoot-bottom { max-width: 1180px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13px; }
.sitefoot-meta { display: flex; gap: 18px; }
.sitefoot-meta a { color: var(--muted); }

/* Signup */
.signup-wrap { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 520px); gap: 56px; justify-content: center; align-items: start; padding: 40px 16px 72px; }
.signup-pitch { padding-top: 24px; }
.signup-pitch h2 { font-size: 30px; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 24px; }
.mini-steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; color: var(--muted); }
.mini-steps li { display: flex; gap: 12px; align-items: flex-start; }
.mini-steps b { flex: none; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 13px; }
.signup-wrap .auth-card { max-width: none; }
label.check.consent { align-items: flex-start; line-height: 1.5; font-size: 13.5px; color: var(--muted); }
label.check.consent input { margin-top: 2px; }
.plan-meter { min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; display: grid; gap: 6px; }
.plan-meter-top { display: flex; align-items: center; gap: 8px; }
.plan-meter .qbar { margin: 0; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

@media (max-width: 960px) {
  .pubnav { display: none; }
  .feature-grid, .steps ol { grid-template-columns: 1fr 1fr; }
  .free-explainer, .privacy-band, .plans { grid-template-columns: 1fr; }
  .free-explainer, .privacy-band { padding: 32px 24px; }
  .doc-wrap { grid-template-columns: 1fr; gap: 24px; }
  .legalnav { position: static; display: flex; flex-wrap: wrap; }
  .sitefoot-inner { grid-template-columns: 1fr 1fr; }
  .sitefoot-brand { grid-column: 1 / -1; }
  .signup-wrap { grid-template-columns: 1fr; gap: 24px; }
  .signup-pitch { display: none; }
}
@media (max-width: 600px) {
  .feature-grid, .steps ol, .contact-grid { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .pubcta .link { display: none; }
  .hero { padding: 32px 0 48px; }
}

/* Auth pages */
.auth-wrap { display: grid; place-items: start center; padding: 32px 16px 64px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.auth-card { width: 100%; max-width: 440px; padding: 36px; }
.auth-card.wide-card { max-width: 680px; }
.auth-card h1 { margin-top: 10px; }
.auth-logo { text-align: center; }
.auth-card .auth-logo + h1, .auth-card .auth-logo + h1 + p { text-align: center; }
.switch { text-align: center; margin: 22px 0 0; color: var(--muted); }
.help { margin-top: 20px; color: var(--muted); }
.help summary { cursor: pointer; color: var(--primary); }

/* App shell */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 16px; background: var(--bg); }
.topbar .brand { width: 232px; padding-left: 8px; }
.spacer { flex: 1; }
.search { flex: 1; max-width: 720px; display: flex; align-items: center; gap: 10px; background: var(--hover); border-radius: 6px; padding: 0 18px; height: 48px; }
.search:focus-within { background: var(--surface); box-shadow: var(--shadow); }
.search input { border: 0; background: transparent; box-shadow: none !important; padding: 0; height: 100%; }
.search .ic { color: var(--muted); }
.topnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-weight: 600; font-size: 14px;
  background: linear-gradient(135deg, #0ea5e9, var(--accent)); flex: none; }
.avatar.big { width: 40px; height: 40px; font-size: 17px; }
.account { position: relative; margin-left: 8px; }
.account summary { list-style: none; cursor: pointer; }
.account summary::-webkit-details-marker { display: none; }
.account .menu { position: absolute; right: 0; top: 44px; width: 300px; background: var(--surface); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(0, 0, 0, .2);
  padding: 20px; z-index: 30; }
.menu-head { display: grid; justify-items: center; gap: 4px; margin-bottom: 16px; text-align: center; }
.menu-head span { color: var(--muted); font-size: 13px; word-break: break-all; }
.app { display: flex; min-height: calc(100vh - 64px); }
.sidebar { width: 256px; flex: none; padding: 8px 16px 16px 8px; }
.compose-btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 24px; margin: 0 0 16px 0; border-radius: 8px; background: var(--primary-soft);
  color: var(--text); font-weight: 600; text-decoration: none !important; box-shadow: var(--shadow); }
.compose-btn:hover { box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.side-title { padding: 8px 16px 16px; font-weight: 600; font-size: 16px; }
.side-title small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.folders { display: grid; }
.folder { display: flex; align-items: center; gap: 16px; padding: 0 12px 0 20px; height: 34px; border-radius: 6px; color: var(--text);
  text-decoration: none !important; }
.folder:hover { background: var(--hover); }
.folder.current { background: var(--primary-soft); font-weight: 700; }
.folder.has-unread { font-weight: 700; }
.folder .ic { width: 19px; height: 19px; color: var(--muted); }
.folder.current .ic { color: var(--text); }
.fname { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.count { font-size: 12px; }
.newfolder { margin: 12px 0 0 8px; color: var(--muted); }
.newfolder summary { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 6px 12px; list-style: none; }
.newfolder form { display: grid; gap: 8px; padding: 8px 12px; }
.pane { flex: 1; min-width: 0; background: var(--surface); border-radius: var(--radius); margin: 0 16px 16px 0; overflow: hidden; }
.pane.padded { padding: 24px 28px; background: transparent; overflow: visible; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }

/* Message list */
.toolbar { display: flex; align-items: center; gap: 2px; padding: 8px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; min-height: 56px; }
.toolbar .sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.toolbar .range { color: var(--muted); font-size: 12.5px; margin-right: 8px; }
.movesel { width: auto; padding: 5px 8px; margin-left: 6px; font-size: 13px; }
.chk { display: inline-grid; place-items: center; width: 40px; height: 40px; cursor: pointer; }
.searchnote { padding: 10px 20px; background: var(--hover); color: var(--muted); }
.msglist { list-style: none; margin: 0; padding: 0; }
.msg { display: flex; align-items: center; border-bottom: 1px solid var(--line); padding-left: 12px; background: var(--hover); }
.msg.unread { background: var(--surface); }
.msg:hover { box-shadow: inset 1px 0 0 var(--line), inset -1px 0 0 var(--line), 0 1px 2px rgba(60, 64, 67, .3); position: relative; z-index: 1; }
.msg .star { color: var(--line); display: inline-grid; place-items: center; width: 32px; }
.msg .star.on, .icon-btn.star.on { color: var(--star); }
.msglink { flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; padding: 0 20px 0 6px; height: 42px; color: var(--text); text-decoration: none !important; }
.msg.unread .who, .msg.unread .subj, .msg.unread .when { font-weight: 700; }
.who { width: 200px; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subj { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.when { flex: none; font-size: 12.5px; color: var(--muted); }
.msg.unread .when { color: var(--text); }
.empty { text-align: center; padding: 72px 24px; color: var(--muted); }

/* Reader */
.reader { padding: 20px 28px 32px 72px; }
.reader .subject { font-size: 22px; font-weight: 400; margin: 4px 0 20px -56px; padding-left: 56px; }
.from-row { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 20px -56px; }
.from-meta { flex: 1; min-width: 0; word-break: break-word; }
.textbody { white-space: pre-wrap; word-wrap: break-word; font-size: 14.5px; line-height: 1.6; }
.htmlbody { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.attachments { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 16px; }
.attachments h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.att { display: inline-grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; margin: 0 10px 10px 0; color: var(--text); max-width: 260px; }
.att strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att:hover { background: var(--hover); text-decoration: none; }
.reply-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }

/* Compose */
.compose { display: flex; flex-direction: column; height: 100%; }
.compose-head { padding: 12px 20px; font-weight: 600; background: var(--hover); }
.compose .alert { margin: 12px 20px 0; }
.compose form { display: flex; flex-direction: column; flex: 1; }
.cfield { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 0 20px; }
.cfield > span, .cfield > label { color: var(--muted); width: 60px; flex: none; }
.cfield input { border: 0; box-shadow: none !important; padding: 12px 0; border-radius: 0; }
.cfield .static { padding: 12px 0; flex: 1; }
.ccbcc { display: none; }
.ccbcc.open { display: flex; }
.cbody { border: 0; border-radius: 0; box-shadow: none !important; padding: 16px 20px; flex: 1; resize: vertical; min-height: 320px; line-height: 1.6; }
.compose-foot { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); }
.attach-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; color: var(--muted); }
.attach-btn:hover { background: var(--hover); }
.attach-btn input { display: none; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.dns td.val { max-width: 420px; }
code.wrap { display: inline; word-break: break-all; white-space: normal; }
.found { overflow-wrap: anywhere; display: inline-block; max-width: 240px; }
.copy { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 2px; vertical-align: middle; border-radius: 4px; }
.copy .ic { width: 15px; height: 15px; }
.copy:hover { color: var(--primary); background: var(--hover); }
.copy.copied { color: var(--ok); }
.split summary { cursor: pointer; color: var(--primary); font-size: 12.5px; margin-top: 6px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.usercell { display: flex; align-items: center; gap: 12px; }
tr.dim td { opacity: .6; }
.row-actions { position: relative; }
.row-actions summary { list-style: none; }
.row-actions summary::-webkit-details-marker { display: none; }
.row-actions .pop { position: absolute; right: 0; top: 40px; z-index: 10; width: 300px; display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 6px; padding: 16px; box-shadow: 0 8px 28px rgba(0, 0, 0, .18); }
.row-actions .pop label { display: grid; gap: 6px; }
.row-btns { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.danger-zone { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .topbar .brand { width: auto; }
  .topbar .brand span:last-child { display: none; }
  .app { flex-direction: column; }
  .sidebar { width: 100%; padding: 8px 12px; }
  .folders { display: flex; overflow-x: auto; gap: 4px; }
  .folder { border-radius: 6px; padding: 0 14px; flex: none; }
  .newfolder { display: none; }
  .compose-btn { padding: 10px 18px; margin-bottom: 8px; }
  .pane { margin: 0 8px 8px; }
  .pane.padded { padding: 16px 8px; }
  .who { width: 110px; }
  .reader { padding: 16px; }
  .reader .subject, .from-row { margin-left: 0; padding-left: 0; }
  .grid2 { grid-template-columns: 1fr; }
}

/* Quota, aliases, compose From */
.quota { margin: 20px 12px 0 20px; color: var(--muted); }
.qbar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-bottom: 6px; }
.qbar span { display: block; height: 100%; background: var(--primary); }
.qbar span.full { background: var(--bad); }
.qbar.small-bar { width: 120px; margin-bottom: 4px; }
.targets { border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; margin: 0; display: grid; gap: 6px; max-height: 260px; overflow: auto; }
.targets legend { padding: 0 6px; font-weight: 500; }
label.check { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; }
label.check input { width: 16px; }
.fromsel { border: 0; box-shadow: none !important; padding: 10px 0; background: transparent; }
@media (max-width: 900px) { .quota { display: none; } }
.errcard { text-align: center; }
.errcard .cta { justify-content: center; margin-bottom: 0; }
.errcode { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin: 0 0 8px; }

/* Two-step verification */
.mfa-card { max-width: 460px; }
.mfa-card h1 { text-align: center; }
.mfa-card > .muted { text-align: center; }
.mfa-method { display: grid; gap: 14px; margin-top: 8px; }
.mfa-method > p { margin: 0; text-align: center; }
.mfa-icon { width: 52px; height: 52px; border-radius: 8px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); justify-self: center; flex: none; }
.mfa-icon .ic { width: 26px; height: 26px; }
.mfa-icon.sm { width: 40px; height: 40px; border-radius: 6px; }
.mfa-icon.sm .ic { width: 20px; height: 20px; }
input.otp { font-size: 24px; letter-spacing: .3em; text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.inline-form input.otp { width: 9em; font-size: 18px; }
label.check.remember { justify-content: center; color: var(--muted); font-size: 13.5px; }
.resend { text-align: center; margin-top: 12px; }
.mfa-alt { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; }
.mfa-alt p { margin: 0 0 10px; }
.mfa-alt nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; }
.mfa-alt nav a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); font-size: 13.5px; text-decoration: none; }
.mfa-alt nav a:hover { background: var(--hover); }
.mfa-alt nav .ic { width: 16px; height: 16px; color: var(--primary); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 6px; font-weight: 600; font-size: 13px; }
.status-pill .ic { width: 16px; height: 16px; }
.status-pill.on { background: var(--ok-soft); color: var(--ok); }
.status-pill.off { background: var(--warn-soft); color: var(--warn); }
.method { border-top: 1px solid var(--line); padding: 18px 0 4px; }
.method:first-of-type { margin-top: 8px; }
.method-head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.method-head h3 { display: flex; align-items: center; gap: 8px; margin: 2px 0; }
.method-head p { margin: 2px 0 0; }
.method-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.method-list li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; }
.pk-add { display: flex; gap: 8px; align-items: center; }
.pk-add .pkname { width: 190px; padding: 6px 10px; }
.totp-setup { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; margin: 16px 0 0 54px; }
.totp-setup ol { padding-left: 18px; margin: 0 0 12px; display: grid; gap: 8px; }
.qr { border-radius: 6px; background: #fff; padding: 8px; border: 1px solid var(--line); }
code.secret { word-break: break-all; font-size: 13px; letter-spacing: .05em; }
.indent { margin: 14px 0 0 54px; }
.reveal { border: 2px solid var(--primary); }
.codes { columns: 2; padding-left: 22px; font-size: 15px; line-height: 2; max-width: 420px; }
.tokenval code { font-size: 22px; padding: 8px 14px; letter-spacing: .06em; }
@media (max-width: 700px) { .totp-setup, .indent { margin-left: 0; } .pk-add { flex-wrap: wrap; } }

/* Talk to sales */
.sales-grid { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: 48px; align-items: start; margin-bottom: 96px; }
.sales-offers { display: grid; gap: 18px; padding-top: 8px; }
.offer { display: flex; gap: 16px; }
.offer > .ic { flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); }
.offer h3 { margin: 2px 0 4px; font-size: 16px; }
.offer p { margin: 0; color: var(--muted); line-height: 1.55; }
.sales-card { padding: 32px; }
.topics { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.topics legend { font-weight: 500; margin-bottom: 8px; }
.topic { display: flex !important; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; font-weight: 400 !important; }
.topic:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.topic input { width: 16px; margin-top: 3px; flex: none; accent-color: var(--primary); }
.topic small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sent { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 24px 0; }
@media (max-width: 960px) { .sales-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .topics { grid-template-columns: 1fr; } }
.tokenval code { font-size: 17px; word-break: break-all; }
.scopes { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.scopes legend { font-weight: 500; margin-bottom: 8px; }
.how h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.how h4 .ic { color: var(--primary); width: 18px; height: 18px; }
pre.code { background: #0b1430; color: #dbe4ff; padding: 14px 16px; border-radius: 6px; overflow-x: auto; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; margin: 8px 0; }
li.dim { opacity: .6; }
@media (max-width: 700px) { .scopes { grid-template-columns: 1fr; } }
.verb { display: inline-block; font: 700 11px/1 ui-monospace, Menlo, monospace; padding: 4px 7px; border-radius: 4px; margin-right: 4px; color: #fff; vertical-align: 1px; }
.verb.get { background: #15803d; } .verb.post { background: #1d4ed8; } .verb.patch { background: #b45309; } .verb.delete { background: #b91c1c; }
.api-doc pre.code { font-size: 12.5px; }

/* Rules, scheduled, activity */
.rule-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rule-line > span { color: var(--muted); }
.rule-line select, .rule-line input:not([type=checkbox]) { width: auto; min-width: 200px; flex: 1 1 200px; }
.rule-actions { display: flex; gap: 4px; align-items: center; }
.rule-actions .icon-btn { width: 32px; height: 32px; font-size: 16px; }
.rule-actions .icon-btn[disabled] { opacity: .3; }
.sendlater { position: relative; }
.sendlater summary { list-style: none; }
.sendlater summary::-webkit-details-marker { display: none; }
.sendlater .pop { position: absolute; bottom: 48px; left: 0; z-index: 10; width: 260px; display: grid; gap: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px; padding: 16px; box-shadow: 0 8px 28px rgba(0, 0, 0, .18); }
.sendlater .pop label { display: grid; gap: 6px; }
.msg.sched { padding-right: 16px; }
.toolbar .pad { padding: 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); text-decoration: none; font-size: 13px; background: var(--surface); }
.chips a[aria-current] { background: var(--primary-soft); border-color: var(--primary); }
.nowrap { white-space: nowrap; }
table.activity td { vertical-align: top; }
/* Keep code blocks inside narrow grid columns. */
.grid2 > *, .doc, .how > * { min-width: 0; }
pre.code { max-width: 100%; white-space: pre; }
@media (max-width: 960px) { .doc-wrap { grid-template-columns: minmax(0, 1fr); } }
.kv dd { min-width: 0; overflow-wrap: anywhere; }
table.activity .badge { text-transform: none; white-space: nowrap; }
.scopes.two { grid-template-columns: 1fr 1fr; } @media (max-width: 700px) { .scopes.two { grid-template-columns: 1fr; } }

/* Rich-text compose */
.rtbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 16px; border-bottom: 1px solid var(--line); }
.rtbar button { border: 1px solid transparent; background: transparent; color: var(--text); border-radius: 6px; padding: 4px 9px; cursor: pointer; font: inherit; font-size: 13px; min-width: 30px; }
.rtbar button:hover { background: var(--hover); border-color: var(--line); }
.rt-mode { color: var(--primary) !important; font-weight: 600 !important; }
.rt-tools { display: inline-flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.rt-tools[hidden] { display: none; }
.rt-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.rt-red { color: #c62828 !important; font-weight: 700; }
.reditor { overflow-y: auto; outline: none; min-height: 320px; padding: 16px 20px; line-height: 1.6; font-size: 14.5px; }
.reditor blockquote { margin: 6px 0; padding-left: 12px; border-left: 3px solid var(--line); color: var(--muted); }
.reditor:empty::before { content: "Write your message…"; color: var(--muted); }
.cerr { margin: 8px 20px !important; }
.kept { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 20px; border-top: 1px solid var(--line); }
.chip { display: inline-flex !important; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; cursor: pointer; background: var(--hover); }
.chip input { width: 14px; height: 14px; }
.chip .ic { width: 15px; height: 15px; color: var(--muted); }
.chip:has(input:not(:checked)) { opacity: .5; text-decoration: line-through; }

/* Pictures & logos */
img.avatar { object-fit: cover; background: var(--hover); padding: 0; }
summary.avatar { overflow: hidden; }
summary.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.huge { width: 88px; height: 88px; font-size: 36px; }
.profile-row { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.profile-row .grow { display: grid; gap: 12px; min-width: 240px; }
.ws-logo { height: 36px; max-width: 200px; object-fit: contain; }
.side-logo { display: block; max-height: 40px; max-width: 180px; object-fit: contain; margin-bottom: 8px; }
.logo-preview { width: 240px; height: 88px; border: 1px dashed var(--line); border-radius: 6px; display: grid; place-items: center; background: var(--surface); }
.logo-preview img { max-width: 220px; max-height: 72px; object-fit: contain; }
.lav { flex: none; width: 26px; height: 26px; border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center;
  background: linear-gradient(135deg, #0ea5e9, var(--accent)); color: #fff; font-size: 12px; font-weight: 600; }
.lav img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .lav { display: none; } }

/* ================================================================
   Modern white theme
   Clean surfaces, hairline borders, generous spacing, one accent.
   ================================================================ */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body { font-family: "Inter", "InterVariable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; letter-spacing: -.003em; background: #fff; color: var(--text); }
h1 { font-size: 22px; font-weight: 650; letter-spacing: -.015em; }
h2 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
h3 { font-weight: 600; }
::selection { background: #dbe6ff; }
a { color: var(--primary); }
code { background: var(--subtle); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; color: #334155; }

/* Buttons */
.btn { border-radius: 6px; padding: 8px 16px; font-weight: 550; font-size: 14px; background: #fff; border: 1px solid var(--line-strong);
  color: #1e293b; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); transition: background .12s, border-color .12s, box-shadow .12s, transform .06s; }
.btn:hover { background: var(--subtle); border-color: #cbd2dc; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(37, 99, 235, .25), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline { background: #fff; color: #1e293b; }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--primary); }
.btn-lg { padding: 11px 22px; font-size: 15px; border-radius: 6px; }
.btn-sm { padding: 5px 11px; font-size: 13px; border-radius: 6px; }
.icon-btn { width: 36px; height: 36px; border-radius: 6px; color: #64748b; }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.link:hover { text-decoration: underline; }

/* Forms */
input, select, textarea { border: 1px solid var(--line-strong); border-radius: 6px; padding: 9px 12px; background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03); transition: border-color .12s, box-shadow .12s; }
input:hover, select:hover, textarea:hover { border-color: #c5ccd6; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: var(--ring); }
input::placeholder, textarea::placeholder { color: #94a3b8; }
.form label, .grid-form label, .inline-form label { font-weight: 550; color: #1e293b; font-size: 13.5px; }
.addr-input { border-color: var(--line-strong); }
.addr-input:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.addr-suffix { background: var(--subtle); border-left: 1px solid var(--line); }

/* Cards, alerts, badges, toast */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px; }
.card > h2:first-child { margin-bottom: 6px; }
.alert { border: 1px solid transparent; border-radius: 6px; font-size: 13.5px; }
.alert-error { background: var(--bad-soft); border-color: #fecaca; color: #b91c1c; }
.alert-warn { background: var(--warn-soft); border-color: #fde68a; color: #92400e; }
.alert-ok { background: var(--ok-soft); border-color: #a7f3d0; color: #065f46; }
.badge { background: var(--hover); color: #475569; font-weight: 600; font-size: 11.5px; padding: 2px 9px; border: 1px solid var(--line); }
.badge-ok { background: var(--ok-soft); color: var(--ok); border-color: #c6f0de; }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: #fde7b0; }
.badge-bad { background: var(--bad-soft); color: var(--bad); border-color: #fbd0d0; }
.toast { background: #0f172a; border-radius: 6px; font-size: 13.5px; padding: 11px 18px; box-shadow: 0 12px 32px -8px rgba(15, 23, 42, .4); }
.toast-warn { background: #7c2d12; }
.status-pill.on { border: 1px solid #c6f0de; }
.status-pill.off { border: 1px solid #fde7b0; }

/* Logo mark */
.logo { border-radius: 6px; box-shadow: 0 2px 8px -2px rgba(37, 99, 235, .45); background: linear-gradient(140deg, #2563eb 0%, #4f46e5 70%, #6366f1 100%); }

/* ---------------------------------------------------------- App shell */
.topbar { height: 60px; padding: 0 20px 0 16px; background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.topbar .brand { width: 228px; font-size: 17px; }
.search { height: 40px; max-width: 640px; border-radius: 6px; background: var(--hover); border: 1px solid transparent; padding: 0 14px; }
.search:hover { background: #eef1f5; }
.search:focus-within { background: #fff; border-color: var(--primary); box-shadow: var(--ring); }
.search .ic { width: 18px; height: 18px; color: #94a3b8; }
.topnav { gap: 2px; }
.avatar { background: linear-gradient(135deg, #60a5fa, #6366f1); font-weight: 600; }
summary.avatar { width: 34px; height: 34px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.account .menu { top: 46px; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-lg); }

.app { min-height: calc(100vh - 60px); background: #fff; }
.sidebar { width: 248px; padding: 16px 12px; border-right: 1px solid var(--line); background: #fff; }
.compose-btn { display: flex; justify-content: center; gap: 10px; padding: 11px 16px; margin: 0 4px 18px; border-radius: 6px;
  background: var(--primary); color: #fff; font-weight: 600; box-shadow: 0 1px 2px rgba(37, 99, 235, .25), 0 6px 16px -8px rgba(37, 99, 235, .6); }
.compose-btn:hover { background: var(--primary-dark); box-shadow: 0 1px 2px rgba(37, 99, 235, .25), 0 8px 20px -8px rgba(37, 99, 235, .7); }
.compose-btn .ic { width: 18px; height: 18px; }
.side-title { padding: 6px 12px 16px; font-size: 15px; }
.folders { gap: 1px; }
.folder { height: 34px; padding: 0 10px 0 12px; gap: 12px; border-radius: 6px; color: #334155; font-weight: 500; }
.folder:hover { background: var(--hover); }
.folder .ic { width: 18px; height: 18px; color: #94a3b8; }
.folder.current { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.folder.current .ic { color: var(--primary); }
.folder.has-unread { font-weight: 600; color: var(--text); }
.count { font-size: 11.5px; font-weight: 600; color: #64748b; }
.folder.has-unread .count:not(:empty) { background: var(--primary); color: #fff; border-radius: 6px; padding: 0 7px; line-height: 18px; min-width: 20px; text-align: center; }
.newfolder { margin: 10px 0 0; }
.newfolder summary { padding: 6px 12px; border-radius: 6px; font-weight: 500; font-size: 13.5px; }
.newfolder summary:hover { background: var(--hover); color: var(--text); }
.quota { margin: 22px 12px 0; font-size: 12px; }
.qbar { height: 5px; background: #eef1f5; }

.pane { margin: 0; border-radius: 0; background: #fff; }
.pane.padded { padding: 28px 36px 48px; max-width: 1080px; }
.page-head { margin-bottom: 24px; }
.page-head h1 { margin-bottom: 2px; }

/* Message list */
.toolbar { min-height: 52px; padding: 6px 16px; gap: 4px; border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 60px; z-index: 5; }
.toolbar .icon-btn { width: 34px; height: 34px; }
.toolbar .sep { background: var(--line); }
.movesel { border-radius: 6px; padding: 5px 8px; }
.chk { width: 34px; height: 34px; }
.msg { background: #fff; padding-left: 10px; border-bottom: 1px solid #f1f3f6; transition: background .08s; }
.msg:hover { background: var(--subtle); box-shadow: none; }
.msg.unread { background: #fff; }
.msg.unread .msglink { position: relative; }
.msg.unread .msglink::before { content: ""; position: absolute; left: -6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--primary); }
.msglink { height: 46px; gap: 14px; padding: 0 20px 0 10px; }
.who { width: 190px; color: #334155; }
.subj { color: #475569; }
.msg.unread .who, .msg.unread .subj { color: var(--text); font-weight: 600; }
.msg.unread .when { font-weight: 600; color: var(--text); }
.when { font-size: 12px; color: #94a3b8; font-variant-numeric: tabular-nums; }
.msg .star { color: #cbd5e1; }
.lav { width: 28px; height: 28px; background: linear-gradient(135deg, #93c5fd, #a5b4fc); color: #1e3a8a; }
.searchnote { background: var(--subtle); border-bottom: 1px solid var(--line); font-size: 13px; }
.empty { padding: 96px 24px; }
.empty .ic.huge { opacity: .18; }

/* Reader */
.reader { padding: 28px 40px 40px 84px; max-width: 980px; }
.reader .subject { font-size: 22px; font-weight: 600; letter-spacing: -.015em; }
.from-row .avatar.big { width: 40px; height: 40px; }
.textbody { font-size: 15px; line-height: 1.65; color: #1e293b; }
.htmlbody { border: 1px solid var(--line); border-radius: 6px; }
.att { border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.att:hover { border-color: var(--line-strong); background: var(--subtle); }
.reply-actions .btn { border-radius: 6px; }

/* Compose */
.compose-head { background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px; font-size: 15px; }
.cfield { padding: 0 24px; border-bottom: 1px solid #f1f3f6; }
.cfield > span, .cfield > label { color: #94a3b8; font-weight: 500; }
.cfield input, .cfield select { box-shadow: none !important; }
.rtbar { padding: 6px 20px; border-bottom: 1px solid #f1f3f6; background: #fff; }
.rtbar button { border-radius: 4px; color: #475569; }
.rtbar button:hover { background: var(--hover); border-color: transparent; color: var(--text); }
.cbody, .reditor { padding: 18px 24px; font-size: 15px; }
.compose-foot { padding: 12px 24px; border-top: 1px solid var(--line); background: #fff; }
.chip { background: #fff; border-color: var(--line-strong); }
.sendlater .pop, .row-actions .pop { border-radius: 6px; box-shadow: var(--shadow-lg); }

/* Tables & lists */
th { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: #64748b; background: var(--subtle); }
th, td { border-bottom: 1px solid #f1f3f6; padding: 11px 12px; }
table.data tbody tr:hover td { background: #fbfcfe; }
.method { border-top-color: #f1f3f6; }
.method-list li { border-color: var(--line); border-radius: 6px; }
.mfa-icon { background: var(--primary-soft); color: var(--primary); }

/* Auth pages */
.auth-wrap { padding: 48px 16px 80px; background: radial-gradient(800px 360px at 50% -80px, #eef3ff, transparent 70%); }
.auth-card { border-radius: 8px; box-shadow: var(--shadow-lg); padding: 36px 36px 30px; }
.auth-card h1 { font-size: 24px; }

/* ------------------------------------------------------- Public site */
.pubbar { background: rgba(255, 255, 255, .88); border-bottom: 1px solid var(--line); padding-block: 12px; }
.pubnav a { font-size: 14px; color: #475569; }
.pubnav a:hover, .pubnav a[aria-current] { background: var(--hover); color: var(--text); }
.hero::before { background: radial-gradient(600px 300px at 15% 15%, rgba(37, 99, 235, .10), transparent 70%),
  radial-gradient(520px 280px at 85% 25%, rgba(99, 102, 241, .09), transparent 70%); }
.hero h1 { font-weight: 700; letter-spacing: -.04em; }
.grad { background-image: linear-gradient(90deg, #2563eb, #6366f1); }
.eyebrow { background: #fff; color: #065f46; border: 1px solid #c6f0de; box-shadow: var(--shadow); }
.mock { border-color: var(--line); box-shadow: 0 30px 70px -30px rgba(15, 23, 42, .28), 0 2px 6px rgba(15, 23, 42, .05); }
.float-card { border-color: var(--line); box-shadow: var(--shadow-lg); }
.clients li { background: #fff; border-color: var(--line); color: #475569; }
.free-explainer, .feature, .steps li, .plan, .faq details, .toc, .contact-card { border-color: var(--line); box-shadow: var(--shadow); }
.free-explainer { box-shadow: var(--shadow-lg); }
.stats > div { background: var(--subtle); border-color: var(--line); }
.stats > div:first-child { background: linear-gradient(140deg, #2563eb, #4f46e5); }
.feature:hover { box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.fi { background: var(--primary-soft); color: var(--primary); border-radius: 6px; }
.steps li > span { background: var(--primary); }
/* The dark privacy band becomes a light, airy panel. */
.privacy-band { background: linear-gradient(180deg, #f8faff, #f1f5ff); color: var(--text); border: 1px solid #e3eaff; }
.privacy-band .kicker { color: var(--primary); }
.privacy-band p { color: #475569; }
.privacy-band a { color: var(--primary); }
.privacy-band .ticks li::before { background-color: var(--ok-soft); color: var(--ok); }
.plan-featured { border: 1.5px solid var(--primary); box-shadow: 0 24px 48px -24px rgba(37, 99, 235, .35); }
.faq summary::after { color: #94a3b8; }
.cta-band { background: radial-gradient(500px 240px at 15% 0%, rgba(255, 255, 255, .18), transparent 70%), linear-gradient(135deg, #2563eb, #4f46e5); }
.sitefoot { background: #fff; }
.sitefoot nav a { color: #475569; }
.sitefoot nav a:hover { color: var(--text); }
.legalnav a[aria-current] { background: var(--primary-soft); color: var(--primary); }
table.cmp { box-shadow: var(--shadow); }
/* Code samples on light background */
pre.code { background: var(--subtle); color: #1e293b; border: 1px solid var(--line); }
.verb { box-shadow: none; }

@media (max-width: 900px) {
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; }
  .compose-btn { display: inline-flex; margin: 0 0 8px; }
  .folder { border-radius: 6px; }
  .pane.padded { padding: 20px 16px 40px; }
  .reader { padding: 20px 16px; }
  .toolbar { top: 60px; }
}
/* Fixes after visual review */
.toolbar { position: static; }
input, select, textarea { font-weight: 400; }
label small, .form small, .grid-form small, .inline-form small { font-weight: 400 !important; color: var(--muted); }
input[type=file] { padding: 6px 8px; color: #475569; font-size: 13px; }
input[type=file]::file-selector-button { font: inherit; font-weight: 550; margin-right: 12px; padding: 6px 12px; border-radius: 6px;
  border: 1px solid var(--line-strong); background: #fff; color: #1e293b; cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--subtle); }
label.check { font-weight: 500 !important; color: #334155; }
input[type=checkbox], input[type=radio] { box-shadow: none; }
.grid-form { align-items: start; }
.grid-form > div:last-child { align-self: end; }

/* Crisp corners: small radii everywhere; only avatars and dots are round. */
.qbar, .qbar span { border-radius: 2px; }
.logo { border-radius: 6px; }
.logo.big { border-radius: 8px; }
.folder.has-unread .count:not(:empty) { border-radius: 4px; }
.mock-bar > span, .eyebrow .dot, .lav, .avatar, summary.avatar, img.avatar { border-radius: 50%; }

/* Recipient autocomplete */
.cfield { position: relative; }
.ac-list { position: absolute; left: 90px; top: 100%; z-index: 20; min-width: 280px; max-width: calc(100% - 100px); margin: 2px 0 0; padding: 4px 0; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.ac-list li { display: flex; flex-direction: column; padding: 6px 12px; cursor: pointer; }
.ac-list li span { color: var(--muted); font-size: 12px; }
.ac-list li.on, .ac-list li:hover { background: var(--primary-soft); }
@media (max-width: 600px) { .ac-list { left: 12px; max-width: calc(100% - 24px); min-width: 0; } }

/* Remote images */
.images-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; padding: 10px 12px;
  background: var(--subtle); border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; }
.images-bar .ic { width: 16px; height: 16px; color: var(--muted); }
.images-bar .grow { flex: 1 1 240px; }
.images-bar form { margin: 0; }
.images-note { margin-top: 6px; }
.images-note .link { padding: 0; }

/* Settings lists */
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { border-top: 1px solid var(--line); padding: 6px 0; }
.plain-list li:first-child { border-top: 0; }
.public-pic { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

/* Conversations */
.msglist .who .count { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 2px; }
.conversation .cmsg { border-bottom: 1px solid var(--line); }
.conversation .cmsg:last-of-type { border-bottom: 0; }
.cmsg > summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 12px; padding: 12px 4px; }
.cmsg > summary::-webkit-details-marker { display: none; }
.cmsg > summary:hover { background: var(--hover); }
.cmsg > summary .avatar { flex: none; }
.cmsg > summary .from-meta { flex: 1; min-width: 0; }
.cmsg > summary .when { flex: none; white-space: nowrap; }
.cmsg-snippet { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmsg[open] .cmsg-snippet, .cmsg:not([open]) .cmsg-to, .cmsg:not([open]) .cmsg-addr { display: none; }
.cmsg-who .pill { margin-left: 6px; font-size: 11px; vertical-align: 1px; }
.cmsg-body { padding: 0 4px 16px 56px; }
.cmsg-body .htmlbody { height: 60vh; resize: vertical; }
.cmsg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }
.cmsg-actions .link { display: inline-flex; align-items: center; gap: 4px; }
.cmsg-actions .ic { width: 15px; height: 15px; }
.quoted { margin-top: 8px; }
.quoted > summary { list-style: none; display: inline-block; cursor: pointer; padding: 0 8px; line-height: 14px; border-radius: 8px;
  background: var(--hover); border: 1px solid var(--line); color: var(--muted); letter-spacing: 1px; }
.quoted > summary::-webkit-details-marker { display: none; }
.quoted .textbody { margin-top: 8px; color: var(--muted); }
@media (max-width: 600px) { .cmsg-body { padding-left: 4px; } }

/* Folder counts: unread (highlighted) / total */
.folder .count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.folder .count .total { color: var(--muted); font-weight: 400; }
.folder .count .of { color: var(--muted); font-weight: 400; margin: 0 2px; }
.folder .count .unseen { color: var(--primary); font-weight: 700; }
