:root {
    --bg: #f4f6fb;
    --panel: #ffffff;
    --panel-soft: #f8fafd;
    --ink: #101828;
    --muted: #667085;
    --soft: #edf2ff;
    --line: #dfe6f2;
    --blue: #2863ff;
    --blue-dark: #183fb8;
    --green: #0f8a5f;
    --mint: #dff8ed;
    --purple: #7657ff;
    --amber: #b7791f;
    --red: #c0362c;
    --rose: #e14c67;
    --shadow: 0 18px 44px rgba(28, 39, 64, 0.10);
    --radius: 8px;
    --sidebar: #111827;
    --editor-ui-bg: #25282e;
    --editor-ui-bg-soft: #30343b;
    --editor-ui-line: rgba(255,255,255,.10);
    --editor-ui-text: #f7f8fb;
    --editor-ui-muted: rgba(255,255,255,.64);
    --editor-ui-control: rgba(255,255,255,.07);
    --editor-ui-control-hover: rgba(255,255,255,.10);
    --editor-ui-accent: #f05bad;
    --editor-ui-font-size: 13px;
    --editor-ui-field-size: 14px;
    --editor-ui-radius: 7px;
    --editor-ui-button-height: 30px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    color: var(--ink);
    background: linear-gradient(180deg, #fbfcff 0%, var(--bg) 52%, #eef2f7 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.app-shell {
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px 18px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.06), transparent 32%),
        var(--sidebar);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    padding: 8px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(145deg, var(--blue), #63d6a2);
    color: #fff;
    font-weight: 900;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    margin-top: 2px;
    color: rgba(255,255,255,0.62);
    font-size: 12px;
}

.nav-list {
    display: grid;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    text-decoration: none;
    color: rgba(255,255,255,0.72);
    border-radius: 8px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav-item:hover,
.nav-item.is-active {
    background: rgba(255,255,255,0.1);
    color: #fff;
    transform: translateX(2px);
}

.nav-item span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: rgba(255,255,255,0.09);
    font-size: 12px;
    font-weight: 800;
}

.sidebar-status {
    margin-top: auto;
    padding: 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
}

.sidebar-status strong,
.sidebar-status small {
    display: block;
}

.sidebar-status small {
    color: rgba(255,255,255,0.62);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 4px;
    background: #31d08f;
    box-shadow: 0 0 0 5px rgba(49,208,143,0.15);
}

.main {
    padding: 26px;
    min-width: 0;
}

.editor-clean-shell {
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    min-height: 100vh;
}

.editor-clean-shell .topbar,
.editor-clean-body .newsletter-studio-header,
.editor-clean-body .studio-left,
.editor-clean-body .editor-inline-library {
    display: none;
}

.editor-clean-shell .main {
    padding: 0;
}

.editor-clean-body .flash {
    max-width: 980px;
    margin: 12px auto;
}

.editor-clean-body .newsletter-studio-shell {
    min-height: 100vh;
    gap: 0;
}

.editor-clean-body .newsletter-composer-grid {
    display: block;
}

.editor-clean-body .studio-main {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fbfbfd;
}

.editor-clean-body .studio-toolbar {
    position: sticky;
    top: 0;
    z-index: 60;
    min-height: 50px;
    padding: 8px 14px;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
}

.editor-clean-body .studio-toolbar .eyebrow,
.editor-clean-body .studio-toolbar h3 {
    display: none;
}

.editor-clean-body .studio-builder-layout {
    min-height: calc(100vh - 50px);
}

.editor-clean-body .studio-preview .email-frame {
    min-height: calc(100vh - 50px);
}

.topbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.topbar h1,
.panel h2,
.domain-card h3 {
    margin: 0;
    letter-spacing: 0;
}

.topbar h1 {
    font-size: 30px;
}

.eyebrow {
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .11em;
    font-weight: 800;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-shell {
    height: 42px;
    min-width: 320px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,0.72);
}

.search-shell span {
    width: 10px;
    height: 10px;
    border: 2px solid #98a2b3;
    border-radius: 50%;
    position: relative;
}

.search-shell span::after {
    content: "";
    width: 6px;
    height: 2px;
    background: #98a2b3;
    position: absolute;
    right: -5px;
    bottom: -2px;
    transform: rotate(45deg);
}

.search-shell input {
    border: 0;
    background: transparent;
    outline: none;
    width: 100%;
}

.button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 800;
    white-space: nowrap;
}

.button.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    box-shadow: 0 14px 26px rgba(40,99,255,0.22);
}

.button.secondary {
    color: var(--ink);
    background: #fff;
    border-color: var(--line);
}

.button.full {
    width: 100%;
}

.mini-button {
    height: 30px;
    padding: 0 10px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
}

.mini-button.primary-mini {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    font-weight: 850;
}

.autosave-status {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.autosave-status.saving {
    background: #fff7e6;
    border-color: #ffdba6;
    color: #845100;
}

.autosave-status.saved {
    background: #edfff7;
    border-color: #bdeed8;
    color: #075c3f;
}

.autosave-status.error {
    background: #fff0ef;
    border-color: #ffd1ce;
    color: var(--red);
}

.flash {
    margin: 0 0 18px;
    padding: 13px 15px;
    border-radius: 8px;
    background: var(--mint);
    color: #075c3f;
    border: 1px solid #bdeed8;
    font-weight: 700;
}

.flash.error {
    background: #fff0ef;
    border-color: #ffd1ce;
    color: var(--red);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.metric-card,
.panel,
.settings-card {
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(216, 226, 240, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.metric-card {
    min-height: 144px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    border-top: 3px solid var(--blue);
}

.metric-card.tone-green { border-top-color: var(--green); }
.metric-card.tone-purple { border-top-color: var(--purple); }
.metric-card.tone-amber { border-top-color: var(--amber); }

.metric-card span,
.metric-card small {
    color: var(--muted);
}

.metric-card strong {
    font-size: 32px;
    letter-spacing: 0;
}

.dashboard-grid,
.content-grid {
    display: grid;
    gap: 16px;
}

.dashboard-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(340px, .75fr);
}

.content-grid.two-one {
    grid-template-columns: minmax(0, 1fr) 390px;
    align-items: start;
}

.stack {
    display: grid;
    gap: 16px;
}

.panel {
    padding: 22px;
    min-width: 0;
}

.panel.wide {
    grid-column: span 1;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 900;
}

.campaign-stage {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
}

.stage-step {
    min-height: 78px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: var(--panel-soft);
    font-size: 13px;
}

.stage-step span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    margin-bottom: 8px;
    background: #fff;
    color: var(--muted);
    font-weight: 900;
}

.stage-step.done {
    background: #eef8f3;
    border-color: #cceedd;
    color: #096143;
}

.stage-step.done span {
    background: var(--green);
    color: #fff;
}

.split {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 16px;
}

.preflight-list,
.advisor-card,
.recommendation,
.why-box {
    border: 1px solid var(--line);
    background: var(--panel-soft);
    border-radius: 8px;
    padding: 16px;
}

.preflight-list h3 {
    margin: 0 0 12px;
}

.editor-ai-assistant {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 140;
    width: min(390px, calc(100vw - 28px));
    display: grid;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(20, 31, 55, .12);
    border-radius: 10px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 20px 52px rgba(16, 24, 40, .18);
    backdrop-filter: blur(16px);
}

.editor-ai-assistant-head {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.editor-ai-assistant-head > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.editor-ai-assistant-head strong,
.editor-ai-assistant-head small {
    display: block;
    min-width: 0;
}

.editor-ai-assistant-head strong {
    color: var(--ink);
    font-size: 14px;
}

.editor-ai-assistant-head small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.editor-ai-assistant-head button,
.editor-ai-suggestion button {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.editor-ai-command {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.editor-ai-command textarea {
    min-height: 44px;
    max-height: 96px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    resize: vertical;
    font: inherit;
    font-size: 12px;
    line-height: 1.35;
    outline: none;
}

.editor-ai-command textarea::placeholder {
    color: #98a2b3;
}

.editor-ai-command textarea:focus {
    border-color: rgba(40,99,255,.48);
    box-shadow: 0 0 0 3px rgba(40,99,255,.1);
}

.editor-ai-command button {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #111827;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 850;
}

.editor-ai-assistant.has-suggestions {
    border-color: rgba(40,99,255,.28);
    box-shadow: 0 22px 62px rgba(40, 99, 255, .18);
}

.editor-ai-assistant.has-suggestions .editor-ai-assistant-head > span {
    background: var(--blue);
}

.editor-ai-assistant-body {
    display: grid;
    gap: 9px;
}

.editor-ai-assistant-body[hidden] {
    display: none;
}

.editor-ai-assistant-summary {
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8fafc;
    color: #475467;
    font-size: 13px;
    line-height: 1.4;
}

.editor-ai-assistant-actions {
    display: grid;
    gap: 8px;
    max-height: min(54vh, 470px);
    overflow: auto;
}

.editor-ai-suggestion {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.editor-ai-suggestion strong {
    display: block;
    margin-bottom: 3px;
    color: var(--ink);
    font-size: 13px;
}

.editor-ai-suggestion p,
.editor-ai-suggestion small,
.editor-ai-empty {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.editor-ai-suggestion small {
    display: block;
    margin-top: 7px;
    padding: 7px 8px;
    border-radius: 7px;
    background: #f8fafc;
}

.editor-ai-suggestion > span {
    display: grid;
    gap: 6px;
    align-content: start;
}

.editor-ai-suggestion button:first-child {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #fff;
}

.editor-ai-empty {
    padding: 9px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 31px;
    color: var(--muted);
}

.check-row span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--amber);
}

.check-row.ok span {
    background: var(--green);
}

.check-row.warn span {
    background: var(--amber);
}

.advisor-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.advisor-card p {
    grid-column: 1 / -1;
    color: var(--muted);
    line-height: 1.55;
    margin: 0;
}

.score-ring {
    --size: 118px;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    margin: 0 auto;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--blue) calc(var(--score) * 1%), #e8edf6 0);
    position: relative;
}

.score-ring::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: #fff;
}

.score-ring strong,
.score-ring span {
    position: relative;
    z-index: 1;
    display: block;
    text-align: center;
}

.score-ring strong {
    font-size: 26px;
}

.score-ring span {
    margin-top: 36px;
    position: absolute;
    color: var(--muted);
    font-size: 11px;
}

.usage-meter {
    height: 12px;
    border-radius: 999px;
    background: #e7edf6;
    overflow: hidden;
}

.usage-meter div {
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--blue));
    border-radius: inherit;
}

.meter-caption,
.domain-card p,
.recommendation p,
.why-box p {
    color: var(--muted);
    line-height: 1.55;
}

.mini-list,
.feature-list,
.segment-list,
.campaign-list,
.flow-list {
    display: grid;
    gap: 10px;
}

.mini-list span,
.feature-list span,
.segment-card,
.template-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    border-radius: 8px;
    padding: 11px 12px;
}

.feature-list em {
    color: var(--green);
    font-style: normal;
    font-weight: 800;
}

.table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.table-wrap.tight {
    margin-top: 14px;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

th {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    background: #f8fafd;
}

td small,
.campaign-row small,
.campaign-row span,
.flow-head span,
.segment-card span,
.segment-card small,
.template-row span {
    display: block;
    color: var(--muted);
    margin-top: 3px;
}

tr:last-child td {
    border-bottom: 0;
}

.status-chip,
.dns-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    background: #edf2ff;
    color: var(--blue-dark);
}

.status-chip.hot,
.status-chip.active,
.dns-pill.valid {
    background: #e4f7ee;
    color: #076145;
}

.status-chip.cooling,
.status-chip.draft,
.dns-pill.pending {
    background: #fff5df;
    color: #845100;
}

.status-chip.inactive,
.status-chip.at_risk,
.dns-pill.failed {
    background: #fff0ef;
    color: var(--red);
}

.status-chip.paused,
.status-chip.waiting_server,
.status-chip.provisioning {
    background: #fff5df;
    color: #845100;
}

.status-chip.queued,
.status-chip.running,
.status-chip.completed {
    background: #e4f7ee;
    color: #076145;
}

.form-grid {
    display: grid;
    gap: 12px;
}

label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff;
    outline: none;
}

textarea {
    min-height: 92px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(40,99,255,.65);
    box-shadow: 0 0 0 4px rgba(40,99,255,.12);
}

.inline-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 12px;
}

.editor-shell {
    display: grid;
    grid-template-columns: 240px minmax(420px, 1fr) 350px;
    gap: 16px;
    align-items: start;
}

.editor-rail,
.email-preview,
.editor-settings {
    min-width: 0;
}

.editor-rail,
.email-preview {
    background: rgba(255,255,255,.82);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.editor-rail {
    padding: 16px;
    display: grid;
    gap: 18px;
}

.rail-section {
    display: grid;
    gap: 8px;
}

.block-button,
.saved-block {
    min-height: 40px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
}

.saved-block {
    background: var(--panel-soft);
    color: var(--muted);
    cursor: pointer;
}

.email-preview {
    overflow: hidden;
}

.preview-toolbar {
    min-height: 58px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-weight: 800;
}

.email-frame {
    padding: 32px;
    min-height: 680px;
    display: grid;
    place-items: start center;
    background: #fff;
    transition: padding .2s ease;
}

.email-frame.mobile .email-card {
    max-width: 360px;
}

.email-card {
    width: 100%;
    max-width: 620px;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    padding: 18px 34px 34px;
}

.email-brand {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 34px;
}

.email-card h2 {
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 10px;
    font-weight: 600;
}

.email-preview-image {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.email-card p {
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}

.email-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 17px;
    border-radius: 8px;
    color: #fff;
    background: var(--blue);
    text-decoration: none;
    font-weight: 900;
}

.email-divider {
    height: 1px;
    background: var(--line);
    margin: 34px 0 18px;
}

.email-muted {
    font-size: 13px;
}

.editor-settings {
    display: grid;
    gap: 14px;
}

.newsletter-studio-shell {
    display: grid;
    gap: 16px;
}

.newsletter-studio-header,
.studio-setup-form,
.studio-main,
.studio-panel {
    background: rgba(255,255,255,.86);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.newsletter-studio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 20px;
}

.newsletter-studio-header h2,
.studio-card-head h3,
.studio-toolbar h3,
.studio-inspector h3 {
    margin: 0;
    letter-spacing: 0;
}

.newsletter-studio-header p {
    margin: 6px 0 0;
    color: var(--muted);
}

.campaign-stepper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.studio-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.history-top-button {
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-weight: 850;
    box-shadow: 0 6px 18px rgba(18, 32, 55, .08);
}

.history-top-button span {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f4f7fb;
    color: var(--blue-dark);
    line-height: 1;
}

.history-top-button i {
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #eef3ff;
    color: var(--blue-dark);
    font-size: 11px;
    font-style: normal;
}

.campaign-history-drawer {
    position: fixed;
    z-index: 90;
    top: 0;
    right: 0;
    width: min(360px, 100vw);
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-left: 1px solid var(--line);
    box-shadow: -24px 0 55px rgba(15, 23, 42, .18);
}

body.history-open {
    overflow: hidden;
}

body.history-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(15, 23, 42, .32);
}

.campaign-history-drawer[hidden] {
    display: none;
}

.inbox-preview-panel {
    position: fixed;
    z-index: 82;
    top: 0;
    right: 0;
    bottom: 0;
    left: 286px;
    display: grid;
    grid-template-rows: 58px minmax(0, 1fr);
    background: #f8f8f9;
    box-shadow: -18px 0 60px rgba(15,23,42,.14);
}

.inbox-preview-panel[hidden] {
    display: none;
}

.preview-workbench-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
}

.preview-toolbar-left,
.preview-toolbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.preview-segment {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border: 1px solid #e6e8ee;
    border-radius: 6px;
    background: #f0f1f4;
}

.preview-segment button,
.preview-icon-button,
.preview-close-button {
    min-height: 30px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 850;
}

.preview-segment button {
    padding: 0 12px;
}

.preview-segment button.active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 2px 7px rgba(15,23,42,.08);
}

.preview-icon-button,
.preview-close-button {
    width: 34px;
    display: grid;
    place-items: center;
    background: #f0f1f4;
    color: var(--ink);
}

.preview-close-button {
    font-size: 22px;
    line-height: 1;
}

.preview-testmail-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.preview-testmail-form input {
    width: 220px;
    height: 32px;
    border-radius: 6px;
    font-size: 13px;
}

.preview-device-stage {
    min-height: 0;
    overflow: auto;
    padding: 26px 34px 40px;
    display: grid;
    place-items: start center;
}

.preview-client-window {
    display: none;
    width: min(1060px, 100%);
    min-height: calc(100vh - 126px);
    overflow: hidden;
    border: 1px solid #e6e8ee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(15,23,42,.08);
}

.preview-client-window.active {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
}

.preview-web-window.active {
    grid-template-rows: auto minmax(0, 1fr);
}

.preview-window-top,
.preview-browser-bar {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 22px;
    border-bottom: 1px solid #e6e8ee;
    background: #f2f3f5;
}

