: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: 272px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px 14px;
    color: #fff;
    background:
        radial-gradient(circle at 0 0, rgba(43,213,189,.12), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.06), transparent 32%),
        var(--sidebar);
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
}

.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: 3px;
}

.nav-item,
.nav-subitem {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: rgba(238,244,255,.76);
    border-radius: 7px;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: -.01em;
    transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.nav-item {
    min-height: 40px;
    padding: 9px 10px;
}

.nav-item:hover,
.nav-item.is-active {
    background: linear-gradient(90deg, rgba(255,255,255,.13), rgba(255,255,255,.06));
    color: #fff;
    transform: translateX(2px);
    box-shadow: inset 1px 0 0 rgba(255,255,255,.08);
}

.nav-item.is-active .nav-icon,
.nav-subitem.is-active .nav-icon {
    color: #2bd5bd;
    filter: drop-shadow(0 0 10px rgba(43,213,189,.26));
}

.nav-item.is-active .nav-label,
.nav-subitem.is-active .nav-label {
    color: #45d6c6;
}

.nav-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: rgba(238,244,255,.72);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: color .18s ease, filter .18s ease;
}

.nav-label {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-badge {
    min-width: 28px;
    min-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(148,163,184,.34);
    color: rgba(255,255,255,.84);
    font-size: 11px;
    font-weight: 850;
}

.nav-group {
    display: grid;
    gap: 2px;
}

.nav-group summary {
    list-style: none;
    cursor: pointer;
}

.nav-group summary::-webkit-details-marker {
    display: none;
}

.nav-chevron {
    width: 9px;
    height: 9px;
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: .64;
    transform: rotate(-45deg);
    transition: transform .18s ease, opacity .18s ease;
}

.nav-group[open] .nav-chevron {
    opacity: 1;
    transform: rotate(45deg);
}

.nav-sublist {
    display: grid;
    gap: 2px;
    margin: 2px 0 7px 27px;
    padding-left: 13px;
    border-left: 1px solid rgba(238,244,255,.13);
}

.nav-subitem {
    min-height: 34px;
    padding: 7px 9px;
    color: rgba(238,244,255,.68);
    font-size: 13px;
    font-weight: 650;
}

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

.nav-subitem .nav-icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
    opacity: .72;
}

.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: 72px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    padding: 0;
}

.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;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.top-menu {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 7px;
    border: 1px solid rgba(213,220,232,.78);
    border-radius: 22px;
    background:
        radial-gradient(circle at 10% 0%, rgba(40,99,255,.12), transparent 32%),
        linear-gradient(135deg, rgba(255,255,255,.90), rgba(248,250,252,.72)),
        rgba(255,255,255,.86);
    box-shadow: 0 22px 60px rgba(28,39,64,.11), inset 0 1px 0 rgba(255,255,255,.88);
    backdrop-filter: blur(18px);
}

.search-shell {
    height: 46px;
    width: min(620px, 100%);
    min-width: 0;
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border: 1px solid rgba(213,220,232,.72);
    border-radius: 16px;
    background: rgba(255,255,255,.88);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
    backdrop-filter: blur(10px);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.search-shell:focus-within {
    border-color: rgba(40,99,255,.34);
    box-shadow: 0 18px 48px rgba(28,39,64,.13), 0 0 0 4px rgba(40,99,255,.08), inset 0 1px 0 rgba(255,255,255,.95);
    transform: translateY(-1px);
}

.search-shell span {
    width: 13px;
    height: 13px;
    border: 2px solid #7c8798;
    border-radius: 50%;
    position: relative;
    flex: 0 0 auto;
}

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

.search-shell input {
    border: 0;
    background: transparent;
    outline: none;
    width: 100%;
    color: #111827;
    font-size: 14px;
    font-weight: 650;
}

.search-shell input::placeholder {
    color: #7d8796;
    font-weight: 600;
}

.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);
}

.logout-form .button.secondary {
    min-height: 46px;
    padding: 0 18px;
    border-color: rgba(213,220,232,.86);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(17,24,39,.96), rgba(37,40,46,.94)),
        #111827;
    color: #fff;
    box-shadow: 0 16px 34px rgba(17,24,39,.18), inset 0 1px 0 rgba(255,255,255,.08);
    font-size: 13px;
    letter-spacing: .01em;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.logout-form .button.secondary:hover,
.logout-form .button.secondary:focus-visible {
    transform: translateY(-1px);
    background:
        linear-gradient(135deg, #1d2939, #111827),
        #111827;
    box-shadow: 0 20px 42px rgba(17,24,39,.24), 0 0 0 4px rgba(17,24,39,.07);
    outline: 0;
}

.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;
}

.status-chip.sent,
.status-chip.approved {
    background: #dcfce7;
    color: #166534;
}

.status-chip.review,
.status-chip.scheduled {
    background: #eef3ff;
    color: #183fb8;
}

.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);
}

.newsletter-template-page {
    display: grid;
    gap: 18px;
}

.newsletter-template-page .newsletter-template-library {
    min-height: calc(100vh - 130px);
}

.newsletter-list-page {
    display: grid;
    gap: 18px;
}

.newsletter-list-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px;
    border: 1px solid rgba(213,220,232,.78);
    border-radius: 18px;
    background:
        radial-gradient(circle at 7% 0%, rgba(40,99,255,.10), transparent 30%),
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.82)),
        #fff;
    box-shadow: 0 18px 50px rgba(28,39,64,.08);
}

.newsletter-list-hero h2 {
    margin: 0;
    font-size: clamp(28px, 2.4vw, 38px);
    line-height: 1;
    letter-spacing: -.05em;
}

.newsletter-list-hero p:not(.eyebrow) {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.newsletter-list-panel {
    overflow: hidden;
    border: 1px solid rgba(213,220,232,.78);
    border-radius: 16px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 20px 58px rgba(28,39,64,.08);
}

.newsletter-list-summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    border-bottom: 1px solid rgba(223,230,242,.88);
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.newsletter-list-summary label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.newsletter-list-summary input,
.newsletter-list-check input {
    width: 14px;
    height: 14px;
    accent-color: var(--blue);
}

.newsletter-list-table {
    display: grid;
}

.newsletter-list-row {
    min-height: 78px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(223,230,242,.72);
    background: rgba(255,255,255,.76);
    transition: background .16s ease, box-shadow .16s ease;
}

.newsletter-list-row:last-child {
    border-bottom: 0;
}

.newsletter-list-row:hover {
    background: #fff;
    box-shadow: inset 3px 0 0 var(--blue);
}

.newsletter-list-check {
    display: grid;
    place-items: center;
}

.newsletter-list-main {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.newsletter-list-main > strong {
    overflow: hidden;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.newsletter-list-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #667085;
    font-size: 12px;
}

.newsletter-list-meta i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d7cdfd, #7c69ee);
    box-shadow: 0 0 0 4px rgba(124,105,238,.10);
}

.newsletter-list-stats {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.newsletter-list-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.newsletter-row-link,
.newsletter-kebab {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(213,220,232,.8);
    border-radius: 9px;
    background: #fff;
    color: #344054;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
}

.newsletter-row-link {
    padding: 0 10px;
}

.newsletter-kebab {
    width: 32px;
    cursor: pointer;
}

.newsletter-row-link:hover,
.newsletter-kebab:hover {
    border-color: rgba(40,99,255,.34);
    color: var(--blue-dark);
    box-shadow: 0 10px 22px rgba(28,39,64,.08);
}

.newsletter-list-empty {
    display: grid;
    justify-items: start;
    gap: 8px;
    padding: 28px;
    color: var(--muted);
}

.newsletter-list-empty strong {
    color: #111827;
}

.newsletter-template-library {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% -8%, rgba(40,99,255,.16), transparent 28%),
        radial-gradient(circle at 96% 4%, rgba(15,138,95,.12), transparent 24%),
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.94)),
        #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(28,39,64,.12);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.newsletter-template-library::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255,255,255,.72) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,.68) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: .28;
}

.editor-clean-body .newsletter-template-library {
    border-top: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: inset 0 -1px 0 var(--line);
}

.template-library-head {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 30px 34px 26px;
    border-bottom: 1px solid rgba(213,220,232,.78);
    background:
        linear-gradient(135deg, rgba(255,255,255,.90), rgba(255,255,255,.56)),
        rgba(255,255,255,.72);
    backdrop-filter: blur(12px);
}

.template-library-head h2,
.template-section-head strong,
.template-card-copy strong {
    margin: 0;
    letter-spacing: 0;
}

.template-library-head h2 {
    margin-top: 2px;
    font-size: clamp(28px, 2.8vw, 42px);
    line-height: .98;
    letter-spacing: -.055em;
}

.template-library-head p {
    max-width: 660px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.template-library-head .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
}

.template-library-head .eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #31d08f;
    box-shadow: 0 0 0 4px rgba(49,208,143,.18);
}

.template-library-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.template-search {
    position: relative;
    width: 310px;
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.template-search::after {
    content: "";
    position: absolute;
    left: 14px;
    bottom: 12px;
    width: 12px;
    height: 12px;
    border: 2px solid #98a2b3;
    border-radius: 50%;
    box-shadow: 6px 6px 0 -4px #98a2b3;
    transform: rotate(-16deg);
}

.template-search input {
    width: 100%;
    min-height: 44px;
    padding-left: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 12px 30px rgba(28,39,64,.07);
}

.template-library-body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 202px minmax(0, 1fr);
    min-height: 520px;
}

.template-library-tabs {
    position: sticky;
    top: 0;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 24px 16px;
    border-right: 1px solid rgba(213,220,232,.72);
    background: rgba(248,250,253,.62);
}

.template-library-tabs a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 13px;
    border-radius: 12px;
    color: #475467;
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
}

.template-library-tabs a::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #d0d5dd;
    transition: background .16s ease, box-shadow .16s ease;
}

.template-library-tabs a:hover,
.template-library-tabs a.active {
    background: #fff;
    color: #111827;
    box-shadow: 0 10px 24px rgba(28,39,64,.07);
}

.template-library-tabs a:hover::before,
.template-library-tabs a.active::before {
    background: var(--blue);
    box-shadow: 0 0 0 5px rgba(40,99,255,.12);
}

.template-library-content {
    display: grid;
    gap: 34px;
    padding: 28px 30px 36px;
}

.template-library-section {
    display: grid;
    gap: 16px;
}

.template-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 0 2px;
}

.template-section-head strong {
    color: #111827;
    font-size: 18px;
    letter-spacing: -.02em;
}

.template-section-head span,
.template-card-copy small,
.template-empty-state span {
    color: var(--muted);
    line-height: 1.45;
}

.template-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 18px;
}

.template-card-grid.start-grid {
    grid-template-columns: minmax(280px, 480px);
}

.newsletter-template-form {
    min-width: 0;
}

.newsletter-template-card {
    position: relative;
    width: 100%;
    min-height: 450px;
    display: grid;
    grid-template-rows: minmax(270px, 1fr) auto auto;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(213,220,232,.92);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.86)),
        #fff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(28,39,64,.07);
    isolation: isolate;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.newsletter-template-card::after {
    content: "";
    position: absolute;
    inset: auto 18px 92px 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--template-accent) 34%, #dfe6f2), transparent);
    opacity: .75;
}

.newsletter-template-card:hover,
.newsletter-template-card:focus-visible {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--template-accent) 46%, #dfe6f2);
    box-shadow: 0 28px 60px rgba(28,39,64,.15);
    outline: 0;
}

.template-card-badge {
    position: absolute;
    z-index: 3;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    color: var(--template-accent);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    box-shadow: 0 10px 24px rgba(28,39,64,.10);
    backdrop-filter: blur(10px);
}

.template-preview-frame {
    min-height: 284px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(223,230,242,.86);
    border-radius: 14px;
    background:
        radial-gradient(circle at 50% 16%, rgba(255,255,255,.90), transparent 30%),
        linear-gradient(135deg, color-mix(in srgb, var(--template-accent) 9%, #f7f9fc), #eef2f7);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
}

.newsletter-template-card.is-empty .template-preview-frame {
    min-height: 338px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.72), transparent 46%),
        repeating-linear-gradient(135deg, #f3f5f8 0 12px, #eef2f7 12px 24px);
}

.template-preview-empty {
    display: grid;
    gap: 10px;
    place-items: center;
    color: #667085;
}

.template-preview-empty span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #111827;
    font-size: 18px;
    box-shadow: 0 14px 32px rgba(28,39,64,.12);
}

.template-preview-empty strong {
    color: var(--ink);
    font-size: 15px;
    letter-spacing: -.01em;
}

.template-mini-email {
    width: min(260px, 82%);
    min-height: 286px;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 22px 20px;
    border: 1px solid rgba(223,230,242,.92);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 22px 46px rgba(28,39,64,.15);
    transform: rotate(-1.2deg);
    transition: transform .18s ease;
}

.newsletter-template-card:hover .template-mini-email,
.newsletter-template-card:focus-visible .template-mini-email {
    transform: rotate(0deg) scale(1.018);
}

