:root {
  --bg: #111111;
  --bg2: #1a1a1a;
  --bg3: #222221;
  --ink: #f3f2ed;
  --mut: #ababa5;
  --dim: #90908a;
  --a: #c8ff2f;
  --a-deep: #557200;
  --bad: #ff8a7a;
  --line: rgba(243, 242, 236, 0.1);
  --line2: rgba(243, 242, 236, 0.18);
  --r1: 7px;
  --r2: 11px;
  --r3: 14px;
  --r4: 20px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --disp: 'Funnel Display', 'Noto Sans SC', system-ui, sans-serif;
  --body: 'Geist', 'Noto Sans SC', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; border-radius: 6px; }
:where(time, code, .num, .badge, .tile b) { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* logo: the Bolt Z tile and the lowercase wordmark */
.logo { --H: 34px; display: inline-flex; align-items: center; gap: calc(var(--H) * 0.3); line-height: 1; }
.mark { display: block; width: var(--H); height: var(--H); flex: none; }
.wordmark { font: 600 calc(var(--H) * 0.72) / 1 var(--disp); letter-spacing: -0.02em; color: var(--ink); }

/* buttons and links */
.primary, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: var(--r2);
  background: var(--a); color: #111; font: 600 15px/1 var(--body); white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.primary:hover, .btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -12px rgba(200, 255, 47, 0.55); }
.primary:active, .btn:active { transform: none; }
.primary:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
.secondary {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: var(--r2);
  background: rgba(243, 242, 236, 0.06); box-shadow: inset 0 0 0 1px var(--line2);
  font: 500 14px/1 var(--body); transition: background 0.2s;
}
.secondary:hover { background: rgba(243, 242, 236, 0.11); }
.secondary:disabled { opacity: 0.55; cursor: default; }
.link-button { color: var(--mut); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: var(--ink); }
.again { color: var(--a); text-decoration: underline; text-underline-offset: 3px; }
.form-error {
  margin-top: 12px; padding: 10px 12px; border-radius: 9px; color: var(--bad); font-size: 14px;
  background: rgba(255, 138, 122, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 138, 122, 0.3);
}
.hint { margin-top: 10px; color: var(--dim); font-size: 13.5px; line-height: 1.45; }

/* ---------- landing page ---------- */
.land { min-height: 100vh; display: flex; flex-direction: column; }
.land-top { display: flex; align-items: center; justify-content: space-between; padding: 24px clamp(20px, 4vw, 56px); }
.land-top a.top-link { color: var(--mut); font-size: 14.5px; }
.land-top a.top-link:hover { color: var(--ink); }
.hero { flex: 1; display: grid; align-content: center; justify-items: center; text-align: center; padding: clamp(40px, 9vh, 110px) 20px clamp(48px, 9vh, 100px); }
.hero h1 { max-width: 14ch; font: 600 clamp(44px, 8.6vw, 104px) / 1 var(--disp); letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--a); }
.hero .lede { max-width: 34rem; margin-top: 24px; color: var(--mut); font-size: clamp(17px, 2.2vw, 20px); line-height: 1.5; }
.start { width: min(640px, 100%); margin-top: 40px; text-align: left; }
.start-row {
  display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 999px;
  background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line2); transition: box-shadow 0.2s;
}
.start-row:focus-within { box-shadow: inset 0 0 0 2px var(--a); }
.start-field { flex: 1; min-width: 0; display: flex; align-items: center; padding-left: 18px; }
.start-scheme { color: var(--dim); font: 400 15px var(--mono); }
.start .start-field input { flex: 1; min-width: 0; height: 44px; padding: 0 0 0 2px; border-radius: 0; background: none; box-shadow: none; color: var(--ink); font: 400 17px var(--body); }
.start input::placeholder { color: var(--dim); }
.start .primary { border-radius: 999px; height: 48px; padding: 0 26px; }
.start .label-error { margin: 12px 18px 0; color: var(--bad); font-size: 14px; }
.land .hint { text-align: center; }
.facts { width: min(980px, calc(100% - 40px)); margin: 0 auto; padding-bottom: clamp(56px, 10vw, 110px); display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.fact { padding: 20px; border-radius: var(--r3); background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); }
.fact h3 { font: 600 17px/1.3 var(--disp); }
.fact p { margin-top: 6px; color: var(--mut); font-size: 14.5px; line-height: 1.5; }
.land-foot { padding: 28px clamp(20px, 4vw, 56px) 36px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13.5px; }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px;
  padding: 22px 14px 18px; border-right: 1px solid var(--line); background: #151515;
}
.side .logo { padding: 0 10px; margin-bottom: 22px; }
.nav { display: grid; gap: 2px; }
.nav small { padding: 8px 12px 6px; color: var(--dim); font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 9px; color: var(--mut); font-size: 14.5px; }
.nav a:hover { color: var(--ink); background: rgba(243, 242, 236, 0.05); }
.nav a[aria-current='true'] { color: var(--ink); background: rgba(200, 255, 47, 0.1); box-shadow: inset 0 0 0 1px rgba(200, 255, 47, 0.3); }
.nav-n { min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 99px; background: var(--a); color: #111; font: 700 11px var(--mono); }
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.side-foot a { padding: 9px 12px; border-radius: 9px; color: var(--mut); font-size: 14px; }
.side-foot a:hover { color: var(--ink); background: rgba(243, 242, 236, 0.05); }
.page { min-width: 0; padding: 32px clamp(16px, 3vw, 44px) 96px; max-width: 1040px; }

.page-head { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.request-site { font: 600 40px / 1.1 var(--disp); letter-spacing: -0.02em; word-break: break-word; }
.lede { margin-top: 8px; color: var(--mut); max-width: 44rem; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.tile { padding: 16px 18px; border-radius: var(--r3); background: var(--bg3); box-shadow: inset 0 0 0 1px var(--line); }
.tile span { display: block; color: var(--mut); font-size: 13px; }
.tile b { display: block; margin-top: 4px; font: 600 40px / 1.1 var(--disp); letter-spacing: -0.02em; }
.tile.is-hot b { color: var(--a); }

/* progress while we work */
.route { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; counter-reset: s; margin: 0 0 24px; }
.route li { counter-increment: s; padding: 16px 18px; border-radius: var(--r3); background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); color: var(--dim); }
.route li::before { content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 10px; border-radius: 50%; font-size: 12px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line2); }
.route h3 { font: 600 15.5px/1.3 var(--body); }
.route p { margin-top: 4px; font-size: 13.5px; line-height: 1.45; }
.route li.is-done { color: var(--mut); }
.route li.is-done::before { background: var(--a); color: #111; box-shadow: none; }
.route li.is-current { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(200, 255, 47, 0.4); }
.route li.is-current::before { color: var(--a); box-shadow: inset 0 0 0 1.5px var(--a); animation: working 1.8s ease-out infinite; }
@keyframes working { 0% { box-shadow: inset 0 0 0 1.5px var(--a), 0 0 0 0 rgba(200, 255, 47, 0.4); } 100% { box-shadow: inset 0 0 0 1.5px var(--a), 0 0 0 12px rgba(200, 255, 47, 0); } }
.notfound { margin-top: 16px; }

/* panels */
.review, .result, .drafts, .replies { margin-bottom: 24px; padding: 24px; border-radius: var(--r4); background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); }
.review h2, .result h2, .drafts h2, .replies h2 { font: 600 24px / 1.2 var(--disp); letter-spacing: -0.01em; }
.review-intro { margin-top: 6px; color: var(--mut); font-size: 14.5px; line-height: 1.5; max-width: 44rem; }
.review .review-intro { margin-bottom: 4px; }

/* form controls */
.field { margin-top: 18px; }
.field label, .countries legend, .instructions label:not(.check), .followups .field label { display: block; margin-bottom: 6px; color: var(--mut); font-size: 13.5px; }
.field .optional { margin-left: 6px; color: var(--dim); }
input[type='text'], input[type='number'], textarea, select {
  display: block; width: 100%; margin: 0; padding: 0 14px; border: 0; border-radius: var(--r2);
  background: var(--bg3); color: var(--ink); font: 400 15px/1.4 var(--body); box-shadow: inset 0 0 0 1px var(--line2);
  outline: 0; transition: box-shadow 0.2s; -webkit-appearance: none; appearance: none;
}
input[type='text'], input[type='number'] { height: 44px; }
textarea { padding: 11px 14px; min-height: 88px; resize: vertical; line-height: 1.5; }
select {
  height: 40px; width: auto; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 2l4.5 4 4.5-4' fill='none' stroke='%23ababa5' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 13px center; background-size: 12px 8px; background-repeat: no-repeat;
}
select option { color: #111; background: #fff; }
input:focus, textarea:focus, select:focus { box-shadow: inset 0 0 0 2px var(--a); }
input[readonly], textarea[readonly] { color: var(--mut); background: var(--bg); }
input[type='number'] { width: 7rem; }
input[type='checkbox'] { width: 18px; height: 18px; accent-color: var(--a); flex: none; }
.check { display: flex; gap: 10px; align-items: center; color: var(--ink); font-size: 15px; cursor: pointer; }
.countries { margin: 22px 0 0; padding: 0; border: 0; min-width: 0; }
.countries legend { padding: 0; color: var(--ink); font: 600 16px var(--body); }
.suggestion-note { color: var(--dim); }
.review .primary { margin-top: 22px; }

/* country picker */
.combo { position: relative; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px; border-radius: var(--r2); background: var(--bg3); box-shadow: inset 0 0 0 1px var(--line2); }
.combo:focus-within { box-shadow: inset 0 0 0 2px var(--a); }
.chips { display: contents; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: var(--r1); background: rgba(200, 255, 47, 0.12); color: var(--a); font-size: 14px; }
.chip button { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: var(--a); font-size: 16px; line-height: 1; }
.chip button:hover { background: rgba(200, 255, 47, 0.2); }
.combo-input, .field input.combo-input { flex: 1 1 140px; min-width: 120px; height: 32px !important; padding: 0 6px; background: none !important; box-shadow: none !important; }
.options { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: 260px; overflow-y: auto; padding: 6px; border-radius: var(--r3); background: #262625; box-shadow: inset 0 0 0 1px var(--line2), 0 20px 40px -16px rgba(0, 0, 0, 0.8); }
.option { padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 14.5px; }
.option.is-active, .option:hover { background: rgba(200, 255, 47, 0.12); color: var(--a); }
.option-empty { padding: 8px 12px; color: var(--dim); font-size: 14px; }

/* audiences */
.fit { margin-top: 6px; color: var(--mut); font-size: 14.5px; max-width: 44rem; }
.segments { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-top: 20px; }
.segment { padding: 18px 20px; border-radius: var(--r3); background: var(--bg3); box-shadow: inset 0 0 0 1px var(--line); }
.segment h3 { font: 600 19px / 1.25 var(--disp); }
.segment p { margin-top: 6px; color: var(--mut); font-size: 14.5px; line-height: 1.5; }
.segment .segment-score { display: inline-block; margin-top: 0; padding: 2px 9px; border-radius: var(--r1); background: rgba(200, 255, 47, 0.12); color: var(--a); font: 500 12.5px var(--mono); }
.segment .segment-count { color: var(--dim); font-size: 13.5px; }
.segment-empty { color: var(--mut); }
.segment-list { margin-top: 12px; font-size: 14px; }
.segment-list summary { cursor: pointer; color: var(--ink); font-weight: 500; }
.segment-list ul { margin: 8px 0 0; padding-left: 1.1rem; list-style: disc; columns: 2 12rem; color: var(--mut); }
.result .link-button { margin-top: 16px; }

/* emails */
.instructions { margin-top: 18px; padding: 16px 18px; border-radius: var(--r3); background: var(--bg3); box-shadow: inset 0 0 0 1px var(--line); }
.instructions textarea { margin-top: 6px; }
.instructions .secondary { margin-top: 12px; }
#instr-box { margin-top: 14px; }
#draft-list { display: grid; gap: 12px; margin-top: 18px; }
.draft { padding: 18px 20px; border-radius: var(--r3); background: var(--bg3); box-shadow: inset 0 0 0 1px var(--line); }
.draft h3 { margin-bottom: 4px; font: 600 18px / 1.3 var(--disp); }
.draft textarea { min-height: 120px; }
.d-follow { min-height: 96px !important; }
.no-followups .d-follow-field { display: none; }
.sample { margin: 8px 0 4px; padding: 14px 16px; border-radius: var(--r2); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.sample p { margin: 0; color: var(--ink); font-size: 14.5px; }
.sample-label { margin-bottom: 6px !important; color: var(--dim) !important; font: 500 12px var(--mono) !important; }
.sample-opener { margin-top: 6px !important; color: var(--mut) !important; font-style: italic; }
.followups { margin-top: 18px; padding: 16px 18px; border-radius: var(--r3); background: var(--bg3); box-shadow: inset 0 0 0 1px var(--line); max-width: 34rem; }
.followups h3 { margin-bottom: 10px; font: 600 16px var(--body); }
.followups .field { margin-top: 12px; }
.approved { margin-top: 18px; display: inline-block; padding: 8px 12px; border-radius: var(--r1); background: rgba(200, 255, 47, 0.12); color: var(--a); font-size: 14px; }
.drafts .primary { margin-top: 18px; }
.drafts .link-button { margin: 18px 0 0 16px; }

/* replies */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.filter { padding: 7px 14px; border-radius: 999px; background: rgba(243, 242, 236, 0.05); box-shadow: inset 0 0 0 1px var(--line2); color: var(--mut); font-size: 14px; font-weight: 500; transition: background 0.2s; }
.filter:hover { background: rgba(243, 242, 236, 0.1); color: var(--ink); }
.filter[aria-pressed='true'] { background: rgba(200, 255, 47, 0.12); box-shadow: inset 0 0 0 1px rgba(200, 255, 47, 0.4); color: var(--a); }
.reply-list { border-radius: var(--r3); background: var(--bg3); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.reply { border-top: 1px solid var(--line); }
.reply:first-child { border-top: 0; }
.reply summary { display: grid; grid-template-columns: minmax(8rem, 14rem) auto auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 13px 18px; cursor: pointer; list-style: none; }
.reply summary::-webkit-details-marker { display: none; }
.reply summary:hover { background: rgba(243, 242, 236, 0.03); }
.reply-company { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mut); }
.reply-company.unread { color: var(--ink); font-weight: 600; }
.reply-date { color: var(--dim); font-size: 13px; white-space: nowrap; }
.reply-snippet { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); font-size: 14px; }
.badge { padding: 2px 9px; border-radius: var(--r1); font: 500 12px/1.5 var(--body); white-space: nowrap; }
.badge-hot_lead { background: var(--a); color: #111; font-weight: 600; }
.badge-lead { background: rgba(243, 242, 236, 0.12); color: var(--ink); }
.badge-not_interested, .badge-untagged { background: none; color: var(--dim); box-shadow: inset 0 0 0 1px var(--line2); }
.reply-body { padding: 4px 18px 18px; }
.reply-meta { margin-bottom: 6px; color: var(--dim); font-size: 13.5px; }
.reply-text { margin: 10px 0 14px; padding: 14px 16px; border-radius: var(--r2); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); white-space: pre-wrap; font-size: 15px; }
.reply-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.reply-tag label { color: var(--mut); font-size: 13.5px; }
.reply-why { color: var(--dim); font-size: 13.5px; }
.replies > .review-intro:last-child { margin-top: 14px; }

/* ---------- working display ---------- */
.stream { margin-bottom: 24px; border-radius: var(--r4); background: #0c0c0c; box-shadow: inset 0 0 0 1px var(--line2); overflow: hidden; }
.stream-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 500 13px var(--mono); color: var(--mut); }
.stream-head b { color: var(--ink); font-weight: 500; }
.stream-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a); animation: blink 1.2s ease-in-out infinite; }
.stream-clock { margin-left: auto; color: var(--dim); font-variant-numeric: tabular-nums; }
.stream-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); height: 230px; }
.stream-log { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 16px 18px; font: 400 12.5px/1.3 var(--mono); color: var(--dim); overflow: hidden; border-right: 1px solid var(--line); }
.stream-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--mut); }
.stream-line::after { content: ' ...'; color: var(--dim); }
.stream-line.is-done::after { content: ' ok'; color: var(--a); }
.stream-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.stream-col { overflow: hidden; padding: 0 8px; }
.stream-track { animation: scrollup linear infinite; will-change: transform; }
.stream-row { padding: 3px 0; font: 400 11px/1.2 var(--mono); color: #5d5d58; white-space: nowrap; transition: color 0.3s; }
.stream-row.hit { color: var(--a); }
.stream-bar { height: 2px; background: var(--line); overflow: hidden; }
.stream-bar i { display: block; width: 32%; height: 100%; background: var(--a); animation: sweep 1.6s var(--ease) infinite; }
@keyframes scrollup { to { transform: translateY(-50%); } }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(320%); } }
@keyframes blink { 50% { opacity: 0.25; } }