.preview-window-top span,
.preview-browser-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.preview-window-top span:nth-child(1),
.preview-browser-bar span:nth-child(1) { background: #ff605c; }
.preview-window-top span:nth-child(2),
.preview-browser-bar span:nth-child(2) { background: #ffbd44; }
.preview-window-top span:nth-child(3),
.preview-browser-bar span:nth-child(3) { background: #00ca4e; }

.preview-browser-bar input {
    flex: 1;
    height: 30px;
    margin-left: 12px;
    border: 1px solid #e6e8ee;
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-size: 12px;
}

.preview-email-meta {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px 20px;
    padding: 18px 24px;
    border-bottom: 1px solid #e6e8ee;
    background: #fafbfc;
    font-size: 13px;
}

.preview-email-meta span {
    color: var(--muted);
}

.preview-email-meta strong {
    font-weight: 850;
    color: var(--ink);
}

.preview-frame-shell {
    min-height: 0;
    overflow: auto;
    background: #fff;
}

.preview-frame-shell iframe {
    display: block;
    width: 100%;
    min-height: calc(100vh - 230px);
    border: 0;
    background: #fff;
}

.preview-device-stage.mobile {
    padding-top: 22px;
}

.preview-device-stage.mobile .preview-client-window {
    width: 414px;
    max-width: 100%;
    min-height: calc(100vh - 114px);
    border-radius: 28px;
    border: 10px solid #16181d;
    box-shadow: 0 20px 70px rgba(15,23,42,.2);
}

.preview-device-stage.mobile .preview-window-top {
    display: none;
}

.preview-device-stage.mobile .preview-email-meta {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 15px 18px;
}

.preview-device-stage.mobile .preview-frame-shell iframe {
    min-height: calc(100vh - 206px);
}

.campaign-history-head,
.campaign-history-foot {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

.campaign-history-foot {
    border-top: 1px solid var(--line);
    border-bottom: 0;
    justify-content: flex-end;
}

.campaign-history-head strong {
    font-size: 15px;
}

.campaign-history-head button {
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.campaign-history-head button:hover {
    background: #f4f7fb;
}

.campaign-history-scroll {
    flex: 1;
    overflow: auto;
    padding: 12px 10px 18px;
}

.history-version-card {
    border: 0;
    border-radius: 6px;
    margin: 0 0 8px;
    background: transparent;
}

.history-version-card[open],
.history-version-card.current {
    background: #f7f9fc;
}

.history-version-card summary {
    min-height: 68px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    cursor: pointer;
    list-style: none;
}

.history-version-card summary::-webkit-details-marker {
    display: none;
}

.history-version-card summary::after {
    content: "⌄";
    color: var(--muted);
    font-size: 16px;
}

.history-version-card[open] summary::after {
    transform: rotate(180deg);
}

.history-version-card summary span {
    display: grid;
    gap: 2px;
}

.history-version-card strong {
    font-size: 14px;
}

.history-version-card em {
    color: var(--ink);
    font-style: normal;
    font-size: 13px;
    font-weight: 850;
}

.history-version-card small,
.history-version-detail small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.history-version-detail {
    display: grid;
    gap: 10px;
    padding: 0 12px 12px;
}

.history-version-detail p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.history-current-pill {
    width: max-content;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef3ff;
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 850;
}

.history-empty {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: #fbfcff;
}

.history-empty p {
    margin: 0;
    color: var(--muted);
}

.campaign-stepper span {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-weight: 800;
}

.campaign-stepper strong {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eef3ff;
    color: var(--blue-dark);
    font-size: 12px;
}

.campaign-stepper span.active {
    border-color: rgba(40,99,255,.28);
    background: #f1f5ff;
    color: var(--ink);
}

.newsletter-composer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 330px) minmax(520px, 1fr);
    gap: 16px;
    align-items: start;
}

.studio-left,
.studio-right {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.studio-right {
    display: none;
}

.studio-setup-form,
.studio-panel {
    padding: 16px;
}

.studio-setup-form {
    display: grid;
    gap: 12px;
}

.studio-card-head,
.studio-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.two-field-row,
.inspector-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.advanced-settings {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: #f8fbff;
}

.advanced-settings summary {
    cursor: pointer;
    font-weight: 900;
}

.advanced-settings[open] {
    display: grid;
    gap: 10px;
}

.review-checks {
    display: grid;
    gap: 8px;
}

.review-checks span {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 32px;
    color: var(--muted);
    font-weight: 800;
}

.review-checks i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--amber);
}

.review-checks .ok i {
    background: var(--green);
}

.studio-main {
    overflow: hidden;
    min-width: 0;
}

.editor-studio-main {
    overflow: visible;
}

.studio-toolbar {
    position: relative;
    min-height: 64px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

.editor-flow-strip {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    max-width: min(520px, 46vw);
    transform: translate(-50%, -50%);
    opacity: .34;
    pointer-events: none;
    transition: opacity .16s ease;
}

.studio-toolbar:hover .editor-flow-strip,
.studio-toolbar:focus-within .editor-flow-strip {
    opacity: .9;
}

.editor-flow-strip span {
    color: #c2c8d2;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.editor-flow-strip span.active {
    color: #111827;
}

.editor-studio-main:not([data-editor-step="compose"]) .block-insert-trigger,
.editor-studio-main:not([data-editor-step="compose"]) [data-preview-width] {
    display: none;
}

.editor-step-panel[hidden] {
    display: none;
}

.editor-step-panel.active {
    display: block;
}

.editor-flow-strip i {
    width: 22px;
    height: 1px;
    flex: 0 0 auto;
    background: #e4e7ec;
}

.studio-builder-layout {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    min-height: 720px;
}

.studio-builder-layout.block-editor-layout {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    background: #fbfbfd;
}

.audience-step-panel {
    min-height: calc(100vh - 64px);
    padding: 38px 24px 70px;
    background: #fff;
}

.audience-workspace {
    width: min(552px, 100%);
    display: grid;
    gap: 24px;
    margin: 0 auto;
}

.audience-publish-card,
.audience-card {
    border: 1px solid #dfe3ea;
    border-radius: 7px;
    background: #fff;
}

.audience-publish-card {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 16px 24px;
}

.audience-publish-card > strong {
    color: #111827;
    font-size: 16px;
    font-weight: 650;
    white-space: nowrap;
}

.audience-publish-options {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.audience-publish-options button {
    height: 38px;
    padding: 0 15px;
    border: 1px solid #dfe3ea;
    border-radius: 6px;
    background: #fff;
    color: #4b5563;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
}

.audience-publish-options button.active {
    border-color: #ded3ff;
    background: #f4efff;
    color: #6b36c9;
    box-shadow: 0 1px 4px rgba(107, 54, 201, .08);
}

.audience-card {
    display: grid;
    gap: 16px;
    padding: 24px;
    background: #fafbfc;
}

.audience-card header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.audience-card h3 {
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 650;
}

.audience-count-pill {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 8px;
    border: 1px solid #ded3ff;
    border-radius: 5px;
    background: #f1ebff;
    color: #6b36c9;
    font-size: 12px;
    font-weight: 650;
}

.audience-box {
    display: grid;
    gap: 14px;
    padding: 24px;
    border: 1px solid #dfe3ea;
    border-radius: 6px;
    background: #fff;
}

.audience-box > strong,
.audience-box-row > strong {
    color: #111827;
    font-size: 14px;
    font-weight: 650;
}

.audience-check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    font-size: 14px;
    font-weight: 650;
}

.audience-check input {
    width: 16px;
    height: 16px;
    accent-color: #7c3aed;
}

.audience-check em {
    color: #667085;
    font-style: normal;
    font-weight: 400;
}

.audience-box-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.audience-switch {
    width: 36px;
    height: 22px;
    display: flex;
    align-items: center;
    padding: 2px;
    border: 0;
    border-radius: 999px;
    background: #d9dde6;
    cursor: pointer;
    transition: background .14s ease;
}

.audience-switch span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .18);
    transition: transform .14s ease;
}

.audience-switch[aria-pressed="true"] {
    background: #111827;
}

.audience-switch[aria-pressed="true"] span {
    transform: translateX(14px);
}

.audience-segment-expanded {
    display: grid;
    gap: 16px;
    padding-top: 12px;
}

.audience-segment-expanded[hidden] {
    display: none;
}

.audience-segment-expanded label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 650;
}

.audience-segment-expanded select {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #dfe3ea;
    border-radius: 6px;
    background: #fff;
    color: #98a2b3;
    font-size: 14px;
}

.audience-box a,
.audience-segment-expanded a {
    color: #b42367;
    font-size: 12px;
    font-weight: 650;
}

.audience-footer-actions {
    display: flex;
    justify-content: flex-end;
}

.email-settings-step,
.review-step-panel {
    min-height: calc(100vh - 64px);
    padding: 38px 24px 70px;
    background: #fff;
}

.email-settings-workspace {
    width: min(478px, 100%);
    display: grid;
    gap: 16px;
    margin: 0 auto;
}

.email-settings-card {
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid #dfe3ea;
    border-radius: 7px;
    background: #fff;
}

.email-settings-card.compact {
    gap: 13px;
}

.email-settings-card h3 {
    margin: 0;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
}

.email-settings-card p {
    margin: 0;
    color: #344054;
    font-size: 13px;
    line-height: 1.5;
}

.email-info-banner,
.email-warning {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
}

.email-info-banner {
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #2f3b8f;
}

.email-warning {
    border: 1px solid #f4d77d;
    background: #fff8df;
    color: #9a6700;
}

.email-info-banner span,
.email-warning span {
    width: 15px;
    height: 15px;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: currentColor;
    color: #fff;
    font-size: 10px;
    line-height: 1;
}

.email-setting-head,
.email-toggle-line,
.email-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
}

.email-toggle-row input,
.email-toggle-line input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.email-toggle-row i,
.email-toggle-line i {
    width: 34px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border-radius: 999px;
    background: #d9dde6;
    transition: background .14s ease;
}

.email-toggle-row i::before,
.email-toggle-line i::before {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .18);
    transition: transform .14s ease;
}

.email-toggle-row input:checked + i,
.email-toggle-line input:checked + i {
    background: #c02670;
}

.email-toggle-row input:checked + i::before,
.email-toggle-line input:checked + i::before {
    transform: translateX(14px);
}

.subject-variants {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #dfe3ea;
    border-radius: 6px;
    background: #fafbfc;
}

.subject-variants label {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 7px 10px;
    align-items: center;
}

.subject-variants label > span {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border: 1px solid #dfe3ea;
    border-radius: 4px;
    background: #fff;
    color: #344054;
    font-size: 11px;
    font-weight: 700;
}

.subject-variants label:nth-of-type(2) > span {
    color: #b42367;
    background: #fff1f7;
}

.subject-variants input,
.email-preview-text-field input,
.email-full-input {
    width: 100%;
    height: 38px;
    padding: 0 11px;
    border: 1px solid #dfe3ea;
    border-radius: 6px;
    background: #fff;
    color: #111827;
    font-size: 13px;
}

.subject-variants small {
    grid-column: 2;
}

.subject-variants small,
.email-preview-text-field small {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #667085;
    font-size: 10px;
    line-height: 1.4;
}

.subject-variants small em,
.email-preview-text-field small em {
    color: #344054;
    font-style: normal;
}

.email-soft-button {
    justify-self: start;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #dfe3ea;
    border-radius: 6px;
    background: #fff;
    color: #98a2b3;
    cursor: pointer;
    font-size: 12px;
    font-weight: 650;
}

.ab-test-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #111827;
    font-size: 12px;
    font-weight: 650;
}

.ab-test-controls[hidden] {
    display: none;
}

.ab-test-controls label {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #dfe3ea;
    border-radius: 6px;
    background: #fff;
}

.ab-test-controls input {
    width: 46px;
    height: 32px;
    border: 0;
    padding: 0 9px;
    font-size: 13px;
}

.ab-test-controls span {
    padding-right: 9px;
}

.email-preview-text-field {
    display: grid;
    gap: 8px;
    color: #111827;
    font-size: 13px;
}

.email-settings-card details {
    display: grid;
    gap: 14px;
}

.email-settings-card summary {
    cursor: pointer;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
}

.review-publish-workspace {
    width: min(496px, 100%);
    display: grid;
    gap: 20px;
    margin: 0 auto;
}

.review-publish-hero {
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: 6px 0 2px;
}

.review-publish-hero span {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    background: #fdf0f7;
    color: #db2777;
    font-size: 24px;
}

.review-publish-hero h2 {
    margin: 0;
    color: #0f172a;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 750;
}

.review-publish-card {
    overflow: hidden;
    border: 1px solid #dfe3ea;
    border-radius: 7px;
    background: #fff;
}

.review-publish-card header {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.review-publish-card header > span {
    color: #db2777;
    font-size: 20px;
}

.review-publish-card header strong {
    flex: 1;
    color: #667085;
    font-size: 14px;
    font-weight: 600;
}

.review-publish-card header b {
    color: #111827;
    font-weight: 750;
}

.review-publish-card header button {
    border: 0;
    background: transparent;
    color: #667085;
    cursor: pointer;
}

.review-publish-body {
    display: grid;
    gap: 20px;
    padding: 16px 20px 28px;
}

.review-publish-body.single {
    gap: 18px;
}

.review-publish-body strong {
    margin-right: 5px;
    color: #111827;
    font-size: 12px;
    font-weight: 750;
}

.review-publish-body span,
.review-publish-body p {
    margin: 0;
    color: #475467;
    font-size: 12px;
    line-height: 1.55;
}

.review-publish-body em {
    display: table;
    margin-top: 9px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #344054;
    font-size: 11px;
    font-style: normal;
}

.review-publish-card footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px 18px;
    background: #f8fafc;
}

.review-schedule-row {
    display: flex;
    justify-content: flex-end;
}

.review-schedule-row .mini-button {
    height: 38px;
    padding: 0 14px;
    background: #111827;
    border-color: #111827;
}

.block-command-menu {
    position: absolute;
    z-index: 20;
    top: 24px;
    left: 48px;
    width: min(600px, calc(100% - 32px));
    max-height: min(860px, calc(100vh - 96px));
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    background: #24272d;
    color: #fff;
    box-shadow: 0 24px 70px rgba(16, 24, 40, .32);
}

.block-command-menu.is-anchored {
    position: fixed;
    z-index: 120;
}

.block-command-menu[hidden] {
    display: none;
}

.block-command-head {
    display: none;
}

.block-command-head > span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: #f05bad;
    font-weight: 900;
}

.block-command-head strong,
.block-command-head small {
    display: block;
}

.block-command-head small {
    color: rgba(255,255,255,.56);
}

.block-command-scroll {
    max-height: min(860px, calc(100vh - 96px));
    overflow: auto;
    padding: 14px 14px 12px;
}

.block-command-group {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.block-command-group h4 {
    margin: 0;
    color: rgba(255,255,255,.58);
    font-size: 12px;
    font-weight: 650;
}

.block-command-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 12px;
}

.command-block-button {
    min-height: 35px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    text-align: left;
}

.command-block-button:hover,
.command-block-button:focus {
    outline: none;
    background: rgba(255,255,255,.07);
}

.command-block-button span {
    color: #d85ad3;
    font-size: 12px;
    font-weight: 900;
}

.command-block-button strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 750;
}

.block-insert-trigger {
    color: #fff;
    background: #25282e;
    border-color: #25282e;
}

.studio-palette {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 14px;
    border-right: 1px solid var(--line);
    background: #fbfdff;
}

.palette-group {
    display: grid;
    gap: 8px;
}

.palette-group h4 {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.palette-button {
    min-height: 42px;
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 9px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
}

.palette-button span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: #eef3ff;
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 900;
}

.palette-button.element span {
    background: #fff5df;
    color: #845100;
}

.palette-button strong {
    font-size: 13px;
}

.studio-preview.email-preview {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible;
}

.studio-preview .email-frame {
    min-height: 720px;
    overflow: visible;
}

.post-compose-head {
    display: grid;
    gap: 10px;
    padding: 4px 0 20px;
}

.post-visibility-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #b6bcc8;
    font-size: 12px;
    font-weight: 400;
}

.post-visibility-row span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #c9ced8;
}

.post-compose-head h2 {
    margin: 0;
    color: #111827;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 0;
    font-weight: 600;
}

.post-compose-head > p:not(.post-visibility-row) {
    margin: 0;
    color: #b4bac5;
    font-size: 14px;
}

.post-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.post-author-row span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border: 1px solid #d8ccff;
    border-radius: 999px;
    background: #f0eaff;
    color: #49319a;
    font-size: 13px;
    font-weight: 900;
}

.post-author-row button {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #515867;
    cursor: pointer;
    font-size: 20px;
}

.studio-inspector {
    position: sticky;
    top: 16px;
}

.studio-inspector [data-inspector-empty] {
    color: var(--muted);
    line-height: 1.5;
}

.inspector-fields {
    grid-template-columns: 1fr;
    margin-top: 12px;
}

.inspector-subhead {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.inspector-fields label[hidden],
.inspector-subhead[hidden],
.audio-upload-help[hidden] {
    display: none;
}

.inspector-fields input[type="color"] {
    min-height: 42px;
    padding: 4px;
}

.saved-block-list,
.asset-pick-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.asset-pick-button {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
}

.asset-pick-button span {
    padding: 3px 7px;
    border-radius: 999px;
    background: #eef3ff;
    color: var(--blue-dark);
    font-size: 11px;
    font-weight: 900;
}

.muted {
    color: var(--muted);
}

.settings-card {
    padding: 16px;
}

.settings-card.compact {
    box-shadow: none;
}

.campaign-row,
.flow-card,
.domain-card {
    border: 1px solid var(--line);
    background: var(--panel-soft);
    border-radius: 8px;
    padding: 15px;
}

.campaign-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.campaign-metrics {
    text-align: right;
}

.simulation-grid,
.dns-status-grid,
.insight-grid,
.admin-grid {
    display: grid;
    gap: 10px;
}

.simulation-grid {
    grid-template-columns: repeat(2, 1fr);
}

.simulation-grid div,
.insight-card,
.admin-grid div,
.attribution-map div {
    border: 1px solid var(--line);
    background: var(--panel-soft);
    border-radius: 8px;
    padding: 13px;
}

.simulation-grid strong,
.admin-grid strong,
.attribution-map strong {
    display: block;
    font-size: 24px;
}

.simulation-grid span,
.admin-grid span,
.attribution-map span,
.insight-card span {
    color: var(--muted);
}

.why-box,
.recommendation {
    margin-top: 12px;
}

.domain-card + .domain-card {
    margin-top: 14px;
}

.domain-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.dns-status-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin-top: 12px;
}

.dns-hostname-editor {
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.dns-hostname-head,
.dns-hostname-row {
    display: grid;
    grid-template-columns: 92px minmax(260px, 1fr) minmax(240px, 0.9fr);
    gap: 16px;
    align-items: start;
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
}

.dns-hostname-head {
    grid-template-columns: 1fr auto;
    align-items: center;
    background: #f8fafd;
}

.dns-hostname-head strong,
.dns-hostname-host label,
.dns-hostname-content label {
    display: block;
    font-size: 12px;
    font-weight: 900;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.dns-hostname-head span,
.dns-hostname-host small,
.dns-hostname-content small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.dns-hostname-row:last-child {
    border-bottom: 0;
}

.dns-hostname-type {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
}

.dns-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 5px;
    background: #55bfd0;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.dns-state-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #ddb669;
    box-shadow: inset 0 0 0 4px rgba(255,255,255,.55);
}

.dns-state-dot.ok {
    background: #1eaa78;
}

.dns-state-dot.warn {
    background: #dd6961;
}

.hostname-input-line,
.copy-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hostname-input-line {
    flex-wrap: wrap;
    margin-top: 5px;
}

.hostname-input-line input {
    flex: 1 1 220px;
    min-width: 0;
    height: 36px;
    padding: 0 10px;
}

.hostname-input-line span {
    flex: 0 0 auto;
    color: var(--muted);
    white-space: nowrap;
}

.copy-line {
    margin-top: 5px;
}

.copy-line code {
    min-width: 0;
    overflow-wrap: anywhere;
}

.copy-button {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fff;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.copy-button.copied {
    border-color: #bde9d5;
    background: #e8f8f0;
    color: #076145;
}

code {
    color: #344054;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 3px 6px;
    word-break: break-word;
}

.flow-card + .flow-card {
    margin-top: 12px;
}

.flow-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.flow-nodes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.flow-node {
    min-height: 82px;
    border: 1px dashed #c7d2e4;
    border-radius: 8px;
    background: #fff;
    padding: 12px;
    color: var(--muted);
}

.flow-node span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    margin-bottom: 8px;
    background: var(--blue);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.bar-report {
    display: grid;
    gap: 13px;
}

.bar-row {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 54px;
    align-items: center;
    gap: 12px;
}

.bar-row div {
    height: 12px;
    border-radius: 999px;
    background: #e8eef7;
    overflow: hidden;
}

.bar-row i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--green));
}

.insight-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 18px;
}

.attribution-map {
    display: grid;
    gap: 10px;
}

.attribution-map div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.growth-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
    background: #ffffff;
}

.growth-hero h2 {
    max-width: 880px;
    margin: 0;
    font-size: 34px;
    line-height: 1.08;
}

.growth-hero p {
    max-width: 820px;
    color: var(--muted);
    line-height: 1.65;
}

.growth-scoreboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.growth-scoreboard div,
.form-card,
.brand-preview,
.toggle-row,
.suppression-mini,
.api-row {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
    padding: 14px;
}

.growth-scoreboard strong {
    display: block;
    font-size: 28px;
}

.growth-scoreboard span,
.form-card span,
.form-stats,
.suppression-mini span,
.api-row span,
.api-row small,
.brand-preview p,
.brand-preview small {
    color: var(--muted);
}

.form-card-grid,
.api-list,
.preference-preview {
    display: grid;
    gap: 12px;
}

.form-card-top,
.api-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.form-card strong,
.form-card span {
    display: block;
}

.form-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 14px 0;
}

.form-stats span {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.form-stats strong {
    color: var(--ink);
}

.embed-code {
    display: block;
    padding: 10px;
}

.brand-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 16px;
    align-items: start;
}

.brand-preview {
    min-height: 100%;
    background: #fff;
}

.brand-preview-mark {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 12px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    font-weight: 900;
}

.brand-preview h3 {
    margin: 22px 0 8px;
    font-size: 26px;
}

.brand-colors {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}

.color-chip {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.color-chip.primary {
    background: var(--brand);
}

.color-chip.accent {
    background: var(--accent);
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.toggle-row strong {
    color: var(--green);
}

.toggle-row.muted strong {
    color: var(--muted);
}

.suppression-mini {
    margin-top: 14px;
    display: grid;
    gap: 6px;
}

.api-row {
    background: #fff;
}

.api-row div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.api-row em {
    color: var(--green);
    font-style: normal;
    font-weight: 900;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 520px) minmax(0, 1fr);
    background: #f4f6fb;
}

.auth-panel {
    padding: 34px;
    background: #fff;
    display: grid;
    align-content: start;
    gap: 22px;
    box-shadow: 18px 0 44px rgba(28, 39, 64, 0.08);
}

.auth-brand {
    color: var(--ink);
    padding: 0;
}

.auth-brand small {
    color: var(--muted);
}

.auth-copy h2,
.auth-aside h1 {
    margin: 0;
    letter-spacing: 0;
}

.auth-copy p,
.auth-aside p {
    color: var(--muted);
    line-height: 1.6;
}

.auth-switch {
    color: var(--muted);
}

.auth-switch a {
    color: var(--blue-dark);
    font-weight: 900;
}

.auth-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.auth-legal-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 800;
}

.auth-legal-links a:hover {
    color: var(--blue-dark);
}

.auth-aside {
    padding: 54px;
    display: grid;
    align-content: center;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, .94), rgba(24, 63, 184, .88)),
        #111827;
    color: #fff;
}

.auth-aside h1 {
    max-width: 720px;
    font-size: 48px;
    line-height: 1.02;
}

.auth-aside .eyebrow,
.auth-aside p {
    color: rgba(255,255,255,.68);
}

.auth-checks {
    max-width: 560px;
    margin-top: 26px;
    display: grid;
    gap: 10px;
}

.auth-checks span {
    padding: 13px 14px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    background: rgba(255,255,255,.08);
}