.template-mini-email > span {
    color: var(--template-accent);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.template-mini-email > strong {
    color: #111827;
    font-size: 19px;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.template-mini-email em {
    display: block;
    padding: 9px 0;
    border-top: 1px solid #eef2f7;
    color: #667085;
    font-size: 12px;
    font-style: normal;
    line-height: 1.38;
}

.template-mini-button {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 7px;
    background: var(--template-accent);
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.template-mini-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.template-mini-columns i {
    height: 46px;
    border-radius: 6px;
    background: linear-gradient(180deg, #f2f4f7, #e9edf5);
}

.template-card-copy {
    display: grid;
    gap: 6px;
    min-height: 74px;
}

.template-card-copy strong {
    color: #111827;
    font-size: 17px;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.template-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 11px;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(17,24,39,.16);
    transition: background .16s ease, transform .16s ease;
}

.newsletter-template-card:hover .template-card-action,
.newsletter-template-card:focus-visible .template-card-action {
    background: var(--template-accent);
    transform: translateY(-1px);
}

.template-empty-state {
    display: grid;
    gap: 6px;
    padding: 22px;
    border: 1px dashed #cfd8e8;
    border-radius: 14px;
    background: rgba(255,255,255,.72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.newsletter-template-form[hidden],
.template-library-section[hidden] {
    display: none;
}

@media (max-width: 1280px) {
    .template-library-body {
        grid-template-columns: 1fr;
    }

    .template-library-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .template-card-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 900px) {
    .template-library-head {
        grid-template-columns: 1fr;
    }

    .newsletter-list-hero,
    .template-library-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-list-row {
        grid-template-columns: 24px minmax(0, 1fr);
        align-items: start;
    }

    .newsletter-list-stats,
    .newsletter-list-actions {
        grid-column: 2;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .template-search {
        width: 100%;
    }

    .template-library-tabs,
    .template-card-grid,
    .template-card-grid.start-grid {
        grid-template-columns: 1fr;
    }
}

.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-toolbar .button-row {
    position: relative;
    z-index: 3;
    gap: 7px;
    margin-top: 10px;
    align-items: center;
    justify-content: flex-end;
}

.editor-clean-body .studio-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(17,24,39,.08);
    background:
        radial-gradient(circle at 0 0, rgba(40,99,255,.08), transparent 260px),
        rgba(255,255,255,.94);
    box-shadow: 0 14px 34px rgba(17,24,39,.08);
}

.editor-clean-body .studio-toolbar > div:first-child {
    min-width: 0;
}

.editor-clean-body .studio-toolbar .button-row {
    margin-top: 0;
    padding: 5px;
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 999px;
    background: rgba(248,250,252,.86);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 10px 24px rgba(17,24,39,.05);
    backdrop-filter: blur(14px);
}

.editor-clean-body .studio-toolbar .mini-button,
.editor-clean-body .studio-toolbar .autosave-status {
    min-height: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #344054;
    box-shadow: none;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: -.01em;
    line-height: 1;
    white-space: nowrap;
    transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.editor-clean-body .studio-toolbar .mini-button:hover,
.editor-clean-body .studio-toolbar .mini-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(17,24,39,.08);
    background: #fff;
    color: #111827;
    box-shadow: 0 10px 24px rgba(17,24,39,.10);
    outline: 0;
}

.editor-clean-body .studio-toolbar .block-insert-trigger {
    border-color: rgba(37,40,46,.14);
    background: #25282e;
    color: #fff;
    box-shadow: 0 10px 26px rgba(37,40,46,.18);
}

.editor-clean-body .studio-toolbar .block-insert-trigger:hover,
.editor-clean-body .studio-toolbar .block-insert-trigger:focus-visible {
    background: #111827;
    color: #fff;
    box-shadow: 0 14px 32px rgba(17,24,39,.22);
}

.editor-clean-body .studio-toolbar [data-inbox-preview-toggle],
.editor-clean-body .studio-toolbar [data-history-toggle] {
    color: #475467;
}

.editor-clean-body .studio-toolbar [data-preview-width].active,
.editor-clean-body .studio-toolbar [data-preview-width][aria-pressed="true"] {
    border-color: rgba(40,99,255,.16);
    background: #eaf1ff;
    color: #0d47d9;
    box-shadow: inset 0 0 0 1px rgba(40,99,255,.08);
}

.editor-clean-body .studio-toolbar .autosave-status {
    padding-left: 11px;
    padding-right: 13px;
    border-color: rgba(15,138,95,.13);
    background: #effdf6;
    color: #08734f;
}

.editor-clean-body .studio-toolbar .autosave-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(15,138,95,.10);
}

.editor-clean-body .studio-toolbar .autosave-status.saving {
    border-color: rgba(183,121,31,.16);
    background: #fff8eb;
    color: #9a6700;
}

.editor-clean-body .studio-toolbar .autosave-status.error {
    border-color: rgba(192,54,44,.18);
    background: #fff1f0;
    color: #c0362c;
}

.editor-clean-body .studio-toolbar .editor-next-button {
    min-width: 76px;
    border-color: #111827;
    background: #111827;
    color: #fff;
    box-shadow: 0 12px 30px rgba(17,24,39,.18);
}

.editor-clean-body .studio-toolbar .editor-next-button:hover,
.editor-clean-body .studio-toolbar .editor-next-button:focus-visible {
    background: #0d47d9;
    border-color: #0d47d9;
    color: #fff;
    box-shadow: 0 16px 36px rgba(40,99,255,.26);
}

.editor-clean-body .studio-toolbar .editor-flow-strip {
    left: 18px;
    max-width: min(520px, 42vw);
    transform: translateY(-50%);
    justify-content: flex-start;
}

@media (max-width: 980px) {
    .editor-clean-body .studio-toolbar {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px;
    }

    .editor-clean-body .studio-toolbar .editor-flow-strip {
        position: static;
        max-width: 100%;
        transform: none;
        order: 1;
        opacity: .76;
        overflow-x: auto;
        justify-content: flex-start;
        pointer-events: auto;
    }

    .editor-clean-body .studio-toolbar .button-row {
        order: 2;
        justify-content: flex-start;
        overflow-x: auto;
        border-radius: 18px;
    }

    .editor-clean-body .studio-toolbar .mini-button,
    .editor-clean-body .studio-toolbar .autosave-status {
        flex: 0 0 auto;
    }
}

.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: 10px;
    left: 10px;
    width: min(980px, calc(100% - 32px));
    max-height: calc(100vh - 20px);
    overflow: hidden;
    border: 1px solid rgba(164, 184, 224, .58);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    color: #0f1f4d;
    box-shadow: 0 34px 95px rgba(15, 23, 42, .26), 0 12px 30px rgba(40, 99, 255, .14);
    backdrop-filter: blur(18px);
}

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

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

.block-command-head {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    background:
        radial-gradient(circle at top left, rgba(116, 166, 255, .54), transparent 34%),
        linear-gradient(135deg, #10245f 0%, #2863ff 55%, #5a8dff 100%);
    color: #fff;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.block-command-menu.is-dragging {
    box-shadow: 0 42px 120px rgba(15, 23, 42, .34), 0 16px 38px rgba(40, 99, 255, .2);
}

.block-command-menu.is-dragging .block-command-head {
    cursor: grabbing;
}

body.is-dragging-block-command {
    user-select: none;
}

.block-command-head > span {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 13px;
    background: rgba(255, 255, 255, .17);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24);
    font-size: 20px;
    font-weight: 900;
}

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

.block-command-head small {
    color: rgba(255, 255, 255, .76);
    font-size: 12px;
}

.block-command-head .mini-button {
    width: 30px;
    min-height: 30px;
    padding: 0;
    border-color: transparent;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 20px;
}

.block-command-head .mini-button:hover {
    background: rgba(255, 255, 255, .22);
}

.block-command-body {
    display: grid;
    grid-template-columns: 184px minmax(0, 1fr) 248px;
    min-height: 0;
    max-height: calc(100vh - 91px);
}

.block-command-sidebar {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 16px 12px;
    border-right: 1px solid #e3ebfb;
    background:
        linear-gradient(180deg, rgba(244, 248, 255, .96), rgba(255, 255, 255, .88));
    overflow: auto;
}

.block-command-sidebar small {
    padding: 0 8px;
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.block-command-smart-goals {
    display: grid;
    gap: 7px;
    margin-top: 10px;
    padding: 10px 8px;
    border: 1px solid #dbe6fb;
    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .05);
}

.block-command-smart-goals small {
    padding: 0;
}

.block-command-smart-goals button,
.block-command-save-current {
    width: 100%;
    min-height: 32px;
    border: 1px solid #dbe6fb;
    border-radius: 11px;
    background: #fff;
    color: #10245f;
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
    text-align: left;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.block-command-smart-goals button {
    padding: 0 10px;
}

.block-command-smart-goals button:hover,
.block-command-save-current:hover {
    border-color: rgba(40, 99, 255, .38);
    box-shadow: 0 10px 20px rgba(40, 99, 255, .12);
    transform: translateY(-1px);
}

.block-command-save-current {
    margin-top: 2px;
    padding: 0 11px;
    background: linear-gradient(135deg, #10245f, #2863ff);
    color: #fff;
    box-shadow: 0 14px 26px rgba(40, 99, 255, .18);
}

.block-command-main {
    min-width: 0;
    border-right: 1px solid #e3ebfb;
    background: rgba(255, 255, 255, .82);
    overflow: hidden;
}

.block-command-controls {
    display: grid;
    grid-template-columns: minmax(300px, 1fr);
    gap: 14px;
    align-items: center;
    padding: 15px 18px 12px;
}

.block-command-recommendations {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.block-command-recommendations span {
    color: #64748b;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.block-command-recommendations button {
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #dbe6fb;
    border-radius: 999px;
    background: #f8fbff;
    color: #2863ff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
}

.block-command-recommendations button:hover {
    border-color: rgba(40, 99, 255, .42);
    background: #eaf1ff;
}

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

.block-command-data-strip span {
    min-height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid #dbe6fb;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff, #f8fbff);
    color: #10245f;
    font-size: 11px;
    font-weight: 950;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}

.block-command-search {
    min-width: 0;
    height: 46px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 0 8px 0 5px;
    border: 1px solid rgba(40, 99, 255, .22);
    border-radius: 16px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, rgba(40, 99, 255, .42), rgba(143, 179, 255, .16)) border-box;
    color: #667085;
    box-shadow: 0 14px 30px rgba(16, 36, 95, .08), inset 0 1px 0 rgba(255, 255, 255, .88);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.block-command-search:focus-within {
    border-color: rgba(40, 99, 255, .62);
    box-shadow: 0 18px 42px rgba(40, 99, 255, .16), 0 0 0 4px rgba(40, 99, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .95);
    transform: translateY(-1px);
}

.block-command-search span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #2863ff, #174bd6);
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    box-shadow: 0 10px 18px rgba(40, 99, 255, .22);
}

.block-command-search input {
    min-width: 0;
    height: 100%;
    border: 0;
    background: transparent;
    color: #10245f;
    font-size: 14px;
    font-weight: 800;
    outline: 0;
}

.block-command-search input::placeholder {
    color: #7a8aa8;
    font-weight: 800;
}

.block-command-search kbd {
    min-width: 48px;
    display: inline-grid;
    place-items: center;
    min-height: 25px;
    padding: 0 9px;
    border: 1px solid #dbe6fb;
    border-bottom-color: #b9c9ec;
    border-radius: 9px;
    background: linear-gradient(180deg, #f8fbff, #eaf1ff);
    color: #4b5f86;
    font-family: inherit;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .02em;
    box-shadow: 0 2px 0 #cbd8f1;
}

.block-command-tabs {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: visible;
    padding-bottom: 0;
    scrollbar-width: thin;
}

.block-command-tabs button {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 11px 0 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #42526e;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    transition: transform .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.block-command-tabs button.active,
.block-command-tabs button:hover {
    border-color: rgba(40, 99, 255, .22);
    background: linear-gradient(135deg, #2863ff, #174bd6);
    color: #fff;
    box-shadow: 0 8px 18px rgba(40, 99, 255, .18);
}

.block-command-scroll {
    max-height: calc(100vh - 172px);
    overflow: auto;
    padding: 0 18px 18px;
    scrollbar-color: #b8c9ef transparent;
    contain: paint;
}

.block-command-group {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
    padding: 0 0 18px;
    border-bottom: 1px solid #e7eefc;
    min-width: 0;
    scroll-margin-top: 14px;
}

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

.block-command-group h4 {
    width: fit-content;
    margin: 0;
    padding: 5px 9px;
    border: 1px solid #dbe6fb;
    border-radius: 999px;
    background: #f8fbff;
    color: #10245f;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}

.block-command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 9px;
    min-width: 0;
}

.command-block-button {
    min-height: 76px;
    display: grid;
    grid-template-rows: 32px minmax(0, 1fr) 19px;
    align-items: center;
    justify-items: center;
    gap: 6px;
    padding: 9px 7px;
    border: 1px solid #dbe6fb;
    border-radius: 13px;
    background:
        linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    color: #10245f;
    cursor: pointer;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
    transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.command-block-button:hover,
.command-block-button:focus {
    outline: none;
    border-color: rgba(40, 99, 255, .52);
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
    box-shadow: 0 14px 28px rgba(40, 99, 255, .16);
    transform: translateY(-2px);
}

.command-block-button span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #eaf1ff, #dce8ff);
    color: #2863ff;
    font-size: 13px;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(40, 99, 255, .08);
}

.command-block-button strong {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 11.5px;
    font-weight: 850;
    line-height: 1.18;
}

.command-block-button em {
    min-width: 34px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2863ff;
    font-style: normal;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
}

.command-saved-block {
    border-color: rgba(16, 36, 95, .14);
    background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
}

.block-command-grid.saved .command-block-button span {
    width: auto;
    padding: 0 7px;
    font-size: 9px;
    letter-spacing: .04em;
}

.block-command-empty {
    margin: 12px 0;
    padding: 18px;
    border: 1px dashed #bfd0ff;
    border-radius: 10px;
    background: #f7faff;
    color: #667085;
    text-align: center;
    font-size: 13px;
}

.block-command-preview {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 18px 16px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, .42), transparent 25%),
        radial-gradient(circle at 12% 12%, rgba(96, 165, 250, .28), transparent 38%),
        linear-gradient(180deg, #0f1f4d 0%, #173b9a 56%, #f4f8ff 56%, #f4f8ff 100%);
    color: #fff;
    overflow: auto;
}

.block-command-preview p {
    margin: 0;
    color: rgba(255, 255, 255, .74);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.block-preview-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 16px 32px rgba(0, 0, 0, .16);
}

.block-command-preview > strong {
    color: #fff;
    font-size: 19px;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.block-command-preview > span {
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    line-height: 1.45;
}

.block-preview-card {
    display: grid;
    gap: 10px;
    margin-top: 4px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .98));
    box-shadow: 0 22px 46px rgba(15, 23, 42, .16), inset 0 1px 0 rgba(255, 255, 255, .85);
    color: #10245f;
    transition: max-width .18s ease, border-radius .18s ease, transform .18s ease;
}

.block-preview-card[data-preview-mode="mobile"] {
    max-width: 154px;
    margin-inline: auto;
    border-radius: 24px;
    transform: translateY(2px);
}

.block-preview-card[data-preview-mode="web"] {
    border-color: rgba(40, 99, 255, .36);
    box-shadow: 0 24px 52px rgba(40, 99, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .85);
}

.block-preview-card b {
    color: #172554;
    font-size: 13px;
}

.block-preview-card small,
.block-preview-card li {
    color: #667085;
    font-size: 11px;
    line-height: 1.45;
}

.block-preview-card ul {
    margin: 0;
    padding-left: 16px;
}

.block-preview-card p,
.block-preview-card blockquote,
.block-preview-card pre {
    margin: 0;
}

.block-preview-card a {
    color: inherit;
    text-decoration: none;
}

.block-preview-card::before {
    content: "Block demo";
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2863ff;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.block-preview-card[data-preview-mode="mobile"]::before {
    content: "Mobile demo";
}

.block-preview-card[data-preview-mode="web"]::before {
    content: "Web demo";
}

.block-preview-mode-toggle {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    padding: 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}

.block-preview-mode-toggle button {
    min-height: 30px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: rgba(255, 255, 255, .75);
    cursor: pointer;
    font-size: 10px;
    font-weight: 950;
}

.block-preview-mode-toggle button.active,
.block-preview-mode-toggle button:hover {
    background: #fff;
    color: #173b9a;
}

.block-preview-intel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.block-preview-intel div,
.block-preview-guidance div {
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 15px;
    background: rgba(255, 255, 255, .94);
    color: #10245f;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .12);
}

.block-preview-intel div {
    padding: 10px;
}

.block-preview-intel b,
.block-preview-intel span {
    display: block;
}

.block-preview-intel b {
    font-size: 16px;
    letter-spacing: -.04em;
}

.block-preview-intel span {
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.block-preview-guidance {
    display: grid;
    gap: 8px;
    margin: 0;
}

.block-preview-guidance div {
    padding: 10px;
}

.block-preview-guidance dt {
    margin: 0 0 4px;
    color: #2863ff;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.block-preview-guidance dd {
    margin: 0;
    color: #475569;
    font-size: 11px;
    line-height: 1.42;
}

.preview-copy-sample,
.preview-heading-sample,
.preview-section-sample,
.preview-token-sample,
.preview-product-sample,
.preview-referral-sample,
.preview-recommendation-sample,
.preview-rss-sample,
.preview-embed-sample,
.preview-ai-sample,
.preview-ai-image-sample {
    display: grid;
    gap: 7px;
}

.preview-copy-sample p,
.preview-section-sample small,
.preview-token-sample small,
.preview-product-sample p,
.preview-referral-sample small,
.preview-recommendation-sample p,
.preview-rss-sample small,
.preview-embed-sample small,
.preview-ai-sample small,
.preview-ai-image-sample small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.45;
}

.preview-copy-sample,
.preview-product-sample,
.preview-referral-sample,
.preview-recommendation-sample {
    padding: 4px;
}

.preview-copy-sample strong,
.preview-product-sample strong,
.preview-referral-sample strong,
.preview-recommendation-sample strong {
    font-size: 15px;
    letter-spacing: -.03em;
}

.preview-heading-sample span,
.preview-ai-sample span,
.preview-ai-image-sample span,
.preview-rss-sample span {
    width: fit-content;
    padding: 4px 7px;
    border-radius: 999px;
    background: #eaf1ff;
    color: #2863ff;
    font-size: 10px;
    font-weight: 900;
}

.preview-heading-sample strong {
    font-size: 24px;
    line-height: 1.04;
    letter-spacing: -.04em;
}

.preview-heading-sample small {
    color: #64748b;
    font-size: 11px;
}

.preview-image-sample {
    display: grid;
    gap: 8px;
}

.preview-image-sample > span,
.preview-ai-image-sample::before {
    display: block;
    height: 104px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 78% 24%, #fff 0 8px, transparent 9px),
        radial-gradient(circle at 28% 78%, rgba(255, 255, 255, .32), transparent 26%),
        linear-gradient(135deg, #8fb3ff, #2863ff 52%, #10245f);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38), 0 16px 26px rgba(40, 99, 255, .18);
}

.preview-button-sample {
    display: grid;
    gap: 10px;
    justify-items: start;
}

.preview-button-sample b,
.preview-product-sample b,
.preview-referral-sample b {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 15px;
    border-radius: 999px;
    background: #2863ff;
    color: #fff;
    font-size: 11px;
    box-shadow: 0 14px 24px rgba(40, 99, 255, .26);
}

.preview-section-sample {
    padding: 16px;
    border-radius: 16px;
    background:
        radial-gradient(circle at top right, rgba(40, 99, 255, .18), transparent 34%),
        linear-gradient(135deg, #eef4ff, #fff);
    border: 1px solid #dbe6fb;
}

.preview-columns-sample {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.preview-columns-sample span {
    min-height: 72px;
    display: grid;
    place-items: center;
    border: 1px solid #dbe6fb;
    border-radius: 14px;
    background: #f8fbff;
    color: #10245f;
    font-size: 11px;
    font-weight: 900;
}

.preview-columns-sample small {
    grid-column: 1 / -1;
    color: #64748b;
    font-size: 11px;
}

.preview-video-sample {
    display: grid;
    gap: 8px;
}

.preview-video-sample > span {
    height: 110px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background:
        radial-gradient(circle at 70% 20%, rgba(255, 255, 255, .16), transparent 28%),
        linear-gradient(135deg, #0f172a, #1e3a8a);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 18px 28px rgba(15, 23, 42, .2);
}

.preview-video-sample i {
    width: 42px;
    height: 42px;
    display: block;
    border-radius: 999px;
    background: #fff;
    clip-path: polygon(32% 22%, 32% 78%, 78% 50%);
}

.preview-audio-sample,
.preview-file-sample,
.preview-event-sample {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.preview-audio-sample > span,
.preview-file-sample > span,
.preview-event-sample > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #eaf1ff;
    color: #2863ff;
    font-size: 11px;
    font-weight: 900;
}

.preview-audio-sample > span::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2863ff;
    box-shadow: 12px 0 0 -5px #2863ff;
}

.preview-table-sample {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 14px;
    font-size: 11px;
}

.preview-table-sample th,
.preview-table-sample td {
    padding: 7px;
    border: 1px solid #e3ebfb;
    text-align: left;
}

.preview-table-sample th {
    background: #eaf1ff;
    color: #10245f;
}

.preview-list-sample {
    display: grid;
    gap: 5px;
    margin: 0;
    padding-left: 18px;
}

.preview-quote-sample {
    padding: 15px;
    border-left: 4px solid #2863ff;
    border-radius: 16px;
    background:
        radial-gradient(circle at top right, rgba(40, 99, 255, .12), transparent 34%),
        #f8fbff;
    color: #10245f;
    font-size: 13px;
    line-height: 1.4;
}

.preview-quote-sample strong {
    display: block;
    margin-top: 7px;
    color: #64748b;
    font-size: 11px;
}

.preview-quote-sample.brace {
    border-left: 0;
    box-shadow: inset 0 0 0 1px #dbe6fb;
}

.preview-code-sample {
    padding: 14px;
    border-radius: 16px;
    background: #0f172a;
    color: #dbeafe;
    font-size: 11px;
    overflow: hidden;
}

.preview-break-sample,
.preview-spacer-sample,
.preview-divider-sample {
    display: grid;
    gap: 8px;
    align-items: center;
    color: #64748b;
    font-size: 11px;
    text-align: center;
}

.preview-break-sample span,
.preview-divider-sample span {
    height: 1px;
    background: #cbd5e1;
}

.preview-spacer-sample span {
    height: 28px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
}

.preview-toc-sample {
    display: grid;
    gap: 6px;
}

.preview-toc-sample a {
    padding: 7px 9px;
    border-radius: 9px;
    background: #f1f5f9;
    color: #334155;
    font-size: 11px;
}

.preview-lock-sample,
.preview-sponsor-sample,
.preview-ad-sample,
.preview-poll-sample,
.preview-feedback-sample,
.preview-social-sample {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    background:
        radial-gradient(circle at top right, rgba(40, 99, 255, .1), transparent 34%),
        #f8fbff;
    border: 1px solid #dbe6fb;
}

.preview-lock-sample.premium {
    background: linear-gradient(135deg, #10245f, #2863ff);
    color: #fff;
}

.preview-social-sample div,
.preview-feedback-sample div {
    display: flex;
    gap: 6px;
}

.preview-social-sample span,
.preview-feedback-sample span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #2863ff;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.preview-poll-sample button {
    min-height: 34px;
    border: 1px solid #cfdcf6;
    border-radius: 999px;
    background: #fff;
    color: #10245f;
    font-size: 11px;
    font-weight: 800;
}

.preview-ad-sample span {
    height: 70px;
    border-radius: 14px;
    background: repeating-linear-gradient(135deg, #eaf1ff 0 8px, #dbeafe 8px 16px);
}

.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);
}

.auth-register-body {
    background:
        radial-gradient(circle at 12% 75%, rgba(122, 146, 255, 0.22), transparent 24%),
        radial-gradient(circle at 88% 10%, rgba(79, 216, 208, 0.22), transparent 22%),
        linear-gradient(180deg, #fbfcff 0%, #f5f8ff 52%, #eef5ff 100%);
}

.signup-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: 34px 34px 26px;
}

.signup-shell::before,
.signup-shell::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(8px);
}

.signup-shell::before {
    width: 460px;
    height: 460px;
    top: -170px;
    left: calc(50% - 180px);
    background: radial-gradient(circle, rgba(147, 121, 255, 0.22), rgba(147, 121, 255, 0));
}

.signup-shell::after {
    width: 520px;
    height: 520px;
    right: -180px;
    top: 110px;
    background: radial-gradient(circle, rgba(104, 223, 214, 0.2), rgba(104, 223, 214, 0));
}

.signup-orb,
.signup-wave {
    position: absolute;
    pointer-events: none;
}

.signup-orb {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.9;
}

.signup-orb-left {
    left: -84px;
    bottom: 110px;
    background: radial-gradient(circle, rgba(132, 155, 255, 0.42), rgba(132, 155, 255, 0));
}

.signup-orb-right {
    right: -48px;
    bottom: 120px;
    background: radial-gradient(circle, rgba(78, 211, 203, 0.38), rgba(78, 211, 203, 0));
}

.signup-wave {
    right: -140px;
    bottom: -180px;
    width: 880px;
    height: 360px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 55% 30%, rgba(150, 134, 255, 0.18), rgba(150, 134, 255, 0) 44%),
        radial-gradient(circle at 80% 40%, rgba(76, 214, 205, 0.16), rgba(76, 214, 205, 0) 38%);
}

.signup-topbar,
.signup-stage,
.signup-benefits,
.signup-footer {
    position: relative;
    z-index: 1;
    width: min(1240px, 100%);
    margin-inline: auto;
}

.signup-topbar {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.signup-trust-pill {
    padding: 12px 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #27415d;
    font-weight: 800;
    background: rgba(255,255,255,.74);
    border: 1px solid rgba(174, 191, 227, 0.72);
    box-shadow: 0 18px 42px rgba(54, 76, 131, 0.10);
    backdrop-filter: blur(16px);
}

.signup-trust-icon {
    width: 38px;
    height: 38px;
    position: relative;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(93, 233, 223, 0.28), rgba(255,255,255,.95));
    border: 1px solid rgba(102, 188, 183, 0.24);
}

.signup-trust-icon::before {
    content: '';
    position: absolute;
    inset: 8px 10px 9px;
    background: #118a81;
    clip-path: polygon(50% 0, 86% 16%, 86% 55%, 50% 100%, 14% 55%, 14% 16%);
}

.signup-trust-icon::after {
    content: '';
    position: absolute;
    width: 7px;
    height: 4px;
    left: 50%;
    top: 47%;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.signup-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(340px, 0.95fr);
    gap: 24px;
    align-items: stretch;
}

.signup-card,
.signup-preview-card {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: rgba(255,255,255,.84);
    border: 1px solid rgba(215, 225, 242, 0.9);
    box-shadow: 0 30px 80px rgba(44, 66, 122, 0.12);
    backdrop-filter: blur(18px);
}

.signup-card {
    padding: 26px 28px 24px;
}

.signup-card::before {
    content: '';
    position: absolute;
    inset: auto auto -110px -90px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(120, 142, 255, 0.18), rgba(120, 142, 255, 0));
}

.signup-card::after {
    content: '';
    position: absolute;
    right: -130px;
    top: 110px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(106, 222, 214, 0.16), rgba(106, 222, 214, 0));
}

.signup-card > * {
    position: relative;
    z-index: 1;
}

.signup-stepper {
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.signup-step {
    position: relative;
    display: grid;
    gap: 6px;
    color: #8690ad;
    font-size: 13px;
}

.signup-step::after {
    content: '';
    position: absolute;
    left: calc(100% - 8px);
    top: 19px;
    width: calc(100% - 22px);
    height: 1px;
    background: rgba(127, 140, 183, 0.24);
}

.signup-step:last-child::after {
    display: none;
}

.signup-step span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(136, 149, 190, 0.34);
    background: rgba(255,255,255,.92);
    font-weight: 900;
}

.signup-step strong {
    font-weight: 800;
}

.signup-step.is-active span,
.signup-step.is-complete span {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--blue), #6f63ff);
    box-shadow: 0 14px 24px rgba(63, 94, 236, 0.24);
}

.signup-step.is-active strong,
.signup-step.is-complete strong {
    color: #3150d5;
}

.signup-copy h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(38px, 4.6vw, 60px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.signup-copy p {
    margin: 16px 0 0;
    max-width: 760px;
    font-size: clamp(17px, 1.8vw, 21px);
    line-height: 1.5;
    color: #586685;
}

.signup-form {
    margin-top: 22px;
    gap: 16px;
}

.signup-primary-field {
    gap: 10px;
    font-size: 15px;
    color: #1f2f54;
}

.signup-primary-field > span:first-child {
    font-size: 16px;
    color: #1b2745;
}

.signup-field-shell {
    position: relative;
    display: block;
}

.signup-field-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    width: 26px;
    height: 26px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    background: #eef2ff;
    color: #6575a8;
    font-weight: 900;
}

.signup-field-shell input {
    min-height: 60px;
    padding: 0 18px 0 58px;
    border-radius: 18px;
    border-color: rgba(83, 104, 243, 0.34);
    background: rgba(255,255,255,.95);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 16px 34px rgba(54, 76, 131, 0.08);
    font-size: 18px;
}

.signup-form.signup-form-enhanced .signup-detail-block {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: max-height .35s ease, opacity .25s ease, transform .25s ease;
}

.signup-form.signup-form-enhanced.signup-form-open .signup-detail-block {
    max-height: 460px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.signup-detail-block {
    display: grid;
    gap: 14px;
}

.signup-detail-intro {
    margin: 0;
    color: #607091;
    line-height: 1.6;
}

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

.signup-detail-grid label {
    gap: 8px;
    font-size: 14px;
    color: #48587a;
}

.signup-detail-grid input {
    min-height: 54px;
    border-radius: 16px;
    background: rgba(250, 251, 255, 0.94);
}

.signup-detail-full {
    grid-column: 1 / -1;
}

.signup-submit {
    min-height: 56px;
    padding: 0 18px 0 24px;
    border-radius: 18px;
    justify-content: space-between;
    gap: 16px;
    font-size: 18px;
    box-shadow: 0 22px 42px rgba(47, 79, 229, 0.28);
}

.signup-submit[data-signup-next][type="button"] {
    cursor: pointer;
}

.signup-submit [data-signup-submit-label] {
    flex: 1;
    text-align: center;
}

.signup-submit-arrow {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    position: relative;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
}

.signup-submit-arrow::before,
.signup-submit-arrow::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
}

.signup-submit-arrow::before {
    width: 16px;
    height: 2px;
}

.signup-submit-arrow::after {
    width: 10px;
    height: 10px;
    margin-left: 4px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    background: transparent;
    transform: translate(-50%, -50%) rotate(45deg);
}

.signup-meta {
    margin-top: 18px;
    display: grid;
    gap: 14px;
}

.signup-trust-note,
.signup-save-note {
    margin: 0;
    color: #5c6787;
}

.signup-trust-note {
    font-size: 15px;
    line-height: 1.6;
}

.signup-trust-note strong {
    color: #172347;
}

.signup-save-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 10px;
    font-weight: 800;
}

.signup-save-note::before,
.signup-save-note::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: rgba(132, 145, 184, 0.26);
}

.signup-save-mark {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(145deg, #8f78ff, #68ddd6);
    box-shadow: 0 0 0 6px rgba(127, 109, 255, 0.08);
}

.signup-switch {
    margin: 22px 0 0;
    text-align: center;
}

.signup-preview-card {
    padding: 20px;
    display: grid;
    align-content: start;
    gap: 18px;
}

.signup-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #1a2444;
    font-size: 15px;
}

.signup-preview-head strong {
    font-size: 18px;
}

.signup-preview-eye {
    width: 36px;
    height: 36px;
    position: relative;
    border-radius: 50%;
    border: 1px solid rgba(169, 181, 217, 0.8);
    background: rgba(255,255,255,.86);
}

.signup-preview-eye::before {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    top: 11px;
    bottom: 11px;
    border: 2px solid #7d88a9;
    border-radius: 999px / 70%;
}

.signup-preview-eye::after {
    content: '';
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #5e6ff2;
}

.signup-preview-surface {
    min-height: 100%;
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 26px 20px 20px;
    border-radius: 26px;
    border: 1px solid rgba(223, 230, 244, 0.92);
    background:
        radial-gradient(circle at 10% 30%, rgba(227, 216, 255, 0.28), rgba(227, 216, 255, 0) 28%),
        radial-gradient(circle at 100% 88%, rgba(173, 239, 232, 0.34), rgba(173, 239, 232, 0) 28%),
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(246, 249, 255, 0.96));
}

.signup-preview-surface::before,
.signup-preview-surface::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.signup-preview-surface::before {
    left: -26px;
    bottom: 44px;
    width: 170px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(234, 219, 255, 0.26), rgba(234, 219, 255, 0));
}

.signup-preview-surface::after {
    right: -36px;
    bottom: -34px;
    width: 240px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(122, 149, 255, 0.16), rgba(92, 215, 205, 0.24));
}

