:root {
  --ink: #10243e;
  --ink-2: #42536b;
  --muted: #718096;
  --line: #dfe6ed;
  --paper: #ffffff;
  --canvas: #f5f7f8;
  --navy: #0b1d34;
  --navy-2: #112b4b;
  --blue: #2362e8;
  --blue-soft: #eaf1ff;
  --lime: #bbf23d;
  --green: #16845b;
  --green-soft: #e7f8f0;
  --amber: #a76208;
  --amber-soft: #fff5dc;
  --red: #c03945;
  --red-soft: #feebed;
  --radius: 14px;
  --shadow: 0 16px 45px rgba(15, 35, 60, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 15px/1.55 "DM Sans", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Manrope", sans-serif; line-height: 1.18; }
.hidden { display: none !important; }

.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 21px "Manrope", sans-serif; color: var(--navy); }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--navy); background: var(--lime); font-size: 18px; }
.brand-light { color: white; }
.brand em { margin-left: 2px; padding: 3px 6px; border: 1px solid #4e6178; border-radius: 5px; color: #9fb0c4; font: 700 9px "DM Sans"; letter-spacing: .1em; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 17px; border: 1px solid transparent; border-radius: 9px; font-weight: 700; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--blue); box-shadow: 0 7px 16px rgba(35, 98, 232, .2); }
.button-primary:hover { background: #174fc8; }
.button-secondary { color: var(--ink); background: white; border-color: #cfd9e3; }
.button-secondary:hover, .button-quiet:hover { border-color: #a8b6c6; background: #f8fafc; }
.button-quiet { border-color: transparent; color: var(--ink); }
.button-light { color: var(--navy); background: var(--lime); }
.button-large { min-height: 50px; padding: 12px 23px; }
.button-small { min-height: 34px; padding: 6px 11px; font-size: 12px; }
.button-block { width: 100%; }

.site-header { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; max-width: 1240px; margin: auto; padding: 24px 28px; }
.site-nav { display: flex; gap: 34px; color: var(--ink-2); font-weight: 600; }
.site-nav a:hover { color: var(--blue); }
.header-actions { display: flex; gap: 8px; }
.marketing { background: #fbfcfc; }
.hero { display: grid; grid-template-columns: 1.02fr .98fr; gap: 80px; align-items: center; min-height: 690px; max-width: 1240px; margin: auto; padding: 70px 28px 95px; }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pulse { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); }
.hero h1 { margin: 18px 0 24px; color: var(--navy); font-size: clamp(46px, 5.3vw, 72px); letter-spacing: -.055em; }
.hero h1 span { color: var(--blue); }
.hero-copy > p { max-width: 620px; color: var(--ink-2); font-size: 19px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; margin: 31px 0 15px; }
.hero-note { color: var(--muted); font-size: 13px; }
.product-preview { overflow: hidden; border: 1px solid #dbe4ed; border-radius: 20px; background: white; box-shadow: 0 35px 80px rgba(18, 49, 86, .16); transform: rotate(1deg); }
.preview-top { display: flex; align-items: center; gap: 7px; padding: 15px 18px; border-bottom: 1px solid var(--line); background: #f7f9fb; }
.preview-top span { width: 8px; height: 8px; border-radius: 50%; background: #cbd5df; }
.preview-top b { margin-left: 10px; color: var(--ink-2); font-size: 12px; }
.preview-body { padding: 25px; }
.preview-score { display: flex; align-items: center; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.preview-score p { margin: 3px 0 0; color: var(--muted); }
.score-ring { display: inline-grid; place-items: center; align-content: center; width: 82px; height: 82px; flex: 0 0 auto; border: 6px solid var(--lime); border-radius: 50%; background: white; }
.score-ring strong { font: 800 24px "Manrope"; line-height: 1; }
.score-ring small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.score-ring.small { width: 70px; height: 70px; border-width: 5px; }
.score-ring.small strong { font-size: 20px; }
.preview-message { margin-top: 22px; padding: 19px; border: 1px solid #e1e7ec; border-radius: 12px; background: #fcfdfd; }
.preview-message small { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.preview-message p { margin: 15px 0 0; color: var(--ink-2); }
mark { padding: 1px 4px; border-radius: 3px; background: #e6f6bd; color: inherit; }
.fact-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.fact-row span, .fact-chips span { padding: 5px 9px; border-radius: 99px; color: var(--green); background: var(--green-soft); font-size: 11px; font-weight: 700; }
.trust-strip { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 35px; padding: 25px; border-block: 1px solid var(--line); color: #68778a; background: white; }
.trust-strip span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.trust-strip strong { color: #8694a4; font-size: 14px; }
.section { max-width: 1240px; margin: auto; padding: 110px 28px; }
.section-heading { max-width: 690px; margin: 0 auto 55px; text-align: center; }
.section-heading.left { margin-left: 0; text-align: left; }
.section-heading h2 { margin: 13px 0 17px; color: var(--navy); font-size: clamp(34px, 4vw, 49px); letter-spacing: -.04em; }
.section-heading p { color: var(--muted); font-size: 17px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { min-height: 255px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: .2s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-card-accent { color: white; background: var(--navy); border-color: var(--navy); }
.feature-card h3 { margin: 22px 0 10px; font-size: 20px; }
.feature-card p { color: var(--muted); }
.feature-card-accent p { color: #b9c7d8; }
.feature-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 11px; color: var(--blue); background: var(--blue-soft); font-weight: 800; font-size: 12px; }
.feature-card-accent .feature-icon { color: var(--navy); background: var(--lime); }
.text-link { color: var(--lime); font-weight: 700; }
.workflow-section { max-width: none; padding-inline: max(28px, calc((100vw - 1184px) / 2)); color: white; background: var(--navy); }
.workflow-section .section-heading h2 { color: white; }
.workflow { display: flex; align-items: flex-start; }
.workflow-step { flex: 1; }
.workflow-step > span { color: var(--lime); font: 800 12px "Manrope"; }
.workflow-step h3 { margin: 13px 0 9px; font-size: 21px; }
.workflow-step p { color: #aebed0; }
.workflow-line { width: 65px; height: 1px; margin: 27px 16px 0; background: #38506b; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.price-card { position: relative; padding: 29px 25px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.price-card.popular { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.popular-label { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 11px; border-radius: 99px; color: white; background: var(--blue); font-size: 10px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.price-card h3 { margin-bottom: 18px; }
.price { font: 800 40px "Manrope"; letter-spacing: -.05em; }
.price > span { font-size: 18px; vertical-align: top; }
.price small { margin-left: 5px; color: var(--muted); font: 500 12px "DM Sans"; letter-spacing: 0; }
.price-card p { min-height: 47px; color: var(--muted); }
.price-card ul { min-height: 143px; padding: 0; list-style: none; }
.price-card li { margin: 8px 0; color: var(--ink-2); }
.price-card li::before { content: "✓"; margin-right: 8px; color: var(--green); font-weight: 800; }
.price-card .button { width: 100%; }
.pricing-footnote { margin: 28px 0 0; color: var(--muted); text-align: center; }
.final-cta { display: flex; align-items: center; justify-content: space-between; gap: 25px; max-width: 1184px; margin: 0 auto 90px; padding: 50px; border-radius: 20px; color: white; background: var(--blue); }
.final-cta .eyebrow { color: #ccdcff; }
.final-cta h2 { margin: 10px 0; font-size: 38px; }
.final-cta p { margin: 0; color: #d7e2ff; }
.site-footer { display: flex; align-items: center; justify-content: space-between; max-width: 1240px; margin: auto; padding: 35px 28px; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer > div { display: flex; gap: 22px; }

/* App shell */
.workspace { min-height: 100vh; background: var(--canvas); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; width: 250px; padding: 25px 16px; color: #cad5e2; background: var(--navy); }
.sidebar > .brand { padding: 0 10px 22px; }
.workspace-switcher, .admin-identity { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 13px; border: 1px solid #29425f; border-radius: 10px; background: #102741; }
.workspace-switcher > span, .admin-identity > span { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 8px; color: var(--navy); background: var(--lime); font-weight: 800; }
.workspace-switcher div, .admin-identity div { min-width: 0; }
.workspace-switcher strong, .admin-identity strong { display: block; overflow: hidden; color: white; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-switcher small, .admin-identity small { color: #8fa3b9; font-size: 10px; text-transform: capitalize; }
.side-nav { display: grid; gap: 3px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.side-nav a span { display: inline-grid; place-items: center; width: 21px; color: #91a5bd; font-size: 12px; }
.side-nav a:hover { color: white; background: #132e4d; }
.side-nav a.active { color: white; background: #1e4fa1; }
.side-nav a.active span { color: var(--lime); }
.sidebar-bottom { display: grid; gap: 10px; margin-top: auto; }
.mini-health, .security-note { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid #29425f; border-radius: 9px; }
.mini-health > span { width: 56px; height: 5px; overflow: hidden; border-radius: 9px; background: #334b66; }
.mini-health i { display: block; height: 100%; background: var(--lime); }
.mini-health strong, .security-note strong { display: block; color: white; font-size: 11px; }
.mini-health small, .security-note small { display: block; color: #8298b0; font-size: 9px; }
.security-note > span { color: var(--lime); }
.admin-link, .logout-button { display: block; width: 100%; padding: 8px 11px; color: #9fb0c4; background: none; border: 0; text-align: left; font-size: 11px; }
.admin-link:hover, .logout-button:hover { color: white; }
.workspace-main { min-height: 100vh; margin-left: 250px; }
.workspace-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; height: 75px; padding: 0 32px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(10px); }
.workspace-header > div:first-of-type { flex: 1; }
.workspace-header small { color: var(--muted); font-size: 10px; }
.workspace-header h1 { margin: 1px 0 0; font-size: 20px; }
.user-chip { display: flex; align-items: center; gap: 9px; }
.user-chip > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: white; background: var(--blue); font-weight: 800; }
.user-chip strong, .user-chip small { display: block; }
.user-chip strong { font-size: 12px; }
.menu-button { display: none; margin-right: 13px; border: 0; background: none; font-size: 20px; }
.workspace-content { max-width: 1440px; margin: auto; padding: 30px 32px 55px; }
.alert { margin-bottom: 16px; padding: 13px 16px; border: 1px solid; border-radius: 9px; transition: .3s; }
.alert-success { color: var(--green); border-color: #bfe8d6; background: var(--green-soft); }
.alert-error { color: var(--red); border-color: #f1c3c8; background: var(--red-soft); }
.alert-hide { opacity: 0; transform: translateY(-5px); }
.welcome-row, .page-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.welcome-row h2, .page-intro h2 { margin: 5px 0 4px; font-size: 27px; letter-spacing: -.03em; }
.welcome-row p, .page-intro p { margin: 0; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 17px; }
.metric-card { padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.metric-card > span { display: block; color: var(--ink-2); font-size: 12px; }
.metric-card > strong { display: block; margin: 8px 0 2px; font: 800 28px "Manrope"; letter-spacing: -.03em; }
.metric-card small { color: var(--muted); font-size: 11px; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; align-items: start; }
.domains-layout, .campaigns-layout { grid-template-columns: 1.4fr .6fr; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 2px 8px rgba(16,36,62,.02); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.panel-heading h3 { margin: 0 0 3px; font-size: 16px; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.panel-heading > a { color: var(--blue); font-size: 12px; font-weight: 700; }
.status-pill, .count-label, .safety-label { display: inline-block; padding: 4px 9px; border-radius: 99px; color: var(--blue); background: var(--blue-soft); font: 700 10px "DM Sans"; font-style: normal; text-transform: capitalize; white-space: nowrap; }
.status-verified, .status-active, .status-configured { color: var(--green); background: var(--green-soft); }
.status-suspended, .status-closed, .status-error { color: var(--red); background: var(--red-soft); }
.status-restricted, .status-review, .status-verifying { color: var(--amber); background: var(--amber-soft); }
.checklist a { display: flex; align-items: center; gap: 13px; padding: 16px 22px; border-bottom: 1px solid #edf0f3; }
.checklist a:last-child { border: 0; }
.checklist a > span { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #cbd6e1; border-radius: 50%; color: var(--muted); font-size: 11px; font-weight: 800; }
.checklist a > span.done { color: var(--green); border-color: #bde2d2; background: var(--green-soft); }
.checklist a div { flex: 1; }
.checklist strong, .checklist small { display: block; }
.checklist strong { font-size: 12px; }
.checklist small { color: var(--muted); font-size: 10px; }
.checklist b { color: var(--muted); }
.campaign-list a, .reputation-row, .integration-row { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #edf0f3; }
.campaign-list a:last-child, .reputation-row:last-child, .integration-row:last-child { border: 0; }
.campaign-list div, .reputation-row div, .integration-row div { min-width: 0; flex: 1; }
.campaign-list strong, .campaign-list small, .reputation-row strong, .reputation-row small, .integration-row strong, .integration-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.campaign-list strong, .reputation-row strong, .integration-row strong { font-size: 12px; }
.campaign-list small, .reputation-row small, .integration-row small { color: var(--muted); font-size: 10px; }
.campaign-list em { color: var(--muted); font-size: 10px; font-style: normal; text-transform: capitalize; }
.score-badge { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 8px; color: var(--green); background: var(--green-soft); font-size: 11px; font-weight: 800; }
.score-warning { color: var(--amber); background: var(--amber-soft); }
.empty-state { padding: 55px 25px; text-align: center; }
.empty-state.compact { padding: 30px 20px; }
.empty-state > div { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 12px; color: var(--blue); background: var(--blue-soft); font-weight: 800; font-size: 12px; }
.empty-state strong { display: block; margin-bottom: 4px; }
.empty-state p { max-width: 360px; margin: 0 auto; color: var(--muted); font-size: 12px; }
.empty-state a { display: inline-block; margin-top: 10px; color: var(--blue); font-size: 12px; font-weight: 700; }
.sticky-panel { position: sticky; top: 95px; }
.stack-form { display: grid; gap: 15px; padding: 22px; }
label { display: grid; gap: 6px; color: var(--ink-2); font-size: 11px; font-weight: 700; }
input, select, textarea { width: 100%; padding: 10px 12px; color: var(--ink); border: 1px solid #cfd9e3; border-radius: 8px; outline: none; background: white; font-size: 13px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.info-box, .warning-box { margin: 0 22px 22px; padding: 14px; border-radius: 9px; color: #36506c; background: #edf4fb; font-size: 11px; }
.warning-box { color: #71521b; background: var(--amber-soft); }
.info-box strong, .warning-box strong { display: block; margin-bottom: 3px; }
.info-box p, .warning-box p { margin: 0; }
.wide-info { max-width: 650px; margin: 17px 0; }
.domain-card { padding: 22px; border-bottom: 1px solid var(--line); }
.domain-card:last-child { border: 0; }
.domain-title { display: flex; justify-content: space-between; }
.domain-title > div:first-child { display: flex; align-items: center; gap: 9px; }
.health-number { font: 800 23px "Manrope"; }
.health-number small { color: var(--muted); font-size: 10px; }
.domain-card > p { color: var(--muted); font-size: 11px; }
.dns-table { margin: 14px 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.dns-table > div { display: grid; grid-template-columns: 65px 150px 1fr 55px; align-items: center; min-width: 0; border-bottom: 1px solid var(--line); }
.dns-table > div:last-child { border: 0; }
.dns-table span, .dns-table code, .dns-table button { overflow: hidden; padding: 9px; border: 0; border-right: 1px solid var(--line); background: white; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.dns-table span { color: var(--blue); font-weight: 800; }
.dns-table code { color: var(--ink-2); }
.dns-table button { color: var(--blue); border: 0; font-family: inherit; font-weight: 700; }
.campaign-table > a { display: grid; grid-template-columns: 40px 1fr 90px 60px; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.campaign-table > a:last-child { border: 0; }
.campaign-table strong, .campaign-table small { display: block; }
.campaign-table strong { font-size: 12px; }
.campaign-table small, .campaign-table span, .campaign-table em { color: var(--muted); font-size: 10px; font-style: normal; }
.form-row { display: grid; grid-template-columns: .6fr 1.4fr; gap: 13px; }
.ai-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 17px; align-items: start; }
.analysis-options { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; color: var(--muted); font-size: 10px; }
.analysis-options b { padding: 4px 8px; border-radius: 99px; color: var(--green); background: var(--green-soft); }
.consent-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); }
.consent-card span, .personal-consent > span, .consent-disclosure span { display: block; margin-bottom: 3px; color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.consent-card strong { display: block; font-size: 12px; }
.consent-card p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.consent-card > b { padding: 4px 8px; border-radius: 99px; color: var(--ink-2); background: var(--paper); font-size: 9px; }
.consent-card-action { display: grid; background: var(--blue-soft); border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); }
.consent-card-action .check-row { margin-top: 5px; color: var(--ink); }
.consent-card-ready { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 35%, var(--line)); }
.consent-card-ready > b { color: var(--green); }
.ai-privacy-panel { margin-top: 17px; }
.consent-disclosure { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid var(--line); }
.consent-disclosure > div { padding: 19px 21px; border-right: 1px solid var(--line); }
.consent-disclosure > div:last-child { border: 0; }
.consent-disclosure strong { display: block; color: var(--ink-2); font-size: 11px; line-height: 1.55; }
.consent-controls { display: grid; grid-template-columns: 1.15fr .85fr; gap: 0; }
.consent-form, .personal-consent { display: grid; gap: 13px; padding: 22px; }
.personal-consent { align-content: start; border-left: 1px solid var(--line); }
.personal-consent strong { font-size: 17px; }
.personal-consent p { color: var(--muted); font-size: 11px; }
.personal-consent form { margin-top: auto; }
.consent-footnote { padding: 12px 21px; color: var(--muted); border-top: 1px solid var(--line); background: var(--canvas); font-size: 10px; }
.ai-result { min-height: 490px; }
.result-scores { display: flex; justify-content: center; gap: 55px; padding: 25px; border-bottom: 1px solid var(--line); text-align: center; }
.result-scores > div > p { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.result-section { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.result-section h3 { font-size: 13px; }
.fact-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.warning-list { padding-left: 18px; color: var(--ink-2); font-size: 12px; }
.success-box { padding: 11px; color: var(--green); border-radius: 8px; background: var(--green-soft); font-size: 11px; font-weight: 700; }
.guardrail, .detail-list > div { display: flex; align-items: center; justify-content: space-between; padding: 15px 21px; border-bottom: 1px solid var(--line); }
.guardrail:last-child, .detail-list > div:last-child { border: 0; }
.guardrail strong, .guardrail small { display: block; }
.guardrail strong, .detail-list strong { font-size: 12px; }
.guardrail small, .detail-list span { color: var(--muted); font-size: 10px; }
.guardrail > span { color: var(--green); font-size: 11px; font-weight: 800; }
.billing-current { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 17px; padding: 27px; }
.billing-current h3 { margin: 8px 0 4px; }
.billing-current p { margin: 0; color: var(--muted); }
.payment-methods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.payment-methods span { padding: 4px 8px; border-radius: 99px; color: var(--blue); background: var(--blue-soft); font-size: 9px; font-weight: 700; }
.billing-notes { margin-top: 17px; }
.billing-note-body { padding: 20px 22px; color: var(--ink-2); font-size: 12px; }
.billing-note-body p { margin-bottom: 12px; }
.billing-note-body strong { color: var(--green); font-size: 10px; }
.mini-price-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; }
.mini-price-grid article { position: relative; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.mini-price-grid article.recommended { border-color: var(--blue); }
.mini-price-grid article > span { position: absolute; top: 11px; right: 11px; color: var(--blue); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.mini-price-grid h3 { margin-bottom: 12px; }
.mini-price-grid strong { font: 800 25px "Manrope"; }
.mini-price-grid small { color: var(--muted); font: 500 10px "DM Sans"; }
.mini-price-grid p { margin: 10px 0 0; color: var(--muted); font-size: 10px; }

/* Admin */
.admin-sidebar { background: #111820; }
.admin-sidebar .workspace-switcher, .admin-sidebar .admin-identity { background: #18222d; border-color: #2b3947; }
.admin-sidebar .side-nav a:hover { background: #1b2733; }
.admin-sidebar .side-nav a.active { color: var(--navy); background: var(--lime); }
.admin-sidebar .side-nav a.active span { color: var(--navy); }
.admin-header { border-bottom-color: #d7dee5; }
.admin-status { display: flex; align-items: center; gap: 7px; color: var(--green); font-size: 11px; font-weight: 700; }
.admin-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.admin-metrics .metric-card:first-child { color: white; background: var(--navy); border-color: var(--navy); }
.admin-metrics .metric-card:first-child small, .admin-metrics .metric-card:first-child > span { color: #aebdcd; }
.admin-org-list a { display: flex; align-items: center; gap: 11px; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.admin-org-list a:last-child { border: 0; }
.admin-org-list a > span, .integration-row > span, .avatar-small { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 8px; color: var(--blue); background: var(--blue-soft); font-size: 11px; font-weight: 800; font-style: normal; }
.admin-org-list a > div { flex: 1; }
.admin-org-list strong, .admin-org-list small { display: block; }
.admin-org-list strong { font-size: 12px; }
.admin-org-list small { color: var(--muted); font-size: 10px; }
.control-summary { padding: 5px 20px 15px; }
.control-summary > div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.success-text { color: var(--green); }
.danger-text { color: var(--red); }
.table-panel { overflow: visible; }
.data-table { overflow-x: auto; }
.table-head, .table-row { display: grid; align-items: center; gap: 12px; min-width: 850px; padding: 11px 18px; }
.table-head { color: var(--muted); border-bottom: 1px solid var(--line); background: #fafbfc; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.table-row { min-height: 58px; border-bottom: 1px solid var(--line); font-size: 11px; }
.table-row:last-child { border: 0; }
.org-table .table-head, .org-table .table-row { grid-template-columns: 2fr .45fr .55fr .7fr .8fr .9fr; }
.table-row > span:first-child { display: flex; align-items: center; gap: 10px; }
.table-row strong, .table-row small { display: block; }
.table-row small { color: var(--muted); font-size: 9px; }
.action-menu { position: relative; }
.action-menu summary { cursor: pointer; color: var(--blue); font-weight: 700; list-style: none; }
.action-menu form { position: absolute; z-index: 10; right: 0; display: grid; gap: 9px; width: 270px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow); }
.inline-error { margin: -4px 20px 12px 66px; color: var(--red); font-size: 10px; }
.settings-panel { overflow: hidden; }
.settings-section { display: grid; grid-template-columns: 280px 1fr; gap: 35px; padding: 26px; border-bottom: 1px solid var(--line); }
.settings-section h3 { margin-bottom: 5px; font-size: 15px; }
.settings-section p { color: var(--muted); font-size: 11px; }
.settings-fields { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.settings-save { display: grid; grid-template-columns: 1fr 220px; gap: 18px; align-items: end; padding: 25px; background: #fafbfc; }
.plan-table .table-head, .plan-table .table-row { grid-template-columns: 1.2fr .65fr 1fr .6fr .7fr .8fr .6fr; }
.audit-table .table-head, .audit-table .table-row { grid-template-columns: 1.05fr 1.2fr .55fr 1.35fr .9fr 1.2fr; }

/* Auth and errors */
.auth-page { display: grid; min-height: 100vh; grid-template-columns: 1fr 1fr; background: white; }
.auth-aside { display: flex; flex-direction: column; justify-content: space-between; padding: 50px; color: white; background: var(--navy); }
.auth-aside h1 { max-width: 570px; margin-top: auto; font-size: 48px; letter-spacing: -.045em; }
.auth-aside p { max-width: 550px; color: #aebed0; font-size: 16px; }
.auth-main { display: grid; place-items: center; padding: 40px; }
.auth-card { width: min(440px, 100%); }
.auth-card h2 { margin: 22px 0 7px; font-size: 30px; }
.auth-card > p { color: var(--muted); }
.auth-card form { display: grid; gap: 14px; margin-top: 25px; }
.check-row { display: flex; align-items: flex-start; gap: 9px; font-weight: 500; }
.check-row input { width: auto; margin-top: 3px; }
.auth-card .button { margin-top: 5px; }
.auth-switch { margin-top: 20px; text-align: center; font-size: 12px; }
.auth-switch a { color: var(--blue); font-weight: 700; }
.auth-proof { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 35px; color: #9fb0c4; font-size: 11px; }
.error-page { display: grid; place-items: center; min-height: 100vh; padding: 25px; background: var(--canvas); }
.error-card { max-width: 560px; padding: 42px; border: 1px solid var(--line); border-radius: var(--radius); background: white; text-align: center; box-shadow: var(--shadow); }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; gap: 50px; padding-top: 45px; }
  .product-preview { max-width: 700px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid, .mini-price-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .domains-layout, .campaigns-layout, .ai-layout { grid-template-columns: 1fr; }
  .sticky-panel { position: static; }
  .settings-section { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 760px) {
  .site-nav { display: none; }
  .site-header { padding: 18px; }
  .header-actions .button-quiet { display: none; }
  .hero { min-height: auto; padding: 50px 18px 70px; }
  .hero h1 { font-size: 44px; }
  .hero-copy > p { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .preview-body { padding: 17px; }
  .fact-row { display: none; }
  .trust-strip { gap: 20px; }
  .section { padding: 75px 18px; }
  .feature-grid, .pricing-grid, .two-column, .mini-price-grid { grid-template-columns: 1fr; }
  .workflow { display: grid; gap: 23px; }
  .workflow-line { display: none; }
  .final-cta { align-items: flex-start; flex-direction: column; margin: 0 18px 60px; padding: 32px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 20px; padding: 30px 18px; }
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; }
  .sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-open::after { content: ""; position: fixed; inset: 0; z-index: 25; background: rgba(3,12,23,.5); }
  .workspace-main { margin-left: 0; }
  .workspace-header { padding: 0 17px; }
  .menu-button { display: block; }
  .user-chip div { display: none; }
  .workspace-content { padding: 23px 16px 45px; }
  .welcome-row, .page-intro { align-items: flex-start; flex-direction: column; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { padding: 17px; }
  .dns-table { overflow-x: auto; }
  .dns-table > div { min-width: 650px; }
  .form-row, .settings-fields, .settings-save { grid-template-columns: 1fr; }
  .billing-current { align-items: flex-start; flex-direction: column; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding: 30px 18px; }
  .admin-status { display: none; }
}

@media (max-width: 440px) {
  .metric-grid { grid-template-columns: 1fr; }
  .campaign-table > a { grid-template-columns: 38px 1fr; }
  .campaign-table > a > span:nth-last-child(2), .campaign-table > a > em { display: none; }
  .result-scores { gap: 25px; }
}

/* ReliSend 2.0 — light and dark product system */
:root {
  --ink: #18171d;
  --ink-2: #575560;
  --muted: #817e89;
  --line: #e4e0e6;
  --paper: #fffefa;
  --canvas: #f5f2ee;
  --navy: #111117;
  --navy-2: #1b1a24;
  --blue: #6657e8;
  --blue-soft: #eeebff;
  --lime: #ff765f;
  --green: #16876a;
  --green-soft: #e6f6f0;
  --amber: #a76614;
  --amber-soft: #fff1d9;
  --red: #c3404d;
  --red-soft: #ffeaed;
  --radius: 18px;
  --shadow: 0 22px 70px rgba(40, 31, 55, .1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f3f1f7;
  --ink-2: #b7b2c0;
  --muted: #87818f;
  --line: #2a2832;
  --paper: #15141b;
  --canvas: #0d0c11;
  --navy: #09090d;
  --navy-2: #17151f;
  --blue: #9186ff;
  --blue-soft: #292342;
  --lime: #ff806b;
  --green: #5ed8ad;
  --green-soft: #17382e;
  --amber: #f0ba62;
  --amber-soft: #3d301b;
  --red: #ff7f8c;
  --red-soft: #3e2027;
  --shadow: 0 25px 80px rgba(0, 0, 0, .34);
}

body { background: var(--canvas); transition: color .2s ease, background-color .2s ease; }
.marketing { position: relative; overflow-x: hidden; background: var(--canvas); }
.marketing::before { content: ""; position: absolute; top: -340px; right: -220px; width: 740px; height: 740px; border-radius: 50%; background: radial-gradient(circle, rgba(102,87,232,.18), rgba(102,87,232,0) 67%); pointer-events: none; }
.brand { color: var(--ink); letter-spacing: -.045em; }
.brand-mark { width: 35px; height: 35px; border-radius: 11px; color: transparent; background: url("/assets/brand/relisend-mark-512.png?v=3") center/cover no-repeat; box-shadow: 0 8px 20px rgba(102,87,232,.25); font-size: 0; }
.brand-mark + span { position: relative; }
.brand-mark + span::after { content: ""; position: absolute; right: -8px; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.button { min-height: 44px; border-radius: 12px; }
.button-primary { background: var(--ink); box-shadow: none; }
.button-primary:hover { color: white; background: var(--blue); }
.button-secondary { color: var(--ink); border-color: var(--line); background: var(--paper); }
.button-quiet { color: var(--ink); }
.button-light { color: #17151e; background: white; }
.theme-toggle { position: relative; display: inline-flex; align-items: center; justify-content: space-between; width: 55px; height: 31px; margin-right: 6px; padding: 3px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: var(--paper); }
.theme-toggle::after { content: ""; position: absolute; left: 3px; width: 23px; height: 23px; border-radius: 50%; background: var(--ink); transition: transform .22s ease; }
.theme-toggle span { position: relative; z-index: 1; display: grid; place-items: center; width: 23px; height: 23px; font-size: 12px; }
.theme-sun { color: var(--paper); }
.theme-moon { color: var(--muted); }
html[data-theme="dark"] .theme-toggle::after { transform: translateX(24px); }
html[data-theme="dark"] .theme-sun { color: var(--muted); }
html[data-theme="dark"] .theme-moon { color: var(--paper); }

.site-header { max-width: 1320px; padding: 23px 34px; }
.site-header::after { content: ""; position: absolute; inset: auto 34px 0; height: 1px; background: var(--line); }
.site-nav { gap: 30px; color: var(--muted); font-size: 13px; }
.hero { min-height: 690px; max-width: 1320px; grid-template-columns: .92fr 1.08fr; gap: 70px; padding: 86px 34px 110px; }
.hero-copy { position: relative; z-index: 2; }
.hero .eyebrow { display: inline-flex; align-items: center; padding: 7px 11px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-2); background: color-mix(in srgb, var(--paper) 80%, transparent); letter-spacing: .07em; }
.hero h1 { max-width: 690px; margin: 23px 0 24px; font-size: clamp(48px, 5.3vw, 76px); font-weight: 750; line-height: .99; letter-spacing: -.067em; }
.hero h1 span { color: var(--blue); }
.hero-copy > p { max-width: 570px; color: var(--ink-2); font-size: 18px; line-height: 1.72; }
.hero-actions { margin-top: 34px; }
.hero-note { color: var(--muted); }
.product-preview { position: relative; border-color: color-mix(in srgb, var(--line) 65%, transparent); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); transform: none; }
.product-preview::before { content: "LIVE PREFLIGHT"; position: absolute; z-index: 3; top: 18px; right: 19px; padding: 5px 8px; border-radius: 6px; color: #18171d; background: #b9f078; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.preview-top { padding: 18px 20px; border-color: var(--line); background: color-mix(in srgb, var(--paper) 75%, var(--canvas)); }
.preview-body { padding: 31px; }
.preview-score { border-color: var(--line); }
.score-ring { border-color: var(--blue); background: var(--paper); }
.preview-message { border-color: var(--line); background: color-mix(in srgb, var(--paper) 70%, var(--canvas)); }
.preview-message p, .preview-score p { color: var(--ink-2); }
.trust-strip { position: relative; border-color: var(--line); color: var(--muted); background: var(--paper); }
.trust-strip::before { content: "REPUTATION IS A PRODUCT FEATURE"; position: absolute; top: -11px; padding: 3px 11px; border: 1px solid var(--line); border-radius: 99px; background: var(--canvas); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.section-heading h2 { color: var(--ink); }
.feature-card, .price-card { border-color: var(--line); background: var(--paper); }
.feature-card { min-height: 270px; padding: 31px; }
.feature-card-accent { color: white; border-color: #24212e; background: linear-gradient(145deg, #18161f, #272239); }
.feature-icon { color: var(--blue); background: var(--blue-soft); }
.feature-card-accent .feature-icon { color: white; background: var(--blue); }
.feature-card p, .price-card p, .price-card li { color: var(--ink-2); }
.workflow-section { background: #121118; }
.pricing-section { max-width: 1280px; }
.price-card.popular { border-color: var(--blue); }
.popular-label { background: var(--blue); }
.final-cta { max-width: 1210px; border: 1px solid #776af0; background: linear-gradient(115deg, #5e4ee0, #8173f2 60%, #ff806b 160%); box-shadow: 0 28px 75px rgba(86,70,215,.24); }
.site-footer { border-color: var(--line); }

/* Product workspace */
.workspace { background: var(--canvas); }
.sidebar { width: 262px; padding: 24px 17px; background: #0d0d12; border-right: 1px solid #27252e; }
.workspace-main { margin-left: 262px; }
.workspace-switcher, .admin-identity { border-color: #2a2833; background: #17161d; }
.workspace-switcher > span, .admin-identity > span { color: white; background: var(--blue); }
.side-nav { gap: 5px; }
.side-nav a { padding: 11px 12px; border-radius: 10px; color: #9d98a7; }
.side-nav a:hover { background: #191821; }
.side-nav a.active { color: white; background: #282438; box-shadow: inset 3px 0 var(--blue); }
.side-nav a.active span { color: #9d92ff; }
.mini-health, .security-note { border-color: #292731; background: #15141b; }
.workspace-header { height: 78px; padding: 0 34px; border-color: var(--line); background: color-mix(in srgb, var(--paper) 88%, transparent); }
.workspace-header > div:first-of-type { flex: 1; }
.workspace-header .theme-toggle { margin-right: 16px; }
.workspace-content { padding: 34px; }
.welcome-row h2, .page-intro h2 { font-size: 30px; }
.metric-grid { gap: 16px; }
.metric-card, .panel { border-color: var(--line); background: var(--paper); box-shadow: none; }
.metric-card { position: relative; overflow: hidden; min-height: 134px; padding: 23px; }
.metric-card::after { content: ""; position: absolute; right: -30px; bottom: -45px; width: 95px; height: 95px; border: 18px solid color-mix(in srgb, var(--blue) 12%, transparent); border-radius: 50%; }
.metric-card > strong { font-size: 31px; }
.panel-heading { border-color: var(--line); }
.checklist a, .campaign-list a, .reputation-row, .integration-row, .domain-card, .campaign-table > a, .guardrail, .detail-list > div { border-color: var(--line); }
.checklist a:hover, .campaign-list a:hover, .campaign-table > a:hover { background: color-mix(in srgb, var(--blue-soft) 35%, transparent); }
input, select, textarea { color: var(--ink); border-color: var(--line); background: var(--canvas); }
.dns-table { border-color: var(--line); }
.dns-table > div, .dns-table span, .dns-table code { border-color: var(--line); background: var(--paper); }
.dns-table button { color: var(--blue); background: var(--paper); }
.info-box { color: var(--ink-2); background: var(--blue-soft); }
.warning-box { color: var(--amber); background: var(--amber-soft); }
.empty-state p, .panel-heading p { color: var(--muted); }
.user-chip > span { background: var(--blue); }
.table-head { color: var(--muted); border-color: var(--line); background: var(--canvas); }
.table-row { border-color: var(--line); }
.action-menu form { border-color: var(--line); background: var(--paper); }
.settings-save { background: var(--canvas); }
.admin-sidebar { background: #09090d; }
.admin-sidebar .side-nav a.active { color: white; background: #282438; }
.admin-sidebar .side-nav a.active span { color: #9d92ff; }
.admin-metrics .metric-card:first-child { background: linear-gradient(145deg, #1e1a2b, #302852); border-color: #3b3459; }
.auth-page { color: var(--ink); background: var(--paper); }
.auth-aside { background: radial-gradient(circle at 20% 15%, #332b64, transparent 36%), linear-gradient(145deg, #0e0d13, #1a1723); }
.auth-main { background: var(--paper); }
.auth-card-top { display: flex; align-items: center; justify-content: space-between; }
.auth-card .theme-toggle { margin: 0; }
.error-card { border-color: var(--line); background: var(--paper); }

html[data-theme="dark"] .button-primary { color: #17151e; background: #f4f1f8; }
html[data-theme="dark"] .button-primary:hover { color: white; background: var(--blue); }
html[data-theme="dark"] .button-secondary { background: #1b1921; }
html[data-theme="dark"] .marketing::before { background: radial-gradient(circle, rgba(133,116,255,.2), rgba(102,87,232,0) 67%); }
html[data-theme="dark"] .feature-card-accent { border-color: #4c4269; background: linear-gradient(145deg, #29243a, #17151f); }
html[data-theme="dark"] .price-card.popular { box-shadow: 0 25px 70px rgba(0,0,0,.35); }
html[data-theme="dark"] mark { background: #35451e; color: #dfffa7; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; }
  .product-preview { max-width: 790px; }
}

@media (max-width: 760px) {
  .site-header { padding: 17px 18px; }
  .site-header::after { inset-inline: 18px; }
  .header-actions { align-items: center; }
  .header-actions .theme-toggle { display: inline-flex; }
  .hero { padding: 58px 18px 75px; }
  .hero h1 { font-size: clamp(42px, 13vw, 58px); }
  .hero .eyebrow { font-size: 9px; }
  .product-preview { border-radius: 18px; }
  .preview-score { align-items: flex-start; }
  .trust-strip::before { display: none; }
  .sidebar { width: 262px; }
  .workspace-main { margin-left: 0; }
  .workspace-header { padding: 0 16px; }
  .workspace-header .theme-toggle { margin-right: 9px; }
  .workspace-content { padding: 24px 16px 45px; }
  .consent-disclosure, .consent-controls { grid-template-columns: 1fr; }
  .consent-disclosure > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .personal-consent { border-left: 0; border-top: 1px solid var(--line); }
}

/* ReliSend Mail */
.mail-app { min-height: 100vh; background: var(--bg); color: var(--text); overflow: hidden; }
.mail-topbar { height: 74px; display: grid; grid-template-columns: 245px minmax(260px, 680px) 1fr; align-items: center; gap: 24px; padding: 0 24px; border-bottom: 1px solid var(--line); background: var(--surface); }
.mail-topbar .brand { color: var(--text); }
.mail-topbar .brand em { font-size: .62rem; font-style: normal; letter-spacing: .1em; border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; color: var(--muted); }
.mail-search { height: 44px; display: flex; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 13px; padding: 0 15px; background: var(--surface-2); transition: .2s ease; }
.mail-search:focus-within { border-color: var(--purple); box-shadow: 0 0 0 3px color-mix(in srgb, var(--purple) 14%, transparent); }
.mail-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; }
.mail-search span { color: var(--muted); font-size: 1.2rem; }
.mail-search kbd { min-width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--surface); font: 700 .68rem/1 inherit; }
.mail-top-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.mail-top-actions .user-chip { max-width: 170px; }
.mail-shell { display: grid; grid-template-columns: 245px minmax(0, 1fr); height: calc(100vh - 74px); }
.mail-sidebar { padding: 22px 14px 18px; border-right: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; min-height: 0; }
.mail-compose-button { width: 100%; justify-content: center; margin-bottom: 20px; box-shadow: 0 8px 24px color-mix(in srgb, var(--purple) 20%, transparent); }
.mail-account-picker { padding: 0 8px 16px; border-bottom: 1px solid var(--line); }
.mail-account-picker label { color: var(--muted); font-size: .7rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.mail-account-picker select { width: 100%; margin-top: 7px; background: transparent; border: 0; color: var(--text); font-weight: 700; padding: 0; outline: 0; }
.mail-account-picker strong, .mail-account-picker small { display: block; }
.mail-account-picker small { color: var(--muted); margin-top: 6px; font-size: .68rem; }
.mail-folder-nav { display: grid; gap: 3px; margin-top: 16px; overflow: auto; }
.mail-folder-nav a, .mail-sidebar-bottom a { min-height: 42px; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; padding: 0 12px; border-radius: 10px; color: var(--muted); text-decoration: none; }
.mail-folder-nav a:hover, .mail-folder-nav a.active, .mail-sidebar-bottom a:hover, .mail-sidebar-bottom a.active { background: var(--purple-soft); color: var(--text); }
.mail-folder-nav a.active { color: var(--purple); }
.mail-folder-nav b { font-size: .86rem; }
.mail-folder-nav em { min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 6px; border-radius: 20px; background: var(--purple); color: white; font-size: .68rem; font-style: normal; }
.mail-sidebar-bottom { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.mail-sidebar-bottom a { display: flex; }
.mail-sidebar-bottom small { display: block; padding: 10px 12px 0; color: var(--muted); }
.mail-main { min-width: 0; min-height: 0; overflow: auto; background: var(--bg); }
.mail-main > .alert { margin: 18px 24px 0; }
.mail-onboarding { min-height: 100%; display: grid; place-items: center; align-content: center; text-align: center; padding: 50px; }
.mail-onboarding-art { width: 88px; height: 88px; display: grid; place-items: center; border-radius: 27px; margin-bottom: 24px; color: white; background: linear-gradient(145deg, var(--purple), #4f46e5); box-shadow: 0 20px 50px color-mix(in srgb, var(--purple) 24%, transparent); font-size: 2.2rem; font-weight: 850; }
.mail-onboarding h1 { max-width: 650px; margin: 10px 0 12px; font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.05em; }
.mail-onboarding p { max-width: 650px; color: var(--muted); font-size: 1.05rem; line-height: 1.7; margin: 0 0 25px; }
.mail-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 34px 36px 25px; }
.mail-page-heading h1, .mail-list-heading h1 { margin: 4px 0; letter-spacing: -.035em; }
.mail-page-heading p, .mail-list-heading p { margin: 0; color: var(--muted); }
.mail-settings-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; padding: 0 36px 50px; align-items: start; }
.mail-compose-panel { margin: 0 36px 45px; max-width: 980px; }
.mail-compose-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr); gap: 20px; padding: 0 36px 50px; align-items: start; }
.mail-compose-grid .mail-compose-panel { margin: 0; max-width: none; }
.mail-compose-grid .mail-composer textarea { height: clamp(180px, 27vh, 320px); min-height: 180px; }
.mail-composer > label { min-height: 56px; display: grid; grid-template-columns: 82px 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.mail-composer > label span { color: var(--muted); font-size: .82rem; font-weight: 750; }
.mail-composer input, .mail-composer textarea, .mail-composer select { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; }
.mail-composer textarea { resize: vertical; padding: 22px 0; line-height: 1.7; }
.mail-compose-footer { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 -2px -2px; padding: 16px 2px 2px; border-top: 1px solid var(--line); background: linear-gradient(to bottom, color-mix(in srgb, var(--surface) 94%, transparent), var(--surface) 24%); backdrop-filter: blur(12px); }
.mail-compose-footer > div { display: flex; gap: 10px; }
.mail-compose-footer small { color: var(--muted); }
.mail-list-layout { min-height: 100%; display: grid; grid-template-columns: minmax(360px, .78fr) minmax(480px, 1.22fr); }
.mail-list-layout.has-reader { grid-template-columns: minmax(360px, .78fr) minmax(480px, 1.22fr); }
.mail-list-pane { min-width: 0; background: var(--surface); }
.mail-list-pane { border-right: 1px solid var(--line); }
.mail-list-heading { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.mail-list-heading .eyebrow { margin-bottom: 3px; font-size: .62rem; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.mail-icon-button { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--purple), #4f46e5); color: white; text-decoration: none; font-size: 1.2rem; box-shadow: 0 8px 22px color-mix(in srgb, var(--purple) 22%, transparent); }
.mail-message-list > a { min-height: 96px; display: grid; grid-template-columns: 40px minmax(0, 1fr) 16px; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; transition: .15s ease; position: relative; }
.mail-message-list > a:hover, .mail-message-list > a.selected { background: var(--purple-soft); }
.mail-message-list > a.unread { box-shadow: inset 3px 0 var(--purple); }
.mail-message-list > a > div { min-width: 0; }
.mail-message-list > a > div > div { display: flex; justify-content: space-between; gap: 10px; }
.mail-message-list strong, .mail-message-list b, .mail-message-list p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-message-list strong { font-size: .84rem; }
.mail-message-list b { display: block; margin-top: 4px; font-size: .88rem; }
.mail-message-list p { margin: 5px 0 0; color: var(--muted); font-size: .8rem; }
.mail-message-list time { color: var(--muted); font-size: .7rem; white-space: nowrap; }
.mail-message-list em { color: #f59e0b; font-style: normal; }
.mail-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: white; background: linear-gradient(145deg, var(--purple), #4f46e5); font-weight: 850; }
.mail-reader { min-width: 0; padding: 24px 34px 60px; background: var(--bg); }
.mail-reader-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.mail-reader-actions form { margin: 0; }
.mail-reader-actions a, .mail-reader-actions button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: .72rem; font-weight: 750; text-decoration: none; cursor: pointer; transition: .15s ease; }
.mail-reader-actions a:hover, .mail-reader-actions button:hover { border-color: var(--purple); background: var(--purple-soft); color: var(--purple); }
.mail-reader-actions span { font-size: .95rem; line-height: 1; }
.mail-reader-actions .mail-reader-back { margin-right: 4px; }
.mail-reader-actions button.is-danger:hover { border-color: #ef4444; background: color-mix(in srgb, #ef4444 10%, var(--surface)); color: #dc2626; }
.mail-reader h2 { margin: 0 0 22px; font-size: clamp(1.55rem, 3vw, 2.35rem); letter-spacing: -.04em; }
.mail-sender { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.mail-sender strong, .mail-sender small { display: block; }
.mail-sender small, .mail-sender time { color: var(--muted); font-size: .76rem; }
.mail-body { min-height: 250px; padding: 30px 0; font-size: .98rem; line-height: 1.8; white-space: normal; overflow-wrap: anywhere; }
.mail-reply-actions { display: flex; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.mail-reader-empty { min-width: 0; display: grid; place-items: center; align-content: center; padding: 50px; text-align: center; background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--purple-soft) 65%, transparent), transparent 34%), var(--bg); }
.mail-reader-empty-art { width: 116px; height: 92px; position: relative; display: grid; place-items: center; margin-bottom: 25px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 20px 55px color-mix(in srgb, #000 12%, transparent); }
.mail-reader-empty-art > span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(145deg, var(--purple), #4f46e5); color: white; font-size: 1.2rem; font-weight: 900; transform: rotate(-5deg); }
.mail-reader-empty-art i { position: absolute; width: 34px; height: 3px; right: -20px; top: 27px; border-radius: 4px; background: var(--purple); opacity: .5; }
.mail-reader-empty-art b { position: absolute; width: 28px; height: 28px; right: -10px; bottom: -9px; display: grid; place-items: center; border-radius: 50%; background: #10b981; color: white; border: 4px solid var(--bg); font-size: .7rem; }
.mail-reader-empty h2 { margin: 0 0 8px; letter-spacing: -.035em; }
.mail-reader-empty > p { max-width: 440px; margin: 0; color: var(--muted); line-height: 1.6; }
.mail-reader-empty > div:last-child { display: grid; grid-template-columns: 20px auto; gap: 8px 5px; margin-top: 24px; text-align: left; color: var(--muted); }
.mail-reader-empty > div:last-child span { color: #10b981; font-weight: 850; }
.button-ai { background: linear-gradient(135deg, #7c3aed, #4f46e5); color: white; border-color: transparent; }
.button-ai:hover { color: white; filter: brightness(1.08); }
.mail-ai-panel { position: sticky; top: 20px; overflow: hidden; }
.mail-ai-heading { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.mail-ai-heading > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, #7c3aed, #4f46e5); color: white; font-size: .78rem; font-weight: 850; }
.mail-ai-heading h3, .mail-ai-heading p { margin: 0; }
.mail-ai-heading p { color: var(--muted); font-size: .76rem; margin-top: 3px; }
.mail-ai-heading em { color: var(--purple); background: var(--purple-soft); padding: 5px 8px; border-radius: 20px; font-size: .65rem; font-style: normal; font-weight: 800; text-transform: uppercase; }
.mail-ai-empty { display: grid; place-items: center; text-align: center; padding: 38px 15px 22px; }
.mail-ai-empty > div { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 17px; background: var(--purple-soft); color: var(--purple); font-size: 1.35rem; }
.mail-ai-empty p { margin: 8px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.mail-ai-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 0; }
.mail-ai-scores > div { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.mail-ai-scores strong, .mail-ai-scores span { display: block; }
.mail-ai-scores strong { font-size: 1.7rem; letter-spacing: -.04em; color: var(--purple); }
.mail-ai-scores span { margin-top: 3px; color: var(--muted); font-size: .7rem; font-weight: 700; }
.mail-ai-section { padding: 16px 0; border-top: 1px solid var(--line); }
.mail-ai-section h4 { margin: 0 0 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.mail-ai-suggestion { max-height: 310px; overflow: auto; padding: 15px; margin: 0 0 15px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); }
.mail-ai-suggestion span, .mail-ai-suggestion strong { display: block; }
.mail-ai-suggestion span { margin: 10px 0 5px; color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.mail-ai-suggestion span:first-child { margin-top: 0; }
.mail-ai-suggestion p { font-size: .82rem; line-height: 1.65; }
.mail-ai-notice { margin: 12px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }

@media (max-width: 980px) {
  .mail-topbar { grid-template-columns: auto 1fr auto; }
  .mail-topbar .user-chip, .mail-top-actions > .button { display: none; }
  .mail-settings-grid { grid-template-columns: 1fr; }
  .mail-compose-grid { grid-template-columns: 1fr; }
  .mail-ai-panel { position: static; }
  .mail-list-layout, .mail-list-layout.has-reader { grid-template-columns: 1fr; }
  .mail-list-layout.has-reader .mail-list-pane { display: none; }
  .mail-reader-empty { display: none; }
  .mail-list-pane { border-right: 0; }
}
@media (max-width: 720px) {
  .mail-topbar { height: auto; min-height: 70px; grid-template-columns: 1fr auto; padding: 12px 14px; gap: 10px; }
  .mail-search { grid-column: 1 / -1; grid-row: 2; }
  .mail-shell { height: calc(100vh - 126px); grid-template-columns: 72px minmax(0,1fr); }
  .mail-sidebar { padding: 14px 9px; }
  .mail-compose-button { width: 48px; height: 48px; padding: 0; overflow: hidden; font-size: 0; }
  .mail-account-picker, .mail-folder-nav b, .mail-folder-nav em, .mail-sidebar-bottom small, .mail-sidebar-bottom a { display: none; }
  .mail-folder-nav a { grid-template-columns: 1fr; place-items: center; padding: 0; }
  .mail-page-heading { padding: 24px 18px 18px; }
  .mail-settings-grid { padding: 0 18px 35px; }
  .mail-compose-panel { margin: 0 18px 35px; }
  .mail-compose-grid { padding: 0 18px 35px; }
  .mail-compose-grid .mail-compose-panel { margin: 0; }
  .mail-list-layout { grid-template-columns: minmax(0,1fr); }
  .mail-list-heading { padding: 15px 16px; }
  .mail-message-list > a { padding: 16px 14px; grid-template-columns: 38px minmax(0,1fr); }
  .mail-message-list > a > em { display: none; }
  .mail-reader { padding: 18px 18px 45px; }
  .mail-sender { grid-template-columns: 40px 1fr; }
  .mail-sender time { grid-column: 2; }
  .mail-compose-footer { align-items: flex-start; flex-direction: column; }
  .mail-compose-footer { position: static; background: transparent; backdrop-filter: none; }
}

/* Mail product polish v2 */
.mail-app {
  --bg: var(--canvas);
  --text: var(--ink);
  --surface: var(--paper);
  --surface-2: color-mix(in srgb, var(--paper) 72%, var(--canvas));
  --purple: var(--blue);
  --purple-soft: var(--blue-soft);
  background: var(--canvas);
}
.mail-topbar {
  height: 68px;
  grid-template-columns: 258px minmax(320px, 720px) 1fr;
  gap: 20px;
  padding: 0 20px;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  box-shadow: 0 1px 0 var(--line);
}
.mail-topbar .brand { font-size: 20px; }
.mail-topbar .brand-mark { width: 36px; height: 36px; }
.mail-topbar .brand em { border-color: var(--line); color: var(--muted); background: var(--canvas); }
.mail-search {
  height: 42px;
  max-width: 680px;
  border-color: var(--line);
  background: var(--canvas);
}
.mail-search:hover { border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); }
.mail-search input::placeholder { color: color-mix(in srgb, var(--muted) 82%, transparent); }
.mail-shell { grid-template-columns: 258px minmax(0,1fr); height: calc(100vh - 68px); }
.mail-sidebar {
  padding: 18px 14px 16px;
  background: color-mix(in srgb, var(--paper) 96%, var(--canvas));
}
.mail-compose-button {
  min-height: 48px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, #6f5cf3, #5546db);
  box-shadow: 0 10px 24px rgba(102,87,232,.22);
}
.mail-compose-button:hover { color: white; background: linear-gradient(135deg, #7967fb, #5d4ee6); }
.mail-account-picker { padding: 2px 10px 17px; }
.mail-account-picker label { color: var(--muted); font-size: .64rem; }
.mail-account-picker select { margin-top: 8px; font-size: .79rem; }
.mail-folder-nav { gap: 4px; }
.mail-folder-nav a {
  min-height: 43px;
  grid-template-columns: 23px 1fr auto;
  padding: 0 11px;
  border: 1px solid transparent;
  color: var(--ink-2);
}
.mail-folder-nav a svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mail-folder-nav a:hover { border-color: var(--line); background: var(--paper); }
.mail-folder-nav a.active {
  border-color: color-mix(in srgb, var(--blue) 18%, var(--line));
  color: var(--blue);
  background: var(--blue-soft);
  box-shadow: inset 3px 0 var(--blue);
}
.mail-folder-nav b { font-size: .83rem; font-weight: 720; }
.mail-folder-nav em { min-width: 21px; height: 21px; background: var(--blue); }
.mail-sidebar-bottom a { color: var(--ink-2); font-size: .8rem; }
.mail-main { background: var(--canvas); }
.mail-page-heading {
  max-width: 1320px;
  margin: auto;
  padding: 25px 30px 17px;
  align-items: center;
}
.mail-page-heading h1 { margin: 3px 0 5px; font-size: clamp(27px, 2.2vw, 34px); }
.mail-page-heading p { font-size: .91rem; }
.mail-page-heading .eyebrow { font-size: .64rem; letter-spacing: .11em; }
.mail-page-heading .safety-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid #ccebdc;
  color: #137a55;
  background: #effaf5;
  font-family: inherit;
  font-size: .66rem;
  font-weight: 780;
  letter-spacing: .02em;
}
.mail-page-heading .safety-label::before { content: "✓"; }
.mail-compose-grid {
  max-width: 1320px;
  margin: auto;
  grid-template-columns: minmax(560px,1fr) minmax(330px,390px);
  gap: 16px;
  padding: 0 30px 32px;
}
.mail-compose-grid .panel {
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 12px 35px rgba(40,31,55,.055);
}
.mail-compose-grid .mail-compose-panel { overflow: hidden; }
.mail-composer { padding: 0 20px 16px; }
.mail-address-fields { padding-top: 4px; }
.mail-address-fields > label {
  min-height: 49px;
  display: grid;
  grid-template-columns: 72px minmax(0,1fr);
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.mail-address-fields > label > span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 760;
}
.mail-address-fields input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: .84rem;
  font-weight: 550;
}
.mail-address-fields input::placeholder { color: color-mix(in srgb, var(--muted) 66%, transparent); font-weight: 500; }
.mail-address-fields .mail-subject-field { min-height: 56px; }
.mail-address-fields .mail-subject-field input { font-size: .96rem; font-weight: 700; }
.mail-editor-meta {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 -20px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.mail-editor-meta label { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .67rem; font-weight: 760; }
.mail-editor-meta select {
  width: auto;
  min-width: 124px;
  padding: 5px 28px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: .7rem;
  font-weight: 720;
}
.mail-editor-meta small { color: var(--muted); font-size: .64rem; }
.mail-auto-type { display: flex; align-items: center; gap: 9px; }
.mail-auto-type > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; color: var(--blue); background: var(--blue-soft); font-size: .68rem; }
.mail-auto-type p, .mail-auto-type strong, .mail-auto-type small { display: block; margin: 0; }
.mail-auto-type strong { color: var(--ink-2); font-size: .69rem; }
.mail-auto-type small { margin-top: 1px; font-size: .6rem; }
.mail-editor-meta > em { padding: 4px 8px; border-radius: 99px; color: var(--blue); background: var(--blue-soft); font-size: .6rem; font-style: normal; font-weight: 800; text-transform: uppercase; }
.mail-composer > label {
  min-height: 52px;
  grid-template-columns: 94px 1fr;
}
.mail-composer > label span { color: var(--muted); font-size: .74rem; font-weight: 760; }
.mail-composer input, .mail-composer select { font-size: .84rem; font-weight: 600; }
.mail-compose-grid .mail-composer textarea {
  height: clamp(210px, 32vh, 340px);
  min-height: 210px;
  padding: 21px 2px;
  font-size: .95rem;
  line-height: 1.72;
}
.mail-compose-footer {
  margin: 0;
  padding: 14px 0 0;
  background: var(--paper);
  backdrop-filter: none;
}
.mail-compose-footer > div { gap: 8px; }
.mail-compose-footer .button { min-height: 42px; padding-inline: 15px; border-radius: 11px; font-size: .78rem; }
.mail-compose-footer .button-primary { color: white; background: #17151e; }
.mail-compose-footer .button-secondary { background: var(--paper); }
.mail-compose-footer .button-ai { color: white; background: linear-gradient(135deg, #6f5cf3, #5546db); }
.mail-compose-footer > small { max-width: 270px; font-size: .68rem; line-height: 1.45; text-align: right; }
.mail-ai-panel { top: 14px; padding: 19px; border-color: color-mix(in srgb, var(--blue) 14%, var(--line)); }
.mail-ai-heading {
  grid-template-columns: 44px 1fr auto;
  padding-bottom: 16px;
}
.mail-ai-heading > span {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, #765ef5, #5546db);
}
.mail-ai-heading h3 { font-size: 1rem; }
.mail-ai-heading p { font-size: .69rem; }
.mail-ai-heading em { color: var(--blue); background: var(--blue-soft); }
.mail-ai-empty { padding: 27px 10px 17px; }
.mail-ai-empty > div {
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--blue-soft), color-mix(in srgb, var(--blue-soft) 55%, var(--paper)));
}
.mail-ai-empty strong { font-size: .9rem; }
.mail-ai-empty p { max-width: 275px; font-size: .75rem; }
.mail-ai-capabilities { display: grid; gap: 7px; margin: 2px 0 14px; }
.mail-ai-capabilities > div {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
}
.mail-ai-capabilities span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #16876a;
  background: var(--green-soft);
  font-size: .7rem;
  font-weight: 900;
}
.mail-ai-capabilities p, .mail-ai-capabilities strong, .mail-ai-capabilities small { display: block; margin: 0; }
.mail-ai-capabilities strong { font-size: .73rem; }
.mail-ai-capabilities small { margin-top: 2px; color: var(--muted); font-size: .64rem; }
.mail-ai-privacy {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border-radius: 11px;
  color: #594aa9;
  background: var(--blue-soft);
}
.mail-ai-privacy > span { display: grid; place-items: center; font-size: .75rem; }
.mail-ai-privacy p, .mail-ai-privacy strong, .mail-ai-privacy small { display: block; margin: 0; }
.mail-ai-privacy strong { font-size: .69rem; }
.mail-ai-privacy small { margin-top: 2px; color: color-mix(in srgb, var(--ink-2) 80%, transparent); font-size: .62rem; }
.mail-list-layout { background: var(--canvas); }
.mail-list-pane { background: var(--paper); }
.mail-list-heading { min-height: 106px; background: color-mix(in srgb, var(--paper) 98%, var(--canvas)); }
.mail-message-list > a { background: var(--paper); }
.mail-reader, .mail-reader-empty { background-color: var(--canvas); }
html[data-theme="dark"] .mail-page-heading .safety-label { border-color: #275c4b; color: #74dfb9; background: #17382e; }
html[data-theme="dark"] .mail-compose-grid .panel { box-shadow: 0 18px 44px rgba(0,0,0,.2); }
html[data-theme="dark"] .mail-compose-footer .button-primary { color: #17151e; background: #f4f1f8; }
html[data-theme="dark"] .mail-ai-privacy { color: #c9c2ff; }

@media (max-width: 1180px) {
  .mail-compose-grid { grid-template-columns: minmax(0,1fr) 340px; }
  .mail-compose-footer { align-items: flex-start; flex-direction: column; }
  .mail-compose-footer > small { max-width: none; text-align: left; }
}
@media (max-width: 980px) {
  .mail-topbar { grid-template-columns: 220px minmax(240px,1fr) auto; }
  .mail-compose-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .mail-topbar { height: auto; grid-template-columns: 1fr auto; }
  .mail-shell { height: calc(100vh - 126px); grid-template-columns: 68px minmax(0,1fr); }
  .mail-page-heading { padding: 21px 16px 15px; }
  .mail-page-heading .safety-label { display: none; }
  .mail-compose-grid { padding: 0 12px 24px; }
  .mail-composer { padding: 0 14px 14px; }
  .mail-composer > label { grid-template-columns: 70px 1fr; }
  .mail-address-fields > label { grid-template-columns: 58px minmax(0,1fr); }
  .mail-editor-meta { align-items: flex-start; flex-direction: column; gap: 6px; padding-block: 9px; }
  .mail-compose-footer > div { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .mail-compose-footer .button-ai { grid-column: 1 / -1; }
}

/* Overview dashboard — clear hierarchy and useful sending signals */
.sidebar .brand-light { color: #fff; }
.sidebar .brand-mark { box-shadow: 0 8px 22px rgba(108, 92, 231, .34); }
.sidebar .side-nav a { min-height: 43px; font-size: 13.5px; }
.sidebar .side-nav a span { font-size: 13px; }
.workspace-content { max-width: 1560px; padding: 38px 42px 70px; }

.overview-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 44px;
  align-items: center;
  min-height: 254px;
  margin-bottom: 34px;
  padding: 38px 42px;
  border: 1px solid #302b48;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, rgba(133, 113, 255, .34), transparent 31%),
    radial-gradient(circle at 8% 110%, rgba(255, 123, 106, .16), transparent 34%),
    linear-gradient(120deg, #14131b, #211d31 62%, #292142);
  box-shadow: 0 24px 60px rgba(20, 18, 31, .16);
}
.overview-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 320px;
  height: 320px;
  right: -130px;
  top: -165px;
  border: 52px solid rgba(150, 135, 255, .1);
  border-radius: 50%;
}
.overview-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 17px;
  color: #bdb6d4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.overview-live span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ee6b8;
  box-shadow: 0 0 0 5px rgba(90, 203, 130, .13);
}
.overview-hero h2 {
  margin: 0 0 11px;
  font-size: clamp(32px, 3vw, 45px);
  line-height: 1.04;
  letter-spacing: -.052em;
}
.overview-hero-copy > p {
  max-width: 720px;
  margin: 0;
  color: #bdb8c9;
  font-size: 15px;
  line-height: 1.65;
}
.overview-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.overview-actions .button { min-height: 44px; padding-inline: 17px; border-radius: 11px; }
.overview-primary { color: #191620; background: #fff; }
.overview-primary:hover { color: #fff; background: #7164ef; }
.overview-secondary { color: #e7e3ef; border-color: #454054; background: rgba(255,255,255,.04); }
.overview-secondary:hover { color: #fff; border-color: #726a85; background: rgba(255,255,255,.08); }
.overview-actions .button span { font-size: 17px; }

.overview-readiness {
  padding: 25px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 17px;
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 1px rgba(255,255,255,.05);
  backdrop-filter: blur(8px);
}
.readiness-heading { display: flex; align-items: center; justify-content: space-between; color: #c7c1d2; font-size: 12px; font-weight: 750; }
.readiness-heading em { color: #fff; font: 800 22px "Manrope", sans-serif; font-style: normal; }
.readiness-track { overflow: hidden; height: 8px; margin: 14px 0 18px; border-radius: 99px; background: rgba(255,255,255,.11); }
.readiness-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7567ef, #a89fff); box-shadow: 0 0 18px rgba(134, 119, 255, .45); }
.overview-readiness strong, .overview-readiness small { display: block; }
.overview-readiness strong { font-size: 15px; }
.overview-readiness small { margin-top: 6px; color: #aaa5b7; font-size: 11px; line-height: 1.55; }
.overview-readiness a { display: inline-flex; align-items: center; gap: 7px; margin-top: 17px; color: #d9d4ff; font-size: 12px; font-weight: 750; }

.overview-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 2px 15px;
}
.overview-section-heading h3 { margin: 0 0 4px; font-size: 19px; letter-spacing: -.025em; }
.overview-section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.overview-section-heading > span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--paper); font-size: 10px; font-weight: 750; }

.overview-metrics { gap: 15px; margin-bottom: 24px; }
.overview-metrics .metric-card {
  min-height: 188px;
  padding: 22px;
  border-radius: 17px;
  box-shadow: 0 9px 26px rgba(23, 20, 37, .04);
}
.overview-metrics .metric-card::after { display: none; }
.metric-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.metric-card-head > span { color: var(--ink-2); font-size: 12px; font-weight: 750; }
.metric-card-head i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #6658df;
  background: var(--blue-soft);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}
.overview-metrics .metric-card:nth-child(2) .metric-card-head i { color: #16845b; background: var(--green-soft); }
.overview-metrics .metric-card:nth-child(3) .metric-card-head i { color: #a76208; background: var(--amber-soft); }
.overview-metrics .metric-card:nth-child(4) .metric-card-head i { color: #c03945; background: var(--red-soft); }
.overview-metrics .metric-card > strong { margin: 15px 0 2px; font-size: 34px; }
.overview-metrics .metric-card > small { display: block; min-height: 18px; font-size: 10px; }
.metric-state {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}
.metric-state > span { width: 7px; height: 7px; border-radius: 50%; background: #a8a5af; }
.metric-state.positive { color: var(--green); }
.metric-state.positive > span { background: #2caf7c; box-shadow: 0 0 0 4px var(--green-soft); }
.metric-state.attention { color: var(--amber); }
.metric-state.attention > span { background: #d49431; box-shadow: 0 0 0 4px var(--amber-soft); }

.overview-panels { grid-template-columns: 1.12fr .88fr; gap: 15px; }
.overview-panels .panel { overflow: hidden; border-radius: 17px; box-shadow: 0 9px 26px rgba(23, 20, 37, .035); }
.overview-panels .panel-heading { min-height: 74px; padding: 19px 21px; }
.overview-panels .panel-heading h3 { font-size: 15px; }
.overview-panels .checklist a { min-height: 70px; padding: 15px 21px; }
.overview-panels .checklist a > span { width: 34px; height: 34px; }
.overview-panels .checklist strong, .overview-panels .campaign-list strong { font-size: 12.5px; }
.overview-panels .checklist small, .overview-panels .campaign-list small { margin-top: 2px; font-size: 10.5px; }
.overview-panels .campaign-list a { min-height: 69px; }

html[data-theme="dark"] .overview-metrics .metric-card,
html[data-theme="dark"] .overview-section-heading > span { box-shadow: none; }

@media (max-width: 1120px) {
  .overview-hero { grid-template-columns: 1fr 330px; padding: 34px; }
  .overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .workspace-content { padding: 26px 20px 55px; }
  .overview-hero { grid-template-columns: 1fr; gap: 27px; }
  .overview-panels { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .overview-hero { padding: 27px 22px; border-radius: 17px; }
  .overview-hero h2 { font-size: 33px; }
  .overview-actions { display: grid; }
  .overview-metrics { grid-template-columns: 1fr; }
  .overview-section-heading { align-items: flex-start; flex-direction: column; }
}

/* Domain authentication workspace */
.domains-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 45px;
  align-items: center;
  margin-bottom: 24px;
  padding: 31px 34px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background:
    radial-gradient(circle at 94% 0%, color-mix(in srgb, var(--blue) 13%, transparent), transparent 34%),
    var(--paper);
  box-shadow: 0 12px 34px rgba(23, 20, 37, .045);
}
.domains-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.domains-kicker span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: var(--blue-soft); }
.domains-hero h2 { max-width: 680px; margin: 0 0 9px; font-size: clamp(28px, 2.6vw, 38px); letter-spacing: -.045em; }
.domains-hero > div:first-child > p { max-width: 720px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.domains-summary { display: grid; grid-template-columns: repeat(3, minmax(115px, 1fr)); overflow: hidden; min-width: 420px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--paper) 75%, var(--canvas)); }
.domains-summary > div { padding: 17px 19px; border-right: 1px solid var(--line); }
.domains-summary > div:last-child { border: 0; }
.domains-summary span, .domains-summary strong, .domains-summary small { display: block; }
.domains-summary span { color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.domains-summary strong { margin: 3px 0; font: 800 25px "Manrope", sans-serif; letter-spacing: -.04em; }
.domains-summary small { color: var(--muted); font-size: 9px; }

.domains-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 365px; gap: 17px; align-items: start; }
.domains-list-panel, .domain-add-panel, .domain-guide { overflow: hidden; border-radius: 17px; box-shadow: 0 9px 28px rgba(23, 20, 37, .035); }
.domains-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
  padding: 20px 23px;
  border-bottom: 1px solid var(--line);
}
.domains-list-heading > div > span { color: var(--blue); font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.domains-list-heading h3 { margin: 2px 0 3px; font-size: 17px; }
.domains-list-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.domain-count { padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: var(--canvas); font-size: 9px; font-weight: 750; }

.domain-auth-card { padding: 23px; }
.domain-auth-card + .domain-auth-card { border-top: 1px solid var(--line); }
.domain-auth-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.domain-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.domain-identity > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #7465eb, #5144c6);
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(93, 77, 210, .19);
}
.domain-identity strong, .domain-identity small { display: block; }
.domain-identity strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.domain-identity small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.domain-health { display: flex; align-items: center; gap: 16px; }
.domain-health > div { text-align: right; }
.domain-health > div > span, .domain-health strong { display: block; }
.domain-health > div > span { color: var(--muted); font-size: 9px; }
.domain-health strong { font: 800 22px "Manrope", sans-serif; }
.domain-health strong small { color: var(--muted); font-size: 9px; }

.domain-progress { margin: 19px 0; padding: 15px 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); }
.domain-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.domain-progress > div:first-child span { color: var(--muted); font-size: 10px; font-weight: 700; }
.domain-progress > div:first-child strong { color: var(--amber); font-size: 10px; }
.domain-progress-track { overflow: hidden; height: 6px; margin: 9px 0; border-radius: 99px; background: var(--line); }
.domain-progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7163eb, #9d93f5); }
.domain-progress p { margin: 0; color: var(--muted); font-size: 9.5px; }

.dns-records { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; }
.dns-records-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 78%, var(--canvas)); }
.dns-records-heading h4 { margin: 0 0 2px; font-size: 12px; }
.dns-records-heading p { margin: 0; color: var(--muted); font-size: 9px; }
.dns-records-heading > span { color: var(--muted); font-size: 9px; font-weight: 750; }
.dns-record-row { display: grid; grid-template-columns: 105px 155px minmax(0, 1fr) 80px; align-items: center; border-bottom: 1px solid var(--line); }
.dns-record-row:last-child { border: 0; }
.dns-record-row > div { min-width: 0; padding: 13px 14px; border-right: 1px solid var(--line); }
.dns-purpose > span, .dns-purpose > small, .dns-field > span, .dns-field > code { display: block; }
.dns-purpose > span { color: var(--blue); font-size: 10px; font-weight: 850; }
.dns-purpose > small, .dns-field > span { color: var(--muted); font-size: 8px; }
.dns-field > code { overflow: hidden; margin-top: 3px; color: var(--ink-2); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.dns-record-row > button {
  align-self: stretch;
  border: 0;
  color: var(--blue);
  background: var(--paper);
  font-size: 9px;
  font-weight: 800;
}
.dns-record-row > button:hover { background: var(--blue-soft); }
.dns-record-row > button span { margin-right: 3px; }

.domain-auth-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 17px; }
.domain-auth-footer > div { display: flex; align-items: center; gap: 10px; }
.domain-auth-footer > div > span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: var(--amber); background: var(--amber-soft); }
.domain-auth-footer p, .domain-auth-footer strong, .domain-auth-footer small { display: block; margin: 0; }
.domain-auth-footer strong { font-size: 10px; }
.domain-auth-footer small { margin-top: 2px; color: var(--muted); font-size: 8.5px; }
.domain-auth-footer form { flex: 0 0 auto; }
.domain-auth-footer .button { min-height: 38px; font-size: 10px; }

.domains-side { position: sticky; top: 98px; display: grid; gap: 17px; }
.domain-add-heading { display: flex; gap: 12px; padding: 21px 21px 17px; border-bottom: 1px solid var(--line); }
.domain-add-heading > span { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 auto; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #7465eb, #5144c6); font-size: 17px; }
.domain-add-heading small { color: var(--blue); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.domain-add-heading h3 { margin: 1px 0 2px; font-size: 17px; }
.domain-add-heading p { margin: 0; color: var(--muted); font-size: 9px; }
.domain-add-panel .stack-form { gap: 16px; padding: 19px 21px 22px; }
.domain-add-panel label { font-size: 10px; }
.domain-add-panel input { min-height: 46px; padding-inline: 14px; background: var(--canvas); font-size: 12px; }
.domain-add-panel label > small { color: var(--muted); font-size: 8.5px; font-weight: 500; }
.domain-add-panel .button { min-height: 46px; justify-content: space-between; font-size: 11px; }

.domain-guide { padding: 20px; }
.domain-guide > div { display: flex; align-items: flex-start; gap: 10px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.domain-guide > div > span { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 auto; border-radius: 9px; color: var(--green); background: var(--green-soft); font-weight: 850; }
.domain-guide strong, .domain-guide p { margin: 0; }
.domain-guide > div strong { font-size: 11px; }
.domain-guide > div p { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.domain-guide ol { display: grid; gap: 13px; padding: 15px 0; margin: 0; list-style: none; }
.domain-guide li { display: flex; align-items: center; gap: 10px; }
.domain-guide li > span { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; color: var(--blue); font-size: 9px; font-weight: 850; }
.domain-guide li strong, .domain-guide li small { display: block; }
.domain-guide li strong { font-size: 10px; }
.domain-guide li small { margin-top: 1px; color: var(--muted); font-size: 8.5px; }
.domain-guide > p { padding: 10px 11px; border-radius: 9px; color: var(--muted); background: var(--canvas); font-size: 8.5px; line-height: 1.5; }

html[data-theme="dark"] .domains-hero,
html[data-theme="dark"] .domains-list-panel,
html[data-theme="dark"] .domain-add-panel,
html[data-theme="dark"] .domain-guide { box-shadow: none; }

@media (max-width: 1180px) {
  .domains-hero { grid-template-columns: 1fr; gap: 23px; }
  .domains-summary { min-width: 0; }
  .domains-workspace { grid-template-columns: 1fr; }
  .domains-side { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .domains-hero { padding: 25px 22px; }
  .domains-summary { grid-template-columns: 1fr; }
  .domains-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .domains-summary > div:last-child { border-bottom: 0; }
  .domains-side { grid-template-columns: 1fr; }
  .domain-auth-top, .domain-auth-footer { align-items: flex-start; flex-direction: column; }
  .domain-health { width: 100%; justify-content: space-between; }
  .dns-record-row { grid-template-columns: 95px 1fr 64px; }
  .dns-record-row .dns-value { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid var(--line); border-right: 0; }
  .dns-record-row > button { grid-column: 3; grid-row: 1; }
}

/* Seats, team administration, and personal profile */
.user-chip > img {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 2px solid color-mix(in srgb, var(--blue) 32%, var(--paper));
  border-radius: 50%;
  object-fit: cover;
}

.seat-commerce-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 17px; margin: 17px 0; }
.seat-usage-card, .seat-purchase-card { padding: 24px; border-radius: 17px; }
.seat-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.seat-card-heading > span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.seat-card-heading > a { color: var(--blue); font-size: 10px; font-weight: 750; }
.seat-usage-number { display: flex; align-items: baseline; gap: 9px; margin-top: 20px; }
.seat-usage-number strong { font: 800 38px "Manrope", sans-serif; letter-spacing: -.05em; }
.seat-usage-number span { color: var(--muted); font-size: 12px; }
.seat-usage-track { overflow: hidden; height: 8px; margin: 12px 0 20px; border-radius: 99px; background: var(--line); }
.seat-usage-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7163eb, #a39af8); }
.seat-breakdown { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }
.seat-breakdown span { padding: 12px; color: var(--muted); border-right: 1px solid var(--line); font-size: 8.5px; }
.seat-breakdown span:last-child { border: 0; }
.seat-breakdown b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 14px; }
.seat-purchase-card > div:first-child { display: flex; align-items: center; gap: 13px; }
.seat-price { display: grid; place-items: center; width: 53px; height: 53px; border-radius: 14px; color: #fff; background: linear-gradient(145deg, #7465eb, #5144c6); font: 800 18px "Manrope", sans-serif; }
.seat-purchase-card h3 { margin: 0 0 3px; font-size: 17px; }
.seat-purchase-card p { margin: 0; color: var(--muted); font-size: 10px; }
.seat-purchase-card form { display: grid; grid-template-columns: 120px minmax(165px, 1fr) auto; gap: 10px; align-items: end; margin-top: 18px; }
.seat-purchase-card .button { white-space: nowrap; }
.seat-orders { overflow: hidden; margin-bottom: 17px; border-radius: 17px; }
.seat-order-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 110px 190px; gap: 15px; align-items: center; min-height: 64px; padding: 11px 20px; border-top: 1px solid var(--line); }
.seat-order-row strong, .seat-order-row small { display: block; }
.seat-order-row strong { font-size: 11px; }
.seat-order-row small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.seat-order-row > span { font-size: 11px; font-weight: 750; }

.settings-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 19px;
  padding: 29px 32px;
  border: 1px solid #302b48;
  border-radius: 19px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 15%, rgba(130, 112, 255, .32), transparent 28%),
    linear-gradient(120deg, #15141b, #27213b);
}
.settings-hero > div:first-child > span { color: #aba4bd; font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.settings-hero h2 { margin: 5px 0 7px; font-size: 30px; letter-spacing: -.04em; }
.settings-hero p { max-width: 700px; margin: 0; color: #b6b0c1; font-size: 12px; }
.settings-seat-summary { min-width: 180px; padding: 15px 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: rgba(255,255,255,.06); }
.settings-seat-summary strong, .settings-seat-summary span, .settings-seat-summary a { display: block; }
.settings-seat-summary strong { font: 800 25px "Manrope", sans-serif; }
.settings-seat-summary strong small { color: #aba5b5; font-size: 13px; }
.settings-seat-summary > span { color: #aaa4b5; font-size: 9px; }
.settings-seat-summary a { margin-top: 8px; color: #d7d1ff; font-size: 9px; font-weight: 750; }
.settings-main-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 17px; align-items: start; margin-bottom: 17px; }
.profile-settings-card, .team-settings-card { overflow: hidden; border-radius: 17px; }
.profile-settings-card > form { padding: 21px; }
.profile-photo-control { display: flex; align-items: center; gap: 14px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.profile-photo-control > img, .profile-photo-control > span {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #7465eb, #5144c6);
  object-fit: cover;
  font-size: 23px;
  font-weight: 850;
}
.profile-photo-control strong, .profile-photo-control small { display: block; }
.profile-photo-control strong { font-size: 11px; }
.profile-photo-control small { margin: 3px 0 8px; color: var(--muted); font-size: 8.5px; }
.profile-upload-button { display: inline-flex; width: auto; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--canvas); font-size: 8.5px; cursor: pointer; }
.profile-upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 18px 0; }
.profile-fields input[readonly] { color: var(--muted); cursor: not-allowed; }
.profile-settings-card > form > .button { width: 100%; }

.team-settings-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 87px; padding: 19px 21px; border-bottom: 1px solid var(--line); }
.team-settings-heading > div:first-child > span { color: var(--blue); font-size: 8px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.team-settings-heading h3 { margin: 2px 0 3px; font-size: 17px; }
.team-settings-heading p { margin: 0; color: var(--muted); font-size: 9px; }
.team-seat-meter { min-width: 155px; text-align: right; }
.team-seat-meter > span { display: block; overflow: hidden; height: 5px; margin-bottom: 7px; border-radius: 99px; background: var(--line); }
.team-seat-meter i { display: block; height: 100%; background: var(--blue); }
.team-seat-meter a { color: var(--blue); font-size: 8.5px; font-weight: 750; }
.team-add-control { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--blue-soft) 28%, var(--paper)); }
.team-add-control summary { padding: 13px 20px; font-size: 10px; font-weight: 800; cursor: pointer; list-style: none; }
.team-add-control summary::-webkit-details-marker { display: none; }
.team-add-control summary span { margin-right: 5px; color: var(--blue); }
.team-add-control > form { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; align-items: end; padding: 3px 20px 18px; }
.team-add-control > form .button { grid-column: 1 / -1; min-height: 40px; white-space: nowrap; font-size: 9px; }
.seat-limit-message { display: flex; align-items: center; gap: 12px; padding: 2px 20px 17px; }
.seat-limit-message strong { font-size: 10px; }
.seat-limit-message p { flex: 1; margin: 0; color: var(--muted); font-size: 9px; }
.seat-limit-message .button { min-height: 35px; font-size: 9px; }
.team-member-list { display: grid; }
.team-member-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 115px 75px 58px; gap: 10px; align-items: center; min-height: 66px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.team-member-row:last-child { border: 0; }
.team-member-row > img, .team-member-avatar { width: 36px; height: 36px; border-radius: 11px; object-fit: cover; }
.team-member-avatar { display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #7465eb, #5144c6); font-weight: 850; }
.team-member-row > div strong, .team-member-row > div small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-member-row > div strong { font-size: 10.5px; }
.team-member-row > div small { margin-top: 2px; color: var(--muted); font-size: 8.5px; }
.team-role { color: var(--ink-2); font-size: 9px; }
.team-member-row form { margin: 0; }
.team-member-row form button { border: 0; color: var(--red); background: none; font-size: 8.5px; font-weight: 750; cursor: pointer; }

@media (max-width: 1180px) {
  .seat-commerce-grid, .settings-main-grid { grid-template-columns: 1fr; }
  .team-add-control > form { grid-template-columns: 1fr 1fr; }
  .team-add-control > form .button { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .seat-purchase-card form, .profile-fields { grid-template-columns: 1fr; }
  .seat-breakdown { grid-template-columns: 1fr; }
  .seat-breakdown span { border-right: 0; border-bottom: 1px solid var(--line); }
  .seat-order-row { grid-template-columns: 1fr auto; }
  .settings-hero, .team-settings-heading { align-items: flex-start; flex-direction: column; }
  .settings-seat-summary, .team-seat-meter { width: 100%; }
  .team-seat-meter { text-align: left; }
  .team-member-row { grid-template-columns: 38px 1fr auto; }
  .team-member-row .team-role { grid-column: 2; }
  .team-member-row > em { grid-column: 3; grid-row: 1; }
  .team-member-row > form, .team-member-row > span:last-child { grid-column: 3; grid-row: 2; }
}

/* Dedicated user-management dashboard */
.users-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 17px;
  padding: 31px 34px;
  border: 1px solid #302b48;
  border-radius: 19px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 0%, rgba(134, 116, 255, .32), transparent 30%),
    linear-gradient(120deg, #15141b, #28213d);
  box-shadow: 0 18px 44px rgba(22, 19, 34, .11);
}
.users-hero > div > span { color: #aaa4b7; font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.users-hero h2 { margin: 5px 0 7px; font-size: 32px; letter-spacing: -.045em; }
.users-hero p { max-width: 720px; margin: 0; color: #b7b1c2; font-size: 12px; }
.users-buy-seats { color: #1a1720; background: #fff; white-space: nowrap; }
.users-buy-seats:hover { color: #fff; background: var(--blue); }

.users-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 17px; }
.users-metrics article { min-height: 112px; padding: 18px 19px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.users-metrics span, .users-metrics strong, .users-metrics small { display: block; }
.users-metrics > article > span { color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.users-metrics strong { margin: 7px 0 3px; font: 800 27px "Manrope", sans-serif; letter-spacing: -.04em; }
.users-metrics strong small { display: inline; color: var(--muted); font-size: 12px; }
.users-metrics > article > small { color: var(--muted); font-size: 8.5px; }
.users-metrics article > div { overflow: hidden; height: 5px; margin-top: 10px; border-radius: 99px; background: var(--line); }
.users-metrics article > div i { display: block; height: 100%; background: linear-gradient(90deg, #7163eb, #a39af8); }

.users-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 17px; align-items: start; }
.users-directory, .users-create-card { overflow: hidden; border-radius: 17px; }
.users-directory-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; min-height: 84px; padding: 18px 21px; border-bottom: 1px solid var(--line); }
.users-directory-heading > div > span { color: var(--blue); font-size: 8px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.users-directory-heading h3 { margin: 2px 0; font-size: 17px; }
.users-directory-heading p { margin: 0; color: var(--muted); font-size: 9px; }
.users-directory-heading label { width: 205px; font-size: 8px; }
.users-directory-heading input { min-height: 36px; padding-block: 7px; background: var(--canvas); font-size: 10px; }
.users-table-head, .users-table-row { display: grid; grid-template-columns: minmax(205px, 1fr) 110px 105px 72px 62px; gap: 10px; align-items: center; }
.users-table-head { padding: 10px 18px; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--canvas); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.users-table-row { min-height: 67px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.users-table-row:last-of-type { border: 0; }
.users-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.users-person > img, .users-person > span { width: 37px; height: 37px; flex: 0 0 auto; border-radius: 11px; object-fit: cover; }
.users-person > span { display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #7465eb, #5144c6); font-weight: 850; }
.users-person strong, .users-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.users-person strong { font-size: 10.5px; }
.users-person small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.users-role, .users-login, .users-protected { color: var(--ink-2); font-size: 8.5px; }
.users-protected { color: var(--muted); }
.users-table-row form { margin: 0; }
.users-table-row form button { padding: 5px 7px; border: 1px solid color-mix(in srgb, var(--red) 28%, var(--line)); border-radius: 7px; color: var(--red); background: var(--paper); font-size: 8px; font-weight: 750; cursor: pointer; }
.users-no-results { padding: 34px; color: var(--muted); text-align: center; font-size: 10px; }

.users-create-card { position: sticky; top: 98px; }
.users-create-heading { display: flex; gap: 11px; padding: 19px 20px 16px; border-bottom: 1px solid var(--line); }
.users-create-heading > span { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; color: #fff; background: linear-gradient(145deg, #7465eb, #5144c6); font-size: 16px; }
.users-create-heading small { color: var(--blue); font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.users-create-heading h3 { margin: 1px 0 2px; font-size: 16px; }
.users-create-heading p { margin: 0; color: var(--muted); font-size: 8.5px; }
.users-create-card > form { display: grid; gap: 12px; padding: 18px 20px; }
.users-create-card > form input, .users-create-card > form select { min-height: 42px; background: var(--canvas); }
.users-create-card > form .button { min-height: 43px; margin-top: 2px; }
.users-permission-note { padding: 21px; }
.users-permission-note strong { font-size: 11px; }
.users-permission-note p { color: var(--muted); font-size: 9px; line-height: 1.6; }
.users-permission-note .button { width: 100%; }
.users-role-guide { padding: 16px 20px; border-top: 1px solid var(--line); background: var(--canvas); }
.users-role-guide > strong { display: block; margin-bottom: 7px; font-size: 9px; }
.users-role-guide p { margin: 4px 0; color: var(--muted); font-size: 8px; }
.users-role-guide b { color: var(--ink-2); }

@media (max-width: 1180px) {
  .users-dashboard-grid { grid-template-columns: 1fr; }
  .users-create-card { position: static; }
  .users-create-card > form { grid-template-columns: 1fr 1fr; }
  .users-create-card > form .button { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .users-metrics { grid-template-columns: 1fr 1fr; }
  .users-table-head { display: none; }
  .users-table-row { grid-template-columns: 1fr auto; }
  .users-role, .users-login { grid-column: 1; }
  .users-table-row > em, .users-table-row > form, .users-protected { grid-column: 2; }
}
@media (max-width: 560px) {
  .users-hero { align-items: flex-start; flex-direction: column; }
  .users-metrics { grid-template-columns: 1fr; }
  .users-directory-heading { align-items: flex-start; flex-direction: column; }
  .users-directory-heading label { width: 100%; }
  .users-create-card > form { grid-template-columns: 1fr; }
  .users-create-card > form .button { grid-column: auto; }
}

.mailbox-address-builder {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) auto;
  align-items: stretch;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
  transition: .15s ease;
}
.mailbox-address-builder:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.mailbox-address-builder input {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}
.mailbox-address-builder > span {
  display: flex;
  align-items: center;
  max-width: 165px;
  padding: 0 11px;
  overflow: hidden;
  color: var(--muted);
  border-left: 1px solid var(--line);
  background: var(--paper);
  font-size: 9px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mailbox-address-builder > span.is-ready { color: var(--blue); background: var(--blue-soft); }
.users-create-card label > small { color: var(--muted); font-size: 8px; font-weight: 500; }
