:root {
    --navy: #0b4a86;
    --navy-dark: #082d5c;
    --teal: #0bc7b5;
    --teal-soft: #dff9f5;
    --yellow: #f3c522;
    --ink: #14213d;
    --muted: #667085;
    --line: #e6eaf0;
    --surface: #ffffff;
    --background: #f5f7fb;
    --shadow: 0 12px 35px rgba(16, 36, 76, .08);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); font-family: Inter, "Segoe UI", Arial, sans-serif; }
a { color: inherit; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 22px; color: white; background: linear-gradient(165deg, #082d5c 0%, #0b4a86 58%, #087f91 130%); display: flex; flex-direction: column; }
.brand { display: block; margin-bottom: 30px; padding: 13px 14px; border: 1px solid rgba(255, 255, 255, .56); border-radius: 14px; background: rgba(255, 255, 255, .92); box-shadow: 0 10px 25px rgba(3, 25, 62, .16); }
.brand img { display: block; width: 100%; height: 44px; object-fit: contain; }
.sidebar nav { display: grid; gap: 7px; }
.sidebar nav a { padding: 13px 16px; border: 1px solid transparent; border-radius: 10px; text-decoration: none; color: #e2edf9; font-weight: 650; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.sidebar nav a:hover { background: rgba(255,255,255,.1); color: white; }
.sidebar nav a.active { color: white; background: rgba(11, 199, 181, .18); border-color: rgba(73, 237, 220, .32); box-shadow: inset 3px 0 0 #29e0cf; }
.sidebar-note { margin: auto 10px 0; color: #c8e1f4; font-size: 13px; line-height: 1.6; }
.sidebar-account { margin-top: auto; padding: 15px 12px 2px; border-top: 1px solid rgba(255,255,255,.16); display: grid; gap: 7px; }
.sidebar-account span { color: #d8e8f6; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.sidebar-account a { color: #68eee1; font-size: 12px; font-weight: 750; text-decoration: none; }
.main { min-width: 0; padding: 32px clamp(24px, 4vw, 58px) 60px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.topbar h1 { margin: 2px 0 0; font-size: clamp(27px, 3vw, 38px); letter-spacing: -.04em; }
.eyebrow { margin: 0; color: var(--teal); font-size: 11px; text-transform: uppercase; letter-spacing: .13em; font-weight: 800; }
.environment, .pill, .status { display: inline-flex; align-items: center; border-radius: 999px; font-size: 12px; font-weight: 750; }
.environment { padding: 7px 11px; color: var(--navy); background: #e8eef8; }
.hero-panel { padding: clamp(28px, 5vw, 48px); border-radius: 22px; background: linear-gradient(120deg, #071f4d 0%, #0c4688 65%, #087e90 100%); color: white; display: flex; align-items: end; justify-content: space-between; gap: 28px; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.hero-panel::after { content: ""; position: absolute; width: 240px; height: 240px; right: -80px; top: -100px; border: 35px solid rgba(0, 207, 188, .2); border-radius: 50%; }
.hero-panel > * { position: relative; z-index: 1; }
.hero-panel h2 { max-width: 720px; margin: 14px 0 10px; font-size: clamp(25px, 3.2vw, 42px); line-height: 1.07; letter-spacing: -.035em; }
.hero-panel p { margin: 0; color: #c9d9ef; }
.pill { padding: 7px 11px; color: #9ff3e9; background: rgba(4, 190, 174, .14); border: 1px solid rgba(83, 238, 222, .22); }
.button { min-height: 42px; padding: 11px 17px; border: 0; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font: inherit; font-size: 14px; font-weight: 750; cursor: pointer; white-space: nowrap; }
.button.primary { color: white; background: var(--teal); box-shadow: 0 8px 20px rgba(2, 148, 137, .25); }
.button.primary:hover { background: #079e94; }
.button.secondary { color: var(--navy); background: #edf1f7; }
.stats-grid { margin: 24px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat-card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 4px 18px rgba(16, 36, 76, .04); }
.stat-card span { display: block; color: var(--muted); font-size: 13px; }
.stat-card strong { display: block; margin-top: 10px; color: var(--navy); font-size: 30px; letter-spacing: -.04em; }
.content-card, .form-card { padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.form-card { max-width: 760px; }
.form-card.wide { max-width: 960px; }
.section-heading { margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin: 5px 0 0; font-size: 21px; }
.section-description { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.text-link { color: var(--navy); font-size: 13px; font-weight: 750; }
.empty-state { padding: 48px 20px; border: 1px dashed #ccd5e3; border-radius: 14px; text-align: center; background: #fafbfd; }
.empty-state h3 { margin: 0 0 7px; color: var(--navy); }
.empty-state p { margin: 0; color: var(--muted); }
.empty-action { margin-top: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--muted); text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
td { padding: 15px 14px; border-bottom: 1px solid #eef1f5; }
tbody tr:last-child td { border-bottom: 0; }
.status { padding: 5px 9px; color: var(--navy); background: #e9eef7; }
.status.subscribed, .status.sent { color: #08776f; background: var(--teal-soft); }
.list-membership-count { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--navy); background: #e8eef8; font-size: 12px; font-weight: 800; }
.status.active { color: #08776f; background: var(--teal-soft); }
.status.subscribed { color: #08776f; background: var(--teal-soft); }
.status.unsubscribed { color: #9b2929; background: #fff0f0; }
.status.suspended { color: #9b2929; background: #fff0f0; }
.status.draft { color: #856600; background: #fff6cd; }
.status.queued, .status.sending, .status.scheduled { color: #075f86; background: #e4f3fb; }
.status.completed { color: #44546f; background: #edf1f7; }
.status.partial { color: #8a5a00; background: #fff0c7; }
.status.failed { color: #9b2929; background: #fff0f0; }
.delivery-progress { margin-top: 6px; display: block; color: var(--muted); white-space: nowrap; }
.inline-form { margin: 0; }
.campaign-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.table-link { color: var(--navy); font-weight: 750; text-decoration: none; }
.table-link:hover { text-decoration: underline; }
.button.compact { min-height: 34px; padding: 8px 12px; font-size: 12px; }
.sender-mode-options { margin-bottom: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sender-mode-options label { padding: 15px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.sender-mode-options input { margin-top: 4px; accent-color: var(--teal); }
.sender-mode-options span { display: grid; gap: 4px; }
.sender-mode-options small { color: var(--muted); line-height: 1.4; }
.email-composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.email-composer input { border-radius: 9px 0 0 9px; }
.email-composer span { align-self: stretch; padding: 0 13px; border: 1px solid #cbd3df; border-left: 0; border-radius: 0 9px 9px 0; background: #f3f6fa; display: flex; align-items: center; color: var(--muted); font-size: 13px; }
.queue-monitor-link { margin-top: 14px; }
.worker-run-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.worker-run-summary div { padding: 15px; border-radius: 12px; background: #f7f9fc; display: grid; gap: 6px; }
.worker-run-summary span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.worker-run-summary strong { color: var(--navy); }
.queue-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.queue-error { max-width: 360px; white-space: normal; }
.sender-verification-card { margin-top: 24px; }
.verification-form { display: flex; align-items: center; gap: 10px; }
.verification-form label { font-weight: 750; }
.verification-form select { padding: 9px 11px; border: 1px solid #cbd3df; border-radius: 9px; }
.field { margin-bottom: 19px; }
.field label { display: block; margin-bottom: 7px; color: #263554; font-size: 13px; font-weight: 750; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 13px; border: 1px solid #cbd3df; border-radius: 9px; background: white; color: var(--ink); font: inherit; outline: none; }
.field textarea { resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8, 183, 170, .12); }
.field small, .form-note { color: var(--muted); font-size: 12px; }
.optional { color: #8994a7; font-size: 11px; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.actions { margin-top: 25px; display: flex; justify-content: flex-end; gap: 10px; }
.alert { margin-bottom: 20px; padding: 13px 15px; border-radius: 10px; font-size: 14px; }
.alert.success { color: #05675f; background: #dcf8f3; border: 1px solid #b6eee6; }
.alert.error { color: #9b2929; background: #fff0f0; border: 1px solid #f4caca; }
.alert ul { margin: 0; padding-left: 20px; }
.table-subtext { display: block; margin-top: 4px; color: var(--muted); }
.master-hero { background: linear-gradient(120deg, #081f4b 0%, #0b4d86 58%, #087f91 100%); }
.company-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.company-card { padding: 16px; border: 1px solid var(--line); border-radius: 13px; display: flex; align-items: center; gap: 13px; text-decoration: none; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.company-card:hover { border-color: #9ddfd8; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(16, 36, 76, .08); }
.company-card div { min-width: 0; display: grid; gap: 4px; }
.company-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-card div span { color: var(--muted); font-size: 12px; }
.company-avatar { width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto; display: inline-grid; place-items: center; color: white; background: linear-gradient(140deg, var(--navy), var(--teal)); font-weight: 850; }
.company-avatar.large { width: 62px; height: 62px; border-radius: 16px; font-size: 24px; }
.company-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.company-title { display: flex; align-items: center; gap: 16px; }
.company-title h2 { margin: 3px 0 8px; }
.stats-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(340px, .75fr); gap: 24px; align-items: start; }
.split-layout .form-card { width: 100%; }
.form-section { padding: 4px 0 8px; }
.form-section + .form-section { margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-section h3 { margin: 0 0 17px; color: var(--navy); font-size: 16px; }
.button.danger-soft { color: #a62d2d; background: #fff0f0; border: 1px solid #f2cccc; }
.button:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.check-row { margin: -3px 0 20px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); gap: 24px; align-items: start; }
.settings-layout .form-card { width: 100%; max-width: none; }
.delivery-card { padding: 26px; }
.delivery-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.delivery-heading h2 { margin: 5px 0 0; font-size: 20px; }
.config-list { margin: 24px 0; }
.config-list > div { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; }
.config-list dt { color: var(--muted); font-size: 12px; }
.config-list dd { margin: 0; text-align: right; font-size: 13px; font-weight: 750; overflow-wrap: anywhere; }
.configuration-issues { margin: 0 0 18px; padding: 14px 16px; border-radius: 10px; color: #8a4c00; background: #fff6db; font-size: 13px; }
.configuration-issues ul { margin: 8px 0 0; padding-left: 19px; line-height: 1.6; }
.delivery-note { color: var(--muted); font-size: 12px; line-height: 1.55; }
.test-button { width: 100%; margin-top: 8px; white-space: normal; }

.auth-page { min-height: 100vh; background: #f4f7fb; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(400px, 1.05fr) minmax(420px, .95fr); }
.auth-brand-panel { position: relative; overflow: hidden; padding: clamp(34px, 6vw, 82px); color: white; background: linear-gradient(145deg, #072654 0%, #0a4d84 62%, #078a91 120%); display: flex; flex-direction: column; justify-content: space-between; }
.auth-brand-panel::after { content: ""; position: absolute; width: 480px; height: 480px; right: -240px; bottom: -200px; border: 70px solid rgba(21, 217, 198, .15); border-radius: 50%; }
.auth-brand-panel img { position: relative; z-index: 1; width: min(360px, 80%); padding: 16px 20px; border-radius: 16px; background: rgba(255,255,255,.94); }
.auth-brand-panel div { position: relative; z-index: 1; max-width: 620px; }
.auth-brand-panel h1 { margin: 18px 0; font-size: clamp(38px, 5vw, 68px); line-height: 1; letter-spacing: -.055em; }
.auth-brand-panel p { max-width: 560px; color: #d5e5f3; font-size: 17px; line-height: 1.6; }
.auth-form-panel { padding: clamp(30px, 7vw, 90px); display: grid; place-items: center; }
.auth-form-wrap { width: min(440px, 100%); }
.auth-form-wrap h2 { margin: 8px 0 9px; color: var(--navy-dark); font-size: 32px; letter-spacing: -.035em; }
.auth-intro { margin: 0 0 30px; color: var(--muted); line-height: 1.5; }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-help { margin: 24px 0 0; color: var(--muted); text-align: center; font-size: 12px; }
.list-grid { display: grid; gap: 12px; }
.list-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 15px; color: inherit; text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.list-card:hover { border-color: #96dcd5; transform: translateY(-1px); box-shadow: 0 9px 22px rgba(16, 36, 76, .07); }
.list-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: white; background: linear-gradient(140deg, var(--navy), var(--teal)); font-size: 20px; font-weight: 850; }
.list-card-main { min-width: 0; }
.list-card-main strong { color: var(--navy-dark); }
.list-card-main p { margin: 5px 0 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.list-count { min-width: 76px; display: grid; text-align: right; }
.list-count strong { color: var(--navy); font-size: 22px; }
.list-count span { color: var(--muted); font-size: 11px; }
.import-summary { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 5px 13px; }
.import-summary small { grid-column: 2; color: #347c76; }
.import-layout { grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); }
.upload-zone { min-height: 230px; padding: 28px; border: 2px dashed #aebdce; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; background: #f9fbfd; color: var(--navy); text-align: center; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.upload-zone:hover { border-color: var(--teal); background: #f2fcfa; }
.upload-zone span { color: var(--muted); font-size: 12px; }
.upload-zone .upload-icon { width: 56px; height: 56px; margin-bottom: 5px; border-radius: 14px; display: grid; place-items: center; color: white; background: linear-gradient(140deg, var(--navy), var(--teal)); font-size: 13px; font-weight: 850; }
.upload-zone input { width: min(280px, 100%); margin-top: 10px; color: var(--muted); font-size: 12px; }
.import-guide h2 { margin: 6px 0 18px; }
.import-guide ol { margin: 0 0 24px; padding-left: 22px; color: var(--muted); line-height: 1.65; font-size: 13px; }
.import-guide li + li { margin-top: 7px; }
.import-guide code { padding: 2px 5px; border-radius: 4px; color: var(--navy); background: #edf2f8; }
.download-links { display: grid; gap: 10px; }
.contact-search { margin-bottom: 22px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fafbfd; display: flex; align-items: end; gap: 10px; }
.contact-search .field { min-width: min(440px, 100%); margin: 0; }
.contact-search .field.status-filter { min-width: 190px; }
.contact-search .text-link { margin: 0 5px 13px; }
.picker-toolbar { padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px 11px 0 0; background: #f7f9fc; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 12px; }
.picker-toolbar label { color: var(--navy); font-weight: 750; }
.contact-options { max-height: 510px; overflow-y: auto; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 11px 11px; }
.contact-option { min-height: 68px; padding: 13px 15px; border-bottom: 1px solid #eef1f5; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; cursor: pointer; }
.contact-option:last-child { border-bottom: 0; }
.contact-option:hover { background: #f7fcfb; }
.contact-option input { width: 17px; height: 17px; accent-color: var(--teal); }
.contact-option > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.contact-option strong, .contact-option small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-option small { color: var(--muted); }
.pagination { display: flex; gap: 6px; list-style: none; padding: 20px 0 0; }
.pagination a, .pagination li.active { min-width: 34px; padding: 8px; border-radius: 8px; text-align: center; text-decoration: none; }
.pagination a { background: #edf1f7; }
.pagination li.active { color: white; background: var(--navy); }

.preference-page { min-height: 100vh; padding: 28px; display: grid; place-items: center; background: linear-gradient(145deg, #edf4fa, #f5fffd); }
.preference-card { width: min(560px, 100%); padding: clamp(30px, 6vw, 52px); border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); text-align: center; }
.preference-card img { width: min(260px, 80%); margin-bottom: 34px; }
.preference-card h1 { margin: 9px 0 15px; color: var(--navy-dark); font-size: clamp(28px, 5vw, 40px); letter-spacing: -.04em; }
.preference-card p:not(.eyebrow) { color: var(--muted); line-height: 1.65; }
.preference-card form { margin-top: 27px; }
.preference-note { margin-top: 26px; font-size: 12px; }

.campaign-detail { display: grid; gap: 28px; }
.campaign-detail > .section-heading { margin-bottom: 0; }
.campaign-detail .section-heading h2 { margin-bottom: 9px; }
.campaign-summary-grid, .confirmation-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.campaign-summary-grid > div, .confirmation-checklist > div { min-width: 0; padding: 17px 19px; display: grid; gap: 6px; background: white; }
.campaign-summary-grid span, .confirmation-checklist span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; font-weight: 750; }
.campaign-summary-grid strong, .confirmation-checklist strong { overflow-wrap: anywhere; }
.recipient-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.recipient-stats > div { padding: 18px; border: 1px solid var(--line); border-radius: 13px; display: grid; gap: 5px; background: #f9fbfd; }
.recipient-stats strong { color: var(--navy); font-size: 26px; }
.recipient-stats span { color: var(--muted); font-size: 12px; }
.schedule-banner { padding: 16px 18px; border: 1px solid #b7e8e2; border-radius: 13px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: #edfcfa; }
.schedule-banner > div { display: grid; gap: 5px; }
.schedule-banner span { color: var(--muted); font-size: 12px; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.preview-heading h3 { margin: 5px 0 0; }
.preview-switch { padding: 4px; border-radius: 9px; display: flex; background: #edf1f7; }
.preview-switch button { padding: 8px 13px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.preview-switch button.active { color: white; background: var(--navy); }
.preview-stage { min-height: 590px; padding: 24px; border-radius: 16px; display: flex; justify-content: center; background: #e9edf3; overflow: auto; }
.email-preview { width: 100%; max-width: 900px; height: 540px; border: 0; border-radius: 5px; background: white; box-shadow: 0 9px 30px rgba(16, 36, 76, .12); transition: width .2s ease; }
.email-preview.mobile { width: 390px; }
.plain-text-preview { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.plain-text-preview summary { padding: 16px 18px; color: var(--navy); font-weight: 750; cursor: pointer; background: #f9fbfd; }
.plain-text-preview pre { margin: 0; padding: 20px; border-top: 1px solid var(--line); overflow-x: auto; white-space: pre-wrap; color: #344054; background: white; font: 13px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; }
.confirm-card { max-width: 980px; margin: 0 auto; }
.recipient-callout { margin: 22px 0; padding: 20px; border: 1px solid #b7e8e2; border-radius: 14px; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 26px; background: #edfcfa; }
.recipient-callout > div { min-width: 140px; display: grid; gap: 4px; }
.recipient-callout strong { color: var(--navy); font-size: 29px; }
.recipient-callout span, .recipient-callout p { color: var(--muted); font-size: 12px; }
.recipient-callout p { margin: 0; line-height: 1.55; }
.delivery-options { display: grid; gap: 13px; }
.delivery-option { padding: 20px; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.delivery-option h3 { margin: 0 0 6px; color: var(--navy); font-size: 16px; }
.delivery-option p { margin: 0; color: var(--muted); font-size: 12px; }
.schedule-form { display: grid; grid-template-columns: minmax(190px, 1fr) auto; gap: 7px 10px; align-items: end; }
.schedule-form label { grid-column: 1 / -1; color: #344054; font-size: 12px; font-weight: 750; }
.schedule-form input { min-height: 42px; padding: 9px 11px; border: 1px solid #cfd6df; border-radius: 9px; color: var(--ink); font: inherit; }
.visual-editor { position: relative; overflow: hidden; border: 1px solid #cfd6df; border-radius: 12px; background: white; }
.visual-editor:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8, 183, 170, .12); }
.editor-toolbar { padding: 8px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; background: #f7f9fc; }
.editor-toolbar button { min-height: 34px; padding: 7px 10px; border: 1px solid transparent; border-radius: 7px; color: var(--navy); background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
.editor-toolbar button:hover { border-color: #cbd5e1; background: white; }
.editor-toolbar select { min-height: 34px; padding: 6px 28px 6px 9px; border: 1px solid #d5dce5; border-radius: 7px; color: var(--navy); background: white; font: inherit; font-size: 12px; }
.editor-toolbar span { width: 1px; height: 25px; margin: 0 3px; background: #d9dee7; }
.editor-canvas { min-height: 360px; padding: 24px; outline: none; overflow-wrap: anywhere; line-height: 1.6; }
.editor-canvas:empty::before { content: "Write your email here…"; color: #98a2b3; }
.editor-canvas img { max-width: 100%; height: auto; }
.editor-canvas img[data-selected-image="true"] { outline: 2px solid var(--teal); outline-offset: 3px; }
.image-resize-handle { position: absolute; z-index: 5; width: 18px; height: 18px; padding: 0; border: 3px solid white; border-radius: 50%; background: var(--teal); box-shadow: 0 2px 7px rgba(11, 74, 134, .35); cursor: nwse-resize; touch-action: none; }
.image-resize-handle.dragging { transform: scale(1.15); background: var(--navy); }
.editor-media-library { margin-top: 9px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfd; }
.editor-media-library summary { padding: 11px 13px; color: var(--navy); font-size: 12px; font-weight: 750; cursor: pointer; }
.editor-media-library > div { max-height: 230px; padding: 10px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; overflow-y: auto; }
.editor-media-library button { min-width: 0; padding: 5px; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 4px; background: white; cursor: pointer; }
.editor-media-library img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 5px; }
.editor-media-library span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.editor-status { min-height: 0; padding: 0 12px; color: #08776f; background: #f7f9fc; font-size: 11px; }
.editor-status:not(:empty) { min-height: 30px; padding-top: 8px; border-bottom: 1px solid var(--line); }
.attachment-save-note { margin: 16px 0 0; text-align: right; }
.attachment-panel { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.attachment-panel > div:first-child h3, .campaign-attachments h3 { margin: 0 0 6px; color: var(--navy); font-size: 17px; }
.attachment-panel > div:first-child p { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.attachment-list { margin-bottom: 16px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.attachment-list > div { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fafbfd; }
.attachment-list > div:last-child { border-bottom: 0; }
.attachment-list span { min-width: 0; display: grid; gap: 3px; }
.attachment-list strong { overflow-wrap: anywhere; font-size: 13px; }
.attachment-list small { color: var(--muted); font-size: 11px; }
.text-button { padding: 4px; border: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.text-button.danger { color: #a62d2d; }
.attachment-upload { padding: 15px; border: 1px dashed #b8c2cf; border-radius: 11px; display: flex; align-items: end; gap: 12px; background: #fafbfd; }
.attachment-upload .field { flex: 1; margin: 0; }
.campaign-attachments { padding-top: 4px; }
.confirmation-attachments { margin: -8px 0 22px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 11px; display: flex; gap: 12px; color: var(--muted); background: #fafbfd; font-size: 12px; }
.confirmation-attachments strong { color: var(--navy); white-space: nowrap; }
.personalization-warning { padding: 14px 16px; border: 1px solid #f0d78e; border-radius: 11px; display: grid; gap: 4px; color: #7a5200; background: #fff8df; font-size: 12px; }
.reporting-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.report-detail { display: grid; gap: 28px; }
.report-detail > .section-heading, .report-sections .section-heading { margin-bottom: 0; }
.report-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.report-metrics article { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 13px; display: grid; gap: 5px; background: #f9fbfd; }
.report-metrics span { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.report-metrics strong { color: var(--navy); font-size: 27px; }
.report-metrics small { color: var(--muted); line-height: 1.4; }
.report-sections { display: grid; gap: 30px; }
.report-sections section { display: grid; gap: 15px; }
.failure-detail, .tracked-url { max-width: 480px; overflow-wrap: anywhere; color: var(--muted); font-size: 12px; }
.empty-state.compact { min-height: 130px; padding: 24px; }
.activity-timeline { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.activity-timeline article { padding: 16px 18px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 13px; }
.activity-timeline article:last-child { border-bottom: 0; }
.activity-timeline article > div { min-width: 0; display: grid; gap: 3px; }
.activity-timeline article > div span, .activity-timeline article > div small, .activity-timeline time { color: var(--muted); font-size: 11px; }
.activity-timeline article > div small { overflow-wrap: anywhere; }
.activity-dot { width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: #98a2b3; box-shadow: 0 0 0 4px #f0f2f5; }
.activity-dot.sent, .activity-dot.open { background: var(--teal); box-shadow: 0 0 0 4px #e5faf7; }
.activity-dot.click { background: var(--navy); box-shadow: 0 0 0 4px #e8f0f8; }
.activity-dot.failed, .activity-dot.skipped, .activity-dot.unsubscribe { background: #d04444; box-shadow: 0 0 0 4px #fceaea; }
.save-template-menu { position: relative; }
.save-template-menu > summary { list-style: none; }
.save-template-menu > summary::-webkit-details-marker { display: none; }
.save-template-menu[open] > form { position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; width: 280px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; display: grid; gap: 8px; background: white; box-shadow: var(--shadow); }
.save-template-menu label { color: var(--muted); font-size: 11px; font-weight: 750; }
.save-template-menu input { min-width: 0; padding: 9px 10px; border: 1px solid #cfd6df; border-radius: 8px; font: inherit; }
.design-hero { margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.design-hero h2 { margin: 5px 0 8px; }
.design-hero p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.storage-meter-card { margin-bottom: 22px; padding-top: 22px; padding-bottom: 22px; }
.storage-meter-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.storage-meter-heading h2 { margin: 4px 0 0; font-size: 18px; }
.storage-meter-heading > strong { color: var(--navy); font-size: 13px; }
.storage-meter-track { height: 13px; margin: 16px 0 8px; border-radius: 999px; overflow: hidden; background: #e9edf3; }
.storage-meter-track span { display: block; min-width: 3px; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--navy), var(--teal)); transition: width .25s ease; }
.storage-meter-track span.warning { background: linear-gradient(90deg, #d49a00, var(--yellow)); }
.storage-meter-track span.critical { background: linear-gradient(90deg, #b42318, #ef665a); }
.storage-meter-legend { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px; }
.design-grid { display: grid; grid-template-columns: minmax(340px, .8fr) minmax(0, 1.2fr); gap: 22px; align-items: start; }
.design-grid.lower { margin-top: 22px; grid-template-columns: 1fr 1fr; }
.brand-logo-preview { margin-bottom: 18px; min-height: 100px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; background: #f8fafc; }
.brand-logo-preview img { max-width: 260px; max-height: 100px; }
.colour-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.colour-fields input[type="color"] { height: 48px; padding: 4px; cursor: pointer; }
.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.media-grid figure { min-width: 0; margin: 0; padding: 5px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfd; }
.media-grid img { width: 100%; aspect-ratio: 1; border-radius: 6px; object-fit: cover; }
.media-grid figcaption { padding: 5px 2px 2px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.media-grid form { margin-top: 4px; }
.media-delete { width: 100%; padding: 6px; border: 0; border-radius: 6px; color: #a62d2d; background: #fff0f0; font: inherit; font-size: 10px; font-weight: 750; cursor: pointer; }
.media-delete:hover { background: #fadddd; }
.media-library-note { margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.design-item-list { margin-bottom: 17px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.design-item-list > div { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.design-item-list > div:last-child { border-bottom: 0; }
.design-item-list span { min-width: 0; display: grid; gap: 3px; }
.design-item-list span strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.design-item-list span small { color: var(--muted); }
.design-item-list > div > div { display: flex; align-items: center; gap: 8px; }
.design-create { border: 1px dashed #b7c2d0; border-radius: 11px; background: #fafbfd; }
.design-create summary { padding: 13px 15px; color: var(--navy); font-size: 13px; font-weight: 750; cursor: pointer; }
.design-create form { padding: 4px 15px 15px; }

@media (max-width: 900px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; padding: 18px 22px; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 20px; }
    .brand { margin-bottom: 0; padding: 8px 10px; }
    .brand img { height: 40px; }
    .sidebar nav { display: flex; justify-content: flex-end; }
    .sidebar-note { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .company-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split-layout { grid-template-columns: 1fr; }
    .settings-layout { grid-template-columns: 1fr; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand-panel { min-height: 330px; gap: 80px; }
    .auth-brand-panel h1 { font-size: 42px; }
}

@media (max-width: 600px) {
    .sidebar { grid-template-columns: 1fr; }
    .sidebar nav { justify-content: flex-start; overflow-x: auto; }
    .main { padding: 24px 16px 42px; }
    .hero-panel { align-items: flex-start; flex-direction: column; }
    .stats-grid, .form-grid { grid-template-columns: 1fr; }
    .stats-grid.compact, .company-grid { grid-template-columns: 1fr; }
    .company-heading { align-items: flex-start; flex-direction: column; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .heading-actions { width: 100%; flex-wrap: wrap; }
    .list-card { grid-template-columns: auto minmax(0, 1fr); }
    .list-count { grid-column: 2; text-align: left; }
    .import-summary { grid-template-columns: 1fr; }
    .import-summary small { grid-column: 1; }
    .auth-brand-panel { min-height: 280px; padding: 28px; gap: 52px; }
    .auth-brand-panel h1 { font-size: 34px; }
    .auth-form-panel { padding: 42px 22px; }
    .topbar .environment { display: none; }
    .sender-mode-options, .worker-run-summary { grid-template-columns: 1fr; }
    .contact-search { align-items: stretch; flex-direction: column; }
    .contact-search .text-link { margin: 4px 0; }
    .picker-toolbar { align-items: flex-start; flex-direction: column; }
    .campaign-summary-grid, .confirmation-checklist, .recipient-stats { grid-template-columns: 1fr; }
    .schedule-banner, .preview-heading, .delivery-option { align-items: stretch; flex-direction: column; }
    .recipient-callout { grid-template-columns: 1fr 1fr; }
    .recipient-callout p { grid-column: 1 / -1; }
    .schedule-form { grid-template-columns: 1fr; }
    .schedule-form label { grid-column: auto; }
    .preview-stage { min-height: 520px; padding: 12px; }
    .email-preview { height: 490px; }
    .attachment-upload { align-items: stretch; flex-direction: column; }
    .editor-toolbar span { display: none; }
    .design-hero { align-items: stretch; flex-direction: column; }
    .storage-meter-heading, .storage-meter-legend { align-items: flex-start; flex-direction: column; gap: 5px; }
    .design-grid, .design-grid.lower { grid-template-columns: 1fr; }
    .reporting-stats, .report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .activity-timeline article { grid-template-columns: auto minmax(0, 1fr); }
    .activity-timeline time { grid-column: 2; }
    .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .colour-fields { grid-template-columns: 1fr; }
    .editor-media-library > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Public website */
.marketing-page { --marketing-navy: #071d43; --marketing-teal: #10c8b6; background: #fff; color: #10213e; }
.marketing-page main { overflow: hidden; }
.marketing-nav { width: min(1180px, calc(100% - 40px)); min-height: 86px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.marketing-logo img { display: block; width: 205px; height: 68px; object-fit: contain; }
.marketing-nav nav { display: flex; align-items: center; gap: 28px; }
.marketing-nav nav > a { color: #34435c; font-size: 14px; font-weight: 700; text-decoration: none; }
.marketing-nav nav > a:not(.button):hover { color: var(--navy); }
.marketing-nav .button { color: white; padding-inline: 21px; }
.marketing-hero { min-height: 670px; padding: 90px max(24px, calc((100vw - 1180px) / 2)); position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, .9fr) minmax(510px, 1.1fr); align-items: center; gap: clamp(50px, 7vw, 100px); background: radial-gradient(circle at 79% 20%, rgba(12, 199, 181, .18), transparent 28%), linear-gradient(145deg, #061b3e 0%, #0a3970 66%, #087d87 130%); color: white; }
.marketing-hero::before { content: ""; position: absolute; z-index: -1; width: 330px; height: 330px; left: -170px; bottom: -190px; border: 58px solid rgba(11, 199, 181, .12); border-radius: 50%; }
.marketing-kicker { color: #51e4d5; font-size: 12px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.marketing-hero h1 { max-width: 650px; margin: 18px 0 22px; font-size: clamp(47px, 6vw, 78px); line-height: .99; letter-spacing: -.06em; }
.marketing-hero-copy > p { max-width: 590px; margin: 0; color: #cbd9ea; font-size: 18px; line-height: 1.7; }
.marketing-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.button.marketing-primary { min-height: 49px; padding: 13px 22px; color: #052b36; background: #39dfcc; box-shadow: 0 12px 28px rgba(1, 13, 36, .2); }
.button.marketing-primary:hover { background: #7ceade; }
.button.marketing-secondary { min-height: 49px; padding: 13px 22px; color: white; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); }
.button.marketing-secondary:hover { background: rgba(255, 255, 255, .14); }
.hero-proof { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 18px; color: #adc3dc; font-size: 12px; }
.hero-proof span::before { content: "✓"; margin-right: 7px; color: #4ce4d3; font-weight: 900; }
.campaign-preview { position: relative; transform: rotate(1.2deg); border: 1px solid rgba(255,255,255,.18); border-radius: 22px; background: #f6f8fb; color: #14213d; box-shadow: 0 35px 80px rgba(0, 10, 30, .35); overflow: hidden; }
.campaign-preview::before { content: ""; position: absolute; inset: -38px -38px auto auto; width: 120px; height: 120px; border: 24px solid rgba(11,199,181,.18); border-radius: 50%; }
.preview-toolbar { height: 54px; padding: 0 20px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid #dfe5ed; background: white; }
.preview-toolbar i { width: 9px; height: 9px; border-radius: 50%; background: #d7dee8; }
.preview-toolbar i:nth-child(1) { background: #ffdc63; }
.preview-toolbar i:nth-child(2) { background: #4edacb; }
.preview-toolbar span { margin-left: 8px; color: #536176; font-size: 11px; font-weight: 750; }
.preview-content { padding: clamp(30px, 4vw, 50px); }
.preview-message { padding: clamp(28px, 4vw, 48px); border-radius: 16px; background: linear-gradient(145deg, #082a5c, #0c5383); color: white; }
.preview-label { display: inline-flex; padding: 6px 10px; border-radius: 999px; color: #83ede3; background: rgba(11,199,181,.14); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.preview-message h2 { max-width: 430px; margin: 19px 0 12px; font-size: clamp(27px, 3vw, 40px); line-height: 1.06; letter-spacing: -.04em; }
.preview-message p { max-width: 440px; margin: 0; color: #c7d8ea; font-size: 13px; line-height: 1.6; }
.preview-button { width: fit-content; margin-top: 24px; padding: 11px 16px; border-radius: 8px; color: #052d38; background: #3bddca; font-size: 11px; font-weight: 850; }
.preview-metrics { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.preview-metrics div { padding: 17px; border: 1px solid #e3e8ef; border-radius: 11px; background: white; }
.preview-metrics strong, .preview-metrics span { display: block; }
.preview-metrics strong { color: #0a467d; font-size: 20px; }
.preview-metrics span { margin-top: 4px; color: #748094; font-size: 10px; }
.marketing-section { padding: 115px max(24px, calc((100vw - 1180px) / 2)); }
.marketing-section-heading { max-width: 700px; margin: 0 auto 52px; text-align: center; }
.marketing-section-heading .marketing-kicker { color: #059b8e; }
.marketing-section-heading h2 { margin: 12px 0 15px; color: var(--marketing-navy); font-size: clamp(34px, 4vw, 52px); line-height: 1.05; letter-spacing: -.05em; }
.marketing-section-heading p { margin: 0; color: #68758a; font-size: 16px; line-height: 1.65; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-grid article { padding: 34px; border: 1px solid #e5eaf0; border-radius: 20px; background: #fff; box-shadow: 0 15px 42px rgba(14, 39, 78, .06); }
.feature-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, #082f65, #087e91); box-shadow: 0 9px 20px rgba(6, 57, 111, .18); font-size: 24px; font-style: normal; font-weight: 800; }
.feature-icon.alternate { background: linear-gradient(145deg, #06a99b, #29d8c5); }
.feature-icon.warm { color: #172444; background: linear-gradient(145deg, #ffd652, #f1bc15); }
.feature-grid h3 { margin: 25px 0 10px; color: var(--marketing-navy); font-size: 20px; }
.feature-grid p { margin: 0; color: #6b778a; font-size: 14px; line-height: 1.7; }
.pricing-section { padding: 110px max(24px, calc((100vw - 1180px) / 2)); background: #071d43; }
.marketing-section-heading.light h2 { color: white; }
.marketing-section-heading.light p { color: #afc0d5; }
.pricing-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.price-card { min-width: 0; padding: 26px 22px 22px; position: relative; border: 1px solid rgba(255,255,255,.15); border-radius: 17px; display: flex; flex-direction: column; color: white; background: rgba(255,255,255,.055); }
.price-card.popular { border-color: #3bddca; background: #0b3860; box-shadow: 0 0 0 1px #3bddca, 0 18px 36px rgba(0,0,0,.22); }
.popular-badge { position: absolute; top: -11px; left: 20px; padding: 5px 9px; border-radius: 999px; color: #052b36; background: #3bddca; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.plan-volume { color: #a8bdcf; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.plan-price { margin: 16px 0 12px; font-size: clamp(30px, 3vw, 39px); font-weight: 850; letter-spacing: -.05em; }
.plan-price sup { margin-right: 2px; color: #4ddfce; font-size: 15px; vertical-align: super; }
.plan-price small { margin-left: 4px; color: #91a8be; font-size: 10px; font-weight: 650; letter-spacing: 0; }
.price-card p { flex: 1; margin: 0 0 22px; color: #aebfd0; font-size: 12px; line-height: 1.55; }
.price-card .button { width: 100%; min-height: 42px; font-size: 11px; white-space: normal; }
.price-button { color: white; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); }
.price-button:hover { background: rgba(255,255,255,.14); }
.pricing-note { margin: 28px 0 0; color: #8298af; text-align: center; font-size: 11px; }
.marketing-cta { margin: 90px auto; width: min(1180px, calc(100% - 48px)); padding: 54px clamp(30px, 5vw, 70px); border-radius: 24px; display: flex; align-items: center; justify-content: space-between; gap: 30px; background: linear-gradient(120deg, #e4faf7, #f3fbff); }
.marketing-cta .marketing-kicker { color: #07998e; }
.marketing-cta h2 { max-width: 650px; margin: 11px 0 0; color: #071d43; font-size: clamp(29px, 4vw, 45px); line-height: 1.08; letter-spacing: -.045em; }
.marketing-footer { min-height: 130px; padding: 30px max(24px, calc((100vw - 1180px) / 2)); border-top: 1px solid #e5eaf0; display: grid; grid-template-columns: 210px 1fr auto; align-items: center; gap: 30px; color: #778397; font-size: 12px; }
.marketing-footer img { width: 190px; height: 64px; object-fit: contain; }
.marketing-footer p { text-align: center; }

/* Registration and verification */
.register-shell { grid-template-columns: minmax(380px, .8fr) minmax(540px, 1.2fr); }
.register-brand-panel { position: sticky; top: 0; height: 100vh; min-height: 720px; }
.register-brand-panel > a { position: relative; z-index: 2; }
.register-brand-panel > a img { width: min(360px, 90%); }
.register-brand-panel h1 { font-size: clamp(42px, 5vw, 64px); }
.register-form-panel { padding-block: 55px; }
.register-form-wrap { width: min(620px, 100%); }
.auth-help a { color: var(--navy); font-weight: 800; }
.verification-page { min-height: 100vh; padding: 40px 20px; display: grid; place-items: center; background: radial-gradient(circle at 50% 0%, #dff8f5, transparent 36%), #f4f7fb; }
.verification-card { width: min(520px, 100%); padding: 42px; border: 1px solid #e3e8ef; border-radius: 22px; background: white; text-align: center; box-shadow: 0 28px 70px rgba(11, 45, 86, .12); }
.verification-logo img { width: 230px; height: 78px; object-fit: contain; }
.verification-icon { width: 58px; height: 58px; margin: 20px auto; border-radius: 17px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, var(--navy), var(--teal)); font-size: 25px; box-shadow: 0 10px 24px rgba(4, 94, 121, .2); }
.verification-card h1 { margin: 8px 0 12px; color: var(--navy-dark); font-size: 34px; letter-spacing: -.04em; }
.verification-card > p:not(.eyebrow):not(.verification-help) { margin: 0 auto 25px; color: var(--muted); line-height: 1.65; }
.verification-card form { display: grid; gap: 12px; text-align: left; }
.verification-card form label { color: #263554; font-size: 13px; font-weight: 800; }
.verification-card form input { width: 100%; padding: 15px; border: 1px solid #cbd3df; border-radius: 10px; color: var(--navy-dark); font: inherit; font-size: 24px; font-weight: 800; letter-spacing: .3em; text-align: center; outline: none; }
.verification-card form input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8, 183, 170, .12); }
.verification-card form .button { width: 100%; margin-top: 4px; }
.verification-help { margin: 20px 0 0; color: #8490a2; font-size: 11px; line-height: 1.55; }

@media (max-width: 1050px) {
    .marketing-hero { grid-template-columns: 1fr; padding-block: 80px; }
    .marketing-hero-copy { text-align: center; }
    .marketing-hero-copy > p, .marketing-hero h1 { margin-left: auto; margin-right: auto; }
    .marketing-actions, .hero-proof { justify-content: center; }
    .campaign-preview { width: min(680px, 100%); margin: 0 auto; transform: none; }
    .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .register-shell { grid-template-columns: minmax(330px, .65fr) minmax(500px, 1.35fr); }
}

@media (max-width: 800px) {
    .marketing-nav { min-height: 76px; }
    .marketing-logo img { width: 175px; }
    .marketing-nav nav > a:not(.button) { display: none; }
    .marketing-hero { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-top: 70px; }
    .feature-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .marketing-cta { align-items: flex-start; flex-direction: column; }
    .marketing-footer { grid-template-columns: 1fr; text-align: center; }
    .marketing-footer img { margin: 0 auto; }
    .marketing-footer p { margin: 0; }
    .register-shell { grid-template-columns: 1fr; }
    .register-brand-panel { position: relative; height: auto; min-height: 380px; padding: 36px; gap: 75px; }
    .register-brand-panel h1 { font-size: 42px; }
}

@media (max-width: 520px) {
    .marketing-nav { width: calc(100% - 28px); }
    .marketing-logo img { width: 150px; height: 58px; }
    .marketing-nav .button { min-height: 38px; padding: 9px 14px; font-size: 12px; }
    .marketing-hero { padding-inline: 18px; }
    .marketing-hero h1 { font-size: 44px; }
    .marketing-hero-copy > p { font-size: 16px; }
    .campaign-preview { border-radius: 16px; }
    .preview-content { padding: 14px; }
    .preview-message { padding: 24px; }
    .preview-metrics div { padding: 12px 8px; }
    .preview-metrics strong { font-size: 16px; }
    .marketing-section, .pricing-section { padding: 78px 18px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .price-card { padding: 26px; }
    .marketing-cta { width: calc(100% - 36px); margin: 55px auto; }
    .register-brand-panel { min-height: 330px; padding: 28px 24px; }
    .register-brand-panel h1 { font-size: 36px; }
    .register-form-panel { padding: 42px 20px; }
    .register-form-panel .form-grid { grid-template-columns: 1fr; gap: 0; }
    .verification-card { padding: 32px 22px; }
}