.signup-preview-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 6px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    border: 2px dashed rgba(125, 137, 180, 0.44);
    background: rgba(255,255,255,.72);
    color: #7480ac;
    font-weight: 900;
}

.signup-preview-surface h3 {
    margin: 0;
    font-size: clamp(30px, 2.6vw, 40px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    text-align: center;
    color: #0d1843;
}

.signup-preview-surface p {
    margin: 0;
    text-align: center;
    color: #5d6989;
    line-height: 1.6;
}

.signup-preview-form {
    margin-top: 4px;
    display: grid;
    gap: 12px;
}

.signup-preview-email,
.signup-preview-cta {
    min-height: 56px;
    border-radius: 16px;
}

.signup-preview-email {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    color: #8893af;
    font-weight: 800;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(215, 224, 242, 0.92);
    box-shadow: 0 12px 28px rgba(60, 84, 140, 0.08);
}

.signup-preview-email::before {
    content: '@';
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #eef2ff;
    color: #6878ad;
    font-size: 14px;
    font-weight: 900;
}

.signup-preview-cta {
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, #00b8b2, #1188d1);
    box-shadow: 0 18px 36px rgba(0, 163, 171, 0.24);
}

.signup-preview-note {
    font-size: 14px;
}

.signup-preview-brandline {
    margin-top: auto;
    padding-top: 10px;
    display: grid;
    gap: 4px;
    justify-items: center;
}

.signup-preview-brandline strong {
    color: #16254b;
}

.signup-preview-brandline small {
    color: #61708f;
    text-align: center;
}

.signup-benefits {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.signup-benefit {
    padding: 18px 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    border-radius: 24px;
    background: rgba(255,255,255,.48);
    border: 1px solid rgba(215, 225, 242, 0.8);
    box-shadow: 0 16px 36px rgba(44, 66, 122, 0.08);
    backdrop-filter: blur(16px);
}

.signup-benefit-mark {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(99, 117, 255, 0.18), rgba(85, 225, 216, 0.2));
    box-shadow: inset 0 0 0 1px rgba(110, 131, 220, 0.14);
}

.signup-benefit:nth-child(2) .signup-benefit-mark {
    background: linear-gradient(145deg, rgba(91, 225, 216, 0.18), rgba(196, 232, 255, 0.24));
}

.signup-benefit:nth-child(3) .signup-benefit-mark {
    background: linear-gradient(145deg, rgba(148, 124, 255, 0.18), rgba(242, 225, 255, 0.26));
}

.signup-benefit h3 {
    margin: 0 0 6px;
    font-size: 19px;
    color: #142144;
}

.signup-benefit p {
    margin: 0;
    color: #5d6989;
    line-height: 1.6;
}

.signup-footer {
    margin-top: 20px;
}

.signup-legal-links {
    justify-content: center;
    margin: 0;
}

@media (max-width: 1180px) {
    .signup-stage {
        grid-template-columns: 1fr;
    }

    .signup-preview-card {
        max-width: 720px;
        width: 100%;
        margin-inline: auto;
    }
}

@media (max-width: 820px) {
    .signup-shell {
        padding: 20px 14px 18px;
    }

    .signup-topbar {
        margin-bottom: 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .signup-trust-pill {
        justify-content: center;
    }

    .signup-card,
    .signup-preview-card {
        border-radius: 26px;
    }

    .signup-card {
        padding: 22px 18px 20px;
    }

    .signup-stepper {
        margin-bottom: 26px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .signup-step::after {
        display: none;
    }

    .signup-copy h1 {
        font-size: 40px;
        line-height: 1.02;
    }

    .signup-copy p {
        margin-top: 14px;
        font-size: 18px;
    }

    .signup-field-shell input {
        min-height: 58px;
        font-size: 18px;
    }

    .signup-detail-grid,
    .signup-benefits {
        grid-template-columns: 1fr;
    }

    .signup-submit {
        min-height: 54px;
        font-size: 18px;
    }

    .signup-preview-card {
        padding: 18px;
    }

    .signup-preview-surface {
        padding: 24px 18px 20px;
    }

    .signup-preview-surface h3 {
        font-size: 34px;
    }

    .signup-preview-email,
    .signup-preview-cta {
        min-height: 52px;
    }
}

.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-menu-item::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 14px;
    display: none;
    z-index: 1;
}

.landing-menu-item:hover::after,
.landing-menu-item:focus-within::after {
    display: block;
}

.landing-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    z-index: 2;
    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);
}

.landing-mobile-menu a.is-active {
    background: rgba(255, 255, 255, .12);
}

.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 > a.is-active,
.bee-menu-item > a.is-active {
    color: #050112;
    background: #fff;
}

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

.bee-menu-item {
    position: static;
    padding-bottom: 22px;
    margin-bottom: -22px;
}

.bee-menu-item::after {
    content: "";
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    height: 34px;
    display: none;
    z-index: 1;
}

.bee-menu-item:hover::after,
.bee-menu-item:focus-within::after {
    display: block;
}

.bee-mega {
    top: 100%;
    left: 50%;
    z-index: 2;
    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-resource-list a.is-active strong {
    text-decoration: underline;
    text-decoration-color: rgba(77, 139, 255, .9);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.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:last-child {
    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-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-language-picker {
    position: relative;
    flex-shrink: 0;
    margin: 0;
    color: #111827;
    z-index: 90;
}

.bee-language-summary {
    min-height: 40px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #fff;
    cursor: pointer;
    list-style: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.bee-language-summary::-webkit-details-marker {
    display: none;
}

.bee-language-summary strong {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

.bee-language-summary em {
    color: rgba(255,255,255,.72);
    font-style: normal;
    font-size: 13px;
}

.bee-language-flag {
    width: 24px;
    height: 24px;
    display: inline-block;
    flex: 0 0 24px;
    border-radius: 999px;
    background: var(--flag-bg, linear-gradient(135deg, #eef4ff, #0d47d9));
    background-position: center;
    background-size: cover;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(16,24,40,.10);
}

.bee-language-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 330px;
    max-width: calc(100vw - 28px);
    padding: 10px;
    border: 1px solid rgba(218,226,240,.92);
    border-radius: 14px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 24px 70px rgba(4, 13, 34, .28);
    backdrop-filter: blur(12px);
}

.bee-language-search {
    display: block;
    margin: 0 0 8px;
}

.bee-language-search input {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #d9e2f0;
    border-radius: 10px;
    background: #f8fbff;
    color: #111827;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
}

.bee-language-search input:focus {
    outline: 0;
    border-color: rgba(13,71,217,.58);
    box-shadow: 0 0 0 4px rgba(13,71,217,.10);
}

.bee-language-list {
    display: grid;
    gap: 3px;
    max-height: 336px;
    overflow: auto;
    padding-right: 2px;
}

.bee-language-option {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 18px;
    gap: 10px;
    align-items: center;
    min-height: 48px;
    padding: 7px 9px;
    border-radius: 10px;
    color: #111827;
    text-decoration: none;
}

.bee-language-option:hover,
.bee-language-option.is-active {
    background: #eef4ff;
}

.bee-language-option[hidden],
.bee-language-option.is-hidden {
    display: none !important;
}

.bee-language-option span:nth-child(2) {
    min-width: 0;
}

.bee-language-option strong,
.bee-language-option small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bee-language-option strong {
    color: #101828;
    font-size: 14px;
    font-weight: 950;
}

.bee-language-option small {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.bee-language-option em {
    color: #0d47d9;
    font-style: normal;
    font-weight: 950;
}

.bee-language-empty {
    margin: 8px 4px 2px;
    color: #667085;
    font-size: 13px;
    font-weight: 800;
}

.bee-mobile-menu .bee-language-picker {
    width: 100%;
    margin: 0 0 8px;
}

.bee-mobile-menu .bee-language-summary {
    width: 100%;
    justify-content: space-between;
    border-color: #d7dfec;
    background: #f8fbff;
    color: #111827;
}

.bee-mobile-menu .bee-language-summary em {
    color: #667085;
}

.bee-mobile-menu .bee-language-popover,
.bee-mobile-menu .bee-language-list,
.bee-mobile-menu .bee-language-search,
.bee-mobile-menu .bee-language-option span {
    width: auto;
    border: 0;
    background: transparent;
}

.bee-mobile-menu .bee-language-popover {
    position: static;
    max-width: none;
    margin-top: 8px;
    padding: 8px;
    border: 1px solid #d7dfec;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
}

.bee-mobile-menu .bee-language-list {
    max-height: 294px;
}

.bee-nav-shell {
    position: sticky;
    top: 0;
    z-index: 120;
    background: linear-gradient(180deg, rgba(248, 251, 255, .98), rgba(236, 244, 255, .94));
    border-bottom: 1px solid rgba(40, 99, 255, .12);
    box-shadow: 0 12px 36px rgba(18, 58, 146, .08);
    backdrop-filter: blur(18px);
}

.bee-nav-wrap {
    min-height: 84px;
    gap: 18px;
    background: transparent;
}

.bee-brand {
    gap: 12px;
    color: #0f235f;
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.bee-brand-mark {
    width: 40px;
    height: 40px;
    gap: 4px;
    padding: 8px 7px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0d47d9, #63a7ff);
    box-shadow: 0 16px 30px rgba(40, 99, 255, .26);
}

.bee-brand-mark i {
    height: 5px;
    background: #fff;
}

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

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

.bee-brand-mark i:nth-child(3) {
    width: 5px;
    box-shadow: 10px 0 #fff, 20px 0 #fff;
}

.bee-menu {
    gap: 10px;
    margin-left: 28px;
}

.bee-menu > a,
.bee-menu-item > a {
    min-height: 44px;
    gap: 6px;
    padding: 0 14px;
    border-radius: 999px;
    color: #19346b;
    font-size: 14px;
    font-weight: 900;
}

.bee-menu > a:hover,
.bee-menu-item:hover > a,
.bee-menu-item:focus-within > a {
    color: #0d47d9;
    background: #eef4ff;
}

.bee-menu > a.is-active,
.bee-menu-item > a.is-active {
    color: #0d47d9;
    background: #e8f0ff;
}

.bee-menu-item > a span {
    color: #7e91b1;
    font-size: 12px;
}

.bee-menu-item::after {
    top: 54px;
    left: 50%;
    right: auto;
    width: min(1180px, calc(100vw - 40px));
    height: 42px;
    transform: translateX(-50%);
}

.bee-mega {
    top: calc(100% + 6px);
    width: min(1180px, calc(100vw - 40px));
    min-height: auto;
    padding: 22px;
    border: 1px solid #d8e4f7;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,249,255,.99));
    color: #0f235f;
    box-shadow: 0 32px 80px rgba(18, 58, 146, .18);
    backdrop-filter: blur(16px);
}

.bee-mega::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at top right, rgba(40,99,255,.08), transparent 24%),
        radial-gradient(circle at top left, rgba(95,167,255,.10), transparent 22%);
    pointer-events: none;
}

.bee-mega a {
    color: inherit;
}

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

.bee-mega-feature-row a,
.bee-resource-list a {
    position: relative;
    gap: 10px;
    min-height: 172px;
    padding: 18px;
    border: 1px solid #dbe6f7;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff, #f7faff);
    box-shadow: 0 14px 34px rgba(20, 57, 125, .05);
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.bee-mega-feature-row a:hover,
.bee-resource-list a:hover {
    transform: translateY(-2px);
    border-color: rgba(40, 99, 255, .26);
    box-shadow: 0 18px 42px rgba(20, 57, 125, .10);
}

.bee-mega-feature-row a::before,
.bee-resource-list a::before {
    content: "";
    width: 100%;
    height: 82px;
    display: block;
    border: 1px solid rgba(40, 99, 255, .10);
    border-radius: 14px;
    background: #edf4ff center / cover no-repeat;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.bee-mega-feature-row a:nth-child(1)::before { background-image: url("/assets/menu-newsletters.svg"); }
.bee-mega-feature-row a:nth-child(2)::before { background-image: url("/assets/menu-web-builder.svg"); }
.bee-mega-feature-row a:nth-child(3)::before { background-image: url("/assets/menu-automations.svg"); }
.bee-mega-feature-row a:nth-child(4)::before { background-image: url("/assets/menu-deliverability.svg"); }

.bee-resource-list a:nth-child(1)::before { background-image: url("/assets/menu-blog.svg"); }
.bee-resource-list a:nth-child(2)::before { background-image: url("/assets/menu-guides.svg"); }
.bee-resource-list a:nth-child(3)::before { background-image: url("/assets/menu-inspiration.svg"); }
.bee-resource-list a:nth-child(4)::before { background-image: url("/assets/menu-glossary.svg"); }

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

.bee-resource-list a.is-active strong {
    color: #0d47d9;
    text-decoration: none;
}

.bee-mega-feature-row small,
.bee-resource-list small {
    color: #60708a;
    line-height: 1.5;
}

.bee-mega-content-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) 320px;
    gap: 16px;
    padding-top: 0;
    align-items: stretch;
}

.bee-mega-content-grid::before {
    content: none;
}

.bee-mega-content-grid section {
    min-height: 268px;
    padding: 18px;
    border: 1px solid #dde8f8;
    border-radius: 20px;
    background: rgba(255,255,255,.84);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.94);
}

.bee-mega-content-grid section + section {
    padding-left: 18px;
}

.bee-mega-content-grid section:last-of-type {
    border-right: 1px solid #dde8f8;
}

.bee-mega h4 {
    margin: 0 0 10px;
    color: #102a66;
    font-size: 15px;
    font-weight: 950;
}

.bee-mega-content-grid section a {
    gap: 10px;
    padding: 8px 0;
    color: #4b5e7c;
    font-size: 14px;
    font-weight: 850;
}

.bee-mega-content-grid section a:hover {
    color: #0d47d9;
}

.bee-mega-content-grid section a::before {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0d47d9, #64a8ff);
    box-shadow: 0 0 0 4px rgba(40,99,255,.08);
    color: transparent;
    content: "";
}

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

.bee-resources-menu {
    grid-template-columns: minmax(0, 1.35fr) 340px;
    gap: 18px;
}

.bee-resource-list {
    gap: 16px;
}

.bee-mega-tour,
.bee-report-card {
    position: relative;
    min-height: 100%;
    padding: 18px;
    border: 1px solid rgba(40,99,255,.16);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(115, 183, 255, .28), transparent 28%),
        linear-gradient(180deg, #0d47d9 0%, #0a327f 100%);
    box-shadow: 0 22px 48px rgba(18, 58, 146, .22);
    align-content: start;
    gap: 12px;
    overflow: hidden;
}

.bee-report-card {
    background:
        radial-gradient(circle at top left, rgba(125, 196, 255, .26), transparent 28%),
        linear-gradient(180deg, #0f4fef 0%, #143e9f 100%);
}

.bee-card-visual {
    min-height: 188px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.08));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
    overflow: hidden;
}

.bee-card-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 640 / 420;
    object-fit: cover;
}

.bee-card-window {
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border-radius: 12px;
    background: rgba(4, 18, 56, .22);
}

.bee-card-window i {
    width: 8px;
    height: 8px;
    display: block;
    border-radius: 999px;
    background: rgba(255,255,255,.64);
}

.bee-card-window strong {
    margin-left: auto;
    color: rgba(255,255,255,.86);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .02em;
}

.bee-card-canvas {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 12px;
    align-items: stretch;
}

.bee-card-canvas-main,
.bee-card-canvas-side,
.bee-card-stack div {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 12px 28px rgba(5, 18, 56, .14);
}

.bee-card-canvas-side {
    align-content: start;
}

.bee-card-canvas-main b,
.bee-card-canvas-side b,
.bee-card-stack b {
    display: block;
    height: 11px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(13,71,217,.88), rgba(96,171,255,.44));
}

.bee-card-canvas-main b:nth-child(1) {
    width: 84%;
}

.bee-card-canvas-main b:nth-child(2) {
    width: 100%;
}

.bee-card-canvas-main b:nth-child(3) {
    width: 62%;
}

.bee-card-canvas-side b:nth-child(1) {
    height: 54px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(13,71,217,.22), rgba(13,71,217,.08));
}

.bee-card-canvas-side b:nth-child(2) {
    width: 74%;
}

.bee-card-stack {
    display: grid;
    gap: 10px;
}

.bee-card-stack div {
    padding: 12px;
}

.bee-card-stack b:first-child {
    width: 72%;
}

.bee-card-stack b:last-child {
    width: 100%;
    opacity: .58;
}

.bee-mega-tour > 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-report-card h3 {
    color: #fff;
    font-size: 26px;
}

.bee-mega-tour p,
.bee-report-card p {
    color: rgba(255,255,255,.82);
}

.bee-mega-tour > div:last-child {
    display: grid;
    gap: 8px;
}

.bee-mega-tour a,
.bee-report-card a {
    color: #fff;
}

.bee-nav-actions {
    gap: 12px;
}

.bee-nav-actions a {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(40,99,255,.14);
    border-radius: 999px;
    background: rgba(255,255,255,.74);
    color: #173276;
    box-shadow: 0 6px 18px rgba(20, 57, 125, .05);
}

.bee-nav-actions a:hover {
    border-color: rgba(40,99,255,.24);
    background: #fff;
}

.bee-nav-actions .bee-signup-link {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #0d47d9, #4f95ff);
    box-shadow: 0 18px 32px rgba(40, 99, 255, .24);
}

.bee-language-summary {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(40,99,255,.14);
    background: rgba(255,255,255,.74);
    color: #173276;
    box-shadow: 0 6px 18px rgba(20, 57, 125, .05);
}

.bee-language-summary em {
    color: #667898;
}

.bee-mobile-menu summary {
    width: 44px;
    height: 44px;
    border-color: rgba(40,99,255,.16);
    background: rgba(255,255,255,.86);
    color: #173276;
    box-shadow: 0 8px 22px rgba(20, 57, 125, .08);
}

.bee-mobile-menu div {
    width: 284px;
    border-color: #dbe5f6;
    background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(245,249,255,.99));
    box-shadow: 0 24px 60px rgba(18, 58, 146, .18);
}

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

