/* Design tokens: the single source for colour, type and shape. */
:root {
  --ink: #222222;
  --ink-soft: #55514d;
  --ink-faint: #625e59;
  --navy: #1a0f08;
  --navy-deep: #111111;
  --violet: #d9733f;
  --violet-dark: #a34a22;
  --violet-soft: #fff2eb;
  --paper: #eef2f4;
  --surface: #ffffff;
  --line: #d5dcdf;
  --green: #22aa7b;
  --amber: #d88a28;
  --red: #d44d64;
  --accent: var(--violet);
  --muted: var(--ink-soft);
  --text-xs: 12px;
  --text-sm: 13px;
  --text-md: 14px;
  --text-lg: 16px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 32px;
  --sidebar-width: 236px;
  --radius: 14px;
  font-family: "IBM Plex Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

.home-latest-result {
  position: relative; margin: 28px 0 24px; padding: 24px; border: 1px solid var(--line);
  border-radius: 16px; background: #fff; box-shadow: 0 16px 40px rgba(17, 17, 17,.06);
}
.home-latest-result header { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.home-latest-result header h2 { margin: 0; font-size: 24px; }
.home-latest-result header > strong { color: var(--violet-dark); font: 600 22px/1 "Schibsted Grotesk", sans-serif; white-space: nowrap; }
.home-result-dismiss { position: absolute; top: 12px; right: 14px; border: 0; color: var(--ink-soft); background: transparent; font-size: 22px; cursor: pointer; }
.home-result-providers { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 14px; }
.home-result-providers span { padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink-soft); font-size: 12px; }
.home-result-providers b { margin-right: 8px; color: var(--ink); }
.home-latest-result ul { margin: 0 0 18px; padding-left: 20px; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.mailbox-compose-link:empty { display: none; }
.mailbox-compose-link a { color: var(--violet-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.recipient-copy-row { flex-wrap: wrap; }
.recipient-copy-row > small { flex-basis: 100%; color: var(--ink-soft); font-size: 12px; }
.console-start-note { margin: -4px 0 18px; color: var(--console-muted); font-size: 12px; }

@media (max-width: 620px) {
  .home-latest-result { padding: 20px 18px; }
  .home-latest-result header { display: grid; gap: 12px; }
}

* { box-sizing: border-box; }
h1, h2, h3, h4 { font-family: "Schibsted Grotesk", "IBM Plex Sans", sans-serif; }
html { min-width: 320px; overflow-x: clip; background: var(--paper); }
body { margin: 0; min-height: 100vh; overflow-x: clip; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(234, 148, 91, .28); outline-offset: 2px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0,1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 28px 18px 22px; color: white; background: var(--navy-deep); z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 11px; padding: 0 10px; color: white; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: .11em; }
.brand-mark { flex: 0 0 28px; width: 28px; height: 28px; position: relative; display: inline-block; }
.brand-mark i { position: absolute; width: 15px; height: 15px; border: 2px solid #f8b78c; border-radius: 50%; }
.brand-mark i:nth-child(1) { left: 0; top: 7px; }
.brand-mark i:nth-child(2) { right: 0; top: 7px; }
.brand-mark i:nth-child(3) { left: 7px; top: 0; border-color: #fff; }
.nav { display: grid; gap: 6px; margin-top: 55px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 13px; border: 0; border-radius: 10px; color: #bdafa5; background: transparent; text-decoration: none; text-align: left; font-size: 14px; cursor: pointer; transition: color .18s ease, background .18s ease, transform .18s ease; }
.nav-item svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.nav-item.active { color: white; background: rgba(255, 255, 255, .085); }
.nav-item:not(:disabled):hover { color: white; transform: translateX(2px); }
.nav-item:disabled { cursor: default; opacity: .66; }
.soon { margin-left: auto; font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #f2b389; }
.nav-status { margin-left: auto; color: #f8b78c; font-size: var(--text-xs); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.sidebar-foot { margin-top: auto; padding: 0 10px; display: grid; gap: 17px; }
.sidebar-foot a { color: #bdafa5; font-size: 12px; text-decoration: none; display: flex; justify-content: space-between; }
.sidebar-foot a:hover { color: white; }
.workspace-utility { position: absolute; z-index: 5; top: 36px; right: clamp(30px,4.3vw,72px); display: flex; justify-content: flex-end; width: auto; margin: 0; }
.app-language { display: inline-flex; align-items: center; gap: 3px; width: fit-content; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255,.72); box-shadow: 0 5px 18px rgba(52, 34, 22,.045); backdrop-filter: blur(12px); }
.app-language span { width: 1px; height: 12px; background: var(--line); }
.app-language button { min-width: 31px; padding: 6px 8px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); font: 750 12px/1 var(--font-sans); letter-spacing: .08em; cursor: pointer; transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.app-language button:hover { color: var(--ink); }
.app-language button[aria-pressed="true"] { color: #fff; background: var(--navy); box-shadow: 0 5px 14px rgba(38, 25, 17,.16); }
.service-state { display: flex; align-items: center; gap: 8px; color: #bbaea6; font-size: var(--text-xs); }
.service-state > span:first-child { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(216, 138, 40, .1); }
.service-state.online > span:first-child { background: #45d3a5; box-shadow: 0 0 0 4px rgba(69, 211, 165, .1); }

.workspace { grid-column: 2; padding: 45px clamp(28px, 4vw, 68px) 60px; max-width: 1500px; width: 100%; margin: 0 auto; animation: workspace-in .15s ease-out both; }
@keyframes workspace-in { from { opacity: 0; } to { opacity: 1; } }
.product-workspace { display: none; }
.product-workspace.active { display: block; animation: view-in .15s ease-out both; }
.topbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.eyebrow { margin: 0 0 8px; color: #9b8d84; font-size: var(--text-xs); font-weight: 800; letter-spacing: .08em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(30px, 3vw, 43px); line-height: 1; letter-spacing: -.045em; }
.primary-button, .secondary-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 10px; padding: 0 17px; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.primary-button { border: 1px solid var(--violet); color: white; background: var(--violet); box-shadow: 0 7px 20px rgba(234, 148, 91, .18); }
.primary-button:hover { background: var(--violet-dark); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(234, 148, 91, .24); }
.primary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.secondary-button { border: 1px solid var(--line); color: var(--ink); background: white; }
.secondary-button:hover { border-color: #d7cbc3; transform: translateY(-1px); }

.overview { margin-top: 34px; min-height: 92px; display: grid; grid-template-columns: 130px 150px minmax(230px, 1fr) auto; align-items: center; border-block: 1px solid var(--line); }
.metric { min-height: 50px; padding: 0 26px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.metric:first-child { padding-left: 0; }
.metric span { color: #968c85; font-size: var(--text-xs); margin-bottom: 7px; }
.metric strong { font-size: 15px; letter-spacing: -.015em; }
.metric:first-child strong { font-size: 24px; line-height: 1; }
.privacy-note { display: flex; align-items: center; gap: 9px; color: #746961; font-size: var(--text-xs); font-weight: 600; padding-left: 26px; }
.privacy-note svg { width: 19px; fill: none; stroke: var(--green); stroke-width: 1.8; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .7fr); gap: clamp(34px, 5vw, 82px); padding-top: 44px; }
.main-pane { min-width: 0; }
.section-heading { min-height: 65px; display: flex; align-items: start; justify-content: space-between; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin-bottom: 7px; font-size: 19px; letter-spacing: -.025em; }
.section-heading p { margin-bottom: 18px; color: var(--ink-soft); font-size: 12px; }
.text-button { padding: 0; border: 0; color: var(--violet); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.view { display: none; padding-top: 30px; animation: view-in .15s ease-out both; }
.view.active { display: block; }
@keyframes view-in { from { opacity: 0; } to { opacity: 1; } }

.simulation-badge { min-height: 32px; display: inline-flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #fbe2d2; border-radius: 999px; color: #d1814b; background: #fef4ee; font-size: var(--text-xs); font-weight: 800; }
.simulation-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px rgba(234, 148, 91,.1); animation: live-pulse 1.8s ease-out infinite; }
.warmup-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .62fr); gap: clamp(34px, 5vw, 82px); padding-top: 44px; }
.warmup-main { min-width: 0; }
.warmup-heading { align-items: flex-start; }
.warmup-heading .primary-button { min-height: 38px; white-space: nowrap; }
.warmup-settings { display: grid; grid-template-columns: repeat(4, minmax(100px, 1fr)) auto; gap: 10px; align-items: end; padding: 22px 0; border-bottom: 1px solid var(--line); }
.warmup-settings label { min-width: 0; color: #968c85; font-size: var(--text-xs); font-weight: 750; letter-spacing: .04em; }
.warmup-settings input { width: 100%; height: 39px; display: block; margin-top: 7px; padding: 0 33px 0 11px; border: 1px solid #e5ded9; border-radius: 9px; outline: 0; color: var(--ink); background: white; font-size: 13px; font-weight: 700; }
.warmup-settings label { position: relative; }
.warmup-settings label > span { position: absolute; right: 8px; bottom: 13px; color: #b2aaa4; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0; pointer-events: none; }
.warmup-settings input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(234, 148, 91,.08); }
.warmup-settings .secondary-button { min-height: 39px; white-space: nowrap; }
.warmup-list-heading { display: flex; justify-content: space-between; align-items: center; padding: 26px 0 9px; color: #988e88; font-size: var(--text-xs); font-weight: 800; letter-spacing: .08em; }
.warmup-list-heading small { color: #a79e98; font-size: var(--text-xs); font-weight: 500; letter-spacing: 0; }
.warmup-accounts { overflow: hidden; border-block: 1px solid var(--line); }
.warmup-account { min-height: 77px; display: grid; grid-template-columns: 38px minmax(150px, 1.3fr) minmax(90px, .6fr) minmax(100px, .75fr) auto; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.warmup-account:last-child { border-bottom: 0; }
.account-index { color: var(--violet); font: 700 12px/1 ui-monospace, monospace; }
.account-identity code { display: block; overflow: hidden; color: var(--ink); font: 650 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.account-identity small, .account-stat small { display: block; margin-top: 5px; color: #a49b95; font-size: var(--text-xs); }
.account-stat strong { display: block; font-size: 12px; }
.permission-state { justify-self: start; padding: 5px 8px; border-radius: 999px; color: #8c7f77; background: #f2efed; font-size: var(--text-xs); font-weight: 750; white-space: nowrap; }
.permission-state.ready { color: #26795f; background: #e5f6f0; }
.switch { position: relative; width: 39px; height: 22px; display: inline-block; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #dfd9d5; cursor: pointer; transition: background .2s ease; }
.switch span::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(43, 28, 18,.18); transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.switch input:checked + span { background: var(--violet); }
.switch input:checked + span::after { transform: translateX(17px); }
.switch input:focus-visible + span { outline: 3px solid rgba(234, 148, 91,.22); outline-offset: 2px; }
.activity-heading { display: flex; justify-content: space-between; align-items: end; margin-top: 35px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.activity-heading h3 { margin-bottom: 4px; font-size: 14px; }
.activity-heading p, .activity-heading span { margin: 0; color: #a49b95; font-size: var(--text-xs); }
.warmup-activity { min-height: 110px; }
.activity-row { min-height: 59px; display: grid; grid-template-columns: 29px minmax(0, 1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.activity-mark { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: var(--violet); background: var(--violet-soft); font-size: var(--text-xs); font-weight: 800; }
.activity-row strong { display: block; margin-bottom: 3px; font-size: var(--text-xs); }
.activity-row small, .activity-row time { color: #a49b95; font-size: var(--text-xs); }
.empty-activity { min-height: 110px; display: grid; place-items: center; color: #a8a09a; font-size: var(--text-xs); text-align: center; }
.warmup-context { padding-left: clamp(28px,4vw,54px); border-left: 1px solid var(--line); }
.warmup-context h2 { margin: 13px 0 36px; font-size: 28px; line-height: 1.12; letter-spacing: -.045em; }
.mode-rail { display: grid; }
.mode-rail > div { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 7px; padding-bottom: 27px; opacity: .52; }
.mode-rail > div.active { opacity: 1; }
.mode-rail > div:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 22px; bottom: 4px; width: 1px; background: var(--line); }
.mode-rail span { color: var(--violet); font: 700 12px ui-monospace, monospace; }
.mode-rail p { margin: 0; color: var(--ink-soft); font-size: var(--text-xs); line-height: 1.55; }
.mode-rail strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: var(--text-xs); }
.permission-callout { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 18px 0 0; border-top: 1px solid var(--line); }
.permission-callout > span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #8b6c28; background: #fbf1df; font-size: var(--text-xs); font-weight: 800; }
.permission-callout p { margin: 0; color: #968d87; font-size: var(--text-xs); line-height: 1.55; }
.permission-callout strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: var(--text-xs); }
.permission-callout a { display: block; margin-top: 9px; color: var(--violet); font-size: var(--text-xs); font-weight: 750; text-decoration: none; }
.permission-callout a:hover { text-decoration: underline; }

form > label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 750; }
.field-help { color: #968c85; font-size: var(--text-xs); margin-bottom: 11px; }
.input-shell { height: 50px; display: flex; align-items: center; gap: 11px; padding: 0 15px; margin-bottom: 26px; border: 1px solid #e4ddd8; border-radius: 11px; background: var(--surface); transition: border .18s ease, box-shadow .18s ease; }
.input-shell:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(234, 148, 91, .08); }
.input-shell svg { width: 18px; fill: none; stroke: #a0968f; stroke-width: 1.7; flex: 0 0 auto; }
.input-shell input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
.input-shell input::placeholder { color: #bcb4af; }
.variant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.variant-option { position: relative; cursor: pointer; }
.variant-option input { position: absolute; opacity: 0; pointer-events: none; }
.variant-option span { min-height: 78px; display: flex; flex-direction: column; justify-content: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255,.58); transition: border .18s ease, background .18s ease, transform .18s ease; }
.variant-option b { margin-bottom: 5px; font-size: 12px; }
.variant-option small { color: #9c928b; font-size: var(--text-xs); line-height: 1.35; }
.variant-option input:checked + span { border-color: var(--violet); background: var(--violet-soft); box-shadow: inset 0 0 0 1px var(--violet); }
.variant-option:hover span { transform: translateY(-1px); }
.submit-button { width: 100%; margin-top: 25px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; margin: 0 0 34px; list-style: none; }
.steps li { position: relative; display: flex; align-items: center; gap: 8px; color: #b2aaa5; font-size: var(--text-xs); }
.steps li:not(:last-child)::after { content: ""; height: 1px; background: #e3ddd9; position: absolute; left: 35px; right: 14px; bottom: -11px; }
.steps span { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #dcd5d0; border-radius: 50%; background: white; font-size: var(--text-xs); }
.steps .current { color: var(--ink); }
.steps .current span { border-color: var(--violet); color: white; background: var(--violet); }
.steps .done { color: var(--green); }
.steps .done span { border-color: var(--green); color: var(--green); background: #e9f8f3; }
.steps li.done:not(:last-child)::after { background: #a8dfcc; }

.instruction-block { padding: 18px 0 19px; border-block: 1px solid var(--line); }
.instruction-block.compact { border-top: 0; }
.instruction-label { color: #988e88; font-size: var(--text-xs); font-weight: 800; letter-spacing: .08em; margin-bottom: 9px; }
.instruction-label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.instruction-label-row .instruction-label { margin-bottom: 0; }
.recipient-count { color: var(--ink-faint); font-size: var(--text-xs); }
.recipient-list { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255,.5); }
.recipient-row { min-height: 43px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.recipient-row:last-child { border-bottom: 0; }
.recipient-row > span { color: var(--violet); font: 700 12px/1 ui-monospace, monospace; }
.recipient-row code { overflow: hidden; color: var(--ink); font: 600 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.recipient-row i { color: var(--green); font-size: var(--text-xs); font-style: normal; font-weight: 700; }
.recipient-copy-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 11px; }
.recipient-copy-row > span { color: #9a928c; font-size: var(--text-xs); line-height: 1.4; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.copy-row { display: flex; align-items: center; gap: 12px; }
.copy-row code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font: 600 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.copy-button { border: 0; color: var(--violet); background: transparent; font-size: var(--text-xs); font-weight: 700; cursor: pointer; }
.send-note { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; margin: 24px 0; }
.send-note > span { color: var(--violet); font: 700 12px ui-monospace, monospace; }
.send-note p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.send-note strong { color: var(--ink); }
.action-row { display: flex; justify-content: flex-end; gap: 10px; }

.analysis-stage { position: relative; margin-bottom: 22px; padding: 22px 24px 20px; border-radius: var(--radius); color: white; background: var(--navy); overflow: hidden; }
.analysis-stage::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255,.025) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.analysis-scan { position: absolute; z-index: 0; top: 0; bottom: 0; width: 38%; opacity: 0; background: linear-gradient(90deg, transparent, rgba(245, 160, 104,.15), transparent); transform: translateX(-120%); }
.analysis-stage.searching .analysis-scan { opacity: 1; animation: analysis-scan 2.5s ease-in-out infinite; }
.analysis-stage.inspecting .analysis-scan,
.analysis-stage.partial .analysis-scan { opacity: .7; animation: analysis-scan 3.2s ease-in-out infinite; }
@keyframes analysis-scan { to { transform: translateX(380%); } }
.analysis-heading { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.analysis-heading h3 { margin: 8px 0 0; font-size: 16px; letter-spacing: -.02em; }
.live-indicator { display: inline-flex; align-items: center; gap: 7px; color: #f4bf9c; font-size: var(--text-xs); font-weight: 800; letter-spacing: .08em; }
.live-indicator i { width: 6px; height: 6px; border-radius: 50%; background: #f4ab7a; box-shadow: 0 0 0 0 rgba(244, 171, 122,.5); }
.analysis-stage.searching .live-indicator i { animation: live-pulse 1.5s ease-out infinite; }
.analysis-stage.resolved .live-indicator { color: #69d7b4; }
.analysis-stage.resolved .live-indicator i { background: #45c99e; }
.analysis-stage.attention .live-indicator { color: #f1c16b; }
.analysis-stage.attention .live-indicator i { background: #e3a63f; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 7px rgba(244, 171, 122,0); } 100% { box-shadow: 0 0 0 0 rgba(244, 171, 122,0); } }
.recheck-button { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid rgba(255, 255, 255,.14); border-radius: 8px; color: rgba(255, 255, 255,.76); background: rgba(255, 255, 255,.055); font-size: var(--text-xs); font-weight: 700; cursor: pointer; transition: .18s ease; }
.recheck-button:hover { color: white; border-color: rgba(255, 255, 255,.28); background: rgba(255, 255, 255,.1); }
.recheck-button:disabled { opacity: .55; cursor: wait; }
.recheck-button svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.analysis-stage.searching .recheck-button svg { animation: slow-spin 2.2s linear infinite; }
@keyframes slow-spin { to { transform: rotate(360deg); } }
.analysis-steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; margin: 0; list-style: none; }
.analysis-steps li { position: relative; display: grid; grid-template-columns: 1fr; grid-template-rows: 22px auto; gap: 10px; align-items: start; padding-right: 14px; color: rgba(255, 255, 255,.32); }
.analysis-steps li:not(:last-child)::after { content: ""; position: absolute; left: 29px; right: -1px; top: 10px; height: 1px; background: rgba(255, 255, 255,.12); transform: none; }
.analysis-icon { position: relative; z-index: 1; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255,.16); border-radius: 50%; background: var(--navy); }
.analysis-icon i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.analysis-steps b { display: block; margin: 0 0 4px; color: inherit; font-size: var(--text-xs); line-height: 1.3; }
.analysis-steps small { display: block; max-width: 150px; color: inherit; font-size: var(--text-xs); line-height: 1.45; }
.analysis-steps li.active { color: white; }
.analysis-steps li.active .analysis-icon { border-color: #f5af80; box-shadow: 0 0 0 5px rgba(234, 148, 91,.13); }
.analysis-steps li.active .analysis-icon i { background: #f8b88e; animation: dot-beat 1s ease-in-out infinite; }
@keyframes dot-beat { 50% { transform: scale(1.8); opacity: .5; } }
.analysis-steps li.complete { color: rgba(255, 255, 255,.75); animation: step-arrive .38s var(--step-delay, 0ms) ease both; }
.analysis-steps li.complete .analysis-icon { border-color: #4bcaa1; color: #4bcaa1; background: rgba(40, 167, 126,.12); }
.analysis-steps li.complete .analysis-icon i { width: 7px; height: 4px; border: solid currentColor; border-width: 0 0 1.5px 1.5px; border-radius: 0; background: transparent; transform: rotate(-45deg) translate(1px,-1px); }
.analysis-steps li.complete:not(:last-child)::after { background: linear-gradient(90deg, #3fb68f, rgba(255, 255, 255,.12)); }
@keyframes step-arrive { from { opacity: .38; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.result-hero { min-height: 168px; display: grid; grid-template-columns: 125px 1fr; align-items: center; gap: 20px; padding: 20px 24px; border-radius: var(--radius); color: white; background: var(--navy); overflow: hidden; transition: background .3s ease; }
.result-hero.primary { background: #173c35; }
.result-hero.spam { background: #4b2831; }
.result-hero.other { background: #3d3323; }
.result-hero span { color: #eabb9b; font-size: var(--text-xs); font-weight: 800; letter-spacing: .08em; }
.result-hero.primary span { color: #67d7b3; }
.result-hero h3 { margin: 7px 0 8px; font-size: 24px; letter-spacing: -.035em; }
.result-hero p { max-width: 410px; margin: 0; color: rgba(255, 255, 255,.62); font-size: var(--text-xs); line-height: 1.5; }
.result-orbit { position: relative; width: 92px; height: 92px; }
.result-orbit::before, .result-orbit::after, .result-orbit i { content: ""; position: absolute; border: 1px solid rgba(246, 185, 145,.42); border-radius: 50%; inset: 8px; }
.result-orbit::after { inset: 22px; background: var(--violet); border: 0; box-shadow: 0 0 30px rgba(234, 148, 91,.48); }
.result-orbit i:nth-child(1) { inset: 0; animation: pulse 2.4s ease-in-out infinite; }
.result-orbit i:nth-child(2) { inset: 15px; animation: pulse 2.4s .4s ease-in-out infinite; }
.result-orbit i:nth-child(3) { inset: 31px; z-index: 2; border: 0; background: white; }
@keyframes pulse { 50% { transform: scale(1.08); opacity: .45; } }
.recipient-results-heading { display: flex; justify-content: space-between; align-items: baseline; margin: 28px 0 9px; }
.recipient-results-heading h3 { margin: 0; font-size: 13px; }
.recipient-results-heading span { color: var(--ink-faint); font-size: var(--text-xs); }
.recipient-results { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255,.45); }
.recipient-result-row { min-height: 68px; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.recipient-result-row:last-child { border-bottom: 0; }
.recipient-status { width: 9px; height: 9px; display: grid; place-items: center; border-radius: 50%; background: #ded9d5; }
.recipient-status.primary { background: #55c59f; box-shadow: 0 0 0 4px #e5f7f1; }
.recipient-status.spam { background: #d55d76; box-shadow: 0 0 0 4px #fae9ed; }
.recipient-status.other { background: #d8a34f; box-shadow: 0 0 0 4px #fbf1df; }
.recipient-result-row code { display: block; overflow: hidden; color: var(--ink); font: 600 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.recipient-result-row small { display: block; margin-top: 4px; color: var(--ink-faint); font-size: var(--text-xs); }
.placement-badge { padding: 5px 8px; border-radius: 999px; color: #8b817b; background: #f2efed; font-size: var(--text-xs); white-space: nowrap; }
.placement-badge.primary { color: #237b62; background: #e4f5ef; }
.placement-badge.spam { color: #9f3d52; background: #fae8ec; }
.placement-badge.other { color: #87601e; background: #fbefd9; }
.placement-badge.unavailable { color: #8f4e25; background: #fff0df; }
.recipient-status.unavailable { background: #fff0df; }
.recipient-status.unavailable i { background: #de9342; }
.recipient-result-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.recipient-recheck { min-height: 30px; padding: 0 10px; border: 1px solid #e6ded8; border-radius: 8px; color: #6f6157; background: #fff; font-size: var(--text-xs); font-weight: 750; cursor: pointer; transition: transform .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease; }
.recipient-recheck:hover { transform: translateY(-1px); border-color: #ffaa72; color: #f58c46; box-shadow: 0 7px 18px rgba(190, 115, 65,.1); }
.recipient-recheck:disabled { transform: none; opacity: .58; cursor: wait; box-shadow: none; }
.connection-notice.success { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.connection-copy { display: grid; gap: 4px; }
.disconnect-google { min-height: 34px; padding: 0 12px; border: 1px solid rgba(48, 35, 26,.14); border-radius: 8px; color: #62574f; background: rgba(255, 255, 255,.64); font: inherit; font-size: var(--text-xs); font-weight: 750; cursor: pointer; }
.disconnect-google:hover { color: #8f3349; border-color: rgba(143, 51, 73,.28); background: #fff5f7; }
.timeline-heading { display: flex; justify-content: space-between; align-items: baseline; margin: 30px 0 9px; }
.timeline-heading h3 { margin: 0; font-size: 13px; }
.timeline-heading span { color: var(--ink-faint); font-size: var(--text-xs); }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { min-height: 61px; display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); }
.timeline-dot { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: #b1a9a4; background: #f2efed; font-size: var(--text-xs); }
.timeline-item.complete .timeline-dot { color: var(--green); background: #e6f7f1; }
.timeline-item.partial .timeline-dot { color: #8b6c28; background: #fbf1df; }
.timeline-item strong { display: block; margin-bottom: 3px; font-size: var(--text-xs); }
.timeline-item small { color: #9f9791; font-size: var(--text-xs); }
.timeline-state { color: #8b817b; font-size: var(--text-xs); }

.context-pane { min-height: 480px; padding-left: clamp(28px, 4vw, 56px); border-left: 1px solid var(--line); }
.context-pane h2 { margin: 13px 0 38px; font-size: 28px; line-height: 1.12; letter-spacing: -.045em; }
.context-flow { display: grid; gap: 0; }
.context-flow > div { display: grid; grid-template-columns: 35px 1fr; gap: 7px; padding: 0 0 28px; position: relative; }
.context-flow > div:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 24px; bottom: 5px; width: 1px; background: var(--line); }
.context-flow span { color: var(--violet); font: 700 12px ui-monospace, monospace; }
.context-flow p { margin: 0; color: var(--ink-soft); font-size: var(--text-xs); line-height: 1.55; }
.scope-message { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding-top: 22px; margin-top: 7px; border-top: 1px solid var(--line); }
.scope-icon { color: var(--violet); font-size: 20px; }
.scope-message p { margin: 0; color: #948a84; font-size: var(--text-xs); line-height: 1.55; }
.scope-message strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: var(--text-xs); }

.inline-error { margin-top: 16px; padding: 11px 13px; border-left: 3px solid var(--red); color: #98384b; background: #fff0f3; font-size: var(--text-xs); line-height: 1.45; }
.toast { position: fixed; right: 25px; bottom: 25px; z-index: 20; padding: 11px 15px; border-radius: 9px; color: white; background: var(--navy); box-shadow: 0 12px 35px rgba(43, 28, 18,.23); font-size: var(--text-xs); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .22s ease; }
.toast.visible { opacity: 1; transform: none; }
.warmup-mode-shell { padding-top: 24px; }
.warmup-mode-tabs { display: flex; gap: 30px; border-bottom: 1px solid var(--line); }
.warmup-mode-tabs button { position: relative; border: 0; background: none; color: var(--muted); padding: 14px 2px 16px; font: 600 14px/1.2 inherit; cursor: pointer; }
.warmup-mode-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .22s ease; }
.warmup-mode-tabs button.active { color: var(--ink); }
.warmup-mode-tabs button.active::after { transform: scaleX(1); }
.warmup-mode-tabs small { margin-left: 8px; color: var(--muted); font-size: var(--text-xs); font-weight: 500; }
.warmup-mode-panel { display: none; grid-template-columns: minmax(260px, .75fr) minmax(420px, 1.25fr); gap: 9vw; padding: 62px 0 20px; animation: mode-in .28s ease both; }
.warmup-mode-panel.active { display: grid; }
@keyframes mode-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.warmup-mode-copy h2 { margin: 12px 0 18px; font-size: clamp(28px, 3.2vw, 46px); line-height: 1.05; letter-spacing: -.04em; }
.warmup-mode-copy > p:not(.eyebrow) { max-width: 490px; color: var(--muted); line-height: 1.7; }
.truth-note { display: grid; grid-template-columns: 28px 1fr; gap: 12px; max-width: 500px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.truth-note > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 152, 83,.1); color: var(--accent); font-weight: 700; }
.truth-note.secure > span { background: rgba(49, 164, 116,.1); color: #278a62; }
.truth-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.truth-note strong { display: block; color: var(--ink); margin-bottom: 3px; }
.warmup-action-pane { padding-top: 5px; }
.warmup-demo-form > label { display: block; margin-bottom: 10px; color: var(--muted); font-size: var(--text-xs); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.warmup-input-row { display: flex; gap: 10px; }
.warmup-input-row input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); padding: 0 15px; outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
.warmup-input-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 152, 83,.09); }
.warmup-demo-result { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 22px; }
.demo-ready, .customer-mailbox-row { display: flex; align-items: center; gap: 12px; }
.demo-ready > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #eaf8f2; color: #278a62; }
.demo-ready div, .customer-mailbox-row div { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.demo-ready small, .customer-mailbox-row small { color: var(--muted); }
.demo-addresses { display: grid; gap: 7px; margin: 18px 0; max-height: 144px; overflow: auto; }
.demo-address-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; }
.demo-addresses code { min-width: 0; overflow: hidden; padding: 9px 11px; border-radius: 7px; background: var(--paper); color: var(--ink-soft); font-size: var(--text-xs); text-overflow: ellipsis; white-space: nowrap; }
.copy-all-demo, .copy-demo-address, .demo-recheck { border: 0; background: none; color: var(--accent); font-size: var(--text-xs); font-weight: 700; cursor: pointer; }
.copy-all-demo { margin-left: auto; padding: 7px 0 7px 10px; }
.copy-demo-address { padding: 8px; opacity: .72; transition: opacity .16s ease, transform .16s ease; }
.copy-demo-address:hover { opacity: 1; transform: translateX(-2px); }
.demo-actions { display: flex; gap: 9px; }
.demo-actions a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.demo-monitor { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.demo-status { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--muted); font-size: 12px; }
.demo-status strong, .demo-status span { display: block; }
.demo-recheck { flex: 0 0 auto; padding: 8px 0 8px 12px; }
.demo-recheck:disabled { cursor: wait; opacity: .55; }
.status-spinner { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.provider-heading, .connected-heading { display: flex; align-items: end; justify-content: space-between; }
.provider-heading span, .connected-heading > span { color: var(--muted); font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; }
.provider-heading h3 { margin: 6px 0 0; font-size: 19px; }
.provider-heading small { color: var(--muted); }
.provider-list { margin-top: 16px; border-top: 1px solid var(--line); }
.provider-row { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.provider-row > div:nth-child(2) { display: flex; flex-direction: column; gap: 4px; }
.provider-row small { color: var(--muted); }
.provider-row.disabled { opacity: .52; }
.provider-logo { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; font-weight: 800; }
.provider-logo.google { color: #4285f4; }.provider-logo.microsoft { color: #00a4ef; }.provider-logo.other { color: var(--accent); }
.provider-connect { border: 0; padding: 7px 0; color: var(--accent); background: none; font: 700 12px/1.2 inherit; text-decoration: none; cursor: pointer; }
.provider-connect:hover { text-decoration: underline; }
.provider-row .soon { color: var(--muted); font-size: var(--text-xs); }
.connected-heading { margin-top: 30px; }
.connected-heading button { border: 0; background: none; color: var(--accent); font: 600 12px inherit; cursor: pointer; }
.customer-mailboxes { margin-top: 11px; }
.customer-mailbox-row { padding: 14px 0; border-top: 1px solid var(--line); }
.mailbox-status { width: 8px; height: 8px; border-radius: 50%; background: #d7dae0; }
.mailbox-status.active { background: #31a474; box-shadow: 0 0 0 4px rgba(49, 164, 116,.1); }
.capability-count { color: var(--muted); font-size: var(--text-xs); }
.empty-mailboxes { margin: 0; padding: 20px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.connection-notice { display: grid; gap: 4px; margin-top: 12px; padding: 13px 15px; border-left: 3px solid var(--green); color: var(--ink-soft); background: #eef9f5; font-size: var(--text-xs); line-height: 1.5; animation: mode-in .25s ease both; }
.connection-notice strong { color: var(--ink); font-size: 12px; }
.connection-notice.warning { border-left-color: #d7952b; background: #fff8e9; }

.warmup-onboarding { padding-top: 28px; }
.setup-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0 0 28px; border-bottom: 1px solid var(--line); list-style: none; }
.setup-progress li { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; color: #b6aca6; }
.setup-progress li:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: 40px; right: 20px; height: 1px; background: var(--line); }
.setup-progress li > span { position: relative; z-index: 1; display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-size: var(--text-xs); font-weight: 800; transition: .22s ease; }
.setup-progress li div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.setup-progress strong { color: inherit; font-size: 12px; }
.setup-progress small { overflow: hidden; font-size: var(--text-xs); text-overflow: ellipsis; white-space: nowrap; }
.setup-progress li.active { color: var(--ink); }
.setup-progress li.active > span { border-color: var(--violet); color: white; background: var(--violet); box-shadow: 0 0 0 5px rgba(234, 148, 91,.08); }
.setup-progress li.complete { color: var(--green); }
.setup-progress li.complete > span { border-color: var(--green); color: transparent; background: #e9f7f2; }
.setup-progress li.complete > span::after { content: "✓"; position: absolute; color: var(--green); font-size: 12px; }
.warmup-setup-grid { display: grid; grid-template-columns: minmax(480px, 1.35fr) minmax(290px, .65fr); gap: clamp(48px, 8vw, 120px); padding-top: 52px; animation: mode-in .32s ease both; }
.setup-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.setup-heading h2 { max-width: 620px; margin: 11px 0 0; font-size: clamp(30px, 3.7vw, 51px); line-height: 1.02; letter-spacing: -.045em; }
.setup-heading > span { flex: 0 0 auto; margin-top: 4px; padding: 7px 10px; border-radius: 99px; color: var(--ink-soft); background: var(--violet-soft); font-size: var(--text-xs); font-weight: 700; }
.setup-lead { max-width: 690px; margin: 21px 0 33px; color: var(--ink-soft); font-size: 14px; line-height: 1.75; }
.warmup-setup-main .provider-list { margin-top: 0; }
.warmup-setup-aside { padding-top: 8px; }
.warmup-setup-aside h3 { margin: 12px 0 27px; max-width: 310px; font-size: 23px; line-height: 1.25; letter-spacing: -.025em; }
.permission-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.permission-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.permission-list li > span { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: var(--green); background: #e9f7f2; font-size: var(--text-xs); font-weight: 800; }
.permission-list li div { display: flex; flex-direction: column; gap: 4px; }
.permission-list strong { font-size: 12px; }
.permission-list small { color: var(--ink-soft); font-size: var(--text-xs); line-height: 1.45; }
.security-footnote { display: grid; grid-template-columns: 28px 1fr; gap: 11px; margin-top: 25px; }
.security-footnote > span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; color: var(--violet); background: var(--violet-soft); }
.security-footnote p { margin: 0; color: var(--ink-soft); font-size: var(--text-xs); line-height: 1.55; }
.security-footnote strong { display: block; margin-bottom: 2px; color: var(--ink); }
.next-stage-preview { display: grid; grid-template-columns: .65fr repeat(3, 1fr); gap: 30px; margin-top: 52px; padding: 24px 0; border-top: 1px solid var(--line); }
.next-stage-preview > span { color: var(--ink-soft); font-size: var(--text-xs); font-weight: 800; letter-spacing: .09em; }
.next-stage-preview div { display: flex; flex-direction: column; gap: 5px; }
.next-stage-preview strong { font-size: var(--text-xs); }
.next-stage-preview small { color: var(--ink-soft); font-size: var(--text-xs); line-height: 1.45; }

.connected-warmup-stage { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); gap: clamp(52px, 8vw, 118px); padding-top: 52px; animation: mode-in .34s ease both; }
.readiness-heading { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; }
.readiness-heading h2 { margin: 10px 0 12px; font-size: clamp(34px, 3.8vw, 52px); line-height: 1.02; letter-spacing: -.045em; }
.readiness-heading p:not(.eyebrow) { max-width: 650px; margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.readiness-heading > span { flex: 0 0 auto; margin-top: 4px; padding: 8px 11px; border-radius: 99px; color: var(--violet); background: var(--violet-soft); font-size: var(--text-xs); font-weight: 800; }
.connected-sender-summary { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 14px; align-items: center; margin-top: 30px; padding: 19px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sender-provider-mark { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 10px; color: #4285f4; font-weight: 800; }
.connected-sender-summary > div { display: grid; gap: 3px; }
.connected-sender-summary small { color: var(--ink-soft); font-size: var(--text-xs); font-weight: 800; letter-spacing: .08em; }
.connected-sender-summary strong { font-size: 14px; }
.connected-sender-summary div span { color: var(--ink-soft); font-size: var(--text-xs); }
.connected-sender-summary > b { display: flex; align-items: center; gap: 7px; color: var(--green); font-size: var(--text-xs); }
.connected-sender-summary > b i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(49, 164, 116,.1); }
.readiness-checks { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.readiness-check { display: grid; grid-template-columns: 24px 1fr; gap: 11px; padding: 18px 16px 18px 0; }
.readiness-check + .readiness-check { padding-left: 16px; border-left: 1px solid var(--line); }
.readiness-check > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: var(--text-xs); font-weight: 800; }
.readiness-check.complete > span { color: var(--green); background: #e9f7f2; }
.readiness-check.pending > span { color: #b77816; background: #fff3d9; }
.readiness-check div { display: grid; gap: 4px; }
.readiness-check strong { font-size: var(--text-xs); }
.readiness-check small { color: var(--ink-soft); font-size: var(--text-xs); line-height: 1.5; }
.pool-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 34px; }
.pool-heading > div { display: grid; gap: 6px; }
.pool-heading > div span { color: var(--ink-soft); font-size: var(--text-xs); font-weight: 800; letter-spacing: .08em; }
.pool-heading > div strong { font-size: 20px; }
.primary-button.compact { display: inline-flex; width: auto; min-height: 39px; padding: 0 16px; font-size: var(--text-xs); text-decoration: none; }
.warmup-pool-accounts { margin-top: 14px; border-top: 1px solid var(--line); }
.pool-account-row { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pool-account-row > span { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-soft); font-size: var(--text-xs); font-weight: 800; }
.pool-account-row > div { display: grid; gap: 3px; }
.pool-account-row strong { font-size: var(--text-xs); }
.pool-account-row small { color: var(--ink-soft); font-size: var(--text-xs); }
.pool-account-row > b { color: #b77816; font-size: var(--text-xs); }
.pool-account-row.ready > span { border-color: transparent; color: var(--green); background: #e9f7f2; }
.pool-account-row.ready > b { color: var(--green); }
.readiness-aside { padding-top: 10px; }
.readiness-aside h3 { margin: 12px 0 14px; font-size: 24px; line-height: 1.2; letter-spacing: -.03em; }
.readiness-aside > p:not(.eyebrow) { margin: 0 0 28px; color: var(--ink-soft); font-size: var(--text-xs); line-height: 1.65; }
.readiness-rule { display: grid; grid-template-columns: 27px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.readiness-rule > span { color: var(--violet); font-size: var(--text-xs); font-weight: 800; }
.readiness-rule p { margin: 0; color: var(--ink-soft); font-size: var(--text-xs); line-height: 1.5; }
.readiness-rule strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: var(--text-xs); }
.plan-preview { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr repeat(3, .55fr) auto; gap: 28px; align-items: center; margin-top: 4px; padding: 24px 0; border-top: 1px solid var(--line); }
.plan-preview h3 { margin: 6px 0 0; font-size: 18px; }
.plan-preview > div:not(:first-child) { display: grid; gap: 5px; }
.plan-preview > div:not(:first-child) span { color: var(--ink-soft); font-size: var(--text-xs); }
.plan-preview > div:not(:first-child) strong { font-size: 13px; }
.plan-preview.locked { opacity: .48; }
.plan-preview .secondary-button { white-space: nowrap; }

.warmup-control-stage { padding-top: 42px; animation: mode-in .34s ease both; }
.control-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.control-heading h2 { margin: 9px 0 0; font-size: clamp(34px, 3.8vw, 50px); line-height: 1; letter-spacing: -.045em; }
.warmup-status { display: flex; align-items: center; gap: 8px; margin-top: 7px; padding: 8px 11px; border-radius: 99px; color: var(--ink-soft); background: var(--violet-soft); font-size: var(--text-xs); font-weight: 800; }
.warmup-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }
.warmup-status.active { color: #207b58; background: #e9f7f2; }
.warmup-status.active i { background: var(--green); box-shadow: 0 0 0 4px rgba(49, 164, 116,.1); }
.warmup-status.paused { color: #956519; background: #fff3d9; }
.warmup-status.paused i { background: #d7952b; }
.mailbox-switcher { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-top: 30px; padding: 15px 0; border-top: 1px solid var(--line); }
.mailbox-switcher label { display: grid; gap: 7px; min-width: min(380px, 58%); }
.mailbox-switcher label > span { color: var(--ink-soft); font-size: var(--text-xs); font-weight: 800; letter-spacing: .08em; }
.mailbox-switcher select { width: 100%; padding: 10px 34px 10px 11px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--ink); background: white; font: 700 12px inherit; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease; }
.mailbox-switcher select:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(245, 146, 80, .1); }
.mailbox-switcher > a { padding: 10px 0; color: var(--violet); font-size: var(--text-xs); font-weight: 800; text-decoration: none; white-space: nowrap; }
.mailbox-switcher > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-action { border: 0; padding: 10px 0; color: var(--violet); background: none; font: 800 12px/1.2 inherit; cursor: pointer; white-space: nowrap; }
.text-action:hover { text-decoration: underline; text-underline-offset: 3px; }
.modal-open { overflow: hidden; }
.connected-sender-summary > .mailbox-quick-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.mailbox-quick-actions button, .mailbox-reconnect { display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; color: var(--ink-soft); background: white; font: 700 12px/1 inherit; text-decoration: none; cursor: pointer; }
.mailbox-quick-actions button:hover, .mailbox-reconnect:hover { border-color: var(--violet); color: var(--violet); }
.mailbox-quick-actions .connection-check.verified { border-color: rgba(34, 170, 123,.2); color: #177958; background: #edf9f5; cursor: default; }
.mailbox-quick-actions .connection-check.verified:hover { border-color: rgba(34, 170, 123,.34); color: #126649; }
.mailbox-quick-actions .connection-check.verified span { font-size: var(--text-xs); }
.mailbox-quick-actions .connection-check:disabled { opacity: .66; cursor: wait; }
.mailbox-quick-actions .danger-action:hover { border-color: #d95b5b; color: #b74343; }
.connected-sender-summary.needs-attention { border-color: #ead49c; background: linear-gradient(120deg,rgba(255, 249, 230,.94),rgba(255, 255, 255,.84)); box-shadow: 0 11px 32px rgba(139, 94, 23,.08); }
.connected-sender-summary.needs-attention .sender-provider-mark { border-color: #ead49c; color: #a16814; background: #fff7df; }
.mailbox-reconnect { border-color: #f69351; color: #fff; background: linear-gradient(135deg,#ffa467,#ed8b49); box-shadow: 0 7px 18px rgba(222, 130, 68,.18); }
.mailbox-reconnect:hover { color: #fff; background: linear-gradient(135deg,#ff9b59,#e98542); }
.mailbox-recovery-copy { grid-column: 2 / -1; margin: 5px 0 0; color: #78632f; font-size: var(--text-xs); line-height: 1.5; animation: recovery-reveal .32s ease both; }
.mailbox-recovery-copy b { color: #9b6216; }
@keyframes recovery-reveal { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

.modal-shell { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 24px; }
.modal-shell.hidden { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(31, 21, 15, .46); backdrop-filter: blur(7px); animation: fade-in .2s ease both; }
.mailbox-modal { position: relative; width: min(760px, 100%); max-height: min(840px, calc(100vh - 48px)); overflow: auto; border: 1px solid rgba(255, 255, 255,.7); border-radius: 20px; background: #fff; box-shadow: 0 30px 90px rgba(64, 39, 22,.22); animation: modal-in .26s cubic-bezier(.2,.8,.2,1) both; }
.mailbox-modal > header { position: sticky; z-index: 2; top: 0; display: flex; align-items: flex-start; justify-content: space-between; padding: 28px 30px 22px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255,.94); backdrop-filter: blur(12px); }
.mailbox-modal h2 { margin: 6px 0 0; font-size: 28px; letter-spacing: -.04em; }
.modal-close { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-soft); background: #fff; font: 400 22px/1 inherit; cursor: pointer; }
.provider-choice { display: grid; gap: 0; padding: 8px 30px 30px; }
.provider-choice > a, .provider-choice > button { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 14px; padding: 20px 0; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: none; text-align: left; text-decoration: none; cursor: pointer; }
.provider-choice > :last-child { border-bottom: 0; }
.provider-choice div { display: grid; gap: 4px; }
.provider-choice small { color: var(--muted); }
.provider-choice b { color: var(--violet); font-size: var(--text-xs); }
.imap-smtp-form { padding: 24px 30px 30px; }
.back-action { border: 0; padding: 0 0 22px; color: var(--violet); background: none; font: 700 12px/1.2 inherit; cursor: pointer; }
.form-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.form-section-heading span, .imap-smtp-form label > span { color: var(--ink-soft); font-size: var(--text-xs); font-weight: 800; letter-spacing: .08em; }
.form-section-heading h3 { margin: 6px 0 0; font-size: 22px; letter-spacing: -.03em; }
.form-section-heading > small { max-width: 310px; color: var(--muted); font-size: var(--text-xs); line-height: 1.5; }
.connection-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; }
.imap-smtp-form label { display: grid; gap: 7px; }
.imap-smtp-form input, .imap-smtp-form select { width: 100%; min-height: 43px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; outline: 0; color: var(--ink); background: white; font: 600 12px/1.2 inherit; }
.imap-smtp-form input:focus, .imap-smtp-form select:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(245, 146, 80,.09); }
.imap-smtp-form label small { color: var(--muted); font-size: var(--text-xs); line-height: 1.4; }
.wide-field { grid-column: 1 / -1; }
.imap-smtp-form details { margin-top: 22px; border-block: 1px solid var(--line); }
.imap-smtp-form summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font-size: var(--text-xs); font-weight: 800; cursor: pointer; }
.imap-smtp-form summary small { color: var(--muted); font-weight: 500; }
.server-grid { display: grid; grid-template-columns: 1fr 88px 130px; gap: 12px; padding: 0 0 20px; }
.imap-smtp-form footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-top: 24px; }
.imap-smtp-form footer p { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: var(--text-xs); line-height: 1.4; }
.imap-smtp-form footer p i { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(49, 164, 116,.1); }
.imap-smtp-form footer .primary-button { white-space: nowrap; }
.provider-message { display: flex; align-items: flex-start; gap: 18px; padding: 36px 30px 40px; }
.provider-message h3 { margin: 2px 0 8px; font-size: 19px; }
.provider-message p { margin: 0; color: var(--muted); font-size: var(--text-xs); line-height: 1.6; }
.provider-message a { display: inline-flex; margin-top: 16px; border-radius: 8px; padding: 11px 14px; color: white; background: var(--violet); font-size: var(--text-xs); font-weight: 800; text-decoration: none; }
.provider-message div > small { display: block; margin-top: 10px; color: var(--muted); font-size: var(--text-xs); line-height: 1.45; }
.provider-message button { margin-left: auto; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; background: white; font: 700 12px/1 inherit; cursor: pointer; }
.credential-guide { margin: 4px 0 18px; border: 1px solid var(--line); border-radius: 12px; background: #fffbf9; }
.credential-guide summary { display: flex; justify-content: space-between; padding: 14px 16px; cursor: pointer; font-size: var(--text-xs); font-weight: 800; }
.credential-guide summary small { color: var(--muted); font-weight: 600; }
.credential-guide ol { display: grid; gap: 12px; margin: 0; padding: 2px 18px 14px 42px; }
.credential-guide li { padding-left: 4px; color: var(--violet); font-size: var(--text-xs); }
.credential-guide li b, .credential-guide li span { display: block; color: var(--ink); }
.credential-guide li span { margin-top: 3px; color: var(--muted); line-height: 1.5; }
.credential-guide > p { margin: 0; border-top: 1px solid var(--line); padding: 12px 16px; color: #73551a; background: #fff9e9; font-size: var(--text-xs); line-height: 1.5; }
.gmail-steps { display: grid; gap: 0; margin: 0 0 22px; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.gmail-steps li { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 13px; min-height: 72px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.gmail-steps li:last-child { border-bottom: 0; }
.gmail-steps li > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--violet); background: #fff4ed; font-size: 10px; font-weight: 850; }
.gmail-steps li > div { display: grid; gap: 4px; }
.gmail-steps strong { font-size: 12px; }
.gmail-steps small { color: var(--muted); font-size: var(--text-xs); line-height: 1.45; }
.gmail-steps a { border-radius: 8px; padding: 9px 11px; color: var(--violet); background: #fff8f4; font-size: var(--text-xs); font-weight: 800; text-decoration: none; transition: background .18s ease, box-shadow .18s ease; }
.gmail-steps a:hover, .gmail-steps a.needs-attention { background: #fff1e8; box-shadow: 0 0 0 3px rgba(245, 146, 80,.09); }
.gmail-password-group { display: grid; grid-template-columns: minmax(0,1fr) auto; border: 1px solid var(--line); border-radius: 9px; background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.gmail-password-group:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(245, 146, 80,.09); }
.imap-smtp-form .gmail-password-group input { border: 0; box-shadow: none; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: .18em; }
.gmail-password-group button { border: 0; border-left: 1px solid var(--line); padding: 0 13px; color: var(--violet); background: transparent; font: 800 11px/1 inherit; cursor: pointer; }
.imap-smtp-form .field-error { color: var(--red); }
.gmail-disclosure ul { display: grid; gap: 9px; margin: 0; padding: 0 18px 16px 34px; color: var(--muted); font-size: var(--text-xs); line-height: 1.5; }
.gmail-connection-progress { display: grid; gap: 8px; margin-top: 20px; border: 1px solid #f3e9e3; border-radius: 11px; padding: 14px 16px; background: #fffbf9; }
.gmail-connection-progress p { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); font-size: var(--text-xs); animation: gmail-progress-in .24s ease both; animation-delay: calc(var(--progress-order, 0) * 150ms); }
.gmail-connection-progress p.complete { color: #16795a; }
.gmail-connection-progress p span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: inherit; background: currentColor; font-size: 0; }
.gmail-connection-progress p span::after { content: "◌"; color: #fff; font-size: 11px; }
.gmail-connection-progress p.complete span::after { content: "✓"; }
.gmail-connection-highlight { animation: gmail-connected-highlight 1.2s ease both; }
@keyframes gmail-progress-in { from { opacity: .3; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes gmail-connected-highlight { 0%,100% { box-shadow: none; } 25% { box-shadow: 0 0 0 4px rgba(49, 164, 116,.13),0 14px 35px rgba(49, 164, 116,.12); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.reports-intro { display: grid; grid-template-columns: minmax(320px,.9fr) minmax(280px,.55fr); justify-content: space-between; gap: 70px; padding: 54px 0 42px; border-bottom: 1px solid var(--line); }
.reports-intro h2 { margin: 9px 0 0; font-size: clamp(30px,4vw,48px); line-height: 1.04; letter-spacing: -.05em; }
.reports-intro > p { align-self: end; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.report-table-heading, .report-history-row { display: grid; grid-template-columns: minmax(170px,1.4fr) minmax(88px,.6fr) minmax(110px,1fr) 44px 44px minmax(104px,.8fr); align-items: center; gap: 18px; }
.report-table-heading { padding: 28px 14px 10px; color: var(--muted); font-size: var(--text-xs); font-weight: 800; letter-spacing: .08em; }
.reports-list { border-block: 1px solid var(--line); }
.report-history-row { min-height: 72px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.report-history-row:last-child { border-bottom: 0; }
.report-history-row > div { display: grid; gap: 4px; }
.report-history-row strong { font-size: 12px; }
.report-history-row small, .report-history-row time { color: var(--muted); font-size: var(--text-xs); }
.report-history-row > span { font-size: var(--text-xs); font-weight: 800; }
.report-history-row .status-pill { width: fit-content; border-radius: 99px; padding: 6px 8px; color: #207b58; background: #e9f7f2; font-size: var(--text-xs); }
.report-history-row .spam-value { color: #ba4d4d; }
.mailbox-switcher.single-mailbox { justify-content: flex-end; }
.mailbox-switcher.single-mailbox label { display: none; }
.warmup-control-stage .connected-sender-summary { margin-top: 0; }
.connected-sender-summary.mailbox-change { animation: mailbox-change .28s ease both; }
@keyframes mailbox-change { from { opacity: .35; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.warmup-control-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); gap: clamp(52px, 8vw, 118px); padding-top: 42px; }
.section-intro h3 { margin: 9px 0 7px; font-size: 24px; letter-spacing: -.03em; }
.section-intro > span { color: var(--ink-soft); font-size: var(--text-xs); }
.simple-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 24px; border-top: 1px solid var(--line); }
.simple-settings-grid label { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.simple-settings-grid label > span { font-size: var(--text-xs); font-weight: 750; }
.simple-settings-grid label > small { grid-row: 2; color: var(--ink-soft); font-size: var(--text-xs); }
.simple-settings-grid label > div { grid-column: 2; grid-row: 1 / 3; display: flex; align-items: center; min-width: 105px; border: 1px solid var(--line); border-radius: 8px; background: white; overflow: hidden; }
.simple-settings-grid input { width: 48px; min-width: 0; padding: 9px 4px 9px 10px; border: 0; outline: 0; color: var(--ink); background: transparent; font: 700 12px inherit; }
.simple-settings-grid b { padding-right: 9px; color: var(--ink-soft); font-size: var(--text-xs); font-weight: 600; white-space: nowrap; }
.sending-window { display: grid; grid-template-columns: minmax(0,1fr) auto 14px auto; gap: 14px; align-items: end; padding: 19px 0; border-bottom: 1px solid var(--line); }
.sending-window > div { display: grid; gap: 4px; }
.sending-window > div span { font-size: var(--text-xs); font-weight: 800; letter-spacing: .08em; }
.sending-window > div small { color: var(--ink-soft); font-size: var(--text-xs); line-height: 1.4; }
.sending-window label { display: grid; gap: 5px; color: var(--ink-soft); font-size: var(--text-xs); font-weight: 700; }
.sending-window input { width: 92px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--ink); background: white; font: 700 12px inherit; }
.sending-window input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(245, 146, 80,.1); }
.sending-window > i { padding-bottom: 10px; color: var(--ink-soft); font-style: normal; }
.weekday-setting { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.weekday-setting > span { display: grid; gap: 4px; }
.weekday-setting strong { font-size: var(--text-xs); }
.weekday-setting small { color: var(--ink-soft); font-size: var(--text-xs); }
.weekday-setting input { position: absolute; opacity: 0; pointer-events: none; }
.weekday-setting > i { position: relative; width: 34px; height: 19px; border-radius: 99px; background: #dfdad7; transition: background .2s ease; }
.weekday-setting > i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0, 0, 0,.15); transition: transform .2s ease; }
.weekday-setting input:checked + i { background: var(--violet); }
.weekday-setting input:checked + i::after { transform: translateX(15px); }
.warmup-settings-form > .secondary-button { width: 100%; margin-top: 20px; }
.warmup-launch-panel { padding-top: 3px; }
.warmup-launch-panel h3 { margin: 10px 0 9px; font-size: 25px; letter-spacing: -.035em; }
.warmup-launch-panel > p:not(.eyebrow) { margin: 0; color: var(--ink-soft); font-size: var(--text-xs); line-height: 1.6; }
.launch-checks { margin-top: 26px; border-top: 1px solid var(--line); }
.launch-checks > div { display: grid; grid-template-columns: 23px 1fr; gap: 11px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.launch-checks > div > span { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; font-size: var(--text-xs); font-weight: 800; }
.launch-checks .complete > span { color: var(--green); background: #e9f7f2; }
.launch-checks .pending > span { color: #b77816; background: #fff3d9; }
.launch-checks p { display: grid; gap: 3px; margin: 0; }
.launch-checks strong { font-size: var(--text-xs); }
.launch-checks small { color: var(--ink-soft); font-size: var(--text-xs); line-height: 1.45; }
.warmup-launch-panel .primary-button { width: 100%; margin-top: 22px; }
.launch-footnote { display: block; margin-top: 10px; color: var(--ink-soft); font-size: var(--text-xs); line-height: 1.45; text-align: center; }
.warmup-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 45px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.warmup-metrics > div { display: grid; gap: 8px; padding: 0 20px; }
.warmup-metrics > div:first-child { padding-left: 0; }
.warmup-metrics > div + div { border-left: 1px solid var(--line); }
.warmup-metrics span { color: var(--ink-soft); font-size: var(--text-xs); }
.warmup-metrics strong { font-size: 23px; }
.warmup-analysis { margin-top: 52px; padding-top: 34px; border-top: 1px solid var(--line); animation: mode-in .32s ease both; }
.warmup-analysis > header { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.warmup-analysis h3 { margin: 8px 0 0; font-size: 28px; letter-spacing: -.035em; }
.next-run { display: grid; gap: 5px; text-align: right; }
.next-run span { color: var(--ink-soft); font-size: var(--text-xs); font-weight: 800; letter-spacing: .09em; }
.next-run strong { font-size: var(--text-xs); }
.analysis-layout { display: grid; grid-template-columns: .62fr 1fr 1.08fr; gap: clamp(32px, 5vw, 72px); margin-top: 30px; padding-bottom: 36px; }
.analysis-score { display: grid; grid-template-columns: auto 1fr; align-content: start; }
.analysis-score > span { font-size: clamp(52px, 6vw, 78px); font-weight: 760; line-height: .9; letter-spacing: -.065em; }
.analysis-score > small { align-self: end; padding: 0 0 8px 7px; color: var(--ink-soft); font-size: var(--text-xs); }
.analysis-score > strong, .analysis-score > p { grid-column: 1 / -1; }
.analysis-score > strong { margin-top: 16px; font-size: 12px; }
.analysis-score > p { max-width: 230px; margin: 7px 0 0; color: var(--ink-soft); font-size: var(--text-xs); line-height: 1.55; }
.analysis-bars { display: grid; gap: 17px; padding-top: 4px; }
.analysis-bars > div { display: grid; gap: 8px; }
.analysis-bars label { display: flex; justify-content: space-between; gap: 18px; font-size: var(--text-xs); }
.analysis-bars label span { color: var(--ink-soft); }
.analysis-bars label b { font-weight: 800; }
.analysis-bars > div > i { height: 5px; border-radius: 99px; background: #f0ece9; overflow: hidden; }
.analysis-bars em { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--violet); transition: width .7s cubic-bezier(.2,.8,.2,1); }
.analysis-bars i.danger em { background: #d95b64; }
.activity-heading { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.activity-heading span { font-size: var(--text-xs); font-weight: 800; letter-spacing: .08em; }
.activity-heading small { color: var(--ink-soft); font-size: var(--text-xs); }
.activity-row { display: grid; grid-template-columns: 8px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.activity-row > i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(49, 164, 116,.1); }
.activity-row.error > i { background: #d95b64; box-shadow: 0 0 0 3px rgba(217, 91, 100,.1); }
.activity-row p { display: grid; gap: 2px; margin: 0; }
.activity-row strong { font-size: var(--text-xs); }
.activity-row small, .activity-row time { color: var(--ink-soft); font-size: var(--text-xs); }
.empty-activity { color: var(--ink-soft); font-size: var(--text-xs); }

.quality-scope { min-height: 32px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #fbe2d2; border-radius: 999px; color: #d1814b; background: #fef4ee; font-size: var(--text-xs); font-weight: 800; }
.quality-scope i { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px rgba(234, 148, 91,.1); }
.quality-shell { margin-top: 48px; border-top: 1px solid var(--line); }
.quality-view { display: none; animation: view-in .15s ease-out both; }
.quality-view.active { display: grid; }
#qualityCreateView { grid-template-columns: minmax(240px, .85fr) minmax(280px, 1.15fr) minmax(220px, .7fr); gap: clamp(24px, 3vw, 48px); padding-top: 54px; }
.quality-intro h2 { max-width: 530px; margin: 0 0 18px; font-size: clamp(34px, 4vw, 55px); line-height: 1.02; letter-spacing: -.052em; }
.quality-intro > p:last-child { max-width: 500px; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.quality-form { align-self: start; display: grid; padding-top: 27px; }
.quality-form > label { margin-bottom: 9px; font-size: var(--text-xs); font-weight: 750; }
.quality-form > p { margin: 10px 0 20px; color: var(--ink-soft); font-size: var(--text-xs); }
.quality-form .primary-button { justify-self: start; }
.quality-method { padding-left: 34px; border-left: 1px solid var(--line); }
.quality-method > span, .quality-send-panel > div:first-child span { color: #9b8d84; font-size: var(--text-xs); font-weight: 800; letter-spacing: .08em; }
.quality-method ol { margin: 23px 0 0; padding: 0; list-style: none; }
.quality-method li { display: grid; grid-template-columns: 25px 1fr; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.quality-method li b { color: var(--violet); font: 700 12px/1.4 ui-monospace, monospace; }
.quality-method li div { display: grid; gap: 4px; }
.quality-method li strong { font-size: var(--text-xs); }
.quality-method li small { color: var(--ink-soft); font-size: var(--text-xs); }
.quality-method > p { margin: 24px 0 0; color: var(--ink-soft); font-size: var(--text-xs); line-height: 1.6; }
.quality-method > p strong { color: var(--ink); }
#qualitySendView { grid-template-columns: minmax(280px, .7fr) minmax(460px, 1.3fr); gap: clamp(55px, 8vw, 120px); padding-top: 54px; }
.quality-send-panel { padding-top: 5px; }
.quality-send-panel > div:first-child { display: flex; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.quality-send-panel > div:first-child b { font-size: var(--text-xs); }
.quality-recipients > div { min-height: 51px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.quality-recipients span { color: var(--violet); font: 700 12px/1 ui-monospace, monospace; }
.quality-recipients code { overflow: hidden; font: 600 12px/1.4 ui-monospace, monospace; text-overflow: ellipsis; white-space: nowrap; }
.quality-recipients i { color: var(--green); font-size: var(--text-xs); font-style: normal; font-weight: 700; }
.quality-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.quality-delivery-notice { margin-top: 18px; padding: 13px 15px; border-left: 2px solid #e1a72f; color: #6e5b2b; background: #fff9e9; font-size: var(--text-xs); line-height: 1.55; }
.quality-actions .primary-button { margin-left: auto; }
#qualityReportView.active { display: block; padding-top: 40px; }
.quality-report-heading { display: flex; justify-content: space-between; align-items: end; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.quality-report-heading h2 { margin: 0; font-size: 28px; letter-spacing: -.035em; }
.quality-waiting { min-height: 270px; display: flex; align-items: center; justify-content: center; gap: 18px; }
.quality-waiting > i { width: 28px; height: 28px; border: 2px solid #f8e5d8; border-top-color: var(--violet); border-radius: 50%; animation: quality-spin .8s linear infinite; }
.quality-waiting div { display: grid; gap: 5px; }
.quality-waiting strong { font-size: 13px; }
.quality-waiting small { color: var(--ink-soft); font-size: var(--text-xs); }
@keyframes quality-spin { to { transform: rotate(360deg); } }
.quality-report { display: grid; grid-template-columns: minmax(210px, .55fr) minmax(460px, 1.45fr) minmax(240px, .65fr); gap: clamp(35px, 5vw, 78px); padding-top: 38px; }
.quality-score-block > div { display: flex; align-items: end; }
.quality-score-block span { font-size: clamp(68px, 8vw, 104px); font-weight: 780; line-height: .82; letter-spacing: -.075em; }
.quality-score-block small { padding: 0 0 8px 8px; color: var(--ink-soft); font-size: var(--text-xs); }
.quality-score-block > strong { display: block; margin-top: 23px; font-size: 16px; }
.quality-score-block > p { max-width: 220px; margin-top: 8px; color: var(--ink-soft); font-size: var(--text-xs); line-height: 1.55; }
.quality-checks { border-top: 1px solid var(--line); }
.quality-check { min-height: 70px; display: grid; grid-template-columns: 26px minmax(0,1fr) auto; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); opacity: 0; animation: quality-row .35s ease forwards; animation-delay: var(--quality-delay); }
@keyframes quality-row { to { opacity: 1; transform: none; } from { opacity: 0; transform: translateY(5px); } }
.quality-check > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: var(--text-xs); font-weight: 800; }
.quality-check.pass > span { color: #168563; background: #e6f7f1; }
.quality-check.fail > span { color: #bb3e55; background: #fdecef; }
.quality-check.pending > span { color: #866b25; background: #fff5d9; }
.quality-check.warning > span { color: #866b25; background: #fff5d9; }
.quality-check > div { display: grid; gap: 5px; }
.quality-check strong { font-size: var(--text-xs); }
.quality-check small { color: var(--ink-soft); font-size: var(--text-xs); line-height: 1.45; }
.quality-check > b { font-size: var(--text-xs); }
.quality-next-step { align-self: start; padding-left: 28px; border-left: 2px solid var(--violet); }
.quality-next-step span { color: #9b8d84; font-size: var(--text-xs); font-weight: 800; letter-spacing: .08em; }
.quality-next-step strong { display: block; margin-top: 12px; font-size: 12px; line-height: 1.65; }

.hidden { display: none !important; }

.home-topbar { align-items: flex-end; }
/* App pages: title, one-line lead, actions on the right — no showcase hero. */
.home-topbar-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.home-topbar h1 { white-space: nowrap; }
.home-topbar-actions .home-live-state { margin-right: 8px; }
.page-lead { max-width: 620px; margin: 14px 0 0; color: var(--ink-soft); font-size: var(--text-md); line-height: 1.6; }
.home-live-state { display: inline-flex; align-items: center; gap: 8px; margin-right: 88px; color: #645850; font-size: var(--text-xs); font-weight: 760; }
.home-live-state i { width: 7px; height: 7px; border-radius: 50%; background: #35c891; box-shadow: 0 0 0 5px rgba(53, 200, 145,.1); }
.node-google { top: 21%; left: 19%; }
.node-microsoft { right: 12%; bottom: 27%; animation-delay: -1.6s; }
.node-mail { bottom: 12%; left: 24%; animation-delay: -3.1s; }
@keyframes home-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.home-metrics { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 28px; border-block: 1px solid var(--line); }
.home-metrics article { min-width: 0; padding: 25px 28px 23px; border-right: 1px solid var(--line); }
.home-metrics article:last-child { border-right: 0; }
.home-metrics span { display: block; color: #938983; font-size: var(--text-xs); font-weight: 790; letter-spacing: .08em; }
.home-metrics strong { display: block; margin: 8px 0 4px; color: var(--ink); font-size: 29px; letter-spacing: -.05em; }
.home-metrics small { display: block; overflow: hidden; color: #958b85; font-size: var(--text-xs); text-overflow: ellipsis; white-space: nowrap; }
.home-content-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(290px,.65fr); gap: 54px; padding-top: 46px; }
.home-mailboxes > header, .home-activity > header { display: flex; align-items: flex-end; justify-content: space-between; min-height: 48px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.home-mailboxes h3, .home-activity h3 { margin: 5px 0 0; color: var(--ink); font-size: 22px; letter-spacing: -.04em; }
.home-mailboxes > header button { border: 0; color: var(--violet); background: transparent; font-size: var(--text-xs); font-weight: 770; cursor: pointer; }
.home-mailbox-list { min-height: 176px; }
.home-mailbox-row { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 17px 4px; border-bottom: 1px solid var(--line); }
.home-mailbox-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--violet-dark); background: #fff4ed; font-size: var(--text-xs); font-weight: 820; }
.home-mailbox-row div { min-width: 0; }
.home-mailbox-row strong, .home-activity-row strong { display: block; overflow: hidden; color: var(--ink); font-size: var(--text-xs); text-overflow: ellipsis; white-space: nowrap; }
.home-mailbox-row small, .home-activity-row small { display: block; margin-top: 4px; color: #9b928c; font-size: var(--text-xs); }
.home-mailbox-row em { display: inline-flex; align-items: center; gap: 6px; color: #3b8b6d; font-size: var(--text-xs); font-style: normal; font-weight: 760; }
.home-mailbox-row em::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #42c895; }
.home-mailbox-row em.is-paused { color: #a66d1d; }
.home-mailbox-row em.is-paused::before { background: #e8a43b; }
.home-empty { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 16px; min-height: 176px; padding: 25px 4px; }
.home-empty > span { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #f5e2d6; border-radius: 50%; color: var(--violet); background: #fff9f5; font-size: 18px; }
.home-empty strong { display: block; color: var(--ink); font-size: 13px; }
.home-empty p { max-width: 440px; margin: 6px 0 0; color: #958b85; font-size: var(--text-xs); line-height: 1.6; }
.home-empty button { border: 0; color: var(--violet); background: transparent; font-size: var(--text-xs); font-weight: 780; cursor: pointer; }
.home-activity-list { min-height: 176px; }
.home-activity-row { position: relative; display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.home-activity-row > span { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #f3e2d6; border-radius: 50%; color: var(--violet); font-size: var(--text-xs); }
.home-activity-row time { display: block; margin-top: 6px; color: #b0a9a4; font-size: var(--text-xs); }
.home-activity-empty { display: flex; align-items: center; min-height: 176px; color: #99908a; font-size: var(--text-xs); line-height: 1.7; }

@media (max-width: 980px) {
  .home-content-grid { grid-template-columns: 1fr; gap: 38px; }
  .sidebar { padding-inline: 12px; }
  .brand { justify-content: center; padding: 0; }
  .brand > span:last-child, .nav-item > :not(svg), .nav-item { font-size: 0; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-item svg { width: 21px; height: 21px; }
  .soon, .nav-status, .sidebar-foot { display: none; }
  .content-grid { grid-template-columns: 1fr; }
  .warmup-grid { grid-template-columns: 1fr; }
  .warmup-setup-grid { grid-template-columns: 1fr; gap: 45px; }
  .connected-warmup-stage { grid-template-columns: 1fr; gap: 42px; }
  .warmup-control-grid { grid-template-columns: 1fr; gap: 42px; }
  .warmup-metrics { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .analysis-layout { grid-template-columns: 1fr 1fr; }
  .activity-stream { grid-column: 1 / -1; }
  #qualityCreateView { grid-template-columns: 1fr 1fr; }
  .quality-method { grid-column: 1 / -1; padding: 30px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .quality-method ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .quality-report { grid-template-columns: .6fr 1.4fr; }
  .quality-next-step { grid-column: 1 / -1; padding: 22px 0 0; border-left: 0; border-top: 2px solid var(--violet); }
  .plan-preview { grid-template-columns: repeat(3, 1fr); }
  .plan-preview > div:first-child { grid-column: 1 / -1; }
  .plan-preview button { grid-column: 1 / -1; }
  .warmup-mode-panel { gap: 50px; grid-template-columns: 1fr; }
  .warmup-context { padding: 34px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .mode-rail { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .mode-rail > div { display: block; }
  .mode-rail > div::after { display: none; }
  .mode-rail span { display: block; margin-bottom: 8px; }
  .context-pane { min-height: 0; border-left: 0; border-top: 1px solid var(--line); padding: 34px 0 0; }
  .context-flow { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .context-flow > div { display: block; }
  .context-flow > div::after { display: none; }
  .context-flow span { display: block; margin-bottom: 8px; }
}

@media (max-width: 700px) {
  :root { --sidebar-width: 0px; }
  .modal-shell { padding: 12px; }
  .mailbox-modal { width: 100%; max-height: calc(100vh - 24px); border-radius: 16px; overflow-x: hidden; }
  .mailbox-modal > header { padding: 22px 20px 18px; }
  .mailbox-modal h2 { font-size: 25px; }
  .imap-smtp-form { padding: 20px; }
  .form-section-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .form-section-heading > small { max-width: none; }
  .connection-form-grid { grid-template-columns: 1fr; }
  .connection-form-grid > * { grid-column: 1; min-width: 0; }
  .imap-smtp-form footer { align-items: stretch; flex-direction: column; }
  .imap-smtp-form footer > * { min-width: 0; }
  .imap-smtp-form footer p span { overflow-wrap: anywhere; }
  .imap-smtp-form footer .primary-button { width: 100%; white-space: normal; }
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; height: 62px; padding: 0 18px; flex-direction: row; align-items: center; }
  .brand { justify-content: flex-start; }
  .brand > span:last-child { display: inline; font-size: 15px; }
  .sidebar-foot { display: none; }
  .nav { display: flex; gap: 4px; margin: 0 0 0 auto; }
  .nav-item { width: auto; min-height: 34px; padding: 0 9px; font-size: var(--text-xs); }
  .nav-item svg, .nav-item:disabled { display: none; }
  .workspace { padding: 28px 19px 42px; }
  .topbar { align-items: center; }
  .topbar .primary-button { min-width: 44px; padding: 0 12px; font-size: 0; }
  .topbar .primary-button span { font-size: 18px; }
  .overview { grid-template-columns: 1fr 1fr; padding: 16px 0; row-gap: 20px; }
  .metric { padding: 0 16px; }
  .metric:nth-child(2) { border-right: 0; }
  .metric-wide { padding-left: 0; }
  .privacy-note { padding-left: 16px; }
  .content-grid { padding-top: 33px; }
  .variant-grid { grid-template-columns: 1fr; }
  .warmup-settings { grid-template-columns: 1fr 1fr; }
  .warmup-settings .secondary-button { grid-column: 1 / -1; }
  .warmup-account { grid-template-columns: 28px minmax(0, 1fr) auto; padding: 13px 0; }
  .account-stat { grid-column: 2; }
  .permission-state { grid-column: 2; }
  .warmup-account .switch { grid-column: 3; grid-row: 1 / 4; }
  .steps b { display: none; }
  .steps li { gap: 0; }
  .result-hero { grid-template-columns: 82px 1fr; padding-inline: 16px; }
  .result-orbit { width: 70px; height: 70px; }
  .action-row { flex-direction: column-reverse; }
  .action-row > * { width: 100%; }
  .recipient-copy-row { align-items: flex-start; }
  .recipient-result-row { grid-template-columns: 18px minmax(0, 1fr); padding-block: 12px; }
  .placement-badge { grid-column: 2; justify-self: start; }
  .recipient-result-actions { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; }
  .analysis-stage { padding: 19px 17px; }
  .analysis-heading { align-items: flex-start; }
  .analysis-heading h3 { font-size: 14px; }
  .recheck-button { font-size: 0; width: 34px; padding: 0; justify-content: center; }
  .recheck-button svg { width: 15px; }
  .analysis-steps { grid-template-columns: 1fr; gap: 14px; }
  .analysis-steps li { grid-template-columns: 23px 1fr; }
  .analysis-steps li:not(:last-child)::after { left: 10px; right: auto; top: 22px; bottom: -14px; width: 1px; height: auto; transform: none; }
  .analysis-steps li.complete:not(:last-child)::after { background: linear-gradient(#3fb68f, rgba(255, 255, 255,.12)); }
  .context-flow { grid-template-columns: 1fr; }
  .mode-rail { grid-template-columns: 1fr; }
  .simulation-badge { font-size: 0; width: 32px; padding: 0; justify-content: center; }
  .warmup-heading { gap: 12px; }
  .warmup-heading .primary-button { min-width: 44px; padding: 0 12px; font-size: 0; }
  .warmup-heading .primary-button span { font-size: 16px; }
  .setup-progress { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .setup-progress li::after { display: none; }
  .next-stage-preview { grid-template-columns: 1fr 1fr; }
  .warmup-mode-tabs { gap: 15px; }
  .warmup-mode-tabs small { display: none; }
  .warmup-mode-panel { padding-top: 38px; }
  .warmup-input-row, .demo-actions { flex-direction: column; }
  .warmup-input-row input { min-height: 46px; }
  .demo-actions > * { width: 100%; }
  .demo-monitor { align-items: flex-start; flex-direction: column; }
  .demo-recheck { padding-left: 0; }
  .setup-progress { grid-template-columns: 1fr; }
  .warmup-setup-grid { padding-top: 38px; }
  .setup-heading { position: relative; display: block; }
  .setup-heading h2 { max-width: none; font-size: 34px; }
  .setup-heading > span { position: absolute; top: 0; right: 0; }
  .warmup-heading .simulation-badge { display: none; }
  .next-stage-preview { grid-template-columns: 1fr; gap: 18px; }
  .gmail-steps li { grid-template-columns: 30px minmax(0,1fr); }
  .gmail-steps a { grid-column: 2; justify-self: start; }
  .gmail-password-group { grid-template-columns: minmax(0,1fr) 64px; }
  .gmail-connection-progress { grid-template-columns: 1fr; }
  .readiness-heading { position: relative; display: block; }
  .readiness-heading h2 { padding-right: 70px; font-size: 34px; }
  .readiness-heading > span { position: absolute; top: 0; right: 0; }
  .connected-sender-summary { grid-template-columns: 38px minmax(0,1fr); }
  .connected-sender-summary > b { grid-column: 2; }
  .readiness-checks { grid-template-columns: 1fr; }
  .readiness-check + .readiness-check { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .pool-heading { align-items: stretch; flex-direction: column; }
  .primary-button.compact { width: 100%; }
  .plan-preview { grid-template-columns: 1fr 1fr; }
  .plan-preview > div:first-child, .plan-preview button { grid-column: 1 / -1; }
  .control-heading h2 { font-size: 34px; }
  .mailbox-switcher { align-items: stretch; flex-direction: column; gap: 10px; }
  .mailbox-switcher label { min-width: 0; }
  .mailbox-switcher > a { padding-bottom: 4px; }
  .simple-settings-grid { grid-template-columns: 1fr; }
  .sending-window { grid-template-columns: 1fr 1fr; }
  .sending-window > div { grid-column: 1 / -1; }
  .sending-window > i { display: none; }
  .warmup-metrics { grid-template-columns: 1fr 1fr; }
  .warmup-metrics > div { padding: 12px 14px; }
  .warmup-metrics > div:first-child { padding-left: 14px; }
  .warmup-metrics > div + div { border-left: 0; }
  .warmup-analysis > header { align-items: flex-start; flex-direction: column; }
  .next-run { text-align: left; }
  .analysis-layout { grid-template-columns: 1fr; }
  .activity-stream { grid-column: auto; }
  .quality-scope { font-size: 0; width: 32px; padding: 0; justify-content: center; }
  #qualityCreateView, #qualitySendView { grid-template-columns: 1fr; gap: 34px; padding-top: 38px; }
  .quality-intro h2 { font-size: 36px; }
  .quality-method ol { grid-template-columns: 1fr; gap: 0; }
  .quality-actions { flex-direction: column; }
  .quality-actions > * { width: 100%; margin-left: 0 !important; }
  .quality-report { grid-template-columns: 1fr; }
}

/* Premium product system — dark shell, editorial workspace, violet focus. */
html { background: var(--navy-deep); }
body { background: var(--paper); font-feature-settings: "cv02", "cv03", "cv04", "cv11"; }
::selection { color: #fff; background: var(--violet); }

.sidebar {
  overflow: hidden;
  padding: 25px 14px 20px;
  border-right: 1px solid rgba(255, 255, 255,.065);
  background:
    radial-gradient(circle at 18% 4%, rgba(255, 154, 87,.22), transparent 28%),
    linear-gradient(180deg, #20140c 0%, #160e09 58%, #110b07 100%);
}
.sidebar::before {
  content: "";
  position: absolute;
  right: -80px;
  bottom: 12%;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 172, 117,.16);
  border-radius: 50%;
  box-shadow: 0 0 90px rgba(255, 154, 87,.08);
  pointer-events: none;
}
.brand { gap: 10px; padding: 0 12px; font-size: 16px; letter-spacing: .13em; }
.brand em { margin-left: auto; border: 1px solid rgba(255, 188, 143,.27); border-radius: 99px; padding: 2px 7px; color: #ffc39b; background: rgba(255, 154, 87,.09); font-size: var(--text-xs); font-style: normal; letter-spacing: .02em; }
.brand-mark { transform: scale(.88); transform-origin: left center; }
.brand-mark i { border-color: #ffad76; box-shadow: 0 0 15px rgba(255, 154, 87,.25); }
.brand-mark i:nth-child(3) { border-color: #fff; }

.workspace-identity {
  display: grid;
  grid-template-columns: 32px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 29px 4px 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255,.08);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255,.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255,.035);
}
.workspace-identity > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(145deg,#ffa66a,#df8143); font-size: var(--text-xs); font-weight: 850; box-shadow: 0 7px 20px rgba(222, 129, 67,.3); }
.workspace-identity > div { display: grid; gap: 3px; min-width: 0; }
.workspace-identity small { color: #7f7168; font-size: var(--text-xs); font-weight: 800; letter-spacing: .08em; }
.workspace-identity strong { overflow: hidden; color: #f1eae6; font-size: var(--text-xs); text-overflow: ellipsis; }
.workspace-identity > i { color: #7f7168; font-size: var(--text-xs); font-style: normal; }

.nav { gap: 4px; margin-top: 28px; }
.nav::before { content: "PRODUCTS"; padding: 0 13px 9px; color: #6c5f57; font-size: var(--text-xs); font-weight: 800; letter-spacing: .08em; }
html[lang="tr"] .nav::before { content: "ÜRÜNLER"; }
.nav-item { position: relative; min-height: 42px; border-radius: 9px; color: #9e9189; font-size: 12px; font-weight: 650; }
.nav-item::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 2px; border-radius: 9px; background: transparent; transition: background .2s ease, box-shadow .2s ease; }
.nav-item.active { color: #fff; background: linear-gradient(90deg,rgba(255, 154, 87,.19),rgba(255, 255, 255,.055)); box-shadow: inset 0 0 0 1px rgba(255, 182, 133,.08); }
.nav-item.active::before { background: #ffae78; box-shadow: 0 0 12px #ff9a57; }
.nav-item svg { width: 17px; height: 17px; stroke-width: 1.65; }
.sidebar-foot { gap: 14px; padding: 0 5px; }
.service-state { padding: 10px 8px; border-top: 1px solid rgba(255, 255, 255,.07); border-bottom: 1px solid rgba(255, 255, 255,.07); color: #978c85; font-size: var(--text-xs); }
.sidebar-foot > a { padding: 2px 8px; color: #82766e; font-size: var(--text-xs); }
.session-profile { display: grid; grid-template-columns: 31px minmax(0,1fr); align-items: center; gap: 10px; padding: 8px; }
.session-profile > span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: #fff; background: #3a271a; font-size: var(--text-xs); font-weight: 800; box-shadow: inset 0 0 0 1px rgba(255, 181, 132,.16); }
.session-profile > div { display: grid; min-width: 0; gap: 2px; }
.session-profile strong { overflow: hidden; color: #c8beb7; font-size: var(--text-xs); text-overflow: ellipsis; white-space: nowrap; }
.session-profile small { color: #6c6159; font-size: var(--text-xs); }
.session-profile button { grid-column: 1 / -1; min-height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 11px; border: 1px solid rgba(255, 255, 255,.075); border-radius: 8px; color: #9f9289; background: rgba(255, 255, 255,.035); font-size: var(--text-xs); font-weight: 750; cursor: pointer; transition: color .18s ease,border-color .18s ease,background .18s ease,transform .18s ease; }
.session-profile button b { color: #967965; font-size: 12px; font-weight: 500; transition: transform .18s ease,color .18s ease; }
.session-profile button:hover { color: #fff5ef; border-color: rgba(255, 185, 139,.26); background: rgba(255, 154, 87,.1); transform: translateY(-1px); }
.session-profile button:hover b { color: #ffc59f; transform: translateX(2px); }

.workspace {
  position: relative;
  max-width: none;
  min-height: 100vh;
  padding: 36px clamp(30px,4.3vw,72px) 74px;
  background:
    radial-gradient(circle at 78% -12%, rgba(255, 154, 87,.09), transparent 31%),
    var(--paper);
}
.workspace::before { content: ""; position: fixed; z-index: 0; top: 0; right: 0; left: var(--sidebar-width); height: 1px; background: linear-gradient(90deg,transparent,rgba(255, 154, 87,.55),transparent); pointer-events: none; }
.product-workspace { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; }
.product-workspace.active > * { animation: premium-rise .5s cubic-bezier(.2,.75,.2,1) both; }
.product-workspace.active > :nth-child(2) { animation-delay: .055s; }
.product-workspace.active > :nth-child(3) { animation-delay: .1s; }
@keyframes premium-rise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

.topbar { min-height: 70px; align-items: center; padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.topbar > :last-child { margin-right: 82px; }
.topbar .eyebrow { margin-bottom: 10px; color: var(--ink-faint); font-size: var(--text-xs); letter-spacing: .08em; }
h1 { font-size: clamp(32px,3.2vw,46px); font-weight: 735; line-height: .94; letter-spacing: -.055em; }
h2, h3 { font-weight: 720; }
.eyebrow { color: var(--ink-faint); font-size: var(--text-xs); letter-spacing: .08em; }

.primary-button, .secondary-button { min-height: 42px; border-radius: 9px; padding-inline: 16px; font-size: var(--text-xs); letter-spacing: -.01em; }
.primary-button { border-color: #f69351; background: linear-gradient(135deg,#ffa467,#ed8b49); box-shadow: 0 9px 24px rgba(222, 130, 68,.2), inset 0 1px rgba(255, 255, 255,.22); }
.primary-button:hover { background: linear-gradient(135deg,#ff9b59,#e98542); box-shadow: 0 13px 30px rgba(222, 130, 68,.27), inset 0 1px rgba(255, 255, 255,.2); }
.secondary-button { border-color: #e5dfdb; background: rgba(255, 255, 255,.75); box-shadow: 0 1px 2px rgba(52, 34, 22,.03); }
.text-button, .text-action { color: #ed8b49; }

.overview {
  min-height: 102px;
  margin-top: 24px;
  padding: 0 22px;
  border: 1px solid rgba(229, 223, 219,.9);
  border-radius: 15px;
  background: rgba(255, 255, 255,.73);
  box-shadow: 0 10px 35px rgba(52, 34, 22,.035), inset 0 1px rgba(255, 255, 255,.75);
  backdrop-filter: blur(10px);
}
.metric { min-height: 56px; padding: 0 28px; }
.metric span { color: #9b918b; font-size: var(--text-xs); font-weight: 650; }
.metric strong { font-size: 13px; }
.metric:first-child strong { color: var(--violet); font-size: 28px; letter-spacing: -.05em; }
.privacy-note { color: #817771; font-size: var(--text-xs); }

.content-grid { grid-template-columns: minmax(0,1.7fr) minmax(280px,.6fr); gap: clamp(42px,5vw,80px); padding-top: 38px; }
.section-heading { min-height: 61px; }
.section-heading h2 { font-size: 18px; }
.section-heading p { color: #817771; font-size: var(--text-xs); }
.view { padding-top: 27px; }
.context-pane { padding-left: clamp(28px,3.4vw,50px); }
.context-pane h2 { font-size: 27px; line-height: 1.04; }
.input-shell { height: 48px; border-color: #e5dfdb; border-radius: 10px; box-shadow: 0 4px 18px rgba(52, 34, 22,.025); }
.variant-option span { min-height: 74px; border-radius: 10px; background: rgba(255, 255, 255,.68); }
.variant-option input:checked + span { border-color: #ffa467; background: #fff5ef; box-shadow: inset 0 0 0 1px #ffa467, 0 8px 22px rgba(255, 154, 87,.08); }

.simulation-badge, .quality-scope { border-color: #ffe3d0; color: #db8043; background: rgba(255, 244, 237,.85); box-shadow: inset 0 1px rgba(255, 255, 255,.8); }
.warmup-onboarding { padding-top: 22px; }
.warmup-control-stage { padding-top: 32px; }
.control-heading { padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.control-heading h2 { font-size: 26px; }
.mailbox-switcher { margin-top: 0; padding: 15px 0; border-top: 0; }
.connected-sender-summary { margin-top: 0; padding: 17px 18px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255,.72); box-shadow: 0 9px 28px rgba(52, 34, 22,.03); }
.sender-provider-mark { border-color: #ffe8d8; color: #e98b4c; background: #fff5ee; }
.customer-engine {
  display: grid;
  grid-template-columns: minmax(0,1fr) 250px;
  overflow: hidden;
  margin-top: 22px;
  border: 1px solid rgba(226, 145, 91,.18);
  border-radius: 18px;
  color: #fff;
  background: #2b1c12;
  box-shadow: 0 18px 48px rgba(70, 42, 23,.14);
}
.customer-engine-main { padding: 28px 30px 25px; }
.customer-engine-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.customer-engine-heading .eyebrow { margin: 0 0 12px; color: #ddb8a0; }
.customer-engine-heading h3 { margin: 0; font-size: 24px; line-height: 1; letter-spacing: -.035em; }
.customer-engine-heading h3 + p { margin: 10px 0 0; color: #d8c1b2; font-size: var(--text-xs); line-height: 1.5; }
.customer-engine-state { flex: 0 0 auto; padding: 7px 12px; border-radius: 999px; color: #ffd7bc; background: rgba(246, 147, 81,.24); font-size: var(--text-xs); font-weight: 800; letter-spacing: .03em; }
.customer-engine-state.active { color: #7ff1c4; background: rgba(20, 181, 121,.16); }
.customer-engine-state.paused { color: #ffd48c; background: rgba(224, 157, 48,.16); }
.customer-engine-state.blocked { color: #ffd48c; background: rgba(224, 157, 48,.16); }
.customer-engine-flow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 28px; padding: 0 0 24px; border-bottom: 1px solid rgba(255, 255, 255,.11); }
.customer-engine-flow > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.customer-engine-flow i { display: grid; flex: 0 0 auto; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(255, 195, 155,.28); border-radius: 50%; color: #ffccaa; font-size: var(--text-xs); font-style: normal; }
.customer-engine-flow span { display: grid; gap: 4px; color: #fff; font-size: var(--text-xs); font-weight: 750; white-space: nowrap; }
.customer-engine-flow small { color: #998679; font-size: var(--text-xs); font-weight: 500; }
.customer-engine-flow b { color: #725c4d; font-size: var(--text-xs); font-weight: 400; }
.customer-engine-actions { display: flex; align-items: center; gap: 22px; margin-top: 23px; }
.customer-engine-actions .primary-button { flex: 0 0 auto; min-width: 142px; }
.customer-engine-actions > span { color: #a8978c; font-size: var(--text-xs); line-height: 1.45; }
.customer-engine-today { padding: 28px 28px 22px; border-left: 1px solid rgba(255, 255, 255,.09); background: rgba(255, 255, 255,.035); }
.customer-engine-today > p { margin: 0 0 21px; color: #bfa08b; font-size: var(--text-xs); font-weight: 800; letter-spacing: .08em; }
.customer-engine-today dl { margin: 0; }
.customer-engine-today dl > div { display: flex; align-items: center; justify-content: space-between; min-height: 44px; border-bottom: 1px solid rgba(255, 255, 255,.1); }
.customer-engine-today dt { color: #c2afa3; font-size: var(--text-xs); }
.customer-engine-today dd { margin: 0; color: #fff; font-size: 16px; font-weight: 800; }
.warmup-control-grid {
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 0;
  overflow: hidden;
  margin-top: 30px;
  padding-top: 0;
  border: 1px solid rgba(226, 145, 91,.18);
  border-radius: 18px;
  color: #fff;
  background: #2b1c12;
  box-shadow: 0 18px 48px rgba(70, 42, 23,.12);
}
.warmup-control-grid > * { min-width: 0; }
.warmup-settings-form { min-width: 0; padding: 30px; }
.warmup-settings-form .section-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.warmup-settings-form .section-intro .eyebrow { margin-bottom: 10px; color: #ddb8a0; }
.warmup-settings-form .section-intro h3 { margin: 0; color: #fff; font-size: 25px; }
.warmup-settings-form .section-intro > span { max-width: 230px; color: #a8978c; font-size: var(--text-xs); line-height: 1.55; text-align: right; }
.simple-settings-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255,.11); border-radius: 13px; }
.simple-settings-grid label { grid-template-columns: minmax(0,1fr) 116px; min-width: 0; min-height: 100px; gap: 4px 14px; padding: 18px 16px; border: 0; border-right: 1px solid rgba(255, 255, 255,.09); border-bottom: 1px solid rgba(255, 255, 255,.09); border-radius: 0; color: #fff; background: rgba(255, 255, 255,.025); box-shadow: none; transition: background .18s ease, box-shadow .18s ease; }
.simple-settings-grid label:nth-child(2n) { border-right: 0; }
.simple-settings-grid label:nth-last-child(-n+2) { border-bottom: 0; }
.simple-settings-grid label:focus-within { position: relative; z-index: 1; background: rgba(246, 148, 83,.11); box-shadow: inset 0 0 0 1px rgba(255, 174, 120,.48); }
.simple-settings-grid label > span { min-width: 0; color: #fff9f5; line-height: 1.3; overflow-wrap: normal; word-break: normal; hyphens: none; }
.simple-settings-grid label > small { min-width: 0; color: #958478; line-height: 1.4; overflow-wrap: normal; word-break: normal; hyphens: none; }
.simple-settings-grid label > div { width: 116px; min-width: 116px; border-color: rgba(255, 255, 255,.12); background: rgba(24, 14, 7,.48); }
.simple-settings-grid input { width: 58px; color: #fff; background: transparent; font-variant-numeric: tabular-nums; }
.simple-settings-grid b { color: #b2a195; }
.sending-window { margin-top: 14px; padding: 17px 18px; border-color: rgba(255, 255, 255,.11); border-radius: 12px; background: rgba(255, 255, 255,.025); }
.sending-window > div span { color: #fff7f1; }
.sending-window > div small { color: #96857a; }
.sending-window label { color: #bcaba0; }
.sending-window input { border-color: rgba(255, 255, 255,.12); color: #fff; background: rgba(24, 14, 7,.48); color-scheme: dark; font-variant-numeric: tabular-nums; }
.sending-window > i { color: #726155; }
.weekday-setting { margin-top: 0; padding: 17px 0; border-color: rgba(255, 255, 255,.1); color: #fff; }
.weekday-setting small { color: #96857a; }
.warmup-settings-form > .secondary-button { min-width: 140px; border-color: #f69351; color: #fff; background: linear-gradient(135deg,#ffa467,#ed8b49); box-shadow: 0 9px 24px rgba(222, 130, 68,.2), inset 0 1px rgba(255, 255, 255,.2); }
.warmup-settings-form > .secondary-button:hover { background: linear-gradient(135deg,#ff9b59,#e98542); }
.warmup-launch-panel { padding: 30px 28px; border-left: 1px solid rgba(255, 255, 255,.09); background: rgba(255, 255, 255,.035); }
.warmup-launch-panel .eyebrow { color: #bfa08b; }
.warmup-launch-panel h3 { color: #fff; font-size: 27px; }
.warmup-launch-panel > p:not(.eyebrow), .launch-footnote { color: #a8978c; }
.warmup-launch-panel .launch-checks { border-color: rgba(255, 255, 255,.1); }
.warmup-launch-panel .launch-checks > div { border-color: rgba(255, 255, 255,.09); }
.warmup-launch-panel .launch-checks strong { color: #fff7f2; }
.warmup-launch-panel .launch-checks small { color: #96857a; }
.launch-checks { margin-top: 22px; }
.warmup-metrics { margin-top: 38px; padding: 26px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 12px 34px rgba(52, 34, 22,.035); }
.warmup-metrics strong { font-size: 27px; letter-spacing: -.045em; }
.warmup-analysis { margin-top: 33px; padding: 32px 30px 0; border: 1px solid var(--line); border-radius: 15px; background: rgba(255, 255, 255,.67); box-shadow: 0 12px 35px rgba(52, 34, 22,.03); }
.analysis-score > span { color: #e48545; text-shadow: 0 8px 30px rgba(255, 154, 87,.13); }
.analysis-bars > div > i { height: 6px; background: #eee9e6; }
.analysis-bars em { background: linear-gradient(90deg,#e48545,#ffb27f); box-shadow: 0 0 14px rgba(255, 154, 87,.2); }

.quality-shell { margin-top: 25px; border-top: 0; }
#qualityCreateView { gap: clamp(32px,4.5vw,68px); padding-top: 52px; }
.quality-intro h2 { font-size: var(--text-3xl); font-weight: 735; line-height: 1.15; letter-spacing: -.03em; }
.quality-intro > p:last-child { color: var(--ink-soft); font-size: var(--text-md); }
.quality-form { padding: 27px 30px 30px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255, 255, 255,.73); box-shadow: 0 15px 40px rgba(52, 34, 22,.04); }
.quality-form .input-shell { margin-bottom: 6px; background: #fff; }
.quality-method { padding-left: clamp(28px,3vw,42px); }
.quality-method li { padding: 17px 0; }
.quality-report { padding-top: 34px; }
.quality-score-block span { color: #e48545; text-shadow: 0 10px 35px rgba(255, 154, 87,.14); }
.quality-checks { padding: 0 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 12px 35px rgba(52, 34, 22,.035); }
.quality-check { min-height: 76px; }
.quality-next-step { border-left-color: #f49658; }

.reports-intro { padding-top: 48px; }
.reports-intro h2 { font-size: clamp(36px,4.2vw,56px); }
.report-table-heading { padding-inline: 18px; }
.reports-list { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255,.72); box-shadow: 0 12px 36px rgba(52, 34, 22,.035); }
.report-history-row { min-height: 76px; padding-inline: 18px; transition: background .18s ease, transform .18s ease; }
.report-history-row:hover { background: #fffbf9; transform: translateX(2px); }
.report-history-row .status-pill { color: #c87b47; background: #fff4ed; }

.mailbox-modal { border-color: rgba(255, 255, 255,.75); box-shadow: 0 40px 120px rgba(43, 25, 13,.3); }
.modal-backdrop { background: rgba(21, 13, 7,.58); }
.provider-choice > a:hover, .provider-choice > button:hover { background: linear-gradient(90deg,transparent,#fff9f5,transparent); }
.provider-choice > a b, .provider-choice > button b { transition: transform .18s ease; }
.provider-choice > a:hover b, .provider-choice > button:hover b { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 1280px) {
  .warmup-control-grid { grid-template-columns: minmax(0,1fr); }
  .warmup-launch-panel { border-top: 1px solid rgba(255, 255, 255,.09); border-left: 0; }
}

@media (max-width: 900px) {
  .simple-settings-grid { grid-template-columns: minmax(0,1fr); }
  .simple-settings-grid label,
  .simple-settings-grid label:nth-child(2n),
  .simple-settings-grid label:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255,.09); }
  .simple-settings-grid label:last-child { border-bottom: 0; }
}

@media (max-width: 980px) {
  .workspace-identity { display: none; }
  .session-profile { display: none; }
  .nav::before { display: none; }
  .content-grid,
  .warmup-control-grid { grid-template-columns: 1fr; }
  #qualityCreateView { grid-template-columns: 1fr 1fr; }
  .quality-method { grid-column: 1 / -1; padding: 30px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .quality-method ol { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
  .warmup-control-grid { grid-template-columns: minmax(0,1fr); }
  .warmup-launch-panel { border-top: 1px solid rgba(255, 255, 255,.09); border-left: 0; }
  .customer-engine { grid-template-columns: 1fr 220px; }
  .customer-engine-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
  .customer-engine-flow > b { display: none; }
}

@media (max-width: 700px) {
  .sidebar { position: static; width: 100%; height: 62px; padding: 0 14px; overflow: visible; flex-direction: row; align-items: center; background: #19100a; }
  .sidebar::before, .brand em, .brand > span:not(.brand-mark) { display: none; }
  .brand { flex: 0 0 38px; width: 38px; min-width: 0; padding: 0; }
  .brand-mark { transform: scale(.82); }
  .nav { flex: 1 1 0; min-width: 0; width: auto; gap: 1px; margin: 0 0 0 8px; }
  .nav-item { flex: 1 1 auto; justify-content: center; min-width: 0; padding-inline: 5px; gap: 0; font-size: 0; white-space: nowrap; }
  .nav-item svg { display: block; width: 17px; height: 17px; }
  .workspace::before { left: 0; }
  .workspace { padding: 26px 17px 44px; }
  .workspace-utility { top: 26px; right: 17px; }
  .app-language { padding: 2px; }
  .app-language button { min-width: 29px; padding: 5px 7px; }
  .topbar > :last-child { margin-right: 70px; }
  .topbar { min-height: 58px; padding-bottom: 20px; }
  h1 { font-size: 31px; }
  .home-live-state { display: none; }
  .home-metrics { grid-template-columns: 1fr; }
  .home-metrics article { padding-inline: 5px; border-right: 0; border-bottom: 1px solid var(--line); }
  .home-metrics article:last-child { border-bottom: 0; }
  .home-content-grid { padding-top: 35px; }
  .home-empty { grid-template-columns: 44px minmax(0,1fr); }
  .home-empty button { grid-column: 2; justify-self: start; }
  .overview { padding: 15px 12px; }
  .content-grid { grid-template-columns: minmax(0,1fr); gap: 34px; }
  .main-pane, .context-pane { min-width: 0; }
  .context-pane { padding: 30px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .variant-grid { grid-template-columns: 1fr; }
  .connected-sender-summary { padding: 15px; }
  .customer-engine { grid-template-columns: minmax(0,1fr); }
  .customer-engine-main { padding: 24px 20px 21px; }
  .customer-engine-heading { gap: 12px; }
  .customer-engine-heading h3 { font-size: 21px; }
  .customer-engine-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .customer-engine-actions .primary-button { width: 100%; }
  .customer-engine-today { padding: 21px 20px; border-top: 1px solid rgba(255, 255, 255,.09); border-left: 0; }
  .customer-engine-today > p { margin-bottom: 8px; }
  .customer-engine-today dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; }
  .connected-sender-summary > .mailbox-quick-actions { grid-column: 1 / -1; width: 100%; margin-top: 8px; }
  .mailbox-quick-actions { flex-wrap: wrap; }
  .mailbox-quick-actions button, .mailbox-reconnect { flex: 1 1 90px; }
  .mailbox-recovery-copy { grid-column: 1 / -1; }
  .warmup-control-grid { grid-template-columns: minmax(0,1fr); gap: 34px; }
  .warmup-control-grid { gap: 0; }
  .warmup-settings-form { padding: 24px 20px; }
  .warmup-settings-form .section-intro { align-items: flex-start; flex-direction: column; gap: 9px; }
  .warmup-settings-form .section-intro > span { max-width: none; text-align: left; }
  .warmup-launch-panel { padding: 24px 20px; border-top: 1px solid rgba(255, 255, 255,.09); border-left: 0; }
  .simple-settings-grid { grid-template-columns: 1fr; }
  .simple-settings-grid label,
  .simple-settings-grid label:nth-child(2n),
  .simple-settings-grid label:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255,.09); }
  .simple-settings-grid label:last-child { border-bottom: 0; }
  .analysis-layout { grid-template-columns: 1fr; }
  .warmup-metrics { padding-inline: 8px; }
  .warmup-analysis { padding-inline: 18px; }
  #qualityCreateView, #qualitySendView { grid-template-columns: minmax(0,1fr); gap: 34px; }
  .quality-method ol { grid-template-columns: 1fr; gap: 0; }
  .quality-form { padding: 22px 18px; }
  .quality-report { grid-template-columns: minmax(0,1fr); }
  .reports-intro { grid-template-columns: 1fr; gap: 18px; }
  .report-table-heading { display: none; }
  .report-history-row { grid-template-columns: 1fr auto auto; gap: 9px; padding-block: 15px; }
  .report-history-row > div { grid-column: 1 / -1; }
  .report-history-row time { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Placement workspace — precision instrument surface */
.app-language {
  gap: 4px;
  padding: 4px;
  border-color: rgba(55, 37, 25,.09);
  background: rgba(255, 255, 255,.88);
  box-shadow: 0 12px 30px rgba(54, 35, 23,.09), inset 0 1px rgba(255, 255, 255,.9);
}
.app-language .language-divider { display: none; }
.app-language button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 61px;
  min-height: 34px;
  padding: 0 10px 0 7px;
  color: #70635a;
  font-size: var(--text-xs);
  letter-spacing: .04em;
}
.app-language .lang-flag {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(47, 31, 20,.08);
  border-radius: 50%;
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(.86);
  box-shadow: 0 2px 7px rgba(43, 29, 19,.11);
}
.app-language .flag-en { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Crect width='60' height='60' fill='%23012169'/%3E%3Cpath d='M0 0 60 60M60 0 0 60' stroke='%23fff' stroke-width='13'/%3E%3Cpath d='M0 0 60 60M60 0 0 60' stroke='%23c8102e' stroke-width='5'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23fff' stroke-width='19'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23c8102e' stroke-width='10'/%3E%3C/svg%3E"); }
.app-language .flag-tr { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Crect width='60' height='60' fill='%23e30a17'/%3E%3Ccircle cx='27' cy='30' r='15' fill='%23fff'/%3E%3Ccircle cx='32' cy='30' r='12' fill='%23e30a17'/%3E%3Cpath d='m42 24 1.8 4.1 4.5.4-3.4 3 1 4.4-3.9-2.3-3.9 2.3 1-4.4-3.4-3 4.5-.4z' fill='%23fff'/%3E%3C/svg%3E"); }
.app-language button[aria-pressed="true"] {
  color: #fff;
  background: #2d1e14;
  box-shadow: 0 8px 18px rgba(42, 26, 16,.2), inset 0 1px rgba(255, 255, 255,.09);
}
.app-language button[aria-pressed="true"] .lang-flag { border-color: rgba(255, 255, 255,.22); }
/* Language is chosen by its code, not a country flag. */
.app-language .lang-flag { display: none; }
.app-language .lang-code { width: auto; height: auto; background: none; }
.app-language button { min-width: 44px; padding: 0 12px; justify-content: center; }
.topbar > :last-child { margin-right: 150px; }

#placementWorkspace .topbar h1 { font-size: clamp(35px,3.3vw,48px); }
#placementWorkspace .topbar .primary-button {
  position: relative;
  overflow: hidden;
  min-width: 120px;
  border-color: #fb9958;
  background: linear-gradient(135deg,#ffa66b 0%,#ea8745 100%);
  box-shadow: 0 13px 30px rgba(232, 134, 68,.24), inset 0 1px rgba(255, 255, 255,.24);
}
#placementWorkspace .topbar .primary-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,transparent 30%,rgba(255, 255, 255,.2) 50%,transparent 70%);
  transform: translateX(-130%);
  transition: transform .65s ease;
}
#placementWorkspace .topbar .primary-button:hover::after { transform: translateX(130%); }

.placement-overview {
  position: relative;
  isolation: isolate;
  grid-template-columns: 140px 150px minmax(230px,1fr) auto;
  min-height: 118px;
  overflow: hidden;
  margin-top: 30px;
  padding: 0 26px;
  border: 1px solid rgba(255, 172, 116,.24);
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 82% -35%,rgba(255, 139, 94,.23),transparent 39%),
    radial-gradient(circle at 58% 130%,rgba(246, 148, 83,.28),transparent 46%),
    linear-gradient(115deg,#271910 0%,#362215 58%,#37261a 100%);
  box-shadow: 0 20px 48px rgba(65, 39, 21,.14), inset 0 1px rgba(255, 255, 255,.08);
}
.placement-overview::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .22;
  background-image: linear-gradient(rgba(255, 255, 255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255, 255, 255,.04) 1px,transparent 1px);
  background-size: 31px 31px;
  mask-image: linear-gradient(90deg,transparent 30%,#000 75%,transparent);
}
.placement-overview .metric {
  position: relative;
  z-index: 1;
  min-height: 58px;
  border-color: rgba(255, 255, 255,.1);
}
.placement-overview .metric:first-of-type { padding-left: 0; }
.placement-overview .metric span { color: #aa978a; }
.placement-overview .metric strong { color: #fff; }
.placement-overview .metric small { margin-top: 5px; color: #9d897b; font-size: var(--text-xs); }
.placement-overview .metric:first-of-type strong {
  color: #ffb888;
  text-shadow: 0 0 25px rgba(255, 167, 108,.32);
}
.placement-overview .privacy-note {
  position: relative;
  z-index: 2;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(87, 224, 177,.15);
  border-radius: 999px;
  color: #d9cbc1;
  background: rgba(47, 197, 145,.08);
  backdrop-filter: blur(8px);
}
.placement-overview .privacy-note svg { stroke: #56d8aa; }
.placement-signal {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 115px;
  width: 190px;
  height: 190px;
  transform: translateY(-50%);
  pointer-events: none;
}
.placement-signal i {
  position: absolute;
  inset: calc(var(--signal-index,0) * 22px);
  border: 1px solid rgba(255, 177, 125,.17);
  border-radius: 50%;
  animation: placement-breathe 4.6s ease-in-out infinite;
}
.placement-signal i:nth-child(2) { --signal-index: 1; animation-delay: -.8s; }
.placement-signal i:nth-child(3) { --signal-index: 2; animation-delay: -1.6s; }
.placement-signal span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffaf79;
  box-shadow: 0 0 0 7px rgba(255, 175, 121,.1),0 0 28px rgba(255, 175, 121,.68);
}
@keyframes placement-breathe { 50% { opacity: .42; transform: scale(1.05); } }

#placementWorkspace .placement-grid {
  grid-template-columns: minmax(0,1fr) 320px;
  gap: clamp(34px,4vw,64px);
  padding-top: 42px;
}
.placement-section-heading { min-height: 72px; }
.placement-section-heading h2 { font-size: 22px; letter-spacing: -.035em; }
.placement-section-heading p { max-width: 600px; font-size: var(--text-xs); line-height: 1.55; }
.reset-confirmation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -8px 0 22px;
  padding: 13px 15px;
  border: 1px solid #eee2da;
  border-radius: 12px;
  background: #fffbf8;
  box-shadow: 0 10px 28px rgba(61, 38, 23,.05);
}
.reset-confirmation p { margin: 0; color: #6e635b; font-size: 13px; line-height: 1.45; }
.reset-confirmation > div { display: flex; flex: 0 0 auto; gap: 8px; }
.reset-confirmation .primary-button,
.reset-confirmation .secondary-button { min-height: 36px; padding-inline: 13px; }

#placementWorkspace .connection-notice {
  position: relative;
  grid-template-columns: 44px minmax(0,1fr) auto;
  align-items: center;
  gap: 15px;
  overflow: hidden;
  margin: 4px 0 27px;
  padding: 18px 18px;
  border: 1px solid #ebe5e1;
  border-left: 1px solid #ebe5e1;
  border-radius: 15px;
  color: #80766f;
  background: rgba(255, 255, 255,.8);
  box-shadow: 0 14px 36px rgba(61, 38, 23,.055),inset 0 1px rgba(255, 255, 255,.9);
  backdrop-filter: blur(12px);
}
#placementWorkspace .connection-notice::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg,#f59759,rgba(255, 137, 91,.72),transparent 72%);
}
#placementWorkspace .connection-notice.success::before { background: linear-gradient(90deg,#32bc8c,#70dfb8,transparent 72%); }
.connection-provider-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #ffe8d8;
  border-radius: 12px;
  color: #e98949;
  background: #fff5ee;
  font-size: 15px;
  font-weight: 850;
  box-shadow: inset 0 1px #fff;
}
.connection-provider-mark svg { width: 22px; height: 22px; }
.connection-provider-mark.google-mark { border-color: #e9e4e1; background: #fff; }
.connection-notice.success .connection-provider-mark { border-color: #c6eadf; color: #238263; background: #eaf8f3; }
.connection-notice.success .connection-provider-mark.google-mark { border-color: #d9ebe4; background: #fff; }
#placementWorkspace .connection-copy { gap: 3px; }
#placementWorkspace .connection-copy strong { font-size: 12px; letter-spacing: -.01em; }
#placementWorkspace .connection-copy > span:last-child { font-size: var(--text-xs); line-height: 1.5; }
.connection-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-bottom: 2px;
  color: #e69763;
  font-size: var(--text-xs);
  font-weight: 850;
  letter-spacing: .08em;
}
.connection-state i { width: 5px; height: 5px; border-radius: 50%; background: #f49f67; box-shadow: 0 0 0 4px rgba(244, 159, 103,.09); animation: live-pulse 2s ease-out infinite; }
.connection-state.ready { color: #278563; }
.connection-state.ready i { background: #31b988; box-shadow: 0 0 0 4px rgba(49, 185, 136,.1); }
#placementWorkspace .connection-action {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid #e8dfd9;
  border-radius: 9px;
  color: #3d2d23;
  background: #fff;
  font-size: var(--text-xs);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .18s ease,transform .18s ease,box-shadow .18s ease;
}
#placementWorkspace .connection-action:hover { border-color: #dfb69b; transform: translateY(-1px); box-shadow: 0 7px 18px rgba(61, 38, 23,.08); }

#placementWorkspace form > label { margin-top: 1px; font-size: 12px; }
#placementWorkspace .field-help { margin-bottom: 10px; font-size: var(--text-xs); line-height: 1.5; }
#placementWorkspace .input-shell {
  height: 56px;
  margin-bottom: 30px;
  padding-inline: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255,.84);
  box-shadow: 0 10px 28px rgba(61, 38, 23,.04),inset 0 1px #fff;
}
#placementWorkspace .variant-grid { gap: 11px; }
#placementWorkspace .variant-option span {
  position: relative;
  min-height: 88px;
  padding: 0 17px;
  border-radius: 14px;
  background: rgba(255, 255, 255,.72);
  box-shadow: 0 9px 28px rgba(61, 38, 23,.025),inset 0 1px #fff;
}
#placementWorkspace .variant-option span::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 7px;
  height: 7px;
  border: 1px solid #dfd5cf;
  border-radius: 50%;
  background: #fff;
  transition: .18s ease;
}
#placementWorkspace .variant-option input:checked + span::after { border-color: #f39658; background: #f39658; box-shadow: 0 0 0 4px rgba(243, 150, 88,.1); }
#placementWorkspace .variant-option:hover span { border-color: #e9d5c7; transform: translateY(-2px); box-shadow: 0 13px 30px rgba(61, 38, 23,.06); }
#placementWorkspace .submit-button {
  min-height: 52px;
  border-radius: 12px;
  background: linear-gradient(120deg,#ffa366,#e9833f);
  box-shadow: 0 14px 30px rgba(226, 129, 65,.2),inset 0 1px rgba(255, 255, 255,.22);
}

#placementWorkspace .context-pane {
  position: relative;
  align-self: start;
  min-height: 510px;
  overflow: hidden;
  padding: 36px 30px 30px;
  border: 1px solid rgba(255, 166, 107,.2);
  border-radius: 19px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 5%,rgba(255, 132, 91,.2),transparent 34%),
    radial-gradient(circle at 15% 80%,rgba(239, 141, 76,.24),transparent 40%),
    #2d1d12;
  box-shadow: 0 22px 54px rgba(61, 36, 20,.13),inset 0 1px rgba(255, 255, 255,.07);
}
#placementWorkspace .context-pane::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 38%;
  background: linear-gradient(#ff9362,rgba(255, 166, 107,.5),transparent);
  box-shadow: 0 0 22px rgba(255, 137, 91,.22);
  pointer-events: none;
}
#placementWorkspace .context-pane::after { display: none; }
#placementWorkspace .context-pane .eyebrow { color: #cfa990; }
#placementWorkspace .context-pane h2 { margin-bottom: 34px; color: #fff; font-size: 31px; }
#placementWorkspace .context-flow > div { padding-bottom: 27px; }
#placementWorkspace .context-flow > div { animation: context-step-in .42s ease both; }
#placementWorkspace .context-flow > div:nth-child(2) { animation-delay: 80ms; }
#placementWorkspace .context-flow > div:nth-child(3) { animation-delay: 160ms; }
#placementWorkspace .context-flow > div:not(:last-child)::after { background: rgba(255, 255, 255,.11); }
#placementWorkspace .context-flow span { color: #ffbf94; }
#placementWorkspace .context-flow p { color: #bfaea3; font-size: 12px; line-height: 1.6; }
#placementWorkspace .scope-message { border-color: rgba(255, 255, 255,.11); }
#placementWorkspace .scope-icon { color: #ffbf94; }
#placementWorkspace .scope-message p { color: #9f9187; }
#placementWorkspace .scope-message strong { color: #fff9f5; }
#placementWorkspace .scope-message p > span { display: block; }
@keyframes context-step-in { from { opacity: 0; transform: translateX(7px); } to { opacity: 1; transform: none; } }

#placementWorkspace .steps {
  gap: 0;
  margin-bottom: 30px;
  padding: 17px 18px 16px;
  border: 1px solid #ece5e1;
  border-radius: 14px;
  background: rgba(255, 255, 255,.72);
  box-shadow: 0 10px 30px rgba(61, 38, 23,.035),inset 0 1px #fff;
}
#placementWorkspace .steps li { z-index: 1; min-width: 0; display: grid; grid-template-columns: 24px minmax(0,1fr); grid-template-rows: 24px auto; column-gap: 9px; row-gap: 7px; align-items: center; padding: 0 12px; border-radius: 9px; }
#placementWorkspace .steps li b { grid-column: 1 / -1; width: fit-content; padding: 0 2px; background: rgba(255, 255, 255,.72); line-height: 1.3; }
#placementWorkspace .steps li.current b { color: #473325; }
#placementWorkspace .steps li:not(:last-child)::after { left: 48px; right: -12px; top: 11px; bottom: auto; transform: none; opacity: .8; }
#placementWorkspace .steps span { flex: 0 0 auto; }

#placementWorkspace .placement-grid[data-stage="send"] { grid-template-columns: minmax(0,1fr); }
#placementWorkspace .placement-grid[data-stage="send"] > .context-pane { display: none; }
.send-command-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(292px,.36fr);
  grid-template-areas:
    "recipients actions"
    "details actions";
  gap: 16px 20px;
  align-items: stretch;
}
#placementWorkspace .recipient-panel { grid-area: recipients; min-width: 0; padding: 0; border: 0; }
.placement-privacy-note {
  display: grid;
  grid-template-columns: 22px minmax(0,1fr);
  align-items: start;
  gap: 9px;
  margin-top: 10px;
  padding: 11px 13px;
  border: 1px solid #ece2dc;
  border-radius: 11px;
  color: #7c716a;
  background: #faf9fc;
}
.placement-privacy-note svg { width: 20px; fill: none; stroke: #d88650; stroke-width: 1.8; }
.placement-privacy-note p { margin: 0; font-size: 13px; line-height: 1.5; }
.send-action-panel {
  grid-area: actions;
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 170, 113,.2);
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0,rgba(255, 139, 91,.16),transparent 33%),
    linear-gradient(145deg,#2f1e13 0%,#392416 100%);
  box-shadow: 0 20px 45px rgba(57, 35, 20,.13),inset 0 1px rgba(255, 255, 255,.07);
  animation: send-panel-in .45s cubic-bezier(.2,.78,.2,1) both;
}
.send-action-panel::before { content: ""; position: absolute; top: 0; right: 0; width: 2px; height: 45%; background: linear-gradient(#ff9362,#f59f65,transparent); opacity: .85; }
.send-action-panel > header { position: relative; min-height: 52px; display: grid; justify-items: center; padding: 1px 38px 0; text-align: center; }
.send-action-eyebrow { display: block; margin-bottom: 7px; color: #c3a088; font-size: var(--text-xs); font-weight: 850; letter-spacing: .08em; }
.send-action-panel h3 { margin: 0; color: #fff; font-size: 21px; letter-spacing: -.035em; }
.send-ready-state { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid rgba(84, 211, 168,.18); border-radius: 99px; color: #7bdbbb; background: rgba(62, 187, 144,.08); font-size: var(--text-xs); font-weight: 800; white-space: nowrap; }
.send-ready-state i { width: 5px; height: 5px; border-radius: 50%; background: #52d2a6; box-shadow: 0 0 0 5px rgba(82, 210, 166,.08); animation: live-pulse 1.8s ease-out infinite; }
.send-action-signal { position: relative; height: 56px; display: grid; place-items: center; margin: 5px 0 7px; }
.send-action-signal > span { position: relative; width: 54px; height: 54px; display: block; }
.send-action-signal i { position: absolute; inset: 0; border: 1px solid rgba(255, 191, 148,.18); border-radius: 50%; animation: action-signal 2.8s ease-in-out infinite; }
.send-action-signal i:nth-child(2) { inset: 9px; animation-delay: .2s; }
.send-action-signal i:nth-child(3) { inset: 18px; border-color: rgba(255, 151, 105,.36); background: rgba(245, 159, 101,.12); animation-delay: .4s; }
.send-action-signal > span::after { content: ""; position: absolute; inset: 24px; border-radius: 50%; background: #ffccaa; box-shadow: 0 0 0 5px rgba(255, 204, 170,.08),0 0 18px rgba(255, 204, 170,.36); }
@keyframes action-signal { 50% { opacity: .62; transform: scale(1.055); } }
.send-action-panel .action-row { width: 100%; max-width: 230px; display: grid; justify-content: stretch; justify-items: stretch; align-self: center; gap: 9px; margin: auto auto 0; padding: 0; border: 0; }
.send-action-panel .action-row .primary-button,
.send-action-panel .action-row .secondary-button { width: 100%; min-height: 44px; justify-content: center; }
.send-action-panel .action-row .primary-button { position: relative; overflow: hidden; }
.send-action-panel .action-row .primary-button::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg,transparent 25%,rgba(255, 255, 255,.18) 48%,transparent 70%); transform: translateX(-130%); transition: transform .55s ease; }
.send-action-panel .action-row .primary-button:hover::before { transform: translateX(130%); }
.send-action-panel .action-row .secondary-button { color: #f2eae4; border-color: rgba(255, 255, 255,.13); background: rgba(255, 255, 255,.055); box-shadow: none; }
.send-action-panel .action-row .secondary-button:hover { border-color: rgba(255, 196, 157,.32); background: rgba(255, 255, 255,.09); }
.mailbox-menu-wrap { position: relative; display: grid; gap: 8px; }
.mailbox-menu-wrap > .secondary-button { width: 100%; justify-content: center; }
.mailbox-menu {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255,.13);
  border-radius: 11px;
  background: rgba(23, 13, 7,.72);
  box-shadow: 0 16px 32px rgba(19, 10, 4,.22);
}
.mailbox-menu a {
  display: grid;
  gap: 3px;
  padding: 9px 11px;
  border-bottom: 1px solid rgba(255, 255, 255,.08);
  color: #f9f2ee;
  text-align: left;
  text-decoration: none;
}
.mailbox-menu a:last-child { border-bottom: 0; }
.mailbox-menu a:hover,
.mailbox-menu a:focus-visible { background: rgba(255, 255, 255,.09); outline: 0; }
.mailbox-menu span { font-size: 12px; font-weight: 800; }
.mailbox-menu small { color: #bbaba1; font-size: 10px; line-height: 1.35; }
.send-action-panel .send-disconnect-button { min-height: 38px; display: flex; align-items: center; justify-content: center; margin-top: 2px; padding: 0 13px; border: 1px solid rgba(255, 105, 116,.3); border-radius: 10px; color: #ff9ca4; background: rgba(181, 49, 67,.12); font-size: var(--text-xs); font-weight: 800; cursor: pointer; transition: color .18s ease,border-color .18s ease,background .18s ease,transform .18s ease; }
.send-action-panel .send-disconnect-button:hover { color: #fff; border-color: rgba(255, 114, 124,.58); background: rgba(205, 54, 75,.28); transform: translateY(-1px); }
.send-action-panel .send-disconnect-button:disabled { opacity: .58; cursor: wait; transform: none; }
.send-action-panel .send-connect-button { text-decoration: none; }
.send-ready-state.connection-required { color: #ffd38c; border-color: rgba(255, 184, 84,.24); background: rgba(125, 78, 17,.18); }
.send-ready-state.connection-required i { background: #ffb84f; box-shadow: 0 0 0 4px rgba(255, 184, 79,.1),0 0 14px rgba(255, 184, 79,.42); }
@keyframes send-panel-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

.send-info-panel { grid-area: details; margin-top: 0; overflow: hidden; border: 1px solid #eae2dd; border-radius: 16px; background: rgba(255, 255, 255,.82); box-shadow: 0 14px 38px rgba(61, 38, 23,.045),inset 0 1px #fff; animation: info-panel-in .42s .08s ease both; }
.send-info-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 14px 9px; border-bottom: 1px solid #efeae7; }
.send-info-panel > header .instruction-label { margin-bottom: 4px; }
.send-info-panel > header h3 { margin: 0; color: #39281d; font-size: 15px; letter-spacing: -.025em; }
.send-info-badge { padding: 6px 9px; border: 1px solid #f2e4da; border-radius: 99px; color: #bb8764; background: #fff7f2; font-size: var(--text-xs); font-weight: 800; }
.send-info-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; }
.send-info-item { min-width: 0; display: grid; grid-template-columns: 32px minmax(0,1fr); align-items: center; gap: 9px; min-height: 58px; padding: 8px 12px; border-right: 1px solid #efeae7; }
.send-info-item:nth-child(3) { border-right: 0; }
.send-info-icon { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #ebe4df; border-radius: 9px; color: #e89055; background: #fff9f5; font: 800 12px ui-monospace,monospace; }
.send-info-icon svg { width: 19px; height: 19px; }
.send-info-item > div { min-width: 0; display: grid; gap: 5px; }
.send-info-item small,.send-info-subject small { color: #9d928a; font-size: var(--text-xs); font-weight: 800; letter-spacing: .08em; }
.send-info-item strong { overflow: hidden; color: #3b2d23; font-size: var(--text-xs); text-overflow: ellipsis; white-space: nowrap; }
.send-info-subject { grid-column: 1 / -1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 9px 12px; border-top: 1px solid #efeae7; background: rgba(248, 247, 251,.62); }
.send-info-subject > div { min-width: 0; display: grid; gap: 7px; }
.send-info-subject code { overflow: hidden; color: #3b2d23; font: 650 12px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace; text-overflow: ellipsis; white-space: nowrap; }
.send-info-subject .copy-button { flex: 0 0 auto; min-height: 30px; padding: 0 10px; border: 1px solid #ebe0d8; border-radius: 8px; background: #fff; }
.send-info-panel > footer { display: flex; align-items: flex-start; gap: 8px; padding: 7px 12px; border-top: 1px solid #efeae7; color: #8e837b; background: #fbfafc; }
.send-info-panel > footer > span { color: #2aae82; font-size: var(--text-xs); }
.send-info-panel > footer p { margin: 0; font-size: var(--text-xs); line-height: 1.45; }
@keyframes info-panel-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

#placementWorkspace .instruction-block {
  padding: 21px 0 22px;
  border-top-color: #e8e3df;
  border-bottom-color: #e8e3df;
}
#placementWorkspace .instruction-block.recipient-panel { padding: 0; border: 0; }
#placementWorkspace .recipient-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1px;
  border-color: #eae2dd;
  border-radius: 14px;
  background: #eae2dd;
  box-shadow: 0 12px 34px rgba(61, 38, 23,.04),inset 0 1px #fff;
}
#placementWorkspace .recipient-row {
  min-height: 50px;
  grid-template-columns: 28px 26px minmax(0,1fr) auto 28px;
  padding: 0 12px;
  border-bottom: 0;
  background: rgba(255, 255, 255,.92);
  transition: background .18s ease,transform .18s ease;
  animation: recipient-in .38s ease both;
}
#placementWorkspace .recipient-row:nth-child(2) { animation-delay: 55ms; }
#placementWorkspace .recipient-row:nth-child(3) { animation-delay: 110ms; }
#placementWorkspace .recipient-row:nth-child(4) { animation-delay: 165ms; }
#placementWorkspace .recipient-row:hover { background: #fffbf9; transform: translateX(2px); }
#placementWorkspace .recipient-provider { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #ece6e2; border-radius: 8px; background: #fff; }
#placementWorkspace .recipient-provider svg { width: 16px; height: 16px; }
#placementWorkspace .recipient-provider .provider-letter { font: 800 11px/1 var(--font-sans); }
#placementWorkspace .recipient-provider.outlook .provider-letter { color: #0078d4; }
#placementWorkspace .recipient-provider.yahoo .provider-letter { color: #d25501; }
#placementWorkspace .recipient-provider.icloud .provider-letter { color: #52788f; }
#placementWorkspace .recipient-address { min-width: 0; display: grid; gap: 2px; }
#placementWorkspace .recipient-address code { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#placementWorkspace .recipient-address small { color: #918882; font-size: 11px; }
.recipient-provider-name { color: #6d635d; font-weight: 650; }
#placementWorkspace .recipient-index { color: #dc9260; font: 750 12px/1 ui-monospace,monospace; }
#placementWorkspace .recipient-row i { display: inline-flex; align-items: center; gap: 6px; }
#placementWorkspace .recipient-row i::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #35bc8d; box-shadow: 0 0 0 4px rgba(53, 188, 141,.09); }
@keyframes recipient-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.recipient-copy {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: #91837a;
  background: transparent;
  cursor: pointer;
  transition: color .16s ease,background .16s ease,transform .16s ease;
}
.recipient-copy:hover { color: #e68a4c; background: #fff4ed; transform: translateY(-1px); }
.recipient-copy.is-copied { color: #238263; background: #e8f7f1; }

#placementWorkspace .instruction-block.compact {
  margin-top: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(246, 160, 103,.17);
  border-radius: 14px;
  color: var(--ink);
  background: #fff9f5;
}
#placementWorkspace .instruction-block.compact .instruction-label { color: var(--ink-soft); }
#placementWorkspace .instruction-block.compact .copy-row code { color: var(--ink); }
#placementWorkspace .instruction-block.compact .copy-button { color: #d88147; }
#placementWorkspace .send-note {
  grid-template-columns: 34px minmax(0,1fr);
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 2px solid #f59f65;
  border-radius: 0 11px 11px 0;
  background: linear-gradient(90deg,#fff5ef,rgba(255, 245, 239,.25));
}
#placementWorkspace .send-note > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #ffebde; font-size: var(--text-xs); }
#placementWorkspace .action-row {
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #e9e4e0;
}
#placementWorkspace .send-action-panel .action-row { display: grid; align-items: stretch; justify-content: stretch; justify-items: stretch; gap: 9px; padding: 0; border: 0; }
.send-success-state {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 16px;
  color: #fff;
  background: rgba(42, 26, 16,.94);
  backdrop-filter: blur(14px);
  animation: send-success-in .28s ease both;
}
.send-success-state.hidden { display: none; }
.send-success-state > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #101e19; background: #66ddb5; font-size: 18px; box-shadow: 0 0 0 9px rgba(102, 221, 181,.09),0 0 35px rgba(102, 221, 181,.23); }
.send-success-state div { display: grid; gap: 5px; }
.send-success-state strong { font-size: 16px; }
.send-success-state small { color: #bfaea2; font-size: var(--text-xs); }
#sendView { position: relative; }
#sendView.is-completing > :not(.send-success-state) { filter: blur(2px); opacity: .35; transition: .25s ease; }
@keyframes send-success-in { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
#placementWorkspace .action-row .primary-button,
#placementWorkspace .action-row .secondary-button { min-height: 47px; border-radius: 11px; }

@media (max-width: 1100px) {
  #placementWorkspace .placement-grid { grid-template-columns: minmax(0,1fr) 285px; gap: 30px; }
  .placement-overview { grid-template-columns: 115px 125px minmax(180px,1fr) auto; padding-inline: 20px; }
  .placement-overview .metric { padding-inline: 18px; }
}

@media (max-width: 980px) {
  #placementWorkspace .placement-grid { grid-template-columns: minmax(0,1fr); }
  #placementWorkspace .context-pane { min-height: 0; }
  .send-command-grid {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas:
      "actions"
      "recipients"
      "details";
  }
  .placement-overview { grid-template-columns: repeat(3,1fr); }
  .placement-overview .privacy-note { grid-column: 1 / -1; width: fit-content; margin: 0 0 18px; }
}

@media (max-width: 700px) {
  .app-language button { min-width: 44px; min-height: 31px; padding: 0 6px; }
  .app-language .lang-flag { width: 20px; height: 20px; }
  .app-language .lang-code { display: inline; }
  .topbar > :last-child { margin-right: 100px; }
  #placementWorkspace .topbar .primary-button { width: 46px; min-width: 46px; padding: 0; }
  .placement-overview { grid-template-columns: 1fr 1fr; min-height: 0; padding: 21px 18px; }
  .placement-overview .metric { min-height: 62px; padding: 0 14px; }
  .placement-overview .metric:nth-of-type(2) { border-right: 0; }
  .placement-overview .metric-wide { grid-column: 1 / -1; padding-left: 0; border-top: 1px solid rgba(255, 255, 255,.09); border-right: 0; }
  .placement-overview .privacy-note { margin-bottom: 0; }
  .placement-signal { right: -70px; opacity: .52; }
  #placementWorkspace .connection-notice { grid-template-columns: 42px minmax(0,1fr); }
  #placementWorkspace .connection-action { grid-column: 1 / -1; width: 100%; }
  #placementWorkspace .steps { grid-template-columns: 1fr; gap: 3px; }
  #placementWorkspace .steps li { grid-template-columns: 24px minmax(0,1fr); grid-template-rows: 24px; row-gap: 0; padding: 7px 8px; }
  #placementWorkspace .steps li b { display: block; grid-column: 2; background: transparent; }
  #placementWorkspace .steps li:not(:last-child)::after { display: none; }
  #placementWorkspace .action-row { align-items: stretch; flex-direction: column; }
  #placementWorkspace .action-row > * { width: 100%; }
  .reset-confirmation { align-items: stretch; flex-direction: column; }
  .reset-confirmation > div { width: 100%; }
  .reset-confirmation > div > * { flex: 1; }
  #placementWorkspace .recipient-row { grid-template-columns: 28px 22px minmax(0,1fr) 28px; padding-inline: 11px; }
  #placementWorkspace .recipient-row i { display: none; }
  #placementWorkspace .context-pane { padding: 30px 24px; }
  #sendView .send-action-panel { min-height: 280px; }
  #placementWorkspace .send-command-grid .recipient-list { grid-template-columns: 1fr; }
  .send-info-panel > header { align-items: flex-start; }
  .send-info-grid { grid-template-columns: 1fr; }
  .send-info-item { border-right: 0; border-bottom: 1px solid #efeae7; }
  .send-info-item:nth-child(3) { border-bottom: 0; }
  .send-info-subject { align-items: stretch; flex-direction: column; gap: 13px; }
  .send-info-subject .copy-button { width: 100%; }
}

/* Reports: placement result as one stacked bar (inbox · spam · waiting). */
.result-bar { display: grid; gap: 6px; font-weight: 600; }
.result-bar i { display: flex; height: 8px; overflow: hidden; border-radius: 99px; background: var(--line); }
.result-bar b { display: block; height: 100%; }
.result-bar .is-inbox { background: var(--green); }
.result-bar .is-spam { background: var(--red); }
.result-bar .is-waiting { background: #d4cac4; }
.result-bar em { color: var(--ink-soft); font-size: var(--text-xs); font-style: normal; }
.reports-list { margin-top: 8px; }
#reportsWorkspace .page-lead { margin-bottom: 8px; }
@media (max-width: 700px) {
  .report-history-row .result-bar { grid-column: 1 / -1; }
}
/* Mail Quality: three columns do not fit below ~1180px; the evidence list moves under the form. */
@media (max-width: 1180px) {
  #qualityCreateView { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .quality-method { grid-column: 1 / -1; padding: 30px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .quality-method ol { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
}
@media (max-width: 700px) {
  .home-topbar { flex-wrap: wrap; }
  .home-topbar-actions { flex: 1 1 100%; justify-content: stretch; margin-right: 0 !important; }
  .home-topbar-actions > button { flex: 1 1 0; min-width: 0; }
  .home-topbar-actions .primary-button { font-size: var(--text-xs); padding: 0 12px; }
  .home-topbar-actions .primary-button span { font-size: inherit; }
}

/* Sender Health: one status, a styled picker, and a destructive action that stands apart. */
#warmupStatusBadge { display: none; }
.mailbox-switcher select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 42px;
  padding-right: 38px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236d687c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px;
  font-size: var(--text-md);
}
.mailbox-switcher select:hover { border-color: #dad0c9; }
.mailbox-quick-actions .danger-action { position: relative; margin-left: 12px; border-color: transparent; color: #b74343; background: transparent; }
.mailbox-quick-actions .danger-action::before { content: ""; position: absolute; left: -9px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.mailbox-quick-actions .danger-action:hover { border-color: #f1c9c9; color: #9e3434; background: #fdf1f1; }

/* Overview: a new account gets one starting point; problems surface above the metrics. */
#homeWorkspace.is-new .home-topbar-actions,
#homeWorkspace.is-new .home-metrics,
#homeWorkspace.is-new .home-content-grid { display: none; }
.home-welcome { margin-top: 12px; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.home-welcome > h2 { margin: 0 0 24px; font-size: var(--text-2xl); letter-spacing: -.02em; }
.home-welcome-paths { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.home-welcome-paths article { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border: 1px solid var(--line); border-radius: 12px; }
.home-welcome-paths h3 { margin: 0 0 8px; font-size: var(--text-lg); }
.home-welcome-paths p { flex: 1; margin: 0 0 24px; color: var(--ink-soft); font-size: var(--text-md); line-height: 1.5; }
.home-welcome-paths .primary-button, .home-welcome-paths .secondary-button { width: auto; }
.home-attention { margin-top: 12px; padding: 16px 20px; border: 1px solid #f0d8b4; border-radius: 12px; background: #fff9f0; }
.home-attention > h2 { margin: 0 0 8px; font-size: var(--text-md); }
.home-attention-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid #f4e6cf; }
.home-attention-row > div { min-width: 0; }
.home-attention-row strong { display: block; overflow: hidden; font-size: var(--text-md); text-overflow: ellipsis; white-space: nowrap; }
.home-attention-row small { color: #85581a; font-size: var(--text-xs); }
.home-attention-row button { flex: none; padding: 6px 2px; border: 0; color: #d88147; background: none; font: inherit; font-size: var(--text-sm); font-weight: 650; cursor: pointer; }

/* Reports: the whole row opens the test. */
.report-history-row { position: relative; transition: background .15s ease; }
.report-history-row:hover { background: #faf9fc; }
.report-open { display: block; max-width: 100%; padding: 0; border: 0; color: inherit; background: none; font: inherit; text-align: left; cursor: pointer; }
.report-open::after { content: ""; position: absolute; inset: 0; }
.report-open:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

/* Confirmation for actions that stop or remove something. */
.confirm-dialog { width: min(440px,calc(100vw - 32px)); padding: 24px; border: 0; border-radius: 16px; color: var(--ink); box-shadow: 0 24px 60px rgba(31, 21, 15,.28); }
.confirm-dialog::backdrop { background: rgba(31, 21, 15,.46); }
.confirm-dialog h2 { margin: 0 0 8px; font-size: var(--text-xl); }
.confirm-dialog p { margin: 0 0 24px; color: var(--ink-soft); font-size: var(--text-md); line-height: 1.5; }
.confirm-dialog footer { display: flex; justify-content: flex-end; gap: 8px; }
.confirm-dialog button { width: auto; min-height: 42px; padding: 0 16px; }
#confirmDialogAccept { border-color: #b74343; background: #b74343; box-shadow: none; }

@media (max-width: 700px) {
  /* Mobile navigation: labelled tabs at the bottom instead of icons in the header. */
  .sidebar { height: 56px; }
  .nav {
    position: fixed;
    z-index: 15;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 0;
    width: auto;
    margin: 0;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255,.08);
    background: #19100a;
  }
  .nav-item {
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    min-height: 54px;
    padding: 4px 2px;
    font-size: var(--text-xs);
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }
  .nav-item svg { flex: 0 0 18px; width: 18px; height: 18px; }
  .workspace { padding-bottom: 104px; }
  .toast { right: 16px; bottom: 88px; left: 16px; }
  .home-welcome { padding: 20px; }
  .home-welcome-paths { grid-template-columns: minmax(0,1fr); }
  .home-welcome-paths article { padding: 20px; }
}

/* Filled ember actions: dark text on solid ember, as on the homepage (contrast 5.8:1).
   White on the light orange gradient measured ~2:1 and was unreadable. */
.primary-button,
.mailbox-reconnect,
.warmup-settings-form > .secondary-button,
#placementWorkspace .topbar .primary-button,
#placementWorkspace .submit-button {
  color: #1A0F08;
  border-color: #D9733F;
  background: #D9733F;
  box-shadow: 0 8px 22px rgba(217, 115, 63, .22);
}
.primary-button:hover,
.mailbox-reconnect:hover,
.warmup-settings-form > .secondary-button:hover,
#placementWorkspace .topbar .primary-button:hover,
#placementWorkspace .submit-button:hover {
  color: #1A0F08;
  background: #E6844F;
}
#placementWorkspace .topbar .primary-button::after { display: none; }

/* ==========================================================================
   Visual system v2 (Claude, 2026-11-14) — same language as the homepage:
   neutral black shells, ice content, ember used sparingly as an accent.
   Rules: no brown gradients; one filled ember action per view; ember lines
   and numbers instead of ember paint. Layout and text are not changed here.
   ========================================================================== */
:root {
  --night: #111111;
  --night-2: #161616;
  --night-3: #1d1d1d;
  --night-line: rgba(255, 255, 255, .08);
  --night-text: #f3f1ed;
  --night-muted: #b5b2ad;
  --ember: #d9733f;
  --ember-ink: #a34a22;
  --ice: #eef2f4;
  --ember-ice-line: linear-gradient(90deg, transparent, #d9733f 30%, #9cc9d6 70%, transparent);
}

/* Shell */
.sidebar { background: var(--night); border-right: 1px solid var(--night-line); }
.sidebar::before { display: none; }
.nav-item.active { color: #fff; background: rgba(255, 255, 255, .06); box-shadow: none; }
.nav-item.active::before { background: var(--ember); box-shadow: none; }
.sidebar-foot a { color: var(--night-muted); }
.workspace-identity { background: rgba(255, 255, 255, .04); border-color: var(--night-line); }
.workspace-identity > span { background: var(--ember); color: #1a0f08; box-shadow: none; }

/* Dark summary cards: flat black, one ember→ice hairline on top */
.placement-overview,
#placementWorkspace .context-pane,
.send-action-panel {
  border: 1px solid var(--night-line);
  color: var(--night-text);
  background: var(--night-2);
  box-shadow: 0 18px 40px rgba(17, 17, 17, .12);
}
.placement-overview::after,
.send-action-panel::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--ember-ice-line); pointer-events: none;
}
#placementWorkspace .context-pane::before,
.send-action-panel::before {
  left: 0; right: 0; width: auto; height: 2px; top: 0;
  background: var(--ember-ice-line); box-shadow: none; opacity: 1;
}
#placementWorkspace .context-pane .eyebrow,
.send-action-eyebrow { color: var(--night-muted); }

/* Result hero: neutral surfaces; state shown by a coloured edge, not a coloured slab */
.result-hero,
.result-hero.primary,
.result-hero.spam,
.result-hero.other { background: var(--night-2); border: 1px solid var(--night-line); }
.result-hero.primary { box-shadow: inset 4px 0 0 #3fb68f; }
.result-hero.spam { box-shadow: inset 4px 0 0 #d44d64; }
.result-hero.other { box-shadow: inset 4px 0 0 var(--ember); }
.result-hero span { color: var(--night-muted); }
.result-hero.primary span { color: #67d7b3; }
.result-hero.spam span { color: #f08a9b; }

/* Primary actions: normal size, never full-width slabs */
#placementWorkspace .submit-button {
  width: auto; min-width: 220px; min-height: 46px; justify-self: start;
  padding-inline: 24px; border-radius: 10px;
}

/* Placement form: one filled action. The header "Yeni test" is a quiet outline. */
#placementWorkspace .topbar .primary-button {
  color: var(--ink); background: transparent; border: 1px solid var(--line); box-shadow: none;
}
#placementWorkspace .topbar .primary-button:hover { color: var(--ink); background: #fff; border-color: #c4ccd0; }
.advanced-options { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.advanced-options > summary {
  width: max-content; cursor: pointer; color: var(--ink-soft); font-size: var(--text-sm); font-weight: 600;
  list-style: none;
}
.advanced-options > summary::-webkit-details-marker { display: none; }
.advanced-options > summary::before { content: "+ "; color: var(--ember-ink); font-weight: 700; }
.advanced-options[open] > summary::before { content: "– "; }
.advanced-options[open] > summary { margin-bottom: 12px; }
#placementWorkspace .submit-button { margin-top: 22px; }

/* Mail health check (diagnosis) */
.diagnosis { display: grid; gap: 28px; margin-top: 30px; }
.diagnosis-intro { max-width: 760px; }
.diagnosis-intro h2 { margin: 6px 0 12px; font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -.03em; }
.diagnosis-intro > p { margin: 0 0 22px; color: var(--ink-soft); font-size: var(--text-lg); line-height: 1.6; }
.diagnosis-form label { display: block; margin-bottom: 8px; font-size: var(--text-sm); font-weight: 600; }
.diagnosis-form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.diagnosis-form-row input {
  flex: 1 1 260px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font: 500 15px/1 "IBM Plex Sans", sans-serif; color: var(--ink);
}
.diagnosis-form-row input:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(217, 115, 63, .14); }
.diagnosis-form-row .primary-button { min-height: 46px; padding-inline: 22px; }
.diagnosis-scope { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.diagnosis-scope li { padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-soft); font-size: var(--text-xs); background: #fff; }

.diagnosis-result { display: grid; gap: 18px; }
.diagnosis-summary {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px;
  padding: 22px 24px; border: 1px solid var(--night-line); border-radius: 16px; color: var(--night-text); background: var(--night-2); overflow: hidden;
}
.diagnosis-summary::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ember-ice-line); }
.diagnosis-summary .eyebrow { margin: 0 0 4px; color: var(--night-muted); }
.diagnosis-summary h3 { margin: 0 0 4px; font-size: 22px; }
.diagnosis-summary p { margin: 0; color: var(--night-muted); font-size: var(--text-sm); }
.diagnosis-score { display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%; border: 3px solid var(--ember); }
.diagnosis-result[data-summary="good"] .diagnosis-score { border-color: #3fb68f; }
.diagnosis-result[data-summary="critical"] .diagnosis-score { border-color: #d44d64; }
.diagnosis-score strong { font: 600 28px/1 "Schibsted Grotesk", sans-serif; }
.diagnosis-score span { margin-top: -18px; color: var(--night-muted); font-size: 11px; }
.diagnosis-summary .secondary-button { color: var(--night-text); background: transparent; border: 1px solid rgba(255, 255, 255, .18); }

.diagnosis-items { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.diagnosis-item { display: grid; grid-template-columns: 14px 1fr; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.diagnosis-dot { width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: #b5b2ad; }
.diagnosis-item.high .diagnosis-dot { background: #d44d64; }
.diagnosis-item.medium .diagnosis-dot { background: var(--ember); }
.diagnosis-item.low .diagnosis-dot { background: #d88a28; }
.diagnosis-item.ok .diagnosis-dot { background: #3fb68f; }
.diagnosis-item.ok { padding-block: 12px; background: transparent; }
.diagnosis-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.diagnosis-title h4 { margin: 0; font-size: 16px; }
.diagnosis-item.ok .diagnosis-title h4 { font-size: 14px; font-weight: 600; }
.diagnosis-tag { flex: none; padding: 3px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; color: var(--ink-soft); background: #eef2f4; }
.diagnosis-item.high .diagnosis-tag { color: #9e2c40; background: #fbe9ec; }
.diagnosis-item.medium .diagnosis-tag { color: var(--ember-ink); background: #fbeee6; }
.diagnosis-item.ok .diagnosis-tag { color: #1f7a5a; background: #e6f6ef; }
.diagnosis-body > p { margin: 6px 0 0; color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.6; }
.diagnosis-item.ok .diagnosis-body > p { margin-top: 2px; font-size: var(--text-xs); }
.diagnosis-fix { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: #f4f6f7; border: 1px solid var(--line); }
.diagnosis-fix > p { margin: 0 0 10px; font-size: var(--text-sm); font-weight: 600; }
.diagnosis-fix dl { display: grid; gap: 8px; margin: 0; }
.diagnosis-fix dl > div { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; }
.diagnosis-fix dt { color: var(--ink-soft); font-size: var(--text-xs); }
.diagnosis-fix dd { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; }
.diagnosis-fix code { overflow-wrap: anywhere; font: 500 13px/1.4 "IBM Plex Mono", monospace; }
.diagnosis-copy { flex: none; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12px; font-weight: 600; cursor: pointer; }
.diagnosis-fix small { display: block; margin-top: 10px; color: var(--ink-soft); font-size: var(--text-xs); }
.diagnosis-auth { margin-top: 12px; border-collapse: collapse; font-size: var(--text-sm); }
.diagnosis-auth th, .diagnosis-auth td { padding: 6px 14px 6px 0; text-align: left; }
.diagnosis-auth td.pass { color: #1f7a5a; font-weight: 600; }
.diagnosis-auth td.fail, .diagnosis-auth td.none { color: #9e2c40; font-weight: 600; }
.diagnosis-note { margin-top: 14px; padding: 14px 16px; border-left: 3px solid var(--ember); border-radius: 0 10px 10px 0; background: #f4f6f7; }
.diagnosis-note strong { font-size: var(--text-sm); }
.diagnosis-note p { margin: 6px 0 10px; color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.6; }
.diagnosis-action { display: inline-block; margin-top: 10px; color: var(--ember-ink); font-size: var(--text-sm); font-weight: 700; text-decoration: none; }
.diagnosis-checked-at { margin: 0; color: var(--ink-soft); font-size: var(--text-xs); }
@media (max-width: 720px) {
  .diagnosis-summary { grid-template-columns: auto 1fr; }
  .diagnosis-summary .secondary-button { grid-column: 1 / -1; }
}

/* Diagnosis v2: problem cards + one detail panel + compact "no problems" chips */
.diagnosis-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.diagnosis-card {
  display: grid; align-content: start; gap: 8px; min-height: 150px; padding: 18px; text-align: left;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink);
  font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.diagnosis-card:hover { border-color: #c4ccd0; box-shadow: 0 10px 24px rgba(17, 17, 17, .06); transform: translateY(-1px); }
.diagnosis-card[aria-expanded="true"] { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(217, 115, 63, .12); }
.diagnosis-card.high[aria-expanded="true"] { border-color: #d44d64; box-shadow: 0 0 0 3px rgba(212, 77, 100, .12); }
.diagnosis-card-top { display: flex; align-items: center; justify-content: space-between; }
.diagnosis-card .diagnosis-dot { margin: 0; }
.diagnosis-card strong { font: 600 17px/1.25 "Schibsted Grotesk", sans-serif; letter-spacing: -.01em; }
.diagnosis-card small { color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.5; }
.diagnosis-card-more { margin-top: auto; color: var(--ember-ink); font-size: var(--text-xs); font-weight: 700; }
.diagnosis-card.high .diagnosis-dot { background: #d44d64; }
.diagnosis-card.medium .diagnosis-dot { background: var(--ember); }
.diagnosis-card.low .diagnosis-dot { background: #d88a28; }
.diagnosis-card.high .diagnosis-tag { color: #9e2c40; background: #fbe9ec; }
.diagnosis-card.medium .diagnosis-tag { color: var(--ember-ink); background: #fbeee6; }

.diagnosis-detail {
  position: relative; padding: 20px 22px; border: 1px solid var(--line); border-left: 3px solid var(--ember);
  border-radius: 0 14px 14px 0; background: #fff; animation: diagnosis-in .2s ease both;
}
.diagnosis-detail[data-level="high"] { border-left-color: #d44d64; }
.diagnosis-detail header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.diagnosis-detail h4 { margin: 0; font-size: 18px; }
.diagnosis-detail > p { margin: 8px 0 0; max-width: 760px; color: var(--ink-soft); font-size: var(--text-md); line-height: 1.65; }
.diagnosis-close { border: 0; background: transparent; color: var(--ink-soft); font-size: 24px; line-height: 1; cursor: pointer; }
@keyframes diagnosis-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.diagnosis-ok { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.diagnosis-ok-label { margin-right: 4px; color: var(--ink-soft); font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.diagnosis-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; background: #e6f6ef; color: #1f7a5a; font-size: var(--text-xs); font-weight: 600; }

/* Reports: inbox-rate trend */
.reports-chart { margin: 22px 0 26px; padding: 22px 24px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.reports-chart:empty { display: none; }
.reports-chart-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.reports-chart-head .eyebrow { margin: 0 0 4px; }
.reports-chart-head h3 { margin: 0; font-size: 22px; }
.reports-chart-stats { display: flex; align-items: center; gap: 14px; }
.reports-chart-stats span { display: grid; color: var(--ink-soft); font-size: var(--text-xs); text-align: right; }
.reports-chart-stats b { color: var(--ink); font: 600 24px/1.1 "Schibsted Grotesk", sans-serif; }
.reports-chart-stats .arrow { color: var(--ember); font-size: 18px; }
.reports-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.reports-chart .grid { stroke: #e3e8ea; stroke-width: 1; }
.reports-chart .axis { fill: #7a7f84; font: 500 11px "IBM Plex Sans", sans-serif; }
.reports-chart .line { fill: none; stroke: #d9733f; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.reports-chart .area { fill: url(#reportsArea); }
.reports-chart .point circle { fill: #fff; stroke: #d9733f; stroke-width: 2.5; cursor: default; }
.reports-chart .point:hover circle { fill: #d9733f; }
.reports-chart-note { margin: 6px 0 0; color: var(--ink-soft); font-size: var(--text-xs); }
.reports-chart-empty strong { font-size: var(--text-md); }
.reports-chart-empty p { margin: 4px 0 0; color: var(--ink-soft); font-size: var(--text-sm); }

/* Overview board: three status cards + next steps. Replaces the old metric strip
   and the latest-result card, which repeated the same information. */
#homeWorkspace .home-metrics, #homeWorkspace .home-latest-result { display: none; }
.overview-board { display: grid; gap: 22px; margin: 22px 0 28px; }
.overview-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.overview-card {
  position: relative; display: grid; align-content: start; gap: 8px; min-height: 210px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
}
.overview-card .eyebrow { margin: 0; }
.overview-card h3 { margin: 4px 0 0; font-size: 20px; }
.overview-card > p { margin: 0; color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.55; }
.overview-card > small { color: var(--ink-soft); font-size: var(--text-xs); overflow-wrap: anywhere; }
.overview-big { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.overview-big strong { font: 600 44px/1 "Schibsted Grotesk", sans-serif; letter-spacing: -.03em; }
.overview-big span { color: var(--ink-soft); font-size: var(--text-sm); }
.overview-big.good strong { color: #1f7a5a; }
.overview-big.mid strong { color: var(--ember-ink); }
.overview-big.bad strong { color: #b23a50; }
.overview-spark { width: 120px; height: 32px; margin-left: auto; }
.overview-spark polyline { fill: none; stroke: #d9733f; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.overview-split { display: flex; flex-wrap: wrap; gap: 6px; }
.overview-split span { padding: 4px 9px; border-radius: 99px; background: #eef2f4; color: var(--ink-soft); font-size: var(--text-xs); }
.overview-split b { color: var(--ink); }
.overview-state { position: absolute; top: 20px; right: 20px; display: inline-flex; align-items: center; gap: 6px; color: #1f7a5a; font-size: var(--text-xs); font-weight: 700; }
.overview-state i { width: 7px; height: 7px; border-radius: 50%; background: #3fb68f; box-shadow: 0 0 0 4px rgba(63, 182, 143, .14); }
.overview-link { margin-top: auto; padding-top: 8px; color: var(--ember-ink); font-size: var(--text-sm); font-weight: 700; text-decoration: none; }
.overview-link:hover { text-decoration: underline; }

.overview-next { padding: 20px 22px; border: 1px solid var(--night-line); border-radius: 16px; color: var(--night-text); background: var(--night-2); position: relative; overflow: hidden; }
.overview-next::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ember-ice-line); }
.overview-next header .eyebrow { margin: 0 0 2px; color: var(--night-muted); }
.overview-next header h3 { margin: 0 0 12px; font-size: 20px; }
.overview-steps { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.overview-steps li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--night-line); }
.overview-steps li:first-child { border-top: 0; }
.overview-step-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--night-muted); }
.overview-steps li.high .overview-step-dot { background: #f07a8f; }
.overview-steps li.medium .overview-step-dot { background: var(--ember); }
.overview-steps strong { display: block; font-size: var(--text-md); }
.overview-steps small { display: block; margin-top: 2px; color: var(--night-muted); font-size: var(--text-xs); }
.overview-steps a { padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 9px; color: var(--night-text); font-size: var(--text-xs); font-weight: 700; text-decoration: none; white-space: nowrap; }
.overview-steps li.high a { border-color: var(--ember); background: var(--ember); color: #1a0f08; }
.overview-steps-empty { display: flex; align-items: center; gap: 10px; color: var(--night-muted); font-size: var(--text-sm); }
.overview-steps-empty span { color: #67d7b3; }
@media (max-width: 980px) { .overview-cards { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .overview-steps li { grid-template-columns: 12px 1fr; } .overview-steps a { grid-column: 2; justify-self: start; } }
.diagnosis-ok { display: grid; gap: 8px; }
.diagnosis-ok-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.diagnosis-chip.is-unknown { color: var(--ink-soft); background: #eef2f4; }
.diagnosis-card.low .diagnosis-tag { color: #5c6166; background: #eef2f4; }

/* Account settings */
.session-settings { display: block; margin-top: 2px; color: var(--night-muted); font-size: 11px; text-decoration: none; }
.session-settings:hover { color: #fff; text-decoration: underline; }
.account-operator-note { display: none; margin: 18px 0 0; color: var(--ink-soft); }
#accountWorkspace.is-operator .account-operator-note { display: block; }
#accountWorkspace.is-operator .account-grid { display: none; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 26px; align-items: start; }
.account-card { display: grid; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.account-card h2 { margin: 0 0 6px; font-size: 20px; }
.account-card label { margin-top: 6px; color: var(--ink-soft); font-size: var(--text-xs); font-weight: 600; }
.account-card input, .account-card select {
  min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font: 500 14px/1 "IBM Plex Sans", sans-serif;
}
.account-card input[readonly] { color: var(--ink-soft); background: #f4f6f7; }
.account-card input:focus, .account-card select:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(217, 115, 63, .14); }
.account-card button { justify-self: start; margin-top: 10px; }
.account-card > p { margin: 0; color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.6; }
.account-hint { font-size: var(--text-xs) !important; }
.account-feedback { margin: 4px 0 0 !important; font-size: var(--text-sm) !important; font-weight: 600; }
.account-feedback.ok { color: #1f7a5a !important; }
.account-feedback.error { color: #b23a50 !important; }
.account-danger { border-color: #f1c9d0; background: #fffafb; }
.account-danger h2 { color: #9e2c40; }
.danger-button {
  min-height: 42px; padding: 0 16px; border: 1px solid #d44d64; border-radius: 9px;
  color: #fff; background: #b23a50; font: 700 13px/1 inherit; cursor: pointer;
}
.danger-button:hover { background: #9e2c40; }
.danger-button:disabled { opacity: .6; cursor: wait; }

/* Expected warm-up time + entry gate (P21) */
.diagnosis-estimate { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 14px 32px; margin-top: 22px; padding: 24px 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; position: relative; overflow: hidden; }
.diagnosis-estimate::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ember-ice-line); }
.diagnosis-estimate.hidden { display: none; }
.diagnosis-estimate .eyebrow { margin: 0 0 6px; }
.de-head h4 { margin: 0 0 6px; font-size: 20px; }
.de-head p { margin: 0; color: var(--ink-soft); }
.de-weeks { display: grid; align-content: center; gap: 6px; }
.de-weeks span:first-child { color: var(--ink-soft); font-size: var(--text-sm); }
.de-weeks b { font-size: 30px; letter-spacing: -.02em; color: var(--ember-ink); }
.de-bar { position: relative; display: block; height: 8px; border-radius: 99px; background: #eef2f4; }
.de-bar i { --c: var(--ember); position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 28%, transparent) 0 var(--lo, 50%), var(--c) var(--lo, 50%)); }
.de-ramp { grid-column: 1 / -1; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: var(--text-sm); }
.de-gate { grid-column: 1 / -1; margin: 0; padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: var(--text-sm); }
.de-gate.ok { color: #1f7a5a; background: #e6f6ef; }
.de-gate.warn { color: #a34a22; background: #fbeee6; }
.de-gate.bad { color: #b23a50; background: #fbe9ed; }
@media (max-width: 760px) { .diagnosis-estimate { grid-template-columns: 1fr; } }

/* Weekly placement limit card (free plan) */
.inline-error.is-limit { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }
.limit-card { display: flex; gap: 20px; align-items: flex-start; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; position: relative; overflow: hidden; }
.limit-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ember-ice-line); }
.limit-count { flex: none; display: grid; place-items: center; align-content: center; width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--ember); color: var(--ember-ink); }
.limit-count b { font-size: 28px; line-height: 1; letter-spacing: -.02em; }
.limit-count span { font-size: 12px; color: var(--ink-soft); }
.limit-body { display: grid; gap: 6px; min-width: 0; }
.limit-body strong { font-size: 17px; color: var(--ink); }
.limit-body p { margin: 0; color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.5; }
.limit-body .limit-more { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.limit-link { justify-self: start; margin-top: 4px; font-weight: 600; color: var(--ember-ink); text-decoration: none; }
.limit-link:hover { text-decoration: underline; }
@media (max-width: 560px) { .limit-card { flex-direction: column; } }

/* Roadmap card (overview + placement result) and slim reminders on other tabs */
.roadmap-slot { margin-top: 22px; }
.roadmap-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 18px 36px; padding: 26px 28px; border-radius: 18px; color: #f4f1ec; background: radial-gradient(90% 140% at 100% 0%, rgba(217, 115, 63, .22), transparent 60%), #171513; position: relative; overflow: hidden; }
.roadmap-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ember-ice-line); }
.roadmap-card .rm-head { grid-column: 1; }
.rm-eyebrow { margin: 0 0 8px; color: #e9a77f; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.roadmap-card h3 { margin: 0 0 8px; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; color: #fff; }
.roadmap-card .rm-head p { margin: 0; color: #c9c3bb; font-size: var(--text-sm); line-height: 1.55; }
.rm-time { grid-column: 2; grid-row: 1; align-self: center; justify-self: end; display: grid; gap: 4px; text-align: right; }
.rm-time span { color: #a9a39b; font-size: 12px; }
.rm-time b { font-size: 34px; letter-spacing: -.02em; color: #e9a77f; line-height: 1; }
.rm-steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.rm-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.rm-steps b { display: block; color: #fff; font-size: 14px; line-height: 1.35; }
.rm-steps small { display: block; margin-top: 4px; color: #a9a39b; font-size: 12px; line-height: 1.45; }
.rm-n { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 700; color: #1a0f08; background: #a9a39b; }
.rm-steps li.fix.high .rm-n { background: #e2667f; }
.rm-steps li.fix.medium .rm-n { background: #d9733f; }
.rm-steps li.warm .rm-n { background: #e9a77f; }
.rm-steps li.measure .rm-n { background: #9cc9d6; }
.rm-steps li.connect .rm-n { background: #f4f1ec; }
.rm-advice { grid-column: 1 / -1; display: grid; gap: 4px; padding: 14px 16px; border: 1px dashed rgba(233, 167, 127, .45); border-radius: 12px; background: rgba(217, 115, 63, .08); }
.rm-advice span { color: #e9a77f; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.rm-advice p { margin: 0; color: #f4f1ec; font-size: 15px; }
.rm-advice b { color: #fff; }
.rm-advice small { color: #a9a39b; font-size: 12.5px; }
.rm-advice em { justify-self: start; margin-top: 4px; padding: 3px 9px; border-radius: 99px; color: #c9c3bb; background: rgba(255, 255, 255, .07); font-size: 11.5px; font-style: normal; }
.roadmap-slot#roadmapHome { margin: 0 0 22px; }
.rm-cta { grid-column: 1 / -1; justify-self: start; padding: 10px 16px; border: 0; border-radius: 999px; color: #1a0f08; background: #d9733f; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.rm-cta:hover { background: #e58a5b; }
.roadmap-card.is-empty { grid-template-columns: 1fr auto; align-items: center; }
.roadmap-card.is-empty .rm-cta { grid-column: 2; }
.roadmap-reminder { display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 10px 12px 10px 16px; border: 1px solid color-mix(in srgb, var(--ember, #d9733f) 30%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--ember, #d9733f) 7%, #fff); }
.roadmap-reminder p { flex: 1; margin: 0; color: var(--ink); font-size: var(--text-sm); }
.rm-pulse { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ember, #d9733f); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ember, #d9733f) 20%, transparent); }
.rm-link { flex: none; padding: 6px 10px; border: 0; border-radius: 8px; color: var(--ember-ink, #a34a22); background: transparent; font: inherit; font-weight: 700; font-size: var(--text-sm); cursor: pointer; }
.rm-link:hover { background: color-mix(in srgb, var(--ember, #d9733f) 12%, transparent); }
.rm-close { flex: none; width: 28px; height: 28px; border: 0; border-radius: 8px; color: var(--ink-soft); background: transparent; font-size: 18px; line-height: 1; cursor: pointer; }
.rm-close:hover { background: rgba(0, 0, 0, .05); }
@media (max-width: 760px) {
  .roadmap-card, .roadmap-card.is-empty { grid-template-columns: 1fr; padding: 22px 20px; }
  .rm-time { grid-column: 1; grid-row: auto; justify-self: start; text-align: left; }
  .roadmap-card.is-empty .rm-cta { grid-column: 1; }
}

/* Mail quality: confirm a fresh check even when the result is unchanged */
.diagnosis-refreshed { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; color: #1f7a5a; background: #e6f6ef; font-weight: 600; font-size: var(--text-sm); transition: opacity .4s ease; }
.diagnosis-refreshed.is-out { opacity: 0; height: 0; margin: 0; padding: 0; overflow: hidden; }
.diagnosis-result.just-refreshed { animation: diag-flash .9s ease; }
@keyframes diag-flash { 0% { opacity: .55; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .diagnosis-result.just-refreshed { animation: none; } }

/* Provider-specific connection hint (Zoho IMAP / free plan) */
.provider-hint { margin: 10px 0 0; padding: 12px 14px; border-left: 3px solid var(--ember, #d9733f); border-radius: 0 10px 10px 0; color: var(--ink-soft); background: color-mix(in srgb, var(--ember, #d9733f) 7%, #fff); font-size: var(--text-xs); line-height: 1.55; }
.provider-hint b { color: var(--ink); }
.provider-hint.hidden { display: none; }
.gmail-trouble { margin: 4px 0 14px; padding: 10px 14px; border-radius: 10px; color: var(--ink-soft); background: #f6f4f1; font-size: var(--text-xs); line-height: 1.55; }
.gmail-trouble b { color: var(--ink); }

/* Warm-up address list: compact rows, the selected one opens the console */
.warmup-address-list:empty { display: none; }
.warmup-address-list { display: grid; gap: 8px; margin: 0 0 16px; }
.wa-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 2px; }
.wa-head span { color: var(--ink-soft); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.wa-head small { color: var(--ink-soft); font-size: var(--text-xs); }
.wa-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto auto 18px; align-items: center; gap: 16px; width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease; }
.wa-row:hover { border-color: color-mix(in srgb, var(--ember, #d9733f) 40%, var(--line)); }
.wa-row.is-selected { border-color: var(--ember, #d9733f); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ember, #d9733f) 12%, transparent); }
.wa-row .provider-logo { width: 36px; height: 36px; }
.wa-main { display: grid; min-width: 0; }
.wa-main strong { overflow: hidden; color: var(--ink); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.wa-main small { color: var(--ink-soft); font-size: var(--text-xs); }
.wa-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.wa-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.wa-status.run { color: #1f7a5a; background: #e6f6ef; }
.wa-status.pause { color: #8a6a1f; background: #fbf3df; }
.wa-status.idle { color: var(--ink-soft); background: #f1efec; }
.wa-status.bad { color: #b23a50; background: #fbe9ed; }
.wa-stat { color: var(--ink-soft); font-size: 13px; white-space: nowrap; }
.wa-stat b { color: var(--ink); }
.wa-chev { color: var(--ink-soft); font-size: 12px; }
.warmup-address-list:not(:empty) + .mailbox-switcher label { display: none; }
.warmup-address-list:not(:empty) + .mailbox-switcher { justify-content: flex-end; margin: -6px 0 0; padding: 0; min-height: 0; border: 0; background: none; }
/* Folded: only the list and the add button stay */
#connectedWarmupStage.is-collapsed .mailbox-switcher ~ * { display: none; }
@media (max-width: 760px) {
  .wa-row { grid-template-columns: 36px minmax(0, 1fr) 18px; row-gap: 8px; }
  .wa-status, .wa-stat { grid-column: 2; justify-self: start; }
  .wa-chev { grid-column: 3; grid-row: 1; }
}

/* P23: email verification strip, verified sender picker, sender mismatch */
.verify-strip { margin-top: 64px !important; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 20px; align-items: center; margin: 0 0 18px; padding: 14px 18px; border: 1px solid color-mix(in srgb, var(--ember, #d9733f) 35%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--ember, #d9733f) 6%, #fff); }
.verify-strip[hidden] { display: none; }
.vs-text { display: grid; gap: 2px; }
.vs-text b { color: var(--ink); }
.vs-text span { color: var(--ink-soft); font-size: var(--text-sm); }
.vs-form { display: flex; align-items: center; gap: 10px; }
.vs-form input { width: 120px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 18px; letter-spacing: .3em; text-align: center; }
.vs-msg { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); font-size: var(--text-xs); }
.vs-msg:empty { display: none; }
.sender-picker { display: grid; gap: 8px; }
.sp-row { display: flex; gap: 10px; }
.sp-row select { flex: 1; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; font: inherit; font-size: 16px; }
.sp-help { margin: 0; color: var(--ink-soft); font-size: var(--text-xs); }
.sp-add { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; }
.sp-add input { flex: 1; min-width: 180px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.sp-add #spCode { flex: 0 0 120px; min-width: 0; letter-spacing: .3em; text-align: center; }
.sp-to { color: var(--ink-soft); font-size: var(--text-sm); }
.sp-msg { flex-basis: 100%; margin: 0; color: var(--ink-soft); font-size: var(--text-xs); }
.sp-msg:empty { display: none; }
.sender-mismatch { margin: 0 0 16px; padding: 12px 14px; border-left: 3px solid #d9733f; border-radius: 0 10px 10px 0; color: #8a4a22; background: #fbeee6; font-size: var(--text-sm); }
@media (max-width: 760px) { .verify-strip { grid-template-columns: 1fr; } .sp-row { flex-direction: column; } }

.input-shell[hidden] { display: none; }

/* Collapse control on the warm-up address list */
.wa-head { align-items: center; }
.wa-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--surface, #fff); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.wa-toggle:hover { border-color: var(--ember, #d9733f); }
.wa-toggle i, .wa-chev i { width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(-135deg) translate(-1px, -1px); transition: transform .15s; }
.wa-toggle[aria-expanded="false"] i, .wa-row:not(.is-open) .wa-chev i { transform: rotate(45deg) translate(-2px, -2px); }
.wa-row { grid-template-columns: 36px minmax(0, 1fr) auto auto auto auto; }
.wa-chev { display: inline-flex; align-items: center; gap: 7px; color: var(--ember-ink, #a34a22); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
#connectedWarmupStage.is-collapsed .warmup-address-list { margin-bottom: 0; }

/* Overview: every connected address with its own roadmap */
.address-board { position: relative; overflow: hidden; display: grid; gap: 16px; padding: 24px 26px; border-radius: 18px; color: #f4f1ec; background: radial-gradient(120% 140% at 100% 0%, #3a2418 0%, #1b1714 46%, #141210 100%); }
.address-board::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ember-ice-line); }
.ab-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ab-head h3 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; color: #fff; }
.ab-add { flex: none; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; color: #f4f1ec; font-size: 13px; font-weight: 600; text-decoration: none; }
.ab-add:hover { border-color: #e9a77f; color: #fff; }
.ab-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ab-item { border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; background: rgba(255, 255, 255, .03); transition: border-color .15s, background .15s; }
.ab-item:hover { border-color: rgba(233, 167, 127, .4); }
.ab-item.is-open { border-color: rgba(233, 167, 127, .55); background: rgba(255, 255, 255, .045); }
.ab-row { display: grid; grid-template-columns: 34px minmax(180px, 1.4fr) 70px 70px 90px minmax(160px, 1.3fr) 14px; align-items: center; gap: 18px; width: 100%; padding: 14px 16px; border: 0; color: inherit; background: none; font: inherit; text-align: left; cursor: pointer; }
.ab-row .provider-logo { width: 34px; height: 34px; border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .92); }
.ab-row .provider-logo.zoho { color: #c8202f; }
.ab-main { display: grid; gap: 3px; min-width: 0; }
.ab-main strong { overflow: hidden; color: #fff; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.ab-main small { color: #a9a39b; font-size: 12.5px; }
.ab-warm.run { color: #7fd8b0; } .ab-warm.pause { color: #e7c46b; } .ab-warm.idle { color: #a9a39b; } .ab-warm.bad { color: #f08a9c; }
.ab-cell, .ab-next { display: grid; gap: 3px; min-width: 0; }
.ab-cell small, .ab-next small { color: #8f897f; font-size: 11px; letter-spacing: .04em; }
.ab-cell b { color: #fff; font-size: 16px; font-variant-numeric: tabular-nums; }
.ab-score.good { color: #7fd8b0; } .ab-score.mid { color: #e9a77f; } .ab-score.bad { color: #f08a9c; } .ab-score.none { color: #8f897f; }
.ab-next b { overflow: hidden; color: #f4f1ec; font-size: 13.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ab-next.has-issue b { color: #f3b48f; }
.ab-chev { width: 8px; height: 8px; border: solid #a9a39b; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); transition: transform .15s; }
.ab-item.is-open .ab-chev { transform: rotate(-135deg); }
.ab-detail { padding: 0 16px 16px; }
.ab-detail .roadmap-card { padding: 20px 22px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; background: rgba(0, 0, 0, .22); }
.ab-detail .roadmap-card::before { display: none; }
.ab-detail .roadmap-card h3 { font-size: 20px; }
.ab-detail .rm-eyebrow { display: none; }
.rm-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.rm-actions .rm-cta { grid-column: auto; }
.rm-again { padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; color: #f4f1ec; background: none; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.rm-again:hover { border-color: #e9a77f; }
.rm-actions small { color: #8f897f; font-size: 12px; }
.ab-empty { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border: 1px dashed rgba(233, 167, 127, .4); border-radius: 14px; }
.ab-empty b { color: #fff; font-size: 15px; }
.ab-empty p { margin: 4px 0 0; color: #a9a39b; font-size: 13px; line-height: 1.5; }
.ab-empty .rm-cta { flex: none; }
.ab-wait { display: flex; align-items: center; gap: 10px; margin: 0; padding: 18px 4px; color: #c9c3bb; font-size: 14px; }
.ab-hint { margin: -4px 0 0; color: #8f897f; font-size: 12.5px; }
@media (max-width: 1100px) {
  .ab-row { grid-template-columns: 34px minmax(0, 1fr) auto auto auto 14px; }
  .ab-next { display: none; }
}
@media (max-width: 720px) {
  .address-board { padding: 20px 16px; }
  .ab-head { flex-direction: column; align-items: flex-start; }
  .ab-row { grid-template-columns: 34px minmax(0, 1fr) auto 14px; gap: 12px; }
  .ab-row .ab-cell:nth-of-type(3), .ab-row .ab-cell:nth-of-type(4) { display: none; }
  .ab-empty { flex-direction: column; align-items: flex-start; }
  .wa-row { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .wa-row .wa-stat, .wa-row .wa-status { display: none; }
}

/* Sender picker: connect a mailbox when codes can't be sent yet */
.sp-connect { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }

/* Smart connect: type the address, we suggest the provider; the list stays one click away */
.smart-connect { display: grid; gap: 14px; margin: 18px 0 6px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface, #fff); }
.sc-form { display: grid; gap: 8px; }
.sc-form label { color: var(--ink); font-size: 14px; font-weight: 650; }
.sc-row { display: flex; gap: 10px; }
.sc-row input { flex: 1; min-width: 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 15px; background: #fff; }
.sc-row input:focus { outline: 0; border-color: var(--ember, #d9733f); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ember, #d9733f) 14%, transparent); }
.sc-msg { margin: 0; color: #b23a50; font-size: var(--text-xs); }
.sc-msg:empty { display: none; }
.sc-slot:empty { display: none; }
.sc-result { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 6px 14px; padding: 16px; border-radius: 14px; background: color-mix(in srgb, var(--ember, #d9733f) 7%, #fff); border: 1px solid color-mix(in srgb, var(--ember, #d9733f) 30%, var(--line)); }
.sc-result .provider-logo { width: 40px; height: 40px; background: #fff; }
.sc-result .provider-logo.zoho { color: #c8202f; }
.sc-text { display: grid; gap: 4px; min-width: 0; }
.sc-text b { color: var(--ink); font-size: 15px; font-weight: 650; }
.sc-text em { font-style: normal; color: var(--ember-ink, #a34a22); }
.sc-text small { color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.sc-go { white-space: nowrap; }
.sc-wrong { grid-column: 2 / -1; justify-self: start; padding: 0; border: 0; background: none; color: var(--ink-soft); font: inherit; font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sc-wrong:hover { color: var(--ink); }
.sc-result.is-unknown { grid-template-columns: minmax(0, 1fr) auto; background: #f7f5f2; border-color: var(--line); }
.sc-result.is-unknown b { display: block; color: var(--ink); font-size: 14.5px; }
.sc-result.is-unknown small { color: var(--ink-soft); font-size: 13px; }
.sc-choose { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.sc-wait { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink-soft); font-size: 14px; }
.sc-spin { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--ember, #d9733f); border-radius: 50%; animation: sc-spin .8s linear infinite; }
@keyframes sc-spin { to { transform: rotate(360deg); } }
.sc-list-label { margin: 18px 0 0; color: var(--ink-soft); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.sc-list-label:empty { display: none; }
.provider-list.is-secondary { opacity: .72; transition: opacity .2s; }
.provider-list.is-secondary:hover, .provider-list.is-secondary:focus-within { opacity: 1; }
.provider-list.is-highlight { opacity: 1; outline: 2px solid var(--ember, #d9733f); outline-offset: 6px; border-radius: 8px; transition: outline-color .3s; }
@media (max-width: 720px) {
  .sc-row { flex-direction: column; }
  .sc-result { grid-template-columns: 40px minmax(0, 1fr); }
  .sc-go { grid-column: 1 / -1; justify-content: center; }
  .sc-wrong { grid-column: 1 / -1; }
}

/* Empty roadmap reminder slots must not leave a gap under the page title */
.roadmap-slot:empty { display: none; }
/* Overview: the address board already lists every mailbox, so drop the duplicate list below */
#homeWorkspace:has(.address-board) .home-mailboxes { display: none; }
#homeWorkspace:has(.address-board) .home-content-grid { grid-template-columns: minmax(0, 1fr); }

/* Fewer fields: sender name comes from the account name; the login is the address itself.
   Both stay in the form (submitted as before) and show again under the server settings. */
.connection-form-grid label:has(#mailboxDisplayName),
#gmailAppPasswordForm label:has(#gmailMailboxDisplayName) { display: none; }
#imapSmtpForm:not(:has(#serverDetails[open])) .connection-form-grid label:has(#mailboxUsername) { display: none; }

/* Smart connect inside the "add a mailbox" dialog */
.smart-connect.in-modal { margin: 0; padding: 22px 30px 18px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.mailbox-modal .sc-list-label { margin: 16px 30px 0; }
@media (max-width: 720px) { .smart-connect.in-modal { padding: 18px 20px 16px; } .mailbox-modal .sc-list-label { margin: 14px 20px 0; } }

/* Plans inside the app: no numbers until prices are decided */
.plan-price .plan-soon { font-size: 16px; font-weight: 500; color: #b5b0a8; letter-spacing: 0; }