.landing-body {
    min-height: 100%;
    color: #f8fbff;
    background: #07111f;
}

.landing-body .button {
    font-weight: 850;
}

.landing-page {
    overflow: hidden;
    background: #07111f;
}

.landing-container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.landing-nav-shell {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    padding: 0;
    background: #07111f;
}

.landing-nav-wrap {
    width: min(1200px, 100%);
    min-height: 72px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin: 0 auto;
    padding: 8px 24px;
    border: 1px solid transparent;
    background: rgba(7, 17, 31, .96);
    backdrop-filter: blur(14px);
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 950;
    text-decoration: none;
}

.landing-brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(77, 139, 255, .45);
    border-radius: 8px;
    background: #0d47d9;
    color: #fff;
    box-shadow: 0 14px 34px rgba(40, 99, 255, .28);
}

.landing-menu {
    display: flex;
    justify-content: center;
    gap: 22px;
    align-items: center;
}

.landing-menu > a,
.landing-menu-item > a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border-radius: 8px;
    color: #d6e0f2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 850;
}

.landing-menu > a:hover,
.landing-menu-item:hover > a {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.landing-menu-item {
    position: relative;
}

.landing-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    width: 284px;
    display: none;
    transform: translateX(-50%);
    padding: 8px;
    border: 1px solid rgba(173, 194, 230, .18);
    border-radius: 8px;
    background: #0c1728;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .36);
}

.landing-menu-item:hover .landing-dropdown {
    display: grid;
    gap: 4px;
}

.landing-dropdown a {
    display: grid;
    gap: 3px;
    padding: 11px 12px;
    border-radius: 7px;
    color: #fff;
    text-decoration: none;
}

.landing-dropdown a:hover {
    background: rgba(77, 139, 255, .14);
}

.landing-dropdown small {
    color: #8ea1bd;
    font-weight: 650;
}

.landing-nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.landing-nav-actions a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border-radius: 8px;
    color: #d6e0f2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
}

.landing-nav-actions .landing-nav-cta {
    color: #fff;
    background: #0d47d9;
}

.landing-mobile-menu {
    display: none;
    position: relative;
}

.landing-mobile-menu summary {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    list-style: none;
}

.landing-mobile-menu summary::-webkit-details-marker {
    display: none;
}

.landing-mobile-menu div {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 230px;
    display: grid;
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(173, 194, 230, .18);
    border-radius: 8px;
    background: #0c1728;
    box-shadow: 0 24px 60px rgba(0,0,0,.36);
}

.landing-mobile-menu a {
    padding: 10px 12px;
    border-radius: 7px;
    color: #eaf1ff;
    text-decoration: none;
    font-weight: 850;
}

.landing-mobile-menu a:hover {
    background: rgba(77, 139, 255, .14);
}

.bee-nav-shell {
    background: #050112;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.bee-nav-wrap {
    width: min(1360px, calc(100% - 32px));
    min-height: 78px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    padding: 0;
    background: #050112;
    border: 0;
    backdrop-filter: none;
}

.bee-brand {
    gap: 9px;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.bee-brand-mark {
    width: 26px;
    height: 26px;
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.bee-brand-mark i {
    display: block;
    height: 6px;
    border-radius: 999px;
    background: #fff;
}

.bee-brand-mark i:nth-child(1) {
    width: 15px;
    margin-left: 5px;
}

.bee-brand-mark i:nth-child(2) {
    width: 24px;
}

.bee-brand-mark i:nth-child(3) {
    width: 6px;
    margin-left: 0;
    box-shadow: 9px 0 #fff, 18px 0 #fff;
}

.bee-menu {
    justify-content: flex-start;
    gap: 6px;
    margin-left: 22px;
    min-width: 0;
}

.bee-menu > a,
.bee-menu-item > a {
    min-height: 40px;
    gap: 4px;
    padding: 0 4px;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.bee-menu > a:hover,
.bee-menu-item:hover > a {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.bee-menu-item > a span {
    color: #b8b2ce;
    font-size: 13px;
}

.bee-menu-item {
    position: static;
}

.bee-mega {
    top: 100%;
    left: 50%;
    width: 100vw;
    min-height: 568px;
    transform: translateX(-50%);
    padding: 60px max(24px, calc((100vw - 1000px) / 2)) 44px;
    border: 0;
    border-top: 1px solid rgba(255,255,255,.10);
    border-bottom: 2px solid rgba(255,255,255,.90);
    border-radius: 0;
    background: rgba(5, 1, 18, .88);
    color: #f7f4ff;
    box-shadow: none;
    backdrop-filter: blur(8px);
}

.bee-menu-item:hover .bee-mega,
.bee-menu-item:focus-within .bee-mega {
    display: grid;
}

.bee-mega a {
    color: #f7f4ff;
}

.bee-mega-feature-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 56px;
    margin: 0 0 20px;
}

.bee-mega-feature-row a,
.bee-resource-list a {
    display: grid;
    gap: 8px;
    min-height: 134px;
    align-content: start;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-decoration: none;
}

.bee-mega-feature-row a:hover,
.bee-resource-list a:hover,
.bee-mega-content-grid section a:hover,
.bee-solutions-menu section a:hover {
    color: #fff;
    background: transparent;
}

.bee-mega-feature-row strong,
.bee-resource-list strong {
    color: #f7f4ff;
    font-size: 16px;
}

.bee-mega-feature-row a::before {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(77,139,255,.46);
    border-radius: 8px;
    background: rgba(77,139,255,.13);
    color: #f577d6;
    font-size: 18px;
    content: "✉";
}

.bee-mega-feature-row a:nth-child(2)::before {
    content: "◎";
}

.bee-mega-feature-row a:nth-child(3)::before {
    content: "◉";
}

.bee-mega-feature-row a:nth-child(4)::before {
    content: "▣";
}

.bee-mega-feature-row small,
.bee-resource-list small,
.bee-mega-tour p,
.bee-case-card p,
.bee-report-card p {
    color: rgba(247,244,255,.68);
    line-height: 1.45;
}

.bee-mega-content-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding-top: 28px;
}

.bee-mega-content-grid::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: rgba(255,255,255,.11);
}

.bee-mega-content-grid section,
.bee-solutions-menu section {
    display: grid;
    align-content: start;
    gap: 10px;
    min-height: 284px;
    padding: 0 32px 0 0;
    border-right: 1px solid rgba(255,255,255,.10);
}

.bee-mega-content-grid section + section,
.bee-solutions-menu section + section {
    padding-left: 32px;
}

.bee-mega-content-grid section:last-of-type,
.bee-solutions-menu section:last-of-type {
    border-right: 0;
}

.bee-mega h4 {
    margin: 0 0 8px;
    color: #f7f4ff;
    font-size: 15px;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: none;
}

.bee-mega-content-grid section a,
.bee-solutions-menu section a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border-radius: 0;
    color: rgba(247,244,255,.68);
    text-decoration: none;
    font-size: 15px;
    font-weight: 850;
}

.bee-mega-content-grid section a::before,
.bee-solutions-menu section a::before {
    width: 14px;
    color: rgba(247,244,255,.58);
    content: "⌑";
    font-size: 13px;
}

.bee-mega-tour,
.bee-case-card,
.bee-report-card {
    display: grid;
    gap: 10px;
    align-content: end;
    min-height: 250px;
    padding: 18px;
    border-radius: 8px;
    color: #fff;
    background:
        radial-gradient(circle at 18% 18%, rgba(114, 163, 255, .50), transparent 34%),
        linear-gradient(135deg, #091633, #0d47d9);
}

.bee-platform-menu .bee-mega-tour {
    display: none;
}

.bee-mega-tour span,
.bee-case-card span,
.bee-report-card span {
    width: fit-content;
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    color: #dce8ff;
    font-size: 12px;
    font-weight: 950;
}

.bee-mega-tour h3,
.bee-case-card h3,
.bee-report-card h3 {
    margin: 0;
    color: #fff;
    font-size: 24px;
    letter-spacing: 0;
}

.bee-mega-tour p,
.bee-case-card p,
.bee-report-card p {
    margin: 0;
    color: rgba(255,255,255,.74);
}

.bee-mega-tour div {
    display: grid;
    gap: 6px;
}

.bee-mega-tour a,
.bee-case-card a,
.bee-report-card a {
    width: fit-content;
    padding: 0;
    color: #fff;
    background: transparent;
    text-decoration: none;
    font-weight: 950;
}

.bee-solutions-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 320px;
    gap: 0;
}

.bee-case-card {
    min-height: 284px;
    background:
        radial-gradient(circle at 80% 20%, rgba(77,139,255,.56), transparent 34%),
        linear-gradient(135deg, #08111f, #123b93);
}

.bee-resources-menu {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
}

.bee-resource-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 34px;
}

.bee-report-card {
    min-height: 100%;
    background:
        radial-gradient(circle at 24% 20%, rgba(113, 85, 255, .46), transparent 32%),
        linear-gradient(135deg, #0c1728, #0d47d9);
}

.bee-nav-actions {
    gap: 9px;
    flex-shrink: 0;
    white-space: nowrap;
}

.bee-nav-actions a {
    min-height: 40px;
    padding: 0 14px;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 850;
}

.bee-language-form,
.bee-mobile-language-form {
    margin: 0;
}

.bee-language-form label,
.bee-mobile-language-form label {
    display: inline-flex;
    align-items: center;
}

.bee-language-form span,
.bee-mobile-language-form span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.bee-language-form select {
    width: 108px;
    min-height: 40px;
    padding: 0 28px 0 10px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 6px;
    background: #050112;
    color: #fff;
    font-size: 14px;
    font-weight: 850;
}

.bee-language-form select:focus,
.bee-mobile-language-form select:focus {
    outline: 2px solid rgba(104,163,255,.78);
    outline-offset: 2px;
}

.bee-nav-actions .bee-demo-link {
    min-width: 118px;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.78);
    background: transparent;
}

.bee-nav-actions .bee-signup-link {
    min-width: 144px;
    justify-content: center;
    color: #050112;
    background: #fff;
}

.bee-mobile-menu summary {
    border-color: rgba(255,255,255,.52);
    color: #fff;
}

.bee-mobile-menu div {
    width: 268px;
    border-color: rgba(255,255,255,.14);
    background: #fff;
}

.bee-mobile-menu a {
    color: #111827;
}

.bee-mobile-language-form {
    padding: 6px 4px 8px;
}

.bee-mobile-language-form label,
.bee-mobile-language-form select {
    width: 100%;
}

.bee-mobile-language-form select {
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid #d7dfec;
    border-radius: 7px;
    background: #fff;
    color: #111827;
    font-size: 14px;
    font-weight: 850;
}

.bee-mobile-menu a:hover {
    background: #eef4ff;
}

.landing-hero,
.landing-dark-section {
    background: #07111f;
}

.landing-hero {
    padding: 76px 0 72px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.landing-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .96fr) minmax(420px, 1.04fr);
    gap: 64px;
    align-items: center;
}

.landing-hero-copy {
    display: grid;
    gap: 22px;
}

.landing-proof-pill {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    border: 1px solid rgba(77, 139, 255, .32);
    border-radius: 999px;
    background: rgba(77, 139, 255, .10);
    color: #dce8ff;
    font-size: 13px;
    font-weight: 850;
}

.landing-proof-pill span {
    color: #6ea4ff;
}

.landing-hero h1 {
    margin: 0;
    color: #fff;
    font-size: 64px;
    line-height: 1.08;
    letter-spacing: 0;
}

.landing-hero h1 span {
    position: relative;
    display: inline-block;
    color: #68a3ff;
}

.landing-hero h1 span::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 5px;
    border-radius: 999px;
    background: #0d47d9;
}

.landing-hero-copy > p {
    max-width: 590px;
    margin: 0;
    color: #b8c6dc;
    font-size: 20px;
    line-height: 1.65;
}

.landing-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.landing-primary-cta,
.landing-secondary-cta {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 950;
}

.landing-primary-cta {
    color: #fff;
    background: #0d47d9;
    box-shadow: 0 18px 42px rgba(40, 99, 255, .30);
}

.landing-primary-cta span {
    font-size: 26px;
    line-height: 1;
}

.landing-secondary-cta {
    border: 1px solid #4d8bff;
    color: #70a7ff;
    background: transparent;
}

.landing-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: #8ea1bd;
    font-size: 14px;
    font-weight: 750;
}

.landing-trust-row span::before {
    content: "";
    width: 8px;
    height: 8px;
    display: inline-block;
    margin-right: 8px;
    border-radius: 50%;
    background: #4d8bff;
}

.landing-product-demo {
    position: relative;
    border: 1px solid rgba(173, 194, 230, .16);
    border-radius: 8px;
    background: #0c1728;
    box-shadow: 0 28px 80px rgba(0,0,0,.34);
    overflow: hidden;
}

.demo-window-head {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(173, 194, 230, .14);
    color: #dce8ff;
}

.demo-window-head span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #24405f;
}

.demo-window-head span:nth-child(1) { background: #376dff; }
.demo-window-head span:nth-child(2) { background: #38c6b0; }
.demo-window-head span:nth-child(3) { background: #ffbe55; }
.demo-window-head strong { margin-left: auto; font-size: 13px; }

.demo-dashboard {
    display: grid;
    grid-template-columns: 134px minmax(0, 1fr);
    min-height: 448px;
}

.demo-dashboard aside {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 18px 12px;
    border-right: 1px solid rgba(173, 194, 230, .12);
}

.demo-dashboard aside strong {
    margin-bottom: 10px;
    color: #fff;
}

.demo-dashboard aside span {
    padding: 9px 10px;
    border-radius: 7px;
    color: #8ea1bd;
    font-size: 13px;
    font-weight: 850;
}

.demo-dashboard aside span.active {
    color: #fff;
    background: rgba(77, 139, 255, .18);
}

.demo-dashboard section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 14px;
    padding: 18px;
}

.demo-editor-card,
.demo-side-stack div,
.demo-floating-card {
    border: 1px solid rgba(173, 194, 230, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .05);
}

.demo-editor-card {
    display: grid;
    gap: 12px;
    align-content: start;
    min-height: 370px;
    padding: 20px;
}

.demo-editor-card small,
.demo-side-stack span,
.demo-floating-card span {
    color: #8ea1bd;
}

.demo-editor-card h3 {
    margin: 0;
    color: #fff;
    font-size: 28px;
    letter-spacing: 0;
}

.demo-editor-card p {
    margin: 0;
    color: #c3d0e3;
}

.demo-email-block {
    height: 128px;
    border: 1px solid rgba(77,139,255,.22);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(77,139,255,.28), rgba(56,198,176,.14)),
        #101f35;
}

.demo-email-lines {
    display: grid;
    gap: 8px;
}

.demo-email-lines i {
    height: 10px;
    border-radius: 999px;
    background: #223956;
}

.demo-email-lines i:nth-child(2) { width: 78%; }
.demo-email-lines i:nth-child(3) { width: 54%; }

.demo-side-stack {
    display: grid;
    gap: 10px;
    align-content: start;
}

.demo-side-stack div {
    display: grid;
    gap: 5px;
    padding: 12px;
}

.demo-side-stack strong {
    color: #fff;
}

.demo-floating-card {
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: grid;
    gap: 3px;
    padding: 13px 15px;
    background: #10294c;
    box-shadow: 0 18px 45px rgba(0,0,0,.30);
}

.demo-floating-card strong {
    color: #fff;
}

.landing-dark-section {
    padding: 58px 0 64px;
}

.landing-quote {
    max-width: 880px;
    margin: 0 auto 36px;
    color: #dce8ff;
    text-align: center;
    font-size: 22px;
    line-height: 1.55;
}

.landing-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.landing-stats-grid div {
    display: grid;
    gap: 7px;
    min-height: 154px;
    align-content: center;
    padding: 22px;
    border: 1px solid rgba(173, 194, 230, .13);
    border-radius: 8px;
    background: rgba(255,255,255,.05);
    text-align: center;
}

.landing-stats-grid strong {
    color: #fff;
    font-size: 38px;
}

.landing-stats-grid span {
    color: #8ea1bd;
}

.landing-logo-band {
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: #07111f;
}

.landing-logo-band .landing-container {
    display: grid;
    gap: 18px;
    justify-items: center;
}

.landing-logo-band p {
    margin: 0;
    color: #6e819d;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .12em;
}

.landing-logo-band div div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.landing-logo-band span {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    border: 1px solid rgba(173, 194, 230, .14);
    border-radius: 8px;
    color: #e3edff;
    background: rgba(255,255,255,.04);
    font-weight: 900;
}

.landing-section {
    padding: 86px 0;
    background: #fff;
    color: #101828;
}

.landing-muted-section {
    background: #f4f7fc;
}

.landing-section-head {
    width: min(790px, calc(100% - 48px));
    display: grid;
    gap: 12px;
    margin: 0 auto 34px;
    text-align: center;
}

.landing-section-head p,
.landing-feature-showcase article > p,
.landing-automation-grid > div > p,
.landing-migration-grid p {
    margin: 0;
    color: #0d47d9;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.landing-section-head h2,
.landing-feature-showcase h3,
.landing-automation h2,
.landing-migration h2,
.landing-final-cta h2 {
    margin: 0;
    color: #101828;
    font-size: 42px;
    line-height: 1.12;
    letter-spacing: 0;
}

.landing-section-head span {
    color: #667085;
    font-size: 18px;
    line-height: 1.65;
}

.landing-feature-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: min(920px, calc(100% - 48px));
    margin: 0 auto 30px;
}

.landing-feature-pills span {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid #d9e4f7;
    border-radius: 8px;
    background: #f8fafd;
    color: #32435e;
    font-weight: 900;
}

.landing-feature-showcase {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
    gap: 32px;
    align-items: center;
    margin-bottom: 28px;
}

.landing-feature-showcase article {
    display: grid;
    gap: 14px;
}

.landing-feature-showcase article > span {
    color: #667085;
    font-size: 17px;
    line-height: 1.65;
}

.landing-feature-showcase ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
    color: #344054;
}

.landing-feature-showcase a,
.landing-center-cta a,
.landing-migration-grid a {
    color: #0d47d9;
    font-weight: 950;
    text-decoration: none;
}

.landing-feature-visual {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid #dfe6f2;
    border-radius: 8px;
    background: #f8fafd;
    box-shadow: var(--shadow);
}

.visual-toolbar {
    display: flex;
    gap: 8px;
}

.visual-toolbar span {
    height: 10px;
    width: 58px;
    border-radius: 999px;
    background: #dbe5f8;
}

.visual-mail {
    display: grid;
    gap: 12px;
    padding: 22px;
    border: 1px solid #d9e4f7;
    border-radius: 8px;
    background: #fff;
}

.visual-mail strong {
    font-size: 24px;
}

.visual-mail i {
    height: 10px;
    border-radius: 999px;
    background: #dce6f8;
}

.visual-mail i:nth-of-type(2) { width: 76%; }
.visual-mail i:nth-of-type(3) { width: 54%; }

.visual-mail button {
    width: fit-content;
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #0d47d9;
    font-weight: 900;
}

.visual-automation {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.visual-automation span {
    min-height: 56px;
    display: grid;
    place-items: center;
    border: 1px solid #d9e4f7;
    border-radius: 8px;
    background: #fff;
    color: #32435e;
    font-weight: 900;
}

.landing-card-grid,
.landing-audience-grid,
.landing-reason-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.landing-card,
.landing-audience-grid article,
.landing-reason-grid article {
    display: grid;
    gap: 12px;
    padding: 22px;
    border: 1px solid #dfe6f2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(28, 39, 64, .06);
}

.landing-card h3,
.landing-audience-grid h3,
.landing-reason-grid h3 {
    margin: 0;
    font-size: 22px;
    letter-spacing: 0;
}

.landing-card p,
.landing-audience-grid p,
.landing-reason-grid p {
    margin: 0;
    color: #667085;
    line-height: 1.6;
}

.landing-card div,
.landing-audience-grid div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 4px;
}

.landing-card div span,
.landing-audience-grid div span {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border: 1px solid #d9e4f7;
    border-radius: 999px;
    background: #f8fafd;
    color: #40516d;
    font-size: 12px;
    font-weight: 850;
}

.landing-center-cta {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    width: min(920px, calc(100% - 48px));
    margin: 28px auto 0;
    color: #667085;
}

.landing-reason-grid article span {
    width: fit-content;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: #eef4ff;
    color: #0d47d9;
    font-size: 12px;
    font-weight: 950;
}

.landing-automation {
    color: #fff;
    background: #07111f;
}

.landing-automation-grid {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr);
    gap: 34px;
    align-items: center;
}

.landing-automation-grid > div > h2,
.landing-final-cta h2 {
    color: #fff;
}