.bee-mobile-menu .bee-mobile-visuals {
    display: grid;
    gap: 10px;
    margin: 0 0 8px;
}

.bee-mobile-menu .bee-mobile-visual-card {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid #d9e5f7;
    border-radius: 16px;
    background: #fff;
    color: #102a66;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(18, 58, 146, .08);
}

.bee-mobile-menu .bee-mobile-visual-card:hover {
    border-color: rgba(40,99,255,.22);
    background: #fff;
}

.bee-mobile-menu .bee-mobile-visual-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    aspect-ratio: 640 / 420;
    object-fit: cover;
}

.bee-mobile-menu .bee-mobile-visual-card span {
    color: #0d47d9;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bee-mobile-menu .bee-mobile-visual-card strong {
    color: #173276;
    font-size: 14px;
    line-height: 1.4;
}

.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-owned-channel {
    scroll-margin-top: 86px;
    background:
        linear-gradient(180deg, #f7fbff 0%, #ffffff 58%, #f8fafd 100%);
    border-bottom: 1px solid #e4ebf6;
}

.landing-owned-channel-grid {
    display: grid;
    grid-template-columns: minmax(0, .98fr) minmax(360px, .82fr);
    gap: 44px;
    align-items: center;
}

.landing-owned-channel-copy {
    display: grid;
    gap: 14px;
}

.landing-owned-channel-copy p {
    margin: 0;
    color: #0d47d9;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.landing-owned-channel-copy h2 {
    max-width: 780px;
    margin: 0;
    color: #101828;
    font-size: 48px;
    line-height: 1.08;
    letter-spacing: 0;
}

.landing-owned-channel-copy > strong {
    color: #0d47d9;
    font-size: 24px;
    line-height: 1.35;
}

.landing-owned-channel-copy > span {
    max-width: 760px;
    color: #475467;
    font-size: 18px;
    line-height: 1.68;
}

.landing-owned-channel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.landing-owned-channel .landing-secondary-cta {
    border-color: #3d79ff;
    color: #0d47d9;
    background: #fff;
}

.landing-owned-channel-visual {
    display: grid;
    gap: 14px;
}

.landing-owned-channel-visual article {
    display: grid;
    gap: 9px;
    min-height: 194px;
    align-content: center;
    padding: 24px;
    border: 1px solid #dfe6f2;
    border-left: 5px solid #b7791f;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(28, 39, 64, .07);
}

.landing-owned-channel-visual article.is-owned {
    border-left-color: #0f8a5f;
    background:
        linear-gradient(135deg, rgba(15, 138, 95, .09), rgba(40, 99, 255, .08)),
        #fff;
}

.landing-owned-channel-visual small {
    width: fit-content;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: #fff7e8;
    color: #805100;
    font-size: 12px;
    font-weight: 950;
}

.landing-owned-channel-visual .is-owned small {
    background: #e9f8f1;
    color: #086345;
}

.landing-owned-channel-visual strong {
    color: #101828;
    font-size: 28px;
    line-height: 1.16;
}

.landing-owned-channel-visual p {
    margin: 0;
    color: #667085;
    line-height: 1.62;
}

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

.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-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-reason-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.landing-card,
.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-reason-grid h3 {
    margin: 0;
    font-size: 22px;
    letter-spacing: 0;
}

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

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

.landing-card 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-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;
}

.billing-period-toggle {
    width: fit-content;
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 5px;
    border: 1px solid #d8e2f1;
    border-radius: 999px;
    background: #f7f9fd;
    box-shadow: 0 10px 28px rgba(16, 24, 40, .06);
}

.landing-billing-toggle {
    margin: -12px auto 24px;
}

.billing-period-toggle button {
    min-height: 38px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #344054;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.billing-period-toggle button.active {
    background: #07111f;
    color: #fff;
    box-shadow: 0 10px 22px rgba(7, 17, 31, .18);
}

.billing-period-toggle button span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #dff7ea;
    color: #047857;
    font-size: 11px;
    font-weight: 950;
}

.billing-period-toggle button.active span {
    background: #e7f8ef;
    color: #047857;
}

.landing-price-grid {
    width: min(1180px, calc(100% - 48px));
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 auto;
}

.landing-price-tier {
    display: grid;
    gap: 12px;
    align-content: start;
    min-height: 336px;
    padding: 22px;
    border: 1px solid #dfe6f2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(16, 24, 40, .06);
}

.landing-price-tier.is-featured {
    border-color: rgba(13, 71, 217, .46);
    background: #f6f9ff;
    box-shadow: 0 22px 50px rgba(13, 71, 217, .13);
}

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

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

.landing-price-tier h3 {
    color: #07111f;
    font-size: 23px;
    line-height: 1.15;
}

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

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

.billing-annual-saving {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 6px 9px;
    border-radius: 8px;
    background: #ecfdf3;
    color: #027a48;
    font-size: 12px;
    font-weight: 900;
}

.billing-annual-saving[hidden] {
    display: none;
}

.billing-annual-saving s {
    color: #98a2b3;
    font-weight: 800;
}

.landing-price-extra .billing-annual-saving {
    background: rgba(255, 255, 255, .12);
    color: #dff7ea;
}

.landing-price-extra .billing-annual-saving s {
    color: #9eb0c9;
}

.landing-price-tier ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 19px;
    color: #344054;
    line-height: 1.45;
}

.landing-price-tier a {
    align-self: end;
    width: 100%;
    justify-content: center;
    min-height: 44px;
}

.landing-price-extra {
    background: #07111f;
    border-color: #07111f;
    color: #fff;
}

.landing-price-extra h3,
.landing-price-extra strong {
    color: #fff;
}

.landing-price-extra p,
.landing-price-extra ul {
    color: #c6d3e4;
}

.landing-price-extra .landing-secondary-cta {
    background: #fff;
    color: #07111f;
    border-color: #fff;
}

@media (max-width: 1040px) {
    .landing-price-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

.blog-article-grid article span,
.blog-article-grid .blog-article-card 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,
.blog-article-grid .blog-article-card {
    min-height: 232px;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 20px;
    color: inherit;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

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

.blog-article-grid article span,
.blog-article-grid .blog-article-card 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;
}

.resource-article-list {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
    padding-left: 22px;
    color: #344054;
    line-height: 1.62;
}

.resource-article-list li::marker {
    color: #0d47d9;
}

.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-alpha-nav a[hidden],
.glossary-letter-group[hidden],
.glossary-term-card[hidden],
.glossary-empty[hidden] {
    display: none !important;
}

.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;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(16, 24, 40, .045);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.glossary-term-card:hover {
    transform: translateY(-2px);
    border-color: rgba(13, 71, 217, .38);
    box-shadow: 0 22px 42px rgba(13, 71, 217, .10);
}

.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;
}

.glossary-article-page {
    min-height: 100vh;
    color: #111827;
    background:
        linear-gradient(180deg, #eef6ff 0, #f8fbff 360px, #f5f8ff 100%);
}

.glossary-article-hero {
    padding: 86px 0 82px;
}

.glossary-article-layout {
    width: min(1440px, calc(100% - 48px));
    display: grid;
    grid-template-columns: minmax(180px, .72fr) minmax(0, 2.18fr) minmax(210px, .86fr);
    gap: clamp(16px, 2vw, 28px);
    align-items: start;
}

.glossary-article-main {
    min-width: 0;
    max-width: 100%;
    display: grid;
    gap: 24px;
    overflow-wrap: anywhere;
}

.glossary-article-main h1,
.glossary-article-main h2,
.glossary-article-main p,
.glossary-article-main a,
.glossary-article-main dd,
.glossary-article-main dt,
.glossary-article-main summary {
    overflow-wrap: anywhere;
}

.glossary-back-link {
    width: fit-content;
    color: #0d47d9;
    font-size: 14px;
    font-weight: 950;
    text-decoration: none;
}

.glossary-back-link:hover {
    text-decoration: underline;
}

.glossary-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.glossary-article-meta span {
    display: inline-flex;
    align-items: center;
    color: #536176;
    font-size: 13px;
    font-weight: 850;
}

.glossary-article-meta span + span::before {
    content: "";
    width: 4px;
    height: 4px;
    margin-right: 10px;
    border-radius: 999px;
    background: #a7b2c2;
}

.glossary-article-meta span:first-child {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(13, 71, 217, .22);
    border-radius: 999px;
    border-color: rgba(13, 71, 217, .22);
    background: #eaf2ff;
    color: #0d47d9;
    font-size: 12px;
    font-weight: 900;
}

.glossary-article-meta span:first-child::before {
    display: none;
}

.glossary-review-box {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid #dbe6f4;
    border-left: 4px solid #0d47d9;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(16, 24, 40, .045);
}

.glossary-review-box strong {
    color: #07111f;
    font-size: 14px;
    line-height: 1.35;
}

.glossary-review-box span,
.glossary-review-box p {
    margin: 0;
    color: #536176;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 800;
}

.glossary-review-box p {
    font-weight: 700;
}

.glossary-article-main h1 {
    max-width: 760px;
    margin: 0;
    color: #07111f;
    font-size: clamp(42px, 6vw, 76px);
    line-height: .98;
    letter-spacing: 0;
}

.glossary-article-definition {
    margin: 0;
    padding: 22px 24px;
    border: 1px solid rgba(13, 71, 217, .18);
    border-left: 5px solid #0d47d9;
    border-radius: 8px;
    background: #fff;
    color: #243247;
    font-size: 20px;
    line-height: 1.62;
    box-shadow: 0 18px 42px rgba(16, 24, 40, .06);
}

.glossary-answer-block {
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(13, 71, 217, .22);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(16, 24, 40, .065);
}

.glossary-answer-block p {
    margin: 0;
    color: #243247;
    font-size: 19px;
    line-height: 1.64;
}

.glossary-answer-block dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.glossary-answer-block dl div {
    min-height: 86px;
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 13px;
    border: 1px solid #dbe6f4;
    border-radius: 8px;
    background: #f8fbff;
}

.glossary-answer-block dt {
    color: #0d47d9;
    font-size: 12px;
    font-weight: 950;
}

.glossary-answer-block dd {
    margin: 0;
    color: #07111f;
    font-size: 14px;
    line-height: 1.42;
    font-weight: 850;
}

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

.glossary-article-toc-mobile {
    display: none;
}

.glossary-article-toc summary {
    min-height: 26px;
    color: #07111f;
    font-size: 15px;
    font-weight: 950;
    cursor: pointer;
}

.glossary-article-toc[open] summary {
    margin-bottom: 10px;
}

.glossary-toc-title,
.glossary-article-side strong {
    color: #07111f;
    font-size: 14px;
    font-weight: 950;
}

.glossary-toc-list {
    display: grid;
    gap: 2px;
}

.glossary-toc-top,
.glossary-toc-list a,
.glossary-article-side nav a {
    color: #0d47d9;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
}

.glossary-toc-top {
    width: fit-content;
    color: #667085;
    font-size: 13px;
}

.glossary-toc-list a {
    display: block;
    padding: 9px 10px;
    border-left: 3px solid transparent;
    border-radius: 0 8px 8px 0;
    color: #405168;
    line-height: 1.35;
}

.glossary-toc-list a:hover,
.glossary-toc-list a.is-active {
    border-left-color: #0d47d9;
    background: #eef6ff;
    color: #0d47d9;
}

.glossary-toc-top:hover,
.glossary-toc-list a:hover,
.glossary-article-side nav a:hover {
    text-decoration: underline;
}

.glossary-article-section {
    display: grid;
    gap: 14px;
    padding-top: 10px;
    scroll-margin-top: 96px;
}

.glossary-article-section h2,
.glossary-source-section h2 {
    margin: 0;
    color: #07111f;
    font-size: 30px;
    line-height: 1.12;
    letter-spacing: 0;
}

.glossary-article-section p,
.glossary-source-section p {
    margin: 0;
    color: #405168;
    font-size: 17px;
    line-height: 1.72;
}

.glossary-inline-link {
    color: #0d47d9;
    font-weight: 850;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.glossary-inline-link:hover {
    color: #0838b5;
}

.glossary-search-highlight {
    padding: 0 .16em;
    border-radius: 4px;
    background: #fff176;
    color: inherit;
    box-shadow: 0 0 0 1px rgba(180, 126, 0, .24);
}

.glossary-customer-section {
    padding: 22px;
    border: 1px solid rgba(13, 71, 217, .18);
    border-radius: 8px;
    background: linear-gradient(135deg, #fff, #f4f8ff);
    box-shadow: 0 14px 34px rgba(13, 71, 217, .06);
}

.glossary-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #dbe6f4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(16, 24, 40, .045);
}

.glossary-info-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    color: #243247;
    font-size: 14px;
}

.glossary-info-table th,
.glossary-info-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #dbe6f4;
    text-align: left;
    vertical-align: top;
    line-height: 1.45;
}

.glossary-info-table th {
    background: #eef6ff;
    color: #07111f;
    font-weight: 950;
}

.glossary-info-table tr:last-child td {
    border-bottom: 0;
}

.glossary-info-table td:first-child {
    color: #0d47d9;
    font-weight: 950;
}

.glossary-example-box {
    display: grid;
    gap: 8px;
    padding: 22px;
    border: 1px solid #bfd7ff;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff, #eef6ff);
    box-shadow: 0 16px 36px rgba(13, 71, 217, .09);
}

.glossary-example-box span {
    color: #0d47d9;
    font-size: 13px;
    font-weight: 950;
}

.glossary-example-box p {
    margin: 0;
    color: #243247;
    font-size: 17px;
    line-height: 1.62;
}

.glossary-checker-card {
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid #bfd7ff;
    border-radius: 8px;
    background:
        radial-gradient(circle at 92% 12%, rgba(13, 71, 217, .12), transparent 32%),
        #fff;
    box-shadow: 0 18px 42px rgba(13, 71, 217, .09);
    scroll-margin-top: 96px;
}

.glossary-checker-card > div:first-child {
    display: grid;
    gap: 8px;
}

.glossary-checker-card span {
    color: #0d47d9;
    font-size: 12px;
    font-weight: 950;
}

.glossary-checker-card h2 {
    margin: 0;
    color: #07111f;
    font-size: 28px;
    line-height: 1.12;
    letter-spacing: 0;
}

.glossary-checker-card p {
    margin: 0;
    color: #405168;
    line-height: 1.64;
}

.glossary-checker-card form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.glossary-checker-card label {
    display: grid;
    gap: 7px;
}

.glossary-checker-card input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #cad8eb;
    border-radius: 8px;
    background: #f8fbff;
    color: #111827;
    font: inherit;
    font-weight: 800;
    outline: 0;
}

.glossary-checker-card input:focus {
    border-color: rgba(13, 71, 217, .56);
    box-shadow: 0 0 0 4px rgba(13, 71, 217, .10);
}

.glossary-checker-card button {
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: #0d47d9;
    color: #fff;
    font-size: 14px;
    font-weight: 950;
    cursor: pointer;
}

.glossary-checker-card button:hover {
    background: #0838b5;
}

.glossary-checker-result {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid #dbe6f4;
    border-radius: 8px;
    background: #f8fbff;
}

.glossary-checker-result strong {
    color: #07111f;
    font-size: 16px;
}

.glossary-checker-result p {
    color: #405168;
}

.glossary-checker-result.is-ok {
    border-color: rgba(22, 163, 74, .28);
    background: #f0fdf4;
}

.glossary-checker-result.is-bad {
    border-color: rgba(220, 38, 38, .25);
    background: #fff7f7;
}

.glossary-checker-result pre {
    max-width: 100%;
    overflow: auto;
    margin: 0;
    padding: 12px;
    border-radius: 8px;
    background: #07111f;
    color: #dce8ff;
    font-size: 13px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.glossary-checker-result ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 20px;
    color: #405168;
}

.glossary-checker-result .is-errors {
    color: #b42318;
}

.glossary-checker-result .is-warnings {
    color: #9a5b00;
}

.glossary-faq-section details {
    border: 1px solid #dbe6f4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(16, 24, 40, .04);
}

.glossary-faq-section summary {
    min-height: 56px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    color: #07111f;
    font-weight: 950;
    cursor: pointer;
}

.glossary-faq-section details p {
    padding: 0 18px 18px;
}

.glossary-helpfulness {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 30px 32px;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(16, 24, 40, .055);
}

.glossary-helpfulness strong {
    color: #07111f;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 950;
}

.glossary-helpfulness-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.glossary-helpfulness button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: #f8fbff;
    color: #123f7a;
    font-size: 15px;
    font-weight: 950;
    cursor: pointer;
}

.glossary-helpfulness button:hover,
.glossary-helpfulness button.is-selected {
    background: #eaf2ff;
    color: #0d47d9;
}

.glossary-helpfulness button:disabled {
    cursor: default;
    opacity: .72;
}

.glossary-helpfulness svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.glossary-helpfulness p {
    grid-column: 1 / -1;
    margin: 0;
    color: #166534;
    font-size: 14px;
    font-weight: 900;
}

.glossary-helpfulness p.is-error {
    color: #b42318;
}

.glossary-source-section {
    display: grid;
    gap: 12px;
    padding: 22px;
    border: 1px solid #dbe6f4;
    border-radius: 8px;
    background: #fff;
}

.glossary-source-section ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 18px;
}

.glossary-source-section a {
    color: #0d47d9;
    font-weight: 850;
}

.glossary-article-left,
.glossary-article-side {
    min-width: 0;
    position: sticky;
    top: 96px;
    display: grid;
    gap: 14px;
}

.glossary-article-side > div,
.glossary-article-side nav {
    min-width: 0;
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid #dbe6f4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(16, 24, 40, .055);
}

.glossary-article-side > div span {
    color: #0d47d9;
    font-size: 12px;
    font-weight: 950;
}

.glossary-article-side > div p {
    margin: 0;
    color: #536176;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.glossary-article-side .glossary-review-box {
    gap: 9px;
    padding: 18px;
    box-shadow: 0 14px 34px rgba(16, 24, 40, .055);
}

.glossary-article-side .glossary-review-box strong {
    font-size: 14px;
    font-weight: 950;
}

.glossary-article-side .glossary-review-box span,
.glossary-article-side .glossary-review-box p {
    overflow-wrap: anywhere;
}

.glossary-feedback-box {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid #dbe6f4;
    border-radius: 8px;
    background: #f8fbff;
}

.glossary-feedback-box button {
    width: fit-content;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #bfd7ff;
    border-radius: 999px;
    background: #fff;
    color: #0d47d9;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.glossary-feedback-box button:hover {
    background: #eef6ff;
}

.glossary-feedback-box small {
    color: #536176;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 750;
}

.glossary-feedback-modal[hidden] {
    display: none;
}

.glossary-feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 18px;
}

.glossary-feedback-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(7, 17, 31, .52);
    cursor: pointer;
}

.glossary-feedback-dialog {
    position: relative;
    width: min(560px, 100%);
    max-height: min(760px, calc(100vh - 36px));
    overflow: auto;
    display: grid;
    gap: 14px;
    padding: 22px;
    border: 1px solid #dbe6f4;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(7, 17, 31, .28);
}

.glossary-feedback-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 1px solid #dbe6f4;
    border-radius: 999px;
    background: #fff;
    color: #243247;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.glossary-feedback-dialog > div:first-child {
    display: grid;
    gap: 6px;
    padding-right: 36px;
}

.glossary-feedback-dialog > div:first-child span {
    color: #0d47d9;
    font-size: 12px;
    font-weight: 950;
}

.glossary-feedback-dialog h2 {
    margin: 0;
    color: #07111f;
    font-size: 26px;
    line-height: 1.1;
}

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

.glossary-feedback-dialog label {
    display: grid;
    gap: 7px;
    color: #243247;
    font-size: 13px;
    font-weight: 900;
}

.glossary-feedback-dialog label > span em {
    color: #7a8798;
    font-style: normal;
    font-weight: 750;
}

.glossary-feedback-dialog input,
.glossary-feedback-dialog textarea {
    width: 100%;
    border: 1px solid #cad8eb;
    border-radius: 8px;
    background: #f8fbff;
    color: #111827;
    font: inherit;
    font-size: 14px;
    line-height: 1.45;
    outline: 0;
}

.glossary-feedback-dialog input {
    min-height: 44px;
    padding: 0 12px;
}

.glossary-feedback-dialog textarea {
    min-height: 110px;
    padding: 11px 12px;
    resize: vertical;
}