/* campaigns */
.segment-top { display: flex; align-items: center; gap: 10px; }
.segment-top h3 { flex: 1; min-width: 0; }
.segment.is-off { opacity: 0.55; }
.segment .link-button { margin-top: 10px; }
.segment .segment-state { color: var(--a); font-size: 13.5px; }
.segment .segment-state.is-bad { color: var(--bad); }
.badge-mine { background: rgba(200, 255, 47, 0.12); color: var(--a); }
.switch { position: relative; flex: none; display: inline-block; width: 40px; height: 24px; cursor: pointer; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch-ui { position: absolute; inset: 0; border-radius: 99px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line2); transition: background 0.2s; }
.switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--mut); transition: transform 0.25s var(--ease), background 0.2s; }
.switch input:checked + .switch-ui { background: var(--a); box-shadow: none; }
.switch input:checked + .switch-ui::after { transform: translateX(16px); background: #111; }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--a); outline-offset: 2px; }
.add { margin-top: 18px; }
.add-form { margin-top: 4px; max-width: 34rem; padding: 4px 0 0; }
.add-actions { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.add-actions .primary { margin: 0 !important; }

/* sample email, drawn as a message open in a mail client in a browser window */
.sample-mail { margin: 14px 0 0; }
.sample-for { margin-bottom: 8px; color: var(--dim); font: 500 12px var(--mono); }
.mail { max-width: 640px; border-radius: var(--r3); background: #f3f2ed; color: #111; overflow: hidden; box-shadow: 0 0 0 1px rgba(243, 242, 236, 0.16); user-select: text; }
.mail-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #dcdbd4; }
.mail-dots { display: inline-flex; gap: 6px; }
.mail-dots i { width: 10px; height: 10px; border-radius: 50%; background: #b8b7af; }
.mail-url { flex: 1; max-width: 300px; padding: 3px 12px; border-radius: 99px; background: #f3f2ed; color: #6d6d66; font: 400 12px var(--mono); }
.mail-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #dcdbd4; }
.mail-avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: #111; color: var(--a); font: 600 16px var(--disp); }
.mail-who { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.mail-who b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-who span { color: #6d6d66; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-time { color: #6d6d66; font-size: 12.5px; flex: none; }
.mail-body { padding: 18px 20px 22px; font-size: 15px; line-height: 1.6; }
.mail-body p { margin: 0 0 12px; color: #1a1a1a; }
.mail-subject { margin: 0 0 14px; font: 600 19px/1.3 var(--disp); }
.mail-opener { padding: 2px 6px; margin-left: -6px; border-radius: 5px; background: rgba(200, 255, 47, 0.55); }
.mail-sign { margin-top: 18px !important; color: #6d6d66 !important; }
.mail-unsub { margin: 16px 0 0 !important; padding-top: 12px; border-top: 1px solid #dcdbd4; color: #8a8a82 !important; font-size: 12.5px; }
.draft .hint { margin-top: 10px; }
.draft { background: none !important; box-shadow: none !important; padding: 8px 0 0 !important; }

/* ---------- login ---------- */
.auth { width: min(440px, calc(100% - 32px)); padding: 30px 28px 26px; border: 0; border-radius: var(--r4); background: var(--bg2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2), 0 40px 80px -30px rgba(0, 0, 0, 0.9); }
.auth::backdrop { background: rgba(10, 10, 10, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.auth[open] { animation: authin 0.35s var(--ease); }
@keyframes authin { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.auth h2 { padding-right: 28px; font: 600 26px / 1.15 var(--disp); letter-spacing: -0.02em; }
.auth-sub { margin-top: 8px; color: var(--mut); font-size: 15px; line-height: 1.5; }
.auth-x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--mut); font-size: 22px; line-height: 1; }
.auth-x:hover { background: rgba(243, 242, 236, 0.08); color: var(--ink); }
.auth .primary { width: 100%; margin-top: 18px; }
.auth .hint { text-align: center; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.otp { font: 500 26px var(--mono) !important; letter-spacing: 0.4em; text-align: center; height: 56px !important; }

/* ---------- account pages ---------- */
.me { padding: 6px 12px; color: var(--dim); font: 400 12.5px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-btn { padding: 9px 12px; border-radius: 9px; color: var(--mut); font-size: 14px; text-align: left; }
.side-btn:hover { color: var(--ink); background: rgba(243, 242, 236, 0.05); }
.new-campaign { margin-bottom: 24px; padding: 20px; border-radius: var(--r4); background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); }
.new-campaign label { display: block; margin-bottom: 10px; color: var(--mut); font-size: 14px; }
.new-row { display: flex; gap: 10px; }
.new-field { padding-left: 14px; border-radius: var(--r2); background: var(--bg3); box-shadow: inset 0 0 0 1px var(--line2); }
.new-field:focus-within { box-shadow: inset 0 0 0 2px var(--a); }
.new-field input[type='text'] { flex: 1; min-width: 0; height: 44px; background: none; box-shadow: none !important; padding-left: 2px; }
.campaign-list { display: grid; gap: 10px; }
.campaign-row a { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 16px 20px; border-radius: var(--r3); background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.2s, background 0.2s; }
.campaign-row a:hover { background: var(--bg3); box-shadow: inset 0 0 0 1px rgba(200, 255, 47, 0.4); }
.cr-site { flex: 1 1 14rem; font: 600 18px var(--disp); }
.cr-status { color: var(--mut); font-size: 14px; }
.cr-status.is-live { color: var(--a); }
.cr-meta { color: var(--dim); font-size: 13.5px; }
.settings { display: grid; gap: 16px; max-width: 640px; }
.panel { padding: 22px 24px; border-radius: var(--r4); background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); }
.panel h2 { margin-bottom: 4px; font: 600 20px var(--disp); }
.panel .check { margin-top: 14px; }
.panel .hint { margin-top: 8px; }
.settings-actions { display: flex; align-items: center; gap: 16px; }
.saved { color: var(--a); font-size: 14px; }

/* guidance for one campaign */
.guide { margin-top: 14px; max-width: 640px; }
.guide-box { margin-top: 10px; }
.guide .secondary { margin-top: 12px; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; flex-direction: row; align-items: center; gap: 12px; overflow-x: auto; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side .logo { margin: 0; padding: 0; flex: none; }
  .nav { display: flex; gap: 4px; }
  .nav small { display: none; }
  .nav a { white-space: nowrap; }
  .side-foot { margin: 0 0 0 auto; padding: 0; border: 0; flex: none; }
  .page { padding: 24px 16px 72px; }
  .request-site { font-size: 30px; }
  .review, .result, .drafts, .replies { padding: 18px; border-radius: var(--r3); }
}
@media (max-width: 640px) {
  .new-row { flex-direction: column; }
  .stream-grid { grid-template-columns: minmax(0, 1fr); height: 200px; }
  .stream-cols { display: none; }
  .stream-log { border-right: 0; }
  .reply summary { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .reply-date, .reply-snippet { grid-column: 1 / -1; }
  .start-row { flex-direction: column; align-items: stretch; border-radius: var(--r3); padding: 10px; }
  .start-field { padding-left: 8px; }
  .start .primary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route li.is-current::before { animation: none; }
  .stream-dot, .stream-bar i, .stream-track { animation: none; }
  .auth[open] { animation: none; }
  .primary, .btn { transition: none; }
}

/* billing */
.billing { display: grid; gap: 16px; max-width: 640px; }
.balance-n { margin: 6px 0 0; font: 600 44px/1 var(--disp); letter-spacing: -0.02em; }
.notice { max-width: 640px; margin: 0 0 16px; padding: 12px 16px; border-radius: var(--r4); background: var(--bg2); box-shadow: inset 0 0 0 1px var(--a); color: var(--ink); font-size: 14.5px; }
.notice .primary { margin-left: 8px; height: 34px; padding: 0 14px; }
.billing .primary, .billing .btn-ghost { margin-top: 16px; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 500 14.5px var(--body); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--mut); }
.amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.amount { height: 42px; min-width: 84px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 500 15px var(--body); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.amount[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.amount:focus-visible, .btn-ghost:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.amount-other input, .billing select { width: 100%; max-width: 280px; }
.ledger { margin: 14px 0 0; padding: 0; list-style: none; }
.ledger li { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.ledger-d { color: var(--mut); }
@media (max-width: 560px) { .ledger li { grid-template-columns: 1fr auto; } .ledger-d { display: none; } }
#b-error { max-width: 640px; margin: 0 0 16px; }