.landing-automation-grid > div > span {
    display: block;
    margin-top: 14px;
    color: #b8c6dc;
    font-size: 18px;
    line-height: 1.65;
}

.landing-integration-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.landing-integration-grid article {
    display: grid;
    gap: 8px;
    min-height: 132px;
    align-content: center;
    padding: 20px;
    border: 1px solid rgba(173, 194, 230, .14);
    border-radius: 8px;
    background: rgba(255,255,255,.05);
}

.landing-integration-grid strong {
    color: #fff;
    font-size: 20px;
}

.landing-integration-grid span {
    color: #8ea1bd;
}

.landing-pricing-section {
    background: #fff;
}

.landing-price-card {
    width: min(840px, calc(100% - 48px));
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 26px;
    margin: 0 auto;
    padding: 26px;
    border: 1px solid #dfe6f2;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.landing-price-card > div:first-child {
    display: grid;
    gap: 9px;
    align-content: start;
}

.landing-price-card > div:first-child span {
    width: fit-content;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #0d47d9;
    font-size: 12px;
    font-weight: 950;
}

.landing-price-card h3,
.landing-price-card strong,
.landing-price-card p {
    margin: 0;
}

.landing-price-card h3 {
    font-size: 30px;
}

.landing-price-card strong {
    color: #0d47d9;
    font-size: 54px;
    line-height: 1;
}

.landing-price-card p {
    color: #667085;
}

.landing-price-card ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 20px;
    color: #344054;
}

.landing-price-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.landing-price-actions .landing-secondary-cta {
    color: #0d47d9;
    border-color: #b9ccf7;
}

.landing-migration {
    padding: 78px 0;
    color: #101828;
    background: #f4f7fc;
}

.landing-migration-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 36px;
    align-items: center;
}

.landing-migration-grid h2 {
    max-width: 740px;
}

.landing-migration-grid span {
    display: block;
    max-width: 760px;
    margin: 14px 0 18px;
    color: #667085;
    font-size: 18px;
    line-height: 1.65;
}

.landing-migration-panel {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid #dfe6f2;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.landing-migration-panel span {
    margin: 0;
    padding: 13px 14px;
    border: 1px solid #d9e4f7;
    border-radius: 8px;
    background: #f8fafd;
    color: #344054;
    font-size: 15px;
    font-weight: 900;
}

.landing-final-cta {
    padding: 88px 0;
    background: #07111f;
    text-align: center;
}

.landing-final-cta p {
    max-width: 720px;
    margin: 14px auto 24px;
    color: #b8c6dc;
    font-size: 18px;
    line-height: 1.65;
}

.landing-final-cta div div {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.landing-footer {
    padding: 34px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    background: #07111f;
    color: #8ea1bd;
}

.landing-footer .landing-container {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
}

.landing-footer p {
    margin: 0;
}

.landing-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.landing-footer a {
    color: #dce8ff;
    text-decoration: none;
}

.blog-body {
    color: #111827;
    background: #f5f8ff;
}

.blog-page {
    overflow: hidden;
    background: #f5f8ff;
}

.blog-menu > a.is-active {
    color: #050112;
    background: #fff;
}

.blog-hero {
    padding: 78px 0 42px;
    color: #111827;
    background:
        radial-gradient(circle at 84% 18%, rgba(43, 164, 255, .20), transparent 30%),
        linear-gradient(180deg, #eef6ff 0%, #f8fbff 72%, #f5f8ff 100%);
    border-bottom: 1px solid #dbe6f4;
}

.blog-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 46px;
    align-items: end;
}

.blog-hero h1 {
    max-width: 820px;
    margin: 8px 0 14px;
    color: #07111f;
    font-size: clamp(44px, 6vw, 82px);
    line-height: .95;
    letter-spacing: 0;
}

.blog-hero p {
    max-width: 720px;
    margin: 0;
    color: #405168;
    font-size: 19px;
    line-height: 1.55;
}

.blog-search {
    width: min(100%, 620px);
    min-height: 58px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding: 0 18px;
    border: 1px solid #cad8eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(16, 24, 40, .08);
}

.blog-search span {
    width: 15px;
    height: 15px;
    border: 2px solid #0d47d9;
    border-radius: 50%;
    position: relative;
}

.blog-search span::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: -5px;
    width: 8px;
    height: 2px;
    border-radius: 999px;
    background: #0d47d9;
    transform: rotate(45deg);
}

.blog-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 750;
}

.blog-search input::placeholder {
    color: #8a98aa;
}

.blog-hero-featured {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(13, 71, 217, .22);
    border-radius: 8px;
    background:
        radial-gradient(circle at 86% 12%, rgba(104, 163, 255, .38), transparent 32%),
        linear-gradient(135deg, #07111f, #0d47d9);
    color: #fff;
    box-shadow: 0 24px 54px rgba(13, 71, 217, .20);
}

.blog-hero-featured span {
    width: fit-content;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #dce8ff;
    font-size: 11px;
    font-weight: 950;
}

.blog-hero-featured strong {
    font-size: 21px;
    line-height: 1.1;
}

.blog-hero-featured p {
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 14px;
    line-height: 1.45;
}

.blog-hero-featured div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 2px;
}

.blog-hero-featured a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 8px;
    background: #fff;
    color: #07111f;
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
}

.blog-hero-featured small {
    color: rgba(255,255,255,.70);
    font-size: 12px;
    font-weight: 850;
}

.blog-resource-section,
.blog-category-section,
.blog-article-section {
    color: #111827;
}

.blog-resource-section {
    padding: 28px 0 10px;
    scroll-margin-top: 92px;
}

.blog-resource-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.blog-resource-card {
    min-height: 176px;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 20px;
    border: 1px solid #dbe6f4;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .05);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.blog-resource-card:hover {
    transform: translateY(-2px);
    border-color: rgba(13, 71, 217, .38);
    box-shadow: 0 22px 48px rgba(13, 71, 217, .12);
}

.blog-resource-card.is-active {
    border-color: rgba(13, 71, 217, .55);
    background: #eef6ff;
    box-shadow: 0 22px 48px rgba(13, 71, 217, .14);
}

.blog-resource-card span {
    color: #0d47d9;
    font-size: 13px;
    font-weight: 950;
}

.blog-resource-card strong {
    font-size: 28px;
    letter-spacing: 0;
}

.blog-resource-card p {
    margin: 0;
    color: #536176;
    line-height: 1.45;
}

.blog-category-section {
    padding: 26px 0 18px;
}

.blog-section-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 14px;
}

.blog-section-head h2 {
    margin: 0;
    color: #07111f;
    font-size: 27px;
    letter-spacing: 0;
}

.blog-section-head span {
    color: #667085;
    font-size: 13px;
    font-weight: 850;
}

.blog-section-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.blog-section-actions button {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #d7e1ef;
    border-radius: 8px;
    background: #fff;
    color: #0d47d9;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.blog-section-actions button:hover {
    background: #eef6ff;
}

.blog-category-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.blog-category-row a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border: 1px solid #d7e1ef;
    border-radius: 999px;
    background: #fff;
    color: #243247;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}

.blog-category-row a:hover {
    border-color: rgba(13, 71, 217, .42);
    color: #0d47d9;
    background: #eef6ff;
}

.blog-article-grid article {
    border: 1px solid #dbe6f4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(16, 24, 40, .055);
}

.blog-article-grid article span {
    width: fit-content;
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
}

.blog-article-section {
    padding: 24px 0 78px;
}

.blog-article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.blog-article-grid article {
    min-height: 232px;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 20px;
}

.blog-article-grid article span {
    background: #eef6ff;
    color: #0d47d9;
}

.blog-article-grid h3 {
    margin: 0;
    color: #07111f;
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: 0;
}

.blog-article-grid p {
    margin: 0;
    color: #536176;
    line-height: 1.48;
}

.blog-article-grid small {
    align-self: end;
    color: #667085;
    font-weight: 850;
}

.blog-empty {
    margin-top: 14px;
    padding: 24px;
    border: 1px solid #dbe6f4;
    border-radius: 8px;
    background: #fff;
    color: #536176;
    text-align: center;
    font-weight: 850;
}

.blog-footer {
    background: #07111f;
}

.glossary-page .blog-hero-inner {
    grid-template-columns: minmax(0, 820px);
    justify-content: center;
    text-align: center;
}

.glossary-page .blog-hero h1,
.glossary-page .blog-hero p {
    margin-left: auto;
    margin-right: auto;
}

.glossary-tools-section {
    padding: 24px 0 0;
    color: #111827;
}

.glossary-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 14px;
    border: 1px solid #dbe6f4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(16, 24, 40, .055);
}

.glossary-search {
    min-height: 52px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border: 1px solid #cad8eb;
    border-radius: 8px;
    background: #f8fbff;
}

.glossary-search span {
    width: 15px;
    height: 15px;
    position: relative;
    border: 2px solid #0d47d9;
    border-radius: 50%;
}

.glossary-search span::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: -5px;
    width: 8px;
    height: 2px;
    border-radius: 999px;
    background: #0d47d9;
    transform: rotate(45deg);
}

.glossary-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111827;
    font-size: 16px;
    font-weight: 750;
}

.glossary-search-panel button,
.glossary-search-panel a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid #d7e1ef;
    border-radius: 8px;
    background: #fff;
    color: #0d47d9;
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.glossary-search-panel button:hover,
.glossary-search-panel a:hover {
    background: #eef6ff;
}

.glossary-alpha-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.glossary-alpha-nav a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #d7e1ef;
    border-radius: 8px;
    background: #fff;
    color: #243247;
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
}

.glossary-alpha-nav a:hover {
    border-color: rgba(13, 71, 217, .42);
    color: #0d47d9;
    background: #eef6ff;
}

.glossary-list-section {
    padding: 28px 0 78px;
    color: #111827;
}

.glossary-letter-group {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 18px;
    padding: 22px 0;
    border-top: 1px solid #dbe6f4;
    scroll-margin-top: 104px;
}

.glossary-letter-group:last-of-type {
    border-bottom: 1px solid #dbe6f4;
}

.glossary-letter-group h2 {
    margin: 0;
    color: #0d47d9;
    font-size: 44px;
    line-height: 1;
    letter-spacing: 0;
}

.glossary-term-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.glossary-term-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid #dbe6f4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(16, 24, 40, .045);
}

.glossary-term-card span {
    width: fit-content;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef6ff;
    color: #0d47d9;
    font-size: 11px;
    font-weight: 950;
}

.glossary-term-card h3 {
    margin: 0;
    color: #07111f;
    font-size: 21px;
    line-height: 1.15;
    letter-spacing: 0;
}

.glossary-term-card p {
    margin: 0;
    color: #536176;
    line-height: 1.5;
}

.glossary-empty {
    padding: 30px;
    border: 1px solid #dbe6f4;
    border-radius: 8px;
    background: #fff;
    color: #536176;
    text-align: center;
    font-weight: 850;
}

@media (max-width: 1320px) {
    .landing-menu,
    .landing-nav-actions {
        display: none;
    }

    .landing-mobile-menu {
        display: block;
        justify-self: end;
    }
}

@media (max-width: 1040px) {
    .landing-nav-wrap {
        grid-template-columns: auto 1fr auto;
    }

    .landing-menu,
    .landing-nav-actions {
        display: none;
    }

    .landing-mobile-menu {
        display: block;
        justify-self: end;
    }

    .landing-hero-grid,
    .landing-feature-showcase,
    .landing-automation-grid,
    .landing-migration-grid,
    .blog-hero-inner {
        grid-template-columns: 1fr;
    }

    .landing-hero-copy {
        justify-items: center;
        text-align: center;
    }

    .landing-hero-copy > p {
        max-width: 760px;
    }

    .landing-trust-row {
        justify-content: center;
    }

    .landing-product-demo {
        max-width: 760px;
        width: 100%;
        margin: 0 auto;
    }

    .landing-card-grid,
    .landing-audience-grid,
    .landing-reason-grid,
    .landing-stats-grid,
    .blog-resource-grid,
    .blog-article-grid,
    .glossary-term-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-footer .landing-container {
        grid-template-columns: 1fr;
        justify-items: start;
    }
}

@media (max-width: 720px) {
    .landing-container,
    .landing-section-head,
    .landing-feature-pills,
    .landing-center-cta,
    .landing-price-card {
        width: min(100% - 28px, 1200px);
    }

    .landing-nav-wrap {
        min-height: 64px;
        padding: 8px 14px;
    }

    .landing-brand span:last-child {
        display: none;
    }

    .landing-hero {
        padding: 52px 0 50px;
    }

    .landing-hero h1 {
        font-size: 40px;
    }

    .landing-hero-copy > p,
    .landing-section-head span,
    .landing-automation-grid > div > span,
    .landing-migration-grid span,
    .landing-final-cta p {
        font-size: 16px;
    }

    .landing-primary-cta,
    .landing-secondary-cta {
        width: 100%;
    }

    .landing-cta-row,
    .landing-price-actions,
    .landing-final-cta div div {
        width: 100%;
    }

    .demo-dashboard {
        grid-template-columns: 1fr;
    }

    .demo-dashboard aside {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        border-right: 0;
        border-bottom: 1px solid rgba(173, 194, 230, .12);
    }

    .demo-dashboard aside strong {
        grid-column: 1 / -1;
    }

    .demo-dashboard section,
    .landing-price-card,
    .visual-automation,
    .landing-integration-grid,
    .landing-card-grid,
    .landing-audience-grid,
    .landing-reason-grid,
    .landing-stats-grid,
    .blog-resource-grid,
    .blog-article-grid,
    .glossary-search-panel,
    .glossary-letter-group,
    .glossary-term-grid {
        grid-template-columns: 1fr;
    }

    .glossary-letter-group h2 {
        font-size: 34px;
    }

    .blog-hero {
        padding: 48px 0 34px;
    }

    .blog-hero h1 {
        font-size: 42px;
    }

    .blog-section-head {
        display: grid;
        gap: 6px;
        align-items: start;
    }


    .demo-floating-card {
        position: static;
        margin: 0 18px 18px;
    }

    .landing-section,
    .landing-final-cta {
        padding: 58px 0;
    }

    .landing-section-head h2,
    .landing-feature-showcase h3,
    .landing-automation h2,
    .landing-migration h2,
    .landing-final-cta h2 {
        font-size: 32px;
    }

    .landing-price-card strong {
        font-size: 44px;
    }
}

.legal-shell {
    min-height: 100vh;
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(244,246,251,0.98) 48%, #eef2f7),
        var(--bg);
}

.legal-topbar {
    max-width: 1220px;
    margin: 0 auto;
    min-height: 74px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 12px 0;
}

.legal-brand {
    color: var(--ink);
}

.legal-brand small {
    color: var(--muted);
}

.legal-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.legal-nav a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}

.legal-nav a:hover,
.legal-nav a.is-active {
    color: var(--blue-dark);
    background: #fff;
    border-color: var(--line);
}

.legal-hero {
    max-width: 1220px;
    margin: 34px auto 24px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(40,99,255,0.08), rgba(15,138,95,0.08)),
        #fff;
    box-shadow: var(--shadow);
}

.legal-hero h1 {
    margin: 0;
    max-width: 840px;
    font-size: 48px;
    line-height: 1.02;
    letter-spacing: 0;
}