.glossary-feedback-selection textarea {
    min-height: 82px;
    background: #fff;
    color: #405168;
}

.glossary-feedback-dialog input:focus,
.glossary-feedback-dialog textarea:focus {
    border-color: rgba(13, 71, 217, .58);
    box-shadow: 0 0 0 4px rgba(13, 71, 217, .10);
}

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

.glossary-feedback-botcheck {
    width: fit-content;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid #dbe6f4;
    border-radius: 8px;
    background: #fff;
}

.glossary-feedback-botcheck input {
    width: 18px;
    min-height: 18px;
}

.glossary-feedback-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.glossary-feedback-status {
    padding: 10px 12px;
    border: 1px solid #dbe6f4;
    border-radius: 8px;
    background: #f8fbff;
    color: #405168;
    font-size: 13px;
    font-weight: 850;
}

.glossary-feedback-status.is-error {
    border-color: rgba(220, 38, 38, .25);
    background: #fff7f7;
    color: #b42318;
}

.glossary-feedback-status.is-ok {
    border-color: rgba(22, 163, 74, .28);
    background: #f0fdf4;
    color: #166534;
}

.glossary-feedback-submit {
    width: fit-content;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: #0d47d9;
    color: #fff;
    font-weight: 950;
    cursor: pointer;
}

.glossary-feedback-submit:hover {
    background: #0838b5;
}

@media (max-width: 1180px) {
    .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-owned-channel-grid,
    .landing-feature-showcase,
    .landing-automation-grid,
    .landing-migration-grid,
    .blog-hero-inner,
    .glossary-article-layout {
        grid-template-columns: 1fr;
    }

    .glossary-article-side {
        position: static;
    }

    .glossary-article-left {
        display: none;
        position: static;
    }

    .glossary-article-toc-desktop {
        display: none;
    }

    .glossary-article-toc-mobile {
        display: grid;
    }

    .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-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) {
    .glossary-helpfulness {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .glossary-helpfulness strong {
        font-size: 22px;
    }

    .glossary-helpfulness-actions {
        width: 100%;
    }

    .glossary-helpfulness button {
        flex: 1;
        justify-content: center;
    }

    .glossary-feedback-grid {
        grid-template-columns: 1fr;
    }

    .glossary-feedback-dialog {
        padding: 18px;
    }

    .landing-container,
    .landing-section-head,
    .landing-feature-pills,
    .landing-price-grid,
    .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;
    }

    .billing-period-toggle {
        width: min(100% - 28px, 520px);
        flex-direction: column;
        border-radius: 14px;
    }

    .billing-period-toggle button {
        width: 100%;
    }

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

    .landing-price-grid {
        grid-template-columns: 1fr;
    }

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

    .landing-cta-row,
    .landing-owned-channel-actions,
    .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-owned-channel-visual,
    .landing-card-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;
    }

    .glossary-article-hero {
        padding: 54px 0 58px;
    }

    .glossary-article-main h1 {
        font-size: 42px;
    }

    .glossary-article-definition {
        padding: 18px;
        font-size: 17px;
    }

    .glossary-answer-block {
        padding: 18px;
    }

    .glossary-answer-block p {
        font-size: 17px;
    }

    .glossary-answer-block dl {
        grid-template-columns: 1fr;
    }

    .glossary-article-toc {
        padding: 15px;
    }

    .glossary-toc-list a {
        padding: 10px 9px;
        font-size: 14px;
    }

    .glossary-checker-card form {
        grid-template-columns: 1fr;
    }

    .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-owned-channel-copy 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;
}

.legal-shell--terms,
.legal-shell--privacy,
.legal-shell--acceptable-use,
.legal-shell--dpa {
    background:
        radial-gradient(circle at top left, rgba(40,99,255,0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(24,63,184,0.16), transparent 24%),
        linear-gradient(180deg, #f4f8ff 0%, #eaf1ff 34%, #eef4ff 100%);
}

.legal-shell--terms .legal-topbar,
.legal-shell--privacy .legal-topbar,
.legal-shell--acceptable-use .legal-topbar,
.legal-shell--dpa .legal-topbar {
    padding: 14px 18px;
    border: 1px solid rgba(40,99,255,0.12);
    border-radius: 18px;
    background: rgba(255,255,255,0.72);
    box-shadow: 0 18px 46px rgba(24,63,184,0.10);
    backdrop-filter: blur(14px);
}

.legal-shell--terms .legal-brand,
.legal-shell--privacy .legal-brand,
.legal-shell--acceptable-use .legal-brand,
.legal-shell--dpa .legal-brand {
    color: #0f235f;
}

.legal-shell--terms .legal-brand small,
.legal-shell--privacy .legal-brand small,
.legal-shell--acceptable-use .legal-brand small,
.legal-shell--dpa .legal-brand small {
    color: #4d67a8;
}

.legal-shell--terms .legal-nav a,
.legal-shell--privacy .legal-nav a,
.legal-shell--acceptable-use .legal-nav a,
.legal-shell--dpa .legal-nav a {
    border-color: rgba(40,99,255,0.10);
    background: rgba(234,241,255,0.82);
    color: #4b619a;
}

.legal-shell--terms .legal-nav a:hover,
.legal-shell--terms .legal-nav a.is-active,
.legal-shell--privacy .legal-nav a:hover,
.legal-shell--privacy .legal-nav a.is-active,
.legal-shell--acceptable-use .legal-nav a:hover,
.legal-shell--acceptable-use .legal-nav a.is-active,
.legal-shell--dpa .legal-nav a:hover,
.legal-shell--dpa .legal-nav a.is-active {
    color: #15389f;
    background: #ffffff;
    border-color: rgba(40,99,255,0.22);
    box-shadow: 0 10px 24px rgba(40,99,255,0.14);
}

.legal-shell--terms .legal-hero,
.legal-shell--privacy .legal-hero,
.legal-shell--acceptable-use .legal-hero,
.legal-shell--dpa .legal-hero {
    position: relative;
    overflow: hidden;
    border-color: rgba(24,63,184,0.16);
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.24), transparent 28%),
        linear-gradient(135deg, #183fb8 0%, #2863ff 52%, #58a1ff 100%);
    box-shadow: 0 26px 64px rgba(24,63,184,0.26);
}

.legal-shell--terms .legal-hero::after,
.legal-shell--privacy .legal-hero::after,
.legal-shell--acceptable-use .legal-hero::after,
.legal-shell--dpa .legal-hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -110px auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    filter: blur(4px);
}

.legal-shell--terms .legal-hero .eyebrow,
.legal-shell--terms .legal-hero h1,
.legal-shell--privacy .legal-hero .eyebrow,
.legal-shell--privacy .legal-hero h1,
.legal-shell--acceptable-use .legal-hero .eyebrow,
.legal-shell--acceptable-use .legal-hero h1,
.legal-shell--dpa .legal-hero .eyebrow,
.legal-shell--dpa .legal-hero h1 {
    position: relative;
    color: #fff;
}

.legal-shell--terms .legal-hero p,
.legal-shell--privacy .legal-hero p,
.legal-shell--acceptable-use .legal-hero p,
.legal-shell--dpa .legal-hero p {
    position: relative;
    color: rgba(255,255,255,0.86);
}

.legal-shell--terms .legal-meta,
.legal-shell--privacy .legal-meta,
.legal-shell--acceptable-use .legal-meta,
.legal-shell--dpa .legal-meta {
    position: relative;
    border-color: rgba(255,255,255,0.24);
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(8px);
}

.legal-shell--terms .legal-meta span,
.legal-shell--privacy .legal-meta span,
.legal-shell--acceptable-use .legal-meta span,
.legal-shell--dpa .legal-meta span {
    color: rgba(255,255,255,0.74);
}

.legal-shell--terms .legal-meta strong,
.legal-shell--privacy .legal-meta strong,
.legal-shell--acceptable-use .legal-meta strong,
.legal-shell--dpa .legal-meta strong {
    color: #fff;
}

.legal-shell--terms .legal-toc,
.legal-shell--privacy .legal-toc,
.legal-shell--acceptable-use .legal-toc,
.legal-shell--dpa .legal-toc {
    border-color: rgba(40,99,255,0.14);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(242,246,255,0.98));
    box-shadow: 0 18px 38px rgba(24,63,184,0.10);
}

.legal-shell--terms .legal-toc strong,
.legal-shell--privacy .legal-toc strong,
.legal-shell--acceptable-use .legal-toc strong,
.legal-shell--dpa .legal-toc strong {
    color: #183fb8;
}

.legal-shell--terms .legal-toc a,
.legal-shell--privacy .legal-toc a,
.legal-shell--acceptable-use .legal-toc a,
.legal-shell--dpa .legal-toc a {
    color: #4d6297;
}

.legal-shell--terms .legal-toc a:hover,
.legal-shell--privacy .legal-toc a:hover,
.legal-shell--acceptable-use .legal-toc a:hover,
.legal-shell--dpa .legal-toc a:hover {
    color: #183fb8;
    background: #eaf1ff;
}

.legal-shell--terms .legal-document,
.legal-shell--privacy .legal-document,
.legal-shell--acceptable-use .legal-document,
.legal-shell--dpa .legal-document {
    border-color: rgba(40,99,255,0.14);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.99), rgba(247,250,255,0.99));
    box-shadow: 0 22px 56px rgba(24,63,184,0.12);
}

.legal-shell--terms .legal-callout,
.legal-shell--privacy .legal-callout,
.legal-shell--acceptable-use .legal-callout,
.legal-shell--dpa .legal-callout {
    border-color: rgba(40,99,255,0.16);
    background: linear-gradient(180deg, #f3f7ff, #eaf1ff);
    color: #173784;
}

.legal-shell--terms .legal-callout span,
.legal-shell--privacy .legal-callout span,
.legal-shell--acceptable-use .legal-callout span,
.legal-shell--dpa .legal-callout span {
    color: #35508f;
}

.legal-shell--terms .legal-section,
.legal-shell--privacy .legal-section,
.legal-shell--acceptable-use .legal-section,
.legal-shell--dpa .legal-section {
    border-top-color: rgba(40,99,255,0.12);
}

.legal-shell--terms .legal-section h2,
.legal-shell--privacy .legal-section h2,
.legal-shell--acceptable-use .legal-section h2,
.legal-shell--dpa .legal-section h2 {
    color: #183fb8;
}

.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;
}

.contacts-page {
    display: grid;
    gap: 18px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: var(--editor-ui-font-size);
    line-height: 1.42;
    letter-spacing: 0;
}

.contacts-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    margin-bottom: 2px;
}

.contacts-topbar h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -.025em;
}

.contacts-topbar p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: var(--editor-ui-font-size);
    font-weight: 500;
}

.contacts-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: min(760px, 62vw);
}

.contacts-search {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-width: min(390px, 34vw);
    height: 38px;
    padding: 0 13px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(210,220,235,.95);
    border-radius: 7px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .045);
}

.contacts-search span {
    color: #8a98ac;
    font-size: 17px;
    line-height: 1;
}

.contacts-search input {
    border: 0;
    box-shadow: none;
    min-height: auto;
    padding: 0;
    background: transparent;
    color: var(--ink);
    font-size: var(--editor-ui-font-size);
    font-weight: 500;
}

.contacts-search input:focus {
    box-shadow: none;
}

.contacts-search kbd {
    padding: 2px 5px;
    border: 1px solid #d9e2ef;
    border-radius: 5px;
    background: #f8fafd;
    color: #667085;
    font-size: 11px;
    font-weight: 700;
}

.contacts-add-button {
    min-height: 38px;
    padding-inline: 15px;
    box-shadow: 0 11px 26px rgba(40, 99, 255, .22);
}

.contacts-topbar-actions .button {
    min-height: 38px;
    border-radius: var(--editor-ui-radius);
    font-size: var(--editor-ui-font-size);
    font-weight: 600;
    letter-spacing: 0;
}

.contacts-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.contacts-kpi-card {
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 13px;
    min-height: 98px;
    padding: 18px 18px 16px;
    overflow: hidden;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(214,224,238,.95);
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(16, 24, 40, .055);
}

.contacts-kpi-card::after {
    content: "";
    position: absolute;
    inset: auto 18px 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: var(--kpi-color);
}

.contacts-kpi-card i {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, var(--kpi-color) var(--value), transparent var(--value));
}

.contacts-kpi-card.tone-blue { --kpi-color: var(--blue); --kpi-soft: #eef4ff; }
.contacts-kpi-card.tone-green { --kpi-color: var(--green); --kpi-soft: #eaf8f1; }
.contacts-kpi-card.tone-purple { --kpi-color: var(--purple); --kpi-soft: #f0ebff; }
.contacts-kpi-card.tone-red { --kpi-color: var(--red); --kpi-soft: #ffeceb; }

.contacts-kpi-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: var(--kpi-soft);
    color: var(--kpi-color);
    font-size: 18px;
    font-weight: 800;
}

.contacts-kpi-card small,
.contacts-kpi-card em {
    display: block;
    color: var(--muted);
    font-size: var(--editor-ui-font-size);
    font-style: normal;
    font-weight: 500;
}

.contacts-kpi-card strong {
    display: block;
    margin: 5px 0 8px;
    font-size: 27px;
    line-height: .95;
    font-weight: 800;
    letter-spacing: -.03em;
}

.contacts-board {
    padding: 0;
    overflow: hidden;
    border-radius: 9px;
    background: rgba(255,255,255,.96);
}

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

.contacts-main-grid.is-form-open {
    grid-template-columns: minmax(0, 1fr) 330px;
}

.contacts-board-head,
.contacts-filter-row,
.contacts-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.contacts-board-head {
    padding: 20px 22px 14px;
}

.contacts-board-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.contacts-board-tools {
    display: flex;
    gap: 9px;
}

.contacts-tool-button,
.contacts-filter-row button,
.contacts-table-footer button,
.contacts-table-footer select {
    border: 1px solid #dfe7f2;
    background: #fff;
    color: #344054;
    border-radius: 6px;
    font-size: var(--editor-ui-font-size);
    font-weight: 600;
    letter-spacing: 0;
}

.contacts-tool-button {
    min-height: 34px;
    padding: 0 12px;
}

.contacts-filter-row {
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 0 22px 16px;
}

.contacts-filter-row.is-collapsed {
    display: none;
}

.contacts-filter-row button {
    min-height: 32px;
    padding: 0 11px;
    color: #526176;
    font-size: 12px;
    font-weight: 600;
}

.contacts-filter-row button span {
    margin-left: 6px;
    color: #6b7a90;
}

.contacts-filter-row button.is-active {
    border-color: #d7e4ff;
    background: #eef5ff;
    color: var(--blue-dark);
}

.contacts-table-wrap {
    overflow: auto;
    border-top: 1px solid #edf1f7;
}

.contacts-table {
    min-width: 1000px;
    border-collapse: separate;
    border-spacing: 0;
}

.contacts-table th {
    height: 38px;
    padding: 0 14px;
    background: #fafcff;
    color: #6d7890;
    border-bottom: 1px solid #ecf1f7;
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
    font-weight: 700;
}

.contacts-table td {
    height: 64px;
    padding: 9px 14px;
    border-bottom: 1px solid #edf1f7;
    color: #202b3c;
    font-size: var(--editor-ui-font-size);
    font-weight: 500;
}

.contacts-table th:last-child,
.contacts-table td:last-child {
    width: 94px;
    min-width: 94px;
}

.contacts-table tbody tr:hover {
    background: #fbfdff;
}

.contacts-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-height: 0;
    accent-color: var(--blue);
}

.contacts-person {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 210px;
}

.contacts-person a {
    display: block;
    color: var(--ink);
    text-decoration: none;
    font-size: var(--editor-ui-font-size);
    font-weight: 700;
}

.contacts-person a:hover {
    color: var(--blue-dark);
}

.contacts-person small {
    display: block;
    margin-top: 4px;
    color: #6d7890;
    font-size: 11px;
    font-weight: 500;
}

.contacts-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2150c8;
    font-size: 11px;
    font-weight: 700;
}

.contacts-avatar.tone-1 { background: #eaf8f1; color: #087451; }
.contacts-avatar.tone-2 { background: #f0ebff; color: #6b35c9; }
.contacts-avatar.tone-3 { background: #fff2dc; color: #a15c00; }
.contacts-avatar.tone-4 { background: #ffeceb; color: #ad261f; }
.contacts-avatar.tone-5 { background: #e7fbff; color: #067086; }

.contacts-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 120px;
}

.contacts-tag-list span {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid #dfe8ff;
    border-radius: 6px;
    background: #f6f8ff;
    color: #2856c8;
    font-size: 11px;
    font-weight: 600;
}

.contacts-tag-list .contacts-tag-more {
    border-color: #d8dee9;
    background: #f8fafc;
    color: #526176;
    cursor: help;
}

.contacts-tag-list .contacts-tag-more:hover::after,
.contacts-tag-list .contacts-tag-more:focus::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 20;
    width: max-content;
    max-width: 260px;
    padding: 8px 10px;
    border: 1px solid #dfe7f2;
    border-radius: 7px;
    background: #101828;
    color: #fff;
    box-shadow: 0 14px 32px rgba(16,24,40,.18);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    white-space: normal;
}

.contacts-tag-list em {
    color: #98a2b3;
    font-size: 12px;
    font-style: normal;
}

.contacts-score {
    display: grid;
    gap: 7px;
    min-width: 74px;
    font-size: 11px;
    font-weight: 600;
}

.contacts-score i {
    width: 68px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue) var(--value), #e7edf6 var(--value));
}

.contacts-actions {
    position: relative;
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}

.contacts-actions > a,
.contacts-actions summary {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e4ebf5;
    border-radius: 7px;
    background: #fff;
    color: #526176;
    text-decoration: none;
    cursor: pointer;
    list-style: none;
}

.contacts-actions summary::-webkit-details-marker {
    display: none;
}

.contacts-actions details {
    position: relative;
}

.contacts-actions details > div {
    position: absolute;
    right: 0;
    top: calc(100% + 7px);
    z-index: 8;
    display: grid;
    gap: 4px;
    min-width: 150px;
    padding: 7px;
    border: 1px solid #dfe7f2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(16,24,40,.13);
}

.contacts-actions details:not([open]) > div {
    display: none;
}

.contacts-actions details a,
.contacts-actions details button {
    display: block;
    width: 100%;
    padding: 8px 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #344054;
    text-align: left;
    text-decoration: none;
    font-size: var(--editor-ui-font-size);
    font-weight: 600;
}

.contacts-actions details a:hover,
.contacts-actions details button:hover {
    background: #f5f8fc;
}

.contacts-table-footer {
    padding: 13px 22px;
    color: #667085;
    font-size: 12px;
    font-weight: 500;
}

.contacts-table-footer > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contacts-table-footer button,
.contacts-table-footer strong,
.contacts-table-footer select {
    min-width: 34px;
    min-height: 34px;
    padding: 0 10px;
}

.contacts-table-footer strong {
    display: grid;
    place-items: center;
    border: 1px solid #d7e4ff;
    border-radius: 7px;
    background: #eef5ff;
    color: var(--blue-dark);
}

.contacts-secondary-grid {
    margin-top: 2px;
}

.contacts-create-panel {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(214,224,238,.95);
    border-radius: 9px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 18px 48px rgba(16,24,40,.10);
}

.contacts-create-panel[hidden] {
    display: none;
}

.contacts-create-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 0 16px;
    border-bottom: 1px solid #edf1f7;
}

.contacts-create-head h2 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.contacts-create-head button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #667085;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.contacts-create-head button:hover {
    background: #f2f5fa;
    color: var(--ink);
}

.contact-create-form {
    display: grid;
    gap: 0;
    padding: 0 16px 16px;
}

.contact-create-form section {
    display: grid;
    gap: 10px;
    padding: 16px 0;
    border-bottom: 1px solid #edf1f7;
}

.contact-create-form section:last-of-type {
    border-bottom: 0;
}

.contact-create-form h3 {
    margin: 0 0 2px;
    color: #1f2a44;
    font-size: var(--editor-ui-font-size);
    font-weight: 800;
}

.contact-create-form label {
    display: grid;
    gap: 6px;
    color: #4e5d73;
    font-size: 12px;
    font-weight: 700;
}

.contact-create-form label span {
    color: #f04438;
}

.contact-create-form input,
.contact-create-form select,
.contact-create-form textarea {
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid #dfe7f2;
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    font-size: var(--editor-ui-font-size);
    font-weight: 500;
    box-shadow: none;
}

.contact-create-form textarea {
    min-height: 92px;
    padding-top: 9px;
    resize: vertical;
}

.contact-create-form input:focus,
.contact-create-form select:focus,
.contact-create-form textarea:focus {
    border-color: #a9c2ff;
    box-shadow: 0 0 0 3px rgba(40,99,255,.12);
}

.contact-create-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.contact-create-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.contact-create-tags label {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.contact-create-tags input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contact-create-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid #dfe8ff;
    border-radius: 7px;
    background: #f6f8ff;
    color: #2856c8;
    font-size: 12px;
    font-weight: 700;
}

.contact-create-tags input:checked + span {
    border-color: #b9ccff;
    background: #eaf1ff;
    box-shadow: inset 0 0 0 1px #b9ccff;
}

.contact-create-tag-input {
    margin-top: 2px;
}

.contact-create-consent {
    display: flex !important;
    grid-template-columns: none;
    align-items: center;
    gap: 8px !important;
    color: #1f2a44 !important;
    font-size: var(--editor-ui-font-size) !important;
    font-weight: 700 !important;
}

.contact-create-consent input {
    width: 16px;
    height: 16px;
    min-height: 0;
    accent-color: var(--blue);
}

.contact-create-consent span {
    color: inherit;
}

.contact-create-form p {
    margin: -4px 0 0 24px;
    color: #667085;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.contact-create-actions {
    display: grid;
    gap: 10px;
    padding-top: 12px;
}

.contact-create-actions .button {
    min-height: 38px;
    border-radius: 7px;
    font-size: var(--editor-ui-font-size);
    font-weight: 700;
}

.contacts-insight-panel {
    align-self: start;
}

.contacts-table-row.is-hidden {
    display: 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.is-hidden {
    display: none;
}

.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);
}

