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

/* Dashboard reference match pass */
.dashboard-command-body .app-shell {
    display: block;
    min-height: 100vh;
}

.dashboard-command-body .sidebar {
    display: none;
}

.dashboard-command-body .main {
    min-height: 100vh;
    padding: 0;
}

.dashboard-command-body .flash {
    margin: 10px 20px 0;
}

.dashboard-command-body .vs-dashboard {
    min-height: 100vh;
    padding: 16px 20px 18px;
    background:
        radial-gradient(circle at 73% 0%, rgba(55, 64, 184, .20), transparent 30%),
        radial-gradient(circle at 20% 3%, rgba(18, 112, 255, .13), transparent 24%),
        linear-gradient(180deg, #07111f 0%, #081120 48%, #060d18 100%);
    color: #e8efff;
}

.dashboard-command-body .vs-dashboard-top {
    grid-template-columns: minmax(260px, 1fr) minmax(360px, 548px) auto;
    gap: 12px;
    margin-bottom: 14px;
}

.dashboard-command-body .vs-dashboard-top .vs-dashboard-eyebrow {
    display: none;
}

.dashboard-command-body .vs-dashboard-top h1 {
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: -.015em;
}

.dashboard-command-body .vs-dashboard-top > div:first-child > span {
    display: block;
    margin-top: 3px;
    color: #a6b2ca;
    font-size: 11px;
    line-height: 1.25;
}

.dashboard-command-body .vs-dashboard-search {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 7px;
    background: rgba(8, 17, 32, .72);
    border-color: rgba(116, 133, 170, .20);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}

.dashboard-command-body .vs-dashboard-search input {
    font-size: 11px;
}

.dashboard-command-body .vs-dashboard-search::after {
    content: "⌘ K";
    color: #7f8ba5;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.dashboard-command-body .vs-dashboard-search span {
    width: 12px;
    height: 12px;
    border-width: 1.6px;
}

.dashboard-command-body .vs-dashboard-user {
    min-height: 36px;
    padding: 0 10px;
    border-radius: 7px;
    background: rgba(8, 17, 32, .72);
}

.dashboard-command-body .vs-dashboard-user button {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.dashboard-command-body .vs-dashboard-user button::before {
    width: 9px;
    height: 11px;
    margin-top: 7px;
    border-width: 1.5px;
}

.dashboard-command-body .vs-dashboard-user strong {
    position: relative;
    max-width: 170px;
    padding-left: 28px;
    font-size: 12px;
}

.dashboard-command-body .vs-dashboard-user strong::before {
    content: "";
    width: 21px;
    height: 21px;
    position: absolute;
    left: 0;
    top: 50%;
    border-radius: 6px;
    background:
        linear-gradient(135deg, #1a4cff, #38d6c2);
    transform: translateY(-50%);
    box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset;
}

.dashboard-command-body .vs-next-actions {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 97px;
    margin-bottom: 8px;
    padding: 10px 14px 12px;
    border-radius: 6px;
    background:
        linear-gradient(90deg, rgba(28, 34, 103, .58), rgba(11, 23, 48, .62)),
        rgba(6, 13, 28, .82);
    border-color: rgba(67, 91, 208, .34);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 18px 44px rgba(0,0,0,.22);
}

.dashboard-command-body .vs-next-actions::after {
    content: "×";
    position: absolute;
    right: 14px;
    top: 10px;
    color: #7583a0;
    font-size: 14px;
    line-height: 1;
}

.dashboard-command-body .vs-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dashboard-command-body .vs-section-title::before {
    content: "^";
    color: #7e8cff;
    font-size: 10px;
    font-weight: 900;
}

.dashboard-command-body .vs-section-title p {
    margin: 0;
    color: #aeb9d2;
    font-size: 10px;
    letter-spacing: .08em;
}

.dashboard-command-body .vs-section-title span {
    display: none;
}

.dashboard-command-body .vs-action-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.dashboard-command-body .vs-action-card {
    min-height: 58px;
    grid-template-columns: 42px minmax(0, 1fr) 104px;
    gap: 12px;
    padding: 8px 10px;
    border: 0;
    border-radius: 6px;
    background:
        radial-gradient(circle at 4% 50%, rgba(49, 69, 201, .22), transparent 42%),
        rgba(7, 15, 31, .42);
}

.dashboard-command-body .vs-action-card > span {
    width: 34px;
    height: 34px;
    border-radius: 7px;
}

.dashboard-command-body .vs-action-card strong {
    font-size: 12px;
    line-height: 1.25;
}

.dashboard-command-body .vs-action-card small {
    margin-top: 3px;
    font-size: 10px;
    line-height: 1.25;
}

.dashboard-command-body .vs-action-card a {
    min-height: 36px;
    padding: 0 10px;
    border-radius: 5px;
    background: linear-gradient(135deg, rgba(51, 63, 210, .96), rgba(31, 45, 150, .96));
    border-color: rgba(88, 102, 255, .48);
    color: #fff;
    font-size: 11px;
}

.dashboard-command-body .vs-filter-bar {
    grid-template-columns: 174px 164px 150px 160px minmax(220px, 1fr) 116px 114px;
    gap: 7px;
    margin-bottom: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.dashboard-command-body .vs-filter-bar label:not(.vs-toggle) {
    min-height: 37px;
    display: grid;
    grid-template-rows: 12px 1fr;
    gap: 0;
    padding: 6px 10px 5px;
    border: 1px solid rgba(106, 124, 162, .20);
    border-radius: 5px;
    background: rgba(7, 15, 31, .72);
    color: #7f8da9;
    font-size: 9px;
}

.dashboard-command-body .vs-filter-bar select {
    min-height: 16px;
    padding: 0 18px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #dce5f7;
    font-size: 11px;
}

.dashboard-command-body .vs-filter-bar button,
.dashboard-command-body .vs-toggle {
    min-height: 37px;
    border-radius: 5px;
    background: rgba(7, 15, 31, .72);
    border-color: rgba(106, 124, 162, .20);
    color: #dce5f7 !important;
    font-size: 11px;
}

.dashboard-command-body .vs-toggle {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 0 10px;
}

.dashboard-command-body .vs-command-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 9px;
    align-items: start;
}

.dashboard-command-body .vs-command-main {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0;
    display: grid;
    gap: 8px;
}

.dashboard-command-body .vs-kpi-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 7px;
    margin: 0;
}

.dashboard-command-body .vs-kpi-card {
    min-height: 85px;
    padding: 10px;
    border-radius: 6px;
    background:
        radial-gradient(circle at 92% 10%, rgba(79, 100, 228, .16), transparent 36%),
        rgba(8, 17, 32, .74);
    border-color: rgba(106, 124, 162, .19);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.dashboard-command-body .vs-kpi-card small {
    font-size: 10px;
    color: #a0abc1;
}

.dashboard-command-body .vs-kpi-card strong {
    font-size: 22px;
    letter-spacing: -.035em;
}

.dashboard-command-body .vs-kpi-card span {
    font-size: 10px;
    color: #7ef2a7;
}

.dashboard-command-body .vs-dashboard-grid {
    display: grid;
    grid-template-columns: 1.42fr .9fr .82fr 1fr;
    gap: 8px;
}

.dashboard-command-body .vs-panel {
    padding: 10px;
    border-radius: 6px;
    background: rgba(8, 17, 32, .74);
    border-color: rgba(106, 124, 162, .19);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 42px rgba(0,0,0,.20);
}

.dashboard-command-body .vs-panel-large {
    grid-column: span 2;
    min-height: 199px;
}

.dashboard-command-body .vs-campaign-table {
    grid-column: span 2;
    min-height: 199px;
}

.dashboard-command-body .vs-automation-panel {
    grid-column: span 1;
}

.dashboard-command-body .vs-insight-card,
.dashboard-command-body .vs-economy-card,
.dashboard-command-body .vs-audience-card {
    min-height: 185px;
}

.dashboard-command-body .vs-recommendation-panel,
.dashboard-command-body .vs-activity-panel {
    grid-column: span 2;
}

.dashboard-command-body .vs-panel-head {
    margin-bottom: 8px;
}

.dashboard-command-body .vs-dashboard-eyebrow {
    margin-bottom: 4px;
    font-size: 9px;
    letter-spacing: .08em;
}

.dashboard-command-body .vs-panel h2 {
    font-size: 13px;
    letter-spacing: -.015em;
}

.dashboard-command-body .vs-panel-head a,
.dashboard-command-body .vs-panel-link,
.dashboard-command-body .vs-insight-card a {
    min-height: 24px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: #8391ff;
    font-size: 10px;
}

.dashboard-command-body .vs-chart-shell {
    min-height: 156px;
    padding: 0;
    border-radius: 4px;
    background: transparent;
}

.dashboard-command-body .vs-chart-shell svg {
    height: 142px;
}

.dashboard-command-body .vs-chart-axis {
    padding: 0 2px;
    font-size: 9px;
}

.dashboard-command-body .vs-chart-line {
    stroke-width: 2.2;
}

.dashboard-command-body .vs-chart-legend {
    gap: 8px;
    font-size: 9px;
}

.dashboard-command-body .vs-table {
    gap: 4px;
}

.dashboard-command-body .vs-table-row {
    min-height: 24px;
    grid-template-columns: minmax(120px, 1.3fr) .65fr .42fr .42fr .62fr;
    gap: 8px;
    padding: 4px 6px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    font-size: 10px;
}

.dashboard-command-body .vs-table-row.head {
    min-height: 20px;
    color: #74829d;
    font-size: 8px;
}

.dashboard-command-body .vs-table-row strong {
    font-size: 10px;
}

.dashboard-command-body .vs-table-row small {
    margin-top: 1px;
    font-size: 8px;
}

.dashboard-command-body .vs-status {
    min-height: 18px;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 8px;
}

.dashboard-command-body .vs-attention-panel {
    min-height: 292px;
    gap: 7px;
    padding: 12px;
}

.dashboard-command-body .vs-attention-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.dashboard-command-body .vs-attention-head h2 {
    font-size: 12px;
}

.dashboard-command-body .vs-attention-head span,
.dashboard-command-body .vs-attention-item em {
    min-width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #d83455;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
}

.dashboard-command-body .vs-attention-item {
    min-height: 28px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 7px;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
}

.dashboard-command-body .vs-attention-item i {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: rgba(255, 177, 66, .14);
    position: relative;
}

.dashboard-command-body .vs-attention-item i::before {
    content: "!";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffb14a;
    font-size: 11px;
    font-weight: 900;
}

.dashboard-command-body .vs-attention-item.tone-red i {
    background: rgba(216, 52, 85, .15);
}

.dashboard-command-body .vs-attention-item.tone-red i::before {
    color: #ff5f7d;
}

.dashboard-command-body .vs-attention-item.tone-green i {
    background: rgba(82, 226, 198, .14);
}

.dashboard-command-body .vs-attention-item.tone-green i::before {
    content: "✓";
    color: #52e2c6;
}

.dashboard-command-body .vs-attention-item span {
    overflow: hidden;
    color: #dce5f7;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 750;
}

.dashboard-command-body .vs-automation-list {
    gap: 4px;
}

.dashboard-command-body .vs-automation-list article {
    grid-template-columns: minmax(108px, 1fr) auto auto;
    gap: 8px;
    padding: 5px 0;
    border: 0;
    border-bottom: 1px solid rgba(106, 124, 162, .10);
    border-radius: 0;
    background: transparent;
}

.dashboard-command-body .vs-automation-list strong,
.dashboard-command-body .vs-activity-list strong {
    font-size: 10px;
}

.dashboard-command-body .vs-automation-list small,
.dashboard-command-body .vs-activity-list small,
.dashboard-command-body .vs-activity-list time,
.dashboard-command-body .vs-economy-card span {
    font-size: 9px;
}

.dashboard-command-body .vs-flow-dots span {
    width: 13px;
    height: 13px;
    border-width: 1.6px;
}

.dashboard-command-body .vs-insight-card strong {
    margin: 10px 0 7px;
    font-size: 13px;
}

.dashboard-command-body .vs-insight-card p,
.dashboard-command-body .vs-economy-card p {
    font-size: 10px;
    line-height: 1.35;
}

.dashboard-command-body .vs-economy-card h2 {
    margin-top: 6px;
    font-size: 18px;
}

.dashboard-command-body .vs-economy-card div {
    gap: 3px;
    margin-top: 8px;
}

.dashboard-command-body .vs-economy-card span {
    padding: 5px 0;
}

.dashboard-command-body .vs-audience-bars {
    gap: 8px;
    margin-top: 10px;
}

.dashboard-command-body .vs-audience-bars strong {
    font-size: 9px;
}

.dashboard-command-body .vs-audience-bars i {
    height: 5px;
}

.dashboard-command-body .vs-recommendation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.dashboard-command-body .vs-recommendation-grid a {
    min-height: 104px;
    padding: 12px;
    border-radius: 6px;
}

.dashboard-command-body .vs-recommendation-grid strong {
    font-size: 12px;
}

.dashboard-command-body .vs-recommendation-grid span {
    font-size: 10px;
}

.dashboard-command-body .vs-activity-list {
    gap: 0;
}

.dashboard-command-body .vs-activity-list article {
    padding: 6px 0;
}

@media (max-width: 1100px) {
    .dashboard-command-body .vs-dashboard-top,
    .dashboard-command-body .vs-filter-bar,
    .dashboard-command-body .vs-command-grid,
    .dashboard-command-body .vs-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-command-body .vs-action-list,
    .dashboard-command-body .vs-kpi-grid,
    .dashboard-command-body .vs-recommendation-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-command-body .vs-panel-large,
    .dashboard-command-body .vs-campaign-table,
    .dashboard-command-body .vs-automation-panel,
    .dashboard-command-body .vs-recommendation-panel,
    .dashboard-command-body .vs-activity-panel {
        grid-column: auto;
    }
}

.dashboard-command-body {
    background: #07101d;
}

.dashboard-command-body .main {
    padding: 0;
    background:
        radial-gradient(circle at 72% 0%, rgba(111, 78, 255, .24), transparent 35%),
        radial-gradient(circle at 28% 8%, rgba(38, 143, 255, .18), transparent 34%),
        linear-gradient(180deg, #091323 0%, #080e1a 54%, #050914 100%);
}

.dashboard-command-body .flash {
    margin: 18px 24px 0;
}

.vs-dashboard {
    min-height: 100vh;
    padding: 24px;
    color: #eaf0ff;
    background:
        radial-gradient(circle at 85% 4%, rgba(123, 94, 255, .28), transparent 28%),
        radial-gradient(circle at 8% 0%, rgba(52, 182, 255, .18), transparent 25%),
        linear-gradient(180deg, rgba(12, 22, 40, .95), rgba(5, 10, 20, .98));
}

.vs-dashboard a {
    text-decoration: none;
}

.vs-dashboard-top {
    display: grid;
    grid-template-columns: minmax(260px, .9fr) minmax(320px, 1.1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.vs-dashboard-eyebrow,
.vs-section-title p {
    margin: 0 0 5px;
    color: #8ea0c6;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.vs-dashboard-top h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -.05em;
}

.vs-dashboard-top > div:first-child > span,
.vs-section-title span {
    color: #9aa8c4;
    font-size: 13px;
    font-weight: 650;
}

.vs-dashboard-search {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 17px;
    border: 1px solid rgba(128, 146, 188, .22);
    border-radius: 18px;
    background: rgba(255,255,255,.07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 24px 60px rgba(0,0,0,.22);
    backdrop-filter: blur(18px);
}

.vs-dashboard-search span {
    width: 14px;
    height: 14px;
    position: relative;
    border: 2px solid #9aa8c4;
    border-radius: 50%;
}

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

.vs-dashboard-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.vs-dashboard-search input::placeholder {
    color: #7d8ba9;
}

.vs-dashboard-user {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid rgba(128, 146, 188, .18);
    border-radius: 18px;
    background: rgba(255,255,255,.07);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}

.vs-dashboard-user button {
    width: 38px;
    height: 38px;
    position: relative;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: rgba(255,255,255,.08);
    cursor: pointer;
}

.vs-dashboard-user button::before {
    content: "";
    width: 12px;
    height: 15px;
    display: block;
    margin: 9px auto 0;
    border: 2px solid #dce6ff;
    border-bottom: 0;
    border-radius: 8px 8px 4px 4px;
}

.vs-dashboard-user button span {
    min-width: 16px;
    height: 16px;
    position: absolute;
    right: -4px;
    top: -4px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ff4d7d;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.vs-dashboard-user strong {
    max-width: 185px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.vs-next-actions,
.vs-filter-bar,
.vs-panel,
.vs-kpi-card {
    border: 1px solid rgba(129, 149, 190, .18);
    background:
        linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.045)),
        rgba(9, 16, 31, .72);
    box-shadow: 0 26px 80px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(20px);
}

.vs-next-actions {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 24px;
    margin-bottom: 14px;
}

.vs-action-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.vs-action-card {
    min-height: 96px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 13px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    background: rgba(255,255,255,.05);
}

.vs-action-card > span {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    background: linear-gradient(135deg, #5b8cff, #52e2c6);
    box-shadow: 0 14px 34px rgba(73, 135, 255, .24);
}

.vs-action-card.tone-purple > span {
    background: linear-gradient(135deg, #8b6dff, #df77ff);
}

.vs-action-card.tone-amber > span {
    background: linear-gradient(135deg, #ffbd63, #ff6f91);
}

.vs-action-card strong,
.vs-action-card small {
    display: block;
}

.vs-action-card strong {
    color: #fff;
    font-size: 13px;
}

.vs-action-card small {
    margin-top: 4px;
    color: #9aa8c4;
    font-size: 12px;
    line-height: 1.35;
}

.vs-action-card a,
.vs-panel-head a,
.vs-panel-link,
.vs-insight-card a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid rgba(129, 166, 255, .34);
    border-radius: 999px;
    background: rgba(88, 130, 255, .14);
    color: #dfe8ff;
    font-size: 12px;
    font-weight: 850;
}

.vs-filter-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr)) minmax(250px, auto) auto auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.vs-filter-bar label {
    display: grid;
    gap: 6px;
    color: #8797ba;
    font-size: 11px;
    font-weight: 850;
}

.vs-filter-bar select,
.vs-filter-bar button {
    min-height: 38px;
    border: 1px solid rgba(129, 149, 190, .22);
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    color: #edf3ff;
    outline: 0;
    font-weight: 800;
}

.vs-filter-bar select {
    padding: 0 34px 0 12px;
}

.vs-filter-bar select option {
    color: #111827;
}

.vs-filter-bar button {
    padding: 0 14px;
    cursor: pointer;
}

.vs-toggle {
    min-height: 38px;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(129, 149, 190, .18);
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    color: #d7e0f5 !important;
}

.vs-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.vs-toggle span {
    width: 34px;
    height: 19px;
    position: relative;
    border-radius: 999px;
    background: #24314d;
}

.vs-toggle span::after {
    content: "";
    width: 15px;
    height: 15px;
    position: absolute;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    background: #90a0bd;
    transition: transform .18s ease, background .18s ease;
}

.vs-toggle input:checked + span {
    background: rgba(82, 226, 198, .28);
}

.vs-toggle input:checked + span::after {
    transform: translateX(15px);
    background: #52e2c6;
}

.vs-kpi-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.vs-kpi-card {
    min-height: 122px;
    display: grid;
    align-content: space-between;
    gap: 8px;
    padding: 16px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.vs-kpi-card::after {
    content: "";
    width: 110px;
    height: 110px;
    position: absolute;
    right: -54px;
    top: -54px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(91,140,255,.34), transparent 68%);
}

.vs-kpi-card small,
.vs-kpi-card span {
    color: #8fa0c3;
    font-size: 12px;
    font-weight: 800;
}

.vs-kpi-card strong {
    color: #fff;
    font-size: clamp(23px, 2.1vw, 33px);
    letter-spacing: -.045em;
}

.vs-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(420px, .95fr) minmax(260px, .55fr);
    gap: 14px;
    align-items: start;
}

.vs-panel {
    min-width: 0;
    padding: 18px;
    border-radius: 24px;
}

.vs-panel-large,
.vs-automation-panel,
.vs-recommendation-panel,
.vs-activity-panel {
    grid-column: span 1;
}

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

.vs-panel h2 {
    margin: 0;
    color: #fff;
    font-size: 19px;
    letter-spacing: -.03em;
}

.vs-chart-legend {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: #9aa8c4;
    font-size: 12px;
    font-weight: 850;
}

.vs-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vs-chart-legend i,
.vs-activity-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
}

.vs-chart-legend i.open {
    background: #76a7ff;
}

.vs-chart-legend i.click {
    background: #ff6b9e;
}

.vs-chart-shell {
    min-height: 286px;
    padding: 10px 4px 0;
    border-radius: 18px;
    background:
        radial-gradient(circle at 65% 14%, rgba(91,140,255,.16), transparent 35%),
        rgba(0,0,0,.12);
}

.vs-chart-shell svg {
    width: 100%;
    height: 236px;
    display: block;
}

.vs-chart-grid line {
    stroke: rgba(150, 169, 211, .13);
    stroke-width: 1;
}

.vs-chart-area {
    fill: url(#vsOpenFill);
}

.vs-chart-line {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,.28));
}

.vs-chart-line.open {
    stroke: #79a9ff;
}

.vs-chart-line.click {
    stroke: #ff6b9e;
}

.vs-chart-axis {
    display: flex;
    justify-content: space-between;
    padding: 0 8px;
    color: #7485a8;
    font-size: 11px;
    font-weight: 800;
}

.vs-campaign-table {
    min-height: 344px;
}

.vs-table {
    display: grid;
    gap: 8px;
}

.vs-table-row {
    display: grid;
    grid-template-columns: minmax(170px, 1.4fr) .7fr .45fr .45fr .7fr;
    gap: 10px;
    align-items: center;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    color: #dce6ff;
}

.vs-table-row.head {
    min-height: 32px;
    background: transparent;
    border-color: transparent;
    color: #7889aa;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.vs-table-row strong,
.vs-table-row small {
    display: block;
}

.vs-table-row strong {
    overflow: hidden;
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.vs-table-row small {
    margin-top: 4px;
    color: #8292b2;
    font-size: 11px;
}

.vs-status {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(126, 144, 178, .16);
    color: #cbd6ee;
    font-style: normal;
    font-size: 11px;
    font-weight: 900;
}

.vs-status.status-sent,
.vs-status.status-active {
    background: rgba(82, 226, 198, .16);
    color: #79f2dc;
}

.vs-status.status-draft,
.vs-status.status-paused {
    background: rgba(255, 189, 99, .16);
    color: #ffd08c;
}

.vs-status.status-scheduled,
.vs-status.status-approved {
    background: rgba(121, 169, 255, .16);
    color: #a9c6ff;
}

.vs-attention-panel {
    display: grid;
    gap: 10px;
}

.vs-attention-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 2px 11px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px;
    background: rgba(255,255,255,.04);
}

.vs-attention-item strong {
    grid-row: span 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(121,169,255,.16);
    color: #fff;
    font-size: 20px;
}

.vs-attention-item span {
    color: #fff;
    font-size: 13px;
    font-weight: 850;
}

.vs-attention-item small {
    color: #8fa0c1;
    font-size: 11px;
    font-weight: 700;
}

.vs-attention-item.tone-red strong {
    background: rgba(255, 77, 125, .18);
    color: #ff9ab7;
}

.vs-attention-item.tone-amber strong {
    background: rgba(255, 189, 99, .17);
    color: #ffd08c;
}

.vs-attention-item.tone-green strong {
    background: rgba(82, 226, 198, .15);
    color: #79f2dc;
}

.vs-automation-panel,
.vs-recommendation-panel,
.vs-activity-panel {
    grid-column: span 2;
}

.vs-automation-list {
    display: grid;
    gap: 9px;
}

.vs-automation-list article {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px;
    background: rgba(255,255,255,.04);
}

.vs-automation-list strong,
.vs-automation-list small {
    display: block;
}

.vs-automation-list strong {
    color: #fff;
    font-size: 13px;
}

.vs-automation-list small {
    margin-top: 4px;
    color: #8fa0c3;
    font-size: 12px;
}

.vs-flow-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vs-flow-dots span {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(121, 169, 255, .65);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(121,169,255,.06);
}

.vs-flow-dots span:nth-child(2) {
    border-color: rgba(82, 226, 198, .68);
}

.vs-flow-dots span:nth-child(3) {
    border-color: rgba(255, 107, 158, .7);
}

.vs-flow-dots span:nth-child(4) {
    border-color: rgba(255, 189, 99, .72);
}

.vs-insight-card,
.vs-economy-card,
.vs-audience-card {
    min-height: 258px;
}

.vs-insight-card strong {
    display: block;
    margin: 18px 0 10px;
    color: #fff;
    font-size: 22px;
    letter-spacing: -.035em;
}

.vs-insight-card p,
.vs-economy-card p {
    color: #9aa8c4;
    line-height: 1.5;
}

.vs-economy-card h2 {
    margin-top: 8px;
    font-size: 34px;
}

.vs-economy-card div {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.vs-economy-card span {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-top: 1px solid rgba(255,255,255,.07);
    color: #9aa8c4;
    font-size: 12px;
    font-weight: 750;
}

.vs-economy-card strong {
    color: #fff;
}

.vs-audience-bars {
    display: grid;
    gap: 13px;
    margin-top: 18px;
}

.vs-audience-bars span,
.vs-audience-bars strong {
    display: grid;
    gap: 7px;
}

.vs-audience-bars strong {
    grid-template-columns: 1fr auto;
    color: #fff;
    font-size: 12px;
}

.vs-audience-bars em {
    color: #8fa0c3;
    font-style: normal;
}

.vs-audience-bars i {
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
}

.vs-audience-bars i::after {
    content: "";
    width: var(--width);
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #52e2c6, #79a9ff, #ff6b9e);
}

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

.vs-recommendation-grid a {
    min-height: 142px;
    display: grid;
    align-content: end;
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 14%, rgba(255,255,255,.18), transparent 34%),
        linear-gradient(135deg, rgba(83, 110, 255, .86), rgba(65, 203, 192, .66));
    overflow: hidden;
}

.vs-recommendation-grid a:nth-child(2) {
    background:
        radial-gradient(circle at 80% 14%, rgba(255,255,255,.18), transparent 34%),
        linear-gradient(135deg, rgba(255, 107, 158, .78), rgba(141, 104, 255, .70));
}

.vs-recommendation-grid a:nth-child(3) {
    background:
        radial-gradient(circle at 80% 14%, rgba(255,255,255,.18), transparent 34%),
        linear-gradient(135deg, rgba(255, 189, 99, .82), rgba(239, 91, 116, .68));
}

.vs-recommendation-grid strong,
.vs-recommendation-grid span {
    display: block;
}

.vs-recommendation-grid strong {
    font-size: 16px;
}

.vs-recommendation-grid span {
    max-width: 36ch;
    color: rgba(255,255,255,.78);
    font-size: 12px;
    line-height: 1.45;
}

.vs-activity-list {
    display: grid;
    gap: 8px;
}

.vs-activity-list article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.vs-activity-list article:last-child {
    border-bottom: 0;
}

.vs-activity-dot {
    background: #79a9ff;
    box-shadow: 0 0 0 5px rgba(121,169,255,.12);
}

.vs-activity-dot.type-clicked,
.vs-activity-dot.type-smart_link_click,
.vs-activity-dot.type-recommendation_clicked {
    background: #ff6b9e;
    box-shadow: 0 0 0 5px rgba(255,107,158,.12);
}

.vs-activity-dot.type-booking_completed,
.vs-activity-dot.type-conversion,
.vs-activity-dot.type-purchase {
    background: #52e2c6;
    box-shadow: 0 0 0 5px rgba(82,226,198,.12);
}

.vs-activity-list strong,
.vs-activity-list small {
    display: block;
}

.vs-activity-list strong {
    color: #fff;
    font-size: 13px;
}

.vs-activity-list small,
.vs-activity-list time,
.vs-empty-state {
    color: #8fa0c3;
    font-size: 12px;
    font-weight: 750;
}

.vs-activity-list time {
    white-space: nowrap;
}

.vs-empty-state {
    padding: 16px;
    border: 1px dashed rgba(145, 162, 202, .28);
    border-radius: 16px;
    text-align: center;
}

@media (max-width: 1500px) {
    .vs-dashboard-grid {
        grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr);
    }

    .vs-attention-panel {
        grid-column: span 2;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .vs-attention-panel > div:first-child,
    .vs-attention-panel .vs-panel-link {
        grid-column: 1 / -1;
    }

    .vs-insight-card,
    .vs-economy-card,
    .vs-audience-card {
        min-height: 220px;
    }
}

@media (max-width: 1240px) {
    .vs-dashboard-top,
    .vs-next-actions,
    .vs-filter-bar,
    .vs-kpi-grid,
    .vs-dashboard-grid,
    .vs-recommendation-grid {
        grid-template-columns: 1fr;
    }

    .vs-action-list {
        grid-template-columns: 1fr;
    }

    .vs-automation-panel,
    .vs-recommendation-panel,
    .vs-activity-panel,
    .vs-attention-panel {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    .vs-dashboard {
        padding: 16px;
    }

    .vs-action-card,
    .vs-automation-list article,
    .vs-activity-list article {
        grid-template-columns: 1fr;
    }

    .vs-table {
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .vs-table-row {
        min-width: 720px;
    }
}

* {
    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;
}

.automation-builder-shell .main {
    padding: 0;
    background: #f7f9fc;
}

.automation-builder-shell .topbar {
    display: none;
}

.automation-builder-body .flash {
    margin: 12px 16px;
}

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

.review-delivery-card .review-publish-body.single {
    gap: 16px;
}

.review-delivery-shell {
    display: grid;
    gap: 16px;
}

.review-delivery-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border: 1px solid #dbe5f1;
    border-radius: 999px;
    background: #f8fbff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
}

.review-delivery-option {
    appearance: none;
    border: 0;
    background: transparent;
    color: #475467;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 11px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.review-delivery-option.active {
    background: linear-gradient(180deg, #ffffff 0%, #edf4ff 100%);
    color: #1246b5;
    box-shadow: 0 8px 18px rgba(40, 99, 255, .14);
}

.review-delivery-copy {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border: 1px solid #dbe5f1;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.review-delivery-copy strong {
    color: #101828;
    font-size: 14px;
    font-weight: 800;
}

.review-delivery-copy p {
    margin: 0;
    color: #475467;
    font-size: 13px;
    line-height: 1.55;
}

.review-delivery-schedule {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid #dbe5f1;
    border-radius: 18px;
    background: #f8fbff;
}

.review-delivery-schedule label {
    display: grid;
    gap: 8px;
}

.review-delivery-schedule span {
    color: #344054;
    font-size: 12px;
    font-weight: 700;
}

.review-delivery-schedule input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    background: #ffffff;
    color: #101828;
    font: inherit;
    font-size: 14px;
    padding: 0 14px;
}

.review-delivery-schedule input.is-invalid {
    border-color: #f04438;
    box-shadow: 0 0 0 3px rgba(240, 68, 56, .12);
}

.review-delivery-schedule small {
    color: #667085;
    font-size: 12px;
    line-height: 1.5;
}

.review-delivery-footer {
    justify-content: space-between;
}

.review-delivery-footer .mini-button {
    min-width: 132px;
}

.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-login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% -10%, rgba(40, 99, 255, .13), transparent 32%),
        radial-gradient(circle at 10% 20%, rgba(99, 167, 255, .12), transparent 28%),
        linear-gradient(180deg, #f7fbff 0%, #eef5ff 50%, #e8f0fb 100%);
}

.auth-login-shell {
    min-height: 100vh;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 30px 18px;
    background: transparent;
}

.auth-login-card {
    position: relative;
    width: min(100%, 598px);
    min-height: auto;
    display: grid;
    gap: 22px;
    padding: 48px 52px 28px;
    border: 1px solid rgba(214, 226, 245, .92);
    border-radius: 0 0 28px 28px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 30px 80px rgba(39, 77, 134, .18);
    overflow: hidden;
}

.auth-login-topline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #1768ff, #3683ff);
}

.auth-login-card .flash {
    margin-top: 2px;
}

.auth-login-heading {
    display: grid;
    justify-items: center;
    gap: 9px;
    text-align: center;
}

.auth-login-logo {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    border: 1px solid #dbe8fa;
    border-radius: 999px;
    background: linear-gradient(180deg, #f4f8ff, #eaf3ff);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}

.auth-login-logo span {
    width: 32px;
    display: grid;
    gap: 4px;
}

.auth-login-logo i {
    height: 6px;
    display: block;
    border-radius: 999px;
    background: linear-gradient(135deg, #1768ff, #3c8aff);
}

.auth-login-logo i:nth-child(1) {
    width: 16px;
    margin-left: auto;
}

.auth-login-logo i:nth-child(2) {
    width: 30px;
}

.auth-login-logo i:nth-child(3) {
    width: 6px;
    box-shadow: 12px 0 #2c7dff, 24px 0 #2c7dff;
}

.auth-login-heading h2 {
    margin: 0;
    color: #15233e;
    font-size: clamp(31px, 5vw, 38px);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.auth-login-heading p {
    max-width: 440px;
    margin: 0;
    color: #7888a3;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 750;
}

.auth-login-form {
    gap: 14px;
    margin-top: 8px;
}

.auth-input-label {
    gap: 9px;
    color: #25344f;
    font-size: 14px;
    font-weight: 950;
}

.auth-input-shell {
    position: relative;
    display: block;
}

.auth-input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
    color: #7284a2;
    font-size: 21px;
    line-height: 1;
    pointer-events: none;
}

.auth-input-shell input {
    min-height: 66px;
    padding: 18px 18px 18px 58px;
    border: 2px solid #c9daf3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(39, 77, 134, .08), inset 0 1px 0 rgba(255,255,255,.8);
    color: #1b2941;
    font-size: 18px;
    font-weight: 800;
}

.auth-input-shell input::placeholder {
    color: #9ba8ba;
    font-weight: 750;
}

.auth-input-shell input:focus {
    border-color: #2e78ff;
    box-shadow: 0 0 0 4px rgba(46, 120, 255, .13), 0 11px 26px rgba(39, 77, 134, .12);
}

.auth-continue-button {
    min-height: 66px;
    gap: 10px;
    margin-top: 6px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(90deg, #1768ff, #3385ff);
    box-shadow: 0 18px 34px rgba(40, 99, 255, .28);
    font-size: 17px;
    font-weight: 950;
}

.auth-continue-button span {
    font-size: 18px;
    transform: translateY(1px);
}

.auth-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 8px;
}

.auth-remember-email {
    display: inline-flex;
    grid-template-columns: none;
    align-items: center;
    gap: 10px;
    color: #5f6f87;
    font-size: 13px;
    font-weight: 850;
}

.auth-remember-email input {
    width: 22px;
    min-height: 22px;
    accent-color: #2863ff;
    border-radius: 6px;
}

.auth-login-options a,
.auth-signup-callout a {
    color: #2863ff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
}

.auth-login-divider {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    margin: 8px 0 6px;
    color: #8b9ab0;
    font-size: 13px;
    font-weight: 850;
}

.auth-login-divider::before,
.auth-login-divider::after {
    content: "";
    height: 1px;
    background: #e2eaf5;
}

.auth-social-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.auth-social-grid button {
    min-height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #dbe5f3;
    border-radius: 14px;
    background: #fff;
    color: #263754;
    box-shadow: 0 9px 20px rgba(39, 77, 134, .04);
    font-size: 14px;
    font-weight: 950;
    cursor: not-allowed;
    opacity: .82;
}

.auth-social-grid span {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 950;
}

.auth-provider-apple {
    color: #000;
}

.auth-provider-google {
    color: #1a73e8;
}

.auth-provider-microsoft {
    color: #f25022;
    text-shadow: 9px 0 #7fba00, 0 9px #00a4ef, 9px 9px #ffb900;
}

.auth-signup-callout {
    min-height: 90px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-top: 16px;
    padding: 18px 20px;
    border: 1px solid #dfe9f7;
    border-radius: 16px;
    background: #f5f9ff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

.auth-signup-callout > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #e8f1ff;
    color: #2863ff;
    font-size: 22px;
    font-weight: 950;
}

.auth-signup-callout strong {
    display: block;
    color: #263754;
    font-size: 16px;
}

.auth-signup-callout p {
    margin: 4px 0 0;
    color: #7a8aa2;
    font-size: 14px;
    font-weight: 750;
}

.auth-login-secure {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #8796ad;
}

.auth-login-secure > span {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border: 2px solid #a7b5c9;
    border-radius: 5px;
    color: transparent;
}

.auth-login-secure small {
    font-size: 12px;
    font-weight: 850;
}

.auth-login-secure strong {
    color: #2863ff;
}

.auth-login-card .auth-legal-links {
    justify-content: center;
    margin: 0;
    gap: 14px;
    color: #8c99ab;
    font-size: 12px;
}

.auth-login-card .auth-legal-links a {
    color: #8c99ab;
}

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

@media (min-width: 1181px) {
    .bee-nav-shell {
        padding: 0;
        background: linear-gradient(180deg, rgba(242, 247, 255, .96), rgba(242, 247, 255, .70));
        border-bottom: 0;
        box-shadow: none;
        backdrop-filter: blur(18px);
    }

    .bee-nav-wrap {
        width: 100%;
        min-height: 66px;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 32px;
        padding: 0 30px;
        border: 0;
        border-bottom: 1px solid rgba(217, 226, 242, .84);
        border-radius: 0;
        background: rgba(255,255,255,.94);
        box-shadow: 0 12px 34px rgba(31, 66, 135, .10);
        backdrop-filter: blur(18px);
    }

    .bee-brand {
        display: inline-flex;
        gap: 10px;
        color: #10245f;
        font-size: 21px;
        font-weight: 950;
    }

    .bee-brand-mark {
        width: 34px;
        height: 34px;
        gap: 3px;
        padding: 7px 6px;
        border-radius: 10px;
        background: linear-gradient(135deg, #0d47d9, #63a7ff);
        box-shadow: 0 12px 24px rgba(40, 99, 255, .22);
    }

    .bee-brand-mark i {
        height: 4px;
    }

    .bee-menu {
        justify-content: flex-start;
        gap: 28px;
        margin-left: 0;
    }

    .bee-menu > a,
    .bee-menu-item > a {
        position: relative;
        min-height: 66px;
        padding: 0;
        border-radius: 0;
        background: transparent;
        color: #243a73;
        font-size: 14px;
        font-weight: 900;
        box-shadow: none;
    }

    .bee-menu > a::after,
    .bee-menu-item > a::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -1px;
        height: 3px;
        border-radius: 999px 999px 0 0;
        background: #2863ff;
        opacity: 0;
        transform: scaleX(.64);
        transition: opacity .16s ease, transform .16s ease;
    }

    .bee-menu > a:hover,
    .bee-menu-item:hover > a,
    .bee-menu-item:focus-within > a,
    .bee-menu > a.is-active,
    .bee-menu-item > a.is-active {
        color: #2863ff;
        background: transparent;
    }

    .bee-menu > a:hover::after,
    .bee-menu-item:hover > a::after,
    .bee-menu-item:focus-within > a::after,
    .bee-menu > a.is-active::after,
    .bee-menu-item > a.is-active::after {
        opacity: 1;
        transform: scaleX(1);
    }

    .bee-menu-item > a span {
        color: currentColor;
        font-size: 13px;
        transform: translateY(1px);
    }

    .bee-menu-item::after {
        top: 61px;
    }

    .bee-mega {
        top: calc(100% + 11px);
    }

    .bee-nav-actions {
        position: relative;
        gap: 20px;
        align-items: center;
    }

    .bee-nav-actions::before {
        content: "";
        width: 1px;
        height: 36px;
        margin-right: 1px;
        background: #e5ecf7;
    }

    .bee-language-summary {
        min-height: 46px;
        padding: 0 13px;
        border: 1px solid #dce5f3;
        border-radius: 999px;
        background: #fbfdff;
        color: #243a73;
        box-shadow: none;
    }

    .bee-language-summary:hover {
        border-color: #ccd9ee;
        background: #fff;
    }

    .bee-nav-actions > a:not(.bee-signup-link) {
        min-height: 46px;
        padding: 0 10px;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #243a73;
        box-shadow: none;
    }

    .bee-nav-actions > a:not(.bee-signup-link):hover {
        color: #2863ff;
        background: transparent;
    }

    .bee-nav-actions .bee-signup-link {
        min-width: 208px;
        min-height: 52px;
        justify-content: space-between;
        gap: 18px;
        padding: 0 10px 0 26px;
        border: 0;
        border-radius: 999px;
        background: linear-gradient(135deg, #1f63ff, #4b91ff);
        color: #fff;
        box-shadow: 0 14px 28px rgba(31, 99, 255, .26);
    }

    .bee-nav-actions .bee-signup-link::after {
        content: "→";
        width: 32px;
        height: 32px;
        display: inline-grid;
        place-items: center;
        flex: 0 0 32px;
        border-radius: 999px;
        background: rgba(255,255,255,.18);
        color: #fff;
        font-size: 16px;
        font-weight: 950;
    }
}

.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-hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 52px;
    border-bottom: 0;
    background:
        radial-gradient(circle at 84% 7%, rgba(39, 116, 255, .36), transparent 28%),
        radial-gradient(circle at 18% 34%, rgba(33, 102, 240, .20), transparent 30%),
        radial-gradient(circle at 60% 100%, rgba(16, 185, 129, .10), transparent 30%),
        linear-gradient(145deg, #031021 0%, #061830 48%, #07111f 100%);
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at 70% 25%, #000, transparent 68%);
    pointer-events: none;
}

.landing-hero-orbit {
    position: absolute;
    width: 310px;
    height: 160px;
    border: 1px dashed rgba(88, 155, 255, .42);
    border-radius: 999px;
    pointer-events: none;
}

.landing-hero-orbit-a {
    right: -86px;
    top: 120px;
    transform: rotate(31deg);
}

.landing-hero-orbit-b {
    right: 360px;
    top: 292px;
    transform: rotate(-25deg);
}

.landing-hero-grid,
.landing-audience-strip,
.landing-hero-feature-head,
.landing-hero-feature-grid,
.landing-hero-final-cta {
    position: relative;
    z-index: 1;
}

.landing-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(470px, 560px);
    gap: 38px;
    align-items: center;
}

.landing-hero-copy {
    position: relative;
    z-index: 7;
    gap: 19px;
}

.landing-proof-pill {
    padding: 9px 16px;
    border-color: rgba(103, 156, 255, .26);
    background: rgba(19, 45, 87, .82);
    color: #f1f7ff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 12px 26px rgba(0,0,0,.16);
    font-size: 13px;
}

.landing-proof-pill span {
    color: #7caeff;
    letter-spacing: .16em;
}

.landing-proof-pill em {
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #e03d4f;
    color: #fff;
    font-style: normal;
    font-size: 11px;
    line-height: 1;
}

.landing-hero h1 {
    max-width: 610px;
    font-size: clamp(44px, 5.4vw, 62px);
    line-height: 1.08;
    letter-spacing: -.045em;
    text-shadow: 0 12px 34px rgba(0,0,0,.18);
}

.landing-hero h1 span {
    color: #2f74ff;
}

.landing-hero h1 span::after {
    content: none;
}

.landing-hero-copy > p {
    max-width: 580px;
    color: #d6e1f0;
    font-size: 19px;
    line-height: 1.48;
    font-weight: 650;
}

.landing-hero-checks {
    display: grid;
    gap: 13px;
    margin: 5px 0 9px;
    color: #f6faff;
    font-size: 15px;
    font-weight: 850;
}

.landing-hero-checks span {
    display: flex;
    align-items: center;
    gap: 11px;
}

.landing-hero-checks span::before {
    content: "✓";
    width: 23px;
    height: 23px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 23px;
    border: 1px solid rgba(79, 148, 255, .70);
    border-radius: 999px;
    color: #7fb4ff;
    background: rgba(39, 99, 255, .10);
    font-size: 13px;
    font-weight: 950;
}

.landing-cta-row {
    gap: 16px;
    margin-top: 5px;
}

.landing-primary-cta,
.landing-secondary-cta {
    min-height: 58px;
    min-width: 202px;
    border-radius: 13px;
    font-size: 16px;
}

.landing-primary-cta {
    background: linear-gradient(135deg, #1370ff, #2368ff 56%, #0e50e5);
    box-shadow: 0 18px 38px rgba(26, 103, 255, .42);
}

.landing-primary-cta span {
    margin-left: 5px;
    font-size: 24px;
}

.landing-secondary-cta {
    border-color: rgba(198, 216, 255, .66);
    color: #fff;
    background: rgba(9, 25, 52, .54);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.landing-trust-row {
    gap: 13px 20px;
    margin-top: 3px;
    color: #f4f8ff;
    font-size: 12px;
}

.landing-trust-row span {
    display: inline-flex;
    align-items: center;
}

.landing-trust-row span::before {
    content: "✓";
    width: 17px;
    height: 17px;
    display: inline-grid;
    place-items: center;
    margin-right: 7px;
    background: rgba(30, 178, 111, .20);
    color: #45d98d;
    font-size: 11px;
    font-weight: 950;
}

.landing-product-demo {
    width: min(100%, 560px);
    justify-self: end;
    z-index: 2;
    min-height: 565px;
    overflow: visible;
    border-color: rgba(90, 151, 255, .42);
    border-radius: 20px;
    background:
        radial-gradient(circle at 76% 12%, rgba(67, 150, 255, .20), transparent 26%),
        radial-gradient(circle at 13% 72%, rgba(37, 221, 186, .12), transparent 28%),
        linear-gradient(180deg, rgba(7,18,40,.99), rgba(9,24,49,.95));
    box-shadow: 0 36px 90px rgba(0,0,0,.42), 0 0 0 1px rgba(95, 163, 255, .12) inset, 0 0 46px rgba(45, 119, 255, .16);
    transform: translateX(10px) rotate(3deg);
    transform-origin: center center;
}

.landing-product-demo::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(111, 166, 255, .9), rgba(35, 88, 210, .06) 48%, rgba(95, 206, 255, .35));
    z-index: -1;
}

.demo-paper-plane {
    position: absolute;
    right: -21px;
    top: -48px;
    width: 61px;
    height: 61px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #1d72ff, #4694ff);
    color: #fff;
    box-shadow: 0 0 0 8px rgba(48, 123, 255, .15), 0 18px 32px rgba(20, 98, 255, .38);
    font-size: 31px;
    transform: rotate(-25deg);
    z-index: 5;
}

.demo-connectors {
    position: absolute;
    inset: -56px -74px -46px -20px;
    width: calc(100% + 94px);
    height: calc(100% + 102px);
    overflow: visible;
    pointer-events: none;
    z-index: 2;
}

.demo-connectors path {
    fill: none;
    stroke: rgba(83, 145, 255, .52);
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-dasharray: 4 8;
    marker-end: url(#demo-connector-arrow);
    filter: drop-shadow(0 0 6px rgba(67, 137, 255, .36));
}

.demo-connectors marker path {
    fill: none;
    stroke: rgba(111, 173, 255, .90);
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: none;
    marker-end: none;
}

.demo-connector-left-bottom,
.demo-connector-right-bottom {
    stroke: rgba(49, 218, 187, .47);
}

.demo-window-head {
    position: relative;
    z-index: 3;
    height: 58px;
    padding: 0 22px;
    border-bottom-color: rgba(126, 168, 237, .12);
}

.demo-window-head span {
    width: 9px;
    height: 9px;
}

.demo-window-head span:nth-child(1) { background: #ff6b6b; }
.demo-window-head span:nth-child(2) { background: #ffd166; }
.demo-window-head span:nth-child(3) { background: #4cd281; }

.demo-window-head strong {
    margin: 0 auto;
    color: #f4f8ff;
    font-size: 12px;
}

.demo-dashboard {
    position: relative;
    z-index: 3;
    grid-template-columns: 145px minmax(0, 1fr);
    min-height: 506px;
}

.demo-dashboard aside {
    gap: 7px;
    padding: 22px 14px;
    border-right-color: rgba(126, 168, 237, .12);
}

.demo-dashboard aside strong {
    color: #dce9ff;
    font-size: 13px;
}

.demo-dashboard aside span {
    padding: 10px 11px;
    color: #8191ad;
    font-size: 12px;
}

.demo-dashboard aside span.active {
    background: rgba(43, 110, 255, .24);
    color: #fff;
}

.demo-dashboard section {
    display: block;
    padding: 22px 24px 26px;
}

.demo-editor-card {
    min-height: 440px;
    gap: 14px;
    padding: 24px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #f9fbff, #e6eefb);
    box-shadow: 0 28px 56px rgba(0,0,0,.28);
    color: #172033;
}

.demo-editor-card small {
    color: #667089;
    font-size: 12px;
    font-weight: 900;
}

.demo-email-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(3, 24px) 48px;
    gap: 10px;
    align-items: center;
}

.demo-email-toolbar i,
.demo-email-toolbar b {
    height: 22px;
    display: block;
    border-radius: 7px;
    background: #dfe7f4;
}

.demo-email-toolbar i:nth-child(2),
.demo-email-toolbar i:nth-child(3) {
    border-radius: 999px;
}

.demo-email-toolbar b {
    background: #edf2fa;
}

.demo-editor-card h3 {
    color: #192236;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -.04em;
}

.demo-email-block {
    position: relative;
    overflow: hidden;
    height: 170px;
    border: 0;
    border-radius: 9px;
    background:
        radial-gradient(circle at 75% 28%, rgba(255,255,255,.72), transparent 7%),
        linear-gradient(142deg, transparent 0 48%, rgba(255,255,255,.45) 48% 50%, transparent 50%),
        linear-gradient(155deg, transparent 0 58%, rgba(255,255,255,.26) 58% 60%, transparent 60%),
        linear-gradient(135deg, #eaf4ff 0%, #d5e7ff 30%, #86aee8 42%, #3c63a0 57%, #172b55 76%, #09172e 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 16px 34px rgba(23, 47, 88, .12);
}

.demo-email-block::before {
    content: attr(data-button);
    position: absolute;
    left: 22px;
    top: 76px;
    z-index: 2;
    min-width: 74px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border-radius: 7px;
    background: linear-gradient(135deg, #156dff, #2b7dff);
    color: #fff;
    box-shadow: 0 11px 24px rgba(21, 109, 255, .34);
    font-size: 10px;
    font-weight: 950;
}

.demo-email-block::after {
    content: "";
    position: absolute;
    left: -7%;
    right: -6%;
    bottom: -13%;
    height: 74%;
    background:
        linear-gradient(136deg, transparent 0 31%, rgba(255,255,255,.70) 31% 33%, transparent 33%),
        linear-gradient(155deg, transparent 0 41%, rgba(255,255,255,.50) 41% 43%, transparent 43%),
        linear-gradient(136deg, #edf6ff 0 21%, #476fa9 21% 39%, #12264d 39% 58%, #09172d 58% 100%);
    clip-path: polygon(0 100%, 18% 51%, 28% 68%, 42% 28%, 54% 61%, 69% 17%, 86% 60%, 100% 33%, 100% 100%);
    opacity: .97;
}

.demo-email-lines i {
    height: 9px;
    background: #b9c7dd;
}

.demo-email-lines i:nth-child(1) { width: 92%; }
.demo-email-lines i:nth-child(2) { width: 82%; }
.demo-email-lines i:nth-child(3) { width: 64%; }

.demo-email-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 2px;
}

.demo-email-grid i {
    min-height: 78px;
    border-radius: 9px;
    background:
        radial-gradient(circle at 78% 25%, rgba(255,255,255,.70), transparent 10%),
        linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,0)),
        linear-gradient(135deg, #70a8ff 0%, #275595 52%, #12264d 100%);
    box-shadow: 0 34px 0 -27px #b7c5da;
}

.demo-email-grid i:nth-child(2) {
    background:
        radial-gradient(circle at 70% 30%, rgba(255, 226, 139, .82), transparent 12%),
        linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0)),
        linear-gradient(135deg, #ff9b5f 0%, #b85d61 38%, #17264a 68%, #091325 100%);
}

.demo-floating-card {
    z-index: 4;
    gap: 4px;
    padding: 16px 18px;
    border-color: rgba(102, 165, 255, .32);
    border-radius: 13px;
    background:
        radial-gradient(circle at 86% 18%, rgba(77, 139, 255, .16), transparent 34%),
        linear-gradient(180deg, rgba(15, 40, 83, .98), rgba(10, 27, 58, .96));
    box-shadow: 0 20px 48px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.07);
    transform: rotate(-4deg);
}

.demo-floating-card strong {
    color: #fff;
    font-size: 13px;
}

.demo-floating-card span {
    color: #b8c7de;
    font-size: 11px;
}

.demo-floating-card-ai {
    left: -34px;
    right: auto;
    top: 196px;
    bottom: auto;
}

.demo-floating-card-ai::before,
.demo-floating-card-flow::before,
.demo-floating-card-segment::before {
    content: "✧";
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 2px;
    border-radius: 8px;
    background: linear-gradient(135deg, #7a3cff, #346fff);
    color: #fff;
    font-size: 15px;
    box-shadow: 0 9px 20px rgba(58, 113, 255, .30);
}

.demo-floating-card-flow {
    left: 2px;
    right: auto;
    bottom: 76px;
}

.demo-floating-card-flow::before {
    background: linear-gradient(135deg, #0b73ff, #4dc8ff);
}

.demo-floating-card-results {
    right: -88px;
    top: 110px;
    bottom: auto;
    min-width: 178px;
    background:
        radial-gradient(circle at 82% 24%, rgba(54, 215, 135, .18), transparent 33%),
        linear-gradient(180deg, rgba(14, 34, 70, .99), rgba(8, 24, 54, .98));
}

.demo-floating-card-results b {
    color: #fff;
    font-size: 26px;
    line-height: 1;
}

.demo-floating-card-results i {
    position: relative;
    width: 118px;
    height: 54px;
    display: block;
    border-left: 1px solid rgba(255,255,255,.18);
    border-bottom: 1px solid rgba(255,255,255,.18);
    border-radius: 0 0 0 8px;
    background:
        linear-gradient(180deg, rgba(55, 210, 128, .18), rgba(55, 210, 128, 0) 74%),
        linear-gradient(150deg, transparent 0 35%, rgba(55, 210, 128, .18) 35% 61%, transparent 61%),
        repeating-linear-gradient(90deg, transparent 0 23px, rgba(255,255,255,.07) 23px 24px);
}

.demo-floating-card-results i::before {
    content: "";
    position: absolute;
    left: 8px;
    right: 5px;
    top: 7px;
    bottom: 7px;
    background:
        radial-gradient(circle at 95% 17%, #54df9a 0 4px, transparent 5px),
        linear-gradient(146deg, transparent 0 21%, #29bb81 22% 24%, transparent 25% 42%, #29bb81 43% 46%, transparent 47% 62%, #37d280 63% 66%, transparent 67% 100%);
    filter: drop-shadow(0 0 8px rgba(55, 210, 128, .45));
}

.demo-floating-card-results i::after {
    content: "";
    position: absolute;
    left: 17px;
    top: 32px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #37d280;
    box-shadow: 35px -16px 0 #37d280, 65px -7px 0 #37d280, 94px -29px 0 #54df9a;
}

.demo-floating-card-results em {
    width: fit-content;
    justify-self: end;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(26, 185, 112, .18);
    color: #44d98b;
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
}

.demo-floating-card-segment {
    right: -94px;
    bottom: 82px;
}

.demo-floating-card-segment::before {
    background: linear-gradient(135deg, #17b6b3, #45e3c8);
}

.landing-audience-strip {
    min-height: 42px;
    display: grid;
    grid-template-columns: 112px repeat(5, minmax(0, 1fr)) 98px;
    align-items: center;
    gap: 0;
    margin-top: 34px;
    border: 1px solid rgba(122, 161, 220, .22);
    border-radius: 10px;
    background: rgba(17, 35, 68, .82);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
    overflow: hidden;
}

.landing-audience-strip span {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 10px;
    border-left: 1px solid rgba(122, 161, 220, .14);
    color: #d7e4f7;
    font-size: 10.5px;
    font-weight: 850;
    white-space: nowrap;
}

.landing-audience-strip span:first-child {
    border-left: 0;
}

.landing-audience-strip span.is-active {
    color: #fff;
    justify-content: flex-start;
    padding-left: 20px;
    font-size: 12px;
    font-weight: 950;
}

.landing-audience-strip i {
    color: #9fb9df;
    font-style: normal;
    font-size: 14px;
    line-height: 1;
}

.landing-hero-feature-head {
    margin-top: 30px;
    text-align: center;
}

.landing-hero-feature-head h2 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    letter-spacing: -.03em;
}

.landing-hero-feature-head h2 span {
    position: relative;
    display: inline-block;
    color: #4d8bff;
}

.landing-hero-feature-head h2 span::after {
    content: "";
    position: absolute;
    left: 9px;
    right: 4px;
    bottom: -7px;
    height: 8px;
    border-bottom: 2px solid rgba(77, 139, 255, .92);
    border-radius: 50%;
    transform: rotate(-2deg);
}

.landing-hero-feature-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.landing-hero-feature-card {
    min-height: 130px;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 6px;
    padding: 14px 10px 13px;
    border: 1px solid rgba(127, 168, 230, .15);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 0%, rgba(77, 139, 255, .14), transparent 43%),
        rgba(17, 34, 64, .86);
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.landing-hero-feature-card > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 3px;
    border-radius: 999px;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.16);
}

.landing-hero-feature-card .tone-1 { background: linear-gradient(135deg, #8b35ff, #c252ff); }
.landing-hero-feature-card .tone-2 { background: linear-gradient(135deg, #176fff, #54b1ff); }
.landing-hero-feature-card .tone-3 { background: linear-gradient(135deg, #20a74f, #56db7c); }
.landing-hero-feature-card .tone-4 { background: linear-gradient(135deg, #a95038, #e08761); }
.landing-hero-feature-card .tone-5 { background: linear-gradient(135deg, #11a0a8, #42e0d4); }
.landing-hero-feature-card .tone-6 { background: linear-gradient(135deg, #812fe0, #bd5dff); }

.landing-hero-feature-card h3 {
    margin: 0;
    color: #fff;
    font-size: 13px;
    letter-spacing: -.01em;
}

.landing-hero-feature-card p {
    margin: 0;
    color: #c0cee4;
    font-size: 10.5px;
    line-height: 1.35;
    font-weight: 650;
}

.landing-hero-final-cta {
    position: relative;
    min-height: 98px;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 230px;
    align-items: center;
    gap: 18px;
    margin-top: 25px;
    padding: 14px 54px 14px 25px;
    border: 1px solid rgba(90, 151, 255, .34);
    border-radius: 13px;
    background:
        radial-gradient(circle at 14% 48%, rgba(92, 170, 255, .60), transparent 24%),
        radial-gradient(circle at 8% 80%, rgba(53, 224, 199, .18), transparent 28%),
        radial-gradient(circle at 79% 37%, rgba(83, 138, 255, .30), transparent 30%),
        linear-gradient(100deg, #0e63ff 0%, #0a38bb 42%, #071f83 72%, #061963 100%);
    box-shadow: 0 22px 52px rgba(0,0,0,.27), inset 0 1px 0 rgba(255,255,255,.08);
    overflow: hidden;
}

.landing-hero-final-cta::before {
    content: "";
    position: absolute;
    right: 248px;
    top: 51px;
    width: 8px;
    height: 8px;
    border-top: 2px solid rgba(255,255,255,.74);
    border-right: 2px solid rgba(255,255,255,.74);
    transform: rotate(45deg);
    pointer-events: none;
}

.landing-hero-final-cta::after {
    content: "";
    position: absolute;
    right: 254px;
    top: 41px;
    width: 82px;
    height: 25px;
    border-bottom: 2px solid rgba(255,255,255,.58);
    border-radius: 0 0 46px 0;
    transform: rotate(-8deg);
    pointer-events: none;
}

.landing-hero-envelope {
    position: relative;
    min-height: 72px;
    z-index: 1;
}

.landing-hero-envelope i {
    position: absolute;
    left: 26px;
    top: 25px;
    width: 90px;
    height: 58px;
    border-radius: 8px;
    background:
        linear-gradient(145deg, transparent 49%, rgba(175, 198, 237, .55) 50%, transparent 51%),
        linear-gradient(35deg, transparent 49%, rgba(255,255,255,.55) 50%, transparent 51%),
        linear-gradient(145deg, #f9fcff, #c8daf7);
    box-shadow: 0 16px 28px rgba(0,0,0,.20);
    transform: rotate(-10deg);
}

.landing-hero-envelope i::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(30deg, transparent 49%, rgba(125, 157, 210, .32) 50%, transparent 51%),
        linear-gradient(150deg, transparent 49%, rgba(255,255,255,.44) 50%, transparent 51%);
}

.landing-hero-envelope i:nth-child(2) {
    left: 110px;
    top: 31px;
    transform: rotate(13deg);
}

.landing-hero-envelope b {
    position: absolute;
    left: 72px;
    top: 5px;
    width: 64px;
    min-height: 60px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, #eef5ff);
    color: #20a268;
    text-align: center;
    font-size: 8.5px;
    line-height: 1.18;
    box-shadow: 0 14px 28px rgba(0,0,0,.18);
    transform: rotate(-6deg);
}

.landing-hero-envelope b::after {
    content: "✓";
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    margin-top: -4px;
    border-radius: 999px;
    background: #18b85d;
    color: #fff;
    box-shadow: 0 7px 16px rgba(24, 184, 93, .30);
    font-size: 13px;
    font-weight: 950;
}

.landing-hero-final-copy {
    position: relative;
    z-index: 1;
    max-width: 360px;
}

.landing-hero-final-cta h2 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 22px;
    line-height: 1.14;
    letter-spacing: -.035em;
}

.landing-hero-final-cta p {
    margin: 0;
    color: #d7e5ff;
    font-size: 11px;
    font-weight: 650;
}

.landing-hero-final-cta a {
    width: 230px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 8px;
    background: #fff;
    color: #1258e6;
    text-decoration: none;
    box-shadow: 0 0 0 1px rgba(255,255,255,.60), 0 16px 32px rgba(255,255,255,.20);
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.landing-hero-final-cta small {
    grid-column: 3;
    margin-top: -12px;
    color: #c9dbff;
    text-align: center;
    font-size: 9.5px;
    font-weight: 750;
}

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

    .landing-product-demo {
        width: min(100%, 760px);
        margin: 18px auto 0;
    }

    .landing-audience-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .landing-hero-feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .landing-hero-final-cta {
        grid-template-columns: 220px minmax(0, 1fr);
        padding-right: 30px;
    }

    .landing-hero-final-cta::before,
    .landing-hero-final-cta::after {
        display: none;
    }

    .landing-hero-final-cta a,
    .landing-hero-final-cta small {
        grid-column: 2;
        justify-self: start;
    }

    .landing-hero-final-cta small {
        margin-top: -14px;
    }
}

@media (max-width: 760px) {
    .landing-hero {
        padding: 38px 0 36px;
    }

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

    .landing-hero-copy > p {
        font-size: 16px;
    }

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

    .landing-product-demo {
        min-height: auto;
        border-radius: 16px;
        transform: none;
    }

    .demo-paper-plane,
    .demo-floating-card {
        display: none;
    }

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

    .demo-dashboard aside {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-right: 0;
        border-bottom: 1px solid rgba(126, 168, 237, .12);
    }

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

    .demo-dashboard section {
        padding: 16px;
    }

    .demo-editor-card {
        min-height: auto;
        padding: 18px;
    }

    .demo-email-toolbar {
        grid-template-columns: minmax(0, 1fr) 26px 26px;
    }

    .demo-email-toolbar i:nth-child(3),
    .demo-email-toolbar b {
        display: none;
    }

    .landing-audience-strip {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .landing-audience-strip span {
        min-width: 190px;
        scroll-snap-align: start;
    }

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

    .landing-hero-final-cta {
        grid-template-columns: 1fr;
        padding: 22px;
        text-align: center;
    }

    .landing-hero-envelope {
        display: none;
    }

    .landing-hero-final-cta a,
    .landing-hero-final-cta small {
        grid-column: auto;
        justify-self: stretch;
    }

    .landing-hero-final-cta a {
        width: 100%;
    }

    .landing-hero-final-cta small {
        margin-top: -6px;
    }
}

.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-section.landing-owned-channel {
    scroll-margin-top: 86px;
    position: relative;
    overflow: hidden;
    padding: 88px 0 34px;
    background:
        radial-gradient(circle at 87% 22%, rgba(39, 113, 255, .06), transparent 26%),
        radial-gradient(circle at 95% 92%, rgba(12, 180, 146, .06), transparent 23%),
        linear-gradient(180deg, #fbfdff 0%, #ffffff 58%, #f7fbff 100%);
    border-bottom: 1px solid #e4ebf6;
}

.landing-owned-channel::after {
    content: "";
    position: absolute;
    right: 22px;
    bottom: 18px;
    width: 172px;
    height: 94px;
    background-image: radial-gradient(circle, rgba(18, 39, 71, .10) 1px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: .32;
    pointer-events: none;
}

.landing-owned-channel-shell {
    position: relative;
    z-index: 1;
    width: min(1480px, calc(100% - 64px));
}

.landing-owned-channel-grid {
    display: grid;
    grid-template-columns: minmax(680px, .94fr) minmax(610px, 1.06fr);
    gap: 44px;
    align-items: center;
}

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

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

.landing-owned-channel-copy h2 {
    max-width: 560px;
    margin: 0;
    color: #07152d;
    font-size: clamp(44px, 4.7vw, 64px);
    line-height: 1.04;
    letter-spacing: -.045em;
}

.landing-owned-channel-copy > strong {
    position: relative;
    width: fit-content;
    color: #0d47d9;
    font-size: clamp(26px, 2.6vw, 34px);
    line-height: 1.12;
    letter-spacing: -.04em;
    z-index: 1;
}

.landing-owned-channel-copy > strong::after {
    content: "";
    position: absolute;
    left: 46%;
    right: -4px;
    bottom: -9px;
    height: 10px;
    border-bottom: 3px solid rgba(18, 100, 255, .85);
    border-radius: 50%;
    transform: translateX(-50%) rotate(-2deg);
    z-index: -1;
}

.landing-owned-channel-copy > span {
    max-width: 590px;
    color: #25334a;
    font-size: 17px;
    line-height: 1.62;
    font-weight: 600;
}

.landing-owned-proof {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    color: #101a30;
    font-size: 16px;
}

.landing-owned-proof i {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 46px;
    border-radius: 999px;
    background: #eef5ff;
    color: #1264ff;
    font-style: normal;
    font-size: 20px;
}

.landing-owned-proof b {
    font-weight: 950;
}

.landing-owned-channel-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 18px;
    margin-top: 8px;
    min-width: 626px;
}

.landing-owned-channel-actions .landing-primary-cta,
.landing-owned-channel-actions .landing-secondary-cta {
    min-height: 62px;
    min-width: 304px;
    padding: 0 24px;
    border-radius: 8px;
    font-size: 15px;
    box-shadow: none;
}

.landing-owned-channel-actions .landing-primary-cta {
    gap: 13px;
    justify-content: flex-start;
    background: linear-gradient(135deg, #1264ff, #0c55f2);
    box-shadow: 0 16px 34px rgba(18, 100, 255, .25);
}

.landing-owned-channel-actions .landing-primary-cta i {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 6px;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-style: normal;
    font-size: 15px;
}

.landing-owned-channel-actions .landing-primary-cta em,
.landing-owned-channel-actions .landing-secondary-cta em {
    margin-left: auto;
    font-style: normal;
    font-size: 22px;
    line-height: 1;
}

.landing-owned-channel .landing-secondary-cta {
    border-color: rgba(22, 94, 235, .45);
    color: #0d47d9;
    background: #fff;
    justify-content: space-between;
}

.landing-owned-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 30px;
    margin-top: 15px;
    color: #516079;
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
}

.landing-owned-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.landing-owned-trust-row span::before {
    content: "✓";
    width: 19px;
    height: 19px;
    display: inline-grid;
    place-items: center;
    border: 2px solid #3e78d8;
    border-radius: 999px;
    color: #3e78d8;
    font-size: 12px;
    font-weight: 950;
}

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

.landing-owned-card {
    position: relative;
    min-height: 274px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 22px;
    align-items: center;
    padding: 34px 32px 31px 42px;
    border: 1px solid rgba(223, 230, 242, .86);
    border-left: 6px solid #f59e1b;
    border-radius: 11px;
    background:
        radial-gradient(circle at 86% 50%, rgba(245, 158, 27, .10), transparent 32%),
        #fffaf2;
    box-shadow: 0 18px 42px rgba(28, 39, 64, .07);
    overflow: hidden;
}

.landing-owned-card.is-owned {
    border-left-color: #15b89a;
    background:
        radial-gradient(circle at 86% 50%, rgba(21, 184, 154, .11), transparent 34%),
        #f3fffb;
}

.landing-owned-card-copy {
    display: grid;
    gap: 12px;
    align-content: start;
    max-width: 410px;
}

.landing-owned-card-copy small {
    width: fit-content;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    border-radius: 999px;
    background: #fff1d9;
    color: #b46a08;
    font-size: 14px;
    font-weight: 950;
}

.landing-owned-card.is-owned small {
    background: #dff8f0;
    color: #0b947d;
}

.landing-owned-card-copy strong {
    color: #07152d;
    font-size: 29px;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.landing-owned-card-copy p {
    margin: 0;
    color: #4f5d73;
    font-size: 15.5px;
    line-height: 1.55;
    font-weight: 650;
}

.landing-owned-card-copy ul {
    display: grid;
    gap: 12px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.landing-owned-card-copy li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #566174;
    font-size: 14.5px;
    font-weight: 750;
}

.landing-owned-card-copy li::before {
    content: "×";
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 20px;
    border-radius: 999px;
    background: #ffc46c;
    color: #fff;
    font-size: 15px;
    font-weight: 950;
}

.landing-owned-card.is-owned li::before {
    content: "✓";
    background: #22b99d;
}

.landing-owned-art {
    position: relative;
    min-height: 206px;
}

.social-paper,
.email-browser {
    position: absolute;
    right: 6px;
    top: 27px;
    width: 170px;
    height: 166px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.82)),
        repeating-linear-gradient(180deg, transparent 0 20px, rgba(146, 160, 190, .16) 20px 27px);
    box-shadow: 0 20px 42px rgba(28, 39, 64, .10);
    transform: rotate(3deg);
}

.social-paper::before,
.email-browser::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 24px;
    top: 28px;
    height: 10px;
    border-radius: 999px;
    background: #edf2fb;
    box-shadow: 0 33px 0 #edf2fb, 0 66px 0 #edf2fb, 0 99px 0 #edf2fb;
}

.social-icon {
    position: absolute;
    z-index: 2;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(28, 39, 64, .12);
    font-style: normal;
    font-weight: 950;
}

.social-instagram {
    left: 12px;
    top: 61px;
    color: #f03a89;
    font-size: 27px;
}

.social-facebook {
    left: -4px;
    top: 118px;
    background: #1e75ff;
    color: #fff;
    font-size: 29px;
    font-family: Georgia, serif;
}

.social-tiktok {
    left: 30px;
    top: 172px;
    color: #091526;
    font-size: 27px;
}

.social-lock,
.email-check {
    position: absolute;
    right: -8px;
    top: 14px;
    z-index: 3;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 17px 34px rgba(28, 39, 64, .12);
    color: #99a9c2;
    font-style: normal;
    font-size: 30px;
}

.social-lock {
    color: transparent;
}

.social-lock::before {
    content: "";
    width: 25px;
    height: 20px;
    display: block;
    border-radius: 5px;
    background: #98a8c0;
}

.social-lock::after {
    content: "";
    position: absolute;
    top: 20px;
    width: 22px;
    height: 19px;
    border: 5px solid #98a8c0;
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
}

.social-fall {
    position: absolute;
    right: 4px;
    bottom: 50px;
    z-index: 4;
    width: 124px;
    height: 83px;
    border-right: 8px solid #f59e1b;
    border-bottom: 8px solid #f59e1b;
    clip-path: polygon(0 11%, 20% 34%, 38% 27%, 55% 54%, 70% 48%, 100% 86%, 100% 100%, 60% 58%, 46% 66%, 29% 39%, 14% 48%, 0 27%);
    transform: rotate(5deg);
}

.email-browser {
    right: 20px;
    top: 34px;
    width: 178px;
    height: 166px;
    background: linear-gradient(180deg, #ffffff, #f1f7ff);
    transform: none;
}

.email-browser i {
    position: absolute;
    left: 22px;
    top: 24px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #9dafc8;
    box-shadow: 16px 0 0 #b5c2d5, 32px 0 0 #cbd4e3;
}

.email-browser span {
    position: absolute;
    left: 48px;
    top: 70px;
    width: 80px;
    height: 55px;
    border-radius: 6px;
    background:
        linear-gradient(145deg, transparent 49%, rgba(255,255,255,.35) 50%, transparent 51%),
        linear-gradient(35deg, transparent 49%, rgba(255,255,255,.28) 50%, transparent 51%),
        linear-gradient(135deg, #34d0ab, #16b99a);
    box-shadow: 0 16px 30px rgba(22, 185, 154, .15);
}

.email-check {
    right: -1px;
    top: 3px;
    color: #18b99c;
    font-size: 34px;
}

.email-art::before {
    content: "";
    position: absolute;
    left: -10px;
    right: 10px;
    bottom: 16px;
    height: 90px;
    border: 2px dashed rgba(22, 185, 154, .21);
    border-top: 0;
    border-radius: 0 0 120px 120px;
}

.email-person {
    position: absolute;
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 12px 24px rgba(28, 39, 64, .08);
}

.email-person::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 10px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #77d9c7;
    box-shadow: 0 15px 0 4px rgba(119, 217, 199, .72);
}

.email-person-a { left: 0; bottom: 28px; }
.email-person-b { right: 0; bottom: 32px; }
.email-person-c { left: 100px; bottom: -7px; }

.landing-owned-footer-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 44px;
    color: #59677d;
    font-size: 15px;
}

.landing-owned-footer-proof i {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border: 2px solid #3e78d8;
    border-radius: 999px;
    color: #3e78d8;
    font-style: normal;
    font-size: 12px;
}

.landing-owned-footer-proof b {
    font-weight: 750;
}

@media (max-width: 1180px) {
    .landing-owned-channel-shell {
        width: min(100% - 48px, 1200px);
    }

    .landing-owned-channel-grid {
        grid-template-columns: minmax(500px, .9fr) minmax(430px, 1fr);
        gap: 42px;
    }

    .landing-owned-channel-actions {
        min-width: 0;
        flex-wrap: wrap;
    }

    .landing-owned-card {
        grid-template-columns: minmax(0, 1fr) 170px;
        padding-right: 24px;
    }
}

@media (max-width: 1040px) {
    .landing-section.landing-owned-channel {
        padding: 72px 0 32px;
    }

    .landing-owned-channel-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .landing-owned-channel-copy > span {
        max-width: 760px;
    }

    .landing-owned-proof,
    .landing-owned-channel-actions,
    .landing-owned-trust-row {
        justify-content: center;
    }

    .landing-owned-channel-actions {
        min-width: 626px;
        flex-wrap: nowrap;
    }
}

@media (max-width: 760px) {
    .landing-section.landing-owned-channel {
        padding: 58px 0 28px;
    }

    .landing-owned-channel-copy h2 {
        font-size: 40px;
    }

    .landing-owned-channel-copy > strong {
        font-size: 25px;
    }

    .landing-owned-channel-actions .landing-primary-cta,
    .landing-owned-channel-actions .landing-secondary-cta {
        width: 100%;
        min-width: 0;
    }

    .landing-owned-channel-actions {
        min-width: 0;
    }

    .landing-owned-trust-row {
        white-space: normal;
    }

    .landing-owned-card {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 26px;
    }

    .landing-owned-art {
        display: none;
    }

    .landing-owned-footer-proof {
        flex-wrap: wrap;
        gap: 8px 11px;
        margin-top: 30px;
        text-align: center;
    }
}

.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-features-section {
    position: relative;
    overflow: hidden;
    padding: 72px 0 58px;
    background:
        radial-gradient(circle at 9% 36%, rgba(13, 71, 217, .035), transparent 22%),
        radial-gradient(circle at 87% 78%, rgba(22, 185, 154, .05), transparent 25%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.landing-features-section::before {
    content: "";
    position: absolute;
    left: 0;
    top: 250px;
    width: 190px;
    height: 260px;
    background-image: radial-gradient(circle, rgba(18, 39, 71, .10) 1px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: .22;
    pointer-events: none;
}

.landing-features-head {
    width: min(880px, calc(100% - 48px));
    gap: 11px;
    margin-bottom: 24px;
}

.landing-features-head p {
    color: #0d47d9;
    font-size: 12px;
    letter-spacing: .13em;
}

.landing-features-head h2 {
    color: #07152d;
    font-size: clamp(35px, 3.8vw, 48px);
    line-height: 1.06;
    letter-spacing: -.045em;
}

.landing-features-head span {
    max-width: 670px;
    justify-self: center;
    color: #4d5b72;
    font-size: 16px;
    line-height: 1.48;
    font-weight: 650;
}

.landing-features-section .landing-feature-pills {
    width: min(840px, calc(100% - 48px));
    flex-wrap: nowrap;
    gap: 0;
    margin-bottom: 34px;
    padding: 0;
    border: 1px solid #dce6f5;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(28, 39, 64, .07);
    overflow: hidden;
}

.landing-features-section .landing-feature-pills span {
    min-height: 40px;
    flex: 1 1 0;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border: 0;
    border-left: 1px solid #edf2fa;
    border-radius: 0;
    background: transparent;
    color: #15223a;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.landing-features-section .landing-feature-pills span:first-child {
    border-left: 0;
}

.landing-features-section .landing-feature-pills span.is-active {
    background: linear-gradient(135deg, #1264ff, #0755f6);
    color: #fff;
    box-shadow: 0 12px 30px rgba(18, 100, 255, .24);
}

.landing-features-section .landing-feature-pills i {
    font-style: normal;
    font-size: 16px;
    line-height: 1;
}

.landing-features-section .landing-feature-showcase {
    width: min(1200px, calc(100% - 48px));
    grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
    gap: 46px;
    align-items: center;
    margin-bottom: 20px;
}

.landing-features-section .landing-feature-showcase article {
    gap: 13px;
}

.landing-features-section .landing-feature-showcase article > p {
    color: #0d47d9;
    font-size: 12px;
    letter-spacing: .13em;
}

.landing-features-section .landing-feature-showcase h3 {
    color: #07152d;
    font-size: clamp(33px, 3.1vw, 43px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.landing-features-section .landing-feature-showcase article > span {
    color: #58677b;
    font-size: 15px;
    line-height: 1.56;
    font-weight: 650;
}

.landing-features-section .landing-feature-showcase ul {
    gap: 11px;
    padding: 0;
    list-style: none;
    color: #17233a;
    font-size: 14px;
    font-weight: 850;
}

.landing-features-section .landing-feature-showcase li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.landing-features-section .landing-feature-showcase li::before {
    content: "✓";
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 18px;
    margin-top: 1px;
    border-radius: 999px;
    background: #1264ff;
    color: #fff;
    font-size: 11px;
    font-weight: 950;
}

.landing-features-section .landing-feature-showcase a {
    margin-top: 3px;
    color: #0d47d9;
    font-size: 15px;
}

.landing-features-section .landing-feature-visual {
    gap: 0;
    padding: 0;
    border: 1px solid #dfe7f5;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(28, 39, 64, .08);
    overflow: hidden;
}

.feature-window-top {
    min-height: 56px;
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr) auto 20px 20px auto auto;
    align-items: center;
    gap: 13px;
    padding: 0 17px;
    border-bottom: 1px solid #edf2fa;
    color: #4f5d73;
    font-size: 11px;
    font-weight: 800;
}

.feature-window-top strong {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #07152d;
    font-size: 14px;
}

.feature-window-top strong i {
    color: #1264ff;
    font-style: normal;
    font-size: 22px;
}

.feature-window-top em {
    min-height: 21px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: #f5f7fb;
    color: #667085;
    font-style: normal;
    font-size: 10px;
}

.feature-window-top b {
    color: #a2aec2;
    font-size: 13px;
    font-weight: 850;
}

.feature-window-top button {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #dce6f5;
    border-radius: 6px;
    background: #fff;
    color: #15223a;
    font-size: 11px;
    font-weight: 900;
}

.feature-window-top button:last-child {
    border-color: #1264ff;
    background: #1264ff;
    color: #fff;
}

.feature-window-body {
    display: grid;
    grid-template-columns: 112px minmax(210px, 1fr) minmax(210px, 1fr) 136px;
    min-height: 276px;
    background: #fff;
}

.feature-window-body aside {
    display: grid;
    align-content: start;
    gap: 5px;
    padding: 24px 12px;
    border-right: 1px solid #edf2fa;
    color: #4d5b72;
    font-size: 11px;
    font-weight: 900;
}

.feature-window-body aside span {
    min-height: 31px;
    display: flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 6px;
}

.feature-window-body aside span.is-active {
    background: #eef5ff;
    color: #1264ff;
}

.feature-mail-preview {
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 32px 30px;
    color: #15223a;
}

.feature-mail-preview small {
    color: #617a46;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .3em;
}

.feature-mail-preview h4 {
    margin: 0;
    color: #23311f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    line-height: 1.08;
    font-weight: 500;
}

.feature-mail-preview p {
    margin: 0;
    max-width: 250px;
    color: #5d684f;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 650;
}

.feature-mail-preview button {
    width: fit-content;
    min-height: 34px;
    margin-top: 2px;
    padding: 0 15px;
    border: 0;
    border-radius: 5px;
    background: #3f8f51;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.feature-mail-image {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 38% 18%, rgba(120, 141, 92, .22), transparent 19%),
        linear-gradient(145deg, #f6f3ed, #e8e0d5);
}

.feature-mail-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,.35), transparent 46%),
        repeating-linear-gradient(105deg, transparent 0 42px, rgba(255,255,255,.20) 42px 44px);
}

.feature-mail-image span {
    position: absolute;
    left: 70px;
    bottom: 49px;
    width: 52px;
    height: 64px;
    border-radius: 9px 9px 16px 16px;
    background: linear-gradient(145deg, #c5aa82, #94734f);
    box-shadow: 76px 8px 0 -12px #9d7a51;
}

.feature-mail-image i,
.feature-mail-image b {
    position: absolute;
    left: 90px;
    bottom: 104px;
    width: 2px;
    height: 118px;
    background: #4d6c3f;
    transform: rotate(-15deg);
    transform-origin: bottom center;
}

.feature-mail-image i::before,
.feature-mail-image i::after,
.feature-mail-image b::before,
.feature-mail-image b::after {
    content: "";
    position: absolute;
    width: 44px;
    height: 16px;
    border-top: 2px solid #4d6c3f;
    border-radius: 50%;
}

.feature-mail-image i::before { left: -39px; top: 16px; transform: rotate(-18deg); }
.feature-mail-image i::after { left: 0; top: 33px; transform: rotate(18deg); }
.feature-mail-image b {
    left: 116px;
    bottom: 101px;
    height: 100px;
    transform: rotate(12deg);
}
.feature-mail-image b::before { left: -35px; top: 20px; transform: rotate(-12deg); }
.feature-mail-image b::after { left: -2px; top: 42px; transform: rotate(20deg); }

.feature-inspector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-content: start;
    padding: 19px 14px;
    border-left: 1px solid #edf2fa;
    background: #fbfcff;
}

.feature-inspector nav {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 7px;
    color: #07152d;
    font-size: 10px;
    font-weight: 950;
}

.feature-inspector nav span:first-child {
    color: #1264ff;
    text-decoration: underline;
    text-underline-offset: 7px;
}

.feature-inspector div {
    min-height: 58px;
    display: grid;
    place-items: center;
    gap: 5px;
    padding: 7px 4px;
    border: 1px solid #e6edf8;
    border-radius: 7px;
    background: #fff;
    color: #15223a;
    font-size: 9px;
    font-weight: 850;
}

.feature-inspector i {
    color: #26344c;
    font-style: normal;
    font-size: 16px;
}

.feature-inspector b {
    font-weight: 850;
}

.landing-features-section .visual-automation {
    display: grid;
    grid-template-columns: 130px minmax(126px, 1fr) 18px minmax(126px, 1fr) 18px minmax(126px, 1fr) 45px;
    gap: 10px;
    align-items: center;
    padding: 18px 20px 20px;
    border-top: 1px solid #edf2fa;
    background: #fff;
}

.landing-features-section .visual-automation > strong {
    align-self: start;
    color: #15223a;
    font-size: 11px;
    font-weight: 950;
}

.landing-features-section .visual-automation > span {
    min-height: 58px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    justify-content: start;
    padding: 10px 12px;
    border: 1px solid #e6edf8;
    border-radius: 8px;
    background: #fff;
    color: #15223a;
    text-align: left;
    font-weight: 900;
}

.landing-features-section .visual-automation > span i {
    grid-row: 1 / 3;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #e8f8ef;
    color: #1abe68;
    font-style: normal;
    font-size: 17px;
}

.landing-features-section .visual-automation > span:nth-of-type(2) i {
    background: #eef4ff;
    color: #1264ff;
}

.landing-features-section .visual-automation > span:nth-of-type(3) i {
    background: #fff5de;
    color: #f4a51c;
}

.landing-features-section .visual-automation > span b {
    font-size: 11px;
    font-weight: 950;
}

.landing-features-section .visual-automation > span small {
    color: #667085;
    font-size: 9px;
    font-weight: 750;
}

.landing-features-section .visual-automation > em {
    color: #71819b;
    font-style: normal;
    font-weight: 950;
}

.landing-features-section .visual-automation > button {
    width: 43px;
    height: 58px;
    border: 1px solid #e6edf8;
    border-radius: 8px;
    background: #fff;
    color: #71819b;
    font-size: 20px;
    font-weight: 800;
}

.landing-features-section .landing-card-grid {
    width: min(1200px, calc(100% - 48px));
    gap: 15px;
}

.landing-feature-card {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px 16px;
    min-height: 124px;
    padding: 20px;
    border-radius: 10px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 14px 34px rgba(28, 39, 64, .075);
}

.landing-feature-card-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    grid-row: 1 / 3;
    border-radius: 12px;
    background: #eef4ff;
    color: #1264ff;
    font-size: 24px;
}

.landing-feature-card.tone-2 .landing-feature-card-icon { background: #f2edff; color: #7657ff; }
.landing-feature-card.tone-3 .landing-feature-card-icon { background: #e9f9ef; color: #18b85d; }
.landing-feature-card.tone-4 .landing-feature-card-icon { background: #fff4e2; color: #f4a51c; }
.landing-feature-card.tone-5 .landing-feature-card-icon { background: #eef4ff; color: #1264ff; }
.landing-feature-card.tone-6 .landing-feature-card-icon { background: #e8fbf6; color: #15b89a; }

.landing-feature-card .landing-feature-card-copy {
    display: grid;
    gap: 5px;
    margin: 0;
}

.landing-feature-card h3 {
    font-size: 16px;
    line-height: 1.2;
}

.landing-feature-card p {
    font-size: 13px;
    line-height: 1.45;
}

.landing-feature-card .landing-feature-card-tags {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 2px 0 0;
}

.landing-feature-card .landing-feature-card-tags span {
    min-height: 24px;
    border: 0;
    background: #eef4ff;
    color: #0d47d9;
    font-size: 10.5px;
    font-weight: 900;
}

.landing-feature-card.tone-2 .landing-feature-card-tags span { background: #f4efff; color: #6747df; }
.landing-feature-card.tone-3 .landing-feature-card-tags span,
.landing-feature-card.tone-6 .landing-feature-card-tags span { background: #eaf9f3; color: #0a846e; }
.landing-feature-card.tone-4 .landing-feature-card-tags span { background: #fff3e0; color: #ad6505; }

.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-why-section {
    position: relative;
    overflow: hidden;
    padding: 78px 0 58px;
    background:
        radial-gradient(circle at 8% 47%, rgba(13, 71, 217, .045), transparent 23%),
        radial-gradient(circle at 91% 78%, rgba(15, 138, 95, .045), transparent 23%),
        linear-gradient(180deg, #fbfdff 0%, #ffffff 52%, #f8fbff 100%);
}

.landing-why-section::before,
.landing-why-section::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 260px;
    background-image: radial-gradient(circle, rgba(18, 39, 71, .11) 1px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: .22;
    pointer-events: none;
}

.landing-why-section::before {
    left: 0;
    top: 170px;
}

.landing-why-section::after {
    right: 0;
    bottom: 92px;
}

.landing-why-head {
    width: min(800px, calc(100% - 48px));
    gap: 12px;
    margin-bottom: 58px;
}

.landing-why-head p {
    color: #0d47d9;
    font-size: 13px;
    letter-spacing: .22em;
}

.landing-why-head h2 {
    color: #07152d;
    font-size: clamp(44px, 4.8vw, 64px);
    line-height: 1.06;
    letter-spacing: -.05em;
}

.landing-why-head span {
    max-width: 690px;
    justify-self: center;
    color: #58677b;
    font-size: 18px;
    line-height: 1.48;
    font-weight: 650;
}

.landing-why-section .landing-reason-grid {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 64px));
    gap: 24px;
}

.landing-why-section .landing-reason-card {
    position: relative;
    min-height: 236px;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0 22px;
    padding: 31px 30px 24px;
    border: 1px solid #e2e9f5;
    border-radius: 12px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 18px 42px rgba(28, 39, 64, .065);
}

.landing-why-section .landing-reason-card.is-featured {
    border-color: rgba(18, 100, 255, .55);
    box-shadow: 0 18px 42px rgba(18, 100, 255, .09);
}

.landing-reason-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    grid-row: 1 / 2;
    border-radius: 999px;
    background: #edf4ff;
    color: #1264ff;
    font-style: normal;
    font-size: 36px;
    line-height: 1;
}

.landing-reason-card.tone-2 .landing-reason-icon { background: #e9f9ef; color: #16a95a; }
.landing-reason-card.tone-3 .landing-reason-icon { background: #f4edff; color: #7a4be9; }
.landing-reason-card.tone-4 .landing-reason-icon { background: #fff3df; color: #f59e1b; }
.landing-reason-card.tone-5 .landing-reason-icon { background: #edf4ff; color: #1264ff; }
.landing-reason-card.tone-6 .landing-reason-icon { background: #e7faf8; color: #159aa5; }

.landing-reason-copy {
    display: grid;
    align-content: start;
    gap: 12px;
}

.landing-why-section .landing-reason-copy > span {
    width: fit-content;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border-radius: 999px;
    background: #eef4ff;
    color: #0d47d9;
    font-size: 12px;
    font-weight: 950;
}

.landing-reason-card.tone-2 .landing-reason-copy > span { background: #e9f8ef; color: #118747; }
.landing-reason-card.tone-3 .landing-reason-copy > span { background: #f3ecff; color: #6747df; }
.landing-reason-card.tone-4 .landing-reason-copy > span { background: #fff1dd; color: #b86c04; }
.landing-reason-card.tone-5 .landing-reason-copy > span { background: #eef4ff; color: #0d47d9; }
.landing-reason-card.tone-6 .landing-reason-copy > span { background: #e7f8f7; color: #0e7f87; }

.landing-why-section .landing-reason-card h3 {
    margin: 0;
    color: #07152d;
    font-size: 24px;
    line-height: 1.18;
    letter-spacing: -.035em;
}

.landing-why-section .landing-reason-card p {
    margin: 0;
    max-width: 290px;
    color: #58677b;
    font-size: 15px;
    line-height: 1.58;
    font-weight: 650;
}

.landing-why-section .landing-reason-card footer {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    color: #45546d;
    font-size: 14px;
    font-weight: 800;
}

.landing-why-section .landing-reason-card footer em {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 22px;
    border-radius: 999px;
    background: #1264ff;
    color: #fff;
    font-style: normal;
    font-size: 12px;
    font-weight: 950;
}

.landing-reason-card.tone-2 footer em { background: #16a95a; }
.landing-reason-card.tone-3 footer em { background: #7657ff; }
.landing-reason-card.tone-4 footer em { background: #f59e1b; }
.landing-reason-card.tone-5 footer em { background: #1264ff; }
.landing-reason-card.tone-6 footer em { background: #159aa5; }

.landing-why-section .landing-reason-card footer b {
    font-weight: 800;
}

.landing-why-proof {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-top: 38px;
    color: #667085;
    font-size: 15.5px;
    font-weight: 700;
}

.landing-why-proof i {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #eef4ff;
    color: #1264ff;
    font-style: normal;
    font-size: 17px;
}

.landing-section.landing-automation {
    padding: 28px 0;
    color: #fff;
    background:
        radial-gradient(circle at 76% 48%, rgba(18, 100, 255, .16), transparent 34%),
        radial-gradient(circle at 12% 20%, rgba(13, 71, 217, .12), transparent 28%),
        #030914;
}

.landing-automation-shell {
    position: relative;
    width: min(1540px, calc(100% - 40px));
    min-height: 480px;
    padding: 74px 100px 50px;
    border: 1px solid rgba(78, 124, 203, .28);
    border-radius: 26px;
    background:
        linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
        radial-gradient(circle at 68% 47%, rgba(18, 100, 255, .12), transparent 28%),
        linear-gradient(145deg, rgba(5, 15, 33, .98), rgba(3, 9, 20, .98));
    background-size: 74px 74px, 74px 74px, auto, auto;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 28px 80px rgba(0,0,0,.28);
    overflow: hidden;
}

.landing-automation-shell::before,
.landing-automation-shell::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(18, 100, 255, .16), transparent 62%);
    pointer-events: none;
}

.landing-automation-shell::before {
    right: 330px;
    top: 86px;
}

.landing-automation-shell::after {
    left: -140px;
    bottom: -190px;
    opacity: .55;
}

.landing-automation-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(430px, .72fr) minmax(720px, 1.28fr);
    gap: 88px;
    align-items: center;
}

.landing-automation-copy {
    display: grid;
    align-content: center;
    gap: 22px;
}

.landing-automation-copy > p {
    width: fit-content;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    padding: 0 18px;
    border: 1px solid rgba(18, 100, 255, .28);
    border-radius: 999px;
    background: rgba(18, 100, 255, .08);
    color: #2f74ff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.landing-automation-copy > p i {
    color: #1264ff;
    font-style: normal;
    font-size: 16px;
}

.landing-automation-copy h2,
.landing-final-cta h2 {
    margin: 0;
    color: #fff;
}

.landing-automation-copy h2 {
    max-width: 540px;
    font-size: clamp(44px, 4.6vw, 70px);
    line-height: 1.08;
    letter-spacing: -.055em;
}

.landing-automation-copy > span {
    display: block;
    max-width: 560px;
    color: #aebbd0;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 650;
}

.landing-automation-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 22px 38px;
    margin-top: 4px;
    color: #aebbd0;
    font-size: 14px;
    font-weight: 850;
}

.landing-automation-checks span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.landing-automation-checks span::before {
    content: "✓";
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border: 2px solid rgba(18, 100, 255, .82);
    border-radius: 999px;
    color: #2f74ff;
    font-size: 12px;
    font-weight: 950;
}

.landing-automation-actions {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-top: 8px;
}

.landing-automation-actions a {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 0 25px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1264ff, #0755f6);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 18px 42px rgba(18, 100, 255, .34);
    font-size: 15px;
    font-weight: 950;
}

.landing-automation-actions a em {
    font-style: normal;
    font-size: 22px;
}

.landing-automation-actions small {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #aebbd0;
    font-size: 13.5px;
    font-weight: 750;
    white-space: nowrap;
}

.landing-automation-actions small i {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(174, 187, 208, .32);
    color: #b8c6dc;
    font-style: normal;
}

.landing-automation-map {
    position: relative;
    min-height: 360px;
}

.automation-flow-arrows {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.automation-flow-arrows .flow-arrow {
    fill: none;
    stroke: rgba(47, 116, 255, .82);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    marker-end: url(#automation-arrowhead);
    filter: drop-shadow(0 0 7px rgba(18, 100, 255, .75));
}

.automation-flow-arrows marker path {
    fill: none;
    stroke: rgba(104, 164, 255, .95);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.landing-automation-map::before,
.landing-automation-map::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: rgba(18, 100, 255, .34);
    box-shadow: 0 0 12px rgba(18, 100, 255, .45);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.landing-automation-map::before {
    width: 520px;
    height: 2px;
}

.landing-automation-map::after {
    width: 2px;
    height: 270px;
}

.automation-flow-center {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border: 18px solid rgba(18, 100, 255, .14);
    border-radius: 999px;
    background: #1264ff;
    color: #fff;
    box-shadow: 0 0 0 1px rgba(18, 100, 255, .28), 0 0 46px rgba(18, 100, 255, .55);
    font-size: 33px;
    transform: translate(-50%, -50%);
}

.automation-flow-center::before,
.automation-flow-center::after {
    content: "";
    position: absolute;
    border: 1px dashed rgba(18, 100, 255, .24);
    border-radius: 999px;
    inset: -26px;
}

.automation-flow-center::after {
    inset: -42px;
    opacity: .45;
}

.automation-flow-card {
    position: absolute;
    z-index: 3;
    width: min(43%, 385px);
    min-height: 134px;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 8px 18px;
    align-items: center;
    padding: 24px 66px 24px 23px;
    border: 1px solid rgba(48, 119, 255, .34);
    border-radius: 12px;
    background:
        radial-gradient(circle at 14% 22%, rgba(18, 100, 255, .16), transparent 34%),
        rgba(8, 24, 52, .86);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 20px 46px rgba(0,0,0,.24), 0 0 28px rgba(18, 100, 255, .16);
}

.automation-flow-card::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #68a4ff;
    box-shadow: 0 0 18px #1264ff;
}

.flow-card-1 { left: 0; top: 0; }
.flow-card-2 { right: 0; top: 0; }
.flow-card-3 { left: 0; bottom: 0; }
.flow-card-4 { right: 0; bottom: 0; }

.flow-card-1::after { right: -63px; bottom: -31px; }
.flow-card-2::after { left: -63px; bottom: -31px; }
.flow-card-3::after { right: -63px; top: -31px; }
.flow-card-4::after { left: -63px; top: -31px; }

.automation-flow-card i {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    grid-column: 1;
    grid-row: 1 / 3;
    border-radius: 999px;
    background: rgba(18, 100, 255, .13);
    color: #1264ff;
    font-style: normal;
    font-size: 35px;
}

.automation-flow-card strong {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    color: #fff;
    font-size: 23px;
    line-height: 1.15;
}

.automation-flow-card span {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    color: #aebbd0;
    font-size: 16.5px;
    line-height: 1.35;
    font-weight: 650;
}

.automation-flow-card b {
    position: absolute;
    right: 22px;
    bottom: 22px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(18, 100, 255, .13);
    color: #6da5ff;
    font-size: 14px;
}

.landing-automation-steps {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(42px, 1fr) auto minmax(42px, 1fr) auto minmax(42px, 1fr) auto;
    align-items: center;
    gap: 18px;
    max-width: 720px;
    margin: 26px 86px 0 auto;
    color: #aebbd0;
    font-size: 15px;
    font-weight: 800;
}

.landing-automation-steps span {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    white-space: nowrap;
}

.landing-automation-steps i {
    color: #8ca7d6;
    font-style: normal;
    font-size: 24px;
}

.landing-automation-steps em {
    height: 1px;
    border-top: 2px dotted rgba(174, 187, 208, .38);
}

.landing-pricing-section {
    position: relative;
    overflow: hidden;
    padding: 78px 0 88px;
    background:
        radial-gradient(circle at -8% 20%, rgba(18, 100, 255, .09), transparent 26%),
        radial-gradient(circle at 109% 42%, rgba(18, 100, 255, .07), transparent 24%),
        radial-gradient(circle at 98% 98%, rgba(18, 100, 255, .055), transparent 24%),
        linear-gradient(180deg, #f9fbff 0%, #fff 56%, #f8fbff 100%);
}

.landing-pricing-section::before,
.landing-pricing-section::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    border: 1px solid rgba(18, 100, 255, .08);
}

.landing-pricing-section::before {
    width: 420px;
    height: 420px;
    left: -210px;
    top: 132px;
}

.landing-pricing-section::after {
    width: 500px;
    height: 500px;
    right: -260px;
    bottom: 22px;
}

.landing-pricing-head {
    position: relative;
    z-index: 1;
    width: min(880px, calc(100% - 48px));
    margin: 0 auto 28px;
}

.landing-pricing-head p {
    color: #1264ff;
    font-size: 13px;
    letter-spacing: .25em;
}

.landing-pricing-head h2 {
    max-width: 820px;
    margin-inline: auto;
    color: #07152d;
    font-size: clamp(42px, 5.25vw, 64px);
    line-height: 1.04;
    letter-spacing: -.055em;
}

.landing-pricing-head span {
    max-width: 740px;
    justify-self: center;
    color: #667085;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
}

.billing-period-toggle {
    position: relative;
    z-index: 1;
    width: fit-content;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 7px;
    border: 1px solid #dfe8f7;
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 16px 36px rgba(16, 24, 40, .08);
    backdrop-filter: blur(10px);
}

.landing-billing-toggle {
    margin: -8px auto 30px;
}

.billing-period-toggle button {
    min-height: 44px;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #5b687d;
    font: inherit;
    font-size: 14px;
    font-weight: 950;
    cursor: pointer;
}

.billing-period-toggle button i {
    color: #6e7d94;
    font-size: 17px;
    font-style: normal;
}

.billing-period-toggle button.active {
    border-color: #1264ff;
    background: #fff;
    color: #1264ff;
    box-shadow: 0 10px 24px rgba(18, 100, 255, .14);
}

.billing-period-toggle button.active i {
    color: #1264ff;
}

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

.billing-period-toggle button.active span {
    background: #dff8ed;
    color: #0f8a5f;
}

.landing-price-grid {
    position: relative;
    z-index: 1;
    width: min(1140px, calc(100% - 48px));
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px;
    margin: 0 auto;
}

.landing-price-tier {
    position: relative;
    grid-column: span 2;
    display: grid;
    gap: 11px;
    align-content: start;
    min-height: 302px;
    padding: 34px 28px 24px;
    border: 1px solid #e2e9f5;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(28, 39, 64, .075);
}

.landing-price-tier:nth-child(4) {
    grid-column: 2 / span 2;
}

.landing-price-tier.is-featured {
    border-color: rgba(18, 100, 255, .72);
    box-shadow: 0 24px 54px rgba(18, 100, 255, .14);
}

.landing-price-badge {
    position: absolute;
    left: 28px;
    top: 18px;
    width: fit-content;
    min-height: 28px;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: #1264ff;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
}

.landing-price-badge i {
    font-style: normal;
}

.landing-price-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-top: 4px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1264ff;
    font-size: 25px;
    font-style: normal;
}

.landing-price-tier.is-featured .landing-price-icon {
    margin-top: 28px;
}

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

.landing-price-tier h3 {
    color: #07152d;
    font-size: 20px;
    line-height: 1.2;
}

.landing-price-amount {
    display: grid;
    gap: 2px;
}

.landing-price-tier strong {
    color: #1264ff;
    font-size: 46px;
    line-height: 1;
    letter-spacing: -.052em;
}

.landing-price-tier p {
    color: #667085;
    font-size: 14px;
    font-weight: 700;
}

.billing-annual-saving {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    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: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #344054;
    font-size: 14px;
    line-height: 1.45;
}

.landing-price-tier li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.landing-price-tier li::before {
    content: "✓";
    display: inline-grid;
    place-items: center;
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    margin-top: 1px;
    border-radius: 999px;
    background: #1264ff;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
}

.landing-price-tier a {
    align-self: end;
    width: 100%;
    justify-content: center;
    min-height: 46px;
    border-radius: 7px;
    font-size: 15px;
}

.landing-price-extra {
    grid-column: 4 / span 2;
    overflow: hidden;
    background: #071429;
    border-color: #071429;
    color: #fff;
    box-shadow: 0 24px 60px rgba(7, 20, 41, .28);
}

.landing-price-extra::after {
    content: "";
    position: absolute;
    inset: 16px 16px auto auto;
    width: 112px;
    height: 112px;
    border-radius: 999px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .16) 1.2px, transparent 1.2px);
    background-size: 12px 12px;
    opacity: .65;
}

.landing-price-extra .landing-price-badge {
    background: #91f0bd;
    color: #0a6543;
}

.landing-price-extra .landing-price-icon {
    margin-top: 28px;
    border: 2px solid rgba(145, 240, 189, .24);
    background: rgba(145, 240, 189, .12);
    color: #91f0bd;
}

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

.landing-price-extra strong {
    color: #91f0bd;
}

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

.landing-price-extra li::before {
    background: #91f0bd;
    color: #07251a;
}

.landing-price-extra .landing-secondary-cta {
    background: #fff;
    color: #071429;
    border-color: #fff;
    box-shadow: none;
}

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

    .landing-price-tier,
    .landing-price-tier:nth-child(4),
    .landing-price-extra {
        grid-column: auto;
    }
}

.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 {
    position: relative;
    overflow: hidden;
    padding: 74px 0 26px;
    color: #101828;
    background:
        radial-gradient(circle at 10% 16%, rgba(18, 100, 255, .08), transparent 27%),
        radial-gradient(circle at 86% 0%, rgba(18, 100, 255, .07), transparent 28%),
        linear-gradient(180deg, #f6faff 0%, #f4f8ff 100%);
}

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

.landing-migration-copy {
    display: grid;
    justify-items: start;
}

.landing-migration-copy p {
    margin: 0 0 10px;
    color: #1264ff;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.landing-migration-grid h2 {
    max-width: 620px;
    margin: 0;
    color: #07152d;
    font-size: clamp(40px, 4.45vw, 56px);
    line-height: 1.07;
    letter-spacing: -.055em;
}

.landing-migration-copy > span {
    display: block;
    max-width: 610px;
    margin: 18px 0 26px;
    color: #4e5e74;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.55;
}

.landing-migration-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

.landing-migration-grid .landing-migration-cta {
    min-width: 164px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 24px;
    border-radius: 6px;
    color: #fff;
    background: linear-gradient(135deg, #1264ff, #0b55e8);
    box-shadow: 0 16px 34px rgba(18, 100, 255, .28);
    font-size: 14px;
    font-weight: 950;
    text-decoration: none;
}

.landing-migration-cta i {
    font-style: normal;
    font-size: 18px;
    line-height: 1;
}

.landing-migration-actions small {
    max-width: 230px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    color: #4e5e74;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.landing-migration-actions small b {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #e9f1ff;
    color: #1264ff;
    font-size: 19px;
}

.landing-migration-panel {
    position: relative;
    padding: 14px 22px 14px 48px;
    border: 1px solid rgba(200, 216, 239, .72);
    border-radius: 18px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 24px 60px rgba(39, 82, 150, .16);
    backdrop-filter: blur(14px);
}

.landing-migration-panel::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 44px;
    bottom: 44px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, #1264ff, rgba(18, 100, 255, .18));
}

.landing-migration-steps {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.landing-migration-steps li {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.landing-migration-steps li > em {
    position: relative;
    z-index: 2;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    margin-left: -34px;
    border-radius: 999px;
    background: #1264ff;
    color: #fff;
    box-shadow: 0 10px 20px rgba(18, 100, 255, .32);
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
}

.landing-migration-steps li > div {
    min-height: 58px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
    margin: 0;
    padding: 10px 14px 10px 10px;
    border: 1px solid #dfe8f7;
    border-radius: 10px;
    background: linear-gradient(180deg, #fff, #fbfdff);
    box-shadow: 0 12px 28px rgba(29, 52, 90, .045);
}

.landing-migration-steps i {
    grid-row: 1 / span 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #eef4ff;
    color: #1264ff;
    font-size: 22px;
    font-style: normal;
}

.landing-migration-steps strong {
    color: #07152d;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.2;
}

.landing-migration-steps span {
    color: #65738a;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.landing-final-cta {
    position: relative;
    overflow: hidden;
    padding: 4px 0 8px;
    background: #f4f8ff;
    text-align: center;
}

.landing-final-card {
    position: relative;
    isolation: isolate;
    width: min(1560px, calc(100% - 24px));
    min-height: 374px;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin: 0 auto;
    padding: 54px clamp(320px, 27vw, 430px) 44px;
    border: 1px solid rgba(54, 96, 164, .22);
    border-radius: 20px;
    background:
        radial-gradient(circle at 88% 54%, rgba(25, 112, 255, .34), transparent 17%),
        radial-gradient(circle at 13% 48%, rgba(18, 100, 255, .20), transparent 19%),
        radial-gradient(circle at 48% 0%, rgba(80, 132, 255, .08), transparent 28%),
        linear-gradient(135deg, #061124 0%, #071831 54%, #041023 100%);
    box-shadow: 0 30px 72px rgba(4, 16, 34, .22);
}

.landing-final-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 99% 1px, rgba(112, 154, 229, .30) 1px, transparent 1.4px) 0 0 / 14px 14px,
        radial-gradient(circle at 6% 76%, rgba(60, 118, 226, .16), transparent 22%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.05) 40%, rgba(0,0,0,.72) 100%);
}

.landing-final-card::after {
    content: "";
    position: absolute;
    right: -36px;
    top: 235px;
    width: 380px;
    height: 86px;
    border-top: 4px solid rgba(18, 100, 255, .82);
    border-radius: 50%;
    filter: drop-shadow(0 0 24px rgba(18, 100, 255, .72));
    transform: rotate(-11deg);
}

.landing-final-copy {
    position: relative;
    z-index: 3;
    display: grid;
    justify-items: center;
}

.landing-final-cta h2 {
    max-width: 710px;
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 3.05vw, 44px);
    line-height: 1.06;
    letter-spacing: -.045em;
}

.landing-final-cta p {
    max-width: 650px;
    margin: 15px auto 30px;
    color: #b6c0d2;
    font-size: 18px;
    font-weight: 650;
    line-height: 1.55;
}

.landing-final-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
}

.landing-final-actions .landing-primary-cta,
.landing-final-actions .landing-secondary-cta {
    min-height: 66px;
    border-radius: 12px;
    font-size: 17px;
}

.landing-final-actions .landing-primary-cta {
    min-width: 306px;
    background: linear-gradient(135deg, #1676ff, #0f62ff 58%, #0957ee);
    box-shadow: 0 20px 42px rgba(18, 100, 255, .42);
}

.landing-final-actions .landing-secondary-cta {
    min-width: 204px;
    border-color: rgba(255, 255, 255, .64);
    color: #fff;
    background: rgba(7, 20, 41, .42);
    box-shadow: none;
}

.landing-final-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 24px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.landing-final-trust li {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #b8c6dc;
    font-size: 14px;
    font-weight: 800;
}

.landing-final-trust li::before {
    content: "✓";
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #76a8ff;
    border-radius: 999px;
    color: #76a8ff;
    font-size: 11px;
    font-weight: 950;
}

.landing-final-trust li:not(:last-child)::after {
    content: "";
    width: 4px;
    height: 4px;
    margin-left: 14px;
    border-radius: 999px;
    background: rgba(116, 164, 255, .72);
}

.landing-final-product {
    position: absolute;
    left: 48px;
    top: 52px;
    width: 326px;
    height: 256px;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(126, 160, 214, .15);
    border-radius: 14px;
    background: rgba(6, 20, 41, .66);
    box-shadow: 0 28px 58px rgba(0, 0, 0, .30);
    transform: rotate(6deg) translateX(-8px);
}

.landing-final-product aside {
    display: grid;
    align-content: start;
    gap: 17px;
    padding: 19px 14px;
    border-right: 1px solid rgba(154, 180, 222, .08);
    background: rgba(4, 15, 33, .62);
}

.landing-final-product aside strong {
    position: relative;
    width: 104px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
}

.landing-final-product aside strong::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background:
        linear-gradient(135deg, transparent 46%, #1264ff 47% 66%, transparent 67%),
        radial-gradient(circle at 38% 38%, #1f84ff, #0f57e8);
}

.landing-final-product aside span {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(79, 148, 255, .58);
    border-radius: 4px;
}

.landing-final-product section {
    position: relative;
    padding: 42px 22px;
}

.landing-final-product section::before,
.landing-final-product section::after {
    content: "";
    display: block;
    height: 12px;
    margin-bottom: 13px;
    border-radius: 999px;
    background: rgba(91, 124, 178, .18);
}

.landing-final-product section::before {
    width: 88px;
}

.landing-final-product section::after {
    width: 144px;
}

.landing-final-product i {
    position: absolute;
    left: 22px;
    bottom: 44px;
    width: 170px;
    height: 92px;
    border-radius: 14px;
    background:
        linear-gradient(145deg, transparent 38%, rgba(18, 100, 255, .74) 39% 42%, transparent 43%),
        linear-gradient(23deg, transparent 51%, rgba(73, 139, 255, .67) 52% 55%, transparent 56%),
        linear-gradient(160deg, transparent 62%, rgba(18, 100, 255, .50) 63% 66%, transparent 67%),
        rgba(18, 100, 255, .08);
    box-shadow: 0 0 38px rgba(18, 100, 255, .28);
}

.landing-final-product b {
    position: absolute;
    right: 34px;
    bottom: 66px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #2ee6a6;
    box-shadow: 0 0 18px rgba(46, 230, 166, .72);
}

.landing-final-product em {
    position: absolute;
    right: 58px;
    bottom: 118px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #1264ff;
    box-shadow: 0 0 22px 8px rgba(18, 100, 255, .42);
}

.landing-final-floating {
    position: absolute;
    right: 86px;
    top: 74px;
    width: 288px;
    height: 214px;
    transform: rotate(-7deg);
}

.landing-final-floating > span {
    position: absolute;
    right: 24px;
    top: 0;
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(126, 160, 214, .2);
    border-radius: 18px;
    background: rgba(13, 30, 58, .86);
    color: #5db6ff;
    box-shadow: 0 22px 50px rgba(0, 0, 0, .32);
    font-size: 46px;
}

.landing-final-floating div {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 224px;
    min-height: 132px;
    display: grid;
    gap: 16px;
    padding: 24px;
    border: 1px solid rgba(126, 160, 214, .14);
    border-radius: 18px;
    background: rgba(13, 30, 58, .82);
    box-shadow: 0 22px 50px rgba(0, 0, 0, .28);
}

.landing-final-floating b {
    height: 9px;
    border-radius: 999px;
    background: rgba(144, 168, 209, .20);
}

.landing-final-floating b:first-child {
    width: 120px;
}

.landing-final-floating b:nth-child(2) {
    width: 160px;
}

.landing-final-floating i {
    width: 116px;
    height: 19px;
    border-radius: 999px;
    background: #1264ff;
    box-shadow: 152px 0 0 -6px #2ee6a6;
}

.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 {
    position: relative;
    overflow: hidden;
    padding: 40px 0 38px;
    color: #111827;
    background:
        radial-gradient(circle at 82% 14%, rgba(73, 139, 255, .19), transparent 28%),
        radial-gradient(circle at 0% 100%, rgba(90, 192, 255, .18), transparent 34%),
        linear-gradient(180deg, #eef6ff 0%, #f7fbff 74%, #f5f8ff 100%);
    border-bottom: 1px solid #dbe6f4;
}

.blog-hero::before,
.blog-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border: 1px solid rgba(20, 72, 150, .07);
    border-radius: 999px;
}

.blog-hero::before {
    top: -170px;
    right: 72px;
    width: 330px;
    height: 460px;
    transform: rotate(10deg);
}

.blog-hero::after {
    top: -200px;
    right: -34px;
    width: 390px;
    height: 520px;
    transform: rotate(8deg);
}

.blog-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 304px;
    gap: 80px;
    align-items: center;
}

.blog-hero .eyebrow {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 14px;
    padding: 5px 11px;
    border: 1px solid rgba(13, 71, 217, .10);
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    color: #124fc9;
    box-shadow: 0 8px 22px rgba(13, 71, 217, .08);
    font-size: 10px;
    letter-spacing: .08em;
    font-weight: 950;
}

.blog-hero .eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #2769ff;
    box-shadow: 0 0 0 3px rgba(39, 105, 255, .13);
}

.blog-hero h1 {
    max-width: 570px;
    margin: 0 0 12px;
    color: #061224;
    font-size: clamp(40px, 5.2vw, 50px);
    line-height: .98;
    letter-spacing: -.045em;
}

.blog-hero p {
    max-width: 590px;
    margin: 0;
    color: #69798c;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 650;
}

.blog-search {
    width: min(100%, 496px);
    min-height: 44px;
    display: grid;
    grid-template-columns: 21px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 4px 5px 4px 15px;
    border: 1px solid rgba(202, 216, 235, .88);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(16, 24, 40, .10), 0 2px 0 rgba(255,255,255,.75) inset;
}

.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: 12px;
    font-weight: 850;
}

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

.blog-search button {
    min-height: 34px;
    padding: 0 18px;
    border: 0;
    border-radius: 7px;
    background: #0d47d9;
    color: #fff;
    box-shadow: 0 8px 18px rgba(13, 71, 217, .24);
    font-size: 11px;
    font-weight: 950;
    cursor: pointer;
}

.blog-search button:hover {
    background: #0838b5;
}

.blog-hero-featured {
    min-height: 230px;
    position: relative;
    overflow: hidden;
    display: block;
    padding: 20px 18px;
    border: 1px solid rgba(135, 178, 255, .35);
    border-radius: 16px;
    background:
        radial-gradient(circle at 94% 17%, rgba(127, 188, 255, .92), transparent 31%),
        radial-gradient(circle at 42% -20%, rgba(44, 95, 255, .48), transparent 42%),
        linear-gradient(135deg, #071852 0%, #0d38b7 52%, #1e69ef 100%);
    color: #fff;
    box-shadow: 0 22px 55px rgba(13, 71, 217, .30);
}

.blog-hero-featured::before,
.blog-hero-featured::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    pointer-events: none;
}

.blog-hero-featured::before {
    top: -70px;
    right: 60px;
    width: 142px;
    height: 320px;
    transform: rotate(4deg);
}

.blog-hero-featured::after {
    top: -86px;
    right: 14px;
    width: 142px;
    height: 340px;
    transform: rotate(5deg);
}

.blog-hero-featured-copy {
    position: relative;
    z-index: 2;
    max-width: 190px;
}

.blog-hero-featured-mark {
    position: absolute;
    z-index: 3;
    top: 20px;
    right: 20px;
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    border-radius: 5px;
    background: #fff;
    color: #1753db;
    font-size: 10px;
    font-weight: 950;
}

.blog-hero-featured span {
    width: fit-content;
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #dce8ff;
    font-size: 9px;
    font-weight: 950;
}

.blog-hero-featured strong {
    display: block;
    margin-top: 16px;
    font-size: 19px;
    line-height: 1.02;
    letter-spacing: -.035em;
}

.blog-hero-featured p {
    margin: 9px 0 0;
    color: rgba(255,255,255,.78);
    font-size: 11px;
    line-height: 1.38;
    font-weight: 750;
}

.blog-hero-featured-copy > div {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-top: 31px;
}

.blog-hero-featured a {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 11px;
    border-radius: 7px;
    background: #fff;
    color: #07111f;
    text-decoration: none;
    font-size: 10px;
    font-weight: 950;
}

.blog-hero-featured a em {
    font-style: normal;
}

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

.blog-hero-featured-visual {
    position: absolute;
    z-index: 1;
    right: 14px;
    bottom: 26px;
    width: 112px;
    height: 128px;
    border-radius: 9px;
    background: linear-gradient(180deg, #fff 0%, #edf4ff 100%);
    box-shadow: 0 18px 36px rgba(0,0,0,.18);
    transform: rotate(3deg);
}

.blog-hero-featured-visual i,
.blog-hero-featured-visual b,
.blog-hero-featured-visual small {
    position: absolute;
    display: block;
    border-radius: 999px;
}

.blog-hero-featured-visual i:nth-child(1) {
    top: 12px;
    left: 12px;
    width: 4px;
    height: 4px;
    background: #ff6b6b;
}

.blog-hero-featured-visual i:nth-child(2) {
    top: 12px;
    left: 20px;
    width: 4px;
    height: 4px;
    background: #ffd166;
}

.blog-hero-featured-visual i:nth-child(3) {
    top: 12px;
    left: 28px;
    width: 4px;
    height: 4px;
    background: #4ade80;
}

.blog-hero-featured-visual b {
    top: 27px;
    left: 12px;
    width: 42px;
    height: 4px;
    background: #2e72ff;
    box-shadow:
        0 17px 0 0 #dce8ff,
        0 34px 0 0 #dce8ff,
        0 62px 0 0 #dce8ff;
}

.blog-hero-featured-visual small {
    right: 13px;
    top: 55px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #7bb7ff, #286dff);
    box-shadow:
        -56px 0 0 13px rgba(220, 232, 255, .88),
        -5px 43px 0 -4px #1f5df0;
}

.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-search-result-head {
    display: block;
    margin-bottom: 18px;
}

.blog-search-result-head h2 {
    margin: 0 0 3px;
    font-size: 24px;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.blog-search-result-head span {
    display: block;
    color: #667085;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 750;
}

.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-search-results-section {
    padding: 28px 0 78px;
    color: #111827;
}

.blog-search-results-section[hidden] {
    display: none !important;
}

.blog-search-result-group {
    display: grid;
    gap: 14px;
}

.blog-search-result-group + .blog-search-result-group {
    margin-top: 28px;
}

.blog-search-result-group[hidden] {
    display: none !important;
}

.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-copy > 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-actions {
        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 {
        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;
}

.profile-tag-list span.profile-tag-chip {
    align-items: flex-start;
    border: 1px solid #dbe7ff;
    border-radius: 14px;
    background: linear-gradient(135deg, #f7faff 0%, #eef5ff 100%);
    color: #173b7a;
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
    max-width: 260px;
    padding: 8px 10px;
}

.profile-tag-chip strong {
    font-size: 12px;
    font-weight: 850;
}

.profile-tag-chip small {
    color: #49617d;
    font-size: 10px;
    font-weight: 650;
}

.profile-tag-chip em {
    color: #6b7d95;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
}

.contact-profile-main {
    min-width: 0;
}

.contact-profile-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.contact-activity-panel {
    margin-bottom: 16px;
}

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

.activity-row .activity-explanation {
    display: block;
    margin-top: 5px;
    color: #475467;
    font-size: 12px;
    font-style: normal;
    line-height: 1.45;
}

.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: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    min-height: calc(100vh - 52px);
}

.campaign-report-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 60px;
    padding: 10px 14px;
    border: 1px solid #e5ebf4;
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
    backdrop-filter: blur(14px);
}

.campaign-report-topbar-back {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #e1e7f0;
    border-radius: 10px;
    background: #fff;
    color: #798397;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.campaign-report-topbar-links {
    display: flex;
    gap: 8px;
    align-items: center;
    overflow-x: auto;
    min-width: 0;
    padding: 2px;
    scrollbar-width: thin;
}

.campaign-report-topbar-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #667085;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.campaign-report-topbar-links a.active,
.campaign-report-topbar-links a:hover,
.campaign-report-topbar-links a:focus-visible {
    border-color: #dfe6f1;
    background: #fff;
    color: #172033;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.campaign-report-topbar-meta {
    display: grid;
    justify-items: end;
    gap: 2px;
    min-width: 150px;
    color: #7e8798;
    text-align: right;
}

.campaign-report-topbar-meta span {
    color: #172033;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.campaign-report-topbar-meta small {
    color: #8b95a7;
    font-size: 11px;
    font-weight: 800;
}

@media (max-width: 920px) {
    .campaign-report-topbar {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .campaign-report-topbar-meta {
        grid-column: 1 / -1;
        justify-items: start;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .campaign-report-topbar {
        gap: 10px;
        padding: 10px;
        border-radius: 12px;
    }

    .campaign-report-topbar-links a {
        min-height: 34px;
        padding: 0 12px;
        font-size: 12px;
    }
}

.campaign-insights-page {
    display: grid;
    gap: 18px;
}

.campaign-insights-hero,
.campaign-insights-window,
.campaign-insights-picker,
.campaign-insights-empty-analysis {
    border: 1px solid #e5ebf4;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .06);
}

.campaign-insights-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 24px;
}

.campaign-insights-hero h1,
.campaign-insights-picker-head h2,
.campaign-insights-window-head h2,
.campaign-insights-empty-analysis h2 {
    margin: 0;
    color: #172033;
    font-size: 28px;
    letter-spacing: -.03em;
}

.campaign-insights-hero span,
.campaign-insights-picker-head span,
.campaign-insights-window-head span,
.campaign-insights-empty-analysis span {
    display: block;
    margin-top: 6px;
    color: #667085;
    font-weight: 750;
}

.campaign-insights-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(160px, .8fr)) auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid #e5ebf4;
    border-radius: 18px;
    background: #f8fafc;
}

.campaign-insights-filters label {
    display: grid;
    gap: 7px;
    color: #667085;
    font-size: 12px;
    font-weight: 900;
}

.campaign-insights-filters input,
.campaign-insights-filters select {
    min-height: 42px;
    border: 1px solid #dfe6f1;
    border-radius: 12px;
    background: #fff;
    color: #172033;
    font-weight: 850;
}

.campaign-insights-empty-analysis {
    padding: 26px;
    background:
        radial-gradient(circle at 14% 18%, rgba(37, 99, 235, .10), transparent 28%),
        linear-gradient(135deg, #fff, #f5f8ff 58%, #f7fbf8);
}

.campaign-insights-window {
    padding: 18px;
    background: #f4f7fb;
}

.campaign-insights-window-head,
.campaign-insights-picker-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.campaign-insights-window-head {
    padding: 4px 4px 16px;
}

.campaign-insights-analysis-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(300px, .95fr);
    gap: 18px;
}

.campaign-insights-analysis-main,
.campaign-insights-action-panel {
    border: 1px solid #e5ebf4;
    border-radius: 18px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.campaign-insights-analysis-main {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.campaign-insights-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.campaign-insights-panel-head h3,
.campaign-insights-bars h4,
.campaign-insights-method h4,
.campaign-insights-action-panel strong {
    margin: 0;
    color: #172033;
}

.campaign-insights-panel-head p,
.campaign-insights-method li,
.campaign-insights-action-panel p {
    color: #667085;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.55;
}

.campaign-insights-panel-head span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #087443;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.campaign-insights-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.campaign-insights-metrics div,
.campaign-insights-data-grid div {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid #e5ebf4;
    border-radius: 14px;
    background: #f8fafc;
}

.campaign-insights-metrics strong,
.campaign-insights-data-grid strong {
    color: #172033;
    font-size: 22px;
    font-weight: 950;
}

.campaign-insights-metrics span,
.campaign-insights-data-grid span {
    color: #667085;
    font-size: 12px;
    font-weight: 850;
}

.campaign-insights-bars {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e5ebf4;
    border-radius: 16px;
    background: #fbfcff;
}

.campaign-insights-bars div {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 86px;
    gap: 12px;
    align-items: center;
}

.campaign-insights-bars span,
.campaign-insights-bars b {
    color: #667085;
    font-size: 12px;
    font-weight: 900;
}

.campaign-insights-bars i {
    display: block;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #7c5cff, #8b6cf0);
}

.campaign-insights-bars i.recommended {
    background: linear-gradient(90deg, #0f9f6e, #22c55e);
}

.campaign-insights-data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.campaign-insights-method {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 16px;
    background: #eaf2ff;
    color: #1d4ed8;
}

.campaign-insights-method ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
}

.campaign-insights-method span {
    display: inline-flex;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    color: #087443;
    font-size: 12px;
    font-weight: 950;
}

.campaign-insights-action-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.campaign-insights-action-panel > div {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid #e5ebf4;
    border-radius: 16px;
    background: #fff;
}

.campaign-insights-action-panel > div > span {
    color: #2563eb;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.campaign-insights-action-panel form,
.sendtime-premium-actions form {
    margin: 0;
}

.campaign-insights-action-hero {
    background: #dcfce7 !important;
    border-color: #bbf7d0 !important;
}

.campaign-insights-forecast {
    background: #fff7d6 !important;
    border-color: #fde68a !important;
}

.campaign-insights-detail {
    display: grid;
    gap: 16px;
    padding: 20px;
    border: 1px solid #e5ebf4;
    border-radius: 24px;
    background:
        radial-gradient(circle at 8% 0%, rgba(199, 162, 78, .13), transparent 34%),
        linear-gradient(135deg, #ffffff, #f7f9fd 62%, #fffaf0);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .06);
}

.campaign-insights-detail-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
}

.campaign-insights-detail-head h2 {
    margin: 0;
    color: #172033;
    font-size: 26px;
    letter-spacing: -.03em;
}

.campaign-insights-detail-head span {
    display: block;
    margin-top: 6px;
    color: #667085;
    font-weight: 750;
}

.campaign-insights-detail-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.campaign-insights-detail-tabs button {
    display: grid;
    gap: 3px;
    min-width: 220px;
    padding: 12px 14px;
    border: 1px solid #dfe6f1;
    border-radius: 14px;
    background: #fff;
    color: #172033;
    text-align: left;
    cursor: pointer;
}

.campaign-insights-detail-tabs button strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.campaign-insights-detail-tabs button span {
    color: #667085;
    font-size: 12px;
    font-weight: 850;
}

.campaign-insights-detail-tabs button.is-active,
.campaign-insights-detail-tabs button:hover,
.campaign-insights-detail-tabs button:focus-visible {
    border-color: #15366f;
    box-shadow: 0 14px 36px rgba(21, 54, 111, .10);
}

.campaign-insights-side-by-side {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.campaign-insights-compare-tile {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid #e5ebf4;
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.campaign-insights-compare-tile:hover,
.campaign-insights-compare-tile:focus-visible,
.campaign-insights-compare-tile.is-active {
    transform: translateY(-2px);
    border-color: #9db7ff;
    box-shadow: 0 18px 42px rgba(37, 99, 235, .12);
    outline: none;
}

.campaign-insights-compare-tile small,
.campaign-insights-compare-tile span {
    color: #667085;
    font-size: 12px;
    font-weight: 850;
}

.campaign-insights-compare-tile strong {
    color: #172033;
    font-size: 17px;
    line-height: 1.25;
}

.campaign-insights-tile-bars {
    display: grid;
    gap: 8px;
}

.campaign-insights-tile-bars div {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) 60px;
    gap: 8px;
    align-items: center;
}

.campaign-insights-tile-bars i {
    display: block;
    height: 9px;
    border-radius: 999px;
    background: #cdd6e6;
}

.campaign-insights-tile-bars i.open {
    background: #c7a24e;
}

.campaign-insights-tile-bars i.click {
    background: #5e1f2a;
}

.campaign-insights-tile-bars b {
    color: #172033;
    font-size: 12px;
    text-align: right;
}

.campaign-insights-detail-panels {
    display: grid;
}

.campaign-insights-detail-panel {
    display: none;
    gap: 16px;
    padding: 18px;
    border: 1px solid #e5ebf4;
    border-radius: 20px;
    background: #fff;
}

.campaign-insights-detail-panel.is-active {
    display: grid;
}

.campaign-insights-detail-summary,
.campaign-insights-detail-body {
    display: grid;
    gap: 16px;
}

.campaign-insights-detail-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.campaign-insights-detail-summary h3 {
    margin: 0;
    color: #172033;
    font-size: 24px;
    letter-spacing: -.03em;
}

.campaign-insights-detail-summary span {
    display: block;
    margin-top: 7px;
    color: #667085;
    font-weight: 760;
    line-height: 1.5;
}

.campaign-insights-detail-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.campaign-insights-detail-metrics div {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
}

.campaign-insights-detail-metrics strong {
    color: #172033;
    font-size: 20px;
    font-weight: 950;
}

.campaign-insights-detail-metrics span {
    color: #667085;
    font-size: 12px;
    font-weight: 850;
}

.campaign-insights-detail-body {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, .9fr) minmax(240px, .85fr);
}

.campaign-insights-detail-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e5ebf4;
    border-radius: 16px;
    background: #fbfcff;
}

.campaign-insights-detail-card h4 {
    margin: 0;
    color: #172033;
}

.campaign-insights-bars.compact {
    padding: 0;
    border: 0;
    background: transparent;
}

.campaign-insights-window-list,
.campaign-insights-quality-list {
    display: grid;
    gap: 8px;
}

.campaign-insights-window-list div {
    display: grid;
    gap: 3px;
    padding: 10px;
    border-radius: 12px;
    background: #fff;
}

.campaign-insights-window-list strong,
.campaign-insights-quality-list b {
    color: #172033;
}

.campaign-insights-window-list span,
.campaign-insights-quality-list span {
    color: #667085;
    font-size: 12px;
    font-weight: 850;
}

.campaign-insights-quality-list span {
    display: block;
    padding: 10px;
    border-radius: 12px;
    background: #fff;
}

.campaign-insights-picker {
    padding: 20px;
}

.campaign-insights-picker-head {
    margin-bottom: 16px;
}

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

.campaign-insight-card {
    position: relative;
    display: grid;
    gap: 12px;
    min-height: 245px;
    padding: 18px;
    border: 1px solid #e5ebf4;
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(37, 99, 235, .08), transparent 36%),
        #fff;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.campaign-insight-card:hover,
.campaign-insight-card.is-selected,
.campaign-insight-card:has(input:checked) {
    transform: translateY(-2px);
    border-color: #9db7ff;
    box-shadow: 0 18px 42px rgba(37, 99, 235, .12);
}

.campaign-insight-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.campaign-insight-check {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    border: 1px solid #cfd8e8;
    border-radius: 8px;
    background: #fff;
}

.campaign-insight-card input:checked + .campaign-insight-check,
.campaign-insight-card:has(input:checked) .campaign-insight-check {
    border-color: #15366f;
    background: #15366f;
    box-shadow: inset 0 0 0 5px #fff;
}

.campaign-insight-card small,
.campaign-insight-card em {
    color: #667085;
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
}

.campaign-insight-card strong {
    padding-right: 28px;
    color: #172033;
    font-size: 18px;
    line-height: 1.25;
}

.campaign-insight-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.campaign-insight-card-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2452a6;
    font-size: 11px;
    font-weight: 900;
}

.campaign-insight-card-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: auto;
}

.campaign-insight-card-metrics div {
    display: grid;
    gap: 3px;
    padding: 10px;
    border-radius: 12px;
    background: #f8fafc;
}

.campaign-insight-card-metrics b {
    color: #172033;
    font-size: 15px;
    font-weight: 950;
}

.campaign-insight-card-metrics span {
    color: #7c8698;
    font-size: 11px;
    font-weight: 850;
}

.campaign-insights-no-results {
    grid-column: 1 / -1;
    display: grid;
    gap: 6px;
    padding: 28px;
    border: 1px dashed #cfd8e8;
    border-radius: 16px;
    color: #667085;
    text-align: center;
}

@media (max-width: 1180px) {
    .campaign-insights-filters,
    .campaign-insights-analysis-grid,
    .campaign-insights-detail-body,
    .campaign-insights-card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .campaign-insights-filters .button,
    .campaign-insights-analysis-grid > *,
    .campaign-insights-detail-body > *,
    .campaign-insights-card-grid .campaign-insights-no-results {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .campaign-insights-hero,
    .campaign-insights-window-head,
    .campaign-insights-picker-head,
    .campaign-insights-detail-head,
    .campaign-insights-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .campaign-insights-filters,
    .campaign-insights-metrics,
    .campaign-insights-data-grid,
    .campaign-insights-detail-summary,
    .campaign-insights-detail-metrics,
    .campaign-insights-detail-body,
    .campaign-insights-card-grid {
        grid-template-columns: 1fr;
    }

    .campaign-insights-bars div {
        grid-template-columns: 1fr;
    }
}

.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-recipient-table .campaign-link-row {
    grid-template-columns: minmax(220px, 1fr) 150px minmax(260px, 1.2fr) 130px;
    align-items: start;
}

.campaign-recipient-table .campaign-link-row > span {
    min-width: 0;
}

.campaign-recipient-table .campaign-link-row strong {
    display: block;
    color: var(--ink);
    font-size: 12px;
}

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

.mail-activity-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.mail-activity-card {
    min-width: 0;
}

.mail-activity-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.mail-activity-card-head h2,
.mail-activity-card-head h4,
.mail-activity-card-head p {
    margin: 0;
}

.mail-activity-card-head h2,
.mail-activity-card-head h4 {
    color: var(--ink);
    font-size: 15px;
    font-weight: 850;
    letter-spacing: -.02em;
}

.mail-activity-card-head p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
}

.mail-activity-card-head label {
    position: relative;
    flex: 0 0 min(230px, 42%);
}

.mail-activity-card-head label span {
    position: absolute;
    left: 12px;
    top: 50%;
    color: #98a2b3;
    font-size: 13px;
    transform: translateY(-50%);
}

.mail-activity-card-head input {
    width: 100%;
    height: 38px;
    padding: 0 12px 0 32px;
    border: 1px solid #dfe8f5;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--ink);
    font-size: 13px;
    font-weight: 650;
    outline: none;
}

.mail-activity-card-head input:focus {
    border-color: rgba(15, 111, 255, .45);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(15, 111, 255, .08);
}

.mail-activity-table {
    display: grid;
    overflow: hidden;
    border: 1px solid #dfe8f5;
    border-radius: 12px;
    background: #fff;
}

.mail-activity-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 14px;
    align-items: center;
    min-height: 38px;
    padding: 10px 12px;
    border-bottom: 1px solid #edf2f8;
    color: #344054;
    font-size: 13px;
    font-weight: 750;
}

.mail-activity-row:last-child {
    border-bottom: 0;
}

.mail-activity-row.head {
    min-height: 34px;
    background: #f8fafc;
    color: #667085;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mail-activity-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.mail-activity-row strong {
    color: #344054;
    font-size: 13px;
    font-weight: 850;
    text-align: right;
}

.mail-activity-row.is-empty {
    color: #98a2b3;
}

.mail-activity-footer {
    padding: 10px 12px;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
}

@media (max-width: 900px) {
    .mail-activity-breakdown-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mail-activity-card-head {
        flex-direction: column;
    }

    .mail-activity-card-head label {
        flex-basis: auto;
        width: 100%;
    }
}

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

.campaign-sendtime-report,
.campaign-compare-report {
    --sendtime-ink: #16110c;
    --sendtime-muted: #7b756a;
    --sendtime-paper: #fbf6ea;
    --sendtime-line: #eadfcb;
    --sendtime-gold: #c69a32;
    --sendtime-gold-soft: #f0d991;
    --sendtime-oxblood: #6f2430;
    --sendtime-oxblood-soft: #ead4d8;
    background:
        radial-gradient(circle at 18% 0%, rgba(198, 154, 50, .16), transparent 34%),
        radial-gradient(circle at 100% 18%, rgba(111, 36, 48, .10), transparent 32%),
        linear-gradient(180deg, #fffdf8 0%, #fbf6ea 100%);
    border-color: #e7d7bd;
    color: var(--sendtime-ink);
}

.campaign-sendtime-head {
    align-items: flex-start;
}

.campaign-sendtime-head .eyebrow {
    margin: 0 0 4px;
    color: var(--sendtime-oxblood);
    font-size: 10px;
    letter-spacing: .16em;
}

.campaign-sendtime-head h2 {
    font-size: 24px;
    letter-spacing: -.03em;
}

.campaign-sendtime-head span {
    display: block;
    max-width: 760px;
    margin-top: 5px;
    color: var(--sendtime-muted);
    font-size: 13px;
    line-height: 1.45;
}

.sendtime-confidence {
    display: grid;
    gap: 3px;
    min-width: 112px;
    padding: 10px 12px;
    border: 1px solid rgba(198, 154, 50, .34);
    border-radius: 12px;
    background: rgba(255, 255, 255, .72);
    text-align: right;
}

.sendtime-confidence span {
    margin: 0;
    color: var(--sendtime-muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.sendtime-confidence strong {
    color: #1a1712;
    font-size: 18px;
}

.sendtime-confidence-strong strong { color: #027a48; }
.sendtime-confidence-medium strong { color: #b76e00; }
.sendtime-confidence-low strong { color: #b42318; }

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

.sendtime-summary-grid article,
.sendtime-insight-grid article,
.sendtime-premium-actions article,
.sendtime-heatmap-card,
.sendtime-detail-card,
.campaign-compare-card,
.campaign-compare-detail {
    border: 1px solid var(--sendtime-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 18px 42px rgba(77, 57, 24, .07);
}

.sendtime-summary-grid article {
    display: grid;
    align-content: start;
    gap: 7px;
    min-height: 122px;
    padding: 16px;
}

.sendtime-summary-grid span,
.sendtime-detail-card > span,
.sendtime-premium-actions span,
.campaign-compare-card > span,
.campaign-compare-detail > div > span {
    color: var(--sendtime-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sendtime-summary-grid strong {
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: -.03em;
}

.sendtime-recommendation-card {
    color: #fff;
    background:
        radial-gradient(circle at 92% 8%, rgba(240, 217, 145, .35), transparent 32%),
        linear-gradient(135deg, #241811 0%, #57202c 100%) !important;
    border-color: rgba(198, 154, 50, .42) !important;
}

.sendtime-recommendation-card span,
.sendtime-recommendation-card p {
    color: #e8dcc5 !important;
}

.sendtime-recommendation-card strong {
    color: #f7e7b3;
}

.sendtime-summary-grid p,
.sendtime-premium-actions p,
.sendtime-card-head p,
.campaign-compare-card em,
.campaign-compare-card small,
.campaign-compare-detail p {
    margin: 0;
    color: var(--sendtime-muted);
    font-size: 12px;
    line-height: 1.45;
}

.sendtime-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 14px;
    align-items: stretch;
}

.sendtime-heatmap-card,
.sendtime-detail-card {
    padding: 16px;
}

.sendtime-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.sendtime-card-head h3,
.sendtime-detail-card h3,
.sendtime-premium-actions strong,
.campaign-compare-detail h3 {
    margin: 0;
    color: var(--sendtime-ink);
    font-size: 17px;
    letter-spacing: -.02em;
}

.sendtime-legend {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 250px;
    color: var(--sendtime-muted);
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}

.sendtime-legend i {
    width: 18px;
    height: 10px;
    border-radius: 999px;
    background: #f4ead8;
}

.sendtime-legend i:nth-of-type(2) { background: #edd6a2; }
.sendtime-legend i:nth-of-type(3) { background: #d9a94a; }
.sendtime-legend i:nth-of-type(4) { background: #a75d3b; }
.sendtime-legend i:nth-of-type(5) { background: #6f2430; }

.sendtime-heatmap {
    display: grid;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.sendtime-hour-row,
.sendtime-day-row {
    display: grid;
    grid-template-columns: 38px repeat(24, minmax(22px, 1fr));
    gap: 4px;
    align-items: center;
    min-width: 780px;
}

.sendtime-hour-row b {
    color: #9a8e7a;
    font-size: 9px;
    font-weight: 850;
    text-align: center;
}

.sendtime-day-row > span {
    color: #5f594f;
    font-size: 11px;
    font-weight: 900;
}

.sendtime-cell,
.campaign-compare-miniheat i {
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: #f6efe2;
    color: #fff;
    font-size: 9px;
    font-weight: 950;
}

.sendtime-cell {
    min-height: 27px;
    box-shadow: inset 0 0 0 1px rgba(115, 91, 51, .06);
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.sendtime-cell:hover,
.sendtime-cell.is-active {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 7px 18px rgba(111, 36, 48, .18), inset 0 0 0 1px rgba(255, 255, 255, .4);
}

.sendtime-cell.is-best {
    outline: 2px solid rgba(24, 19, 12, .76);
    outline-offset: 1px;
}

.heat-0 { background: #f6efe2; }
.heat-1 { background: #eddcb8; color: #5c4220; }
.heat-2 { background: #e3bd64; color: #3b2a11; }
.heat-3 { background: #c9853f; color: #fff; }
.heat-4 { background: #9c4636; color: #fff; }
.heat-5 { background: #64202b; color: #fff; }

.sendtime-detail-card {
    display: grid;
    align-content: start;
    gap: 14px;
    background:
        radial-gradient(circle at 100% 0%, rgba(198, 154, 50, .2), transparent 36%),
        #fff;
}

.sendtime-detail-card h3 {
    font-size: 24px;
    line-height: 1.12;
}

.sendtime-detail-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.sendtime-detail-metrics div {
    display: grid;
    gap: 3px;
    padding: 11px;
    border-radius: 12px;
    background: #fbf6ea;
}

.sendtime-detail-metrics strong {
    color: var(--sendtime-oxblood);
    font-size: 22px;
}

.sendtime-detail-metrics span,
.sendtime-detail-card small {
    color: var(--sendtime-muted);
    font-size: 11px;
}

.sendtime-detail-card p {
    margin: 0;
    color: #4c463d;
    font-size: 13px;
    line-height: 1.5;
}

.sendtime-window-bars,
.sendtime-weekday-list,
.sendtime-response-list {
    display: grid;
    gap: 10px;
}

.sendtime-window-bars div,
.sendtime-weekday-list div,
.sendtime-response-list div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 44px;
    gap: 9px;
    align-items: center;
    color: var(--sendtime-muted);
    font-size: 11px;
    font-weight: 850;
}

.sendtime-window-bars i,
.sendtime-weekday-list i,
.sendtime-response-list i {
    height: 9px;
    min-width: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--sendtime-oxblood), rgba(111, 36, 48, .18));
}

.sendtime-window-bars i.gold,
.sendtime-weekday-list i {
    background: linear-gradient(90deg, var(--sendtime-gold), rgba(198, 154, 50, .18));
}

.sendtime-window-bars b,
.sendtime-weekday-list strong,
.sendtime-response-list strong {
    color: var(--sendtime-ink);
    text-align: right;
}

.sendtime-insight-grid {
    display: grid;
    grid-template-columns: 1.2fr .9fr .9fr;
    gap: 14px;
    margin-top: 14px;
}

.sendtime-insight-grid article {
    padding: 16px;
}

.sendtime-rhythm-chart {
    display: grid;
    grid-template-columns: repeat(24, minmax(0, 1fr));
    align-items: end;
    gap: 5px;
    height: 210px;
    padding: 14px 0 0;
    border-top: 1px solid var(--sendtime-line);
    background: repeating-linear-gradient(to top, transparent 0 40px, rgba(234, 223, 203, .55) 41px);
}

.sendtime-rhythm-chart div {
    position: relative;
    display: grid;
    align-items: end;
    height: 100%;
}

.sendtime-rhythm-chart i,
.sendtime-rhythm-chart b {
    align-self: end;
    width: 100%;
    min-height: 3px;
    border-radius: 8px 8px 0 0;
}

.sendtime-rhythm-chart i {
    background: linear-gradient(180deg, var(--sendtime-gold), rgba(198, 154, 50, .18));
}

.sendtime-rhythm-chart b {
    position: absolute;
    right: 1px;
    bottom: 18px;
    width: 35%;
    background: linear-gradient(180deg, var(--sendtime-oxblood), rgba(111, 36, 48, .2));
}

.sendtime-rhythm-chart span {
    align-self: end;
    min-height: 14px;
    color: #9a8e7a;
    font-size: 9px;
    text-align: center;
}

.sendtime-premium-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.sendtime-premium-actions article {
    display: grid;
    align-content: start;
    gap: 9px;
    padding: 16px;
}

.sendtime-premium-actions .mini-button {
    justify-self: start;
}

.campaign-compare-trend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    align-items: end;
    gap: 10px;
    height: 235px;
    padding: 16px 0 0;
    border-top: 1px solid var(--sendtime-line);
    background: repeating-linear-gradient(to top, transparent 0 47px, rgba(234, 223, 203, .58) 48px);
}

.campaign-compare-picker {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin: 0 0 14px;
    padding: 12px;
    border: 1px solid var(--sendtime-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .68);
}

.campaign-compare-picker > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.campaign-compare-picker label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 310px;
    min-height: 34px;
    padding: 7px 9px;
    border: 1px solid #eadfcb;
    border-radius: 999px;
    background: #fffdf8;
    color: var(--sendtime-muted);
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}

.campaign-compare-picker input {
    accent-color: var(--sendtime-oxblood);
}

.campaign-compare-picker span {
    color: #9b6e1d;
    white-space: nowrap;
}

.campaign-compare-picker strong {
    overflow: hidden;
    color: var(--sendtime-ink);
    font-size: 11px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.campaign-compare-picker .mini-button {
    flex: 0 0 auto;
}

.campaign-compare-trend div {
    position: relative;
    display: grid;
    align-items: end;
    height: 100%;
    gap: 5px;
    padding: 0 8px;
    border-radius: 12px 12px 0 0;
}

.campaign-compare-trend div.is-current {
    background: rgba(198, 154, 50, .08);
}

.campaign-compare-trend i,
.campaign-compare-trend b {
    align-self: end;
    width: 42%;
    min-height: 3px;
    border-radius: 10px 10px 0 0;
}

.campaign-compare-trend i {
    background: linear-gradient(180deg, var(--sendtime-gold), rgba(198, 154, 50, .18));
}

.campaign-compare-trend b {
    position: absolute;
    right: 14px;
    bottom: 36px;
    background: linear-gradient(180deg, var(--sendtime-oxblood), rgba(111, 36, 48, .18));
}

.campaign-compare-trend span,
.campaign-compare-trend small {
    color: var(--sendtime-muted);
    font-size: 10px;
    font-weight: 850;
    text-align: center;
}

.campaign-compare-legend {
    display: flex;
    gap: 18px;
    justify-content: flex-end;
    margin: 8px 0 14px;
    color: var(--sendtime-muted);
    font-size: 11px;
    font-weight: 850;
}

.campaign-compare-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.campaign-compare-legend i,
.campaign-compare-legend b {
    width: 24px;
    height: 9px;
    border-radius: 999px;
}

.campaign-compare-legend i { background: var(--sendtime-gold); }
.campaign-compare-legend b { display: inline-block; background: var(--sendtime-oxblood); }

.campaign-compare-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}

.campaign-compare-card {
    display: grid;
    gap: 10px;
    padding: 15px;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.campaign-compare-card:hover,
.campaign-compare-card.is-active {
    transform: translateY(-2px);
    border-color: rgba(111, 36, 48, .45);
    box-shadow: 0 22px 52px rgba(77, 57, 24, .12);
}

.campaign-compare-card.is-active {
    background: #fff;
}

.campaign-compare-card strong {
    color: var(--sendtime-ink);
    font-size: 16px;
    line-height: 1.2;
}

.campaign-compare-card em {
    display: block;
    overflow: hidden;
    max-height: 34px;
    font-style: normal;
}

.campaign-compare-metrics,
.campaign-compare-detail-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.campaign-compare-metrics div,
.campaign-compare-detail-metrics div {
    display: grid;
    gap: 2px;
    padding: 9px;
    border-radius: 10px;
    background: #fbf6ea;
}

.campaign-compare-metrics b,
.campaign-compare-detail-metrics strong {
    color: var(--sendtime-oxblood);
    font-size: 16px;
}

.campaign-compare-metrics span,
.campaign-compare-detail-metrics span {
    color: var(--sendtime-muted);
    font-size: 10px;
    font-weight: 850;
}

.campaign-compare-miniheat {
    display: grid;
    grid-template-columns: repeat(24, minmax(0, 1fr));
    gap: 2px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(246, 239, 226, .78);
}

.campaign-compare-miniheat i {
    min-height: 6px;
    border-radius: 2px;
}

.campaign-compare-detail-stack {
    margin-top: 12px;
}

.campaign-compare-detail {
    display: none;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
}

.campaign-compare-detail.is-active {
    display: grid;
}

.campaign-compare-detail-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.campaign-compare-detail .mini-button {
    justify-self: end;
}

@media (max-width: 1180px) {
    .sendtime-summary-grid,
    .sendtime-premium-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sendtime-main-grid,
    .sendtime-insight-grid,
    .campaign-compare-detail {
        grid-template-columns: minmax(0, 1fr);
    }

    .campaign-compare-detail .mini-button {
        justify-self: start;
    }
}

@media (max-width: 760px) {
    .campaign-sendtime-head,
    .sendtime-card-head,
    .campaign-compare-picker {
        flex-direction: column;
    }

    .sendtime-summary-grid,
    .sendtime-premium-actions,
    .campaign-compare-detail-metrics {
        grid-template-columns: minmax(0, 1fr);
    }

    .sendtime-confidence,
    .sendtime-legend,
    .campaign-compare-picker .mini-button {
        width: 100%;
    }

    .sendtime-legend {
        min-width: 0;
        flex-wrap: wrap;
    }

    .campaign-compare-picker > div {
        width: 100%;
    }

    .campaign-compare-picker label {
        max-width: none;
        width: 100%;
    }
}

.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-inline-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.profile-inline-action input {
    width: min(150px, 28vw);
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid #dfe7f2;
    border-radius: 7px;
    background: #fff;
    color: #1f2937;
    font-size: 11px;
    font-weight: 750;
}

.profile-suggest-grid form {
    margin: 0;
}

.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 .activity-explanation {
    display: block;
    grid-column: 2 / 4;
    margin-top: -2px;
    color: #475467;
    font-size: 10px;
    font-style: normal;
    line-height: 1.35;
}

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

.engagement-pattern-page {
    display: grid;
    gap: 14px;
}

.engagement-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.engagement-kpi-grid article,
.engagement-card {
    border: 1px solid #e6ebf3;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(16, 24, 40, .045);
}

.engagement-kpi-grid article {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 3px 10px;
    align-items: center;
    padding: 14px;
}

.engagement-kpi-icon {
    display: grid;
    place-items: center;
    grid-row: 1 / span 2;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 950;
}

.engagement-kpi-icon.blue { background: #eaf2ff; color: #2863ff; }
.engagement-kpi-icon.purple { background: #f1eaff; color: #7a4dff; }
.engagement-kpi-icon.green { background: #e8f8f0; color: #079455; }
.engagement-kpi-icon.amber { background: #fff4df; color: #d18b00; }
.engagement-kpi-icon.teal { background: #e9fbfb; color: #0f9c9c; }

.engagement-kpi-grid strong {
    color: #152033;
    font-size: 19px;
    font-weight: 950;
}

.engagement-kpi-grid small {
    color: #667085;
    font-size: 10px;
    font-weight: 750;
}

.engagement-pattern-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, .8fr);
    gap: 14px;
    align-items: start;
}

.engagement-pattern-grid.lower {
    grid-template-columns: minmax(320px, .8fr) minmax(0, 1.35fr);
}

.engagement-card {
    padding: 16px;
}

.engagement-heatmap-card {
    overflow-x: auto;
}

.engagement-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.engagement-card h3,
.engagement-email-detail h4 {
    margin: 0;
    color: #152033;
    font-size: 14px;
    font-weight: 950;
}

.engagement-card p,
.engagement-card-head > span,
.engagement-email-detail-head p {
    margin: 4px 0 0;
    color: #667085;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.45;
}

.engagement-card-head > span {
    flex: 0 0 auto;
    margin: 0;
    padding: 6px 9px;
    border-radius: 999px;
    background: #f3f6fb;
    color: #475467;
}

.engagement-heatmap {
    display: grid;
    grid-template-columns: 38px repeat(8, minmax(36px, 1fr));
    gap: 6px;
    align-items: center;
    min-width: 520px;
}

.engagement-heatmap b,
.engagement-heatmap strong {
    color: #667085;
    font-size: 9px;
    font-weight: 850;
    text-align: center;
}

.engagement-heatmap strong {
    text-align: left;
}

.engagement-heatmap span {
    display: grid;
    place-items: center;
    min-height: 31px;
    border-radius: 7px;
    background: #f1f5fb;
    color: #fff;
    font-size: 10px;
    font-weight: 950;
}

.engagement-heatmap .heat-0 { background: #f1f5fb; }
.engagement-heatmap .heat-1 { background: #dce8ff; color: #2e5cab; }
.engagement-heatmap .heat-2 { background: #bcd2ff; color: #214f9e; }
.engagement-heatmap .heat-3 { background: #88aef8; }
.engagement-heatmap .heat-4 { background: #4c7cf0; }
.engagement-heatmap .heat-5 { background: #1f5ee8; }

.engagement-heatmap-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    color: #667085;
    font-size: 10px;
    font-weight: 850;
}

.engagement-heatmap-legend i {
    display: block;
    width: 22px;
    height: 10px;
    border-radius: 999px;
}

.engagement-heatmap-legend .heat-1 { background: #dce8ff; }
.engagement-heatmap-legend .heat-2 { background: #bcd2ff; }
.engagement-heatmap-legend .heat-3 { background: #88aef8; }
.engagement-heatmap-legend .heat-4 { background: #4c7cf0; }
.engagement-heatmap-legend .heat-5 { background: #1f5ee8; }

.engagement-heatmap-legend small {
    flex-basis: 100%;
    color: #8a96a8;
    font-size: 9px;
    font-weight: 750;
}

.engagement-heatmap-note {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin: 12px 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eaf8ef;
    color: #087443;
    font-size: 10px;
    font-weight: 900;
}

.engagement-heatmap-note span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #12b76a;
}

.engagement-recommendation-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.engagement-recommendation-list div {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 3px 10px;
    align-items: center;
    padding: 11px;
    border: 1px solid #edf1f7;
    border-radius: 10px;
    background: #fbfdff;
}

.engagement-recommendation-list div.is-info {
    border-color: #cfe0ff;
    background: #eef5ff;
}

.engagement-recommendation-list span {
    display: grid;
    place-items: center;
    grid-row: 1 / span 2;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #fff;
    color: #2863ff;
    font-size: 12px;
    font-weight: 950;
}

.engagement-recommendation-list strong,
.engagement-recommendation-list small {
    grid-column: 2;
}

.engagement-recommendation-list strong {
    color: #344054;
    font-size: 10px;
    font-weight: 950;
}

.engagement-recommendation-list small {
    color: #667085;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.45;
}

.engagement-response-bars {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 9px;
    align-items: end;
    min-height: 170px;
    padding-top: 8px;
}

.engagement-response-bars div {
    display: grid;
    grid-template-rows: minmax(120px, 1fr) auto;
    gap: 8px;
    align-items: end;
    text-align: center;
}

.engagement-response-bars span {
    display: grid;
    place-items: start center;
    width: 100%;
    min-height: 0;
    border-radius: 7px 7px 2px 2px;
    background: linear-gradient(180deg, #1f5ee8, #2f6fed);
    color: #fff;
    font-size: 10px;
    font-weight: 950;
    padding-top: 6px;
}

.engagement-response-bars small {
    color: #667085;
    font-size: 9px;
    font-weight: 800;
}

.engagement-drilldown-card {
    min-height: 390px;
}

.engagement-drilldown-layout {
    display: grid;
    grid-template-columns: minmax(210px, .7fr) minmax(0, 1.4fr);
    gap: 14px;
    align-items: start;
}

.engagement-email-list {
    display: grid;
    gap: 8px;
}

.engagement-email-list button {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 3px 8px;
    width: 100%;
    padding: 11px;
    border: 1px solid #edf1f7;
    border-radius: 10px;
    background: #fbfdff;
    text-align: left;
}

.engagement-email-list button::after {
    content: "›";
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    color: #98a2b3;
    font-weight: 950;
}

.engagement-email-list button.is-active {
    border-color: #79a7ff;
    background: #eef5ff;
    box-shadow: inset 3px 0 0 #2863ff;
}

.engagement-email-list button > span {
    display: grid;
    place-items: center;
    grid-row: 1 / span 2;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: #eaf2ff;
    color: #2863ff;
    font-size: 12px;
}

.engagement-email-list strong,
.engagement-email-list small {
    grid-column: 2;
}

.engagement-email-list strong {
    overflow: hidden;
    color: #1f2937;
    font-size: 10px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.engagement-email-list small {
    color: #667085;
    font-size: 9px;
    font-weight: 700;
}

.engagement-email-detail > section {
    display: none;
}

.engagement-email-detail > section.is-active {
    display: grid;
    gap: 12px;
}

.engagement-email-detail-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.engagement-email-detail-head > div:last-child {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.engagement-email-detail-head span {
    padding: 6px 9px;
    border-radius: 999px;
    background: #f1ecff;
    color: #7047eb;
    font-size: 9px;
    font-weight: 900;
}

.engagement-email-detail-head span:last-child {
    background: #e8f8ef;
    color: #087443;
}

.engagement-email-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.engagement-email-metrics div {
    display: grid;
    gap: 3px;
    padding: 10px;
    border: 1px solid #edf1f7;
    border-radius: 9px;
    background: #fbfdff;
}

.engagement-email-metrics strong {
    color: #1f2937;
    font-size: 12px;
    font-weight: 950;
}

.engagement-email-metrics small {
    color: #667085;
    font-size: 9px;
    font-weight: 750;
}

.engagement-event-flow {
    display: grid;
    gap: 0;
    margin-top: 4px;
    padding-left: 12px;
}

.engagement-event-flow > div {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 0 15px;
}

.engagement-event-flow > div::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 0;
    left: 9px;
    width: 2px;
    background: #d8e1ef;
}

.engagement-event-flow > div:last-child::before {
    display: none;
}

.engagement-event-flow > div > span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 999px;
    background: #2863ff;
    box-shadow: 0 0 0 5px #eef5ff;
}

.engagement-event-flow .open > span { background: #7a4dff; box-shadow: 0 0 0 5px #f1ecff; }
.engagement-event-flow .click > span { background: #12b76a; box-shadow: 0 0 0 5px #e8f8ef; }
.engagement-event-flow .neutral > span { background: #98a2b3; box-shadow: 0 0 0 5px #f3f6fb; }

.engagement-event-flow strong,
.engagement-event-flow small,
.engagement-event-flow a {
    display: block;
}

.engagement-event-flow strong {
    color: #1f2937;
    font-size: 11px;
    font-weight: 950;
}

.engagement-event-flow strong em {
    margin-left: 7px;
    padding: 3px 6px;
    border-radius: 999px;
    background: #fff7e8;
    color: #b26b00;
    font-size: 8px;
    font-style: normal;
    font-weight: 950;
}

.engagement-event-flow small,
.engagement-event-flow time,
.engagement-event-flow a {
    color: #667085;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.engagement-event-flow a {
    color: #2863ff;
    text-decoration: none;
}

.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 > .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;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.smtp-users-page .contacts-table-wrap {
    overflow: visible;
    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;
    overflow: visible;
}

.smtp-users-page .contacts-actions details {
    position: relative;
    z-index: 30;
}

.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;
    z-index: 60;
    overflow: visible;
    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-log-page {
    gap: 18px;
}

.smtp-log-hero {
    align-items: center;
}

.smtp-hero-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.smtp-log-analytics {
    display: grid;
    gap: 18px;
    padding: 20px;
    border: 1px solid #e4edf7;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 24px 54px rgba(15, 23, 42, .07);
}

.smtp-log-analytics-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.smtp-log-analytics-head h3,
.smtp-log-analytics-card-head h4,
.smtp-log-funnel-summary-hero h5 {
    margin: 0;
    color: #101828;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: -.03em;
}

.smtp-log-analytics-head h3 {
    margin-top: 6px;
    font-size: 24px;
    font-weight: 850;
    line-height: 1.05;
}

.smtp-log-analytics-head p,
.smtp-log-analytics-card-head p,
.smtp-log-funnel-summary-hero p,
.smtp-log-funnel-legend-item p,
.smtp-log-funnel-stat p {
    margin: 0;
    color: #667085;
    font-size: var(--editor-ui-font-size);
    font-weight: 600;
    line-height: 1.55;
}

.smtp-log-analytics-head p {
    margin-top: 8px;
}

.smtp-log-analytics-range {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #dde7f4;
    border-radius: 999px;
    background: #fff;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
}

.smtp-log-analytics .smtp-log-kpis-rich {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.smtp-log-kpis .contacts-kpi-card strong {
    letter-spacing: -.03em;
}

.contacts-kpi-card.tone-amber { --kpi-color: #f79009; --kpi-soft: #fff7e8; }
.contacts-kpi-card.tone-slate { --kpi-color: #667085; --kpi-soft: #f4f7fb; }

.smtp-log-analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
    gap: 18px;
}

.smtp-log-funnel-card,
.smtp-log-funnel-summary {
    display: grid;
    gap: 16px;
    min-width: 0;
    padding: 18px;
    border: 1px solid #e4edf7;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 20px 40px rgba(15, 23, 42, .05);
}

.smtp-log-analytics-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.smtp-log-analytics-card-head h4 {
    font-size: 16px;
    font-weight: 850;
    line-height: 1.15;
}

.smtp-log-analytics-card-head p {
    margin-top: 6px;
}

.smtp-log-funnel-layout {
    display: grid;
    grid-template-columns: minmax(220px, .78fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.smtp-log-funnel-graphic {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 8px 0;
}

.smtp-log-funnel-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--stage-width);
    max-width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border-radius: 14px;
    color: #fff;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: -.02em;
    text-align: center;
    clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%);
    box-shadow: 0 16px 30px rgba(15, 111, 255, .18);
}

.smtp-log-funnel-stage-processed {
    background: linear-gradient(180deg, #a9c7ff 0%, #7eadff 100%);
}

.smtp-log-funnel-stage-delivered {
    background: linear-gradient(180deg, #6aaeff 0%, #1f82ff 100%);
}

.smtp-log-funnel-stage-opened {
    background: linear-gradient(180deg, #0f7bff 0%, #0457d9 100%);
}

.smtp-log-funnel-legend {
    display: grid;
    gap: 10px;
}

.smtp-log-funnel-legend-item {
    display: grid;
    gap: 7px;
    padding: 14px 15px;
    border: 1px solid #e5edf7;
    border-radius: 14px;
    background: #fff;
}

.smtp-log-funnel-legend-item > div {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.smtp-log-funnel-legend-item small,
.smtp-log-funnel-stat small {
    display: block;
    color: #98a2b3;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.smtp-log-funnel-legend-item strong,
.smtp-log-funnel-stat strong {
    display: block;
    color: #101828;
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -.03em;
}

.smtp-log-funnel-legend-item em {
    color: #344054;
    font-size: 12px;
    font-style: normal;
    font-weight: 750;
}

.smtp-log-funnel-summary-hero {
    display: grid;
    gap: 7px;
    padding: 18px;
    border: 1px solid #dfe8f5;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.smtp-log-funnel-summary-hero strong {
    color: #0f6fff;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -.05em;
    line-height: .95;
}

.smtp-log-funnel-summary-hero span {
    color: #175cd3;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.smtp-log-funnel-summary-hero h5 {
    font-size: 18px;
    font-weight: 850;
    line-height: 1.2;
}

.smtp-log-funnel-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.smtp-log-funnel-stat {
    --funnel-tone: #0f6fff;
    --funnel-soft: #eef4ff;
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 14px 15px;
    border: 1px solid rgba(15, 111, 255, .12);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, var(--funnel-soft) 100%);
}

.smtp-log-funnel-stat strong {
    color: var(--funnel-tone);
}

.smtp-log-funnel-stat-blue { --funnel-tone: #0f6fff; --funnel-soft: #eef4ff; }
.smtp-log-funnel-stat-green { --funnel-tone: #148253; --funnel-soft: #eaf8f1; }
.smtp-log-funnel-stat-purple { --funnel-tone: #6941c6; --funnel-soft: #f2edff; }
.smtp-log-funnel-stat-amber { --funnel-tone: #b76b00; --funnel-soft: #fff7e8; }
.smtp-log-funnel-stat-red { --funnel-tone: #c43232; --funnel-soft: #fff1f0; }
.smtp-log-funnel-stat-slate { --funnel-tone: #475467; --funnel-soft: #f4f7fb; }
.smtp-log-funnel-stat-indigo { --funnel-tone: #3656d4; --funnel-soft: #eef2ff; }

.smtp-log-directory .contacts-topbar {
    align-items: flex-start;
}

.smtp-log-filter-form {
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: stretch;
}

.smtp-log-filter-form .contacts-search {
    flex: 1 1 280px;
}

.smtp-user-picker {
    position: relative;
    flex: 0 1 280px;
    min-width: 240px;
}

.smtp-user-picker-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    gap: 14px;
    padding: 10px 14px 10px 16px;
    border: 1px solid #dde6f2;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    color: #344054;
    box-shadow: 0 14px 34px rgba(16, 24, 40, .06);
    cursor: pointer;
    list-style: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.smtp-user-picker-toggle::-webkit-details-marker {
    display: none;
}

.smtp-user-picker-toggle::marker {
    display: none;
}

.smtp-user-picker-toggle:hover {
    border-color: #c8d7ee;
    box-shadow: 0 16px 36px rgba(16, 24, 40, .08);
}

.smtp-user-picker[open] .smtp-user-picker-toggle,
.smtp-user-picker.is-open .smtp-user-picker-toggle {
    border-color: #b9cff5;
    box-shadow: 0 18px 40px rgba(15, 111, 255, .12);
}

.smtp-user-picker-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.smtp-user-picker-copy small {
    color: #98a2b3;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.smtp-user-picker-copy strong,
.smtp-user-picker-copy em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.smtp-user-picker-copy strong {
    color: #344054;
    font-size: 13px;
    font-weight: 800;
    font-style: normal;
}

.smtp-user-picker-copy em {
    color: #667085;
    font-size: 12px;
    font-weight: 600;
    font-style: normal;
}

.smtp-user-picker-caret {
    width: 9px;
    height: 9px;
    border-right: 2px solid #8a98ac;
    border-bottom: 2px solid #8a98ac;
    transform: rotate(45deg) translateY(-1px);
    transition: transform .16s ease;
    flex: 0 0 auto;
}

.smtp-user-picker[open] .smtp-user-picker-caret,
.smtp-user-picker.is-open .smtp-user-picker-caret {
    transform: rotate(-135deg) translateY(-1px);
}

.smtp-user-picker-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 80;
    display: none;
    gap: 12px;
    min-width: 320px;
    padding: 16px;
    border: 1px solid rgba(219, 227, 239, .95);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(248,251,255,.99) 100%);
    box-shadow: 0 30px 60px rgba(16, 24, 40, .18);
    backdrop-filter: blur(18px);
}

.smtp-user-picker[open] .smtp-user-picker-menu,
.smtp-user-picker.is-open .smtp-user-picker-menu {
    display: grid;
}

.smtp-user-picker-head strong {
    display: block;
    color: #101828;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: -.02em;
}

.smtp-user-picker-head p {
    margin: 4px 0 0;
    color: #667085;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}

.smtp-user-picker-list {
    display: grid;
    gap: 8px;
}

.smtp-user-picker-option {
    display: grid;
    gap: 3px;
    width: 100%;
    padding: 12px 13px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(255,255,255,.82);
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.smtp-user-picker-option:hover {
    border-color: #d9e5f8;
    background: #f7faff;
    transform: translateY(-1px);
}

.smtp-user-picker-option.is-selected {
    border-color: #bfd3fb;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    box-shadow: 0 10px 24px rgba(15, 111, 255, .10);
}

.smtp-user-picker-option-title {
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

.smtp-user-picker-option-meta {
    color: #667085;
    font-size: 12px;
    font-weight: 600;
}

.smtp-status-multifilter {
    position: relative;
    flex: 0 1 260px;
    min-width: 220px;
}

.smtp-status-multifilter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    gap: 14px;
    padding: 10px 14px 10px 16px;
    border: 1px solid #dde6f2;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    color: #344054;
    box-shadow: 0 14px 34px rgba(16, 24, 40, .06);
    cursor: pointer;
    list-style: none;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.smtp-status-multifilter-toggle::-webkit-details-marker {
    display: none;
}

.smtp-status-multifilter-toggle::marker {
    display: none;
}

.smtp-status-multifilter-toggle:hover {
    border-color: #c8d7ee;
    box-shadow: 0 16px 36px rgba(16, 24, 40, .08);
}

.smtp-status-multifilter[open] .smtp-status-multifilter-toggle,
.smtp-status-multifilter.is-open .smtp-status-multifilter-toggle {
    border-color: #b9cff5;
    box-shadow: 0 18px 40px rgba(15, 111, 255, .12);
}

.smtp-status-multifilter-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.smtp-status-multifilter-copy small {
    color: #98a2b3;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.smtp-status-multifilter-label {
    overflow: hidden;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.smtp-status-multifilter-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.smtp-status-multifilter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef4ff;
    color: #175cd3;
    font-size: 12px;
    font-weight: 850;
    box-shadow: inset 0 0 0 1px rgba(23, 92, 211, .08);
}

.smtp-status-multifilter-caret {
    width: 9px;
    height: 9px;
    border-right: 2px solid #8a98ac;
    border-bottom: 2px solid #8a98ac;
    transform: rotate(45deg) translateY(-1px);
    transition: transform .16s ease;
    flex: 0 0 auto;
}

.smtp-status-multifilter[open] .smtp-status-multifilter-caret,
.smtp-status-multifilter.is-open .smtp-status-multifilter-caret {
    transform: rotate(-135deg) translateY(-1px);
}

.smtp-status-multifilter-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 80;
    display: none;
    gap: 14px;
    min-width: 300px;
    padding: 16px;
    border: 1px solid rgba(219, 227, 239, .95);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(248,251,255,.99) 100%);
    box-shadow: 0 30px 60px rgba(16, 24, 40, .18);
    backdrop-filter: blur(18px);
}

.smtp-status-multifilter[open] .smtp-status-multifilter-menu,
.smtp-status-multifilter.is-open .smtp-status-multifilter-menu {
    display: grid;
}

.smtp-status-multifilter-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.smtp-status-multifilter-head strong {
    display: block;
    color: #101828;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: -.02em;
}

.smtp-status-multifilter-head p {
    margin: 4px 0 0;
    color: #667085;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}

.smtp-status-multifilter-head button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #d8e4f6;
    border-radius: 999px;
    background: #fff;
    color: #175cd3;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(15, 111, 255, .08);
}

.smtp-status-multifilter-list {
    display: grid;
    gap: 8px;
}

.smtp-status-multifilter-option {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(255,255,255,.82);
    color: #344054;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.smtp-status-multifilter-option:hover {
    border-color: #d9e5f8;
    background: #f7faff;
    transform: translateY(-1px);
}

.smtp-status-multifilter-option input {
    width: 15px;
    height: 15px;
    accent-color: #0f6fff;
}

.smtp-status-multifilter-option-mark {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #d0d5dd;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.65);
}

.smtp-status-multifilter-option-text {
    min-width: 0;
}

.smtp-status-multifilter-option:has(input:checked) {
    border-color: #bfd3fb;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.smtp-status-multifilter-option:has(input:checked) .smtp-status-multifilter-option-mark {
    background: #0f6fff;
}

.smtp-log-directory .contacts-board-head {
    display: flex;
}

.smtp-log-table {
    min-width: 1180px;
    table-layout: fixed;
}

.smtp-log-table th:nth-child(1),
.smtp-log-table td:nth-child(1) {
    width: 135px;
}

.smtp-log-table th:nth-child(2),
.smtp-log-table td:nth-child(2) {
    width: 165px;
}

.smtp-log-table th:nth-child(3),
.smtp-log-table td:nth-child(3) {
    width: 220px;
}

.smtp-log-table th:nth-child(4),
.smtp-log-table td:nth-child(4) {
    width: 620px;
}

.smtp-log-summary-row {
    cursor: pointer;
}

.smtp-log-summary-row td {
    transition: background .16s ease, box-shadow .16s ease;
}

.smtp-log-summary-row:hover td,
.smtp-log-summary-row.is-open td {
    background: #f8fbff;
}

.smtp-log-summary-row:focus {
    outline: none;
}

.smtp-log-summary-row:focus td:first-child {
    box-shadow: inset 3px 0 0 #0f6fff;
}

.smtp-log-table td {
    vertical-align: middle;
}

.smtp-log-table code {
    display: inline-flex;
    max-width: 118px;
    padding: 4px 7px;
    overflow: hidden;
    border-radius: 7px;
    background: #f4f7fb;
    color: #475467;
    font-size: 11px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.smtp-log-status-note,
.smtp-log-dsn,
.smtp-log-relay,
.smtp-log-row-hint {
    display: block;
    margin-top: 6px;
    color: #8a98ac;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.smtp-log-time,
.smtp-log-recipient,
.smtp-log-subject {
    display: block;
    min-width: 0;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

.smtp-log-subject {
    position: relative;
    padding-right: 28px;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.smtp-log-subject::after {
    content: "›";
    position: absolute;
    right: 2px;
    top: 50%;
    color: #98a2b3;
    font-size: 20px;
    font-weight: 700;
    transform: translateY(-50%);
    transition: transform .16s ease, color .16s ease;
}

.smtp-log-summary-row.is-open .smtp-log-subject::after {
    color: #0f6fff;
    transform: translateY(-50%) rotate(90deg);
}

.smtp-log-response {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    color: #344054;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

body.has-smtp-log-drawer {
    overflow: hidden;
}

.smtp-log-drawer-shell {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: grid;
    justify-items: end;
}

.smtp-log-drawer-shell[hidden] {
    display: none !important;
}

.smtp-log-drawer-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, .38);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.smtp-log-drawer-panel {
    position: relative;
    z-index: 1;
    width: min(620px, 100vw);
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    border-left: 1px solid rgba(219, 227, 239, .9);
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: -24px 0 80px rgba(15, 23, 42, .16);
    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;
}

.smtp-log-drawer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid #e7eef7;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(12px);
}

.smtp-log-drawer-toolbar small {
    display: block;
    margin-bottom: 4px;
    color: #98a2b3;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.smtp-log-drawer-toolbar strong {
    color: #111b31;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.smtp-log-drawer-close {
    width: 38px;
    height: 38px;
    border: 1px solid #d8e4f6;
    border-radius: 11px;
    background: #fff;
    color: #667085;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(15, 111, 255, .08);
}

.smtp-log-drawer-content {
    overflow-y: auto;
    padding: 22px;
}

.smtp-log-drawer-view {
    display: grid;
    gap: 18px;
}

.smtp-log-drawer-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding: 0 2px;
}

.smtp-log-drawer-copy {
    min-width: 0;
}

.smtp-log-drawer-kicker {
    margin: 0 0 7px;
    color: #98a2b3;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.smtp-log-drawer-copy h3,
.smtp-log-drawer-subject,
.smtp-log-drawer-meta-line,
.smtp-log-drawer-section-head h4,
.smtp-log-drawer-section-head p,
.smtp-log-drawer-summary-card p,
.smtp-log-drawer-summary-card em,
.smtp-log-event-body p {
    margin: 0;
}

.smtp-log-drawer-copy h3 {
    color: #101828;
    font-size: 24px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -.025em;
    word-break: break-word;
}

.smtp-log-drawer-subject {
    margin-top: 9px;
    color: #475467;
    font-size: var(--editor-ui-font-size);
    font-weight: 600;
    line-height: 1.5;
    word-break: break-word;
}

.smtp-log-drawer-meta-line {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #667085;
    font-size: var(--editor-ui-font-size);
    font-weight: 700;
}

.smtp-log-drawer-status-stack {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    max-width: 180px;
}

.smtp-log-drawer-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.smtp-log-drawer-summary-card,
.smtp-log-detail-grid-rich > div,
.smtp-log-detail-response-rich {
    min-width: 0;
    padding: 14px 15px;
    border: 1px solid #e5edf7;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .05);
}

.smtp-log-drawer-summary-card small,
.smtp-log-detail-grid small,
.smtp-log-detail-response small {
    display: block;
    margin-bottom: 7px;
    color: #98a2b3;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.smtp-log-drawer-summary-card strong {
    display: block;
    color: #101828;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.02em;
    white-space: normal;
    overflow-wrap: anywhere;
}

.smtp-log-drawer-summary-card p {
    margin-top: 7px;
    color: #667085;
    font-size: var(--editor-ui-font-size);
    font-weight: 650;
    line-height: 1.5;
}

.smtp-log-drawer-summary-card em {
    display: block;
    margin-top: 10px;
    color: #344054;
    font-size: var(--editor-ui-font-size);
    font-weight: 800;
    font-style: normal;
    white-space: normal;
    overflow-wrap: anywhere;
}

.smtp-log-drawer-summary-card-status.processed strong {
    color: #175cd3;
}

.smtp-log-drawer-summary-card-status.delivered strong,
.smtp-log-drawer-summary-card-status.opened strong {
    color: #148253;
}

.smtp-log-drawer-summary-card-status.soft_bounced strong {
    color: #b76b00;
}

.smtp-log-drawer-summary-card-status.hard_bounced strong,
.smtp-log-drawer-summary-card-status.expired strong,
.smtp-log-drawer-summary-card-status.rejected strong {
    color: #c43232;
}

.smtp-log-drawer-summary-card-diagnostic.warn strong {
    color: #b76b00;
}

.smtp-log-drawer-summary-card-diagnostic.danger strong {
    color: #c43232;
}

.smtp-log-drawer-summary-card-tracking.opened strong {
    color: #148253;
}

.smtp-log-drawer-section {
    display: grid;
    gap: 12px;
}

.smtp-log-drawer-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 0 2px;
}

.smtp-log-drawer-section-head h4 {
    color: #111b31;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.smtp-log-drawer-section-head p {
    margin-top: 4px;
    color: #667085;
    font-size: var(--editor-ui-font-size);
    font-weight: 650;
    line-height: 1.5;
}

.smtp-log-event-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.smtp-log-event {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 14px;
}

.smtp-log-event:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 22px;
    bottom: -12px;
    width: 2px;
    background: linear-gradient(180deg, rgba(191, 211, 251, .95) 0%, rgba(219, 227, 239, .35) 100%);
}

.smtp-log-event-dot {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    border-radius: 999px;
    background: #0f6fff;
    box-shadow: 0 0 0 5px rgba(15, 111, 255, .12);
}

.smtp-log-event-delivered .smtp-log-event-dot,
.smtp-log-event-opened .smtp-log-event-dot {
    background: #12b76a;
    box-shadow: 0 0 0 5px rgba(18, 183, 106, .12);
}

.smtp-log-event-soft_bounced .smtp-log-event-dot {
    background: #f79009;
    box-shadow: 0 0 0 5px rgba(247, 144, 9, .14);
}

.smtp-log-event-hard_bounced .smtp-log-event-dot,
.smtp-log-event-expired .smtp-log-event-dot,
.smtp-log-event-rejected .smtp-log-event-dot {
    background: #f04438;
    box-shadow: 0 0 0 5px rgba(240, 68, 56, .12);
}

.smtp-log-event-tracking .smtp-log-event-dot {
    background: #7a5af8;
    box-shadow: 0 0 0 5px rgba(122, 90, 248, .12);
}

.smtp-log-event-body {
    padding: 13px 14px;
    border: 1px solid #e5edf7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .05);
}

.smtp-log-event-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.smtp-log-event-topline strong {
    color: #111b31;
    font-size: var(--editor-ui-font-size);
    font-weight: 800;
}

.smtp-log-event-topline time {
    color: #98a2b3;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.smtp-log-event-body p {
    margin-top: 8px;
    color: #667085;
    font-size: var(--editor-ui-font-size);
    font-weight: 650;
    line-height: 1.5;
}

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

.smtp-log-detail-grid strong,
.smtp-log-detail-grid code {
    display: block;
    max-width: 100%;
    color: #101828;
    font-size: 13px;
    font-weight: 800;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.smtp-log-detail-grid span {
    display: block;
    margin-top: 7px;
    color: #667085;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
}

.smtp-log-code-wrap {
    white-space: normal;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.smtp-log-detail-response p {
    margin: 0;
    color: #344054;
    font-size: var(--editor-ui-font-size);
    font-weight: 650;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.smtp-users-page .status-chip.accepted,
.smtp-users-page .status-chip.processed {
    background: #eef4ff;
    color: #175cd3;
}

.smtp-users-page .status-chip.sent,
.smtp-users-page .status-chip.delivered {
    background: #eafaf1;
    color: #148253;
}

.smtp-users-page .status-chip.opened {
    margin-left: 5px;
    background: #e8fff6;
    color: #067647;
}

.smtp-users-page .status-chip.deferred,
.smtp-users-page .status-chip.soft_bounced {
    background: #fff7e8;
    color: #b76b00;
}

.smtp-users-page .status-chip.bounced,
.smtp-users-page .status-chip.hard_bounced,
.smtp-users-page .status-chip.expired,
.smtp-users-page .status-chip.denied,
.smtp-users-page .status-chip.rejected {
    background: #fff0f0;
    color: #c43232;
}

@media (max-width: 1280px) {
    .smtp-log-analytics .smtp-log-kpis-rich {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .smtp-log-analytics-grid,
    .smtp-log-funnel-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .smtp-log-analytics {
        padding: 16px;
    }

    .smtp-log-analytics-head {
        flex-direction: column;
    }

    .smtp-hero-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .smtp-log-analytics .smtp-log-kpis-rich,
    .smtp-log-funnel-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .smtp-log-funnel-stage {
        min-height: 52px;
        font-size: 13px;
    }

    .smtp-log-table {
        min-width: 720px;
    }

    .smtp-log-drawer-panel {
        width: 100vw;
    }

    .smtp-log-drawer-content {
        padding: 18px;
    }

    .smtp-log-drawer-head,
    .smtp-log-event-topline {
        flex-direction: column;
    }

    .smtp-log-drawer-summary-grid,
    .smtp-log-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    .smtp-log-analytics .smtp-log-kpis-rich,
    .smtp-log-funnel-stat-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

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

/* SMTP user creation: close visual match to the reference setup wizard. */
.smtp-users-page.is-create-open {
    gap: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 10px;
    background:
        radial-gradient(circle at 24% 0%, rgba(40, 99, 255, .035), transparent 28%),
        linear-gradient(180deg, #fbfcff 0%, #f8faff 100%);
}

.smtp-users-page.is-create-open .smtp-wizard-page {
    max-width: 1280px;
    margin-inline: auto;
}

.smtp-create-form {
    --smtp-wizard-blue: #126bff;
    --smtp-wizard-ink: #111a35;
    --smtp-wizard-muted: #65738d;
    --smtp-wizard-line: #dfe7f3;
    color: var(--smtp-wizard-ink);
}

.smtp-create-form fieldset {
    gap: 20px;
}

.smtp-create-topline {
    align-items: center;
    gap: 24px;
    padding: 0;
}

.smtp-create-topline p {
    color: #63718a;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: -.01em;
}

.smtp-create-topline p span {
    margin: 0 8px;
    color: #aab5c5;
}

.smtp-create-topline h2 {
    margin-top: 8px;
    color: var(--smtp-wizard-ink);
    font-size: 29px;
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: -.04em;
}

.smtp-create-topline small {
    margin-top: 7px;
    color: #6d7b94;
    font-size: 11px;
    line-height: 1.45;
    font-weight: 650;
}

.smtp-create-top-actions {
    flex: 0 0 auto;
    gap: 10px;
}

.smtp-create-top-actions > button:not(.button) {
    width: 31px;
    height: 31px;
    border-color: #d8e2f1;
    border-radius: 7px;
    background: #fff;
    color: #66748c;
    font-size: 12px;
    box-shadow: 0 8px 20px rgba(21, 35, 66, .06);
}

.smtp-create-top-actions > button:not(.button):hover {
    border-color: #bcd3ff;
    color: var(--smtp-wizard-blue);
    box-shadow: 0 12px 26px rgba(18, 107, 255, .12);
}

.smtp-create-top-actions svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.smtp-create-top-actions .button {
    min-height: 35px;
    padding: 0 17px;
    border-radius: 6px;
    background: var(--smtp-wizard-blue);
    font-size: 12px;
    font-weight: 850;
    box-shadow: 0 12px 24px rgba(18, 107, 255, .22);
}

.smtp-create-layout {
    grid-template-columns: minmax(0, 1fr) 316px;
    gap: 22px;
    align-items: start;
}

.smtp-create-main {
    gap: 16px;
}

.smtp-create-card,
.smtp-side-card,
.smtp-user-preview {
    border-color: rgba(222, 229, 240, .82);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(28, 39, 64, .045);
}

.smtp-create-card {
    overflow: hidden;
    padding: 0 18px 18px;
}

.smtp-reference-stepper {
    min-height: 64px;
    gap: 28px;
    padding: 0;
}

.smtp-reference-stepper span {
    min-width: 105px;
    gap: 11px;
    color: #4f5e78;
    font-size: 11px;
    font-weight: 850;
}

.smtp-reference-stepper b {
    width: 18px;
    height: 18px;
    background: var(--smtp-wizard-blue);
    font-size: 10px;
}

.smtp-reference-stepper i {
    flex: 0 1 430px;
    width: auto;
    height: 4px;
    background:
        radial-gradient(circle at 33% 50%, #d7dfec 0 4px, transparent 4.5px),
        radial-gradient(circle at 66% 50%, #d7dfec 0 4px, transparent 4.5px),
        radial-gradient(circle at 100% 50%, #d7dfec 0 4px, transparent 4.5px),
        #e2e8f2;
}

.smtp-reference-stepper em {
    width: 30%;
    background: var(--smtp-wizard-blue);
}

.smtp-reference-tabs {
    min-height: 47px;
    margin: 0 -18px;
    padding: 0 18px;
    border-bottom-color: #e8eef6;
}

.smtp-reference-tabs strong,
.smtp-reference-tabs span {
    height: 47px;
    color: #66758e;
    font-size: 11px;
    font-weight: 850;
}

.smtp-reference-tabs strong {
    color: var(--smtp-wizard-blue);
}

.smtp-reference-tabs strong::after {
    right: 22px;
    height: 2px;
    background: var(--smtp-wizard-blue);
}

.smtp-create-grid {
    column-gap: 18px;
    row-gap: 15px;
    padding-top: 17px;
}

.smtp-create-grid label {
    gap: 6px;
    color: #18243f;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: -.005em;
}

.smtp-create-grid label span {
    color: var(--smtp-wizard-blue);
}

.smtp-create-grid label em {
    color: #7e8ba0;
    font-weight: 650;
}

.smtp-info-dot {
    display: inline-grid;
    place-items: center;
    width: 14px;
    height: 14px;
    margin-left: 4px;
    border: 1px solid #9aa8bd;
    border-radius: 999px;
    color: #66748c;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
}

.smtp-create-grid input,
.smtp-create-grid textarea {
    min-height: 38px;
    padding: 0 10px;
    border-color: #d9e1ed;
    border-radius: 5px;
    color: #25304b;
    font-size: 12px;
    font-weight: 650;
    box-shadow: none;
}

.smtp-create-grid input.smtp-domain-select-look {
    padding-right: 34px;
    background:
        linear-gradient(45deg, transparent 50%, #66748c 50%) calc(100% - 16px) 16px / 6px 6px no-repeat,
        linear-gradient(135deg, #66748c 50%, transparent 50%) calc(100% - 11px) 16px / 6px 6px no-repeat,
        #fff;
}

.smtp-create-grid textarea {
    min-height: 78px;
    padding-top: 10px;
}

.smtp-create-grid input:focus,
.smtp-create-grid textarea:focus {
    border-color: #9fc1ff;
    outline: 3px solid rgba(18, 107, 255, .12);
}

.smtp-create-grid small {
    color: #6f7d96;
    font-size: 10px;
    line-height: 1.35;
    font-weight: 650;
}

.smtp-password-row {
    grid-template-columns: minmax(0, 1fr) 64px 86px;
}

.smtp-password-row input {
    border-radius: 5px 0 0 5px;
}

.smtp-password-row button {
    position: relative;
    border-color: #d9e1ed;
    background: #f8fbff;
    color: var(--smtp-wizard-blue);
    font-size: 11px;
    font-weight: 850;
}

.smtp-password-row button:first-of-type {
    padding-left: 24px;
    color: #52617a;
}

.smtp-password-row button:first-of-type::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 12px;
    height: 8px;
    border: 2px solid #66748c;
    border-radius: 999px / 70%;
    transform: translateY(-50%);
}

.smtp-password-row button:first-of-type::after {
    content: "";
    position: absolute;
    left: 13px;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: #66748c;
    transform: translateY(-50%);
}

.smtp-password-row button:last-of-type {
    padding-left: 25px;
    border-radius: 0 5px 5px 0;
}

.smtp-password-row button:last-of-type::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 50%;
    width: 13px;
    height: 13px;
    border: 2px solid #126bff;
    border-right-color: transparent;
    border-radius: 999px;
    transform: translateY(-50%) rotate(-20deg);
}

.smtp-password-row button:last-of-type::after {
    content: "";
    position: absolute;
    left: 17px;
    top: 10px;
    width: 5px;
    height: 5px;
    border-top: 2px solid #126bff;
    border-right: 2px solid #126bff;
    transform: rotate(45deg);
}

.smtp-default-limits {
    gap: 7px !important;
    color: #56657d !important;
    font-size: 10px !important;
}

.smtp-default-limits input {
    width: 14px;
    height: 14px;
    min-height: 14px;
}

.smtp-connection-preview {
    position: relative;
    grid-template-columns: minmax(150px, 1.2fr) repeat(4, minmax(92px, 1fr));
    gap: 13px;
    margin-top: 17px;
    padding: 15px 14px 15px 57px;
    border-color: rgba(164, 196, 255, .74);
    border-radius: 6px;
    background: linear-gradient(180deg, #fcfdff, #f8fbff);
    box-shadow: none;
}

.smtp-connection-preview::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 50%;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background:
        linear-gradient(#2472f6, #2472f6) 8px 7px / 10px 2px no-repeat,
        linear-gradient(#2472f6, #2472f6) 8px 12px / 10px 2px no-repeat,
        linear-gradient(#2472f6, #2472f6) 8px 17px / 10px 2px no-repeat,
        #f0f6ff;
    transform: translateY(-50%);
    box-shadow: inset 0 0 0 1px #d7e6ff;
}

.smtp-connection-preview strong,
.smtp-connection-preview b {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #192541;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 900;
}

.smtp-connection-preview small {
    color: #65738d;
    font-size: 9.5px;
    line-height: 1.3;
    font-weight: 650;
}

.smtp-user-preview {
    grid-template-columns: auto minmax(155px, 1.1fr) minmax(0, 3fr);
    gap: 15px;
    padding: 13px 18px;
    border-color: rgba(151, 216, 178, .72);
    border-radius: 8px;
    background: linear-gradient(180deg, #fcfffd, #f8fff9);
    box-shadow: none;
}

.smtp-user-preview > span {
    width: 28px;
    height: 28px;
    border-color: #9edeb7;
    color: #17a365;
    font-size: 14px;
}

.smtp-user-preview strong {
    color: #192541;
    font-size: 11px;
}

.smtp-user-preview small {
    color: #66758e;
    font-size: 10px;
}

.smtp-user-preview dl {
    display: grid;
    grid-template-columns: repeat(4, minmax(92px, 1fr));
    gap: 0;
    align-items: center;
}

.smtp-user-preview dl div {
    min-height: 42px;
    display: grid;
    align-content: center;
    padding-left: 22px;
    border-left: 1px solid rgba(207, 233, 218, .72);
}

.smtp-user-preview dt {
    color: #72809a;
    font-size: 9.5px;
}

.smtp-user-preview dd {
    color: #192541;
    font-size: 11px;
}

.smtp-user-preview mark {
    padding: 3px 7px;
    border-radius: 999px;
    background: #dcf7e8;
    color: #168253;
    font-size: 10px;
}

.smtp-create-actions {
    gap: 10px;
    padding: 0;
}

.smtp-create-actions .button {
    min-width: 130px;
    min-height: 36px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 850;
}

.smtp-draft-button {
    position: relative;
    padding-left: 34px !important;
}

.smtp-draft-button::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 13px;
    height: 13px;
    border: 2px solid #66748c;
    border-radius: 2px;
    transform: translateY(-50%);
    background:
        linear-gradient(#66748c, #66748c) 3px 7px / 7px 2px no-repeat,
        linear-gradient(#66748c, #66748c) 8px 1px / 2px 4px no-repeat;
}

.smtp-create-actions .button.secondary {
    background: #fff;
    border-color: #e1e7f0;
    color: #17213b;
    box-shadow: none;
}

.smtp-side-card {
    gap: 20px;
    padding: 22px;
    position: relative;
    overflow: hidden;
}

.smtp-side-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1a2441;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: -.02em;
}

.smtp-side-card-connection {
    background: #fff;
}

.smtp-side-card-practices {
    background: #fff;
}

.smtp-side-card h3::before {
    content: "";
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 5px;
    background:
        linear-gradient(#2472f6, #2472f6) 5px 5px / 8px 2px no-repeat,
        linear-gradient(#2472f6, #2472f6) 5px 9px / 8px 2px no-repeat,
        linear-gradient(#2472f6, #2472f6) 5px 13px / 8px 2px no-repeat,
        #f0f6ff;
    box-shadow: inset 0 0 0 1px #dbe8ff;
}

.smtp-side-card-practices h3::before {
    border-radius: 999px;
    background:
        linear-gradient(135deg, transparent 42%, #2472f6 43% 57%, transparent 58%) 6px 6px / 7px 7px no-repeat,
        radial-gradient(circle at 50% 44%, transparent 0 5px, #2472f6 5.5px 6.5px, transparent 7px),
        #f0f6ff;
}

.smtp-side-graphic {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr);
    gap: 7px;
    align-items: center;
    margin: -3px 0 1px;
    padding: 12px;
    border: 1px solid #dce8ff;
    border-radius: 10px;
    background:
        radial-gradient(circle at 20% 20%, rgba(18, 107, 255, .10), transparent 22%),
        linear-gradient(135deg, #fafdff, #f3f8ff);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.smtp-side-graphic em {
    position: relative;
    display: block;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(18, 107, 255, .25), rgba(18, 107, 255, .95));
    font-style: normal;
}

.smtp-side-graphic em::after {
    content: "";
    position: absolute;
    right: -1px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-top: 2px solid #126bff;
    border-right: 2px solid #126bff;
    transform: translateY(-50%) rotate(45deg);
}

.smtp-graphic-node {
    display: grid;
    gap: 7px;
    justify-items: center;
    min-width: 0;
    padding: 8px 5px 7px;
    border: 1px solid rgba(188, 211, 255, .9);
    border-radius: 9px;
    background: rgba(255,255,255,.84);
    box-shadow: 0 10px 22px rgba(18, 107, 255, .075);
}

.smtp-graphic-node i {
    position: relative;
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2e79ff, #7cb5ff);
    box-shadow: 0 8px 16px rgba(18, 107, 255, .22);
}

.smtp-graphic-node-app i::before,
.smtp-graphic-node-server i::before,
.smtp-graphic-node-inbox i::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 3px;
}

.smtp-graphic-node-app i::before {
    border: 2px solid rgba(255,255,255,.9);
    border-top-width: 5px;
}

.smtp-graphic-node-server i::before {
    background:
        linear-gradient(rgba(255,255,255,.95), rgba(255,255,255,.95)) 0 0 / 100% 2px no-repeat,
        linear-gradient(rgba(255,255,255,.95), rgba(255,255,255,.95)) 0 6px / 100% 2px no-repeat,
        linear-gradient(rgba(255,255,255,.95), rgba(255,255,255,.95)) 0 12px / 100% 2px no-repeat;
}

.smtp-graphic-node-inbox i::before {
    border: 2px solid rgba(255,255,255,.95);
    border-top: 0;
    transform: translateY(2px);
}

.smtp-graphic-node-inbox i::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    top: 9px;
    height: 9px;
    border-left: 2px solid rgba(255,255,255,.95);
    border-bottom: 2px solid rgba(255,255,255,.95);
    transform: rotate(-45deg);
}

.smtp-graphic-node b {
    min-width: 0;
    color: #273450;
    font-size: 9px;
    line-height: 1;
    font-weight: 900;
    text-align: center;
}

.smtp-side-card dl {
    gap: 0;
}

.smtp-side-card dl div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 0;
    border-bottom: 0;
}

.smtp-side-card dl div + div {
    padding-top: 14px;
}

.smtp-side-card dl div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.smtp-side-card dt {
    color: #687791;
    font-size: 10px;
    font-weight: 800;
}

.smtp-side-card dd {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #17213b;
    font-size: 11px;
    font-weight: 900;
    text-align: right;
}

.smtp-side-card-connection dl div:nth-child(-n+2) {
    grid-template-columns: 1fr;
    gap: 7px;
    align-items: start;
}

.smtp-side-card-connection dl div:nth-child(-n+2) dd {
    width: 100%;
    justify-content: space-between;
    text-align: left;
}

.smtp-side-card-connection dl div:nth-child(2) {
    padding-bottom: 17px;
    border-bottom: 1px solid rgba(233, 238, 246, .92);
}

.smtp-side-card-connection dl div:nth-child(3) {
    padding-top: 17px;
}

.smtp-copy-icon {
    width: 16px;
    height: 16px;
    min-width: 16px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    opacity: .78;
    background:
        linear-gradient(#718099, #718099) 6px 4px / 7px 9px no-repeat,
        linear-gradient(#fff, #fff) 7px 5px / 5px 7px no-repeat,
        linear-gradient(#718099, #718099) 3px 7px / 7px 9px no-repeat,
        linear-gradient(#fff, #fff) 4px 8px / 5px 7px no-repeat;
    color: transparent;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
}

.smtp-copy-icon:hover,
.smtp-copy-icon.copied {
    opacity: 1;
    background:
        linear-gradient(#126bff, #126bff) 6px 4px / 7px 9px no-repeat,
        linear-gradient(#fff, #fff) 7px 5px / 5px 7px no-repeat,
        linear-gradient(#126bff, #126bff) 3px 7px / 7px 9px no-repeat,
        linear-gradient(#fff, #fff) 4px 8px / 5px 7px no-repeat,
        #eef5ff;
}

.smtp-tls-ready {
    position: relative;
    gap: 7px !important;
    color: #17213b !important;
}

.smtp-tls-ready::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 1px solid #79d39e;
    border-radius: 999px;
    background:
        linear-gradient(135deg, transparent 45%, #16a365 46% 57%, transparent 58%) 4px 5px / 6px 5px no-repeat,
        #edf9f2;
}

.smtp-side-card ul {
    gap: 22px;
}

.smtp-side-card li {
    min-height: 48px;
    gap: 4px;
    padding-left: 56px;
}

.smtp-side-card li::before {
    top: 1px;
    width: 38px;
    height: 38px;
    background: #f0f6ff;
    box-shadow: inset 0 0 0 1px #dbe8ff;
}

.smtp-side-card-practices li::after {
    content: "";
    position: absolute;
    z-index: 1;
}

.smtp-practice-lock::after {
    left: 13px;
    top: 15px;
    width: 11px;
    height: 8px;
    border: 2px solid #126bff;
    border-top: 0;
    border-radius: 2px;
    background:
        linear-gradient(#126bff, #126bff) 50% 55% / 3px 3px no-repeat;
    box-shadow: 0 -7px 0 -3px #126bff;
}

.smtp-practice-send::after {
    left: 12px;
    top: 13px;
    width: 15px;
    height: 15px;
    background: #126bff;
    clip-path: polygon(0 45%, 100% 0, 68% 100%, 51% 59%);
}

.smtp-practice-chart::after {
    left: 12px;
    top: 12px;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    background:
        linear-gradient(#126bff, #126bff) 2px 9px / 3px 5px no-repeat,
        linear-gradient(#126bff, #126bff) 7px 6px / 3px 8px no-repeat,
        linear-gradient(#126bff, #126bff) 12px 3px / 3px 11px no-repeat;
}

.smtp-side-card li strong {
    color: #1e2a46;
    font-size: 11px;
}

.smtp-side-card li span {
    color: #65738d;
    font-size: 10px;
    line-height: 1.35;
}

@media (max-width: 1120px) {
    .smtp-users-page.is-create-open .smtp-wizard-page {
        max-width: 860px;
    }

    .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 {
        display: grid;
        gap: 14px;
    }

    .smtp-create-topline h2 {
        font-size: 23px;
    }

    .smtp-create-top-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .smtp-reference-stepper {
        min-height: 56px;
        gap: 12px;
    }

    .smtp-reference-stepper i {
        flex: 1 1 auto;
    }

    .smtp-reference-tabs {
        grid-template-columns: 1fr 1fr;
        row-gap: 0;
        min-height: 88px;
    }

    .smtp-reference-tabs strong,
    .smtp-reference-tabs span {
        height: 44px;
    }

    .smtp-create-grid,
    .smtp-create-aside,
    .smtp-connection-preview,
    .smtp-user-preview,
    .smtp-user-preview dl {
        grid-template-columns: 1fr;
    }

    .smtp-connection-preview {
        padding-left: 54px;
    }

    .smtp-create-actions {
        grid-template-columns: 1fr;
    }

    .smtp-create-actions .button {
        width: 100%;
    }
}

.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,
.attempt-list small,
.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 .worker-status-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid rgba(223,230,242,.88);
    border-radius: 14px;
    background:
        radial-gradient(circle at 100% 0, rgba(40,99,255,.08), transparent 42%),
        #fff;
    box-shadow: 0 10px 26px rgba(28, 39, 64, .045);
}

.campaigns-workbench .worker-status-card.ok {
    border-color: rgba(42, 161, 112, .24);
}

.campaigns-workbench .worker-status-card.stale,
.campaigns-workbench .worker-status-card.missing {
    border-color: rgba(217, 119, 6, .28);
}

.campaigns-workbench .worker-status-card.failed,
.campaigns-workbench .worker-status-card.invalid {
    border-color: rgba(220, 38, 38, .26);
}

.campaigns-workbench .worker-status-card strong {
    display: block;
    margin-bottom: 4px;
    color: #182033;
}

.campaigns-workbench .worker-status-card span,
.campaigns-workbench .worker-status-card small {
    display: block;
    color: var(--muted);
    line-height: 1.45;
}

.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-panel[hidden],
.single-email-message-field[hidden] {
    display: none !important;
}

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

/* Final SMTP polish override: make the create wizard feel finished and lighter. */
.smtp-users-page.is-create-open .smtp-create-layout {
    gap: 28px;
}

.smtp-users-page.is-create-open .smtp-create-card {
    border-color: rgba(225, 232, 244, .72);
    box-shadow: 0 20px 54px rgba(22, 34, 59, .045);
}

.smtp-users-page.is-create-open .smtp-create-grid label {
    color: #18233d;
    font-weight: 800;
}

.smtp-users-page.is-create-open .smtp-create-grid small {
    color: #77849a;
    font-weight: 600;
}

.smtp-users-page.is-create-open .smtp-create-grid input,
.smtp-users-page.is-create-open .smtp-create-grid textarea {
    border-color: #dde5f0;
    background-color: #fff;
    box-shadow: none;
}

.smtp-users-page.is-create-open .smtp-password-row button {
    border-color: #dde5f0;
    background: #fbfdff;
    box-shadow: none;
}

.smtp-users-page.is-create-open .smtp-connection-preview {
    border-color: rgba(74, 137, 255, .42);
    background: linear-gradient(180deg, #fbfdff, #f8fbff);
    box-shadow: none;
}

.smtp-users-page.is-create-open .smtp-user-preview {
    border-color: rgba(74, 190, 124, .36);
    background: linear-gradient(180deg, #fdfffe, #f9fffb);
    box-shadow: none;
}

.smtp-users-page.is-create-open .smtp-side-card {
    border-color: rgba(225, 232, 244, .72);
    box-shadow: 0 18px 44px rgba(22, 34, 59, .045);
}

.smtp-users-page.is-create-open .smtp-side-card dl div {
    border-bottom: 0;
}

.smtp-users-page.is-create-open .smtp-side-card-connection dl div:nth-child(2) {
    border-bottom: 1px solid rgba(231, 237, 247, .88);
}

.smtp-users-page.is-create-open .smtp-side-card dt {
    color: #728098;
    font-weight: 750;
}

.smtp-users-page.is-create-open .smtp-side-card dd,
.smtp-users-page.is-create-open .smtp-connection-preview b,
.smtp-users-page.is-create-open .smtp-user-preview dd {
    color: #15203a;
    font-weight: 850;
}

.smtp-users-page.is-create-open .smtp-copy-icon {
    opacity: .64;
    transform: scale(.88);
}

.smtp-users-page.is-create-open .smtp-copy-icon:hover,
.smtp-users-page.is-create-open .smtp-copy-icon.copied {
    opacity: 1;
}

.smtp-users-page.is-create-open .smtp-side-card li::before {
    background: #f3f7ff;
    box-shadow: none;
}

.smtp-users-page.is-create-open .smtp-side-card li strong {
    color: #1e2943;
    font-weight: 850;
}

.smtp-users-page.is-create-open .smtp-side-card li span {
    color: #6c7a91;
    font-weight: 600;
}

.smtp-users-page.is-create-open .smtp-create-actions .button.secondary {
    border-color: #e3e9f2;
    box-shadow: none;
}

/* Rebuilt SMTP create page. Uses isolated classes to avoid old wizard overrides. */
.smtp-users-page.is-create-open .smtp-redesign-page {
    max-width: 1450px;
    margin-inline: auto;
}

.smtp-redesign-form {
    --smtp-r-blue: #126bff;
    --smtp-r-blue-dark: #0757dc;
    --smtp-r-ink: #0e1934;
    --smtp-r-text: #27344f;
    --smtp-r-muted: #6f7e96;
    --smtp-r-soft: #f7faff;
    --smtp-r-line: #e1e8f2;
    --smtp-r-line-strong: #cfd9e8;
    --smtp-r-green: #17a365;
    color: var(--smtp-r-ink);
}

.smtp-redesign-form fieldset {
    display: grid;
    gap: 22px;
}

.smtp-redesign-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 0 2px 2px;
}

.smtp-redesign-breadcrumb {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}

.smtp-redesign-breadcrumb span {
    margin: 0 8px;
    color: #b8c2d2;
}

.smtp-redesign-header h2 {
    margin: 0;
    color: var(--smtp-r-ink);
    font-size: 32px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.055em;
}

.smtp-redesign-subtitle {
    margin: 9px 0 0;
    color: var(--smtp-r-muted);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 650;
}

.smtp-redesign-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

.smtp-redesign-icon-button,
.smtp-redesign-primary,
.smtp-redesign-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.smtp-redesign-icon-button {
    width: 34px;
    height: 34px;
    border: 1px solid #dfe7f2;
    border-radius: 8px;
    background: #fff;
    color: #66748c;
    box-shadow: 0 10px 24px rgba(16, 24, 40, .045);
}

.smtp-redesign-icon-button svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.smtp-redesign-primary {
    min-height: 38px;
    gap: 8px;
    padding: 0 18px;
    border-radius: 8px;
    background: linear-gradient(180deg, #1d76ff, var(--smtp-r-blue-dark));
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 16px 30px rgba(18, 107, 255, .22);
}

.smtp-redesign-primary svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.smtp-redesign-secondary {
    min-height: 38px;
    padding: 0 18px;
    border: 1px solid var(--smtp-r-line);
    border-radius: 8px;
    background: #fff;
    color: #1d2944;
    font-size: 13px;
    font-weight: 850;
    box-shadow: 0 9px 18px rgba(16, 24, 40, .035);
}

.smtp-redesign-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 358px;
    gap: 30px;
    align-items: start;
}

.smtp-redesign-main {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.smtp-redesign-card,
.smtp-redesign-side-card,
.smtp-redesign-summary {
    border: 1px solid rgba(225, 232, 244, .78);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 56px rgba(16, 24, 40, .045);
}

.smtp-redesign-card {
    overflow: hidden;
}

.smtp-redesign-progress {
    display: flex;
    gap: 26px;
    align-items: center;
    min-height: 70px;
    padding: 0 28px;
}

.smtp-redesign-progress span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #3d4b63;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.smtp-redesign-progress b {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--smtp-r-blue);
    color: #fff;
    font-size: 11px;
    line-height: 1;
}

.smtp-redesign-progress i {
    position: relative;
    display: block;
    width: min(520px, 64%);
    height: 4px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 33% 50%, #dbe3ee 0 4px, transparent 4.5px),
        radial-gradient(circle at 66% 50%, #dbe3ee 0 4px, transparent 4.5px),
        radial-gradient(circle at 100% 50%, #dbe3ee 0 4px, transparent 4.5px),
        #e2e8f2;
}

.smtp-redesign-progress em {
    position: absolute;
    inset: 0 auto 0 0;
    width: 31%;
    border-radius: inherit;
    background: var(--smtp-r-blue);
}

.smtp-redesign-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 60px;
    padding: 0 28px;
    border-bottom: 1px solid rgba(235, 240, 248, .92);
}

.smtp-redesign-tabs button,
.smtp-redesign-tabs strong,
.smtp-redesign-tabs span {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 60px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: #66748c;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.smtp-redesign-tabs button.is-active,
.smtp-redesign-tabs strong {
    color: var(--smtp-r-blue);
}

.smtp-redesign-tabs button.is-active::after,
.smtp-redesign-tabs strong::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: var(--smtp-r-blue);
}

.smtp-tab-panel[hidden] {
    display: none !important;
}

.smtp-redesign-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
    padding: 24px 28px 22px;
}

.smtp-redesign-field {
    display: grid;
    gap: 7px;
    color: var(--smtp-r-text);
    font-size: 12px;
    font-weight: 850;
}

.smtp-redesign-field > span {
    display: inline-flex;
    align-items: center;
    min-height: 15px;
    gap: 5px;
}

.smtp-redesign-field b {
    color: var(--smtp-r-blue);
}

.smtp-redesign-field em {
    color: #7b889d;
    font-style: normal;
    font-weight: 650;
}

.smtp-redesign-field i {
    width: 15px;
    height: 15px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #9aa8bd;
    border-radius: 999px;
    color: #64748b;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
}

.smtp-redesign-field input,
.smtp-redesign-field textarea {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--smtp-r-line-strong);
    border-radius: 7px;
    background: #fff;
    color: #18233d;
    font-size: 13px;
    font-weight: 650;
    box-shadow: none;
}

.smtp-redesign-field textarea {
    min-height: 72px;
    padding-top: 12px;
    resize: vertical;
}

.smtp-redesign-field input:focus,
.smtp-redesign-field textarea:focus {
    border-color: #9abfff;
    outline: 3px solid rgba(18, 107, 255, .12);
}

.smtp-redesign-field small {
    color: #728098;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 600;
}

.smtp-redesign-field-domain input {
    padding-right: 34px;
    background:
        linear-gradient(45deg, transparent 50%, #7b879a 50%) calc(100% - 17px) 18px / 6px 6px no-repeat,
        linear-gradient(135deg, #7b879a 50%, transparent 50%) calc(100% - 12px) 18px / 6px 6px no-repeat,
        #fff;
}

.smtp-redesign-field-wide {
    grid-column: 1 / -1;
}

.smtp-redesign-password {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px 116px;
}

.smtp-redesign-password input {
    border-radius: 7px 0 0 7px;
}

.smtp-redesign-password button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--smtp-r-line-strong);
    border-left: 0;
    background: #f8fbff;
    color: #53627a;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.smtp-redesign-password button:last-child {
    border-radius: 0 7px 7px 0;
    color: var(--smtp-r-blue);
}

.smtp-redesign-password svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.smtp-redesign-check {
    display: inline-flex !important;
    align-items: center;
    gap: 8px !important;
    color: #54637b;
    font-size: 11px !important;
    font-weight: 800 !important;
}

.smtp-redesign-check input {
    width: 15px;
    height: 15px;
    min-height: 15px;
    padding: 0;
    accent-color: var(--smtp-r-blue);
}

.smtp-redesign-connection {
    display: grid;
    grid-template-columns: auto minmax(160px, 1.25fr) repeat(4, minmax(92px, 1fr));
    gap: 16px;
    align-items: center;
    margin: 0 28px 22px;
    padding: 14px 16px;
    border: 1px solid rgba(88, 151, 255, .42);
    border-radius: 9px;
    background: linear-gradient(180deg, #fbfdff, #f8fbff);
}

.smtp-rights-panel {
    display: grid;
    gap: 22px;
    padding: 26px 28px 28px;
}

.smtp-rights-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.smtp-rights-head h3,
.smtp-rights-head p {
    margin: 0;
}

.smtp-rights-head h3 {
    color: #16213a;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -.035em;
}

.smtp-rights-head p {
    max-width: 640px;
    margin-top: 7px;
    color: #687791;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 650;
}

.smtp-rights-head > span {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0 10px;
    border: 1px solid #bce7cc;
    border-radius: 999px;
    background: #effbf4;
    color: #168253;
    font-size: 11px;
    font-weight: 900;
}

.smtp-country-map {
    position: relative;
    min-height: 320px;
    display: grid;
    align-items: center;
    padding: 22px;
    border: 1px solid #e0e8f3;
    border-radius: 16px;
    background:
        radial-gradient(circle at 25% 22%, rgba(18, 107, 255, .08), transparent 27%),
        radial-gradient(circle at 74% 58%, rgba(239, 68, 68, .08), transparent 30%),
        linear-gradient(180deg, #fbfdff, #f6f9ff);
    overflow: hidden;
}

.smtp-country-map svg {
    width: 100%;
    height: auto;
    min-height: 250px;
    filter: drop-shadow(0 18px 24px rgba(16, 24, 40, .08));
}

.smtp-map-graticule path {
    fill: none;
    stroke: rgba(92, 126, 173, .15);
    stroke-width: .45;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.smtp-country-map path.blocked {
    fill: rgba(239, 68, 68, .25);
    stroke: rgba(172, 54, 54, .50);
    stroke-width: .65;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.smtp-country-map circle {
    stroke: #fff;
    stroke-width: .95;
    paint-order: stroke fill;
    transition: fill .16s ease, r .16s ease, filter .16s ease;
}

.smtp-country-map circle.allowed {
    fill: #16a365;
    filter: drop-shadow(0 4px 6px rgba(22, 163, 101, .45));
}

.smtp-country-map circle.blocked-marker {
    fill: #dc2626;
}

.smtp-map-legend {
    position: absolute;
    right: 18px;
    bottom: 16px;
    display: inline-flex;
    gap: 12px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid rgba(225, 232, 244, .9);
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    color: #53627a;
    font-size: 11px;
    font-weight: 850;
    backdrop-filter: blur(8px);
}

.smtp-map-legend span {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.smtp-map-legend i {
    width: 9px;
    height: 9px;
    border-radius: 999px;
}

.smtp-map-legend i.allowed {
    background: #16a365;
}

.smtp-map-legend i.blocked {
    background: #dc2626;
}

.smtp-country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.smtp-country-toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid #dce7f7;
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
    backdrop-filter: blur(10px);
}

.smtp-country-toolbar strong {
    color: #17233c;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.smtp-country-toolbar div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.smtp-country-toolbar button {
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid #cfe0f8;
    border-radius: 999px;
    background: #f7fbff;
    color: #1f4f91;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .14s ease, border-color .14s ease, background .14s ease;
}

.smtp-country-toolbar button:hover {
    transform: translateY(-1px);
    border-color: #8db8f4;
    background: #eef6ff;
}

.smtp-country-board {
    display: grid;
    gap: 16px;
    max-height: 520px;
    padding: 2px 4px 4px;
    overflow: auto;
}

.smtp-country-board-compact {
    max-height: 430px;
}

.smtp-country-region {
    display: grid;
    gap: 9px;
    padding: 12px;
    border: 1px solid #edf2fa;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.smtp-country-region h4 {
    margin: 0;
    color: #15223a;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: -.015em;
}

.smtp-country-option {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 4px 8px;
    align-items: center;
    min-height: 42px;
    padding: 8px 9px;
    border: 1px solid #f1b6b6;
    border-radius: 11px;
    background: linear-gradient(180deg, #fff8f8, #fff3f3);
    color: #7f1d1d;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255,255,255,.75) inset;
    transition: transform .14s ease, border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.smtp-country-option:hover {
    transform: translateY(-1px);
}

.smtp-country-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.smtp-country-option span {
    overflow: hidden;
    color: inherit;
    font-size: 12px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.smtp-country-option small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(220, 38, 38, .10);
    color: inherit;
    font-size: 10px;
    font-weight: 950;
}

.smtp-country-option::after {
    content: "Fra";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 10px;
    font-weight: 950;
}

.smtp-country-option.is-selected {
    border-color: #9bdfb7;
    background: linear-gradient(180deg, #f1fbf5, #eaf8f0);
    color: #145c3b;
    box-shadow: 0 10px 24px rgba(22, 163, 101, .08);
}

.smtp-country-option.is-selected small {
    background: rgba(22, 163, 101, .13);
}

.smtp-country-option.is-selected::after {
    content: "Til";
    background: #dff7e8;
    color: #136b45;
}

.smtp-edit-rights {
    gap: 12px;
}

.smtp-country-grid-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.smtp-country-grid-compact .smtp-country-option {
    min-height: 42px;
    padding: 8px 9px;
    border-radius: 10px;
}

.smtp-redesign-connection-icon {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 9px;
    background: #eef5ff;
    color: var(--smtp-r-blue);
}

.smtp-redesign-connection-icon svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.smtp-redesign-connection strong,
.smtp-redesign-connection b {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #16213a;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 900;
}

.smtp-redesign-connection small {
    display: block;
    margin-top: 2px;
    color: #6f7e96;
    font-size: 10.5px;
    font-weight: 650;
}

.smtp-redesign-copy {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #7a879d;
    font-size: 0;
    cursor: pointer;
}

.smtp-redesign-copy svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.smtp-redesign-copy:hover,
.smtp-redesign-copy.copied {
    background: #eef5ff;
    color: var(--smtp-r-blue);
}

.smtp-redesign-summary {
    display: grid;
    grid-template-columns: auto minmax(150px, 1fr) minmax(0, 3.4fr);
    gap: 18px;
    align-items: center;
    padding: 13px 20px;
    border-color: rgba(92, 196, 136, .38);
    background: linear-gradient(180deg, #fdfffe, #f8fffb);
    box-shadow: none;
}

.smtp-redesign-summary-check {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #9bdcb6;
    border-radius: 999px;
    background: #f0fbf5;
    color: var(--smtp-r-green);
}

.smtp-redesign-summary-check svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.smtp-redesign-summary strong {
    color: #16213a;
    font-size: 12px;
    font-weight: 900;
}

.smtp-redesign-summary small {
    display: block;
    margin-top: 3px;
    color: #728098;
    font-size: 11px;
    font-weight: 600;
}

.smtp-redesign-summary dl {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
}

.smtp-redesign-summary dl div {
    min-height: 42px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding-left: 22px;
    border-left: 1px solid rgba(207, 233, 218, .78);
}

.smtp-redesign-summary dt {
    color: #728098;
    font-size: 10px;
    font-weight: 850;
}

.smtp-redesign-summary dd {
    margin: 0;
    color: #16213a;
    font-size: 12px;
    font-weight: 900;
}

.smtp-redesign-summary mark {
    width: fit-content;
    padding: 3px 8px;
    border-radius: 999px;
    background: #dcf7e8;
    color: #168253;
    font-size: 10px;
    font-weight: 900;
}

.smtp-redesign-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: -2px;
}

.smtp-redesign-actions .smtp-redesign-primary {
    min-width: 154px;
}

.smtp-redesign-aside {
    display: grid;
    gap: 20px;
}

.smtp-redesign-side-card {
    display: grid;
    gap: 22px;
    padding: 28px 30px 30px;
    border-radius: 16px;
}

.smtp-redesign-side-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #16213a;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -.02em;
}

.smtp-redesign-side-card h3 > span,
.smtp-redesign-side-card li > span {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 34px;
    border-radius: 999px;
    background: #eef5ff;
    color: var(--smtp-r-blue);
}

.smtp-redesign-side-card h3 > span {
    width: 24px;
    height: 24px;
    border-radius: 7px;
}

.smtp-redesign-side-card svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.smtp-redesign-side-card dl {
    display: grid;
    gap: 18px;
    margin: 0;
}

.smtp-redesign-side-card dl div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 16px;
    align-items: center;
}

.smtp-redesign-side-card dl div.copy {
    grid-template-columns: 1fr;
    gap: 9px;
}

.smtp-redesign-side-card dl div.copy dd {
    width: 100%;
    justify-content: space-between;
}

.smtp-redesign-side-card dl div.copy + div.copy {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(231, 237, 247, .88);
}

.smtp-redesign-side-card dt {
    color: #728098;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.2;
}

.smtp-redesign-side-card dd {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #16213a;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
}

.smtp-redesign-side-card dd.ready {
    color: #16213a;
}

.smtp-redesign-side-card dd.ready svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border-radius: 999px;
    background: #edf9f2;
    color: var(--smtp-r-green);
}

.smtp-redesign-side-card ul {
    display: grid;
    gap: 23px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.smtp-redesign-side-card li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.smtp-redesign-side-card li strong {
    display: block;
    color: #1e2943;
    font-size: 12px;
    font-weight: 900;
}

.smtp-redesign-side-card li small {
    display: block;
    margin-top: 3px;
    color: #6c7a91;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 600;
}

/* Right-side SMTP cards need visibly more breathing room than the reference default. */
.smtp-users-page.is-create-open .smtp-redesign-layout {
    grid-template-columns: minmax(0, 1fr) 360px !important;
    gap: 34px !important;
}

.smtp-users-page.is-create-open .smtp-redesign-aside {
    gap: 24px !important;
}

.smtp-users-page.is-create-open .smtp-redesign-side-card {
    padding: 36px 38px 38px !important;
    border-radius: 18px !important;
}

.smtp-users-page.is-create-open .smtp-redesign-side-card h3 {
    margin-bottom: 2px !important;
}

.smtp-users-page.is-create-open .smtp-redesign-side-card dl {
    gap: 22px !important;
}

.smtp-users-page.is-create-open .smtp-redesign-side-card dl div {
    gap: 18px !important;
}

.smtp-users-page.is-create-open .smtp-redesign-side-card dl div.copy {
    gap: 11px !important;
}

.smtp-users-page.is-create-open .smtp-redesign-side-card dl div.copy + div.copy {
    padding-bottom: 22px !important;
}

.smtp-users-page.is-create-open .smtp-redesign-side-card ul {
    gap: 28px !important;
}

.smtp-users-page.is-create-open .smtp-redesign-side-card li {
    gap: 18px !important;
}

.smtp-users-page.is-create-open .smtp-redesign-connection {
    grid-template-columns: auto minmax(220px, 1.25fr) minmax(160px, 1fr) minmax(210px, 1.25fr) !important;
    grid-template-rows: repeat(2, auto) !important;
    column-gap: 24px !important;
    row-gap: 16px !important;
    margin: 0 28px 28px !important;
    padding: 24px 26px !important;
    border-radius: 12px !important;
}

.smtp-users-page.is-create-open .smtp-redesign-connection > .smtp-redesign-connection-icon {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
}

.smtp-users-page.is-create-open .smtp-redesign-connection > div {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
}

.smtp-users-page.is-create-open .smtp-redesign-connection > span:nth-child(3) {
    grid-column: 3 !important;
    grid-row: 1 !important;
}

.smtp-users-page.is-create-open .smtp-redesign-connection > span:nth-child(4) {
    grid-column: 4 !important;
    grid-row: 1 !important;
}

.smtp-users-page.is-create-open .smtp-redesign-connection > span:nth-child(5) {
    grid-column: 3 !important;
    grid-row: 2 !important;
}

.smtp-users-page.is-create-open .smtp-redesign-connection > span:nth-child(6) {
    grid-column: 4 !important;
    grid-row: 2 !important;
}

.smtp-users-page.is-create-open .smtp-redesign-connection > span {
    min-width: 0 !important;
}

.smtp-users-page.is-create-open .smtp-redesign-connection > span:last-child {
    min-width: 0 !important;
}

.smtp-users-page.is-create-open .smtp-redesign-connection-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 11px !important;
}

.smtp-users-page.is-create-open .smtp-redesign-connection strong,
.smtp-users-page.is-create-open .smtp-redesign-connection b {
    gap: 9px !important;
    line-height: 1.32 !important;
    white-space: normal !important;
}

.smtp-users-page.is-create-open .smtp-redesign-connection small {
    margin-top: 4px !important;
    line-height: 1.35 !important;
}

.smtp-users-page.is-create-open .smtp-redesign-summary {
    grid-template-columns: auto minmax(180px, 1fr) minmax(0, 3.8fr) !important;
    gap: 24px !important;
    padding: 22px 26px !important;
    border-radius: 12px !important;
}

.smtp-users-page.is-create-open .smtp-redesign-summary-check {
    width: 40px !important;
    height: 40px !important;
}

.smtp-users-page.is-create-open .smtp-redesign-summary dl div {
    min-height: 50px !important;
    gap: 6px !important;
    padding-left: 26px !important;
}

.smtp-users-page.is-create-open .smtp-redesign-summary small {
    margin-top: 5px !important;
}

@media (max-width: 1120px) {
    .smtp-redesign-layout {
        grid-template-columns: 1fr;
    }

    .smtp-redesign-aside {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .smtp-redesign-connection,
    .smtp-redesign-summary {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .smtp-redesign-connection > span:not(.smtp-redesign-connection-icon),
    .smtp-redesign-summary dl {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .smtp-redesign-header,
    .smtp-redesign-header-actions {
        align-items: flex-start;
    }

    .smtp-redesign-header {
        display: grid;
    }

    .smtp-redesign-header-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .smtp-redesign-header h2 {
        font-size: 27px;
    }

    .smtp-redesign-progress,
    .smtp-redesign-fields,
    .smtp-redesign-password,
    .smtp-redesign-connection,
    .smtp-redesign-summary,
    .smtp-redesign-summary dl,
    .smtp-redesign-aside {
        grid-template-columns: 1fr;
    }

    .smtp-redesign-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .smtp-country-grid,
    .smtp-country-grid-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .smtp-rights-head {
        display: grid;
    }

    .smtp-country-map {
        min-height: 230px;
        padding: 14px;
    }

    .smtp-redesign-progress,
    .smtp-redesign-tabs,
    .smtp-redesign-fields {
        padding-left: 18px;
        padding-right: 18px;
    }

    .smtp-redesign-connection {
        margin-left: 18px;
        margin-right: 18px;
    }

    .smtp-redesign-actions {
        display: grid;
    }
}

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

.domains-setup-head span {
    display: block;
    max-width: 980px;
    margin-top: 6px;
    color: #667085;
    font-size: 12px;
    line-height: 1.45;
}

.domains-setup-head code {
    color: #344054;
    font-weight: 800;
}

.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-provider-note {
    width: fit-content;
    border: 1px solid rgba(40, 99, 255, .16);
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(40, 99, 255, .08);
    color: #1f54dc;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

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

.dns-card-guide {
    display: grid;
    gap: 6px;
    margin-top: 2px;
    padding-top: 8px;
    border-top: 1px solid rgba(102,112,133,.13);
}

.dns-card-guide p {
    position: relative;
    margin: 0;
    padding-left: 13px;
}

.dns-card-guide p::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #2863ff;
    opacity: .72;
}

.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.recommendations span:first-child { background: linear-gradient(135deg, #101828, var(--green)); }
.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;
}

.recommendation-automation-form {
    padding: 14px;
    border: 1px solid #dfe6f2;
    border-radius: 14px;
    background:
        radial-gradient(circle at top right, rgba(15, 138, 95, .12), transparent 34%),
        linear-gradient(180deg, #ffffff, #f8fafd);
}

.recommendation-checks,
.recommendation-mapping {
    grid-column: 1 / -1;
}

.recommendation-checks {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #dfe6f2;
    border-radius: 10px;
    background: #fff;
}

.recommendation-checks label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--ink);
    font-size: 13px;
}

.recommendation-mapping {
    padding: 12px;
    border: 1px dashed #b8c3d8;
    border-radius: 10px;
    background: rgba(255, 255, 255, .72);
}

.recommendation-mapping summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--ink);
}

.recommendation-mapping[open] {
    display: grid;
    gap: 10px;
}

.recommendation-preview-panel {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #c7d2e4;
    border-radius: 14px;
    background: #fff;
}

.recommendation-preview-panel > span {
    color: var(--muted);
    font-size: 13px;
}

.recommendation-preview-list {
    display: grid;
    gap: 10px;
}

.recommendation-preview-list article {
    padding: 12px;
    border: 1px solid #dfe6f2;
    border-radius: 10px;
    background: #f8fafd;
}

.recommendation-preview-list strong,
.recommendation-preview-list small,
.recommendation-preview-list p {
    display: block;
    margin: 0;
}

.recommendation-preview-list small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.recommendation-preview-list p {
    margin-top: 8px;
    color: #475467;
    font-size: 13px;
    line-height: 1.5;
}

.recommendation-html-preview {
    border-top: 1px solid #e4e7ec;
    padding-top: 10px;
}

.soft-divider {
    border: 0;
    border-top: 1px solid #e4e7ec;
    margin: 20px 0;
}

.automation-overview-page {
    display: grid;
    gap: 22px;
    color: #101828;
}

.automation-overview-hero,
.automation-overview-filters,
.automation-overview-layout,
.automation-overview-row,
.automation-overview-pagination,
.automation-template-head {
    display: flex;
    align-items: center;
}

.automation-overview-hero {
    justify-content: space-between;
    gap: 22px;
}

.automation-overview-hero h1 {
    margin: 0;
    font-size: 26px;
    line-height: 1.15;
    letter-spacing: -.03em;
}

.automation-overview-hero p {
    margin: 8px 0 0;
    color: #667085;
    font-size: 14px;
}

.automation-overview-actions {
    display: flex;
    gap: 12px;
}

.automation-overview-actions a,
.automation-overview-row a,
.automation-overview-row button,
.automation-overview-pagination button,
.automation-overview-filters button,
.automation-template-card a {
    text-decoration: none;
    cursor: pointer;
}

.automation-overview-primary,
.automation-overview-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
}

.automation-overview-primary {
    background: #111c3a;
    color: #fff;
    box-shadow: 0 12px 28px rgba(17, 28, 58, .18);
}

.automation-overview-secondary {
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #101828;
}

.automation-overview-filters {
    gap: 12px;
}

.automation-overview-search {
    position: relative;
    width: min(320px, 100%);
}

.automation-overview-search input,
.automation-overview-filters button,
.automation-overview-pagination select {
    height: 40px;
    border: 1px solid #dfe6f2;
    border-radius: 8px;
    background: #fff;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.automation-overview-search input {
    width: 100%;
    padding: 0 40px 0 16px;
}

.automation-overview-search span {
    position: absolute;
    right: 14px;
    top: 50%;
    color: #667085;
    transform: translateY(-50%);
}

.automation-overview-filters button {
    padding: 0 18px;
}

.automation-overview-filters .automation-sort-button {
    margin-left: auto;
}

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

.automation-kpi-grid article {
    position: relative;
    min-height: 112px;
    padding: 22px 22px 18px 92px;
    border: 1px solid #edf0f5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .04);
}

.kpi-icon {
    position: absolute;
    left: 24px;
    top: 28px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 25px;
    font-weight: 900;
}

.kpi-icon.green,
.automation-row-icon.green,
.automation-template-card .green { color: #0f8a5f; background: #e7f6ef; }
.kpi-icon.blue,
.automation-row-icon.blue,
.automation-template-card .blue { color: #2f6bff; background: #eaf1ff; }
.kpi-icon.amber { color: #dc8a09; background: #fff4e5; }
.kpi-icon.purple,
.automation-row-icon.purple { color: #7a4ee6; background: #f1eaff; }

.automation-kpi-grid small,
.automation-kpi-grid strong,
.automation-kpi-grid em {
    display: block;
}

.automation-kpi-grid small {
    color: #344054;
    font-size: 12px;
    font-weight: 900;
}

.automation-kpi-grid strong {
    margin-top: 8px;
    font-size: 27px;
    letter-spacing: -.03em;
}

.automation-kpi-grid em {
    margin-top: 10px;
    color: #0f8a5f;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.automation-overview-layout {
    align-items: stretch;
    gap: 22px;
}

.automation-overview-list-panel {
    min-width: 0;
    flex: 1;
    border: 1px solid #edf0f5;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.automation-overview-tabs {
    display: flex;
    gap: 34px;
    padding: 0 20px;
    border-bottom: 1px solid #edf0f5;
}

.automation-overview-tabs button {
    min-height: 54px;
    border: 0;
    background: transparent;
    color: #475467;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.automation-overview-tabs button.active {
    color: #2457d6;
    box-shadow: inset 0 -2px 0 #2457d6;
}

.automation-overview-tabs span {
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2457d6;
    font-size: 11px;
}

.automation-overview-list {
    display: grid;
}

.automation-overview-empty {
    display: grid;
    justify-items: start;
    gap: 10px;
    padding: 34px 18px;
    border-bottom: 1px solid #edf0f5;
    background:
        radial-gradient(circle at 24px 24px, rgba(36, 87, 214, .08), transparent 34%),
        #fff;
}

.automation-overview-row[hidden],
.automation-overview-empty[hidden] {
    display: none !important;
}

.automation-overview-empty strong {
    color: #101828;
    font-size: 15px;
}

.automation-overview-empty p {
    max-width: 460px;
    margin: 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.5;
}

.automation-overview-empty .automation-overview-primary {
    min-height: 34px;
    padding-inline: 14px;
    font-size: 12px;
}

.automation-overview-row {
    display: grid;
    grid-template-columns: 52px minmax(180px, 1.4fr) 96px 116px 88px 70px 146px;
    gap: 14px;
    align-items: center;
    padding: 18px 14px;
    border-bottom: 1px solid #edf0f5;
}

.automation-row-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 25px;
    font-weight: 900;
}

.automation-row-icon.violet,
.automation-template-card .violet { color: #6b36d8; background: #f1eaff; }
.automation-row-icon.rose { color: #d92d20; background: #fff1f3; }
.automation-row-icon.teal { color: #0f8a83; background: #e7f8f5; }
.automation-row-icon.gold,
.automation-template-card .gold { color: #dc8a09; background: #fff4e5; }

.automation-row-main strong,
.automation-row-main p,
.automation-row-status span,
.automation-row-status small,
.automation-row-last small,
.automation-row-last strong,
.automation-row-contacts small,
.automation-row-contacts span {
    display: block;
}

.automation-row-main strong {
    color: #101828;
    font-size: 13px;
}

.automation-row-main strong span {
    color: #f2b705;
}

.automation-row-main p {
    margin: 6px 0 0;
    color: #667085;
    font-size: 11px;
    line-height: 1.45;
}

.automation-row-status-form {
    position: relative;
    width: fit-content;
    margin: 0;
}

.automation-row-status select {
    appearance: none;
    min-width: 86px;
    min-height: 27px;
    padding: 5px 26px 5px 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}

.automation-row-status-form::after {
    content: "⌄";
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-52%);
    color: currentColor;
    font-size: 10px;
    font-weight: 900;
    pointer-events: none;
}

.automation-row-status span,
.automation-row-status select {
    width: fit-content;
    border-radius: 999px;
}

.automation-row-status .active {
    background: #e7f6ef;
    color: #0f8a5f;
}

.automation-row-status .paused {
    background: #fff4e5;
    color: #b7791f;
}

.automation-row-status .draft {
    background: #f2f4f7;
    color: #667085;
}

.automation-row-status .inactive {
    background: #fff1f3;
    color: #b42318;
}

.automation-row-status .template {
    padding: 5px 10px;
    background: #eef4ff;
    color: #2457d6;
    font-size: 11px;
    font-weight: 900;
}

.automation-row-status small,
.automation-row-last small,
.automation-row-contacts span {
    margin-top: 8px;
    color: #667085;
    font-size: 11px;
}

.automation-row-last strong,
.automation-row-contacts small {
    margin-top: 4px;
    color: #344054;
    font-size: 11px;
    font-weight: 900;
}

.automation-row-spark {
    display: flex;
    align-items: end;
    gap: 3px;
    height: 28px;
}

.automation-row-spark i {
    width: 7px;
    border-radius: 999px;
    background: #0f8a5f;
}

.automation-row-spark i:nth-child(1) { height: 9px; }
.automation-row-spark i:nth-child(2) { height: 13px; }
.automation-row-spark i:nth-child(3) { height: 8px; }
.automation-row-spark i:nth-child(4) { height: 18px; }
.automation-row-spark i:nth-child(5) { height: 15px; }
.automation-row-spark.amber i { background: #dc8a09; }
.automation-row-spark.muted i { background: #d0d5dd; }

.automation-row-actions {
    display: grid;
    grid-template-columns: 51px 74px 34px;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.automation-row-duplicate-form,
.automation-row-delete-form {
    margin: 0;
}

.automation-row-action,
.automation-row-menu {
    appearance: none;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #e2e8f2;
    border-radius: 7px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.automation-row-action {
    color: #2463d9;
    text-decoration: none;
}

.automation-row-open {
    width: 51px;
}

.automation-row-duplicate {
    width: 74px;
    color: #172033;
}

.automation-overview-template-row .automation-row-actions {
    grid-template-columns: 74px;
}

.automation-row-use-template {
    width: 74px;
    border-color: #bdd0ff;
    background: #eef4ff;
    color: #1849b8;
}

.automation-row-menu {
    width: 34px;
    padding: 0;
    color: #667085;
}

.automation-row-menu::before {
    content: "";
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: #667085;
    box-shadow: 0 -6px 0 #667085, 0 6px 0 #667085;
}

.automation-row-delete {
    color: #b42318;
    font-size: 18px;
    line-height: 1;
}

.automation-row-delete::before {
    content: none;
}

.automation-row-delete:hover {
    border-color: #f1b8b8;
    background: #fff5f5;
    color: #d92d20;
}

.automation-row-action:hover,
.automation-row-menu:hover {
    border-color: #c9d6ee;
    box-shadow: 0 6px 14px rgba(36, 99, 217, 0.08);
    transform: translateY(-1px);
}

.automation-row-action:focus-visible,
.automation-row-menu:focus-visible {
    outline: 3px solid rgba(36, 99, 217, 0.16);
    outline-offset: 2px;
}

.automation-overview-pagination {
    justify-content: center;
    gap: 18px;
    padding: 14px 20px;
    color: #667085;
    font-size: 12px;
}

.automation-overview-pagination div {
    display: flex;
    gap: 6px;
}

.automation-overview-pagination button {
    width: 36px;
    height: 36px;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    background: #fff;
    color: #344054;
    font-weight: 900;
}

.automation-overview-pagination button.active {
    background: #eef4ff;
    color: #2457d6;
}

.automation-overview-pagination button:disabled {
    opacity: .45;
    cursor: default;
}

.automation-template-panel {
    width: 300px;
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 16px;
    border: 1px solid #edf0f5;
    border-radius: 14px;
    background: #fff;
}

.automation-template-head {
    justify-content: space-between;
    gap: 12px;
}

.automation-template-head strong {
    font-size: 14px;
}

.automation-template-head a,
.automation-template-card a {
    color: #2457d6;
    font-size: 12px;
    font-weight: 900;
}

.automation-template-card {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 14px;
    padding: 12px;
    border: 1px solid #edf0f5;
    border-radius: 10px;
}

.automation-template-card > span {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    font-size: 36px;
    font-weight: 900;
}

.automation-template-card strong,
.automation-template-card p,
.automation-template-card a {
    display: block;
}

.automation-template-card strong {
    font-size: 13px;
}

.automation-template-card p {
    margin: 7px 0 10px;
    color: #667085;
    font-size: 11px;
    line-height: 1.45;
}

.automation-template-tip {
    position: relative;
    padding: 14px 34px 14px 14px;
    border: 1px solid #edf0f5;
    border-radius: 10px;
    background: #f8fafc;
    color: #475467;
    font-size: 11px;
    line-height: 1.45;
}

.automation-template-tip button {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 0;
    background: transparent;
    color: #667085;
    cursor: pointer;
}

@media (max-width: 1180px) {
    .automation-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .automation-overview-layout {
        flex-direction: column;
    }

    .automation-template-panel {
        width: auto;
    }

    .automation-overview-row {
        grid-template-columns: 52px minmax(180px, 1fr) 88px 110px 78px 60px 126px;
    }
}

@media (max-width: 780px) {
    .automation-overview-hero,
    .automation-overview-filters,
    .automation-overview-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .automation-overview-actions {
        flex-direction: column;
    }

    .automation-overview-search,
    .automation-overview-filters .automation-sort-button {
        width: 100%;
        margin-left: 0;
    }

    .automation-kpi-grid {
        grid-template-columns: 1fr;
    }

    .automation-overview-tabs {
        overflow-x: auto;
    }

    .automation-overview-row {
        grid-template-columns: 48px 1fr;
    }

    .automation-row-status,
    .automation-row-last,
    .automation-row-contacts,
    .automation-row-spark,
    .automation-row-actions {
        grid-column: 2;
    }

    .automation-row-actions {
        justify-content: flex-start;
    }
}

.automation-studio-shell {
    min-height: calc(100vh - 120px);
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #f7f9fc;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(16, 24, 40, .08);
}

.automation-builder-body .automation-studio-shell-blank {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.automation-studio-form {
    display: grid;
    min-height: inherit;
    grid-template-rows: auto 1fr auto;
}

.automation-builder-body .automation-studio-form {
    grid-template-columns: 250px minmax(560px, 1fr) 340px;
    grid-template-rows: 64px minmax(0, 1fr);
    min-height: 100vh;
    background:
        radial-gradient(circle at 270px 20px, rgba(16, 24, 40, .055) 1px, transparent 1.4px) 0 0 / 16px 16px,
        #fbfcff;
}

.automation-studio-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
    border-bottom: 1px solid #e4e7ec;
    background: rgba(255, 255, 255, .96);
}

.automation-studio-topbar-compact {
    min-height: 64px;
    padding: 0 18px 0 32px;
    gap: 14px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 1px 0 rgba(16, 24, 40, .02);
}

.automation-builder-body .automation-studio-topbar-compact {
    grid-column: 2 / 4;
    grid-row: 1;
    border-left: 1px solid #e4e7ec;
}

.automation-studio-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.automation-studio-title-row-compact {
    gap: 8px;
}

.automation-studio-title-row h1 {
    margin: 0;
    color: #101828;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.automation-title-input {
    width: min(380px, 48vw);
    border: 0;
    background: transparent;
    color: #101828;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.automation-studio-topbar-compact .automation-title-input {
    width: min(300px, 34vw);
    font-size: 15px;
    letter-spacing: -.01em;
}

.automation-title-input:focus {
    outline: 0;
    box-shadow: inset 0 -2px 0 #2457d6;
}

.automation-studio-topbar p {
    margin: 5px 0 0;
    color: #475467;
    font-size: 13px;
}

.automation-draft-pill {
    padding: 3px 9px;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    background: #f8fafc;
    color: #344054;
    font-size: 11px;
    font-weight: 800;
}

.automation-studio-topbar-compact .automation-draft-pill {
    padding: 4px 10px;
    border-color: #d9e0ea;
    background: #f3f6fb;
    color: #344054;
    font-size: 10px;
}

.automation-edit-pencil {
    color: #667085;
    font-size: 13px;
}

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

.automation-studio-actions-compact {
    gap: 8px;
    margin-left: auto;
}

.automation-save-state {
    margin-right: 14px;
    color: #475467;
    font-size: 12px;
    white-space: nowrap;
}

.automation-save-state::first-letter {
    color: #0f8a5f;
}

.automation-save-button,
.automation-activate-button,
.automation-kebab,
.automation-icon-button {
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: #101828;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.automation-icon-button {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-color: #e2e8f0;
    border-radius: 10px;
    color: #344054;
    font-size: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.automation-icon-button:disabled {
    color: #c4ccd8;
    background: #fbfcfe;
    cursor: default;
}

.automation-save-button,
.automation-activate-button {
    min-height: 34px;
    padding: 0 20px;
}

.automation-studio-topbar-compact .automation-save-button,
.automation-studio-topbar-compact .automation-activate-button {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.automation-flow-settings-button,
.automation-test-button,
.automation-activate-button-menu {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.automation-flow-settings-button {
    border-color: #e2e8f0;
    color: #1f2937;
}

.automation-test-button {
    border-color: #dbe3ef;
    color: #344054;
}

.automation-activate-button {
    border-color: #101828;
    background: #111c3a;
    color: #fff;
    box-shadow: 0 10px 20px rgba(17, 28, 58, .18);
}

.automation-studio-topbar-compact .automation-activate-button {
    border-color: #101a3a;
    background: linear-gradient(135deg, #111c3a, #0b1430);
    box-shadow: 0 12px 24px rgba(17, 28, 58, .18), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.automation-kebab {
    width: 34px;
    height: 34px;
    color: #667085;
}

.automation-studio-topbar-compact .automation-kebab {
    width: 36px;
    height: 36px;
    border-color: #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #667085;
}

.automation-studio-layout {
    display: grid;
    grid-template-columns: 220px minmax(520px, 1fr) 310px;
    min-height: 635px;
    background:
        radial-gradient(circle at 20px 20px, rgba(16, 24, 40, .055) 1px, transparent 1.4px) 0 0 / 16px 16px,
        #fbfcff;
}

.automation-studio-layout-generic {
    grid-template-columns: 250px minmax(560px, 1fr) 340px;
}

.automation-builder-body .automation-studio-layout-generic {
    display: contents;
    min-height: 0;
    background: none;
}

.automation-builder-body .automation-step-palette {
    grid-column: 1;
    grid-row: 1 / 3;
    min-height: 100vh;
}

.automation-builder-body .automation-canvas-stage {
    grid-column: 2;
    grid-row: 2;
    min-height: calc(100vh - 64px);
}

.automation-builder-body .automation-generic-settings-panel {
    grid-column: 3;
    grid-row: 2;
}

.automation-step-palette,
.automation-settings-panel {
    background: rgba(255, 255, 255, .98);
}

.automation-settings-panel {
    transition: box-shadow .18s ease, background .18s ease;
}

.automation-settings-panel.is-settings-focus {
    background: #fff;
    box-shadow: inset 0 0 0 2px rgba(36, 87, 214, .18), -18px 0 38px rgba(36, 87, 214, .08);
}

.automation-step-palette {
    padding: 14px 10px 14px;
    border-right: 1px solid #e4e7ec;
}

.automation-builder-body .automation-step-palette {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.automation-step-palette h2 {
    margin: 0 0 10px;
    color: #101828;
    font-size: 14px;
}

.automation-palette-search {
    display: grid;
    gap: 6px;
    margin: 0 0 10px;
    color: #667085;
    font-size: 10px;
    font-weight: 800;
}

.automation-palette-search input {
    width: 100%;
    min-height: 32px;
    border: 1px solid #d8deea;
    border-radius: 999px;
    background:
        linear-gradient(180deg, #fff, #f8fafc);
    color: #101828;
    font-size: 11px;
    font-weight: 700;
    box-shadow: inset 0 1px 2px rgba(16, 24, 40, .04);
}

.automation-palette-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 12px;
    border-bottom: 1px solid #e4e7ec;
}

.automation-palette-tabs-multi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 12px;
    border: 0;
    max-height: none;
    overflow: visible;
}

.automation-palette-tabs button,
.automation-settings-tabs button,
.automation-bottom-tabs button {
    border: 0;
    background: transparent;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.automation-palette-tabs button {
    padding: 10px 0;
}

.automation-palette-tabs-multi button {
    min-height: 28px;
    padding: 6px 8px;
    border: 1px solid #e4e9f2;
    border-radius: 999px;
    background: #f8fafc;
    color: #475467;
    font-size: 10px;
    line-height: 1.1;
    text-align: center;
    box-shadow: none;
}

.automation-palette-tabs .active,
.automation-settings-tabs .active,
.automation-bottom-tabs .active {
    color: #2457d6;
    box-shadow: inset 0 -2px 0 #2457d6;
}

.automation-palette-tabs-multi .active {
    border-color: #bdd0ff;
    background: #eef4ff;
    color: #1849b8;
    box-shadow: 0 6px 14px rgba(36, 87, 214, .08);
}

.automation-palette-featured,
.automation-palette-pinned {
    margin: 0 0 12px;
}

.automation-palette-featured h3,
.automation-palette-pinned h3,
.automation-palette-section-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    margin: 0 0 7px;
    color: #344054;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.automation-palette-pinned h3 span {
    margin-right: 5px;
    color: #f59e0b;
}

.automation-palette-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.automation-palette-quick-grid div,
.automation-palette-pinned-list div {
    position: relative;
    border: 1px solid #e6ebf4;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .96));
    color: #101828;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    cursor: grab;
    user-select: none;
}

.automation-palette-quick-grid div {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 5px 7px;
    align-items: center;
    min-height: 58px;
    padding: 8px;
    border-radius: 12px;
}

.automation-palette-pinned-list {
    display: grid;
    gap: 6px;
}

.automation-palette-pinned-list div {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 8px;
    align-items: center;
    min-height: 36px;
    padding: 6px 8px;
    border-radius: 10px;
}

.automation-palette-quick-grid div:hover,
.automation-palette-pinned-list div:hover,
.automation-action-list div:hover {
    border-color: #cfd8ea;
    background: #fff;
    box-shadow: 0 8px 18px rgba(16, 24, 40, .08);
}

.automation-palette-quick-grid div[hidden],
.automation-palette-pinned-list div[hidden] {
    display: none !important;
}

.automation-palette-quick-grid span,
.automation-palette-pinned-list span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.automation-palette-quick-grid strong,
.automation-palette-pinned-list strong,
.automation-palette-quick-grid small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.automation-palette-quick-grid strong,
.automation-palette-pinned-list strong {
    font-size: 11px;
}

.automation-palette-quick-grid small {
    grid-column: 2;
    color: #667085;
    font-size: 9px;
}

.automation-palette-quick-grid .green,
.automation-palette-pinned-list .green { color: #0f8a5f; background: #e7f6ef; }
.automation-palette-quick-grid .amber,
.automation-palette-quick-grid .gold,
.automation-palette-pinned-list .amber,
.automation-palette-pinned-list .gold { color: #b7791f; background: #fff6db; }
.automation-palette-quick-grid .violet,
.automation-palette-pinned-list .violet { color: #6b36d8; background: #f1eaff; }
.automation-palette-quick-grid .indigo,
.automation-palette-pinned-list .indigo { color: #2457d6; background: #eaf1ff; }
.automation-palette-quick-grid .blue,
.automation-palette-pinned-list .blue { color: #2f6bff; background: #eaf1ff; }
.automation-palette-quick-grid .sky,
.automation-palette-pinned-list .sky { color: #2970ff; background: #eef6ff; }
.automation-palette-quick-grid .purple,
.automation-palette-pinned-list .purple { color: #8a4af3; background: #f4eefd; }
.automation-palette-quick-grid .rose,
.automation-palette-quick-grid .red,
.automation-palette-pinned-list .rose,
.automation-palette-pinned-list .red { color: #d92d20; background: #fff1f3; }
.automation-palette-quick-grid .teal,
.automation-palette-pinned-list .teal { color: #0f8a83; background: #e7f8f5; }

.automation-action-list {
    display: grid;
    gap: 7px;
}

.automation-action-list-registry {
    max-height: 310px;
    padding-right: 4px;
    overflow: auto;
}

.automation-builder-body .automation-action-list-registry {
    flex: 1 1 auto;
    min-height: 320px;
    max-height: none;
}

.automation-action-list div {
    position: relative;
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 8px;
    align-items: center;
    min-height: 46px;
    padding: 7px;
    border: 1px solid #edf0f5;
    border-radius: 10px;
    background: #fff;
    color: #101828;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.automation-action-list div[hidden] {
    display: none !important;
}

.automation-action-list div[draggable="true"] {
    cursor: grab;
    user-select: none;
}

.automation-action-list div.dragging,
.automation-flow-node.dragging {
    opacity: .55;
    cursor: grabbing;
}

.automation-action-list div.is-click-hint {
    border-color: #2457d6;
    background: #f4f7ff;
    box-shadow: 0 10px 24px rgba(36, 87, 214, .14);
}

.automation-palette-quick-grid div.is-click-hint,
.automation-palette-pinned-list div.is-click-hint {
    border-color: #2457d6;
    background: #f4f7ff;
    box-shadow: 0 10px 24px rgba(36, 87, 214, .14);
}

.automation-action-list div.is-click-hint::after,
.automation-palette-quick-grid div.is-click-hint::after,
.automation-palette-pinned-list div.is-click-hint::after {
    content: "Træk ud på flowet";
    position: absolute;
    right: 8px;
    bottom: -9px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #2457d6;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
}

.automation-action-list div.selected {
    transform: translateX(6px);
    border-color: #d8c7ff;
    background: #f7f1ff;
    box-shadow: 0 10px 24px rgba(91, 55, 168, .15);
}

.automation-action-list span {
    grid-row: 1 / span 2;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.automation-action-list strong,
.automation-action-list small {
    display: block;
}

.automation-action-list strong {
    font-size: 12px;
}

.automation-action-list small {
    color: #667085;
    font-size: 10px;
}

.automation-action-list .green { color: #0f8a5f; background: #e7f6ef; }
.automation-action-list .amber,
.automation-action-list .gold { color: #b7791f; background: #fff6db; }
.automation-action-list .violet { color: #6b36d8; background: #f1eaff; }
.automation-action-list .indigo { color: #2457d6; background: #eaf1ff; }
.automation-action-list .blue { color: #2f6bff; background: #eaf1ff; }
.automation-action-list .sky { color: #2970ff; background: #eef6ff; }
.automation-action-list .purple { color: #8a4af3; background: #f4eefd; }
.automation-action-list .rose,
.automation-action-list .red { color: #d92d20; background: #fff1f3; }
.automation-action-list .teal { color: #0f8a83; background: #e7f8f5; }

.automation-drag-note {
    margin: 18px 6px 0;
    color: #98a2b3;
    font-size: 11px;
}

.automation-canvas-stage {
    position: relative;
    min-height: 635px;
    padding: 26px;
    overflow: auto;
}

.automation-canvas-tools {
    position: absolute;
    top: 16px;
    right: 14px;
    z-index: 2;
    display: grid;
    grid-template-columns: 34px 34px 12px 34px 54px 34px;
    align-items: center;
    gap: 2px;
}

.automation-canvas-tools button,
.automation-minimap button {
    height: 30px;
    border: 1px solid #e4e7ec;
    background: #fff;
    color: #344054;
    font-weight: 800;
    cursor: pointer;
}

.automation-canvas-tools button:first-child,
.automation-canvas-tools button:nth-child(2) {
    border-radius: 8px;
}

.automation-canvas-tools strong {
    height: 30px;
    display: grid;
    place-items: center;
    border-block: 1px solid #e4e7ec;
    background: #fff;
    color: #344054;
    font-size: 12px;
}

.automation-flow-map {
    position: relative;
    width: max(100%, 920px);
    min-height: 760px;
    margin: 0;
    border-radius: 14px;
}

.automation-flow-map-empty {
    display: block;
}

.automation-empty-canvas-hint {
    position: absolute;
    left: 50%;
    top: 118px;
    width: min(420px, calc(100% - 40px));
    padding: 26px;
    border: 1px dashed #b8c8ee;
    border-radius: 18px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 18px 50px rgba(16, 24, 40, .08);
    text-align: center;
    transform: translateX(-50%);
}

.automation-empty-canvas-hint[hidden] {
    display: none;
}

.automation-empty-canvas-hint strong {
    display: block;
    color: #101828;
    font-size: 18px;
    font-weight: 950;
}

.automation-empty-canvas-hint p {
    margin: 8px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.55;
}

.automation-flow-map.is-drop-target {
    outline: 2px dashed rgba(47, 107, 255, .45);
    outline-offset: 10px;
    background: rgba(47, 107, 255, .035);
}

.automation-flow-map.is-dynamic-routing::before,
.automation-flow-map.is-dynamic-routing .flow-split-line,
.automation-flow-map.is-dynamic-routing .flow-merge-line {
    display: none;
}

.automation-flow-connectors {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: visible;
    pointer-events: none;
}

.automation-flow-connectors path {
    fill: none;
    stroke: #cbd5e1;
    stroke-width: 2;
    stroke-linecap: round;
}

.automation-flow-connectors path.decision-branch-path {
    stroke: #86a9ff;
    stroke-dasharray: 5 6;
}

.automation-flow-map::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 78px;
    width: 2px;
    height: 420px;
    background: #d0d5dd;
    transform: translateX(-1px);
}

.automation-flow-summary {
    width: max(100%, 920px);
    margin: 18px 0 0;
    padding: 18px;
    border: 1px solid #e5eaf3;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(248, 251, 255, .98)),
        radial-gradient(circle at 0% 0%, rgba(47, 107, 255, .10), transparent 34%),
        radial-gradient(circle at 100% 0%, rgba(18, 183, 106, .09), transparent 30%);
    box-shadow: 0 18px 44px rgba(16, 24, 40, .08);
}

.automation-flow-summary header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.automation-flow-summary header span {
    color: #2f6bff;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.automation-flow-summary header strong {
    color: #101828;
    font-size: 16px;
    font-weight: 950;
}

.automation-flow-summary p {
    margin: 0;
    max-width: 94ch;
    color: #344054;
    font-size: 13px;
    line-height: 1.6;
}

.automation-flow-summary-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.automation-flow-summary-metrics span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid #e4eaf5;
    border-radius: 999px;
    background: #fff;
    color: #475467;
    font-size: 11px;
    font-weight: 850;
}

.automation-flow-summary-metrics b {
    color: #101828;
    font-size: 12px;
}

.automation-flow-summary ol {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.automation-flow-summary li {
    position: relative;
    padding: 13px 14px 13px 44px;
    border: 1px solid #edf1f7;
    border-radius: 14px;
    background: rgba(255, 255, 255, .86);
    color: #475467;
    font-size: 12px;
    line-height: 1.45;
}

.automation-flow-summary li i {
    position: absolute;
    top: 12px;
    left: 13px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eef4ff;
    color: #2f6bff;
    font-style: normal;
    font-size: 11px;
    font-weight: 950;
}

.automation-flow-summary li strong,
.automation-flow-summary li small {
    display: block;
}

.automation-flow-summary li strong {
    color: #101828;
    font-size: 12px;
    font-weight: 950;
}

.automation-flow-summary li small {
    margin-top: 3px;
    color: #667085;
}

.automation-flow-summary-warnings {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.automation-flow-summary-warnings span {
    display: block;
    padding: 9px 11px;
    border: 1px solid #fedf89;
    border-radius: 12px;
    background: #fffaeb;
    color: #93370d;
    font-size: 12px;
    font-weight: 800;
}

.automation-flow-node {
    position: absolute;
    z-index: 1;
    width: 218px;
    min-height: 72px;
    padding: 12px 14px 12px 56px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(16, 24, 40, .05);
    cursor: grab;
    user-select: none;
    transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease;
}

.automation-node-delete {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 6;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #fff1f3;
    color: #d92d20;
    font-size: 15px;
    font-weight: 950;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transform: scale(.86);
    transition: opacity .16s ease, transform .16s ease, background .16s ease;
}

.automation-flow-node:hover .automation-node-delete,
.automation-flow-node.active .automation-node-delete {
    opacity: 1;
    transform: scale(1);
}

.automation-node-delete:hover {
    background: #ffd6dc;
}

.automation-flow-node:hover,
.automation-flow-node.active {
    border-color: #2f6bff;
    box-shadow: 0 14px 30px rgba(47, 107, 255, .16);
}

.automation-flow-node.is-free-positioned {
    z-index: 4;
}

.automation-flow-node::before {
    position: absolute;
    left: 15px;
    top: 24px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 900;
}

.automation-flow-node small,
.automation-flow-node strong,
.automation-flow-node span {
    display: block;
}

.automation-flow-node small {
    margin-bottom: 5px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
}

.automation-flow-node strong {
    color: #101828;
    font-size: 12px;
    line-height: 1.35;
}

.automation-flow-node span {
    margin-top: 4px;
    color: #667085;
    font-size: 11px;
}

.automation-flow-node[data-node-icon]::before {
    content: attr(data-node-icon);
    font-size: 15px;
}

.starter-node {
    border-color: #b8ddd2;
    background: #f4fffb;
}

.starter-node::before {
    color: #0f8a5f;
    background: #e7f6ef;
}

.communication-node {
    border-color: #b7d7f4;
    background: #f5fbff;
}

.communication-node::before {
    color: #2f6bff;
    background: #eaf1ff;
}

.data-node {
    border-color: #b8ddd2;
    background: #f4fffb;
}

.data-node::before {
    color: #0f8a83;
    background: #e7f8f5;
}

.crm-node {
    border-color: #dbc8ff;
    background: #fbf8ff;
}

.crm-node::before {
    color: #8a4af3;
    background: #f4eefd;
}

.integration-node {
    border-color: #c7d7ff;
    background: #f7faff;
}

.integration-node::before {
    color: #2457d6;
    background: #eaf1ff;
}

.logic-node {
    border-color: #bfe4df;
    background: #f4fffd;
}

.logic-node::before {
    color: #0f8a83;
    background: #e7f8f5;
}

.ending-node {
    border-color: #ffd3d3;
    background: #fff8f8;
}

.ending-node::before {
    color: #d92d20;
    background: #fff1f3;
}

.trigger-node {
    left: 171px;
    top: 0;
    border-color: #b8ddd2;
    background: #f4fffb;
}

.trigger-node::before {
    content: "◷";
    color: #0f8a5f;
    background: #e7f6ef;
}

.filter-node {
    left: 171px;
    top: 118px;
    border-color: #d8c7ff;
    background: #fbf8ff;
}

.filter-node::before {
    content: "▽";
    color: #7a4ee6;
    background: #f4eefd;
}

.decision-node {
    border-color: #f5d596;
    background: #fffaf0;
}

.decision-node::before {
    content: "⌯";
    color: #dc8a09;
    background: #fff6db;
}

.recommendation-node {
    left: 171px;
    top: 244px;
    border-color: #dbc8ff;
    background: #fbf8ff;
}

.recommendation-node::before {
    content: "☯";
    color: #6b36d8;
    background: #f1eaff;
}

.email-node {
    left: 54px;
    top: 368px;
    border-color: #b7d7f4;
    background: #f5fbff;
}

.email-node::before {
    content: "✉";
    color: #2f6bff;
    background: #eaf1ff;
}

.update-node {
    left: 294px;
    top: 368px;
    border-color: #a9e4dc;
    background: #f2fffd;
}

.update-node::before {
    content: "♙";
    color: #0f8a83;
    background: #e7f8f5;
}

.add-tag-node {
    border-color: #dbc8ff;
    background: #fbf8ff;
}

.add-tag-node::before {
    content: "◇";
    color: #8a4af3;
    background: #f4eefd;
}

.remove-tag-node {
    border-color: #f3c7d4;
    background: #fff7fa;
}

.remove-tag-node::before {
    content: "◇";
    color: #d92d20;
    background: #fff1f3;
}

.webhook-node {
    border-color: #b8ddd2;
    background: #f4fffb;
}

.webhook-node::before {
    content: "⌘";
    color: #0f8a83;
    background: #e7f8f5;
}

.exit-node {
    border-color: #ffc7d1;
    background: #fff7f8;
}

.exit-node::before {
    content: "⚑";
    color: #d92d20;
    background: #fff1f3;
}

.wait-node {
    left: 171px;
    top: 504px;
    border-color: #f7c79a;
    background: #fff8f1;
}

.wait-node::before {
    content: "◷";
    color: #f97316;
    background: #fff4e5;
}

.flow-split-line,
.flow-merge-line {
    position: absolute;
    z-index: 0;
    left: 103px;
    width: 354px;
    border: 1px solid #d0d5dd;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
}

.flow-split-line {
    top: 336px;
    height: 56px;
}

.flow-merge-line {
    top: 450px;
    height: 54px;
    border-top: 0;
    border-bottom: 1px solid #d0d5dd;
    border-radius: 0 0 10px 10px;
}

.automation-decision-branch {
    position: absolute;
    z-index: 5;
    display: grid;
    grid-template-columns: auto 26px;
    align-items: center;
    gap: 6px;
    padding: 4px 5px 4px 9px;
    border: 1px solid #dbe5ff;
    border-radius: 999px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 10px 24px rgba(36, 87, 214, .12);
    transform: translate(-50%, -50%);
}

.automation-decision-branch span {
    color: #101828;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .08em;
}

.automation-decision-branch button {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 999px;
    background: #2457d6;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.automation-decision-branch.is-no {
    border-color: #ffe0e0;
}

.automation-decision-branch.is-no button {
    background: #d92d20;
}

.automation-branch-menu {
    position: absolute;
    z-index: 20;
    width: 190px;
    display: grid;
    gap: 4px;
    padding: 8px;
    border: 1px solid #dfe6f2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(16, 24, 40, .18);
}

.automation-branch-menu button {
    display: grid;
    gap: 3px;
    padding: 9px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #101828;
    text-align: left;
    cursor: pointer;
}

.automation-branch-menu button:hover {
    background: #f4f7ff;
}

.automation-branch-menu strong {
    font-size: 12px;
}

.automation-branch-menu small {
    color: #667085;
    font-size: 10px;
}

.automation-undo-toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: min(520px, calc(100vw - 32px));
    padding: 12px 14px 12px 16px;
    border: 1px solid rgba(16, 24, 40, .12);
    border-radius: 999px;
    background: #101828;
    color: #fff;
    box-shadow: 0 18px 44px rgba(16, 24, 40, .28);
    transform: translateX(-50%);
}

.automation-undo-toast span {
    font-size: 13px;
    font-weight: 800;
}

.automation-undo-toast button {
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #2457d6;
    font-size: 12px;
    font-weight: 950;
    padding: 7px 11px;
    cursor: pointer;
}

.automation-info-toast {
    padding-right: 16px;
}

.automation-kebab-menu {
    position: absolute;
    z-index: 9998;
    display: grid;
    gap: 5px;
    width: 220px;
    padding: 8px;
    border: 1px solid rgba(16, 24, 40, .10);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(16, 24, 40, .18);
}

.automation-kebab-menu button {
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #101828;
    font-size: 13px;
    font-weight: 850;
    text-align: left;
    cursor: pointer;
}

.automation-kebab-menu button:hover {
    background: #f4f7ff;
}

.automation-kebab-menu button:disabled {
    color: #b6bfcc;
    cursor: not-allowed;
}

.automation-kebab-menu button.danger {
    color: #b42318;
}

.automation-flow-test-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(16, 24, 40, .42);
    backdrop-filter: blur(8px);
}

.automation-flow-test-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    width: min(760px, 100%);
    max-height: min(760px, calc(100vh - 44px));
    border: 1px solid rgba(226, 232, 240, .92);
    border-radius: 24px;
    background:
        radial-gradient(circle at 92% 0, rgba(37, 99, 235, .12), transparent 36%),
        #fff;
    box-shadow: 0 30px 90px rgba(16, 24, 40, .28);
}

.automation-flow-test-card header {
    position: relative;
    display: grid;
    gap: 7px;
    padding: 24px 26px 18px;
    border-bottom: 1px solid #e7edf6;
}

.automation-flow-test-card header span {
    width: fit-content;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef3fb;
    color: #2457d6;
    font-size: 11px;
    font-weight: 950;
}

.automation-flow-test-card h2 {
    margin: 0;
    color: #101828;
    font-size: 32px;
    line-height: 1;
    letter-spacing: -.04em;
}

.automation-flow-test-card p {
    margin: 0;
    color: #667085;
    line-height: 1.5;
}

.automation-flow-test-card header button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #f2f4f7;
    color: #667085;
    font-size: 20px;
    cursor: pointer;
}

.automation-flow-test-card section {
    display: grid;
    gap: 10px;
    overflow: auto;
    padding: 18px 26px;
}

.automation-flow-test-card article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 13px 14px;
    border: 1px solid #e7edf6;
    border-left-width: 4px;
    border-radius: 15px;
    background: #fff;
}

.automation-flow-test-card article.pass {
    border-left-color: #16a06f;
}

.automation-flow-test-card article.warning {
    border-left-color: #f59e0b;
}

.automation-flow-test-card article.error {
    border-left-color: #d64c61;
}

.automation-flow-test-card article i {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #eef3fb;
    color: #2457d6;
    font-style: normal;
    font-weight: 950;
}

.automation-flow-test-card article.pass i {
    background: #e9f8f1;
    color: #16a06f;
}

.automation-flow-test-card article.warning i {
    background: #fff7e6;
    color: #c87900;
}

.automation-flow-test-card article.error i {
    background: #fff1f3;
    color: #d64c61;
}

.automation-flow-test-card strong,
.automation-flow-test-card small {
    display: block;
}

.automation-flow-test-card strong {
    color: #101828;
    font-size: 13px;
}

.automation-flow-test-card small {
    margin-top: 3px;
    color: #667085;
    line-height: 1.45;
}

.automation-flow-test-card footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 26px 22px;
    border-top: 1px solid #e7edf6;
}

.automation-flow-test-card footer button {
    min-height: 40px;
    border: 1px solid #d0d5dd;
    border-radius: 11px;
    padding: 0 16px;
    background: #fff;
    color: #101828;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.automation-flow-test-card footer button:last-child {
    border-color: #111c3a;
    background: #111c3a;
    color: #fff;
}

.automation-trigger-conflict {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(16, 24, 40, .38);
    backdrop-filter: blur(4px);
}

.automation-trigger-conflict-card {
    width: min(460px, 100%);
    display: grid;
    gap: 12px;
    padding: 22px;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 26px 70px rgba(16, 24, 40, .28);
}

.automation-trigger-conflict-card > strong {
    color: #101828;
    font-size: 18px;
    font-weight: 950;
}

.automation-trigger-conflict-card p {
    margin: 0;
    color: #475467;
    font-size: 13px;
    line-height: 1.55;
}

.automation-trigger-conflict-card b {
    color: #101828;
}

.automation-trigger-conflict-card > span {
    color: #667085;
    font-size: 12px;
    font-weight: 900;
}

.automation-trigger-conflict-card footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 4px;
}

.automation-trigger-conflict-card button {
    min-height: 34px;
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    background: #fff;
    color: #101828;
    font-size: 12px;
    font-weight: 900;
    padding: 0 12px;
    cursor: pointer;
}

.automation-trigger-conflict-card button[data-trigger-conflict-action="replace"] {
    border-color: #2457d6;
    background: #2457d6;
    color: #fff;
}

.automation-trigger-conflict-card button[data-trigger-conflict-action="new"] {
    border-color: #dbe5ff;
    background: #f4f7ff;
    color: #2457d6;
}

.automation-minimap {
    position: absolute;
    left: 16px;
    bottom: 18px;
    width: 112px;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    background: rgba(255, 255, 255, .95);
    overflow: hidden;
}

.automation-minimap > div {
    height: 76px;
    display: grid;
    place-items: center;
    gap: 5px;
}

.automation-minimap span {
    width: 28px;
    height: 8px;
    display: block;
    border-radius: 2px;
    background: #e4e7ec;
}

.automation-minimap footer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #e4e7ec;
}

.automation-minimap button {
    height: 30px;
    border: 0;
    border-right: 1px solid #e4e7ec;
    font-size: 11px;
}

.automation-settings-panel {
    padding: 16px 14px;
    border-left: 1px solid #e4e7ec;
    overflow: auto;
}

.automation-settings-head {
    display: grid;
    grid-template-columns: 28px 1fr 26px 26px 26px;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.automation-settings-head .settings-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #f1eaff;
    color: #6b36d8;
    font-weight: 900;
}

.automation-settings-head .settings-icon[data-settings-type="decision"] {
    background: #eaf1ff;
    color: #2457d6;
}

.automation-settings-head .settings-icon[data-settings-type="contact_created"] {
    background: #ecfdf3;
    color: #027a48;
}

.automation-settings-head .settings-icon[data-settings-type="consent_filter"] {
    background: #fff7ed;
    color: #c2410c;
}

.automation-settings-head .settings-icon[data-settings-type="email"] {
    background: #eaf1ff;
    color: #2457d6;
}

.automation-settings-head .settings-icon[data-settings-type="wait"] {
    background: #fff7df;
    color: #b7791f;
}

.automation-settings-head .settings-icon[data-settings-type="decision"] {
    background: #fff7df;
    color: #b7791f;
}

.automation-settings-head strong {
    color: #101828;
    font-size: 14px;
}

.automation-settings-head button {
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
    color: #667085;
    cursor: pointer;
}

.automation-settings-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 -14px 16px;
    padding: 0 14px;
    border-bottom: 1px solid #e4e7ec;
}

.automation-settings-tabs-wide {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    overflow-x: auto;
}

.automation-settings-tabs button {
    padding: 10px 0;
}

.automation-field-label,
.automation-check-section,
.automation-http-lock {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
}

.automation-field-label select,
.automation-field-label input,
.automation-field-label textarea {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    background: #fff;
    color: #101828;
    font-size: 13px;
    font-weight: 600;
}

.automation-field-label input,
.automation-field-label select {
    height: 36px;
}

.automation-field-label textarea {
    min-height: 104px;
    padding: 10px;
    resize: vertical;
}

.automation-empty-settings-note {
    display: grid;
    gap: 5px;
    margin: 0 0 16px;
    padding: 12px;
    border: 1px dashed #cad6ef;
    border-radius: 12px;
    background: #f8fbff;
}

.automation-empty-settings-note[hidden] {
    display: none;
}

.automation-empty-settings-note strong {
    color: #101828;
    font-size: 13px;
}

.automation-empty-settings-note span {
    color: #667085;
    font-size: 11px;
    line-height: 1.45;
}

.automation-select-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
}

.automation-select-row em {
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
}

.automation-select-row .connected {
    color: #0f8a5f;
}

.automation-select-row .disconnected {
    color: #d92d20;
}

.automation-check-section h3 {
    margin: 0;
    color: #344054;
    font-size: 12px;
}

.automation-check-section label,
.automation-http-lock {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
}

.automation-check-section input,
.automation-http-lock input {
    width: 14px;
    height: 14px;
    accent-color: #2f6bff;
}

.automation-settings-panel[data-active-settings-panel="contact_created"] > .automation-settings-tabs-wide,
.automation-settings-panel[data-active-settings-panel="consent_filter"] > .automation-settings-tabs-wide,
.automation-settings-panel[data-active-settings-panel="email"] > .automation-settings-tabs-wide,
.automation-settings-panel[data-active-settings-panel="wait"] > .automation-settings-tabs-wide,
.automation-settings-panel[data-active-settings-panel="engagement_decision"] > .automation-settings-tabs-wide,
.automation-settings-panel[data-active-settings-panel="add_tag"] > .automation-settings-tabs-wide,
.automation-settings-panel[data-active-settings-panel="popular_email"] > .automation-settings-tabs-wide,
.automation-settings-panel[data-active-settings-panel="goal_completion"] > .automation-settings-tabs-wide {
    display: none;
}

.automation-node-settings-body {
    display: grid;
    gap: 12px;
}

.automation-node-settings-body[hidden],
.automation-node-settings-section[hidden],
.automation-condition-grid [hidden] {
    display: none !important;
}

.automation-node-settings-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    margin: 0 0 12px;
    padding: 4px;
    border: 1px solid #e4e9f2;
    border-radius: 12px;
    background: #f8fafc;
}

.automation-node-settings-tabs button {
    min-height: 32px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #667085;
    font-size: 10px;
    font-weight: 950;
    cursor: pointer;
}

.automation-node-settings-tabs-six {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.automation-node-settings-tabs-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.automation-node-settings-tabs button.active {
    background: #fff;
    color: #2457d6;
    box-shadow: 0 6px 16px rgba(16, 24, 40, .08);
}

.automation-settings-card {
    display: grid;
    gap: 10px;
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid #e1e8f2;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, #f9fbff);
    box-shadow: 0 10px 24px rgba(16, 24, 40, .045);
}

.automation-settings-card h3 {
    margin: 0;
    color: #101828;
    font-size: 12px;
    font-weight: 950;
}

.automation-settings-card .automation-field-label {
    margin-bottom: 0;
}

.automation-settings-help {
    margin: -2px 0 2px;
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
}

.automation-radio-row,
.automation-toggle-row {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 9px;
    align-items: start;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
}

.automation-toggle-row {
    align-items: center;
}

.automation-radio-row input,
.automation-toggle-row input {
    width: 15px;
    height: 15px;
    margin-top: 1px;
    accent-color: #2457d6;
}

.automation-radio-row span,
.automation-toggle-row span {
    display: grid;
    gap: 2px;
}

.automation-radio-row strong {
    color: #101828;
    font-size: 12px;
}

.automation-radio-row small {
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.automation-info-box,
.automation-warning-box,
.automation-result-box {
    display: grid;
    gap: 5px;
    margin: 0 0 12px;
    padding: 11px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.45;
}

.automation-info-box {
    border: 1px solid #c9dcff;
    background: #f1f6ff;
    color: #2457d6;
}

.automation-warning-box {
    border: 1px solid #fedf89;
    background: #fffbeb;
    color: #92400e;
}

.automation-result-box {
    border: 1px solid #b7e4cb;
    background: #ecfdf3;
    color: #027a48;
}

.automation-result-box strong {
    color: #05603a;
    font-size: 12px;
    font-weight: 950;
}

.automation-segment-control {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    border: 1px solid #e4e9f2;
    border-radius: 999px;
    background: #f8fafc;
}

.automation-segment-control label {
    display: block;
    cursor: pointer;
}

.automation-segment-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.automation-segment-control span {
    min-height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #667085;
    font-size: 11px;
    font-weight: 950;
}

.automation-segment-control input:checked + span {
    background: #2457d6;
    color: #fff;
    box-shadow: 0 8px 18px rgba(36, 87, 214, .22);
}

.automation-condition-grid {
    display: grid;
    grid-template-columns: 1fr .86fr 1fr;
    gap: 8px;
}

.automation-condition-grid select,
.automation-condition-grid input {
    min-width: 0;
    height: 34px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: #101828;
    font-size: 12px;
    font-weight: 750;
}

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

.automation-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.automation-small-add,
.automation-run-test-button {
    width: fit-content;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #c9d8ff;
    border-radius: 10px;
    background: #eef4ff;
    color: #2457d6;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
}

.automation-run-test-button {
    border-color: #2457d6;
    background: #2457d6;
    color: #fff;
}

.automation-email-preview-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    background: linear-gradient(180deg, #f8fbff 0, #fff 100%);
}

.automation-email-preview-card strong {
    color: #101828;
    font-size: 18px;
    line-height: 1.18;
}

.automation-email-preview-card p {
    margin: 0;
    color: #475467;
    font-size: 13px;
    line-height: 1.55;
}

.automation-email-preview-card span {
    width: fit-content;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 7px;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
}

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

.automation-product-preview-grid article {
    min-height: 72px;
    display: grid;
    align-content: end;
    gap: 4px;
    padding: 10px;
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    background:
        radial-gradient(circle at 28% 20%, rgba(37, 99, 235, .18), transparent 34%),
        linear-gradient(145deg, #eef5ff, #ffffff);
}

.automation-product-preview-grid b {
    color: #101828;
    font-size: 12px;
    font-weight: 950;
}

.automation-product-preview-grid small {
    color: #667085;
    font-size: 10px;
    font-weight: 800;
}

.automation-data-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 10px;
    font-size: 11px;
}

.automation-data-table th,
.automation-data-table td {
    padding: 8px;
    border-bottom: 1px solid #edf1f7;
    text-align: left;
}

.automation-data-table th {
    color: #667085;
    font-weight: 950;
    text-transform: uppercase;
}

.automation-data-table td {
    color: #344054;
    font-weight: 750;
}

.automation-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.automation-chip-list span {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border: 1px solid #dbe5ff;
    border-radius: 999px;
    background: #f4f7ff;
    color: #2457d6;
    font-size: 11px;
    font-weight: 900;
}

.automation-code-output {
    margin: 0;
    padding: 12px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #111827;
    color: #d1fadf;
    font-size: 11px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.automation-decision-help {
    display: grid;
    gap: 8px;
    margin: 4px 0 16px;
    padding: 12px;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    background: #f8fbff;
}

.automation-decision-help h3 {
    margin: 0;
    color: #101828;
    font-size: 12px;
}

.automation-decision-help p {
    margin: 0 0 4px;
    color: #667085;
    font-size: 11px;
    line-height: 1.5;
}

.automation-decision-help div {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 8px;
}

.automation-decision-help span {
    display: inline-grid;
    place-items: center;
    min-height: 24px;
    border-radius: 999px;
    background: #eaf1ff;
    color: #2457d6;
    font-size: 10px;
    font-weight: 950;
}

.automation-decision-help div:last-child span {
    background: #fff1f3;
    color: #d92d20;
}

.automation-decision-help strong {
    color: #344054;
    font-size: 11px;
}

.automation-test-button {
    width: 142px;
    min-height: 34px;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    background: #fff;
    color: #101828;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.automation-result-link {
    margin-top: 8px;
    border: 0;
    background: transparent;
    color: #2457d6;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.automation-preview-results {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.automation-preview-results article {
    padding: 10px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #f8fafc;
}

.automation-preview-results strong,
.automation-preview-results span,
.automation-preview-results small {
    display: block;
}

.automation-preview-results span,
.automation-preview-results small {
    margin-top: 4px;
    color: #667085;
    font-size: 11px;
}

.automation-studio-bottom {
    border-top: 1px solid #e4e7ec;
    background: #fff;
}

.automation-bottom-tabs {
    display: flex;
    gap: 22px;
    padding: 0 22px;
    border-bottom: 1px solid #e4e7ec;
}

.automation-bottom-tabs button {
    padding: 13px 0 11px;
}

.automation-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 22px 18px;
}

.automation-stat-grid article {
    padding: 14px 16px;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    background: #fff;
}

.automation-stat-grid span,
.automation-stat-grid strong,
.automation-stat-grid small {
    display: block;
}

.automation-stat-grid span,
.automation-stat-grid small {
    color: #667085;
    font-size: 11px;
}

.automation-stat-grid strong {
    margin: 6px 0 2px;
    color: #101828;
    font-size: 15px;
}

@media (max-width: 1180px) {
    .automation-studio-layout {
        grid-template-columns: 190px minmax(460px, 1fr) 290px;
    }

    .automation-builder-body .automation-studio-form {
        grid-template-columns: 230px minmax(460px, 1fr) 300px;
    }

    .automation-flow-map {
        min-width: 920px;
    }
}

@media (max-width: 980px) {
    .automation-builder-body .automation-studio-form {
        display: block;
    }

    .automation-builder-body .automation-studio-topbar-compact {
        border-left: 0;
        padding: 12px 14px;
    }

    .automation-builder-body .automation-step-palette {
        min-height: auto;
        overflow: visible;
    }

    .automation-builder-body .automation-action-list-registry {
        min-height: 260px;
        max-height: 420px;
    }

    .automation-builder-body .automation-canvas-stage {
        min-height: 590px;
    }

    .automation-studio-topbar,
    .automation-studio-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .automation-studio-layout {
        grid-template-columns: 1fr;
    }

    .automation-step-palette,
    .automation-settings-panel {
        border: 0;
        border-bottom: 1px solid #e4e7ec;
    }

    .automation-canvas-stage {
        min-height: 590px;
        overflow-x: auto;
    }

    .automation-flow-map {
        min-width: 920px;
    }

    .automation-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.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,
    .engagement-kpi-grid,
    .engagement-pattern-grid,
    .engagement-pattern-grid.lower,
    .engagement-drilldown-layout,
    .engagement-email-metrics,
    .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;
    }

    .auth-login-shell {
        padding: 18px 12px;
    }

    .auth-login-card {
        width: 100%;
        padding: 42px 20px 24px;
        border-radius: 0 0 22px 22px;
    }

    .auth-login-heading h2 {
        font-size: 32px;
    }

    .auth-login-heading p {
        font-size: 15px;
    }

    .auth-input-shell input,
    .auth-continue-button {
        min-height: 58px;
    }

    .auth-login-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-signup-callout {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .auth-social-grid {
        grid-template-columns: 1fr;
    }

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

.status-chip.ready {
    background: #edf2ff;
    color: #1d4ed8;
}

.status-chip.disabled,
.status-chip.planned {
    background: #f3f4f6;
    color: #475467;
}

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

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

.integrations-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 18px;
    padding: 26px 28px;
    background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(245,248,255,.9));
    border: 1px solid rgba(216, 226, 240, 0.96);
    border-radius: 22px;
    box-shadow: 0 20px 52px rgba(28, 39, 64, 0.10);
}

.integrations-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 3.6vw, 42px);
    letter-spacing: -.03em;
    line-height: 1.02;
}

.integrations-hero p:not(.eyebrow) {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.integrations-hero-meta {
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 20px 22px;
    border-radius: 18px;
    background: linear-gradient(180deg, #111827, #1f2937);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.integrations-hero-meta strong {
    font-size: 42px;
    line-height: 1;
    letter-spacing: -.04em;
}

.integrations-hero-meta span {
    font-size: 14px;
    font-weight: 800;
}

.integrations-hero-meta small {
    color: rgba(255,255,255,.72);
    font-size: 12px;
    line-height: 1.6;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.integration-card {
    min-height: 240px;
    padding: 20px;
    display: grid;
    align-content: start;
    gap: 14px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(216, 226, 240, 0.96);
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(28, 39, 64, 0.07);
}

.integration-card-featured {
    border-color: rgba(47,107,255,.22);
    box-shadow: 0 18px 44px rgba(47,107,255,.08);
}

.integration-card-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.integration-card-side {
    display: grid;
    justify-items: end;
    gap: 10px;
}

.integration-top-activate-form {
    margin: 0;
}

.integration-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--integration-accent), color-mix(in srgb, var(--integration-accent) 18%, white));
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
}

.integration-title h2 {
    margin: 0 0 4px;
    font-size: 18px;
    letter-spacing: -.02em;
}

.integration-title p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.integration-collapsed {
    display: grid;
    gap: 10px;
    align-content: end;
    min-height: 70px;
    padding-top: 4px;
}

.integration-collapsed p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.integration-top-activate,
.integration-activate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    width: fit-content;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
    box-shadow: 0 12px 24px rgba(40,99,255,.22);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.integration-top-activate {
    min-height: 34px;
    padding: 0 14px;
    font-size: 12px;
}

.integration-top-activate:hover,
.integration-top-activate:focus-visible,
.integration-activate:hover,
.integration-activate:focus-visible {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #3a7bff, #1c49d8);
    box-shadow: 0 16px 30px rgba(40,99,255,.26);
    outline: 0;
}

.integration-form {
    display: grid;
    gap: 10px;
}

.integration-field {
    display: grid;
    gap: 6px;
}

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

.integration-field-label {
    font-size: 12px;
    font-weight: 800;
    color: #344054;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.integration-field input {
    width: 100%;
    min-height: 42px;
    padding: 0 42px 0 13px;
    border: 1px solid #dbe2ee;
    border-radius: 12px;
    background: #fbfcfe;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.88);
}

.integration-field input:focus {
    outline: 0;
    border-color: rgba(40,99,255,.42);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(40,99,255,.08);
}

.integration-field input.is-valid {
    border-color: rgba(15,138,95,.34);
    background: #fcfffd;
}

.integration-field input.is-invalid {
    border-color: rgba(192,54,44,.34);
    background: #fffdfd;
}

.integration-field-indicator {
    position: absolute;
    top: 50%;
    right: 11px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eef2f7;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    transform: translateY(-50%);
}

.integration-field-indicator.is-valid {
    background: #e7f8ef;
    color: #0b7a53;
}

.integration-field-indicator.is-failed {
    background: #fff0ef;
    color: #c0362c;
}

.integration-live-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 20px;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
}

.integration-live-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    background: #eef2f7;
    color: #64748b;
}

.integration-live-status.is-valid {
    color: #0b7a53;
}

.integration-live-status.is-valid .integration-live-status-icon {
    background: #e7f8ef;
    color: #0b7a53;
}

.integration-live-status.is-failed {
    color: #c0362c;
}

.integration-live-status.is-failed .integration-live-status-icon {
    background: #fff0ef;
    color: #c0362c;
}

.integration-live-status small {
    color: #667085;
    font-size: 11px;
    font-weight: 600;
    word-break: break-word;
}

.integration-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.integration-actions .mini-button,
.integration-actions .mini-button.primary-mini {
    height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 850;
}

.integration-placeholder {
    display: grid;
    align-content: space-between;
    gap: 18px;
    min-height: 160px;
}

.integration-placeholder p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.integration-placeholder-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f9fafb;
    color: #344054;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .02em;
}

.integration-provider-page {
    display: grid;
    gap: 24px;
}

.integration-provider-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: end;
    padding: 32px;
    background:
        linear-gradient(145deg, rgba(47, 107, 255, .12), rgba(255, 255, 255, .96) 40%),
        linear-gradient(180deg, #ffffff, #f6f9ff);
}

.integration-provider-hero h1 {
    margin: 4px 0 10px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.02;
}

.integration-provider-hero p:not(.eyebrow) {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.65;
}

.integration-provider-meta {
    display: grid;
    gap: 10px;
    min-width: 230px;
    justify-items: end;
    text-align: right;
}

.integration-provider-meta strong {
    font-size: 28px;
    letter-spacing: -.02em;
}

.integration-provider-meta small {
    color: var(--muted);
}

.integration-provider-stat-grid,
.integration-capability-grid,
.integration-provider-layout {
    display: grid;
    gap: 18px;
}

.integration-provider-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.integration-provider-stat,
.integration-capability-card {
    padding: 22px 24px;
    border-radius: 24px;
    border: 1px solid rgba(17, 24, 39, .08);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .07);
}

.integration-provider-stat small,
.integration-capability-card strong {
    display: block;
}

.integration-provider-stat small {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.integration-provider-stat strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.35;
    word-break: break-word;
}

.integration-provider-stat span,
.integration-capability-card p,
.integration-preview-note {
    color: var(--muted);
    line-height: 1.6;
}

.integration-capability-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.integration-capability-card strong {
    margin-bottom: 10px;
    font-size: 18px;
}

.integration-capability-card p {
    margin: 0;
}

.integration-provider-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, .9fr);
}

.integration-preview-panel {
    padding: 28px;
}

.integration-preview-note {
    margin: 0 0 18px;
}

.integration-provider-list {
    display: grid;
    gap: 12px;
}

.integration-provider-list div {
    display: grid;
    gap: 5px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(247, 250, 255, .92);
    border: 1px solid rgba(17, 24, 39, .06);
}

.integration-provider-list span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.integration-provider-list strong {
    font-size: 15px;
    line-height: 1.55;
    word-break: break-word;
}

.integration-preview-code {
    margin: 0;
    padding: 18px 20px;
    border-radius: 20px;
    background: #0f172a;
    color: #d8e4ff;
    font: 500 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    white-space: pre-wrap;
    word-break: break-word;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.integration-provider-empty {
    display: grid;
    gap: 14px;
    justify-items: start;
    padding: 30px;
}

.integration-provider-empty h1,
.integration-provider-empty h2 {
    margin: 0;
}

.integration-provider-empty p {
    margin: 0;
    max-width: 720px;
    color: var(--muted);
    line-height: 1.65;
}

.integra-program-page {
    --integra-ink: #15110d;
    --integra-muted: #766f64;
    --integra-paper: #fbf6ea;
    --integra-line: #eadfcb;
    --integra-red: #6f2430;
    --integra-gold: #c79b36;
}

.integra-program-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: end;
    padding: 34px;
    overflow: hidden;
    border-color: rgba(199, 155, 54, .28);
    background:
        radial-gradient(circle at 85% 0%, rgba(199, 155, 54, .20), transparent 32%),
        radial-gradient(circle at 0% 100%, rgba(111, 36, 48, .12), transparent 38%),
        linear-gradient(145deg, #fffdf7 0%, #f7efe0 100%);
}

.integra-program-hero h1 {
    margin: 4px 0 10px;
    color: var(--integra-ink);
    font-size: clamp(34px, 4vw, 52px);
    line-height: .98;
    letter-spacing: -.04em;
}

.integra-program-hero p:not(.eyebrow) {
    max-width: 720px;
    margin: 0;
    color: var(--integra-muted);
    font-size: 15px;
    line-height: 1.65;
}

.integra-program-status {
    display: grid;
    gap: 9px;
    min-width: 220px;
    justify-items: end;
    text-align: right;
}

.integra-program-status strong {
    color: var(--integra-ink);
    font-size: 34px;
    line-height: 1;
    letter-spacing: -.04em;
}

.integra-program-status small {
    color: var(--integra-muted);
    font-weight: 750;
}

.integra-program-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.integra-program-summary article {
    display: grid;
    gap: 6px;
    min-height: 116px;
    padding: 18px;
    border: 1px solid var(--integra-line);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, var(--integra-paper));
    box-shadow: 0 18px 42px rgba(77, 57, 24, .07);
}

.integra-program-summary span,
.integra-showtime-head span,
.integra-movie-meta dt {
    color: var(--integra-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.integra-program-summary strong {
    color: var(--integra-red);
    font-size: 25px;
    line-height: 1.05;
}

.integra-program-summary small {
    color: var(--integra-muted);
    line-height: 1.4;
}

.integra-movie-grid {
    display: grid;
    gap: 16px;
}

.integra-movie-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    border: 1px solid var(--integra-line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(199, 155, 54, .12), transparent 28%),
        #fff;
    box-shadow: 0 18px 50px rgba(48, 35, 17, .08);
}

.integra-movie-poster {
    display: grid;
    place-items: center;
    min-height: 260px;
    overflow: hidden;
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(111, 36, 48, .12), rgba(199, 155, 54, .18)),
        #f5ebd8;
}

.integra-movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.integra-movie-poster span {
    color: var(--integra-muted);
    font-weight: 850;
}

.integra-movie-body {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.integra-movie-title-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.integra-movie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.integra-movie-title-row .eyebrow {
    margin: 0 0 5px;
    color: var(--integra-gold);
}

.integra-movie-title-row h2 {
    margin: 0;
    color: var(--integra-ink);
    font-size: clamp(22px, 2.4vw, 34px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.integra-movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.integra-movie-tags span {
    padding: 6px 9px;
    border: 1px solid rgba(199, 155, 54, .28);
    border-radius: 999px;
    background: #fff8e9;
    color: #7a5418;
    font-size: 11px;
    font-weight: 850;
}

.integra-movie-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 8px;
    margin: 0;
}

.integra-movie-meta div {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fbf6ea;
}

.integra-movie-meta dd {
    margin: 0;
    color: var(--integra-ink);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.35;
}

.integra-movie-description {
    max-width: 900px;
    margin: 0;
    color: #4d463c;
    font-size: 14px;
    line-height: 1.65;
}

.integra-showtime-section {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}

.integra-showtime-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
    padding-top: 12px;
    border-top: 1px solid var(--integra-line);
}

.integra-showtime-head strong {
    color: var(--integra-ink);
    font-size: 18px;
}

.integra-showtime-day {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.integra-showtime-day > span {
    position: sticky;
    top: 12px;
    padding: 8px 10px;
    border-radius: 999px;
    background: #321820;
    color: #f4dfad;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.integra-showtime-day > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
    gap: 8px;
}

.integra-showtime-pill {
    display: grid;
    gap: 4px;
    min-height: 92px;
    padding: 12px;
    border: 1px solid #eadfcb;
    border-radius: 16px;
    background: #fffdf7;
    color: inherit;
    text-decoration: none;
}

.integra-showtime-pill.can-sell {
    border-color: rgba(2, 122, 72, .24);
    background: linear-gradient(180deg, #ffffff, #f0fff7);
}

.integra-showtime-pill.is-closed {
    opacity: .78;
    background: #f8f3ea;
}

.integra-showtime-pill strong {
    color: var(--integra-red);
    font-size: 20px;
    line-height: 1;
}

.integra-showtime-pill small,
.integra-showtime-pill em,
.integra-showtime-pill b {
    color: var(--integra-muted);
    font-size: 11px;
    font-style: normal;
    line-height: 1.35;
}

.integra-showtime-pill em {
    color: var(--integra-ink);
    font-weight: 850;
}

.integra-showtime-pill b {
    color: #b42318;
    font-weight: 850;
}

@media (max-width: 960px) {
    .integrations-hero {
        grid-template-columns: 1fr;
    }

    .integration-provider-hero,
    .integration-provider-stat-grid,
    .integration-capability-grid,
    .integration-provider-layout,
    .integra-program-hero,
    .integra-program-summary,
    .integra-movie-card {
        grid-template-columns: 1fr;
    }

    .integration-provider-meta,
    .integra-program-status {
        justify-items: start;
        text-align: left;
    }

    .integra-movie-poster {
        max-width: 220px;
    }
}

@media (max-width: 640px) {
    .integration-card {
        padding: 18px;
    }

    .integration-card-top {
        grid-template-columns: 1fr;
    }

    .integration-card-top .status-chip {
        justify-self: start;
    }

    .integration-card-side {
        justify-items: start;
    }

    .integra-program-hero {
        padding: 22px;
    }

    .integra-movie-title-row {
        flex-direction: column;
    }

    .integra-movie-actions {
        justify-content: flex-start;
    }

    .integra-showtime-day {
        grid-template-columns: 1fr;
    }

    .integra-showtime-day > span {
        position: static;
        justify-self: start;
    }
}

.forms-home {
    display: grid;
    gap: 28px;
    padding: 2px 0 34px;
}

.forms-home-top {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
}

.forms-home-top h1 {
    margin: 0;
    color: #172033;
    font-size: 34px;
    line-height: .92;
    letter-spacing: -.045em;
}

.forms-home-top p {
    margin: 5px 0 0;
    color: #8b95a7;
    font-size: 13px;
    font-weight: 700;
}

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

.forms-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
}

.forms-home-button.secondary {
    border: 1px solid #dfe7f3;
    background: #fff;
    color: #182033;
}

.forms-home-button.primary {
    min-width: 170px;
    background: #102d62;
    color: #fff;
}

.forms-home-section {
    display: grid;
    gap: 14px;
}

.forms-home-section h2,
.forms-table-head h2 {
    margin: 0;
    color: #182033;
    font-size: 19px;
    letter-spacing: -.02em;
}

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

.forms-goal-card,
.forms-overview-grid article {
    border: 1px solid #e3e9f3;
    background: #fff;
    box-shadow: 0 16px 34px rgba(28, 39, 63, .08);
}

.forms-goal-card {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 92px;
    padding: 20px;
    border-radius: 14px;
    color: #1b2639;
    text-decoration: none;
}

.forms-goal-card strong,
.forms-goal-card small {
    display: block;
}

.forms-goal-card strong {
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 950;
}

.forms-goal-card small {
    color: #8b95a7;
    font-size: 12px;
    font-weight: 700;
}

.forms-goal-card em {
    color: #778299;
    font-style: normal;
    font-size: 24px;
    font-weight: 800;
}

.forms-goal-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 21px;
    font-weight: 900;
}

.forms-goal-icon.blue {
    background: #eaf2ff;
    color: #2563eb;
}

.forms-goal-icon.violet {
    background: #f0eaff;
    color: #7c3aed;
}

.forms-goal-icon.amber {
    background: #fff4d8;
    color: #d58a00;
}

.forms-goal-icon.teal {
    background: #e1fbfa;
    color: #12a8a1;
}

.forms-overview-grid article {
    position: relative;
    min-height: 70px;
    padding: 17px 18px;
    border-radius: 14px;
}

.forms-overview-grid strong,
.forms-overview-grid span {
    display: block;
}

.forms-overview-grid strong {
    color: #172033;
    font-size: 26px;
    line-height: .95;
    letter-spacing: -.04em;
}

.forms-overview-grid span {
    margin-top: 5px;
    color: #7b8496;
    font-size: 12px;
    font-weight: 800;
}

.forms-overview-grid em {
    position: absolute;
    top: 17px;
    right: 14px;
    min-width: 48px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e8fbf2;
    color: #19a672;
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
    text-align: center;
}

.forms-home-table-panel {
    padding: 24px 24px 22px;
    border: 1px solid #e0e7f1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(20, 31, 52, .08);
}

.forms-table-head {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) auto auto;
    gap: 18px;
    align-items: end;
    margin-bottom: 18px;
}

.forms-home-search {
    position: relative;
    display: block;
    margin-top: 10px;
}

.forms-home-search span {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 12px;
    height: 18px;
    border: 2px solid #9aa6ba;
    border-radius: 3px;
    transform: translateY(-50%);
}

.forms-home-search input {
    width: min(100%, 300px);
    height: 38px;
    padding: 0 14px 0 38px;
    border: 1px solid #e0e7f1;
    border-radius: 10px;
    background: #f8faff;
    color: #1f2937;
    font-size: 13px;
    font-weight: 700;
}

.forms-home-tabs {
    display: flex;
    gap: 9px;
    align-items: center;
}

.forms-home-tabs button {
    min-width: 92px;
    height: 36px;
    border: 1px solid #e0e7f1;
    border-radius: 999px;
    background: #fff;
    color: #7d8799;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.forms-home-tabs button.active {
    border-color: #dbe8ff;
    background: #eaf2ff;
    color: #3168dc;
}

.forms-sort {
    color: #7e8798;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
}

.forms-home-table {
    display: grid;
}

.forms-home-row {
    display: grid;
    grid-template-columns: minmax(240px, 1.3fr) 130px 120px minmax(210px, 1fr) 150px 130px 44px;
    gap: 20px;
    align-items: center;
    min-height: 78px;
    padding: 0 16px;
    border-top: 1px solid #edf1f6;
}

.forms-home-row[hidden] {
    display: none;
}

.forms-home-row-head {
    min-height: 48px;
    color: #8b95a7;
    font-size: 11px;
    font-weight: 950;
}

.forms-name-cell,
.forms-flow-cell {
    display: flex;
    gap: 14px;
    align-items: center;
    min-width: 0;
}

.forms-name-cell strong,
.forms-name-cell small,
.forms-flow-cell strong,
.forms-flow-cell a {
    display: block;
}

.forms-name-cell strong,
.forms-flow-cell strong {
    overflow: hidden;
    color: #263247;
    font-size: 13px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forms-name-cell small {
    margin-top: 4px;
    color: #8b95a7;
    font-size: 11px;
    font-weight: 700;
}

.forms-doc-icon {
    display: grid;
    gap: 4px;
    place-items: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border: 1px solid #e5ebf4;
    border-radius: 11px;
    background: linear-gradient(180deg, #fbfdff, #f4f7fc);
    box-shadow: inset 0 0 0 5px #f7f9fd;
}

.forms-doc-icon i {
    width: 24px;
    height: 4px;
    border-radius: 999px;
    background: #d8e1ee;
}

.forms-doc-icon i:last-child {
    width: 20px;
    background: #2d6cdf;
}

.forms-type-pill,
.forms-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 92px;
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid #e0e7f1;
    border-radius: 999px;
    background: #f8faff;
    color: #7b8496;
    font-size: 11px;
    font-weight: 950;
}

.forms-status-pill {
    gap: 7px;
}

.forms-status-pill i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #9aa6ba;
}

.forms-status-pill.active {
    border-color: #dcf7e9;
    background: #e9fbf3;
    color: #139468;
}

.forms-status-pill.active i {
    background: #19b77a;
}

.forms-status-pill.draft {
    border-color: #e7ecf4;
    background: #f4f7fb;
    color: #8792a5;
}

.forms-status-pill.paused {
    border-color: #fdecc8;
    background: #fff6df;
    color: #bb7900;
}

.forms-status-pill.paused i {
    background: #f3ad22;
}

.forms-flow-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    color: #8b5cf6;
    font-size: 24px;
    font-weight: 900;
}

.forms-flow-cell a {
    margin-top: 4px;
    color: #346df1;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}

.forms-result-cell,
.forms-date-cell {
    color: #556070;
    font-size: 12px;
    font-weight: 900;
}

.forms-menu-cell {
    text-align: right;
}

.forms-menu-cell a {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #e0e7f1;
    border-radius: 10px;
    color: #7e8798;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.forms-home-empty {
    padding: 34px;
    border: 1px dashed #d7e1ef;
    border-radius: 16px;
    background: #f8faff;
    color: #5c6678;
}

.forms-home-empty strong {
    display: block;
    margin-bottom: 6px;
    color: #1f2937;
}

.form-wizard {
    display: grid;
    min-height: calc(100vh - 88px);
    margin: -18px -24px -24px;
    background: #f2f5fa;
}

.form-wizard-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    padding: 10px 14px;
    border-bottom: 1px solid #e5ebf4;
    background: #fff;
}

.form-wizard-back,
.form-wizard-icon-button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #e1e7f0;
    border-radius: 10px;
    background: #fff;
    color: #798397;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

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

.form-wizard-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    min-height: 38px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
    cursor: pointer;
}

.form-wizard-button.light {
    border: 1px solid #dfe6f1;
    background: #fff;
    color: #172033;
}

.form-wizard-button.dark {
    min-width: 180px;
    border: 1px solid #112f67;
    background: #112f67;
    color: #fff;
}

.form-wizard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 475px;
    min-height: calc(100vh - 148px);
}

.form-wizard-canvas {
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 18px 42px 34px;
    background: #f1f4f9;
}

.form-wizard-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.form-wizard-progress button {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    border: 0;
    background: transparent;
    color: #8b95a7;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
}

.form-wizard-progress button span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #eef3fb;
    color: #9aa6ba;
    font-size: 11px;
}

.form-wizard-progress button.is-active {
    color: #2468e8;
}

.form-wizard-progress button.is-active span {
    background: #276bea;
    color: #fff;
}

.form-wizard-progress button.is-complete {
    color: #14a673;
}

.form-wizard-progress button.is-complete span {
    background: #17aa78;
    color: #fff;
}

.form-wizard-progress > i {
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: #ccd6e6;
}

.form-device-toggle {
    display: inline-flex;
    margin-left: auto;
    padding: 4px;
    border-radius: 10px;
    background: #f3f6fb;
}

.form-device-toggle strong,
.form-device-toggle span {
    padding: 6px 10px;
    border-radius: 8px;
    color: #8792a5;
    font-size: 11px;
    font-weight: 950;
}

.form-device-toggle strong {
    background: #e7f0ff;
    color: #276bea;
}

.form-browser-preview {
    width: min(100%, 560px);
    margin: 0 auto;
    padding: 20px 22px;
    border-radius: 22px;
    background: #e9f1fb;
    box-shadow: inset 0 0 0 1px #dfe8f5;
}

.form-browser-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 8px 8px 0 0;
    background: #fff;
}

.form-browser-bar span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #cdd8e8;
}

.form-browser-bar em {
    display: block;
    width: 230px;
    margin-left: 38px;
    padding: 5px 12px;
    border: 1px solid #e2e8f2;
    border-radius: 8px;
    color: #9aa6ba;
    background: #f8fbff;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.form-browser-site {
    display: grid;
    place-items: center;
    min-height: 535px;
    padding: 30px;
    background: linear-gradient(180deg, #fff 0 70px, #f7f9fc 70px 100%);
    border-radius: 0 0 8px 8px;
}

.form-browser-site > header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 44px;
    margin: -30px 0 26px;
    color: #17315f;
}

.form-browser-site > header strong {
    font-size: 14px;
}

.form-browser-site > header nav {
    color: #8a94a6;
    font-size: 10px;
    word-spacing: 18px;
}

.form-preview-card {
    display: none;
    width: min(100%, 292px);
    padding: 28px 22px 20px;
    border: 1px solid #e5ebf4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .10);
}

.form-preview-card.is-active {
    display: grid;
    gap: 13px;
}

.form-preview-card small,
.form-preview-card em {
    color: #8a94a6;
    font-style: normal;
    font-weight: 800;
}

.form-preview-card > small {
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e9f2ff;
    color: #2d6ceb;
    font-size: 10px;
}

.form-preview-card h2 {
    margin: 8px 0 -6px;
    color: #152033;
    font-size: 25px;
    line-height: 1.06;
    letter-spacing: -.04em;
}

.form-preview-card p {
    margin: 0;
    color: #7b8496;
    font-size: 12px;
    line-height: 1.45;
}

.form-preview-card label {
    display: grid;
    gap: 5px;
    color: #1c273a;
    font-size: 11px;
    font-weight: 950;
}

.form-preview-card input,
.form-preview-card select {
    height: 42px;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    padding: 0 12px;
    color: #6f7b8e;
    background: #fff;
}

.form-preview-card button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 42px;
    border: 1px solid #12336d;
    border-radius: 8px;
    padding: 0 14px;
    background: #12336d;
    color: #fff;
    font-weight: 950;
}

.form-preview-card button.light {
    justify-content: center;
    background: #fff;
    color: #1f2937;
    border-color: #dfe6f1;
}

.form-progress-line {
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #e6edf7;
}

.form-progress-line b {
    display: block;
    height: 100%;
    background: #2d6ceb;
}

.form-preview-two,
.form-preview-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.form-consent-preview-list {
    display: grid;
    gap: 8px;
}

.form-consent-preview-list label,
.form-privacy-preview,
.form-confirmation-preview {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid #dfe6f1;
    border-radius: 9px;
    background: #f8fafc;
}

.form-consent-preview-list input,
.form-privacy-preview input {
    width: 18px;
    height: 18px;
    accent-color: #2d6ceb;
}

.form-consent-preview-list strong,
.form-consent-preview-list small {
    display: block;
}

.form-consent-preview-list strong {
    font-size: 11px;
}

.form-privacy-preview,
.form-confirmation-preview {
    background: #eaf8f1;
    color: #166b4d;
    font-size: 11px;
    font-weight: 900;
}

.form-thanks-icon {
    display: grid;
    place-items: center;
    justify-self: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #e8f8ef;
    color: #20a871;
    font-size: 26px;
}

.form-confirmation-preview {
    display: block;
}

.form-confirmation-preview span {
    color: #77a08e;
    font-size: 10px;
}

.form-after-submit {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 12px;
    background: #fff;
    color: #6f7b8e;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.form-after-submit strong {
    margin-right: auto;
    font-size: 11px;
    color: #788397;
}

.form-after-submit span {
    color: #1b2940;
    font-size: 11px;
    font-weight: 950;
}

.form-after-submit a {
    color: #2d6ceb;
    font-size: 11px;
    font-weight: 950;
    text-decoration: none;
}

.form-settings-panel {
    position: relative;
    padding: 26px 26px 32px;
    border-left: 1px solid #e1e7f0;
    background: #fff;
}

.form-settings-close {
    position: absolute;
    top: 20px;
    right: 22px;
    border: 0;
    background: transparent;
    color: #7d8798;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
}

.form-settings-step {
    display: none;
}

.form-settings-step.is-active {
    display: grid;
    gap: 16px;
}

.form-settings-step h2 {
    margin: 0;
    color: #172033;
    font-size: 22px;
    letter-spacing: -.03em;
}

.form-settings-step > p {
    margin: -11px 0 7px;
    color: #8b95a7;
    font-size: 12px;
    font-weight: 700;
}

.form-settings-tabs {
    display: flex;
    gap: 32px;
    min-height: 38px;
    border-bottom: 1px solid #e7edf5;
}

.form-settings-tabs span,
.form-settings-tabs button {
    position: relative;
    border: 0;
    background: transparent;
    color: #7e8798;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
}

.form-settings-tabs span:first-child,
.form-settings-tabs button.is-active {
    color: #2468e8;
}

.form-settings-tabs span:first-child::after,
.form-settings-tabs button.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -12px;
    height: 3px;
    border-radius: 999px;
    background: #2468e8;
}

.form-settings-pane {
    display: none;
}

.form-settings-pane.is-active {
    display: grid;
    gap: 16px;
}

.form-settings-pane h3 {
    margin: 14px 0 -6px;
    color: #172033;
    font-size: 15px;
    letter-spacing: -.02em;
}

.form-settings-pane > p {
    margin: -5px 0 0;
    color: #8792a5;
    font-size: 12px;
    line-height: 1.45;
}

.form-settings-step label {
    display: grid;
    gap: 7px;
    color: #30394a;
    font-size: 12px;
    font-weight: 950;
}

.form-settings-step input,
.form-settings-step textarea,
.form-settings-step select {
    width: 100%;
    min-height: 40px;
    border: 1px solid #dfe6f1;
    border-radius: 10px;
    padding: 0 12px;
    background: #fff;
    color: #263247;
    font: inherit;
    font-weight: 700;
}

.form-settings-step textarea {
    min-height: 76px;
    padding-top: 10px;
    resize: vertical;
}

.form-switch-row {
    display: flex !important;
    grid-template-columns: none !important;
    justify-content: space-between;
    align-items: center;
}

.form-switch-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.form-switch-row span {
    position: relative;
    width: 34px;
    height: 20px;
    border-radius: 999px;
    background: #ccd6e6;
}

.form-switch-row span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #fff;
    transition: transform .18s ease;
}

.form-switch-row input:checked + span {
    background: #2d6ceb;
}

.form-switch-row input:checked + span::after {
    transform: translateX(14px);
}

.form-recommendation,
.form-advanced-list button,
.form-field-item,
.form-add-field-button {
    border: 1px solid #dfe6f1;
    border-radius: 10px;
    background: #f7f9fd;
}

.form-settings-summary-card,
.form-advanced-card {
    overflow: hidden;
    border: 1px solid #dfe6f1;
    border-radius: 12px;
    background: #f7f9fd;
}

.form-settings-summary-card summary,
.form-advanced-card summary {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    color: #263247;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
    list-style: none;
}

.form-settings-summary-card summary::-webkit-details-marker,
.form-advanced-card summary::-webkit-details-marker {
    display: none;
}

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

.form-settings-summary-card summary small {
    margin-top: 3px;
    color: #8792a5;
    font-size: 11px;
}

.form-settings-summary-card summary em {
    color: #2d6ceb;
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
}

.form-settings-summary-card[open],
.form-advanced-card[open] {
    background: #f8faff;
}

.form-settings-summary-card[open] {
    padding-bottom: 14px;
}

.form-settings-summary-card[open] > label,
.form-settings-summary-card[open] > .form-switch-row {
    margin: 12px 14px 0;
}

.form-advanced-card[open] {
    display: grid;
    gap: 13px;
    padding-bottom: 16px;
}

.form-advanced-card[open] > label,
.form-advanced-card[open] > small,
.form-advanced-card[open] > .form-check-grid,
.form-advanced-card[open] > .form-segment-row,
.form-advanced-card[open] > .form-inline-success,
.form-advanced-card[open] > .form-recommendation,
.form-advanced-card[open] > .form-error-preview,
.form-advanced-card[open] > .form-add-field-button,
.form-advanced-card[open] > .form-advanced-action {
    margin-right: 14px;
    margin-left: 14px;
}

.form-advanced-card > small {
    color: #8792a5;
    font-size: 11px;
    line-height: 1.45;
}

.form-mini-heading {
    margin-top: 8px;
    color: #8792a5;
    font-size: 11px;
    letter-spacing: .08em;
}

.form-segment-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 3px;
    border: 1px solid #dfe6f1;
    border-radius: 12px;
    background: #f4f7fc;
}

.form-segment-row.tight {
    grid-template-columns: auto 1fr 1fr;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    padding: 0;
}

.form-segment-row > span {
    color: #30394a;
    font-size: 12px;
    font-weight: 950;
}

.form-segment-row label {
    display: flex !important;
    justify-content: center;
    align-items: center;
    min-height: 32px;
    border-radius: 9px;
    color: #6f7b8e;
    font-size: 11px;
    font-weight: 950;
    cursor: pointer;
}

.form-segment-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.form-segment-row label:has(input:checked) {
    background: #e8f1ff;
    color: #2d6ceb;
    box-shadow: inset 0 0 0 1px #d7e6ff;
}

.form-condition-list {
    display: grid;
    gap: 8px;
}

.form-condition-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 30px;
    gap: 6px;
}

.form-condition-row select,
.form-condition-row input {
    min-height: 38px;
    font-size: 11px;
}

.form-condition-row button {
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: #8792a5;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
}

.form-settings-pane hr {
    width: 100%;
    height: 1px;
    margin: 10px 0;
    border: 0;
    background: #e7edf5;
}

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

.form-radio-stack label,
.form-check-grid label {
    display: flex !important;
    gap: 10px;
    align-items: flex-start;
    color: #30394a;
    font-size: 12px;
    line-height: 1.35;
    cursor: pointer;
}

.form-radio-stack input,
.form-check-grid input[type="checkbox"] {
    width: 17px;
    min-width: 17px;
    min-height: 17px;
    margin-top: 1px;
    accent-color: #2d6ceb;
}

.form-radio-stack strong,
.form-radio-stack small {
    display: block;
}

.form-radio-stack small {
    margin-top: 3px;
    color: #8792a5;
    font-size: 11px;
}

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

.form-check-grid.single {
    grid-template-columns: 1fr;
}

.form-inline-success {
    padding: 10px 12px;
    border-radius: 10px;
    background: #e9f8f1;
    color: #16835e;
    font-size: 11px;
    font-weight: 950;
}

.form-advanced-action {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    min-width: 170px;
    min-height: 38px;
    border: 1px solid #dfe6f1;
    border-radius: 10px;
    background: #fff;
    color: #263247;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
}

.form-copy-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
}

.form-copy-input button,
.form-token-list button {
    border: 1px solid #dfe6f1;
    border-radius: 10px;
    background: #f8fafc;
    color: #6f7b8e;
    font-weight: 900;
    cursor: pointer;
}

.form-token-list {
    display: grid;
    gap: 8px;
}

.form-token-list button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    text-align: left;
}

.form-copy-input button.is-copied,
.form-token-list button.is-copied {
    border-color: #bcebd3;
    background: #e9f8f1;
    color: #16835e;
}

.form-error-preview {
    display: grid;
    gap: 7px;
    padding: 14px;
    border: 2px solid #d64c61;
    border-radius: 12px;
    background: #fff;
}

.form-error-preview strong {
    color: #263247;
    font-size: 11px;
}

.form-error-preview span {
    color: #30394a;
    font-size: 12px;
    font-weight: 800;
}

.form-error-preview small {
    color: #d64c61;
    font-size: 11px;
    font-weight: 950;
}

.form-add-field-button.small {
    width: fit-content;
    min-width: 150px;
    min-height: 36px;
    padding: 0 14px;
    text-align: center;
}

.form-recommendation {
    padding: 18px 20px;
    background: #e9f2ff;
    color: #2468e8;
}

.form-recommendation.success {
    background: #e9f8f1;
    color: #16a06f;
}

.form-recommendation strong,
.form-recommendation small {
    display: block;
}

.form-recommendation small {
    margin-top: 4px;
    color: #7b8496;
    font-weight: 700;
}

.form-advanced-list,
.form-field-stack {
    display: grid;
    gap: 9px;
}

.form-advanced-list > strong,
.form-field-stack > strong {
    margin-top: 8px;
    color: #8792a5;
    font-size: 11px;
    letter-spacing: .08em;
}

.form-advanced-list button,
.form-add-field-button {
    min-height: 38px;
    color: #3a4659;
    font-weight: 900;
    text-align: left;
    cursor: pointer;
}

.form-field-item {
    display: flex !important;
    gap: 12px !important;
    align-items: center;
    padding: 12px;
}

.form-field-item > input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
    accent-color: #2d6ceb;
}

.form-field-item span {
    display: grid;
    flex: 1 1 auto;
    gap: 3px;
}

.form-field-item span strong,
.form-field-item span small {
    display: block;
}

.form-field-item span small {
    color: #8b95a7;
    font-size: 11px;
}

.consent-options .form-field-item input[type="text"],
.consent-options .form-field-item span input,
.profile-field-list .form-field-item span input,
.profile-field-list .form-field-item span select {
    border: 0;
    min-height: 20px;
    padding: 0;
    background: transparent;
}

.profile-field-list .form-field-item span small {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.profile-field-list .form-field-item span small input {
    min-width: 130px;
}

.profile-field-list .form-field-item span small label {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    margin: 0;
    color: #4d5a6c;
    font-size: 11px;
}

.profile-field-list [data-profile-field-remove] {
    width: 28px;
    min-height: 28px;
    border: 0;
    border-radius: 999px;
    background: #fee2e2;
    color: #b42318;
    font-weight: 900;
    text-align: center;
}

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

.form-testcenter[hidden] {
    display: none !important;
}

body.modal-open {
    overflow: hidden;
}

.form-testcenter {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    padding: 18px;
}

.form-testcenter-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .44);
    backdrop-filter: blur(8px);
}

.form-testcenter-shell {
    position: relative;
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    overflow: hidden;
    width: min(1560px, 100%);
    max-height: calc(100vh - 36px);
    margin: auto;
    border: 1px solid rgba(210, 221, 237, .86);
    border-radius: 28px;
    background:
        radial-gradient(circle at 8% 0, rgba(37, 99, 235, .12), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 34px 110px rgba(15, 23, 42, .28);
}

.form-testcenter-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding: 22px 24px 14px;
    border-bottom: 1px solid #e5ebf4;
    background: rgba(255, 255, 255, .78);
}

.form-testcenter-eyebrow {
    margin: 0 0 6px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.form-testcenter-header h2 {
    margin: 0;
    color: #111827;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -.04em;
}

.form-testcenter-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef3fb;
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
}

.form-testcenter-status::before,
.form-test-result-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
}

.form-testcenter-status.running {
    background: #e8f1ff;
    color: #2563eb;
}

.form-testcenter-status.passed {
    background: #e9f8f1;
    color: #16a06f;
}

.form-testcenter-status.warning {
    background: #fff7e6;
    color: #c87900;
}

.form-testcenter-status.error {
    background: #fff1f3;
    color: #d64c61;
}

.form-testcenter-header-actions,
.form-testcenter-tabs,
.form-testcenter-modebar {
    display: flex;
    gap: 10px;
    align-items: center;
}

.form-testcenter-header-actions button {
    min-height: 36px;
    border: 1px solid #dfe6f1;
    border-radius: 11px;
    padding: 0 13px;
    background: #fff;
    color: #263247;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
}

.form-testcenter-header-actions .form-testcenter-close {
    width: 38px;
    padding: 0;
    color: #7d8798;
    font-size: 22px;
}

.form-testcenter-modebar {
    padding: 14px 24px;
    border-bottom: 1px solid #e8eef6;
    background: #f8fbff;
}

.form-testcenter-modebar button {
    flex: 1 1 0;
    display: grid;
    gap: 4px;
    min-height: 72px;
    border: 1px solid #dfe6f1;
    border-radius: 18px;
    padding: 14px;
    background: #fff;
    color: #627087;
    text-align: left;
    cursor: pointer;
}

.form-testcenter-modebar button.is-active {
    border-color: rgba(37, 99, 235, .38);
    background: linear-gradient(180deg, #f4f8ff, #ffffff);
    box-shadow: 0 14px 32px rgba(37, 99, 235, .10);
}

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

.form-testcenter-modebar strong {
    color: #172033;
    font-size: 14px;
    font-weight: 950;
}

.form-testcenter-modebar span {
    font-size: 12px;
    line-height: 1.4;
}

.form-testcenter-tabs {
    padding: 0 24px;
    min-height: 52px;
    border-bottom: 1px solid #e8eef6;
    background: #fff;
}

.form-testcenter-tabs button {
    position: relative;
    height: 52px;
    border: 0;
    background: transparent;
    color: #7a8597;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
}

.form-testcenter-tabs button.is-active {
    color: #2563eb;
}

.form-testcenter-tabs button.is-active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: #2563eb;
}

.form-testcenter-body {
    min-height: 0;
    overflow: auto;
    padding: 18px;
}

.form-testcenter-pane {
    display: none;
}

.form-testcenter-pane.is-active {
    display: grid;
}

.form-testcenter-pane[data-form-test-pane="form"] {
    grid-template-columns: 320px minmax(420px, 1fr) 360px;
    gap: 16px;
}

.form-test-report-page {
    display: grid;
    gap: 18px;
}

.form-test-report-hero,
.form-test-report-card {
    border: 1px solid #e1e8f2;
    border-radius: 26px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 48px rgba(15, 23, 42, .07);
}

.form-test-report-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    padding: 30px;
    background:
        radial-gradient(circle at 92% 10%, rgba(37, 99, 235, .14), transparent 34%),
        linear-gradient(135deg, #ffffff, #f5f9ff);
}

.form-test-report-hero h1 {
    margin: 4px 0 12px;
    max-width: 880px;
    color: #111827;
    font-size: clamp(34px, 5vw, 58px);
    line-height: .98;
    letter-spacing: -.05em;
}

.form-test-report-hero p {
    max-width: 740px;
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.65;
}

.form-test-report-hero code {
    padding: 2px 6px;
    border-radius: 7px;
    background: #eef3fb;
    color: #12336d;
}

.form-test-report-hero aside {
    display: grid;
    justify-items: end;
    gap: 8px;
    min-width: 260px;
    text-align: right;
}

.form-test-report-hero aside strong,
.form-test-report-hero aside small {
    display: block;
}

.form-test-report-hero aside strong {
    color: #172033;
    font-size: 14px;
    font-weight: 950;
}

.form-test-report-hero aside small {
    color: #8792a5;
    line-height: 1.45;
}

.form-test-report-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.form-test-report-card {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 18px;
}

.form-test-report-card > span {
    color: #2563eb;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.form-test-report-card h1,
.form-test-report-card p {
    margin: 0;
}

.form-test-report-card p,
.form-test-report-messages small {
    color: #64748b;
    line-height: 1.55;
}

.form-test-report-wide {
    grid-column: 1 / -1;
}

.form-test-report-summary div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.form-test-report-summary strong {
    padding: 14px;
    border: 1px solid #e1e8f2;
    border-radius: 17px;
    background: #f8fafc;
    color: #172033;
    font-size: 28px;
    line-height: 1;
}

.form-test-report-summary small {
    display: block;
    margin-top: 5px;
    color: #8792a5;
    font-size: 11px;
}

.form-test-report-kv {
    display: grid;
    gap: 10px;
    margin: 0;
}

.form-test-report-kv div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid #e1e8f2;
    border-radius: 14px;
    background: #f8fafc;
}

.form-test-report-kv dt {
    color: #8792a5;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.form-test-report-kv dd {
    margin: 0;
    color: #172033;
    font-size: 13px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.form-test-report-events,
.form-test-report-diff,
.form-test-report-messages {
    display: grid;
    gap: 10px;
}

.form-test-report-messages div {
    display: grid;
    gap: 4px;
    padding: 13px 14px;
    border: 1px solid #e1e8f2;
    border-radius: 15px;
    background: #fff;
}

.form-test-report-messages strong {
    color: #172033;
}

.form-test-scenario,
.form-test-workspace,
.form-test-inspector,
.form-test-timeline-card,
.form-test-detail-card,
.form-test-diff-card,
.form-test-consent-card,
.form-test-result-hero,
.form-test-result-list,
.form-test-premium-card {
    border: 1px solid #e1e8f2;
    border-radius: 22px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .06);
}

.form-test-scenario,
.form-test-inspector {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 16px;
}

.form-test-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.form-test-panel-head strong,
.form-test-panel-head span {
    display: block;
}

.form-test-panel-head strong {
    color: #172033;
    font-size: 15px;
    font-weight: 950;
}

.form-test-panel-head span {
    color: #8792a5;
    font-size: 11px;
    line-height: 1.35;
    text-align: right;
}

.form-test-scenario label,
.form-test-mini-card label {
    display: grid;
    gap: 6px;
    color: #30394a;
    font-size: 11px;
    font-weight: 950;
}

.form-test-scenario input,
.form-test-scenario select,
.form-test-scenario textarea,
.form-test-mini-card input,
.form-test-mini-card select {
    width: 100%;
    min-height: 38px;
    border: 1px solid #dfe6f1;
    border-radius: 10px;
    padding: 0 11px;
    background: #fff;
    color: #263247;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
}

.form-test-scenario textarea {
    min-height: 58px;
    padding-top: 10px;
    resize: vertical;
}

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

.form-test-quickcases {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #e8eef6;
}

.form-test-quickcases strong {
    width: 100%;
    color: #8792a5;
    font-size: 11px;
    letter-spacing: .08em;
}

.form-test-quickcases button {
    border: 1px solid #dfe6f1;
    border-radius: 999px;
    padding: 7px 10px;
    background: #f8fafc;
    color: #445066;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.form-test-workspace {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 18px;
    background:
        radial-gradient(circle at 88% 12%, rgba(16, 185, 129, .11), transparent 28%),
        #f7faff;
}

.form-test-workspace-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.form-test-workspace-head strong,
.form-test-workspace-head span {
    display: block;
}

.form-test-workspace-head strong {
    color: #172033;
    font-size: 18px;
    font-weight: 950;
}

.form-test-workspace-head span {
    margin-top: 2px;
    color: #8792a5;
    font-size: 12px;
}

.form-test-workspace-head button,
.form-test-mini-card button,
.form-test-result-list button,
.form-test-premium-card button {
    min-height: 40px;
    border: 1px solid #12336d;
    border-radius: 12px;
    padding: 0 16px;
    background: #12336d;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
}

.form-test-devices {
    display: grid;
    gap: 16px;
}

.form-test-devices.show-both {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
}

.form-test-device {
    display: grid;
    justify-items: center;
    gap: 0;
    padding: 18px;
    border: 1px solid #dfe8f5;
    border-radius: 22px;
    background: #e9f1fb;
}

.form-test-device.mobile {
    display: none;
}

.form-test-devices.mobile-only .form-test-device.desktop {
    display: none;
}

.form-test-devices.mobile-only .form-test-device.mobile,
.form-test-devices.show-both .form-test-device.mobile {
    display: grid;
}

.form-test-device > header {
    display: flex;
    gap: 7px;
    align-items: center;
    width: min(100%, 620px);
    height: 34px;
    padding: 0 12px;
    border-radius: 11px 11px 0 0;
    background: #fff;
}

.form-test-device.mobile > header {
    width: 230px;
    justify-content: center;
    border-radius: 18px 18px 0 0;
    background: #111827;
    color: #fff;
}

.form-test-device header span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #cdd8e8;
}

.form-test-device header em {
    margin-left: auto;
    color: #8a94a6;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.form-test-device.mobile header em {
    margin: 0;
    color: #fff;
}

.form-test-mini-card {
    display: grid;
    gap: 13px;
    width: min(100%, 420px);
    padding: 28px 24px;
    border: 1px solid #e5ebf4;
    border-radius: 0 0 18px 18px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .10);
}

.form-test-mini-card.mobile {
    width: 230px;
    border-radius: 0 0 26px 26px;
}

.form-test-mini-card small {
    color: #2563eb;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .08em;
}

.form-test-mini-card h3 {
    margin: 0;
    color: #152033;
    font-size: 26px;
    line-height: 1.04;
    letter-spacing: -.04em;
}

.form-test-mini-card p {
    margin: 0;
    color: #7b8496;
    font-size: 13px;
    line-height: 1.5;
}

.form-test-profile-fields {
    display: grid;
    gap: 10px;
}

.form-test-consent {
    display: flex !important;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
}

.form-test-consent input {
    width: 18px;
    min-height: 18px;
    accent-color: #2563eb;
}

.form-test-inline-error {
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff1f3;
    color: #d64c61 !important;
    font-weight: 950;
}

.form-test-eventlog {
    display: grid;
    gap: 8px;
    max-height: 340px;
    overflow: auto;
}

.form-test-eventlog .empty {
    margin: 0;
    color: #8792a5;
    font-size: 12px;
    line-height: 1.45;
}

.form-test-event {
    display: grid;
    gap: 3px;
    padding: 11px 12px;
    border: 1px solid #e3ebf5;
    border-left-width: 4px;
    border-radius: 13px;
    background: #fff;
}

.form-test-event.pass {
    border-left-color: #16a06f;
}

.form-test-event.warning {
    border-left-color: #f59e0b;
}

.form-test-event.error {
    border-left-color: #d64c61;
}

.form-test-event.simulated {
    border-left-color: #2563eb;
}

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

.form-test-event strong {
    color: #172033;
    font-size: 12px;
    font-weight: 950;
}

.form-test-event span {
    color: #7b8496;
    font-size: 11px;
    line-height: 1.35;
}

.form-test-inspector-card {
    display: grid;
    gap: 7px;
    padding: 14px;
    border: 1px solid #e3ebf5;
    border-radius: 16px;
    background: #f8fafc;
}

.form-test-inspector-card strong {
    color: #172033;
    font-size: 12px;
    font-weight: 950;
}

.form-test-inspector-card p {
    margin: 0;
    color: #6f7b8e;
    font-size: 12px;
    line-height: 1.45;
}

.form-test-inspector-card pre {
    overflow: auto;
    max-height: 180px;
    margin: 0;
    padding: 12px;
    border-radius: 12px;
    background: #0f172a;
    color: #dbeafe;
    font-size: 11px;
    line-height: 1.45;
}

.form-test-data-grid,
.form-test-result-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 16px;
}

.form-test-timeline-card,
.form-test-detail-card,
.form-test-diff-card,
.form-test-consent-card,
.form-test-result-hero,
.form-test-result-list,
.form-test-premium-card {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 18px;
}

.form-test-diff-card,
.form-test-consent-card,
.form-test-result-list,
.form-test-premium-card {
    min-height: 220px;
}

.form-test-timeline {
    display: grid;
    gap: 10px;
}

.form-test-timeline-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 13px;
    border: 1px solid #e1e8f2;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
}

.form-test-timeline-step i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #eef3fb;
    color: #64748b;
    font-style: normal;
    font-weight: 950;
}

.form-test-timeline-step.pass i {
    background: #e9f8f1;
    color: #16a06f;
}

.form-test-timeline-step.warning i {
    background: #fff7e6;
    color: #c87900;
}

.form-test-timeline-step.error i {
    background: #fff1f3;
    color: #d64c61;
}

.form-test-timeline-step strong,
.form-test-timeline-step small,
.form-test-timeline-step em {
    display: block;
}

.form-test-timeline-step strong {
    color: #172033;
    font-size: 13px;
}

.form-test-timeline-step small {
    margin-top: 3px;
    color: #7b8496;
    line-height: 1.35;
}

.form-test-timeline-step em {
    color: #8792a5;
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
}

.form-test-step-detail,
.form-test-diff,
.form-test-checklist,
.form-test-result-list {
    display: grid;
    gap: 10px;
}

.form-test-step-detail p,
.form-test-premium-card p {
    margin: 0;
    color: #6f7b8e;
    line-height: 1.55;
}

.form-test-detail-block,
.form-test-diff-row,
.form-test-check-row,
.form-test-result-item {
    padding: 13px 14px;
    border: 1px solid #e1e8f2;
    border-radius: 15px;
    background: #fff;
}

.form-test-detail-block strong,
.form-test-detail-block code,
.form-test-diff-row span,
.form-test-diff-row strong,
.form-test-check-row strong,
.form-test-check-row small,
.form-test-result-item strong,
.form-test-result-item p {
    display: block;
}

.form-test-detail-block strong {
    color: #8792a5;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.form-test-detail-block code {
    margin-top: 7px;
    color: #172033;
    font-size: 12px;
    white-space: pre-wrap;
}

.form-test-diff-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.form-test-diff-row span {
    color: #8792a5;
    font-size: 11px;
    font-weight: 950;
}

.form-test-diff-row strong {
    color: #172033;
    font-size: 12px;
}

.form-test-diff-row.changed {
    border-color: rgba(16, 185, 129, .28);
    background: #f2fbf7;
}

.form-test-diff-row.warning {
    border-color: rgba(245, 158, 11, .32);
    background: #fffaf0;
}

.form-test-check-row {
    border-left: 4px solid #2563eb;
}

.form-test-check-row.pass {
    border-left-color: #16a06f;
}

.form-test-check-row.warning {
    border-left-color: #f59e0b;
}

.form-test-check-row.error {
    border-left-color: #d64c61;
}

.form-test-check-row small {
    margin-top: 4px;
    color: #6f7b8e;
    line-height: 1.45;
}

.form-test-result-hero {
    grid-column: 1 / -1;
    min-height: 230px;
    overflow: hidden;
    background:
        radial-gradient(circle at 94% 0, rgba(37, 99, 235, .14), transparent 32%),
        linear-gradient(135deg, #ffffff, #f4f8ff);
}

.form-test-result-badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    width: fit-content;
    padding: 8px 11px;
    border-radius: 999px;
    background: #eef3fb;
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
}

.form-test-result-badge.ready,
.form-test-result-badge.passed {
    background: #e9f8f1;
    color: #16a06f;
}

.form-test-result-badge.warning {
    background: #fff7e6;
    color: #c87900;
}

.form-test-result-badge.error {
    background: #fff1f3;
    color: #d64c61;
}

.form-test-result-hero h3 {
    margin: 2px 0 0;
    color: #111827;
    font-size: 42px;
    line-height: .98;
    letter-spacing: -.05em;
}

.form-test-result-hero p {
    max-width: 760px;
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.55;
}

.form-test-result-counts {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.form-test-result-counts strong {
    min-width: 120px;
    padding: 15px 16px;
    border: 1px solid #e1e8f2;
    border-radius: 18px;
    background: rgba(255, 255, 255, .82);
}

.form-test-result-counts span,
.form-test-result-counts small {
    display: block;
}

.form-test-result-counts span {
    color: #172033;
    font-size: 32px;
    line-height: 1;
}

.form-test-result-counts small {
    margin-top: 5px;
    color: #8792a5;
    font-size: 11px;
}

.form-test-result-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.form-test-result-item i {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #e9f8f1;
    color: #16a06f;
    font-style: normal;
    font-weight: 950;
}

.form-test-result-item.warning i {
    background: #fff7e6;
    color: #c87900;
}

.form-test-result-item.error i {
    background: #fff1f3;
    color: #d64c61;
}

.form-test-result-item p {
    margin: 3px 0 0;
    color: #6f7b8e;
    line-height: 1.45;
}

.form-test-result-item button {
    background: #fff;
    color: #12336d;
}

.form-test-premium-card div {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.form-test-premium-card button {
    background: #fff;
    color: #12336d;
}

.form-test-premium-card code {
    padding: 2px 5px;
    border-radius: 6px;
    background: #eef3fb;
    color: #12336d;
}

.forms-studio {
    display: grid;
    gap: 18px;
}

.forms-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .55fr);
    gap: 24px;
    align-items: end;
    padding: 32px;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 14%, rgba(37, 99, 235, .16), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f7fbff 54%, #eef7f1 100%);
}

.forms-hero h1 {
    margin: 4px 0 12px;
    max-width: 850px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: .98;
    letter-spacing: -.045em;
}

.forms-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

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

.forms-hero-stats div {
    padding: 16px;
    border: 1px solid rgba(37, 99, 235, .12);
    border-radius: 20px;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
    backdrop-filter: blur(14px);
}

.forms-hero-stats strong,
.forms-hero-stats span {
    display: block;
}

.forms-hero-stats strong {
    font-size: 30px;
    letter-spacing: -.035em;
}

.forms-hero-stats span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.forms-studio-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 18px;
    align-items: start;
}

.forms-list,
.forms-copy-stack {
    display: grid;
    gap: 12px;
}

.form-studio-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .98)),
        radial-gradient(circle at 100% 0, rgba(37, 99, 235, .08), transparent 42%);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .06);
}

.form-studio-card-head,
.forms-card-actions,
.forms-test-row,
.form-flow-link {
    display: flex;
    gap: 12px;
    align-items: center;
}

.form-studio-card-head {
    justify-content: space-between;
    align-items: flex-start;
}

.form-studio-card-head strong,
.form-studio-card-head span,
.form-flow-link span,
.form-flow-link strong,
.form-flow-link small,
.forms-builder-note strong,
.forms-builder-note span {
    display: block;
}

.form-studio-card-head strong {
    font-size: 18px;
    letter-spacing: -.015em;
}

.form-studio-card-head span,
.form-flow-link small,
.forms-empty p,
.forms-builder-note span {
    color: var(--muted);
    line-height: 1.55;
}

.form-flow-link {
    align-items: flex-start;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(17, 24, 39, .08);
    background: #fff;
}

.form-flow-link::before {
    content: "";
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    margin-top: 5px;
    border-radius: 999px;
    background: #f59e0b;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, .12);
}

.form-flow-link.is-ready::before {
    background: #10b981;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, .13);
}

.form-flow-link > span {
    min-width: 48px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.form-flow-link strong {
    margin-bottom: 3px;
}

.forms-copy-stack .copy-line {
    align-items: stretch;
}

.forms-copy-stack code {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
    font-size: 12px;
}

.forms-copy-stack .copy-button {
    border-radius: 14px;
}

.forms-card-actions {
    flex-wrap: wrap;
}

.forms-card-actions a {
    color: var(--blue-dark);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.forms-test-row {
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.forms-test-row input {
    flex: 1 1 220px;
    min-width: 0;
}

.forms-empty,
.forms-builder-note {
    padding: 18px;
    border: 1px dashed rgba(37, 99, 235, .25);
    border-radius: 22px;
    background: rgba(239, 246, 255, .58);
}

.forms-empty strong,
.forms-builder-note strong {
    margin-bottom: 6px;
}

.forms-builder-panel {
    position: sticky;
    top: 18px;
}

.forms-builder-form textarea {
    min-height: 96px;
}

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

.forms-field-picker {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel-soft);
}

.forms-field-picker > strong {
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.forms-field-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(17, 24, 39, .07);
    border-radius: 14px;
    background: #fff;
}

.forms-field-row span,
.forms-field-row small {
    display: flex;
    gap: 8px;
    align-items: center;
}

.forms-field-row small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.public-form-shell {
    background:
        radial-gradient(circle at 18% 12%, rgba(37, 99, 235, .14), transparent 30%),
        radial-gradient(circle at 82% 80%, rgba(16, 185, 129, .16), transparent 32%),
        linear-gradient(180deg, #f8fbff 0%, #eef4f8 100%);
}

.public-signup-card {
    width: min(100%, 620px);
    border-radius: 28px;
    border: 1px solid rgba(17, 24, 39, .08);
    box-shadow: 0 30px 90px rgba(15, 23, 42, .16);
}

.public-signup-card .button.primary {
    background: linear-gradient(135deg, var(--form-accent), var(--brand));
    border-color: transparent;
}

.public-form-privacy {
    display: block;
    color: var(--muted);
    line-height: 1.55;
    text-align: center;
}

.public-consent-choice-list {
    display: grid;
    gap: 10px;
}

.public-consent-choice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 14px;
    background: #f8fafc;
    color: #172033;
}

.public-consent-choice input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--form-accent, var(--brand));
}

.public-consent-choice span,
.public-consent-choice strong,
.public-consent-choice small {
    display: block;
}

.public-consent-choice small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.public-thank-panel {
    display: grid;
    gap: 13px;
    text-align: center;
}

.public-thank-panel > span {
    display: grid;
    place-items: center;
    justify-self: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: #e8f8ef;
    color: #16a06f;
    font-size: 24px;
    font-weight: 950;
}

.public-thank-panel h2 {
    margin: 0;
    color: #152033;
    font-size: 28px;
    letter-spacing: -.04em;
}

.public-thank-panel p {
    margin: 0;
}

.public-thank-panel small {
    padding: 12px;
    border-radius: 14px;
    background: #e9f8f1;
    color: #16835e;
    font-weight: 900;
}

.public-embed-body .public-shell {
    min-height: auto;
    padding: 0;
    background: transparent;
}

.public-embed-body .public-signup-card {
    width: 100%;
    box-shadow: none;
}

@media (max-width: 1100px) {
    .form-wizard {
        margin: -14px;
    }

    .form-wizard-layout {
        grid-template-columns: 1fr;
    }

    .form-settings-panel {
        border-top: 1px solid #e1e7f0;
        border-left: 0;
    }

    .forms-hero,
    .forms-studio-grid {
        grid-template-columns: 1fr;
    }

    .forms-builder-panel {
        position: static;
    }

    .form-testcenter-pane[data-form-test-pane="form"],
    .form-test-data-grid,
    .form-test-result-grid,
    .form-test-report-grid {
        grid-template-columns: 1fr;
    }

    .form-test-report-hero {
        flex-direction: column;
    }

    .form-test-report-hero aside {
        justify-items: start;
        text-align: left;
    }

    .form-test-scenario,
    .form-test-inspector {
        order: initial;
    }

    .form-testcenter-modebar {
        align-items: stretch;
        flex-direction: column;
    }

    .form-test-devices.show-both {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .form-wizard-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-wizard-actions {
        width: 100%;
        overflow-x: auto;
    }

    .form-wizard-canvas {
        padding: 14px;
    }

    .form-wizard-progress {
        overflow-x: auto;
        padding: 0 12px;
    }

    .form-browser-preview {
        padding: 12px;
    }

    .form-browser-site {
        min-height: 500px;
        padding: 20px 14px;
    }

    .form-after-submit {
        flex-wrap: wrap;
        padding: 14px;
    }

    .forms-hero {
        padding: 22px;
    }

    .forms-hero-stats,
    .forms-builder-split {
        grid-template-columns: 1fr;
    }

    .form-studio-card-head,
    .form-flow-link,
    .forms-test-row {
        align-items: stretch;
        flex-direction: column;
    }

    .forms-field-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-testcenter {
        padding: 8px;
    }

    .form-testcenter-shell {
        max-height: calc(100vh - 16px);
        border-radius: 18px;
    }

    .form-testcenter-header {
        align-items: stretch;
        flex-direction: column;
        padding: 18px;
    }

    .form-testcenter-header-actions,
    .form-testcenter-tabs {
        overflow-x: auto;
    }

    .form-testcenter-header h2 {
        font-size: 22px;
    }

    .form-testcenter-body {
        padding: 12px;
    }

    .form-test-two,
    .form-test-contact-grid,
    .form-test-diff-row {
        grid-template-columns: 1fr;
    }

.form-test-workspace-head,
.form-test-result-item {
    align-items: stretch;
    grid-template-columns: 1fr;
}
}

@media (max-width: 1180px) {
    .landing-automation-shell {
        padding: 58px 42px 40px;
    }

    .landing-automation-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

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

    .landing-automation-copy > p,
    .landing-automation-actions,
    .landing-automation-checks {
        justify-content: center;
    }

    .landing-automation-map {
        width: min(100%, 840px);
        justify-self: center;
    }

    .landing-automation-steps {
        margin: 26px auto 0;
    }

    .landing-why-section .landing-reason-grid {
        width: min(100% - 48px, 940px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-features-section .landing-feature-showcase {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .landing-features-section .landing-feature-showcase article {
        max-width: 760px;
        justify-self: center;
        text-align: center;
    }

    .landing-features-section .landing-feature-showcase ul {
        max-width: 650px;
        justify-self: center;
        text-align: left;
    }

    .landing-features-section .landing-feature-showcase a {
        justify-self: center;
    }
}

@media (max-width: 900px) {
    .landing-automation-map {
        display: grid;
        gap: 14px;
        min-height: auto;
    }

    .landing-automation-map::before,
    .landing-automation-map::after,
    .automation-flow-arrows,
    .automation-flow-center,
    .automation-flow-card::after {
        display: none;
    }

    .automation-flow-card {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        width: 100%;
    }

    .landing-automation-steps {
        grid-template-columns: 1fr 1fr;
        gap: 14px 18px;
        max-width: 520px;
    }

    .landing-automation-steps em {
        display: none;
    }

    .landing-features-section .landing-feature-pills {
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .landing-features-section .landing-feature-pills span {
        min-width: 150px;
        scroll-snap-align: start;
    }

    .feature-window-top {
        grid-template-columns: 128px minmax(0, 1fr) auto;
    }

    .feature-window-top b,
    .feature-window-top button:first-of-type {
        display: none;
    }

    .feature-window-body {
        grid-template-columns: 104px minmax(0, 1fr) minmax(0, 1fr);
    }

    .feature-inspector {
        display: none;
    }

    .landing-features-section .visual-automation {
        grid-template-columns: 1fr;
    }

    .landing-features-section .visual-automation > strong,
    .landing-features-section .visual-automation > span,
    .landing-features-section .visual-automation > button {
        width: 100%;
    }

    .landing-features-section .visual-automation > em {
        display: none;
    }
}

@media (max-width: 720px) {
    .landing-section.landing-automation {
        padding: 18px 0;
    }

    .landing-automation-shell {
        width: min(100% - 24px, 540px);
        padding: 34px 18px 28px;
        border-radius: 18px;
    }

    .landing-automation-copy h2 {
        font-size: 37px;
    }

    .landing-automation-copy > span {
        font-size: 16px;
    }

    .landing-automation-checks,
    .landing-automation-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .landing-automation-actions a,
    .landing-automation-actions small {
        justify-content: center;
    }

    .automation-flow-card {
        grid-template-columns: 60px minmax(0, 1fr);
        padding: 18px 58px 18px 18px;
    }

    .automation-flow-card i {
        width: 58px;
        height: 58px;
        font-size: 28px;
    }

    .automation-flow-card strong {
        font-size: 20px;
    }

    .automation-flow-card span {
        font-size: 14px;
    }

    .landing-automation-steps {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .landing-why-section {
        padding: 58px 0 44px;
    }

    .landing-why-head {
        margin-bottom: 34px;
    }

    .landing-why-head h2 {
        font-size: 37px;
    }

    .landing-why-section .landing-reason-grid {
        width: min(100% - 28px, 520px);
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .landing-why-section .landing-reason-card {
        grid-template-columns: 1fr;
        justify-items: center;
        min-height: auto;
        padding: 26px 22px 22px;
        text-align: center;
    }

    .landing-why-section .landing-reason-copy > span {
        justify-self: center;
    }

    .landing-why-section .landing-reason-card p {
        max-width: 100%;
    }

    .landing-why-section .landing-reason-card footer {
        justify-content: center;
        text-align: left;
    }

    .landing-why-proof {
        flex-direction: column;
        text-align: center;
    }

    .landing-features-section {
        padding: 54px 0 48px;
    }

    .landing-features-head h2 {
        font-size: 34px;
    }

    .feature-window-top {
        grid-template-columns: 1fr auto;
        padding: 10px 12px;
        gap: 8px;
    }

    .feature-window-top span,
    .feature-window-top em {
        display: none;
    }

    .feature-window-body {
        grid-template-columns: 1fr;
    }

    .feature-window-body aside,
    .feature-mail-image {
        display: none;
    }

    .feature-mail-preview {
        padding: 26px 22px;
        text-align: center;
        justify-items: center;
    }

    .landing-feature-card {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .landing-feature-card-icon {
        grid-row: auto;
    }

    .landing-feature-card .landing-feature-card-tags {
        grid-column: auto;
        justify-content: center;
    }
}

@media (max-width: 1040px) {
    .landing-migration-grid {
        grid-template-columns: 1fr;
        gap: 34px;
        text-align: center;
    }

    .landing-migration-copy {
        justify-items: center;
    }

    .landing-migration-actions {
        justify-content: center;
    }

    .landing-migration-panel {
        width: min(100%, 620px);
        margin: 0 auto;
    }

    .landing-final-card {
        min-height: auto;
        padding: 48px 44px;
    }

    .landing-final-product,
    .landing-final-floating {
        display: none;
    }
}

@media (max-width: 720px) {
    .landing-migration {
        padding: 56px 0 18px;
    }

    .landing-migration-grid {
        width: min(100% - 28px, 560px);
    }

    .landing-migration-grid h2 {
        font-size: 36px;
    }

    .landing-migration-actions,
    .landing-migration-cta {
        width: 100%;
    }

    .landing-migration-actions small {
        width: 100%;
        max-width: none;
        text-align: left;
    }

    .landing-migration-panel {
        padding: 14px 14px 14px 46px;
    }

    .landing-migration-steps li > div {
        grid-template-columns: 44px minmax(0, 1fr);
        padding-right: 10px;
    }

    .landing-migration-steps i {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .landing-final-cta {
        padding: 0 0 8px;
    }

    .landing-final-card {
        width: min(100% - 16px, 560px);
        padding: 38px 20px;
        border-radius: 18px;
    }

    .landing-final-cta h2 {
        font-size: 32px;
    }

    .landing-final-actions,
    .landing-final-actions a {
        width: 100%;
    }

    .landing-final-trust {
        display: grid;
        justify-items: center;
        gap: 12px;
    }
}

/* Final dashboard reference overrides: match compact 1245x896 cockpit. */
.dashboard-command-body .app-shell {
    display: block !important;
    min-height: 100vh;
}

.dashboard-command-body .sidebar {
    display: none !important;
}

.dashboard-command-body .main {
    min-height: 100vh;
    padding: 0 !important;
}

.dashboard-command-body .vs-dashboard {
    min-height: 100vh;
    padding: 16px 20px 18px !important;
    background:
        radial-gradient(circle at 74% 0%, rgba(55, 64, 184, .22), transparent 31%),
        radial-gradient(circle at 18% 0%, rgba(18, 112, 255, .14), transparent 24%),
        linear-gradient(180deg, #07111f 0%, #081120 48%, #060d18 100%) !important;
}

.dashboard-command-body .vs-dashboard-top {
    grid-template-columns: minmax(260px, 1fr) minmax(360px, 548px) auto !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
}

.dashboard-command-body .vs-dashboard-top .vs-dashboard-eyebrow {
    display: none !important;
}

.dashboard-command-body .vs-dashboard-top h1 {
    font-size: 14px !important;
    line-height: 1.2 !important;
    letter-spacing: -.015em !important;
}

.dashboard-command-body .vs-dashboard-top > div:first-child > span {
    display: block;
    margin-top: 3px;
    color: #a6b2ca !important;
    font-size: 11px !important;
    line-height: 1.25;
}

.dashboard-command-body .vs-dashboard-search,
.dashboard-command-body .vs-dashboard-user {
    min-height: 36px !important;
    border-radius: 7px !important;
    background: rgba(8, 17, 32, .72) !important;
    border-color: rgba(116, 133, 170, .20) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045) !important;
}

.dashboard-command-body .vs-dashboard-search {
    padding: 0 12px !important;
}

.dashboard-command-body .vs-dashboard-search input {
    font-size: 11px !important;
}

.dashboard-command-body .vs-dashboard-search::after {
    content: "⌘ K";
    color: #7f8ba5;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.dashboard-command-body .vs-dashboard-user {
    padding: 0 10px !important;
}

.dashboard-command-body .vs-dashboard-user button {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
}

.dashboard-command-body .vs-dashboard-user strong {
    position: relative;
    max-width: 170px !important;
    padding-left: 28px;
    font-size: 12px !important;
}

.dashboard-command-body .vs-dashboard-user strong::before {
    content: "";
    width: 21px;
    height: 21px;
    position: absolute;
    left: 0;
    top: 50%;
    border-radius: 6px;
    background: linear-gradient(135deg, #1a4cff, #38d6c2);
    transform: translateY(-50%);
}

.dashboard-command-body .vs-next-actions {
    position: relative;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    min-height: 97px;
    margin-bottom: 8px !important;
    padding: 10px 14px 12px !important;
    border-radius: 6px !important;
    background: linear-gradient(90deg, rgba(28, 34, 103, .58), rgba(11, 23, 48, .62)), rgba(6, 13, 28, .82) !important;
    border-color: rgba(67, 91, 208, .34) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 18px 44px rgba(0,0,0,.22) !important;
}

.dashboard-command-body .vs-next-actions::after {
    content: "×";
    position: absolute;
    right: 14px;
    top: 10px;
    color: #7583a0;
    font-size: 14px;
}

.dashboard-command-body .vs-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dashboard-command-body .vs-section-title::before {
    content: "^";
    color: #7e8cff;
    font-size: 10px;
    font-weight: 900;
}

.dashboard-command-body .vs-section-title p {
    margin: 0 !important;
    color: #aeb9d2 !important;
    font-size: 10px !important;
    letter-spacing: .08em !important;
}

.dashboard-command-body .vs-section-title span {
    display: none !important;
}

.dashboard-command-body .vs-action-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

.dashboard-command-body .vs-action-card {
    min-height: 58px !important;
    grid-template-columns: 42px minmax(0, 1fr) 104px !important;
    gap: 12px !important;
    padding: 8px 10px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: radial-gradient(circle at 4% 50%, rgba(49, 69, 201, .22), transparent 42%), rgba(7, 15, 31, .42) !important;
}

.dashboard-command-body .vs-action-card > span {
    width: 34px !important;
    height: 34px !important;
    border-radius: 7px !important;
}

.dashboard-command-body .vs-action-card strong {
    font-size: 12px !important;
    line-height: 1.25;
}

.dashboard-command-body .vs-action-card small {
    margin-top: 3px !important;
    font-size: 10px !important;
    line-height: 1.25;
}

.dashboard-command-body .vs-action-card a {
    min-height: 36px !important;
    padding: 0 10px !important;
    border-radius: 5px !important;
    background: linear-gradient(135deg, rgba(51, 63, 210, .96), rgba(31, 45, 150, .96)) !important;
    color: #fff !important;
    font-size: 11px !important;
}

.dashboard-command-body .vs-filter-bar {
    grid-template-columns: 174px 164px 150px 160px minmax(220px, 1fr) 116px 114px !important;
    gap: 7px !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.dashboard-command-body .vs-filter-bar label:not(.vs-toggle) {
    min-height: 37px;
    display: grid;
    grid-template-rows: 12px 1fr;
    gap: 0;
    padding: 6px 10px 5px;
    border: 1px solid rgba(106, 124, 162, .20);
    border-radius: 5px;
    background: rgba(7, 15, 31, .72);
    color: #7f8da9;
    font-size: 9px;
}

.dashboard-command-body .vs-filter-bar select {
    min-height: 16px !important;
    padding: 0 18px 0 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #dce5f7 !important;
    font-size: 11px !important;
}

.dashboard-command-body .vs-filter-bar button,
.dashboard-command-body .vs-toggle {
    min-height: 37px !important;
    border-radius: 5px !important;
    background: rgba(7, 15, 31, .72) !important;
    border-color: rgba(106, 124, 162, .20) !important;
    color: #dce5f7 !important;
    font-size: 11px !important;
}

.dashboard-command-body .vs-command-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 9px;
    align-items: start;
}

.dashboard-command-body .vs-command-main {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.dashboard-command-body .vs-kpi-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 7px !important;
    margin: 0 !important;
}

.dashboard-command-body .vs-kpi-card {
    min-height: 85px !important;
    padding: 10px !important;
    border-radius: 6px !important;
    background: radial-gradient(circle at 92% 10%, rgba(79, 100, 228, .16), transparent 36%), rgba(8, 17, 32, .74) !important;
    border-color: rgba(106, 124, 162, .19) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important;
}

.dashboard-command-body .vs-kpi-card small {
    font-size: 10px !important;
}

.dashboard-command-body .vs-kpi-card strong {
    font-size: 22px !important;
}

.dashboard-command-body .vs-kpi-card span {
    font-size: 10px !important;
    color: #7ef2a7 !important;
}

.dashboard-command-body .vs-dashboard-grid {
    grid-template-columns: 1.42fr .9fr .82fr 1fr !important;
    gap: 8px !important;
}

.dashboard-command-body .vs-panel {
    padding: 10px !important;
    border-radius: 6px !important;
    background: rgba(8, 17, 32, .74) !important;
    border-color: rgba(106, 124, 162, .19) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 42px rgba(0,0,0,.20) !important;
}

.dashboard-command-body .vs-panel-large,
.dashboard-command-body .vs-campaign-table {
    grid-column: span 2 !important;
    min-height: 199px !important;
}

.dashboard-command-body .vs-automation-panel {
    grid-column: span 1 !important;
}

.dashboard-command-body .vs-insight-card,
.dashboard-command-body .vs-economy-card,
.dashboard-command-body .vs-audience-card {
    min-height: 185px !important;
}

.dashboard-command-body .vs-recommendation-panel,
.dashboard-command-body .vs-activity-panel {
    grid-column: span 2 !important;
}

.dashboard-command-body .vs-panel-head {
    margin-bottom: 8px !important;
}

.dashboard-command-body .vs-dashboard-eyebrow {
    margin-bottom: 4px !important;
    font-size: 9px !important;
    letter-spacing: .08em !important;
}

.dashboard-command-body .vs-panel h2 {
    font-size: 13px !important;
}

.dashboard-command-body .vs-panel-head a,
.dashboard-command-body .vs-panel-link,
.dashboard-command-body .vs-insight-card a {
    min-height: 24px !important;
    padding: 0 8px !important;
    border: 0 !important;
    background: transparent !important;
    color: #8391ff !important;
    font-size: 10px !important;
}

.dashboard-command-body .vs-chart-shell {
    min-height: 156px !important;
    padding: 0 !important;
    background: transparent !important;
}

.dashboard-command-body .vs-chart-shell svg {
    height: 142px !important;
}

.dashboard-command-body .vs-chart-axis {
    font-size: 9px !important;
}

.dashboard-command-body .vs-chart-line {
    stroke-width: 2.2 !important;
}

.dashboard-command-body .vs-chart-legend {
    gap: 8px !important;
    font-size: 9px !important;
}

.dashboard-command-body .vs-chart-legend i.sent {
    background: #6fa5ff;
}

.dashboard-command-body .vs-chart-legend i.revenue {
    background: #ffd46b;
}

.dashboard-command-body .vs-chart-legend i.previous {
    background: #97a6c3;
}

.dashboard-command-body .vs-chart-line.sent {
    stroke: #6fa5ff !important;
}

.dashboard-command-body .vs-chart-line.revenue {
    stroke: #ffd46b !important;
}

.dashboard-command-body .vs-chart-line.previous {
    stroke: #97a6c3 !important;
    stroke-dasharray: 5 5;
    opacity: .82;
}

.dashboard-command-body .vs-table {
    gap: 4px !important;
}

.dashboard-command-body .vs-table-row {
    min-height: 24px !important;
    grid-template-columns: minmax(120px, 1.3fr) .65fr .42fr .42fr .62fr !important;
    gap: 8px !important;
    padding: 4px 6px !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: transparent !important;
    font-size: 10px !important;
}

.dashboard-command-body .vs-table-row.head {
    min-height: 20px !important;
    font-size: 8px !important;
}

.dashboard-command-body .vs-table-row strong {
    font-size: 10px !important;
}

.dashboard-command-body .vs-table-row small {
    margin-top: 1px !important;
    font-size: 8px !important;
}

.dashboard-command-body .vs-status {
    min-height: 18px !important;
    padding: 0 6px !important;
    border-radius: 4px !important;
    font-size: 8px !important;
}

.dashboard-command-body .vs-attention-panel {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-content: start !important;
    min-height: 292px !important;
    gap: 7px !important;
    padding: 12px !important;
}

.dashboard-command-body .vs-attention-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.dashboard-command-body .vs-attention-head h2 {
    font-size: 12px !important;
}

.dashboard-command-body .vs-attention-head span,
.dashboard-command-body .vs-attention-item em {
    min-width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #d83455;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
}

.dashboard-command-body .vs-attention-item {
    min-height: 28px !important;
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr) 18px !important;
    gap: 6px !important;
    align-items: center !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.dashboard-command-body .vs-attention-item i {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: rgba(255, 177, 66, .14);
    position: relative;
}

.dashboard-command-body .vs-attention-item i::before {
    content: "!";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffb14a;
    font-size: 11px;
    font-weight: 900;
}

.dashboard-command-body .vs-attention-item.tone-red i {
    background: rgba(216, 52, 85, .15);
}

.dashboard-command-body .vs-attention-item.tone-red i::before {
    color: #ff5f7d;
}

.dashboard-command-body .vs-attention-item span {
    overflow: hidden;
    color: #dce5f7;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px !important;
    font-weight: 750;
}

.dashboard-command-body .vs-automation-list {
    gap: 4px !important;
}

.dashboard-command-body .vs-automation-list article {
    grid-template-columns: minmax(108px, 1fr) auto auto !important;
    gap: 8px !important;
    padding: 5px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(106, 124, 162, .10) !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.dashboard-command-body .vs-automation-list strong,
.dashboard-command-body .vs-activity-list strong {
    font-size: 10px !important;
}

.dashboard-command-body .vs-automation-list small,
.dashboard-command-body .vs-activity-list small,
.dashboard-command-body .vs-activity-list time,
.dashboard-command-body .vs-economy-card span {
    font-size: 9px !important;
}

.dashboard-command-body .vs-flow-dots span {
    width: 13px !important;
    height: 13px !important;
    border-width: 1.6px !important;
}

.dashboard-command-body .vs-insight-card strong {
    margin: 10px 0 7px !important;
    font-size: 13px !important;
}

.dashboard-command-body .vs-insight-card p,
.dashboard-command-body .vs-economy-card p {
    font-size: 10px !important;
    line-height: 1.35 !important;
}

.dashboard-command-body .vs-economy-card h2 {
    margin-top: 6px !important;
    font-size: 18px !important;
}

.dashboard-command-body .vs-economy-card div {
    gap: 3px !important;
    margin-top: 8px !important;
}

.dashboard-command-body .vs-audience-bars {
    gap: 8px !important;
    margin-top: 10px !important;
}

.dashboard-command-body .vs-audience-bars strong {
    font-size: 9px !important;
}

.dashboard-command-body .vs-audience-bars i {
    height: 5px !important;
}

.dashboard-command-body .vs-recommendation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

.dashboard-command-body .vs-recommendation-grid a {
    min-height: 104px !important;
    padding: 12px !important;
    border-radius: 6px !important;
}

.dashboard-command-body .vs-recommendation-grid strong {
    font-size: 12px !important;
}

.dashboard-command-body .vs-recommendation-grid span {
    font-size: 10px !important;
}

.dashboard-command-body .vs-activity-list {
    gap: 0 !important;
}

.dashboard-command-body .vs-activity-list article {
    padding: 6px 0 !important;
}

@media (max-width: 1100px) {
    .dashboard-command-body .vs-dashboard-top,
    .dashboard-command-body .vs-filter-bar,
    .dashboard-command-body .vs-command-grid,
    .dashboard-command-body .vs-dashboard-grid {
        grid-template-columns: 1fr !important;
    }

    .dashboard-command-body .vs-action-list,
    .dashboard-command-body .vs-kpi-grid,
    .dashboard-command-body .vs-recommendation-grid {
        grid-template-columns: 1fr !important;
    }

    .dashboard-command-body .vs-panel-large,
    .dashboard-command-body .vs-campaign-table,
    .dashboard-command-body .vs-automation-panel,
    .dashboard-command-body .vs-recommendation-panel,
    .dashboard-command-body .vs-activity-panel {
        grid-column: auto !important;
    }
}

/* Dashboard readability pass: roughly 15% larger on desktop. */
@media (min-width: 1101px) {
    .dashboard-command-body .vs-dashboard {
        padding: 18px 22px 20px !important;
    }

    .dashboard-command-body .vs-dashboard-top h1 {
        font-size: 16px !important;
    }

    .dashboard-command-body .vs-dashboard-top > div:first-child > span {
        font-size: 13px !important;
    }

    .dashboard-command-body .vs-dashboard-search,
    .dashboard-command-body .vs-dashboard-user {
        min-height: 41px !important;
    }

    .dashboard-command-body .vs-dashboard-search input,
    .dashboard-command-body .vs-dashboard-user strong {
        font-size: 13px !important;
    }

    .dashboard-command-body .vs-next-actions {
        min-height: 112px;
        padding: 12px 16px 14px !important;
    }

    .dashboard-command-body .vs-action-card {
        min-height: 67px !important;
        grid-template-columns: 48px minmax(0, 1fr) 120px !important;
        padding: 10px 12px !important;
    }

    .dashboard-command-body .vs-action-card > span {
        width: 39px !important;
        height: 39px !important;
    }

    .dashboard-command-body .vs-action-card strong {
        font-size: 14px !important;
    }

    .dashboard-command-body .vs-action-card small,
    .dashboard-command-body .vs-filter-bar select,
    .dashboard-command-body .vs-filter-bar button,
    .dashboard-command-body .vs-toggle {
        font-size: 12px !important;
    }

    .dashboard-command-body .vs-action-card a {
        min-height: 41px !important;
        font-size: 12px !important;
    }

    .dashboard-command-body .vs-filter-bar label:not(.vs-toggle),
    .dashboard-command-body .vs-section-title p {
        font-size: 11px !important;
    }

    .dashboard-command-body .vs-filter-bar label:not(.vs-toggle),
    .dashboard-command-body .vs-filter-bar button,
    .dashboard-command-body .vs-toggle {
        min-height: 43px !important;
    }

    .dashboard-command-body .vs-command-grid {
        grid-template-columns: minmax(0, 1fr) 300px !important;
    }

    .dashboard-command-body .vs-kpi-card {
        min-height: 98px !important;
        padding: 12px !important;
    }

    .dashboard-command-body .vs-kpi-card small,
    .dashboard-command-body .vs-kpi-card span {
        font-size: 12px !important;
    }

    .dashboard-command-body .vs-kpi-card strong {
        font-size: 25px !important;
    }

    .dashboard-command-body .vs-panel {
        padding: 12px !important;
    }

    .dashboard-command-body .vs-panel h2 {
        font-size: 15px !important;
    }

    .dashboard-command-body .vs-dashboard-eyebrow {
        font-size: 10px !important;
    }

    .dashboard-command-body .vs-panel-large,
    .dashboard-command-body .vs-campaign-table {
        min-height: 229px !important;
    }

    .dashboard-command-body .vs-chart-shell {
        min-height: 180px !important;
    }

    .dashboard-command-body .vs-chart-shell svg {
        height: 164px !important;
    }

    .dashboard-command-body .vs-chart-legend,
    .dashboard-command-body .vs-chart-axis {
        font-size: 10px !important;
    }

    .dashboard-command-body .vs-table-row {
        min-height: 28px !important;
        font-size: 11px !important;
    }

    .dashboard-command-body .vs-table-row.head,
    .dashboard-command-body .vs-table-row small,
    .dashboard-command-body .vs-status {
        font-size: 10px !important;
    }

    .dashboard-command-body .vs-table-row strong,
    .dashboard-command-body .vs-automation-list strong,
    .dashboard-command-body .vs-activity-list strong {
        font-size: 12px !important;
    }

    .dashboard-command-body .vs-attention-panel {
        min-height: 336px !important;
        gap: 8px !important;
    }

    .dashboard-command-body .vs-attention-head h2 {
        font-size: 14px !important;
    }

    .dashboard-command-body .vs-attention-item {
        min-height: 32px !important;
        grid-template-columns: 20px minmax(0, 1fr) 20px !important;
    }

    .dashboard-command-body .vs-attention-item span {
        font-size: 11px !important;
    }

    .dashboard-command-body .vs-automation-list small,
    .dashboard-command-body .vs-activity-list small,
    .dashboard-command-body .vs-activity-list time,
    .dashboard-command-body .vs-economy-card span,
    .dashboard-command-body .vs-insight-card p,
    .dashboard-command-body .vs-economy-card p,
    .dashboard-command-body .vs-recommendation-grid span {
        font-size: 11px !important;
    }

    .dashboard-command-body .vs-insight-card strong,
    .dashboard-command-body .vs-recommendation-grid strong {
        font-size: 15px !important;
    }

    .dashboard-command-body .vs-economy-card h2 {
        font-size: 21px !important;
    }

    .dashboard-command-body .vs-audience-bars strong {
        font-size: 11px !important;
    }

    .dashboard-command-body .vs-recommendation-grid a {
        min-height: 120px !important;
    }
}

/* Extra readability pass without horizontal scrolling. */
@media (min-width: 1101px) {
    .dashboard-command-body {
        overflow-x: hidden !important;
    }

    .dashboard-command-body .vs-dashboard,
    .dashboard-command-body .vs-dashboard * {
        min-width: 0;
    }

    .dashboard-command-body .vs-dashboard {
        max-width: 100vw;
        overflow-x: hidden;
        padding: 18px 20px 22px !important;
    }

    .dashboard-command-body .vs-dashboard-top {
        grid-template-columns: minmax(245px, 1fr) minmax(320px, 552px) auto !important;
    }

    .dashboard-command-body .vs-dashboard-top h1 {
        font-size: 18px !important;
    }

    .dashboard-command-body .vs-dashboard-top > div:first-child > span {
        font-size: 14px !important;
    }

    .dashboard-command-body .vs-dashboard-search,
    .dashboard-command-body .vs-dashboard-user {
        min-height: 46px !important;
    }

    .dashboard-command-body .vs-dashboard-search input,
    .dashboard-command-body .vs-dashboard-user strong {
        font-size: 14px !important;
    }

    .dashboard-command-body .vs-dashboard-search input {
        width: auto !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    .dashboard-command-body .vs-next-actions {
        min-height: 128px !important;
    }

    .dashboard-command-body .vs-action-card {
        min-height: 76px !important;
        grid-template-columns: 54px minmax(0, 1fr) minmax(104px, 118px) !important;
    }

    .dashboard-command-body .vs-action-card > span {
        width: 45px !important;
        height: 45px !important;
    }

    .dashboard-command-body .vs-action-card strong {
        font-size: 16px !important;
    }

    .dashboard-command-body .vs-action-card small,
    .dashboard-command-body .vs-filter-bar select,
    .dashboard-command-body .vs-filter-bar button,
    .dashboard-command-body .vs-toggle {
        font-size: 14px !important;
    }

    .dashboard-command-body .vs-action-card a {
        min-height: 46px !important;
        font-size: 14px !important;
    }

    .dashboard-command-body .vs-filter-bar {
        grid-template-columns: minmax(135px, 1fr) minmax(135px, 1fr) minmax(130px, .9fr) minmax(125px, .9fr) minmax(210px, 1.55fr) minmax(100px, .8fr) minmax(100px, .8fr) !important;
    }

    .dashboard-command-body .vs-filter-bar label:not(.vs-toggle),
    .dashboard-command-body .vs-filter-bar button,
    .dashboard-command-body .vs-toggle {
        min-height: 48px !important;
    }

    .dashboard-command-body .vs-command-grid {
        grid-template-columns: minmax(0, 1fr) minmax(285px, 310px) !important;
    }

    .dashboard-command-body .vs-kpi-card {
        min-height: 112px !important;
        padding: 13px !important;
    }

    .dashboard-command-body .vs-kpi-card small,
    .dashboard-command-body .vs-kpi-card span {
        font-size: 13px !important;
    }

    .dashboard-command-body .vs-kpi-card strong {
        font-size: 29px !important;
    }

    .dashboard-command-body .vs-panel {
        padding: 14px !important;
    }

    .dashboard-command-body .vs-panel h2 {
        font-size: 17px !important;
    }

    .dashboard-command-body .vs-dashboard-eyebrow {
        font-size: 11px !important;
    }

    .dashboard-command-body .vs-panel-large,
    .dashboard-command-body .vs-campaign-table {
        min-height: 260px !important;
    }

    .dashboard-command-body .vs-chart-shell {
        min-height: 206px !important;
    }

    .dashboard-command-body .vs-chart-shell svg {
        height: 188px !important;
    }

    .dashboard-command-body .vs-chart-legend,
    .dashboard-command-body .vs-chart-axis {
        font-size: 12px !important;
    }

    .dashboard-command-body .vs-table-row {
        min-height: 32px !important;
        font-size: 13px !important;
    }

    .dashboard-command-body .vs-table-row.head,
    .dashboard-command-body .vs-table-row small,
    .dashboard-command-body .vs-status {
        font-size: 11px !important;
    }

    .dashboard-command-body .vs-table-row strong,
    .dashboard-command-body .vs-automation-list strong,
    .dashboard-command-body .vs-activity-list strong {
        font-size: 14px !important;
    }

    .dashboard-command-body .vs-attention-panel {
        min-height: 382px !important;
        gap: 9px !important;
    }

    .dashboard-command-body .vs-attention-head h2 {
        font-size: 16px !important;
    }

    .dashboard-command-body .vs-attention-item {
        min-height: 37px !important;
        grid-template-columns: 22px minmax(0, 1fr) 22px !important;
    }

    .dashboard-command-body .vs-attention-item span {
        font-size: 13px !important;
    }

    .dashboard-command-body .vs-automation-list small,
    .dashboard-command-body .vs-activity-list small,
    .dashboard-command-body .vs-activity-list time,
    .dashboard-command-body .vs-economy-card span,
    .dashboard-command-body .vs-insight-card p,
    .dashboard-command-body .vs-economy-card p,
    .dashboard-command-body .vs-recommendation-grid span {
        font-size: 13px !important;
    }

    .dashboard-command-body .vs-insight-card strong,
    .dashboard-command-body .vs-recommendation-grid strong {
        font-size: 17px !important;
    }

    .dashboard-command-body .vs-economy-card h2 {
        font-size: 24px !important;
    }

    .dashboard-command-body .vs-audience-bars strong {
        font-size: 13px !important;
    }

    .dashboard-command-body .vs-recommendation-grid a {
        min-height: 138px !important;
    }
}

.dashboard-command-body .vs-dashboard-search input {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 1 1 0 !important;
}

.dashboard-command-body .vs-toggle input {
    width: 1px !important;
    height: 1px !important;
    left: 0 !important;
    top: 0 !important;
}

.dashboard-command-body .vs-panel-large {
    background:
        radial-gradient(circle at 72% 10%, rgba(70, 93, 255, .16), transparent 34%),
        linear-gradient(180deg, rgba(11, 22, 42, .96), rgba(5, 13, 25, .96)) !important;
}

.dashboard-command-body .vs-chart-range {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(119, 143, 188, .14);
    border-radius: 12px;
    background: rgba(4, 10, 22, .46);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.dashboard-command-body .vs-chart-range button {
    min-height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #8b98b5;
    cursor: pointer;
    font-weight: 900;
    font-size: 13px;
}

.dashboard-command-body .vs-chart-range button.is-active {
    color: #fff;
    background: linear-gradient(135deg, rgba(79, 109, 235, .88), rgba(43, 60, 142, .82));
    box-shadow: 0 12px 28px rgba(45, 74, 224, .24), inset 0 1px 0 rgba(255,255,255,.18);
}

.dashboard-command-body .vs-chart-legend {
    justify-content: flex-start !important;
    margin: -4px 0 8px;
    padding-left: 4px;
}

.dashboard-command-body .vs-chart-legend span {
    color: #b9c4da !important;
    font-weight: 850;
}

.dashboard-command-body .vs-chart-shell {
    position: relative;
    padding: 0 !important;
    border: 1px solid rgba(94, 119, 165, .12);
    background:
        radial-gradient(circle at 52% 24%, rgba(69, 93, 245, .13), transparent 46%),
        linear-gradient(180deg, rgba(8, 18, 35, .64), rgba(5, 11, 21, .72)) !important;
    overflow: hidden;
}

.dashboard-command-body .vs-chart-shell svg {
    width: 100%;
    height: 100% !important;
    min-height: 252px;
    display: block;
}

.dashboard-command-body .vs-chart-bg {
    fill: rgba(2, 8, 18, .18);
}

.dashboard-command-body .vs-chart-grid line {
    stroke: rgba(119, 143, 188, .13) !important;
    stroke-width: 1;
}

.dashboard-command-body .vs-chart-grid.vertical line {
    stroke: rgba(119, 143, 188, .075) !important;
}

.dashboard-command-body .vs-chart-ylabels text,
.dashboard-command-body .vs-chart-xlabels text {
    fill: #9eabc2;
    font-size: 10px;
    font-weight: 850;
}

.dashboard-command-body .vs-chart-ylabels.right text {
    fill: #a8b2c8;
}

.dashboard-command-body .vs-chart-xlabels text {
    text-anchor: middle;
    font-size: 11px;
}

.dashboard-command-body .vs-chart-area.sent-fill {
    fill: url(#vsSentFill);
}

.dashboard-command-body .vs-chart-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3.2 !important;
    vector-effect: non-scaling-stroke;
}

.dashboard-command-body .vs-chart-line.glow {
    filter: url(#vsLineGlow);
}

.dashboard-command-body .vs-chart-line.sent {
    stroke: #4e84ff !important;
}

.dashboard-command-body .vs-chart-line.open {
    stroke: #9d48ff !important;
}

.dashboard-command-body .vs-chart-line.click {
    stroke: #28d7e8 !important;
}

.dashboard-command-body .vs-chart-line.revenue {
    stroke: #e8ba31 !important;
}

.dashboard-command-body .vs-chart-line.previous {
    stroke: #91a2c5 !important;
    stroke-dasharray: 5 6;
    stroke-width: 2.2 !important;
    opacity: .72;
}

.dashboard-command-body .vs-chart-point {
    stroke: rgba(4, 10, 22, .92);
    stroke-width: 1.4;
    filter: drop-shadow(0 0 6px currentColor);
}

.dashboard-command-body .vs-chart-point.sent {
    fill: #4e84ff;
    color: #4e84ff;
}

.dashboard-command-body .vs-chart-point.open {
    fill: #9d48ff;
    color: #9d48ff;
}

.dashboard-command-body .vs-chart-point.click {
    fill: #28d7e8;
    color: #28d7e8;
}

.dashboard-command-body .vs-chart-point.revenue {
    fill: #e8ba31;
    color: #e8ba31;
}

.dashboard-command-body .vs-filter-bar a.vs-filter-action {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(95, 113, 153, .26);
    border-radius: 12px;
    background: rgba(7, 15, 29, .64);
    color: #dbe6ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 900;
    font-size: 12px;
    white-space: nowrap;
}

.dashboard-command-body .vs-filter-bar select:disabled {
    opacity: .86;
    cursor: not-allowed;
}

.dashboard-command-body .vs-chart-hit {
    fill: transparent;
    cursor: crosshair;
    pointer-events: all;
}

.dashboard-command-body .vs-chart-tooltip {
    position: absolute;
    z-index: 6;
    width: 212px;
    padding: 12px;
    border: 1px solid rgba(139, 164, 214, .22);
    border-radius: 14px;
    background:
        radial-gradient(circle at 18% 0%, rgba(78, 132, 255, .20), transparent 42%),
        rgba(5, 12, 24, .96);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .07);
    color: #eaf0ff;
    pointer-events: none;
}

.dashboard-command-body .vs-chart-tooltip[hidden] {
    display: none;
}

.dashboard-command-body .vs-chart-tooltip strong {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 950;
}

.dashboard-command-body .vs-chart-tooltip span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    color: #aebbd5;
    font-size: 12px;
    font-weight: 800;
}

.dashboard-command-body .vs-chart-tooltip em {
    color: #8e9bb6;
    font-style: normal;
}

.dashboard-command-body .vs-chart-tooltip b {
    color: #f4f7ff;
    font-size: 12px;
}

.dashboard-command-body .vs-trust-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}

.dashboard-command-body .vs-trust-strip article {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid rgba(113, 136, 183, .16);
    border-radius: 16px;
    background:
        radial-gradient(circle at 90% 0%, rgba(71, 98, 244, .13), transparent 48%),
        rgba(7, 15, 29, .68);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.dashboard-command-body .vs-trust-strip small,
.dashboard-command-body .vs-trust-strip span {
    display: block;
    color: #8e9bb6;
    font-size: 11px;
    font-weight: 850;
}

.dashboard-command-body .vs-trust-strip strong {
    display: block;
    margin: 4px 0 3px;
    color: #f5f8ff;
    font-size: 15px;
    font-weight: 950;
}

.dashboard-command-body .vs-saved-views {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 100%;
    min-width: 0;
}

.dashboard-command-body .vs-saved-views span {
    color: #8290ad;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.dashboard-command-body .vs-saved-views a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(102, 126, 177, .17);
    border-radius: 999px;
    color: #dbe6ff;
    background: rgba(9, 18, 35, .55);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.dashboard-command-body .vs-saved-views a.is-default {
    border-color: rgba(232, 186, 49, .34);
    color: #ffe6a2;
}

.dashboard-command-body .delta-good {
    color: #5ee0a0 !important;
}

.dashboard-command-body .delta-bad {
    color: #ff8a8a !important;
}

.dashboard-command-body .vs-goal-list,
.dashboard-command-body .vs-segment-list {
    display: grid;
    gap: 12px;
}

.dashboard-command-body .vs-goal-row span,
.dashboard-command-body .vs-segment-list article div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.dashboard-command-body .vs-goal-row strong,
.dashboard-command-body .vs-segment-list strong,
.dashboard-command-body .vs-compare-columns > div > strong {
    color: #f5f8ff;
    font-size: 13px;
    font-weight: 950;
}

.dashboard-command-body .vs-goal-row em {
    font-style: normal;
    font-size: 12px;
    font-weight: 950;
}

.dashboard-command-body .vs-goal-row i,
.dashboard-command-body .vs-segment-list i {
    display: block;
    height: 8px;
    margin: 7px 0 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(91, 107, 143, .22);
}

.dashboard-command-body .vs-goal-row i::before,
.dashboard-command-body .vs-segment-list i::before {
    content: "";
    display: block;
    width: var(--width);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4e84ff, #28d7e8, #e8ba31);
    box-shadow: 0 0 16px rgba(78, 132, 255, .28);
}

.dashboard-command-body .vs-goal-row small,
.dashboard-command-body .vs-segment-list small,
.dashboard-command-body .vs-segment-list p {
    color: #97a5bf;
    font-size: 12px;
    font-weight: 800;
}

.dashboard-command-body .vs-compare-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-command-body .vs-compare-columns > div {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(101, 125, 172, .14);
    border-radius: 14px;
    background: rgba(6, 14, 27, .46);
}

.dashboard-command-body .vs-compare-columns a {
    display: block;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(112, 136, 181, .11);
    color: #eef4ff;
    text-decoration: none;
}

.dashboard-command-body .vs-compare-columns span,
.dashboard-command-body .vs-compare-columns em {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-command-body .vs-compare-columns span {
    font-size: 13px;
    font-weight: 950;
}

.dashboard-command-body .vs-compare-columns em {
    margin-top: 3px;
    color: #98a7c2;
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
}

@media (max-width: 980px) {
    .dashboard-command-body .vs-trust-strip,
    .dashboard-command-body .vs-compare-columns {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .dashboard-command-body .vs-trust-strip,
    .dashboard-command-body .vs-compare-columns {
        grid-template-columns: 1fr;
    }
}