.legal-hero p {
    max-width: 860px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.legal-meta {
    width: fit-content;
    margin-top: 18px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.legal-meta span,
.legal-meta strong {
    display: block;
}

.legal-meta span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.legal-layout {
    max-width: 1220px;
    margin: 0 auto 46px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
    gap: 22px;
}

.legal-toc {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(28,39,64,0.06);
}

.legal-toc strong {
    margin-bottom: 8px;
}

.legal-toc a {
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.legal-toc a:hover {
    color: var(--blue-dark);
    background: var(--panel-soft);
}

.legal-document {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.legal-callout {
    display: grid;
    gap: 5px;
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid rgba(183, 121, 31, .28);
    border-radius: 8px;
    background: #fff8ed;
    color: #6f470f;
}

.legal-callout span {
    line-height: 1.55;
}

.legal-section {
    padding: 24px 0;
    border-top: 1px solid var(--line);
}

.legal-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.legal-section h2 {
    margin: 0 0 12px;
    font-size: 24px;
    letter-spacing: 0;
}

.legal-section p,
.legal-section li {
    color: #344054;
    line-height: 1.72;
}

.legal-section p {
    margin: 0 0 12px;
}

.legal-section ul {
    margin: 10px 0 0;
    padding-left: 20px;
}

.account-pill {
    min-height: 42px;
    display: grid;
    align-content: center;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
}

.account-pill strong,
.account-pill span {
    display: block;
}

.account-pill span {
    color: var(--muted);
    font-size: 12px;
}

.logout-form,
.table-action-form {
    margin: 0;
}

.metric-grid.compact .metric-card {
    min-height: 112px;
}

.status-chip.suppressed,
.status-chip.deleted {
    background: #fff0ef;
    color: var(--red);
}

.status-chip.hard_bounced,
.status-chip.invalid_email {
    background: #fff0ef;
    color: var(--red);
}

.status-chip.complained {
    background: #ffe8e5;
    color: #9f1c14;
}

.status-chip.unsubscribed {
    background: #fff5df;
    color: #845100;
}

.contact-suppression-reason {
    max-width: 320px;
    color: #475467;
    line-height: 1.35;
}

.contact-suppression-meta {
    color: #98a2b3;
    font-size: 11px;
}

.contact-link {
    color: var(--ink);
    font-weight: 900;
    text-decoration: none;
}

.contact-link:hover {
    color: var(--blue-dark);
}

.contact-row-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    min-width: 132px;
}

.contact-row-actions .mini-button,
.contact-profile-sidebar > .mini-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.contact-profile-shell {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.contact-profile-sidebar {
    display: grid;
    gap: 12px;
}

.contact-profile-card {
    padding: 0;
    overflow: hidden;
}

.contact-map-strip {
    position: relative;
    height: 132px;
    background:
        linear-gradient(115deg, rgba(40,99,255,.16), rgba(15,184,132,.16)),
        linear-gradient(90deg, transparent 0 47%, rgba(255,255,255,.7) 47% 50%, transparent 50%),
        linear-gradient(0deg, transparent 0 47%, rgba(255,255,255,.7) 47% 50%, transparent 50%),
        #dfeafb;
    background-size: auto, 74px 74px, 74px 74px, auto;
}

.contact-map-strip::before,
.contact-map-strip::after,
.contact-map-strip span {
    content: "";
    position: absolute;
    border-radius: 999px;
}

.contact-map-strip::before {
    width: 150px;
    height: 34px;
    left: 38px;
    top: 40px;
    background: rgba(40,99,255,.18);
    transform: rotate(-13deg);
}

.contact-map-strip::after {
    width: 120px;
    height: 28px;
    right: 42px;
    bottom: 28px;
    background: rgba(15,184,132,.18);
    transform: rotate(16deg);
}

.contact-map-strip span {
    width: 10px;
    height: 10px;
    background: var(--blue);
    box-shadow: 0 0 0 6px rgba(40,99,255,.15);
}

.contact-map-strip span:nth-child(1) { left: 68px; top: 70px; }
.contact-map-strip span:nth-child(2) { right: 118px; top: 44px; background: var(--green); box-shadow: 0 0 0 6px rgba(15,184,132,.15); }
.contact-map-strip span:nth-child(3) { right: 54px; bottom: 36px; background: var(--amber); box-shadow: 0 0 0 6px rgba(245,166,35,.16); }

.contact-profile-head,
.profile-detail-list,
.profile-copy-box,
.contact-profile-accordions {
    padding: 0 18px;
}

.contact-profile-head {
    display: grid;
    gap: 6px;
    padding-top: 18px;
    padding-bottom: 14px;
}

.contact-profile-head h2 {
    margin: 4px 0 0;
    font-size: 22px;
    letter-spacing: 0;
}

.contact-profile-head p,
.contact-profile-head small {
    color: var(--muted);
}

.profile-detail-list {
    display: grid;
    gap: 8px;
}

.profile-detail-list div,
.profile-list div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
}

.profile-detail-list span,
.profile-list span,
.profile-detail-list small {
    color: var(--muted);
    font-size: 12px;
}

.profile-detail-list strong,
.profile-list strong {
    font-size: 13px;
}

.suppression-detail strong {
    line-height: 1.35;
}

.profile-copy-box {
    display: grid;
    gap: 8px;
    padding-top: 14px;
}

.profile-copy-box label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.profile-copy-box div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.profile-copy-box input {
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
}

.contact-profile-accordions {
    display: grid;
    gap: 8px;
    padding-top: 14px;
    padding-bottom: 18px;
}

.contact-profile-accordions details {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.contact-profile-accordions summary {
    cursor: pointer;
    padding: 11px 12px;
    font-weight: 850;
}

.contact-profile-accordions details > span,
.contact-profile-accordions details > a {
    display: block;
    padding: 0 12px 10px;
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
}

.profile-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0 12px 12px;
}

.profile-tag-list span {
    padding: 6px 8px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 850;
}

.contact-profile-main {
    min-width: 0;
}

.contact-profile-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.contact-activity-panel {
    margin-bottom: 16px;
}

.profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    margin: -4px 0 14px;
}

.profile-tabs span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    border-bottom: 2px solid transparent;
}

.profile-tabs span.is-active {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

.profile-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.profile-toolbar label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.profile-toolbar input,
.profile-toolbar select {
    height: 34px;
    min-width: 180px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.activity-feed {
    display: grid;
    min-height: 320px;
}

.activity-row {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.activity-row:last-child {
    border-bottom: 0;
}

.activity-row > span {
    width: 10px;
    height: 10px;
    margin-top: 4px;
    border-radius: 999px;
    background: #98a2b3;
}

.activity-row.ok > span { background: var(--green); }
.activity-row.warn > span { background: var(--red); }

.activity-row strong,
.activity-row small {
    display: block;
}

.activity-row small,
.activity-row time {
    color: var(--muted);
    font-size: 12px;
}

.profile-empty-state {
    min-height: 260px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    text-align: center;
    color: var(--muted);
}

.profile-empty-state strong {
    color: var(--ink);
}

.contact-profile-bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.profile-list {
    display: grid;
    gap: 8px;
}

.campaign-report-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    min-height: calc(100vh - 52px);
}

.campaign-report-nav {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 8px;
    background: #242424;
    color: #f2f4f7;
    box-shadow: 0 24px 60px rgba(16, 24, 40, .18);
}

.campaign-report-back {
    color: #b7c0cf;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.campaign-report-nav h2 {
    margin: 8px 0 0;
    font-size: 17px;
    line-height: 1.25;
    letter-spacing: 0;
}

.campaign-report-nav > span,
.campaign-report-nav small {
    color: #a8b0bd;
    font-size: 11px;
}

.campaign-report-nav > a:not(.campaign-report-back) {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 6px;
    color: #d0d5dd;
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
}

.campaign-report-nav > a.active,
.campaign-report-nav > a:not(.campaign-report-back):hover {
    background: rgba(255, 255, 255, .08);
    color: #59a7ff;
}

.sender-reputation-mini {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 10px;
    border-radius: 8px;
    background: #3c3c3c;
}

.sender-reputation-mini span {
    color: #fff;
    font-size: 12px;
    font-weight: 850;
}

.sender-reputation-mini strong {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 3px solid #31d08f;
    color: #fff;
    font-size: 13px;
}

.campaign-report-main {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.campaign-report-hero,
.campaign-report-card-panel,
.campaign-score-panel,
.campaign-performance-panel,
.campaign-report-card {
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(16, 24, 40, .05);
}

.campaign-report-hero {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
}

.campaign-report-hero h1 {
    margin: 2px 0 5px;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: 0;
}

.campaign-report-hero span {
    color: var(--muted);
}

.campaign-report-actions {
    display: flex;
    gap: 8px;
}

.campaign-report-score-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .7fr);
    gap: 14px;
}

.campaign-score-panel,
.campaign-performance-panel {
    display: grid;
    gap: 18px;
    align-items: center;
    min-height: 190px;
    padding: 20px;
}

.campaign-score-panel {
    grid-template-columns: 260px minmax(0, 1fr);
}

.campaign-score-panel h2,
.campaign-performance-panel h2,
.campaign-report-card-panel h2 {
    margin: 0;
    font-size: 17px;
    letter-spacing: 0;
}

.campaign-score-panel p {
    max-width: 340px;
    color: var(--muted);
    line-height: 1.5;
}

.score-gauge {
    --score: 72;
    position: relative;
    display: grid;
    gap: 10px;
    width: min(100%, 238px);
    min-height: 154px;
    padding: 18px;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid #dbe5f1;
    border-radius: 8px;
    background:
        radial-gradient(circle at 88% 8%, rgba(43, 164, 255, .16), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 16px 34px rgba(16, 24, 40, .08);
}

.score-gauge::before {
    content: "";
    position: absolute;
    inset: auto 18px 49px;
    height: 1px;
    background: linear-gradient(90deg, rgba(244, 95, 98, .24), rgba(255, 217, 95, .34), rgba(49, 208, 143, .32));
    z-index: 0;
}

.score-gauge::after {
    content: "";
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(43, 164, 255, .18), rgba(49, 208, 143, .12));
    z-index: 0;
}

.score-gauge > * {
    position: relative;
    z-index: 1;
}

.score-gauge-label {
    color: #667085;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.score-gauge strong {
    display: flex;
    align-items: baseline;
    gap: 3px;
    color: #111827;
    font-size: 52px;
    line-height: .92;
    letter-spacing: 0;
}

.score-gauge strong::after {
    content: "/100";
    color: #667085;
    font-size: 14px;
    font-weight: 850;
}

.score-gauge-status {
    justify-self: start;
    padding: 5px 8px;
    border-radius: 999px;
    background: #eef6ff;
    color: #175cd3;
    font-size: 12px;
    font-weight: 900;
}

.score-gauge-strong .score-gauge-status {
    background: #eafaf3;
    color: #027a48;
}

.score-gauge-low .score-gauge-status {
    background: #fff1f3;
    color: #c01048;
}

.score-gauge-track {
    position: relative;
    height: 10px;
    margin-top: 4px;
    overflow: visible;
    border-radius: 999px;
    background: #e8eef7;
    box-shadow: inset 0 1px 3px rgba(16, 24, 40, .1);
}

.score-gauge-track::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #f45f62 0%, #ffd95f 48%, #31d08f 100%);
    opacity: .24;
}

.score-gauge-track i {
    display: grid;
    position: relative;
    width: calc(var(--score) * 1%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f45f62 0%, #ffd95f 50%, #31d08f 100%);
    box-shadow: 0 6px 16px rgba(43, 164, 255, .18);
}

.score-gauge-track i::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 14px;
    height: 14px;
    border: 3px solid #fff;
    border-radius: 999px;
    background: #111827;
    box-shadow: 0 7px 16px rgba(17, 24, 39, .18);
    transform: translate(50%, -50%);
}

.score-gauge-scale {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    color: #667085;
    font-size: 11px;
    font-weight: 850;
}

.score-gauge-scale span:nth-child(2) {
    text-align: center;
}

.score-gauge-scale span:last-child {
    text-align: right;
}

.campaign-performance-panel {
    grid-template-columns: 150px minmax(0, 1fr);
}

.performance-rings {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #fff 0 34%, transparent 35%),
        conic-gradient(#2ba4ff 0 calc(var(--delivered) * 1%), #edf2f7 0 100%);
    box-shadow: inset 0 0 0 18px rgba(43, 164, 255, .16), inset 0 0 0 37px rgba(255, 126, 72, .22), inset 0 0 0 56px rgba(108, 219, 121, .2);
}

.campaign-performance-panel dl {
    display: grid;
    gap: 9px;
    margin: 0;
}

.campaign-performance-panel dl div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: baseline;
}

.campaign-performance-panel dt {
    color: var(--muted);
    font-weight: 850;
}

.campaign-performance-panel dd {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
}

.campaign-performance-panel small {
    color: var(--muted);
    margin-left: 6px;
    font-size: 12px;
}

.campaign-report-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.campaign-report-card {
    min-height: 112px;
    padding: 14px;
    display: grid;
    align-content: space-between;
    border-top: 3px solid var(--blue);
}

.campaign-report-card.tone-green { border-top-color: var(--green); }
.campaign-report-card.tone-purple { border-top-color: var(--purple); }
.campaign-report-card.tone-amber { border-top-color: var(--amber); }
.campaign-report-card.tone-red { border-top-color: var(--red); }

.campaign-report-card span,
.campaign-report-card small {
    color: var(--muted);
    font-size: 12px;
}

.campaign-report-card strong {
    font-size: 26px;
    letter-spacing: 0;
}

.campaign-report-delivery {
    display: grid;
    gap: 8px;
}

.campaign-report-delivery div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.campaign-report-delivery div::after {
    content: "";
    grid-column: 2;
    grid-row: 1;
    height: 10px;
    border-radius: 999px;
    background: #e7ecf5;
}

.campaign-report-delivery i {
    grid-column: 2;
    grid-row: 1;
    height: 10px;
    border-radius: 999px;
    background: #8b5cf6;
    z-index: 1;
}

.campaign-report-delivery i.green {
    background: #16b981;
}

.campaign-report-card-panel {
    padding: 18px;
}

.campaign-chart-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
}

.campaign-chart-head span {
    color: var(--muted);
    font-size: 12px;
}

.campaign-line-chart {
    height: 240px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
    gap: 10px;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    background: repeating-linear-gradient(to top, transparent 0 47px, rgba(226, 232, 240, .7) 48px);
}

.campaign-line-chart div {
    height: 100%;
    display: grid;
    align-items: end;
    gap: 5px;
    position: relative;
}

.campaign-line-chart i,
.campaign-line-chart b {
    width: 100%;
    min-height: 3px;
    border-radius: 8px 8px 0 0;
}

.campaign-line-chart i {
    background: linear-gradient(180deg, rgba(139, 92, 246, .78), rgba(139, 92, 246, .18));
}

.campaign-line-chart b {
    position: absolute;
    bottom: 22px;
    right: 3px;
    width: 30%;
    background: #16b981;
}

.campaign-line-chart span {
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

.campaign-report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.campaign-funnel {
    display: grid;
    gap: 11px;
}

.campaign-funnel div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 80px;
    gap: 10px;
    align-items: center;
}

.campaign-funnel span {
    color: var(--muted);
    font-size: 12px;
}

.campaign-funnel i {
    height: 30px;
    min-width: 4px;
    border-radius: 3px;
    background: linear-gradient(90deg, #3944d8, rgba(57,68,216,.42));
}

.campaign-funnel strong {
    text-align: right;
}

.campaign-risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 8px;
}

.campaign-risk-grid div {
    display: grid;
    gap: 5px;
    padding: 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--line);
}

.campaign-risk-grid strong {
    font-size: 24px;
}

.campaign-risk-grid span,
.campaign-report-note {
    color: var(--muted);
    font-size: 12px;
}

.campaign-report-search {
    height: 36px;
    width: 220px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.campaign-link-table {
    display: grid;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.campaign-link-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 130px 120px 120px;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

.campaign-link-row:last-child {
    border-bottom: 0;
}

.campaign-link-row.head {
    background: #f8fafc;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.campaign-link-row small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.campaign-breakdown-list {
    display: grid;
    gap: 10px;
}

.campaign-breakdown-list div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) 48px;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
}

.campaign-breakdown-list i {
    height: 9px;
    min-width: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2ba4ff, rgba(43,164,255,.2));
}

.campaign-breakdown-list strong {
    color: var(--ink);
    text-align: right;
}

.campaign-heatmap-layout {
    display: grid;
    grid-template-columns: minmax(0, 640px) 300px;
    gap: 18px;
    align-items: start;
}

.campaign-email-preview {
    position: relative;
    display: grid;
    gap: 10px;
    min-height: 520px;
    padding: 24px;
    border: 1px solid #dfe6f2;
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 77, 109, .18), transparent 22%),
        radial-gradient(circle at 56% 45%, rgba(255, 184, 0, .14), transparent 20%),
        #f4f6fb;
}

.campaign-email-subject {
    padding: 18px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 20px;
    font-weight: 900;
}

.campaign-heat-block {
    --heat: 0;
    --click-x: 50%;
    --click-y: 50%;
    --click-size: 42px;
    position: relative;
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid rgba(209, 218, 231, .9);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.campaign-heat-block::after {
    content: "";
    position: absolute;
    left: var(--click-x);
    top: var(--click-y);
    width: calc(var(--click-size) * 1.85);
    height: calc(var(--click-size) * 1.85);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 0, 0, calc(.25 + var(--heat) * .5)) 0 18%, rgba(255, 60, 0, calc(.18 + var(--heat) * .32)) 19% 42%, rgba(255, 193, 7, calc(var(--heat) * .18)) 43% 66%, transparent 67%);
    filter: blur(2px);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: calc(.08 + var(--heat) * .92);
}

.campaign-heat-block span {
    width: fit-content;
    padding: 3px 7px;
    border-radius: 999px;
    color: #845100;
    background: #fff5df;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.campaign-heat-block strong {
    font-size: 15px;
}

.campaign-heat-block p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.campaign-heat-block em {
    width: fit-content;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-style: normal;
    font-weight: 900;
}

.campaign-click-hotspot {
    position: absolute;
    left: var(--click-x);
    top: var(--click-y);
    width: var(--click-size);
    height: var(--click-size);
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 0, 0, calc(.34 + var(--heat) * .56));
    color: #fff;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 calc(8px + var(--heat) * 14px) rgba(255, 0, 0, calc(.08 + var(--heat) * .14)), 0 10px 30px rgba(255, 0, 0, calc(.14 + var(--heat) * .3));
    cursor: default;
    z-index: 3;
}

.campaign-click-hotspot i {
    position: absolute;
    inset: -16px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(255,0,0,calc(.12 + var(--heat) * .26)), transparent 68%);
    animation: heat-pulse 2.4s ease-in-out infinite;
}

.campaign-click-hotspot b {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 12px;
}

@keyframes heat-pulse {
    0%, 100% { transform: scale(.92); opacity: .75; }
    50% { transform: scale(1.12); opacity: 1; }
}

.campaign-heatmap-legend {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.campaign-heatmap-legend div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 80px 34px;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
}

.campaign-heatmap-legend i {
    height: 8px;
    min-width: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff4155, rgba(255,65,85,.18));
}

.campaign-heatmap-legend b {
    color: var(--ink);
    text-align: right;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.contact-profile-page {
    color: #121826;
    font-size: 12px;
}

.contact-profile-body .topbar {
    display: none;
}

.contact-profile-body .main {
    padding: 10px;
    background: #f7f9fc;
}

.contact-profile-shell-mode {
    background: #f7f9fc;
}

.contact-profile-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 24px;
    margin: -4px 0 8px;
    color: #7c8798;
    font-size: 11px;
    font-weight: 700;
}

.contact-profile-breadcrumb a {
    color: #7c8798;
    text-decoration: none;
}

.contact-profile-breadcrumb strong {
    color: #303846;
    font-weight: 800;
}

.contact-profile-page .panel,
.contact-profile-page .metric-card {
    border: 1px solid #e7ebf1;
    border-radius: 5px;
    box-shadow: none;
    background: #fff;
}

.contact-profile-page .panel-head {
    margin-bottom: 0;
}

.contact-profile-shell {
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 10px;
}

.contact-profile-sidebar {
    gap: 0;
}

.contact-profile-card {
    border-radius: 5px;
}