.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.danger {
    border: 1px solid #ffd1ce;
    background: #fff5f5;
    color: #b42318;
}

.profile-action-menu.danger:hover,
.profile-action-menu.danger:focus {
    background: #d92d20;
    color: #fff;
}

.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-overview-head p {
    margin: 2px 0 0;
    color: #667085;
    font-size: 10px;
    font-weight: 600;
}

.profile-tabs button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    padding: 0 10px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #667085;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
}

.profile-tabs button.is-active {
    color: #2863ff;
    border-bottom-color: #2863ff;
}

.profile-tab-panel {
    display: none;
    padding: 10px;
}

.profile-tab-panel.is-active {
    display: block;
}

.contact-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .95fr);
    gap: 10px;
}

.profile-card-stack {
    display: grid;
    gap: 10px;
}

.profile-micro-card,
.profile-score-card,
.profile-notes-side article {
    border: 1px solid #e7ebf1;
    border-radius: 7px;
    background: #fff;
}

.profile-micro-card {
    display: grid;
    gap: 10px;
    padding: 12px;
}

.profile-micro-card h3,
.profile-score-card span,
.profile-notes-side h3 {
    margin: 0;
    color: #1f2937;
    font-size: 12px;
    font-weight: 900;
}

.profile-micro-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.profile-micro-head button,
.profile-card-foot button,
.profile-suggested-segment button,
.profile-suggest-grid button,
.profile-link-button {
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #dfe7f2;
    border-radius: 6px;
    background: #fff;
    color: #2863ff;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.profile-field-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.profile-field-list div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f3f7;
}

.profile-field-list div:last-child {
    border-bottom: 0;
}

.profile-field-list dt,
.profile-field-list dd {
    margin: 0;
    font-size: 11px;
    line-height: 1.35;
}

.profile-field-list dt {
    color: #667085;
    font-weight: 800;
}

.profile-field-list dd {
    color: #1f2937;
    font-weight: 700;
}

.profile-status-list {
    display: grid;
    gap: 8px;
}

.profile-status-list div,
.profile-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.profile-status-list span,
.profile-card-foot span,
.profile-suggested-segment span,
.profile-suggested-segment small,
.profile-score-card small,
.profile-notes-side p {
    color: #667085;
    font-size: 10px;
    line-height: 1.35;
}

.profile-check-list {
    display: grid;
    gap: 8px;
}

.profile-check-list div,
.profile-consent-card {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #344054;
    font-size: 11px;
    font-weight: 800;
}

.profile-check-list span,
.profile-consent-card > span {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #eef2f7;
}

.profile-check-list .is-ok span,
.profile-consent-card.is-ok > span {
    background: #17a673;
}

.profile-check-list .is-ok span::before,
.profile-consent-card.is-ok > span::before {
    content: "✓";
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.profile-mini-feed {
    display: grid;
    gap: 0;
}

.profile-mini-feed div {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f3f7;
}

.profile-mini-feed div:last-child {
    border-bottom: 0;
}

.profile-mini-feed div > span {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #98a2b3;
}

.profile-mini-feed div.ok > span { background: #17a673; }
.profile-mini-feed div.warn > span { background: #f04438; }

.profile-mini-feed strong,
.profile-mini-feed small {
    grid-column: 2;
}

.profile-mini-feed strong {
    color: #1f2937;
    font-size: 11px;
}

.profile-mini-feed small,
.profile-mini-feed time,
.profile-mini-feed p {
    color: #667085;
    font-size: 10px;
}

.profile-mini-feed time {
    grid-column: 3;
    grid-row: 1;
}

.profile-link-button {
    width: fit-content;
    border: 0;
    padding: 0;
    background: transparent;
}

.profile-tag-list-inline {
    padding: 0;
}

.profile-suggested-segment {
    display: grid;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid #edf0f4;
}

.profile-suggested-segment strong {
    color: #1f2937;
    font-size: 12px;
}

.profile-toolbar-tabs {
    grid-template-columns: minmax(170px, 260px) minmax(0, 1fr) auto;
    align-items: center;
}

.profile-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.profile-filter-pills button {
    min-height: 27px;
    padding: 0 10px;
    border: 1px solid #dfe7f2;
    border-radius: 6px;
    background: #fff;
    color: #667085;
    font-size: 10px;
    font-weight: 800;
}

.profile-filter-pills button.is-active {
    border-color: #c8d8ff;
    background: #eef5ff;
    color: #2863ff;
}

.profile-activity-layout,
.profile-consent-layout,
.profile-segment-layout,
.profile-notes-layout {
    display: grid;
    gap: 10px;
    align-items: start;
}

.profile-activity-layout {
    grid-template-columns: minmax(0, 1fr) 160px;
}

.profile-side-stats,
.profile-notes-side {
    display: grid;
    gap: 10px;
}

.profile-side-stats div {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid #e7ebf1;
    border-radius: 7px;
    background: #fff;
}

.profile-side-stats span {
    color: #667085;
    font-size: 10px;
    font-weight: 800;
}

.profile-side-stats strong {
    color: #1f2937;
    font-size: 18px;
    font-weight: 950;
}

.profile-side-stats small {
    color: #667085;
    font-size: 10px;
}

.profile-consent-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.profile-consent-card {
    align-items: flex-start;
    padding: 12px;
}

.profile-consent-card {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
}

.profile-consent-card strong,
.profile-consent-card small {
    display: block;
    grid-column: 2;
}

.profile-consent-card.is-warn > span {
    background: #fee4e2;
}

.profile-consent-card.is-warn > span::before {
    content: "!";
    color: #b42318;
    font-weight: 900;
}

.profile-consent-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .75fr);
}

.profile-consent-history {
    display: grid;
    gap: 0;
}

.profile-consent-history div {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f3f7;
}

.profile-consent-history div:last-child {
    border-bottom: 0;
}

.profile-consent-history span {
    width: 10px;
    height: 10px;
    margin-top: 3px;
    border-radius: 999px;
    background: #17a673;
}

.profile-consent-history strong,
.profile-consent-history small {
    grid-column: 2;
}

.profile-consent-history strong {
    color: #1f2937;
    font-size: 11px;
}

.profile-consent-history small {
    color: #667085;
    font-size: 10px;
}

.profile-segment-layout {
    grid-template-columns: minmax(0, 1fr) 210px;
}

.profile-segment-layout main,
.profile-note-list {
    display: grid;
    gap: 10px;
}

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

.profile-segment-list div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 8px;
    padding: 9px 10px;
    border: 1px solid #edf0f4;
    border-radius: 6px;
    background: #fbfdff;
}

.profile-segment-list strong,
.profile-segment-list span {
    grid-column: 1;
}

.profile-segment-list strong {
    color: #1f2937;
    font-size: 11px;
}

.profile-segment-list span {
    color: #667085;
    font-size: 10px;
}

.profile-segment-list em {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    color: #17a673;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
}

.profile-suggest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.profile-suggest-grid div {
    display: grid;
    gap: 7px;
    padding: 10px;
    border: 1px solid #edf0f4;
    border-radius: 6px;
    background: #fff;
}

.profile-suggest-grid strong {
    color: #1f2937;
    font-size: 11px;
}

.profile-suggest-grid span {
    color: #667085;
    font-size: 10px;
}

.profile-score-card {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.profile-score-card strong {
    color: #1f2937;
    font-size: 22px;
}

.profile-score-card a {
    color: #2863ff;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.profile-notes-layout {
    grid-template-columns: minmax(0, 1fr) 210px;
}

.profile-note-item {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px;
    border: 1px solid #edf0f4;
    border-radius: 7px;
    background: #fff;
}

.profile-note-item > span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #eef5ff;
    color: #2863ff;
    font-size: 10px;
    font-weight: 900;
}

.profile-note-item strong,
.profile-note-item p,
.profile-note-item time {
    margin: 0;
}

.profile-note-item strong {
    color: #1f2937;
    font-size: 11px;
}

.profile-note-item em {
    margin-left: 6px;
    color: #667085;
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
}

.profile-note-item p,
.profile-note-item time,
.profile-notes-side p {
    color: #667085;
    font-size: 10px;
    line-height: 1.4;
}

.profile-notes-side article {
    padding: 12px;
}

.profile-note-form {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #edf0f4;
}

.profile-note-form label {
    display: grid;
    gap: 6px;
    color: #344054;
    font-size: 11px;
    font-weight: 800;
}

.profile-note-form textarea {
    min-height: 82px;
    resize: vertical;
}

.profile-note-form textarea,
.profile-note-form select {
    border: 1px solid #dfe7f2;
    border-radius: 6px;
    color: #1f2937;
    font-size: 12px;
}

.profile-note-form div {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.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);
}

.billing-addon-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid #d8e0f0;
    border-radius: 10px;
    background:
        radial-gradient(circle at 15% 20%, rgba(40, 99, 255, 0.08), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
}

.billing-addon-card h4,
.billing-addon-card p {
    margin: 0;
}

.billing-addon-card h4 {
    font-size: 18px;
    letter-spacing: -0.01em;
}

.billing-addon-card p {
    max-width: 660px;
    color: var(--muted);
    line-height: 1.5;
}

.billing-addon-card span {
    display: inline-flex;
    margin-top: 8px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 850;
}

.billing-addon-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.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-billing-toggle {
    width: 100%;
    justify-content: center;
    margin: 0;
}

.account-plan-card {
    align-content: start;
    background: #fff;
}

.smtp-shell {
    display: grid;
    gap: 18px;
}

.smtp-hero,
.smtp-top-grid,
.smtp-layout {
    display: grid;
    gap: 16px;
}

.smtp-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background:
        radial-gradient(circle at 12% 0%, rgba(40, 99, 255, 0.12), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.smtp-hero h2,
.smtp-hero p,
.smtp-access-card h3,
.smtp-access-card p,
.smtp-details-card p,
.smtp-panel h3,
.smtp-panel h4 {
    margin: 0;
}

.smtp-hero p {
    max-width: 700px;
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.5;
}

.smtp-access-pill {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.smtp-access-pill.active,
.smtp-user-card em.good {
    border: 1px solid #b9ead2;
    background: #effcf5;
    color: #04724d;
}

.smtp-access-pill.inactive,
.smtp-user-card em.warn {
    border: 1px solid #ffe0a4;
    background: #fff8e8;
    color: #9a5b00;
}

.smtp-top-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.smtp-access-card,
.smtp-details-card,
.smtp-warning-card,
.smtp-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.smtp-access-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.smtp-access-card p,
.smtp-details-card p,
.smtp-warning-card p,
.smtp-muted,
.smtp-empty-state p {
    color: var(--muted);
    line-height: 1.5;
}

.smtp-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.smtp-detail-list span {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel-soft);
}

.smtp-detail-list code {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-weight: 850;
    text-overflow: ellipsis;
}

.smtp-details-card h3 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -.01em;
}

.smtp-connection-list {
    display: grid;
    gap: 7px;
    padding: 14px;
    border: 1px solid #dfe7f2;
    border-radius: 10px;
    background: #fbfcff;
}

.smtp-connection-list p {
    margin: 0;
    color: #344054;
    line-height: 1.45;
}

.smtp-connection-list strong {
    color: var(--ink);
}

.smtp-connection-list code {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 6px;
    border: 1px solid #dbe5f2;
    border-radius: 5px;
    background: #fff;
    color: #1b377f;
    font-weight: 850;
}

.smtp-warning-card {
    border-color: #ffe0a4;
    background: #fffaf0;
}

.smtp-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.85fr);
    align-items: start;
}

.smtp-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.smtp-panel-head span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--panel-soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.smtp-user-form fieldset,
.smtp-edit-form fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

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

.smtp-config-grid.compact {
    grid-template-columns: 1fr;
}

.smtp-config-section {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel-soft);
}

.smtp-config-section.span-2 {
    grid-column: 1 / -1;
}

.smtp-config-section h4 {
    font-size: 14px;
    letter-spacing: 0;
}

.smtp-config-section label {
    display: grid;
    gap: 6px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.smtp-config-section input,
.smtp-config-section select,
.smtp-config-section textarea {
    width: 100%;
    border-color: #d9e1ef;
    background: #fff;
}

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

.smtp-user-list {
    display: grid;
    gap: 10px;
}

.smtp-user-card {
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
}

.smtp-user-card summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 13px 14px;
    cursor: pointer;
    list-style: none;
}

.smtp-user-card summary::-webkit-details-marker {
    display: none;
}

.smtp-user-card summary span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.smtp-user-card summary strong,
.smtp-user-card summary small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.smtp-user-card summary small {
    color: var(--muted);
}