.contact-map-strip {
    height: 78px;
    background:
        radial-gradient(circle at 18% 38%, #34c88a 0 3px, transparent 4px),
        radial-gradient(circle at 62% 31%, #2f73ff 0 3px, transparent 4px),
        radial-gradient(circle at 79% 68%, #f2a83a 0 3px, transparent 4px),
        linear-gradient(24deg, transparent 0 35%, rgba(255,255,255,.72) 35% 38%, transparent 38%),
        linear-gradient(115deg, rgba(180,217,169,.92), rgba(186,214,244,.95) 48%, rgba(238,230,190,.9)),
        #d9e7f6;
}

.contact-map-strip::before {
    width: 118px;
    height: 15px;
    left: 22px;
    top: 31px;
    background: rgba(255,255,255,.66);
    transform: rotate(-16deg);
}

.contact-map-strip::after {
    width: 128px;
    height: 13px;
    right: 34px;
    bottom: 24px;
    background: rgba(255,255,255,.72);
    transform: rotate(12deg);
}

.contact-map-strip span {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 0 4px rgba(40,99,255,.12);
}

.contact-map-strip span:nth-child(1) { left: 54px; top: 44px; }
.contact-map-strip span:nth-child(2) { right: 112px; top: 24px; }
.contact-map-strip span:nth-child(3) { right: 58px; bottom: 22px; }

.contact-profile-head,
.profile-detail-list,
.profile-copy-box,
.contact-profile-accordions {
    padding-left: 10px;
    padding-right: 10px;
}

.contact-profile-head {
    gap: 4px;
    padding-top: 9px;
    padding-bottom: 8px;
}

.contact-profile-head .status-chip {
    width: fit-content;
    min-height: 18px;
    padding: 0 6px;
    font-size: 9px;
    font-weight: 800;
}

.contact-profile-head h2 {
    margin: 3px 0 0;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
}

.contact-profile-head p,
.contact-profile-head small {
    margin: 0;
    color: #667085;
    font-size: 10px;
    line-height: 1.25;
}

.profile-detail-list {
    gap: 0;
}

.profile-detail-list div,
.profile-list div {
    gap: 3px;
    padding: 7px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.profile-detail-list div + div {
    border-top: 1px solid #eef1f5;
}

.profile-detail-list span,
.profile-list span,
.profile-detail-list small {
    color: #667085;
    font-size: 10px;
    line-height: 1.3;
}

.profile-detail-list strong,
.profile-list strong {
    color: #1f2937;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
}

.profile-copy-box {
    gap: 6px;
    padding-top: 9px;
}

.profile-copy-box label {
    color: #667085;
    font-size: 10px;
}

.profile-copy-box div {
    gap: 5px;
}

.profile-copy-box input {
    height: 27px;
    border-color: #e7ebf1;
    border-radius: 4px;
    color: #667085;
    font-size: 10px;
}

.profile-copy-box .mini-button {
    height: 27px;
    border-radius: 4px;
    font-size: 10px;
}

.contact-profile-accordions {
    gap: 5px;
    padding-top: 9px;
    padding-bottom: 9px;
}

.contact-profile-accordions details {
    border: 1px solid #edf0f4;
    border-radius: 4px;
    background: #f8fafc;
}

.contact-profile-accordions summary {
    position: relative;
    padding: 8px 24px 8px 9px;
    color: #344054;
    font-size: 10px;
    font-weight: 800;
    list-style: none;
}

.contact-profile-accordions summary::-webkit-details-marker {
    display: none;
}

.contact-profile-accordions summary::after {
    content: "⌄";
    position: absolute;
    right: 9px;
    top: 6px;
    color: #98a2b3;
    font-size: 13px;
}

.contact-profile-accordions details[open] summary::after {
    transform: rotate(180deg);
}

.contact-profile-accordions details > span,
.contact-profile-accordions details > a {
    padding: 0 9px 8px;
    color: #667085;
    font-size: 10px;
}

.profile-tag-list {
    gap: 5px;
    padding: 0 9px 8px;
}

.profile-tag-list span {
    padding: 4px 6px;
    font-size: 10px;
}

.contact-profile-actionbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 24px;
    margin: -2px 0 6px;
}

.profile-action-menu {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 0 9px;
    border: 0;
    border-radius: 4px;
    background: #0b1220;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.profile-action-menu.is-disabled {
    background: #344054;
    cursor: default;
}

.contact-profile-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
}

.contact-profile-metrics .metric-card {
    min-height: 64px;
    padding: 9px 10px;
    border-top: 0;
    justify-content: start;
    gap: 9px;
}

.contact-profile-metrics .metric-card span,
.contact-profile-metrics .metric-card small {
    color: #667085;
    font-size: 9px;
    line-height: 1.25;
}

.contact-profile-metrics .metric-card strong {
    color: #1f2937;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.contact-activity-panel {
    min-height: 360px;
    padding: 0;
    margin-bottom: 10px;
}

.contact-activity-panel .panel-head {
    padding: 10px 12px;
    border-bottom: 1px solid #edf0f4;
}

.contact-activity-panel .panel-head h2 {
    margin: 0;
    font-size: 12px;
    font-weight: 900;
}

.profile-tabs {
    gap: 0;
    margin: 0;
    padding: 0 10px;
    border-bottom: 1px solid #edf0f4;
}

.profile-tabs span {
    min-height: 31px;
    padding: 0 8px;
    color: #667085;
    font-size: 9px;
    font-weight: 800;
}

.profile-tabs span.is-active {
    color: #101828;
    border-bottom-color: #101828;
}

.profile-toolbar {
    display: grid;
    grid-template-columns: minmax(180px, 260px) auto auto;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
    border-bottom: 1px solid #edf0f4;
}

.profile-toolbar label {
    display: block;
}

.profile-toolbar input,
.profile-toolbar select {
    height: 27px;
    min-width: 0;
    width: 100%;
    padding: 0 9px;
    border-color: #e7ebf1;
    border-radius: 4px;
    color: #344054;
    font-size: 10px;
}

.activity-feed {
    min-height: 270px;
}

.activity-row {
    grid-template-columns: 8px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 10px 12px;
    border-bottom-color: #edf0f4;
}

.activity-row > span {
    width: 7px;
    height: 7px;
}

.activity-row strong {
    font-size: 11px;
}

.activity-row small,
.activity-row time {
    font-size: 10px;
}

.profile-empty-state {
    min-height: 270px;
    color: #98a2b3;
    font-size: 10px;
}

.profile-empty-state::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    background: radial-gradient(circle at center, #d0d5dd 0 2px, transparent 3px);
}

.profile-empty-state strong {
    color: #667085;
    font-size: 10px;
    font-weight: 700;
}

.contact-profile-bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.contact-profile-bottom-grid .panel {
    padding: 12px;
}

.mini-button.danger {
    color: var(--red);
    border-color: #ffd1ce;
    background: #fff8f8;
}

.checkbox-row {
    grid-template-columns: auto 1fr;
    align-items: center;
    color: var(--ink);
}

.checkbox-row input {
    width: 18px;
    min-height: 18px;
}

.segment-builder {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.segment-card {
    align-items: start;
}

.segment-card code {
    flex-basis: 100%;
    margin-top: 4px;
}

.help-box {
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
    color: var(--muted);
    line-height: 1.5;
}

.profile-form {
    max-width: 760px;
}

.account-shell {
    display: grid;
    gap: 18px;
}

.account-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.account-hero h2,
.account-section h3,
.account-panel-title h4 {
    margin: 0;
    letter-spacing: 0;
}

.account-hero p {
    max-width: 620px;
    margin: 8px 0 0;
    color: var(--muted);
}

.account-plan-pill,
.account-status-pill {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel-soft);
    color: var(--ink);
    font-size: 12px;
    font-weight: 850;
}

.account-status-pill.good {
    border-color: #b9ead2;
    background: #effcf5;
    color: #04724d;
}

.account-status-pill.warn {
    border-color: #ffe0a4;
    background: #fff8e8;
    color: #9a5b00;
}

.account-grid {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.account-nav {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.account-nav a {
    display: flex;
    min-height: 36px;
    align-items: center;
    padding: 0 10px;
    border-radius: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.account-nav a:hover {
    background: var(--panel-soft);
    color: var(--ink);
}

.account-main {
    display: grid;
    gap: 16px;
}

.account-section {
    display: grid;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.account-section-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.account-section-head .badge {
    text-transform: capitalize;
}

.account-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.account-form-grid .span-2,
.account-form-grid.span-2 {
    grid-column: 1 / -1;
}

.account-form-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-form-grid .button {
    justify-self: start;
}

.account-form-subhead {
    display: grid;
    gap: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.account-form-subhead:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.account-form-subhead h4 {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    letter-spacing: 0;
}

.account-form-subhead p,
.account-form-note {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}

.billing-summary-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.billing-summary-card div,
.billing-detail-list span,
.account-plan-card,
.security-twofa-card,
.recovery-code-box,
.security-event-list div,
.account-workspaces span {
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
}

.billing-summary-card small,
.billing-summary-card span,
.billing-detail-list em,
.account-plan-card small,
.security-twofa-card p,
.security-event-list span,
.account-workspaces em,
.billing-history-mini span,
.account-panel-title p {
    color: var(--muted);
    font-style: normal;
}

.billing-summary-card strong {
    font-size: 26px;
    letter-spacing: 0;
}

.billing-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.billing-actions-row .button.active {
    border-color: var(--ink);
}

.account-slide-panel {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #d8e0f0;
    border-radius: 8px;
    background: #fbfcff;
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.07);
}

.account-slide-panel[hidden] {
    display: none;
}

.account-panel-title {
    display: grid;
    gap: 4px;
}

.billing-detail-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.billing-history-mini,
.security-event-list {
    display: grid;
    gap: 8px;
}

.billing-history-mini div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.account-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.account-plan-card {
    align-content: start;
    background: #fff;
}

.account-plan-card.current {
    border-color: #1f2a44;
    box-shadow: inset 0 0 0 1px #1f2a44;
}

.account-plan-card span {
    font-size: 20px;
    font-weight: 900;
}

.security-twofa-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.twofa-inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.twofa-inline-form input {
    max-width: 130px;
}

.twofa-qr-box {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.twofa-qr-box code,
.recovery-code-box code {
    width: fit-content;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
}

.twofa-fake-qr {
    width: 128px;
    height: 128px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(90deg, #111 10px, transparent 10px) 0 0 / 22px 22px,
        linear-gradient(#111 10px, transparent 10px) 0 0 / 22px 22px,
        #fff;
}

.twofa-fake-qr span {
    border-radius: 4px;
    background: #111;
}

.twofa-qr-image {
    width: 128px;
    height: 128px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}

.twofa-fake-qr span:nth-child(2),
.twofa-fake-qr span:nth-child(4) {
    background: #fff;
}

.recovery-code-box div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.account-workspaces {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.audit-list {
    display: grid;
    gap: 10px;
}

.audit-list div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
}

.audit-list span {
    color: var(--muted);
}

.rule-preview,
.rule-chip-row,
.preflight-mini,
.button-row,
.link-row,
.server-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rule-preview {
    margin: 12px 0;
}

.rule-preview span,
.rule-chip-row em,
.preflight-mini em,
.server-list span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.mini-form textarea {
    min-height: 70px;
}

.button-row {
    margin-top: 10px;
    justify-content: flex-end;
}

.queue-list {
    display: grid;
    gap: 10px;
}

.queue-list div,
.attempt-list div,
.import-history div,
.import-preview-card,
.invite-list div,
.usage-snapshot-list div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
}

.queue-list span,
.queue-list small,
.attempt-list span,
.import-history span,
.import-history small,
.invite-list span,
.usage-snapshot-list span,
.flow-actions span {
    color: var(--muted);
}

.server-list {
    margin-top: 12px;
}

.server-list span {
    justify-content: space-between;
    width: 100%;
}

.server-list em {
    color: var(--amber);
    font-style: normal;
}

.attempt-list,
.import-history,
.invite-list,
.usage-snapshot-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.import-preview-card {
    margin-top: 12px;
}

.import-preview-card .simulation-grid {
    margin: 12px 0;
}

.import-actions {
    justify-content: stretch;
}

.import-actions .button {
    flex: 1 1 140px;
}

.asset-list {
    max-height: 220px;
    overflow: auto;
}

.dns-check-list {
    display: grid;
    gap: 3px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.plan-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
}

.plan-card span,
.plan-card small {
    color: var(--muted);
}

.automation-test-form {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.server-card-form {
    width: 100%;
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
}

.server-card-form textarea {
    min-height: 62px;
}

.flow-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.toggle-row input[type="checkbox"] {
    width: 22px;
    min-height: 22px;
}

.link-row {
    margin-top: 10px;
}

.link-row a,
.suppression-mini a {
    color: var(--blue-dark);
    font-weight: 900;
    text-decoration: none;
}

.public-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(180deg, #fbfcff 0%, #eef2f7 100%);
}

.public-card {
    width: min(100%, 560px);
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.public-card h1 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.08;
}

.public-card p {
    color: var(--muted);
    line-height: 1.6;
}

.public-mark {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    margin-bottom: 18px;
    padding: 0 13px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand, var(--blue)), var(--accent, var(--green)));
    font-weight: 900;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.preference-card {
    width: min(100%, 680px);
}

.abuse-card {
    width: min(100%, 760px);
}

.abuse-form {
    margin-top: 18px;
}

.abuse-form h2 {
    margin: 10px 0 0;
    font-size: 16px;
    letter-spacing: 0;
}

.abuse-form h2 span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.abuse-reason-list {
    display: grid;
    gap: 8px;
}

.abuse-reason-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcff;
    cursor: pointer;
}

.abuse-reason-card strong,
.abuse-reason-card small {
    display: block;
}

.abuse-reason-card small {
    margin-top: 3px;
    color: var(--muted);
    line-height: 1.45;
}

.preference-toggle {
    cursor: pointer;
}

.preference-toggle input {
    width: 22px;
    min-height: 22px;
}

.smart-link-list,
.endpoint-list {
    display: grid;
    gap: 12px;
}

.smart-link-card,
.endpoint-list div {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
}

.smart-link-card {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
}

.smart-link-card strong,
.smart-link-card span,
.smart-link-card code {
    display: block;
}

.smart-link-card span,
.endpoint-list span {
    color: var(--muted);
}

.smart-link-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.smart-link-stats span {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
}

.smart-link-stats strong {
    color: var(--ink);
}

.endpoint-list code {
    display: block;
    white-space: normal;
}

.cdp-strip {
    display: grid;
    grid-template-columns: minmax(260px, .7fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.channel-picker {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #f8fbff;
}

.public-hero-image {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    margin: 12px 0;
}

.premium-builder-frame .email-card {
    display: grid;
    gap: 4px;
    overflow: visible;
}

.email-card[data-email-builder-canvas] {
    overflow: visible;
}

.builder-bottom-space {
    min-height: clamp(460px, 62vh, 780px);
    margin-left: 60px;
    padding: 28px 6px 18px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    border: 1px dashed transparent;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(248,250,252,0) 0%, rgba(248,250,252,.82) 100%);
    transition: border-color .14s ease, background .14s ease;
}

.builder-bottom-space:hover,
.builder-bottom-space:focus-within {
    border-color: #d8e0ec;
    background: linear-gradient(180deg, rgba(248,250,252,.2) 0%, rgba(248,250,252,.96) 100%);
}

.builder-bottom-space button {
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid #d8e0ec;
    border-radius: 7px;
    background: rgba(255,255,255,.92);
    color: #667085;
    cursor: pointer;
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
    opacity: .42;
    box-shadow: 0 8px 20px rgba(16, 24, 40, .08);
    transition: opacity .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease;
}

.builder-bottom-space:hover button,
.builder-bottom-space button:focus {
    border-color: #9db7ef;
    color: #1d4ed8;
    opacity: 1;
    outline: 0;
    box-shadow: 0 12px 26px rgba(37, 99, 235, .13);
}

.builder-bottom-space + .email-muted {
    margin-top: 0;
}

.builder-block {
    position: relative;
    margin-left: 60px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: #fff;
    box-shadow: none;
    overflow: visible;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.builder-block-rail {
    position: absolute;
    left: -58px;
    top: 5px;
    display: grid;
    grid-template-columns: 24px 24px;
    align-items: center;
    gap: 2px;
    color: #98a2b3;
    opacity: 0;
    transition: opacity .12s ease;
}

.builder-block-rail button {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
}

.builder-block-rail button:hover {
    background: #f1f3f7;
    color: #111827;
}

.builder-block-rail .block-dots-button {
    font-size: 14px;
    letter-spacing: -2px;
}

.block-context-menu {
    position: absolute;
    z-index: 80;
    top: 30px;
    left: 28px;
    width: 260px;
    display: grid;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    background: #25282e;
    color: #f5f7fb;
    box-shadow: 0 20px 42px rgba(16, 24, 40, .26);
}

.block-context-menu[hidden] {
    display: none;
}

.block-context-menu.open-up {
    top: auto;
    bottom: 30px;
}

.block-context-menu.open-left {
    left: auto;
    right: 0;
}

.block-context-menu button {
    width: 100%;
    height: auto;
    min-height: 34px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 7px 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #f5f7fb;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.block-context-menu button:hover {
    background: rgba(255, 255, 255, .07);
}

.block-context-menu button i {
    color: rgba(255, 255, 255, .56);
    font-style: normal;
    font-size: 18px;
    line-height: 1;
}

.block-context-menu .context-danger {
    color: #ffb4ab;
}

.context-menu-separator {
    height: 1px;
    margin: 7px -2px;
    background: rgba(255, 255, 255, .10);
}

.context-submenu {
    position: relative;
}

.context-submenu-panel {
    position: absolute;
    z-index: 90;
    top: -8px;
    left: calc(100% + 8px);
    width: 238px;
    display: none;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    background: #25282e;
    box-shadow: 0 20px 42px rgba(16, 24, 40, .26);
}

.block-context-menu.open-up .context-submenu-panel {
    top: auto;
    bottom: -8px;
}

.block-context-menu.open-left .context-submenu-panel {
    left: auto;
    right: calc(100% + 8px);
}

.context-submenu:hover > .context-submenu-panel,
.context-submenu:focus-within > .context-submenu-panel {
    display: grid;
}

.context-icon {
    position: relative;
    width: 16px;
    height: 16px;
    display: inline-block;
    color: rgba(245, 247, 251, .74);
}

.context-icon::before,
.context-icon::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
}

.context-icon.group::before,
.context-icon.duplicate::before {
    width: 10px;
    height: 10px;
    left: 1px;
    top: 1px;
    border: 1.7px solid currentColor;
    border-radius: 3px;
}

.context-icon.group::after,
.context-icon.duplicate::after {
    width: 10px;
    height: 10px;
    right: 1px;
    bottom: 1px;
    border: 1.7px solid currentColor;
    border-radius: 3px;
}

.context-icon.comment::before {
    inset: 2px 1px 4px 1px;
    border: 1.7px solid currentColor;
    border-radius: 4px;
}

.context-icon.comment::after {
    left: 5px;
    bottom: 2px;
    width: 5px;
    height: 5px;
    border-left: 1.7px solid currentColor;
    border-bottom: 1.7px solid currentColor;
    transform: rotate(-24deg);
}

.context-icon.visual::before {
    inset: 2px 3px;
    border-left: 1.7px solid currentColor;
    border-right: 1.7px solid currentColor;
}

.context-icon.visual::after {
    left: 1px;
    right: 1px;
    top: 4px;
    height: 8px;
    border-top: 1.7px solid currentColor;
    border-bottom: 1.7px solid currentColor;
}

.context-icon.visibility::before {
    left: 1px;
    top: 4px;
    width: 14px;
    height: 8px;
    border: 1.7px solid currentColor;
    border-radius: 50%;
}

.context-icon.visibility::after {
    left: 6px;
    top: 7px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}

.context-icon.copy::before {
    left: 4px;
    top: 2px;
    width: 9px;
    height: 12px;
    border: 1.7px solid currentColor;
    border-radius: 2px;
}

.context-icon.copy::after {
    left: 2px;
    top: 5px;
    width: 9px;
    height: 9px;
    border-left: 1.7px solid currentColor;
    border-bottom: 1.7px solid currentColor;
    border-radius: 2px;
}

.context-icon.delete::before {
    left: 3px;
    top: 5px;
    width: 10px;
    height: 9px;
    border: 1.7px solid currentColor;
    border-top: 0;
    border-radius: 0 0 3px 3px;
}

.context-icon.delete::after {
    left: 2px;
    top: 3px;
    width: 12px;
    height: 2px;
    border-top: 1.7px solid currentColor;
    box-shadow: 4px -2px 0 -1px currentColor;
}

.context-icon.edit::before {
    left: 3px;
    top: 9px;
    width: 10px;
    border-top: 1.8px solid currentColor;
    transform: rotate(-45deg);
}

.context-icon.edit::after {
    right: 2px;
    top: 2px;
    width: 5px;
    height: 5px;
    border-top: 1.8px solid currentColor;
    border-right: 1.8px solid currentColor;
    transform: rotate(-45deg);
}

.context-icon.insert::before {
    left: 2px;
    top: 7px;
    width: 12px;
    border-top: 1.8px solid currentColor;
}

.context-icon.insert::after {
    left: 7px;
    top: 2px;
    height: 12px;
    border-left: 1.8px solid currentColor;
}

.context-icon.mail::before {
    inset: 3px 1px;
    border: 1.7px solid currentColor;
    border-radius: 3px;
}

.context-icon.mail::after {
    left: 2px;
    top: 5px;
    width: 12px;
    height: 7px;
    border-left: 1.7px solid currentColor;
    border-bottom: 1.7px solid currentColor;
    transform: rotate(-45deg) skew(12deg, 12deg);
}

.context-icon.web::before,
.context-icon.globe::before {
    inset: 1px;
    border: 1.7px solid currentColor;
    border-radius: 50%;
}

.context-icon.web::after,
.context-icon.globe::after {
    left: 7px;
    top: 2px;
    height: 12px;
    border-left: 1.7px solid currentColor;
    box-shadow: -5px 5px 0 -4px currentColor, 5px 5px 0 -4px currentColor;
}

.context-icon.tag::before {
    left: 2px;
    top: 3px;
    width: 11px;
    height: 10px;
    border: 1.7px solid currentColor;
    border-radius: 3px;
    transform: rotate(45deg);
}

.context-icon.tag::after {
    left: 5px;
    top: 4px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
}

.context-icon.score::before {
    left: 2px;
    bottom: 2px;
    width: 3px;
    height: 6px;
    background: currentColor;
    box-shadow: 5px -3px 0 currentColor, 10px -7px 0 currentColor;
    border-radius: 2px 2px 0 0;
}

.context-icon.clear::before {
    left: 3px;
    top: 7px;
    width: 10px;
    border-top: 1.8px solid currentColor;
    transform: rotate(45deg);
}

.context-icon.clear::after {
    left: 3px;
    top: 7px;
    width: 10px;
    border-top: 1.8px solid currentColor;
    transform: rotate(-45deg);
}

.builder-condition-chip {
    position: absolute;
    z-index: 3;
    top: -8px;
    right: 8px;
    max-width: min(360px, 84%);
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border: 1px solid #bfd0ff;
    border-radius: 999px;
    background: #f3f6ff;
    color: #2343a0;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.builder-condition-chip[hidden] {
    display: none;
}

.builder-block:hover {
    background: transparent;
}

.builder-block:hover .builder-block-rail,
.builder-block.selected .builder-block-rail {
    opacity: 1;
}

.builder-block.selected {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.builder-block.dragging,
.flow-node.dragging {
    opacity: .55;
    outline: 2px solid var(--blue);
}

.builder-block-toolbar {
    min-height: 38px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    background: var(--panel-soft);
    border-bottom: 1px solid var(--line);
    display: none !important;
}

.builder-block[data-block-type="ai_writer"] {
    margin-left: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.builder-block[data-block-type="ai_writer"]:hover,
.builder-block[data-block-type="ai_writer"].selected {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

.builder-block[data-block-type="ai_writer"] > .builder-block-rail,
.builder-block[data-block-type="ai_writer"] > .builder-block-toolbar,
.builder-block[data-block-type="ai_writer"] > .builder-block-settings {
    display: none !important;
}

.builder-block[data-block-type="ai_writer"] > .builder-block-content {
    padding: 0;
}

.builder-block-toolbar span,
.automation-palette {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.builder-block-toolbar em {
    color: var(--purple);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.builder-block-content {
    padding: 4px 6px;
    outline: none;
}

.builder-block-content[contenteditable="true"] {
    cursor: text;
}

.builder-block-content h1,
.builder-block-content h2,
.builder-block-content h3,
.builder-block-content h4,
.builder-block-content h5,
.builder-block-content h6 {
    margin: 0 0 6px;
    letter-spacing: 0;
    font-weight: 600;
}

.builder-block-content h1 { font-size: 22px; }
.builder-block-content h2 { font-size: 20px; }
.builder-block-content h3 { font-size: 17px; }
.builder-block-content h4 { font-size: 15px; }
.builder-block-content h5 { font-size: 14px; }
.builder-block-content h6 { font-size: 13px; text-transform: none; }

.builder-block-content h2,
.builder-block-content h3,
.builder-block-content p,
.builder-block-content ul,
.builder-block-content ol {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 400;
}

.builder-block-content a,
.builder-block-content .editable-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 14px;
    border-radius: 8px;
    color: #fff;
    background: var(--blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.merge-tags-editor {
    position: relative;
    padding-top: 30px;
    background: transparent;
}

.merge-tags-editor textarea {
    width: 100%;
    min-height: 48px;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    resize: vertical;
    background: transparent;
    color: #111827;
    font: inherit;
    font-size: 14px;
    line-height: 1.55;
}

.merge-tags-editor textarea:focus {
    border-color: #e5e7eb;
    background: #fff;
    outline: none;
}

.merge-tags-toolbar {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 9;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(16, 24, 40, .08);
}

.merge-tags-toolbar button {
    height: 24px;
    min-width: 28px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #4b5563;
    cursor: pointer;
    font-size: 12px;
    font-weight: 650;
}

.merge-tags-toolbar button:hover,
.merge-tags-toolbar button[aria-expanded="true"] {
    background: #f1f3f7;
    color: #111827;
}

.merge-tag-search-popover {
    position: absolute;
    top: 34px;
    right: 0;
    z-index: 40;
    width: min(340px, calc(100vw - 56px));
    display: grid;
    gap: 8px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(16, 24, 40, .18);
}

.merge-tag-search-popover[hidden] {
    display: none;
}

.merge-tag-search-popover.open-up {
    top: auto;
    bottom: calc(100% + 6px);
}

.merge-tag-search-popover.open-left {
    right: auto;
    left: 0;
}

.merge-tag-search-popover input {
    width: 100%;
    height: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    padding: 0 9px;
    background: #fff;
    color: #111827;
    font-size: 13px;
}

.merge-tag-popover-list {
    display: grid;
    gap: 8px;
    max-height: 250px;
    overflow: auto;
}

.merge-tag-group {
    display: grid;
    gap: 5px;
}

.merge-tag-group > strong {
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.merge-tag-list {
    display: grid;
    gap: 3px;
}

.merge-tag-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 30px;
    padding: 4px 6px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: #111827;
    cursor: pointer;
    text-align: left;
}

.merge-tag-option:hover {
    background: #f8fafc;
}

.merge-tag-option span {
    min-width: 0;
    overflow: hidden;
    color: #111827;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.merge-tag-option code {
    flex: 0 0 auto;
    padding: 2px 6px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #334155;
    font-size: 11px;
    font-weight: 600;
}

.merge-tag-option small {
    display: none;
}

.merge-tag-empty {
    margin: 0;
    padding: 7px 8px;
    border-radius: 6px;
    background: #f8fafc;
    color: #667085;
    font-size: 12px;
}

.media-empty-state,
.embed-preview-card,
.audio-upload-help {
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px dashed #b8c3d8;
    border-radius: 8px;
    background: #f8fafd;
    color: var(--muted);
}

.image-upload-dropzone {
    min-height: 172px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 28px 18px;
    border: 1px solid #eceff3;
    border-radius: 4px;
    background: #fff;
    color: #6b7280;
    text-align: center;
}

.image-upload-dropzone.is-dragover,
.image-upload-dropzone.is-uploading {
    border-color: #cdd5e1;
    background: #fbfcff;
}

.image-upload-icon {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    color: #9aa4b2;
}

.image-upload-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.image-upload-dropzone p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.35;
}

.image-upload-actions {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.image-upload-pill {
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: #fff;
    color: #111827;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(16,24,40,.04);
}

.image-upload-pill:hover {
    background: #f9fafb;
    border-color: #d7dce5;
}

.image-upload-status {
    min-height: 16px;
    color: #667085;
    font-size: 12px;
}

.image-upload-status.error {
    color: #b42318;
}

.image-library-popover {
    width: min(360px, 100%);
    display: grid;
    gap: 4px;
    margin-top: 4px;
    padding: 6px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(16,24,40,.12);
    text-align: left;
}

.image-library-popover[hidden] {
    display: none;
}

.image-library-popover button {
    display: grid;
    gap: 2px;
    padding: 7px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
}

.image-library-popover button:hover {
    background: #f5f7fb;
}

.image-library-popover strong,
.image-library-popover small,
.image-library-popover > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-library-popover small,
.image-library-popover > span {
    color: #667085;
    font-size: 12px;
}

.file-attachment-editor {
    position: relative;
    min-height: 176px;
}

.file-attachment-toolbar {
    position: absolute;
    z-index: 4;
    top: -17px;
    left: 50%;
    height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px;
    border-radius: 7px;
    background: #25282e;
    color: #fff;
    box-shadow: 0 10px 26px rgba(16, 24, 40, .18);
    opacity: 0;
    transform: translateX(-50%);
    pointer-events: none;
}

.builder-block:hover .file-attachment-toolbar,
.builder-block.selected .file-attachment-toolbar {
    opacity: 1;
    pointer-events: auto;
}

.file-attachment-toolbar button {
    width: 28px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #d8dde8;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.file-attachment-toolbar button:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.file-attachment-dropzone {
    min-height: 176px;
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 32px 18px;
    border: 1px solid #eceff3;
    border-radius: 4px;
    background: #fff;
    color: #6b7280;
    text-align: center;
}

.builder-block.selected .file-attachment-dropzone,
.file-attachment-dropzone.is-dragover,
.file-attachment-dropzone.is-uploading {
    border-color: #c04a9d;
    border-style: dotted;
}

.file-attachment-icon {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    color: #9aa4b2;
}

.file-attachment-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.file-attachment-dropzone p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.35;
}

.file-attachment-dropzone > small {
    position: absolute;
    right: 12px;
    bottom: 10px;
    color: #7a828f;
    font-size: 12px;
}

.file-upload-pill {
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: #fff;
    color: #111827;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(16,24,40,.04);
}

.file-upload-pill:hover {
    background: #f9fafb;
    border-color: #d7dce5;
}

.file-upload-status {
    min-height: 16px;
    color: #667085;
    font-size: 12px;
}

.file-upload-status.error {
    color: #b42318;
}

.file-attachment-card {
    min-height: 118px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    gap: 4px 12px;
    padding: 22px;
    border: 1px solid #eceff3;
    border-radius: 4px;
    background: #fff;
    color: #111827;
    text-decoration: none;
}

.builder-block.selected .file-attachment-card {
    border-color: #c04a9d;
    border-style: dotted;
}

.file-attachment-card-icon {
    grid-row: 1 / span 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f5f7fb;
    color: #667085;
    font-size: 13px;
    font-weight: 850;
}

.file-attachment-card strong,
.file-attachment-card small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-attachment-card strong {
    font-size: 14px;
    font-weight: 750;
}

.file-attachment-card small {
    color: #667085;
    font-size: 12px;
}

.file-attachment-replace-menu,
.file-attachment-edit-menu {
    position: absolute;
    z-index: 5;
    top: 22px;
    left: 50%;
    width: min(290px, calc(100% - 28px));
    display: grid;
    gap: 4px;
    padding: 8px;
    border-radius: 8px;
    background: #25282e;
    color: #fff;
    box-shadow: 0 18px 40px rgba(16,24,40,.22);
    transform: translateX(-50%);
}

.file-attachment-replace-menu[hidden],
.file-attachment-edit-menu[hidden] {
    display: none;
}

.file-attachment-replace-menu.open-up,
.file-attachment-edit-menu.open-up {
    top: auto;
    bottom: 42px;
}

.file-attachment-replace-menu.open-left,
.file-attachment-edit-menu.open-left {
    left: auto;
    right: 0;
    transform: none;
}

.file-attachment-replace-menu button {
    min-height: 31px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    font-weight: 750;
}

.file-attachment-replace-menu button:hover {
    background: rgba(255,255,255,.08);
}

.file-attachment-edit-menu {
    gap: 10px;
    width: min(285px, calc(100% - 28px));
    padding: 10px;
}

.file-attachment-edit-menu label {
    display: grid;
    gap: 5px;
    color: rgba(255,255,255,.72);
    font-size: 12px;
    font-weight: 700;
}

.file-attachment-edit-menu input,
.file-attachment-edit-menu textarea {
    width: 100%;
    border: 0;
    border-radius: 7px;
    background: #fff;
    color: #111827;
    font-size: 14px;
}

.file-attachment-edit-menu input {
    height: 34px;
    padding: 0 10px;
}

.file-attachment-edit-menu textarea {
    min-height: 94px;
    padding: 10px;
    resize: vertical;
}

.media-empty-state strong,
.embed-preview-card strong,
.audio-upload-help strong {
    color: var(--ink);
}

.image-caption {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.email-content-break {
    padding: 12px 0;
    color: #9aa4b2;
    text-align: center;
    letter-spacing: .24em;
}

.email-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.email-preview-table th,
.email-preview-table td {
    padding: 9px;
    border: 1px solid var(--line);
    text-align: left;
}

.email-preview-table th {
    background: #f8fafd;
}

.code-preview {
    margin: 0;
    padding: 14px;
    overflow: auto;
    border-radius: 8px;
    background: #101828;
    color: #fff;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.code-editor-wrap {
    position: relative;
    display: grid;
    gap: 0;
    overflow: visible;
    border: 1px solid #dfe6f2;
    border-radius: 8px;
    background: #101828;
}

.code-inline-toolbar {
    min-height: 42px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 7px 8px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: #182230;
}

.code-language-picker {
    position: relative;
    min-width: 0;
}

.code-language-picker > button {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 6px;
    background: rgba(255,255,255,.06);
    color: #f9fafb;
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
}

.code-language-picker > button > span {
    color: #98a2b3;
    font-weight: 650;
}

.code-language-picker > button > strong {
    max-width: 145px;
    overflow: hidden;
    color: #fff;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.code-inline-toolbar button {
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 6px;
    background: rgba(255,255,255,.06);
    color: #f9fafb;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.code-inline-toolbar button:hover,
.code-inline-toolbar button[aria-expanded="true"],
.code-inline-toolbar button.active {
    border-color: rgba(104,163,255,.75);
    outline: 0;
}

.code-mode-tabs {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 7px;
    background: rgba(255,255,255,.04);
}

.code-mode-tabs button {
    min-height: 24px;
    padding: 0 8px;
    border: 0;
    background: transparent;
}

.code-mode-tabs button.active,
.code-safe-toggle.active {
    background: rgba(104,163,255,.18);
    color: #fff;
}

.code-snippet-picker {
    position: relative;
}

.code-snippet-popover {
    position: absolute;
    z-index: 64;
    top: 36px;
    left: 0;
    width: 244px;
    display: grid;
    gap: 3px;
    padding: 7px;
    border: 1px solid var(--editor-ui-line);
    border-radius: 8px;
    background: var(--editor-ui-bg);
    box-shadow: 0 18px 42px rgba(16, 24, 40, .22);
}

.code-snippet-popover[hidden] {
    display: none;
}

.code-snippet-popover.open-up {
    top: auto;
    bottom: calc(100% + 6px);
}

.code-snippet-popover.open-left {
    left: auto;
    right: 0;
}

.code-snippet-popover button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    justify-content: flex-start;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--editor-ui-text);
    text-align: left;
}

.code-snippet-popover button:hover {
    background: var(--editor-ui-control-hover);
}

.code-snippet-popover button span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.code-snippet-popover button code {
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    color: var(--editor-ui-muted);
    font-size: 11px;
    font-family: inherit;
}

.code-snippet-empty {
    margin: 0;
    padding: 8px;
    color: var(--editor-ui-muted);
    font-size: var(--editor-ui-font-size);
}

.code-warning-list {
    display: grid;
    gap: 4px;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: #2b2116;
}

.code-warning-list[hidden] {
    display: none;
}

.code-warning-list span {
    color: #fedf89;
    font-size: 12px;
    line-height: 1.35;
}

.code-language-popover {
    position: absolute;
    top: 36px;
    left: 0;
    z-index: 60;
    width: min(340px, calc(100vw - 56px));
    display: grid;
    gap: 8px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(16, 24, 40, .22);
}

.code-language-popover[hidden] {
    display: none;
}

.code-language-popover.open-up {
    top: auto;
    bottom: calc(100% + 6px);
}

.code-language-popover.open-left {
    left: auto;
    right: 0;
}

.code-language-popover input {
    width: 100%;
    height: 32px;
    padding: 0 9px;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: #fff;
    color: #111827;
    font-size: 13px;
}

.code-language-list {
    display: grid;
    gap: 3px;
    max-height: 258px;
    overflow: auto;
}

.code-language-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 30px;
    padding: 4px 6px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: #111827;
    cursor: pointer;
    text-align: left;
}

.code-language-option:hover,
.code-language-option.selected {
    background: #f8fafc;
}

.code-language-option span {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.code-language-option code {
    flex: 0 0 auto;
    padding: 2px 6px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #334155;
    font-size: 11px;
    font-weight: 600;
}

.code-language-empty {
    margin: 0;
    padding: 7px 8px;
    border-radius: 6px;
    background: #f8fafc;
    color: #667085;
    font-size: 12px;
}

.code-editor-wrap .code-preview {
    border-radius: 0;
}

.code-render-pane[hidden],
.code-preview[hidden] {
    display: none;
}

.code-render-pane {
    min-height: 110px;
    padding: 14px;
    background: #101828;
}

.code-rendered-email {
    padding: 18px;
    border: 1px solid #dfe6f2;
    border-radius: 8px;
    background: #fff;
    color: #101828;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
}

.code-image-preview {
    min-height: 118px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    border: 1px dashed rgba(255,255,255,.22);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(104,163,255,.18), transparent 42%),
        #111827;
    color: #f9fafb;
    text-align: center;
}

.code-image-preview span {
    width: 44px;
    height: 32px;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 6px;
    background: linear-gradient(#182230 0 30%, #101828 30%);
}

.code-image-preview strong,
.code-image-preview small {
    display: block;
}

.code-image-preview small {
    max-width: 360px;
    color: #d0d5dd;
    font-size: 12px;
    line-height: 1.45;
}

.code-preview code {
    display: block;
    min-height: 74px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #f9fafb;
    outline: 0;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    word-break: inherit;
    tab-size: 2;
}

.code-token-keyword { color: #7dd3fc; }
.code-token-string { color: #86efac; }
.code-token-number { color: #fbbf24; }
.code-token-tag { color: #f0abfc; }
.code-token-attr { color: #93c5fd; }

.premium-list-editor {
    display: grid;
    gap: 8px;
    padding: 4px 0;
}

.list-inline-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    min-height: 32px;
    padding: 4px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    opacity: .18;
    transition: opacity .15s ease;
}

.builder-block:hover .list-inline-toolbar,
.builder-block.selected .list-inline-toolbar {
    opacity: 1;
}

.list-inline-toolbar button {
    min-height: 26px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #475467;
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
}

.list-inline-toolbar button:hover,
.list-inline-toolbar button.active {
    background: #eef4ff;
    color: #2343a0;
}

.list-inline-toolbar button:disabled {
    cursor: wait;
    opacity: .66;
}

.premium-list-editor ul,
.premium-list-editor ol {
    margin: 0;
    color: #475467;
    font-size: 15px;
    line-height: 1.55;
}

.premium-list-editor [data-list-body] {
    outline: 0;
}

.premium-list-editor li {
    padding: 8px 0;
}

.premium-list-editor.list-spacing-compact li {
    padding: 4px 0;
}

.premium-list-editor.list-spacing-spacious li {
    padding: 12px 0;
}

.premium-list-editor.list-style-checklist ul,
.premium-list-editor.list-style-feature ul,
.premium-list-editor.list-style-pros_cons ul,
.premium-list-editor.list-style-checklist ol,
.premium-list-editor.list-style-feature ol,
.premium-list-editor.list-style-pros_cons ol {
    display: grid;
    gap: 2px;
    padding-left: 0;
    list-style: none;
}

.premium-list-editor.list-style-checklist li,
.premium-list-editor.list-style-feature li,
.premium-list-editor.list-style-pros_cons li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 8px;
    align-items: flex-start;
}

.premium-list-editor .list-marker {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    margin-top: 2px;
    border-radius: 50%;
    background: #2863ff;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.premium-list-editor li.is-con .list-marker {
    background: #b42318;
}

.styled-content-block {
    padding: 16px;
    border-radius: 8px;
}

.audio-preview-card {
    min-height: 128px;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 18px;
    border-radius: 8px;
    background: var(--audio-bg);
    color: var(--audio-text);
}

.audio-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border: 8px solid var(--audio-text);
    border-radius: 50%;
    color: var(--audio-text);
    font-size: 15px;
    font-weight: 600;
}

.audio-player-body {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.audio-player-body strong {
    color: var(--audio-text);
    font-size: 15px;
    font-weight: 500;
}

.audio-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.audio-controls b {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--audio-text);
    position: relative;
}

.audio-controls b::after {
    content: "";
    position: absolute;
    left: 13px;
    top: 9px;
    border-left: 12px solid var(--audio-bg);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.audio-progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.25);
    overflow: hidden;
}

.audio-progress i {
    display: block;
    width: 38%;
    height: 100%;
    border-radius: inherit;
    background: var(--audio-accent);
}

.audio-player-body small {
    overflow: hidden;
    color: color-mix(in srgb, var(--audio-text) 72%, transparent);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quote-editor-wrap {
    position: relative;
    padding-top: 24px;
}

.quote-inline-toolbar {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 50%;
    height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border-radius: 6px;
    background: #25282e;
    color: #fff;
    box-shadow: 0 10px 26px rgba(16, 24, 40, .18);
    transform: translate(-50%, -50%);
}

.quote-inline-toolbar button {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #d8dde8;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.quote-inline-toolbar button:hover,
.quote-inline-toolbar button.active {
    background: rgba(255,255,255,.08);
    color: #f05bad;
}

.quote-inline-toolbar button span {
    width: 10px;
    height: 10px;
    display: block;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.quote-inline-toolbar i {
    width: 1px;
    height: 22px;
    margin: 0 2px;
    background: rgba(255,255,255,.18);
}

.quote-editor-box {
    position: relative;
    min-height: 96px;
    margin: 0;
    padding: 20px 18px 20px 19px;
    border: 1px solid #c04a9d;
    border-left: 2px solid #c04a9d;
    border-radius: 4px;
    background: #fff;
    color: #111827;
    font-size: 15px;
    line-height: 1.55;
    outline: none;
    white-space: pre-wrap;
}

.quote-editor-box.is-empty::before {
    content: attr(data-placeholder);
    color: #aeb5c2;
}

.quote-editor-box.quote-variant-line {
    min-height: 80px;
    padding: 12px 0 12px 18px;
    border: 0;
    border-left: 4px solid #c04a9d;
    border-radius: 0;
}

.quote-editor-box.quote-variant-marks {
    min-height: 86px;
    padding: 14px 18px 14px 42px;
    border: 0;
    border-radius: 0;
    color: #1f2937;
    font-size: 17px;
}

.quote-editor-box.quote-variant-marks::after {
    content: "“";
    position: absolute;
    left: 14px;
    top: 32px;
    color: #c04a9d;
    font-size: 42px;
    line-height: 1;
    pointer-events: none;
}

.builder-block-content .classic-quote {
    margin: 0;
    padding: 18px;
    border-left: 4px solid var(--purple);
    border-radius: 8px;
    background: #f8fafd;
    color: #344054;
    white-space: pre-wrap;
}

.builder-block-content .classic-quote strong {
    display: block;
    margin-top: 10px;
}

.builder-block-content .brace-quote {
    position: relative;
    min-height: 70px;
    margin: 0;
    padding: 12px 0 12px 48px;
    color: #344054;
    font-size: 15px;
    line-height: 1.65;
    outline: none;
    white-space: pre-wrap;
}

.builder-block-content .brace-quote::before {
    content: "{";
    position: absolute;
    left: 8px;
    top: -8px;
    color: #c04a9d;
    font-size: 64px;
    font-weight: 300;
    line-height: 1;
}

.columns-editor-wrap {
    position: relative;
    padding-top: 50px;
}

.columns-inline-toolbar {
    position: absolute;
    z-index: 3;
    top: 13px;
    left: 50%;
    height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px;
    border-radius: 7px;
    background: #25282e;
    color: #fff;
    box-shadow: 0 10px 26px rgba(16, 24, 40, .18);
    transform: translateX(-50%);
}

.columns-inline-toolbar button {
    width: 27px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #d8dde8;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.columns-inline-toolbar button:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.columns-settings-popover {
    position: absolute;
    z-index: 2;
    top: 54px;
    left: 50%;
    width: min(355px, calc(100vw - 48px));
    display: grid;
    gap: 10px;
    padding: 8px 10px 12px;
    border-radius: 8px;
    background: #25282e;
    color: #fff;
    box-shadow: 0 18px 40px rgba(16, 24, 40, .22);
    transform: translateX(-50%);
}

.columns-settings-popover[hidden] {
    display: none;
}

.columns-settings-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.columns-settings-toolbar button {
    min-height: 31px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #f5f7fb;
    cursor: pointer;
    font-size: 14px;
    font-weight: 750;
    text-align: left;
}

.columns-settings-toolbar button.active,
.columns-settings-toolbar button:hover {
    background: rgba(255,255,255,.08);
}

.columns-settings-toolbar button span {
    width: 15px;
    height: 16px;
    display: inline-block;
    border-right: 2px solid #9aa4b2;
    border-left: 2px solid #9aa4b2;
    box-shadow: inset 4px 0 0 transparent, inset -4px 0 0 transparent;
}

.columns-width-grid {
    display: grid;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.columns-width-grid.columns-width-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.columns-width-grid.columns-width-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.columns-width-grid label {
    display: grid;
    gap: 6px;
    color: rgba(255,255,255,.58);
    font-size: 12px;
    font-weight: 650;
}

.columns-width-grid label > div {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 25px;
    align-items: center;
    gap: 3px;
}

.columns-width-grid input {
    width: 100%;
    min-width: 0;
    height: 31px;
    padding: 0 8px;
    border: 0;
    border-radius: 7px;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.36);
    font-size: 13px;
    font-weight: 650;
}

.columns-width-grid b {
    color: rgba(255,255,255,.36);
    font-size: 13px;
}

.columns-width-grid label button {
    width: 25px;
    height: 31px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #e5e7eb;
    cursor: pointer;
}

.columns-mobile-settings {
    display: grid;
    gap: 7px;
}

.columns-mobile-settings > span {
    color: rgba(255,255,255,.48);
    font-size: 12px;
    font-weight: 700;
}

.columns-mobile-settings label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 750;
}

.columns-mobile-settings input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.columns-mobile-settings i {
    width: 32px;
    height: 18px;
    position: relative;
    display: inline-block;
    border-radius: 999px;
    background: rgba(255,255,255,.15);
}

.columns-mobile-settings i::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    transition: transform .15s ease;
}

.columns-mobile-settings input:checked + i {
    background: #4388ff;
}

.columns-mobile-settings input:checked + i::after {
    transform: translateX(14px);
}

.columns-content-grid {
    display: grid;
    gap: 16px;
    margin-top: 8px;
}

.columns-content-grid.columns-count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.columns-content-grid.columns-count-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.column-editor-cell {
    min-height: 92px;
    padding: 10px;
    border: 1px dashed #d7dce5;
    border-radius: 6px;
    color: #344054;
    font-size: 14px;
    line-height: 1.55;
    outline: none;
    white-space: pre-wrap;
}

.column-editor-cell:focus {
    border-color: #c04a9d;
    box-shadow: 0 0 0 2px rgba(192, 74, 157, .08);
}

.column-editor-cell:empty::before {
    content: attr(data-placeholder);
    color: #aeb5c2;
}

@media (max-width: 720px) {
    .audience-step-panel {
        padding: 18px 12px 48px;
    }

    .email-settings-step,
    .review-step-panel {
        padding: 18px 12px 48px;
    }

    .audience-publish-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .audience-card,
    .audience-box,
    .email-settings-card {
        padding: 16px;
    }

    .review-publish-hero h2 {
        font-size: 26px;
    }

    .columns-content-grid.stack-columns,
    .columns-content-grid.columns-count-2,
    .columns-content-grid.columns-count-3 {
        grid-template-columns: 1fr;
    }

    .columns-width-grid.columns-width-2,
    .columns-width-grid.columns-width-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1180px) {
    .editor-flow-strip {
        display: none;
    }
}

.builder-block-settings {
    display: none !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 8px 6px 4px;
    padding: 10px;
    background: #25282e;
    color: #fff;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(16,24,40,.18);
}

.builder-block-settings[hidden] {
    display: none;
}

.inline-settings-head {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.inline-settings-head strong,
.inline-settings-head span {
    display: block;
}

.inline-settings-head span {
    color: rgba(255,255,255,.56);
    font-size: 12px;
    font-weight: 400;
}

.builder-block-settings label {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,.72);
}

.builder-block-settings input,
.builder-block-settings textarea,
.builder-block-settings select {
    width: 100%;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    border-color: rgba(255,255,255,.14);
    background: #fff;
    color: var(--ink);
}

.builder-block-settings input[type="color"] {
    min-height: 42px;
    padding: 4px;
}

.builder-block-settings label[hidden] {
    display: none;
}

.condition-rule-field small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.ai-writer-card {
    position: relative;
    display: grid;
    gap: 0;
    border-radius: 8px;
    background: #25282e;
    color: #fff;
    overflow: visible;
    box-shadow: 0 14px 34px rgba(16,24,40,.18);
}

.ai-writer-card.is-generating {
    opacity: .48;
}

.ai-writer-head {
    min-height: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 400;
}

.ai-writer-head span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.62);
}

.ai-writer-head i {
    width: 54px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e84bb8 9%, rgba(255,255,255,.2) 9%);
}

.ai-writer-card textarea {
    width: calc(100% - 24px);
    min-height: 96px;
    margin: 0 12px;
    resize: vertical;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    line-height: 1.45;
    font-size: 14px;
    font-weight: 400;
}

.ai-writer-actions,
.ai-image-actions {
    min-height: 42px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
}

.ai-image-actions {
    grid-template-columns: auto auto minmax(0, 1fr) auto auto auto;
}

.ai-writer-actions button,
.ai-image-actions button,
.ai-settings-panel button {
    min-height: 30px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: rgba(255,255,255,.84);
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
}

.ai-writer-actions button:hover,
.ai-image-actions button:hover,
.ai-settings-panel button:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
}

.ai-writer-actions button:disabled,
.ai-image-actions button:disabled,
.ai-settings-panel button:disabled {
    cursor: wait;
    opacity: .55;
}

.ai-writer-actions button:last-child,
.ai-image-actions > button:last-child {
    color: #fff;
    background: rgba(255,255,255,.07);
}

.ai-settings-wrap {
    position: absolute;
    z-index: 25;
    left: 14px;
    top: calc(100% - 2px);
    width: 290px;
}

.ai-settings-wrap[hidden] {
    display: none;
}

.ai-settings-panel {
    display: grid;
    gap: 4px;
    padding: 10px;
    border-radius: 0 0 8px 8px;
    background: #25282e;
    box-shadow: 0 16px 34px rgba(16,24,40,.2);
}

.ai-settings-panel button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
}

.ai-settings-panel label {
    display: grid;
    gap: 8px;
    padding: 8px 2px;
    color: rgba(255,255,255,.82);
    font-size: 13px;
    font-weight: 400;
}

.ai-settings-panel label span {
    display: grid;
    grid-template-columns: 1fr 132px;
    gap: 8px;
}

.ai-settings-panel input,
.ai-settings-panel select {
    width: 100%;
    min-height: 34px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 7px;
    background: #32363d;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
}

.ai-toggle-row {
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.ai-toggle-row input {
    width: 22px;
    min-height: 22px;
}

.ai-loading-card {
    position: absolute;
    left: 50%;
    top: calc(100% + 58px);
    transform: translateX(-50%);
    display: grid;
    gap: 10px;
    justify-items: center;
    padding: 18px 22px;
    border-radius: 8px;
    background: #25282e;
    color: rgba(255,255,255,.82);
    box-shadow: 0 16px 34px rgba(16,24,40,.22);
}

.ai-loading-card span {
    display: flex;
    gap: 8px;
}

.ai-loading-card i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4d8cff;
    animation: aiPulse .85s infinite alternate;
}

.ai-loading-card i:nth-child(2) {
    background: #9a67ff;
    animation-delay: .12s;
}

.ai-loading-card i:nth-child(3) {
    background: #e84bb8;
    animation-delay: .24s;
}

.ai-error-card {
    margin: 12px 12px 0;
    padding: 10px 12px;
    border: 1px solid rgba(248,113,113,.34);
    border-radius: 6px;
    background: rgba(127,29,29,.22);
    color: #fecaca;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
}

@keyframes aiPulse {
    from { transform: translateY(0); opacity: .55; }
    to { transform: translateY(-4px); opacity: 1; }
}

.ai-preview-result {
    max-height: 220px;
    display: grid;
    gap: 8px;
    padding: 10px 14px 0;
}

.ai-preview-result strong {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,.72);
}

.ai-preview-result div {
    max-height: 188px;
    overflow: auto;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 6px;
    background: #17191e;
    color: #fff;
    line-height: 1.55;
    font-size: 14px;
    font-weight: 400;
}

.ai-image-card textarea {
    min-height: 86px;
}

.ai-image-preview-result {
    padding: 12px 12px 0;
}

.ai-image-preview-result img {
    display: block;
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 7px;
    background: #111827;
}

.ai-image-style-picker {
    position: relative;
}

.ai-image-style-picker > button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.ai-image-style-picker > button span {
    color: #f0a4d6;
    font-weight: 800;
}

.ai-image-style-menu {
    position: absolute;
    z-index: 35;
    left: 0;
    top: calc(100% + 4px);
    width: 198px;
    display: grid;
    gap: 2px;
    padding: 6px;
    border-radius: 0 0 8px 8px;
    background: #25282e;
    box-shadow: 0 16px 34px rgba(16,24,40,.24);
}

.ai-image-style-menu[hidden] {
    display: none;
}

.ai-image-style-menu.open-up {
    top: auto;
    bottom: calc(100% + 6px);
    border-radius: 8px;
}

.ai-image-style-menu.open-left {
    left: auto;
    right: 0;
}

.ai-image-style-menu button {
    min-height: 30px;
    justify-content: flex-start;
    padding: 0 7px;
    color: rgba(255,255,255,.86);
    font-size: 13px;
    font-weight: 650;
    text-align: left;
}

.ai-image-style-menu button:hover,
.ai-image-style-menu button.selected,
.ai-image-settings-section button.selected {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.ai-image-settings-section {
    display: grid;
    gap: 3px;
}

.ai-image-settings-section strong {
    padding: 3px 2px 5px;
    color: rgba(255,255,255,.54);
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ai-image-settings-section button {
    justify-content: flex-start;
}

/* Unified premium editor controls. Keep every in-block tool on the same type scale. */
.ai-writer-card,
.ai-image-card,
.code-editor-wrap,
.merge-tags-editor,
.premium-list-editor,
.file-attachment-editor,
.image-upload-dropzone {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: var(--editor-ui-font-size);
    font-weight: 400;
    line-height: 1.42;
    letter-spacing: 0;
}

.ai-writer-card,
.ai-image-card,
.code-editor-wrap {
    border: 0;
    border-radius: 8px;
    background: var(--editor-ui-bg);
    color: var(--editor-ui-text);
    box-shadow: 0 14px 34px rgba(16,24,40,.18);
}

.ai-writer-head,
.code-inline-toolbar,
.list-inline-toolbar,
.merge-tags-toolbar,
.file-attachment-toolbar {
    min-height: 36px;
    padding: 7px 10px;
    border-color: var(--editor-ui-line);
    background: var(--editor-ui-bg);
    color: var(--editor-ui-text);
    font-size: var(--editor-ui-font-size);
    font-weight: 400;
    line-height: 1.25;
}

.ai-writer-head strong,
.ai-writer-head span,
.ai-writer-head b,
.code-language-picker > button,
.code-language-picker > button > span,
.code-language-picker > button > strong,
.ai-writer-actions button,
.ai-image-actions button,
.ai-settings-panel button,
.ai-image-style-picker > button,
.ai-image-style-menu button,
.ai-image-settings-section button,
.code-inline-toolbar button,
.code-snippet-popover button,
.list-inline-toolbar button,
.merge-tags-toolbar button,
.merge-tag-option,
.image-upload-pill,
.file-upload-pill,
.file-attachment-toolbar button,
.block-context-menu button,
.context-submenu-panel button {
    font-size: var(--editor-ui-font-size);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0;
}

.ai-writer-head strong {
    color: var(--editor-ui-text);
    font-weight: 700;
}

.ai-writer-head span,
.ai-writer-head span b {
    color: var(--editor-ui-muted);
}

.ai-writer-card textarea,
.ai-image-card textarea,
.merge-tags-editor textarea,
.code-language-popover input,
.merge-tag-search-popover input,
.builder-block-settings input,
.builder-block-settings textarea,
.builder-block-settings select {
    font-size: var(--editor-ui-field-size);
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0;
}

.ai-writer-card textarea,
.ai-image-card textarea {
    min-height: 86px;
    padding: 11px 12px;
    border-radius: 6px;
}

.ai-writer-actions,
.ai-image-actions {
    min-height: 42px;
    gap: 7px;
    padding: 0 10px;
}

.ai-writer-actions button,
.ai-image-actions button,
.ai-settings-panel button,
.ai-image-style-picker > button,
.ai-image-style-menu button,
.ai-image-settings-section button,
.code-inline-toolbar button,
.code-language-picker > button,
.list-inline-toolbar button,
.merge-tags-toolbar button {
    min-height: var(--editor-ui-button-height);
    border-radius: var(--editor-ui-radius);
}

.ai-writer-actions button,
.ai-image-actions button,
.ai-settings-panel button,
.ai-image-style-menu button,
.ai-image-settings-section button,
.code-inline-toolbar button,
.code-language-picker > button {
    background: transparent;
    color: rgba(255,255,255,.84);
}

.ai-writer-actions button:hover,
.ai-image-actions button:hover,
.ai-settings-panel button:hover,
.ai-image-style-menu button:hover,
.ai-image-style-menu button.selected,
.ai-image-settings-section button.selected,
.code-inline-toolbar button:hover,
.code-inline-toolbar button.active,
.code-language-picker > button:hover,
.code-language-picker > button[aria-expanded="true"] {
    background: var(--editor-ui-control-hover);
    color: #fff;
}

.ai-writer-actions button:last-child,
.ai-image-actions > button:last-child,
.code-safe-toggle.active,
.code-mode-tabs button.active {
    background: var(--editor-ui-control);
    color: #fff;
}

.ai-settings-panel,
.ai-image-style-menu {
    background: var(--editor-ui-bg);
    color: var(--editor-ui-text);
}

.ai-settings-panel label,
.ai-image-settings-section strong {
    font-size: var(--editor-ui-font-size);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0;
}

.ai-image-settings-section strong {
    color: var(--editor-ui-muted);
    text-transform: none;
}

.code-inline-toolbar {
    border-bottom: 1px solid var(--editor-ui-line);
}

.code-mode-tabs,
.code-language-picker > button,
.code-inline-toolbar button {
    border-color: var(--editor-ui-line);
}

.code-preview,
.code-preview code {
    font-size: 12px;
    line-height: 1.52;
}

.list-inline-toolbar,
.merge-tags-toolbar {
    border: 0;
    background: var(--editor-ui-bg);
    opacity: 1;
    box-shadow: 0 10px 26px rgba(16,24,40,.14);
}

.list-inline-toolbar button,
.merge-tags-toolbar button {
    color: rgba(255,255,255,.82);
}

.list-inline-toolbar button:hover,
.list-inline-toolbar button.active,
.merge-tags-toolbar button:hover,
.merge-tags-toolbar button[aria-expanded="true"] {
    background: var(--editor-ui-control-hover);
    color: #fff;
}

.premium-list-editor ul,
.premium-list-editor ol,
.builder-block-content p,
.builder-block-content ul,
.builder-block-content ol {
    font-size: 14px;
    line-height: 1.55;
    font-weight: 400;
}

.editor-inline-library {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    border-top: 1px solid var(--line);
    background: #fbfbfd;
}

.inline-library-section {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 12px;
}

.inline-library-section summary {
    cursor: pointer;
    font-weight: 900;
}

.inline-upload-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
}

.inline-upload-form .button,
.inline-upload-form input[type="file"] {
    grid-column: 1 / -1;
}

.inline-assets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.saved-block small {
    display: block;
    margin-top: 3px;
    color: var(--green);
    font-size: 11px;
}

.visual-flow-preview,
.automation-canvas,
.automation-builder,
.click-map-list,
.feature-catalog-card {
    display: grid;
    gap: 10px;
}

.automation-builder {
    margin-top: 16px;
}

.automation-canvas {
    padding: 12px;
    border: 1px dashed #b8c3d8;
    border-radius: 8px;
    background: #f8fafd;
}

.flow-node {
    min-height: 52px;
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.flow-node span:first-child {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: var(--blue);
    font-weight: 900;
}

.flow-node.condition span:first-child { background: var(--purple); }
.flow-node.wait span:first-child { background: var(--amber); }
.flow-node.sms span:first-child,
.flow-node.push span:first-child { background: var(--green); }
.flow-node.webhook span:first-child { background: var(--rose); }

.flow-node strong,
.flow-node small {
    display: block;
}

.flow-node small {
    color: var(--muted);
    font-size: 12px;
}

.analytics-splits,
.benchmark-grid,
.advisor-score-grid,
.feature-catalog-grid {
    display: grid;
    gap: 12px;
}

.analytics-splits,
.benchmark-grid,
.advisor-score-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analytics-splits > div,
.benchmark-card,
.feature-catalog-card,
.advisor-score-grid div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
}

.analytics-splits span,
.click-map-list span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 9px;
    color: var(--muted);
}

.analytics-splits em {
    font-style: normal;
}

.benchmark-card.good {
    border-color: rgba(15, 138, 95, .35);
}

.benchmark-card.warn {
    border-color: rgba(183, 121, 31, .35);
}

.benchmark-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.click-map-list div {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.click-map-list span {
    height: 8px;
    border-radius: 999px;
    background: #edf2ff;
    overflow: hidden;
}

.click-map-list i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--blue);
}

.advisor-score-grid strong,
.advisor-score-grid span,
.feature-catalog-card strong,
.feature-catalog-card span,
.feature-catalog-card small {
    display: block;
}

.advisor-score-grid span,
.feature-catalog-card span,
.feature-catalog-card small,
.translation-list span {
    color: var(--muted);
}

@media (max-width: 1280px) {
    .metric-grid,
    .dashboard-grid,
    .content-grid.two-one,
    .editor-shell,
    .growth-hero,
    .brand-layout,
    .cdp-strip,
    .plan-grid,
    .analytics-splits,
    .benchmark-grid,
    .advisor-score-grid,
    .feature-catalog-grid,
    .campaign-report-shell,
    .campaign-report-score-grid,
    .campaign-report-kpis,
    .campaign-report-grid,
    .campaign-heatmap-layout,
    .contact-profile-shell,
    .contact-profile-metrics,
    .contact-profile-bottom-grid,
    .dns-hostname-row,
    .newsletter-composer-grid,
    .studio-builder-layout,
    .two-field-row,
    .builder-block-settings,
    .account-grid {
        grid-template-columns: 1fr;
    }

    .split,
    .campaign-stage,
    .newsletter-studio-header,
    .studio-card-head,
    .studio-toolbar,
    .studio-header-actions,
    .profile-toolbar {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .editor-shell {
        max-width: 920px;
    }
}

@media (max-width: 900px) {
    .inbox-preview-panel {
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        grid-template-rows: auto minmax(0, 1fr);
    }

    .preview-workbench-toolbar,
    .preview-toolbar-left,
    .preview-toolbar-right {
        flex-wrap: wrap;
    }

    .preview-testmail-form input {
        width: 160px;
    }

    .preview-device-stage {
        padding: 18px 12px 28px;
    }

    .editor-ai-assistant {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
    }

    .editor-ai-command {
        grid-template-columns: 1fr;
    }

    .editor-ai-suggestion {
        grid-template-columns: 1fr;
    }

    .editor-ai-suggestion > span {
        display: flex;
        flex-wrap: wrap;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        padding: 28px;
    }

    .auth-aside h1 {
        font-size: 34px;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
    }

    .nav-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .topbar,
    .topbar-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .search-shell {
        min-width: 0;
    }

    .metric-grid,
    .dns-status-grid,
    .simulation-grid,
    .insight-grid,
    .flow-nodes,
    .growth-scoreboard,
    .form-stats,
    .smart-link-card,
    .smart-link-stats,
    .dns-hostname-head,
    .dns-hostname-row,
    .legal-topbar,
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .account-hero,
    .account-section-head,
    .security-twofa-card,
    .billing-history-mini div {
        flex-direction: column;
        align-items: stretch;
    }

    .account-nav {
        position: static;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .account-form-grid,
    .account-form-grid.compact,
    .billing-summary-card,
    .billing-detail-list,
    .account-plan-grid,
    .account-workspaces,
    .security-twofa-card,
    .twofa-qr-box {
        grid-template-columns: 1fr;
    }

    .billing-actions-row .button {
        width: 100%;
    }

    .legal-shell {
        padding: 14px;
    }

    .legal-topbar {
        justify-items: stretch;
    }

    .legal-topbar .button {
        width: 100%;
    }

    .legal-nav {
        justify-content: flex-start;
    }

    .legal-hero {
        margin-top: 16px;
        padding: 22px;
    }

    .legal-hero h1 {
        font-size: 34px;
    }

    .legal-toc {
        position: static;
    }

    .legal-document {
        padding: 20px;
    }

    .block-command-menu {
        top: 10px;
        left: 9px;
        width: calc(100% - 18px);
        transform: none;
    }

    .block-command-grid {
        grid-template-columns: 1fr;
    }

    .builder-block {
        margin-left: 0;
    }

    .builder-bottom-space {
        margin-left: 0;
        min-height: clamp(360px, 58vh, 620px);
    }

    .builder-block-rail {
        position: static;
        padding: 8px 10px 0;
    }

    .audio-preview-card {
        grid-template-columns: 1fr;
    }

    .main {
        padding: 16px;
    }
}