.smtp-user-card em {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.smtp-edit-form {
    padding: 0 14px 14px;
}

.smtp-card-actions,
.smtp-delete-form {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.smtp-empty-state {
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: var(--panel-soft);
    text-align: center;
}

.smtp-users-page {
    margin-top: 4px;
}

.smtp-users-table {
    min-width: 1080px;
}

.smtp-users-table .contacts-person {
    min-width: 240px;
}

.smtp-tracking-tags {
    min-width: 150px;
}

.smtp-create-panel fieldset,
.smtp-edit-form fieldset,
.smtp-user-form fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.smtp-create-panel .toggle-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.smtp-create-panel .button.full {
    width: 100%;
    margin-top: 12px;
}

.smtp-edit-drawer-list {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.smtp-edit-drawer-head {
    display: grid;
    gap: 3px;
}

.smtp-edit-drawer-head h3 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -.02em;
}

.smtp-edit-card {
    overflow: hidden;
    border-color: #dfe7f2;
}

.smtp-shell-directory {
    max-width: 1260px;
    margin-inline: auto;
}

.smtp-shell-directory > .smtp-hero,
.smtp-shell-directory > .smtp-top-grid,
.smtp-shell-directory .contacts-kpi-grid,
.smtp-shell-directory .contacts-board-head,
.smtp-shell-directory .contacts-filter-row {
    display: none;
}

.smtp-shell-directory .smtp-warning-card {
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(16, 24, 40, .06);
}

.smtp-users-page {
    gap: 18px;
    padding: 26px 28px 22px;
    border: 1px solid rgba(222, 229, 240, .92);
    border-radius: 14px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 24px 70px rgba(32, 45, 70, .10);
}

.smtp-users-page.is-create-open {
    gap: 0;
    padding: 0 2px 8px;
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(15,111,255,.04), transparent 28%),
        linear-gradient(180deg, #fbfcff, #f7f9fd);
    box-shadow: none;
}

.smtp-users-page.is-create-open > .contacts-topbar,
.smtp-users-page.is-create-open .contacts-board,
.smtp-users-page.is-create-open .smtp-edit-drawer-list {
    display: none;
}

.smtp-users-page.is-create-open .contacts-main-grid {
    display: block;
}

.smtp-users-page .contacts-topbar {
    margin: 0;
    align-items: center;
}

.smtp-users-page .contacts-topbar h1 {
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -.015em;
}

.smtp-users-page .contacts-topbar p {
    display: none;
}

.smtp-users-page .contacts-topbar-actions {
    min-width: 0;
    flex: 1 1 auto;
    gap: 12px;
}

.smtp-users-page .contacts-search {
    flex: 1 1 320px;
    min-width: 240px;
    height: 44px;
    border-color: #e6edf6;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(16, 24, 40, .045);
}

.smtp-users-page .contacts-search input::placeholder {
    color: #a1adbd;
    font-weight: 650;
}

.smtp-users-page .contacts-search kbd {
    display: none;
}

.smtp-directory-filter {
    height: 44px;
    min-width: 168px;
    padding: 0 36px 0 14px;
    border: 1px solid #e3ebf5;
    border-radius: 7px;
    background:
        linear-gradient(45deg, transparent 50%, #8a98ac 50%) calc(100% - 18px) 19px / 6px 6px no-repeat,
        linear-gradient(135deg, #8a98ac 50%, transparent 50%) calc(100% - 13px) 19px / 6px 6px no-repeat,
        #fff;
    color: #475467;
    font-size: 13px;
    font-weight: 750;
    appearance: none;
    box-shadow: 0 10px 26px rgba(16, 24, 40, .035);
}

.smtp-users-page .contacts-add-button {
    height: 44px;
    padding-inline: 18px;
    border-radius: 7px;
    background: #0f6fff;
    box-shadow: 0 13px 25px rgba(15, 111, 255, .24);
    white-space: nowrap;
}

.smtp-users-page .contacts-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.smtp-users-page .contacts-main-grid.is-form-open {
    grid-template-columns: minmax(0, 1fr);
}

.smtp-users-page .contacts-board {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.smtp-users-page .contacts-table-wrap {
    overflow-x: auto;
    border: 0;
    border-radius: 0;
}

.smtp-users-page .contacts-table {
    border-collapse: separate;
    border-spacing: 0;
}

.smtp-users-page .smtp-users-table {
    min-width: 760px;
}

.smtp-users-page .contacts-table th {
    height: 44px;
    padding: 0 18px 10px;
    border-bottom: 1px solid #edf1f6;
    color: #8a98ac;
    font-size: 12px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
    background: transparent;
}

.smtp-users-page .contacts-table td {
    height: 62px;
    padding: 11px 18px;
    border-bottom: 1px solid #edf1f6;
    color: #4b5565;
    font-size: 13px;
    font-weight: 650;
    background: #fff;
}

.smtp-users-page .contacts-table tbody tr:hover td {
    background: #f9fbff;
}

.smtp-users-page .contacts-table th:last-child,
.smtp-users-page .contacts-table td:last-child {
    width: 84px;
    text-align: right;
}

.smtp-users-page .contacts-person {
    gap: 13px;
    min-width: 0;
}

.smtp-users-page .contacts-person a {
    color: #344054;
    font-size: 13px;
    font-weight: 850;
}

.smtp-user-icon {
    width: 25px;
    height: 25px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 25px;
    border-radius: 8px;
    background: #eaf2ff;
    color: #0f6fff;
    font-size: 12px;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(15, 111, 255, .10);
}

.smtp-user-icon.tone-1,
.smtp-user-icon.tone-3,
.smtp-user-icon.tone-5 {
    background: #eef5ff;
    color: #2b72d8;
}

.smtp-users-page .status-chip {
    min-width: 58px;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 850;
    text-transform: none;
}

.smtp-users-page .status-chip.active {
    background: #eafaf1;
    color: #148253;
}

.smtp-users-page .status-chip.paused {
    background: #fff3df;
    color: #b86b00;
}

.smtp-users-page .contacts-actions {
    justify-content: flex-end;
}

.smtp-users-page .contacts-actions summary {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #7a8699;
    font-size: 19px;
}

.smtp-users-page .contacts-actions summary:hover {
    background: #edf4ff;
    color: #0f6fff;
}

.smtp-users-page .contacts-actions details > div {
    min-width: 150px;
    border-color: #e1e9f4;
    box-shadow: 0 18px 44px rgba(16, 24, 40, .14);
}

.smtp-users-page .contacts-table-footer {
    padding: 20px 4px 0;
    border-top: 0;
    color: #8a98ac;
    font-size: 12px;
    font-weight: 750;
}

.smtp-directory-pagination {
    gap: 8px;
}

.smtp-directory-pagination button,
.smtp-directory-pagination strong {
    width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    border-radius: 7px;
}

.smtp-directory-pagination strong {
    border-color: #bcd7ff;
    background: #eef6ff;
    color: #0f6fff;
    box-shadow: 0 8px 18px rgba(15, 111, 255, .12);
}

.smtp-shell-directory .smtp-edit-drawer-list {
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(16, 24, 40, .06);
}

.smtp-wizard-page[hidden] {
    display: none;
}

.smtp-users-page.is-create-open .smtp-wizard-page {
    display: block;
}

.smtp-create-form {
    display: block;
    padding: 0;
}

.smtp-create-form fieldset {
    display: grid;
    gap: 22px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.smtp-create-form section {
    padding: 0;
    border-bottom: 0;
}

.smtp-wizard-page {
    width: 100%;
}

.smtp-wizard-form {
    width: 100%;
}

.smtp-create-topline {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding: 0 2px;
}

.smtp-create-topline p,
.smtp-create-topline h2,
.smtp-create-topline small,
.smtp-create-card-head h3,
.smtp-create-card-head p,
.smtp-side-card h3 {
    margin: 0;
}

.smtp-create-topline p {
    color: #8997ad;
    font-size: 12px;
    font-weight: 800;
}

.smtp-create-topline p span {
    margin: 0 7px;
    color: #c2ccdb;
}

.smtp-create-topline h2 {
    margin-top: 9px;
    color: #111b31;
    font-size: 30px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -.035em;
}

.smtp-create-topline small {
    display: block;
    margin-top: 7px;
    color: #718198;
    font-size: 13px;
    font-weight: 650;
}

.smtp-create-top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.smtp-create-top-actions > button:not(.button),
.smtp-wizard-avatar {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #e1e9f4;
    border-radius: 9px;
    background: #fff;
    color: #7a8699;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.smtp-wizard-avatar {
    border-radius: 999px;
    background: linear-gradient(135deg, #0f6fff, #64b5ff);
    color: #fff;
    box-shadow: 0 10px 22px rgba(15, 111, 255, .20);
    cursor: default;
}

.smtp-create-top-actions .button {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 7px;
    background: #0f6fff;
    box-shadow: 0 13px 25px rgba(15, 111, 255, .22);
}

.smtp-create-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.smtp-create-main,
.smtp-create-aside {
    display: grid;
    gap: 14px;
}

.smtp-create-card,
.smtp-side-card,
.smtp-user-preview {
    border: 1px solid #e4ebf5;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(16, 24, 40, .06);
}

.smtp-create-card {
    padding: 0 22px 20px;
}

.smtp-access-inline-warning {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin: 18px 0 0;
    padding: 12px;
    border: 1px solid #ffe3a8;
    border-radius: 10px;
    background: #fff9ed;
}

.smtp-access-inline-warning > span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ffefc9;
    color: #a35b00;
    font-size: 13px;
    font-weight: 900;
}

.smtp-access-inline-warning strong,
.smtp-access-inline-warning small {
    display: block;
}

.smtp-access-inline-warning strong {
    color: #513400;
    font-size: 12px;
    font-weight: 900;
}

.smtp-access-inline-warning small {
    margin-top: 2px;
    color: #8a5b00;
    font-size: 11px;
    font-weight: 650;
}

.smtp-access-inline-warning .button {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 7px;
    text-decoration: none;
    font-size: 12px;
}

.smtp-create-card-head {
    display: none;
}

.smtp-reference-stepper {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 68px;
    padding: 0 0 0 2px;
}

.smtp-reference-stepper span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 112px;
    color: #52617a;
    font-size: 12px;
    font-weight: 850;
}

.smtp-reference-stepper b {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #0f6fff;
    color: #fff;
    font-size: 11px;
    line-height: 1;
}

.smtp-reference-stepper i {
    position: relative;
    display: block;
    width: min(460px, 54vw);
    height: 3px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 33% 50%, #dce4f1 0 4px, transparent 4.5px),
        radial-gradient(circle at 66% 50%, #dce4f1 0 4px, transparent 4.5px),
        radial-gradient(circle at 100% 50%, #dce4f1 0 4px, transparent 4.5px),
        #dce4f1;
    font-style: normal;
}

.smtp-reference-stepper em {
    position: absolute;
    inset: 0 auto 0 0;
    width: 30%;
    border-radius: inherit;
    background: #0f6fff;
}

.smtp-reference-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    min-height: 48px;
    margin: 0 -22px;
    padding: 0 22px;
    border-bottom: 1px solid #edf1f6;
}

.smtp-reference-tabs strong,
.smtp-reference-tabs span {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 48px;
    color: #64738d;
    font-size: 12px;
    font-weight: 850;
}

.smtp-reference-tabs strong {
    color: #0f6fff;
}

.smtp-reference-tabs strong::after {
    content: "";
    position: absolute;
    left: 0;
    right: 22px;
    bottom: -1px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: #0f6fff;
}

.smtp-create-icon {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: #eaf2ff;
    color: #0f6fff;
    font-weight: 900;
}

.smtp-create-card-head h3,
.smtp-side-card h3 {
    color: #1d2a52;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -.01em;
}

.smtp-create-card-head p {
    margin-top: 3px;
    color: #7a8699;
    font-size: 12px;
    font-weight: 650;
}

.smtp-create-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 17px;
    padding-top: 20px;
}

.smtp-create-grid label {
    display: grid;
    gap: 7px;
    color: #344054;
    font-size: 12px;
    font-weight: 850;
}

.smtp-create-grid label.span-2 {
    grid-column: 1 / -1;
}

.smtp-create-grid label span {
    color: #0f6fff;
}

.smtp-create-grid label em {
    color: #98a2b3;
    font-style: normal;
    font-weight: 700;
}

.smtp-create-grid input,
.smtp-create-grid textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid #dfe7f2;
    border-radius: 7px;
    background: #fff;
    color: #23304f;
    font-size: 13px;
    font-weight: 650;
}

.smtp-create-grid input:disabled {
    background: #f7f9fc;
    color: #7a8699;
}

.smtp-create-grid textarea {
    min-height: 84px;
    resize: vertical;
}

.smtp-create-grid small {
    color: #7d8aa0;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.35;
}

.smtp-password-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 78px 108px;
}

.smtp-password-row input {
    border-radius: 7px 0 0 7px;
}

.smtp-password-row button {
    border: 1px solid #dbe7f7;
    border-left: 0;
    background: #f4f8ff;
    color: #0f6fff;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.smtp-password-row button:first-of-type {
    border-radius: 0;
    color: #475467;
}

.smtp-password-row button:last-of-type {
    border-radius: 0 7px 7px 0;
}

.smtp-default-limits {
    display: inline-flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 8px !important;
    margin-top: 1px;
    color: #61718c !important;
    font-size: 11px !important;
    font-weight: 750 !important;
}

.smtp-default-limits input {
    width: 15px;
    min-height: 15px;
    height: 15px;
    margin: 0;
    accent-color: #0f6fff;
}

.smtp-connection-preview {
    display: grid;
    grid-template-columns: minmax(170px, 1.35fr) repeat(4, minmax(104px, 1fr));
    gap: 14px;
    align-items: center;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #bdd6ff;
    border-radius: 10px;
    background: #f8fbff;
}

.smtp-connection-preview strong,
.smtp-connection-preview b {
    display: block;
    color: #24304f;
    font-size: 12px;
    font-weight: 900;
}

.smtp-connection-preview small {
    display: block;
    margin-top: 2px;
    color: #7887a2;
    font-size: 11px;
    font-weight: 700;
}

.smtp-user-preview {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border-color: #bdebd1;
    background: #fbfffd;
}

.smtp-user-preview > span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid #8ddeaf;
    border-radius: 999px;
    color: #16a365;
    font-weight: 900;
}

.smtp-user-preview strong {
    color: #24304f;
    font-size: 12px;
    font-weight: 900;
}

.smtp-user-preview small {
    display: block;
    margin-top: 2px;
    color: #7a8699;
    font-size: 11px;
    font-weight: 650;
}

.smtp-user-preview dl,
.smtp-side-card dl {
    margin: 0;
}

.smtp-user-preview dl {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 22px;
}

.smtp-user-preview dt,
.smtp-side-card dt {
    color: #7a8699;
    font-size: 10px;
    font-weight: 850;
}

.smtp-user-preview dd,
.smtp-side-card dd {
    margin: 3px 0 0;
    color: #26314f;
    font-size: 12px;
    font-weight: 850;
}

.smtp-user-preview mark {
    padding: 3px 7px;
    border-radius: 7px;
    background: #e9fbf1;
    color: #168255;
    font-size: 11px;
    font-weight: 900;
}

.smtp-create-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-bottom: 2px;
}

.smtp-create-actions .button {
    min-height: 42px;
    min-width: 148px;
    border-radius: 7px;
}

.smtp-side-card {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.smtp-side-card dl {
    display: grid;
    gap: 13px;
}

.smtp-side-card dl div {
    display: grid;
    gap: 3px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f6;
}

.smtp-side-card dl div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.smtp-side-card ul {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.smtp-side-card li {
    display: grid;
    gap: 3px;
    padding-left: 36px;
    position: relative;
}

.smtp-side-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #edf4ff;
}

.smtp-side-card li strong {
    color: #293656;
    font-size: 12px;
    font-weight: 900;
}

.smtp-side-card li span {
    color: #7a8699;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.35;
}

@media (max-width: 1120px) {
    .smtp-create-layout {
        grid-template-columns: 1fr;
    }

    .smtp-create-aside {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .smtp-create-topline {
        align-items: flex-start;
    }

    .smtp-create-topline h2 {
        font-size: 24px;
    }

    .smtp-create-grid,
    .smtp-create-aside,
    .smtp-user-preview,
    .smtp-user-preview dl,
    .smtp-connection-preview {
        grid-template-columns: 1fr;
    }

    .smtp-create-grid label.span-2 {
        grid-column: auto;
    }

    .smtp-user-preview dl {
        gap: 10px;
    }

    .smtp-create-actions {
        display: grid;
    }
}

.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;
}

.account-plan-card .account-plan-price {
    color: var(--ink);
    line-height: 1.2;
}

.account-annual-saving {
    width: 100%;
    justify-content: flex-start;
    background: #f0fdf4;
}

.account-extra-contacts {
    display: grid;
    gap: 5px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.account-extra-contacts input {
    width: 100%;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.account-extra-contacts small {
    font-weight: 700;
}

.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;
}

.campaigns-workbench {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.campaigns-workbench > .panel,
.campaigns-workbench .stack > .panel {
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,255,.90)),
        #fff;
    border: 1px solid rgba(223,230,242,.88);
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(28, 39, 64, .10);
}

.campaigns-workbench > .panel {
    padding: 24px;
}

.campaigns-workbench .panel-head {
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(223,230,242,.74);
}

.campaigns-workbench .panel-head h2 {
    margin: 2px 0 0;
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: .98;
    letter-spacing: -.055em;
}

.campaigns-workbench .panel-head p:not(.eyebrow) {
    max-width: 620px;
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.campaigns-workbench .eyebrow {
    color: var(--blue);
    letter-spacing: .13em;
}

.campaigns-workbench .campaign-list {
    gap: 12px;
}

.campaigns-workbench .campaign-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(223,230,242,.84);
    border-radius: 14px;
    background:
        radial-gradient(circle at 0 0, rgba(40,99,255,.08), transparent 34%),
        linear-gradient(180deg, #fff, #f8faff);
    box-shadow: 0 12px 28px rgba(28, 39, 64, .055);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.campaigns-workbench .campaign-row:hover {
    transform: translateY(-1px);
    border-color: rgba(40,99,255,.28);
    box-shadow: 0 18px 38px rgba(28, 39, 64, .09);
}

.campaigns-workbench .campaign-row strong {
    display: block;
    font-size: 17px;
    line-height: 1.24;
    letter-spacing: -.025em;
}

.campaigns-workbench .campaign-row span:not(.status-chip) {
    margin-top: 7px;
    color: #344054;
    line-height: 1.45;
}

.campaigns-workbench .campaign-row small {
    margin-top: 7px;
    line-height: 1.45;
}

.campaigns-workbench .campaign-metrics {
    min-width: 188px;
    display: grid;
    justify-items: end;
    gap: 8px;
    text-align: right;
}

.campaigns-workbench .campaign-metrics > strong {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(40,99,255,.16);
    border-radius: 999px;
    background: #eef3ff;
    color: var(--blue-dark);
    font-size: 15px;
    font-weight: 950;
}

.campaigns-workbench .preflight-mini {
    margin-top: 11px;
}

.campaigns-workbench .preflight-mini em {
    min-height: 25px;
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    font-size: 11px;
}

.campaigns-workbench .button-row {
    margin-top: 2px;
}

.campaigns-workbench .mini-button {
    min-height: 31px;
    padding: 0 11px;
    border-radius: 999px;
}

.campaigns-workbench .simulation-grid {
    gap: 11px;
}

.campaigns-workbench .simulation-grid div {
    border: 1px solid rgba(223,230,242,.90);
    border-radius: 14px;
    background:
        radial-gradient(circle at 100% 0, rgba(99,214,162,.12), transparent 42%),
        #fff;
    box-shadow: 0 10px 24px rgba(28, 39, 64, .045);
}

.campaigns-workbench .simulation-grid strong {
    font-size: 29px;
    letter-spacing: -.045em;
}

.campaigns-workbench .why-box,
.campaigns-workbench .recommendation,
.campaigns-workbench .queue-list div,
.campaigns-workbench .attempt-list div {
    border: 1px solid rgba(223,230,242,.88);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(28, 39, 64, .045);
}

.campaigns-workbench .why-box,
.campaigns-workbench .recommendation {
    padding: 13px;
}

.campaigns-workbench .check-row {
    border-radius: 12px;
}

.campaigns-workbench .queue-list div,
.campaigns-workbench .attempt-list div {
    padding: 13px;
}

.campaigns-workbench .form-grid input,
.campaigns-workbench .form-grid textarea {
    border-radius: 10px;
}

.campaigns-workbench .newsletter-list-empty {
    border-radius: 14px;
    background:
        radial-gradient(circle at 0 0, rgba(40,99,255,.10), transparent 38%),
        #fff;
}

.domains-shell {
    max-width: 1480px;
    margin: 0 auto;
}

.domains-card {
    background: #fff;
    border: 1px solid #e6edf7;
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(28, 39, 64, .10);
    padding: 22px;
}

.domains-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.domains-toolbar h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: 0;
}

.domains-toolbar span,
.domains-setup-head span,
.domain-name-cell span,
.domains-empty-state span,
.dns-setup-empty span,
.domains-add-panel small,
.domains-muted-action {
    color: var(--muted);
}

.domains-toolbar-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
    position: relative;
    flex: 0 0 auto;
}

.domains-add-menu {
    position: relative;
}

.domains-add-menu summary {
    list-style: none;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    padding: 0 14px;
    background: var(--blue);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(40, 99, 255, .18);
}

.domains-add-menu summary::-webkit-details-marker {
    display: none;
}

.domains-add-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 25;
    width: min(330px, calc(100vw - 36px));
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(28, 39, 64, .12);
}

.domains-add-panel label {
    display: grid;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #344054;
    text-transform: none;
    letter-spacing: 0;
}

.domains-add-panel input {
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.domains-add-panel textarea {
    width: 100%;
    min-height: 92px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 10px;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    background: #fff;
    text-transform: none;
    letter-spacing: 0;
}

.domains-add-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
}

.domains-add-tabs label {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

.domains-add-tabs input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.domains-add-tabs label:has(input:checked) {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 2px 7px rgba(28, 39, 64, .08);
}

.domains-add-panel .button.primary {
    min-height: 34px;
    border-radius: 7px;
    font-size: 13px;
}

.domains-add-panel small {
    font-size: 12px;
    line-height: 1.35;
}

.single-email-message-panel {
    display: grid;
    gap: 8px;
}

.single-email-message-toggle {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 13px !important;
    font-weight: 400 !important;
    text-transform: none;
    letter-spacing: 0;
}

.single-email-message-toggle input {
    width: 16px;
    height: 16px;
    min-height: 16px;
    padding: 0;
}

.single-email-message-field {
    color: var(--ink);
    font-size: 13px !important;
    font-weight: 400 !important;
    text-transform: none;
    letter-spacing: 0;
}

.domains-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
}

.domains-table {
    table-layout: fixed;
}

.domains-table th:nth-child(1),
.domains-table td:nth-child(1) {
    width: 16%;
}

.domains-table th:nth-child(2),
.domains-table td:nth-child(2) {
    width: 10%;
}

.domains-table th:nth-child(3),
.domains-table td:nth-child(3),
.domains-table th:nth-child(4),
.domains-table td:nth-child(4),
.domains-table th:nth-child(5),
.domains-table td:nth-child(5),
.domains-table th:nth-child(6),
.domains-table td:nth-child(6),
.domains-table th:nth-child(7),
.domains-table td:nth-child(7),
.domains-table th:nth-child(8),
.domains-table td:nth-child(8) {
    width: 8%;
    text-align: center;
}

.domains-table th:nth-child(9),
.domains-table td:nth-child(9) {
    width: 26%;
    text-align: center;
}

.domains-table th {
    background: #fff;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.domains-table th,
.domains-table td {
    padding: 14px 12px;
}

.domains-table td {
    background: #fff;
}

.domain-name-cell {
    display: grid;
    gap: 3px;
}

.domain-name-cell strong {
    color: #101828;
    font-size: 14px;
}

.domain-name-cell span {
    font-size: 12px;
}

.domain-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
}

.domain-status-pill.verified {
    background: #eaf8f0;
    color: #057647;
}

.domain-check-icon.verified {
    color: #19a66a;
}

.domain-status-pill.pending {
    background: #fff7e6;
    color: #b45309;
}

.domain-check-icon.pending {
    color: #e79a28;
}

.domain-status-pill.failed {
    background: #fff0f0;
    color: #b42318;
}

.domain-check-icon.failed {
    color: #e15b67;
}

.domain-status-pill.neutral {
    background: #f2f4f7;
    color: #667085;
}

.domain-check-icon.neutral {
    color: #98a2b3;
}

.domain-check-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    border: 2px solid currentColor;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    box-shadow: none;
}

.domain-check-icon.pending {
    border: 0;
    width: 22px;
    height: 22px;
    font-size: 16px;
    background: transparent;
}

.domains-inline-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.domains-muted-action {
    font-size: 12px;
    font-weight: 700;
}

.domains-row-actions {
    position: relative;
    display: inline-block;
}

.domains-row-actions summary {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    border-radius: 4px;
    color: #667085;
    cursor: pointer;
}

.domains-row-actions summary::-webkit-details-marker {
    display: none;
}

.domains-row-actions summary:hover {
    background: #f2f4f7;
}

.domains-row-actions > div {
    position: absolute;
    top: 28px;
    right: 0;
    z-index: 20;
    min-width: 150px;
    display: grid;
    gap: 2px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.domains-row-actions form {
    display: grid;
    gap: 2px;
}

.domains-row-actions button,
.domains-row-actions a,
.domains-row-actions span {
    width: 100%;
    min-height: 30px;
    display: flex;
    align-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    padding: 0 9px;
    color: var(--ink);
    font-size: 13px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.domains-row-actions button:hover,
.domains-row-actions a:hover {
    background: #f5f8ff;
}

.domain-action-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: wrap;
}

.domain-action-buttons form {
    display: contents;
}

.domain-action-buttons button,
.domain-action-buttons a {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe5f5;
    border-radius: 999px;
    background: #fff;
    padding: 0 9px;
    color: #344054;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(28, 39, 64, .04);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.domain-action-buttons button:hover,
.domain-action-buttons a:hover {
    border-color: rgba(40, 99, 255, .35);
    background: #f5f8ff;
    color: var(--blue-dark);
    box-shadow: 0 10px 22px rgba(40, 99, 255, .10);
    transform: translateY(-1px);
}

.domain-action-buttons button[name="action"][value="check_domain"] {
    border-color: rgba(25, 166, 106, .24);
    color: #08744f;
}

.domain-action-buttons button[name="action"][value="run_deliverability_advisor"] {
    border-color: rgba(40, 99, 255, .24);
    color: var(--blue-dark);
}

.domain-action-buttons a {
    border-color: rgba(183, 121, 31, .25);
    color: #845100;
}

.domain-action-buttons a.is-active {
    border-color: rgba(225, 76, 103, .28);
    background: #fff7f8;
    color: var(--rose);
}

.domain-action-buttons button.danger {
    border-color: rgba(192, 54, 44, .24);
    color: var(--red);
}

.domain-action-buttons button.danger:hover {
    border-color: rgba(192, 54, 44, .36);
    background: #fff0ef;
    color: var(--red);
    box-shadow: 0 10px 22px rgba(192, 54, 44, .10);
}

.domains-empty-state,
.dns-setup-empty {
    display: grid;
    gap: 5px;
    padding: 18px;
    text-align: center;
}

.domains-setup-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 28px 0 12px;
}

.domains-setup-head h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: 0;
}

.dns-setup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    align-items: stretch;
}

.dns-setup-card {
    display: grid;
    gap: 10px;
    align-content: start;
    min-width: 0;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #f6faff;
    padding: 14px;
    min-height: 260px;
}

.dns-setup-card.failed {
    background: #fff8f8;
    border-color: #ffd2d2;
}

.dns-setup-card.pending {
    background: #fffaf0;
    border-color: #fde4b6;
}

.dns-setup-card.neutral {
    background: #f8fafc;
    border-color: #e4e7ec;
}

.dns-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(102,112,133,.14);
}

.dns-setup-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.dns-setup-card-head strong {
    font-size: 18px;
}

.dns-setup-card > strong {
    font-size: 13px;
    font-weight: 800;
}

.dns-card-title-row strong {
    color: var(--ink);
    font-size: 14px;
    font-weight: 850;
}

.dns-field-row {
    display: grid;
    gap: 5px;
}

.dns-field-row > span {
    color: #667085;
    font-size: 11px;
    font-weight: 850;
}

.dns-field-row .copy-line {
    margin-top: 0;
    align-items: flex-start;
}

.dns-field-row .copy-line code {
    flex: 1 1 auto;
}

.dns-setup-card p {
    margin: 2px 0 0;
    color: #475467;
    font-size: 12px;
    line-height: 1.45;
}

.spf-builder {
    display: grid;
    gap: 6px;
    padding: 7px;
    border: 1px solid rgba(40, 99, 255, .14);
    border-radius: 7px;
    background: rgba(255, 255, 255, .72);
}

.spf-advanced {
    margin-top: 2px;
}

.spf-advanced summary {
    list-style: none;
    width: fit-content;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 8px;
    background: #fff;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.spf-advanced summary::-webkit-details-marker {
    display: none;
}

.spf-advanced summary::after {
    content: "+";
    margin-left: 7px;
    color: var(--blue);
    font-weight: 900;
}

.spf-advanced[open] summary {
    margin-bottom: 8px;
    color: var(--ink);
}

.spf-advanced[open] summary::after {
    content: "-";
}

.spf-builder-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.spf-builder-head strong {
    font-size: 11px;
    font-weight: 850;
}

.spf-builder-head span,
.spf-locked-include span,
.spf-include-grid small,
.spf-custom-include {
    color: var(--muted);
    font-size: 10px;
}

.spf-locked-include {
    display: grid;
    gap: 2px;
    padding: 5px 6px;
    border: 1px solid #dbe7f6;
    border-radius: 6px;
    background: #fff;
}

.spf-include-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

.spf-include-grid label {
    display: grid;
    gap: 1px;
    padding: 5px 6px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    min-width: 0;
}

.spf-include-grid label.is-selected,
.spf-include-grid label:has(input:checked) {
    border-color: rgba(40, 99, 255, .34);
    background: #f5f8ff;
}

.spf-include-grid input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.spf-include-grid span {
    color: var(--ink);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spf-include-grid small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spf-custom-include {
    display: grid;
    gap: 4px;
    font-weight: 800;
}

.spf-custom-include input {
    min-height: 28px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 7px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 400;
}

.spf-builder .mini-button {
    justify-self: start;
    min-height: 26px;
    padding: 0 8px;
    font-size: 11px;
}

.tracking-host-editor,
.tracking-ssl-panel {
    display: grid;
    gap: 7px;
    padding: 9px;
    border: 1px solid rgba(40, 99, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
}

.tracking-host-editor label {
    margin: 0;
}

.tracking-host-input {
    display: flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.tracking-host-input input {
    width: 38%;
    min-width: 84px;
    border: 0;
    outline: 0;
    padding: 0 9px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 750;
    background: transparent;
}

.tracking-host-input span {
    flex: 1;
    min-width: 0;
    padding-right: 9px;
    color: #667085;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dns-host-inline,
.tracking-host-inline {
    gap: 6px;
}

.dns-host-inline code[data-dns-host-input],
.tracking-host-inline code[data-tracking-host-input] {
    outline: 0;
    border-radius: 6px;
    transition: background .18s ease, box-shadow .18s ease, color .18s ease;
}

.dns-host-inline code[data-dns-host-input].is-editing,
.tracking-host-inline code[data-tracking-host-input].is-editing {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 0 0 2px rgba(40, 99, 255, .16);
}

.dns-host-edit-button,
.tracking-host-edit-button {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(40, 99, 255, .14);
    border-radius: 999px;
    background: #fff;
    color: #2863ff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(28, 39, 64, .04);
}

.dns-host-edit-button:hover,
.tracking-host-edit-button:hover {
    border-color: rgba(40, 99, 255, .35);
    background: #f5f8ff;
    transform: translateY(-1px);
}

.dns-host-inline-status,
.tracking-host-inline-status {
    display: block;
    margin-top: 4px;
    color: #667085;
    font-size: 11px;
    line-height: 1.35;
}

.tracking-host-editor small,
.tracking-ssl-panel small {
    color: #667085;
    font-size: 11px;
    line-height: 1.35;
}

.tracking-host-editor small[data-state="saving"] {
    color: #e79a28;
}

.tracking-host-editor small[data-state="saved"] {
    color: #19a66a;
}

.tracking-host-editor small[data-state="error"] {
    color: #e15b67;
}

.dns-host-inline-status[data-state="saving"],
.tracking-host-inline-status[data-state="saving"] {
    color: #e79a28;
}

.dns-host-inline-status[data-state="saved"],
.tracking-host-inline-status[data-state="saved"] {
    color: #19a66a;
}

.dns-host-inline-status[data-state="error"],
.tracking-host-inline-status[data-state="error"] {
    color: #e15b67;
}

.tracking-ssl-panel {
    border-color: #dbe7f6;
}

.tracking-ssl-panel.verified {
    border-color: rgba(25, 166, 106, .25);
    background: #f3fff9;
}

.tracking-ssl-panel.pending {
    border-color: rgba(231, 154, 40, .3);
    background: #fffaf0;
}

.tracking-ssl-panel.failed {
    border-color: rgba(225, 91, 103, .28);
    background: #fff8f8;
}

.tracking-ssl-panel > div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.tracking-ssl-panel strong {
    color: var(--ink);
    font-size: 12px;
    font-weight: 850;
}

.tracking-ssl-panel p {
    margin: 0;
}

.tracking-ssl-form {
    margin: 0;
}

.tracking-ssl-form .mini-button {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(183, 121, 31, .25);
    border-radius: 999px;
    background: #fff;
    padding: 0 9px;
    color: #845100;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(28, 39, 64, .04);
}

.tracking-ssl-form .mini-button:hover {
    border-color: rgba(40, 99, 255, .35);
    background: #f5f8ff;
    color: var(--blue-dark);
    box-shadow: 0 10px 22px rgba(40, 99, 255, .10);
    transform: translateY(-1px);
}

.dns-setup-card label {
    margin-top: 5px;
    color: #667085;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.dns-setup-card code,
.domains-table code {
    display: inline-block;
    max-width: 360px;
    overflow-wrap: anywhere;
    background: transparent;
    border: 0;
    padding: 0;
}

.dns-record-value {
    color: #344054;
    font-size: 13px;
}

.dns-record-status {
    color: #19a66a;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.dns-record-status.pending {
    color: #e79a28;
}

.dns-record-status.failed {
    color: #e15b67;
}

.dns-record-status.neutral {
    color: #98a2b3;
}

@media (max-width: 860px) {
    .domains-toolbar,
    .domains-setup-head {
        display: grid;
    }

    .domains-toolbar-actions {
        justify-content: stretch;
    }

    .domains-add-menu,
    .domains-add-menu summary,
    .domains-toolbar-actions form,
    .domains-toolbar-actions .mini-button {
        width: 100%;
    }

    .domains-add-panel {
        position: fixed;
        top: 84px;
        left: 16px;
        right: 16px;
        width: auto;
    }

    .dns-setup-grid {
        grid-template-columns: 1fr;
    }

    .spf-include-grid {
        grid-template-columns: 1fr;
    }
}

.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;
}

.email-card.is-empty-builder {
    min-height: clamp(460px, 62vh, 760px);
}

.email-card.is-empty-builder .builder-bottom-space {
    min-height: inherit;
    margin-left: 0;
    padding: 18px;
    align-items: center;
    border-color: #d8e0ec;
    background:
        radial-gradient(circle at 50% 22%, rgba(40,99,255,.12), transparent 34%),
        linear-gradient(180deg, rgba(248,250,252,.22), rgba(248,250,252,.96));
}

.builder-empty-state {
    width: min(360px, 100%);
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 30px 24px;
    border: 1px solid rgba(213,220,232,.86);
    border-radius: 18px;
    background: rgba(255,255,255,.9);
    color: #475467;
    text-align: center;
    box-shadow: 0 22px 58px rgba(28,39,64,.10);
}

.builder-empty-state[hidden] {
    display: none;
}

.builder-empty-state > span {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 24px;
    font-weight: 750;
    line-height: 1;
}

.builder-empty-state strong {
    color: #111827;
    font-size: 18px;
    letter-spacing: -.02em;
}

.builder-empty-state small {
    max-width: 250px;
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
}

.builder-empty-state button {
    margin-top: 4px;
    opacity: 1;
}

.builder-bottom-space {
    min-height: clamp(220px, 34vh, 420px);
    margin-left: 60px;
    padding: 28px 0 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 14px;
    border: 1px solid #2863ff;
    border-radius: 999px;
    background: #2863ff;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 850;
    line-height: 1;
    opacity: .82;
    box-shadow: 0 10px 22px rgba(40, 99, 255, .22);
    transition: opacity .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease;
}

.builder-bottom-space.is-empty .builder-empty-state button {
    min-height: 38px;
    padding: 0 15px;
    opacity: 1;
}

.builder-bottom-space:hover button,
.builder-bottom-space button:focus {
    border-color: #183fb8;
    color: #fff;
    opacity: 1;
    outline: 0;
    box-shadow: 0 14px 30px rgba(40, 99, 255, .28);
}

.builder-compact-add {
    position: relative;
    width: 100%;
    min-height: 34px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #2863ff !important;
    opacity: .9 !important;
    font-size: 13px !important;
    font-weight: 850 !important;
}

.builder-compact-add::before,
.builder-compact-add::after {
    content: "";
    flex: 1 1 auto;
    height: 2px;
    border-radius: 999px;
    background: #2863ff;
    box-shadow: 0 4px 14px rgba(40, 99, 255, .18);
}

.builder-compact-add::before {
    margin-right: 8px;
}

.builder-compact-add::after {
    margin-left: 8px;
}

.builder-compact-add:not([hidden]) {
    display: flex;
}

.builder-bottom-space + .email-muted {
    margin-top: 0;
}

.builder-block {
    position: relative;
    margin: 0 0 20px 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-insert-line {
    position: absolute;
    z-index: 18;
    left: 0;
    right: 0;
    bottom: -17px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    opacity: .54;
    transition: opacity .14s ease, transform .14s ease;
}

.builder-insert-line::before,
.builder-insert-line::after {
    content: "";
    flex: 1 1 auto;
    height: 2px;
    border-radius: 999px;
    background: #2863ff;
    box-shadow: 0 0 0 1px rgba(40, 99, 255, .08), 0 4px 14px rgba(40, 99, 255, .18);
}

.builder-insert-line span,
.builder-insert-line b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2863ff;
    box-shadow: 0 8px 20px rgba(40, 99, 255, .28);
}

.builder-insert-line span {
    width: 28px;
    height: 28px;
    margin-left: 8px;
    border-radius: 999px 0 0 999px;
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
}

.builder-insert-line b {
    min-height: 28px;
    margin-right: 8px;
    padding: 0 14px 0 4px;
    border-radius: 0 999px 999px 0;
    font-size: 13px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.builder-block:hover .builder-insert-line,
.builder-block.selected .builder-insert-line,
.builder-insert-line:hover,
.builder-insert-line:focus-visible {
    opacity: 1;
    outline: 0;
    transform: translateY(-1px);
}

.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[data-open-block-menu] {
    display: none;
}

.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 [data-heading-placeholder="true"] {
    color: #98a2b3;
}

.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);
}

.social-platform-preview {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid #dfe6f2;
    border-radius: 16px;
    background: #fff;
    color: #101828;
    box-shadow: 0 12px 30px rgba(16, 24, 40, .06);
}

.social-platform-preview:hover {
    border-color: #b8c3d8;
    box-shadow: 0 16px 36px rgba(16, 24, 40, .09);
}

.social-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #101828;
    font-size: 20px;
    font-weight: 900;
}

.social-brand-row span,
.social-follow-icons a span {
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--social-color);
    color: var(--social-text, #fff);
    font-weight: 950;
    letter-spacing: -.02em;
}

.social-logo-img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
    border: 0;
}

.social-brand-row span {
    width: 38px;
    height: 38px;
    font-size: 13px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}

.social-post-box {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid #dfe6f2;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff, #fbfdff);
}

.social-post-box strong {
    color: #101828;
    font-size: 16px;
    line-height: 1.35;
}

.social-post-box p {
    margin: 0;
    color: #475467;
    font-size: 14px;
    line-height: 1.55;
}

.social-post-box small {
    min-width: 0;
    overflow: hidden;
    color: #667085;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-cta-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border-radius: 10px;
    background: var(--social-color);
    color: var(--social-text, #fff);
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
}

.social-cta-button i {
    font-style: normal;
    font-size: 19px;
    line-height: 1;
}

.social-variant-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 5px;
    border: 1px solid #dfe6f2;
    border-radius: 12px;
    background: #f8fafc;
}

.social-variant-tabs button {
    min-height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #475467;
    cursor: pointer;
    font-size: 12px;
    font-weight: 850;
}

.social-variant-tabs button.active,
.social-variant-tabs button:hover {
    background: #16a34a;
    color: #fff;
}

.social-follow-preview {
    display: grid;
    gap: 14px;
    padding: 20px 16px;
    border: 1px solid #dfe6f2;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #fbfdff);
    text-align: center;
}

.social-follow-title {
    color: #101828;
    font-size: 18px;
    font-weight: 900;
}

.social-follow-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.social-follow-icons a {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid #e4e7ec;
    border-radius: 999px;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(16, 24, 40, .08);
}

.social-follow-icons a span {
    width: 40px;
    height: 40px;
    font-size: 13px;
}

.social-follow-icons small {
    color: #667085;
    font-size: 13px;
}

.social-follow-config {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #dfe6f2;
    border-radius: 14px;
    background: #f8fafc;
    text-align: left;
}

.social-follow-config > strong {
    color: #101828;
    font-size: 13px;
    font-weight: 900;
}

.social-follow-config > small {
    color: #667085;
    font-size: 12px;
    line-height: 1.4;
}

.social-follow-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.social-follow-row {
    display: grid;
    grid-template-columns: minmax(0, 118px) minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    padding: 6px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
}

.social-follow-row.active {
    border-color: color-mix(in srgb, var(--social-color) 45%, #dfe6f2);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--social-color) 12%, transparent);
}

.social-follow-row button {
    min-width: 0;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #475467;
    cursor: pointer;
    text-align: left;
}

.social-follow-row button span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--social-color);
    color: var(--social-text, #fff);
}

.social-follow-row button .social-logo-img {
    width: 14px;
    height: 14px;
}

.social-follow-row button b {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-follow-row.active button {
    color: #101828;
}

.social-follow-row input {
    min-width: 0;
    height: 34px;
    padding: 0 9px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: #101828;
    font-size: 12px;
}

.social-follow-row input:focus {
    outline: none;
    border-color: #2863ff;
    box-shadow: 0 0 0 3px rgba(40, 99, 255, .12);
}

.youtube-preview-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid #dfe6f2;
    border-radius: 16px;
    background: #fff;
    color: #101828;
    text-decoration: none;
    cursor: default;
}

.youtube-preview-card:hover {
    border-color: #b8c3d8;
    box-shadow: 0 12px 30px rgba(16, 24, 40, .08);
}

.youtube-preview-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #111827;
    text-decoration: none;
}

.youtube-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    font-size: 18px;
    font-weight: 850;
}

.youtube-brand-row span {
    width: 34px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #ff0000;
}

.youtube-brand-row span i {
    width: 0;
    height: 0;
    margin-left: 2px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #fff;
}

.youtube-preview-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.youtube-preview-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, .05), rgba(17, 24, 39, .34));
}

.youtube-preview-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 78px;
    height: 54px;
    border-radius: 16px;
    background: #e71717;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
    transform: translate(-50%, -50%);
}

.youtube-preview-play i {
    position: absolute;
    left: 31px;
    top: 15px;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid #fff;
}

.youtube-result-title,
.youtube-preview-card > strong {
    color: #101828;
    font-size: 18px;
    font-weight: 850;
    line-height: 1.25;
}

.youtube-result-text,
.youtube-preview-card > small {
    margin: 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.55;
}

.youtube-result-text.is-empty {
    color: #98a2b3;
}

.youtube-result-title[data-youtube-inline],
.youtube-result-text[data-youtube-inline],
.youtube-result-button [data-youtube-inline],
.youtube-inline-url {
    outline: none;
}

.youtube-result-title[data-youtube-inline]:focus,
.youtube-result-text[data-youtube-inline]:focus,
.youtube-result-button [data-youtube-inline]:focus,
.youtube-inline-url:focus {
    box-shadow: 0 0 0 3px rgba(40, 99, 255, .13);
    border-radius: 7px;
}

[data-youtube-inline].is-empty::before {
    content: attr(data-placeholder);
    color: #98a2b3;
}

[data-youtube-inline].is-empty:not(:empty)::before {
    content: none;
}

.youtube-result-button [data-youtube-inline].is-empty::before {
    color: rgba(255, 255, 255, .78);
}

.youtube-result-button [data-youtube-inline].is-empty {
    min-width: 92px;
    text-align: center;
}

.youtube-result-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 18px;
    border-radius: 9px;
    background: #ef1616;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 850;
}

.youtube-result-button i {
    font-style: normal;
    font-size: 20px;
    line-height: 1;
}

.youtube-result-button [data-youtube-inline] {
    min-width: 80px;
}

.youtube-inline-url {
    min-height: 40px;
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #f8fafc;
    color: #101828;
    font-size: 14px;
    word-break: break-all;
}

.youtube-inline-url:focus {
    border-color: #2863ff;
    background: #fff;
}

.youtube-preview-card.is-empty {
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
}

.youtube-preview-card.is-empty strong,
.youtube-preview-card.is-empty small {
    grid-column: 2;
}

.youtube-preview-card.is-empty .youtube-inline-url {
    grid-column: 1 / -1;
}

.youtube-empty-thumb {
    grid-row: 1 / span 2;
    width: 76px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #111827, #344054);
    color: #fff;
    font-size: 20px;
}

.selection-format-toolbar {
    position: absolute;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    box-shadow: 0 18px 45px rgba(16, 24, 40, .28);
    user-select: none;
}

.selection-format-toolbar[hidden] {
    display: none;
}

.selection-format-toolbar::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 12px;
    height: 12px;
    background: #111827;
    transform: translateX(-50%) rotate(45deg);
}

.selection-format-toolbar button {
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.selection-format-toolbar button:hover,
.selection-format-toolbar button:focus-visible {
    background: rgba(255, 255, 255, .13);
    outline: none;
}

.selection-format-toolbar > span {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, .16);
}

.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,
    .contacts-kpi-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-overview-grid,
    .profile-activity-layout,
    .profile-consent-grid,
    .profile-consent-layout,
    .profile-segment-layout,
    .profile-suggest-grid,
    .profile-notes-layout,
    .dns-hostname-row,
    .newsletter-composer-grid,
    .studio-builder-layout,
    .two-field-row,
    .builder-block-settings,
    .account-grid {
        grid-template-columns: 1fr;
    }

    .smtp-top-grid,
    .smtp-layout,
    .smtp-config-grid {
        grid-template-columns: 1fr;
    }

    .contacts-topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .contacts-topbar-actions {
        justify-content: flex-start;
        min-width: 0;
        flex-wrap: wrap;
    }

    .contacts-search {
        min-width: min(100%, 520px);
        flex: 1 1 360px;
    }

    .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: 1120px) {
    .contacts-main-grid.is-form-open {
        grid-template-columns: 1fr;
    }

    .contacts-create-panel {
        position: static;
        order: -1;
    }
}

@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);
    }

    .nav-group {
        grid-column: 1 / -1;
    }

    .smtp-hero,
    .smtp-access-card,
    .billing-addon-card {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .billing-addon-card,
    .smtp-access-card {
        flex-direction: column;
    }

    .billing-addon-actions {
        justify-content: flex-start;
    }

    .smtp-detail-list,
    .smtp-inline-fields {
        grid-template-columns: 1fr;
    }

    .nav-sublist {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-left: 10px;
    }

    .topbar,
    .topbar-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .top-menu {
        width: 100%;
    }

    .search-shell {
        min-width: 0;
        width: 100%;
    }

    .metric-grid,
    .contacts-kpi-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;
    }

    .contacts-topbar-actions,
    .contacts-board-head,
    .contacts-table-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .contacts-search {
        min-width: 0;
        width: 100%;
    }

    .contacts-topbar-actions .button,
    .contacts-board-tools,
    .contacts-table-footer > div {
        width: 100%;
    }

    .contacts-topbar-actions .button,
    .contacts-board-tools > *,
    .contacts-table-footer select {
        justify-content: center;
    }

    .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-body {
        grid-template-columns: 1fr;
    }

    .block-command-sidebar {
        padding: 12px 14px 8px;
        border-right: 0;
        border-bottom: 1px solid #e3ebfb;
    }

    .block-command-sidebar small {
        display: none;
    }

    .block-command-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .block-command-tabs button {
        width: auto;
        min-height: 34px;
        flex: 0 0 auto;
        border-radius: 999px;
    }

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

    .block-command-controls {
        grid-template-columns: 1fr;
    }

    .block-command-search {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .block-command-search kbd {
        display: none;
    }

    .block-command-data-strip {
        grid-template-columns: 1fr;
    }

    .block-command-recommendations {
        gap: 6px;
    }

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

    .builder-block {
        margin-left: 0;
    }

    .builder-bottom-space {
        margin-left: 0;
        min-height: clamp(220px, 34vh, 420px);
    }

    .builder-block-rail {
        position: static;
        padding: 8px 10px 0;
    }

    .builder-insert-line {
        left: 0;
        right: 0;
    }

    .audio-preview-card {
        grid-template-columns: 1fr;
    }

    .main {
        padding: 16px;
    }
}
