:root {
    color-scheme: light;
    --ink: #161522;
    --ink-soft: #535064;
    --ink-faint: #7f7b90;
    --paper: #ffffff;
    --canvas: #eeeaf7;
    --line: #e8e4ee;
    --line-strong: #d9d3e4;
    --violet: #6747e9;
    --violet-dark: #5233ca;
    --violet-soft: #f0ebff;
    --violet-pale: #f8f6ff;
    --mint: #17a979;
    --mint-dark: #0f7957;
    --mint-soft: #e8f8f2;
    --peach: #ff8d64;
    --peach-soft: #fff0e9;
    --blue-soft: #eaf3ff;
    --blue: #3e78c6;
    --amber: #9a6420;
    --amber-soft: #fff6dd;
    --danger: #ba3e56;
    --danger-soft: #fff0f3;
    --shadow-window: 0 32px 80px rgba(39, 27, 67, 0.18), 0 2px 10px rgba(39, 27, 67, 0.08);
    --shadow-card: 0 12px 30px rgba(41, 30, 64, 0.07);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 13px;
    --radius-sm: 9px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 12%, rgba(154, 123, 255, 0.17), transparent 31rem),
        radial-gradient(circle at 88% 78%, rgba(255, 161, 120, 0.14), transparent 28rem),
        linear-gradient(145deg, #f5f2fb, #ece8f5);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

button,
textarea,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

button:not(:disabled),
a {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: .56;
}

a {
    color: inherit;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 3px solid #2d74db;
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 10px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 9px;
    color: #fff;
    background: #171522;
    font-weight: 800;
    transform: translateY(-160%);
    transition: transform 160ms var(--ease);
}

.skip-link:focus {
    transform: translateY(0);
}

.preview-disclosure {
    position: sticky;
    z-index: 50;
    top: 0;
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 9px clamp(14px, 3vw, 42px);
    color: #f8f6ff;
    background: #191624;
    box-shadow: 0 1px 0 rgba(255,255,255,.08);
    font-size: 12px;
    letter-spacing: .01em;
}

.portfolio-return {
    display: inline-flex;
    min-height: 32px;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    color: #f8f6ff;
    text-decoration: none;
    font-weight: 800;
}

.portfolio-return img {
    width: 28px;
    height: 24px;
    object-fit: contain;
}

.disclosure-primary,
.disclosure-badge,
.local-only {
    display: flex;
    align-items: center;
}

.disclosure-primary {
    gap: 12px;
}

.disclosure-primary strong {
    color: #fff;
}

.disclosure-badge {
    flex: 0 0 auto;
    gap: 8px;
    padding: 4px 9px;
    border: 1px solid rgba(196, 180, 255, .3);
    border-radius: 999px;
    color: #e8e0ff;
    background: rgba(114, 82, 231, .2);
    font-weight: 800;
}

.badge-pulse,
.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8df1ce;
    box-shadow: 0 0 0 4px rgba(141, 241, 206, .12);
}

.disclosure-divider {
    width: 1px;
    height: 17px;
    background: rgba(255,255,255,.2);
}

.local-only {
    flex: 0 0 auto;
    gap: 7px;
    color: #c7c0d4;
}

.local-only span {
    color: #8df1ce;
}

.preview-canvas {
    padding: clamp(18px, 4vw, 54px);
}

.browser-window {
    width: min(1540px, 100%);
    min-height: calc(100vh - 128px);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(53, 40, 78, .13);
    border-radius: var(--radius-xl);
    background: var(--paper);
    box-shadow: var(--shadow-window);
}

.browser-bar {
    display: grid;
    grid-template-columns: 95px minmax(180px, 620px) 95px;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 18px;
    border-bottom: 1px solid #e5e0ea;
    background: #f5f2f8;
}

.window-controls {
    display: flex;
    gap: 7px;
}

.window-controls span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #f56b70;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}

.window-controls span:nth-child(2) {
    background: #efbb45;
}

.window-controls span:nth-child(3) {
    background: #50bd73;
}

.browser-address {
    display: flex;
    min-width: 0;
    height: 34px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid #dfdae6;
    border-radius: 9px;
    color: #716b7e;
    background: #fff;
    font-size: 11px;
    font-weight: 650;
}

.browser-address span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.address-lock {
    color: var(--mint);
    font-size: 15px;
}

.browser-mode {
    justify-self: end;
    padding: 5px 9px;
    border: 1px solid #dcd6e6;
    border-radius: 999px;
    color: #766e83;
    background: #fff;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.sender-app {
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    min-height: calc(100vh - 180px);
    background: #f8f7fa;
}

.app-sidebar {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 24px 17px 18px;
    color: #e9e5f2;
    background:
        radial-gradient(circle at 20% 10%, rgba(116, 77, 236, .28), transparent 13rem),
        linear-gradient(180deg, #1b1726, #17141f);
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 8px 29px;
    text-decoration: none;
}

.app-brand > span:last-child,
.workspace-user > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.app-brand strong {
    color: #fff;
    font-size: 14px;
    letter-spacing: -.01em;
}

.app-brand small,
.workspace-user small {
    margin-top: 1px;
    color: #928c9d;
    font-size: 9px;
    font-weight: 650;
    letter-spacing: .04em;
}

.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(145deg, #896df3, #5c3cd6);
    box-shadow: 0 8px 22px rgba(103, 71, 233, .32), inset 0 1px rgba(255,255,255,.25);
    font-size: 17px;
    font-weight: 900;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.side-nav button {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 0;
    border-radius: 10px;
    color: #aaa4b6;
    background: transparent;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    transition: color 160ms var(--ease), background 160ms var(--ease), transform 160ms var(--ease);
}

.side-nav button:hover {
    color: #fff;
    background: rgba(255,255,255,.06);
}

.side-nav button:active {
    transform: translateY(1px);
}

.side-nav button > span:first-child {
    color: #777082;
    font-size: 17px;
    text-align: center;
}

.side-nav button.is-active {
    color: #fff;
    background: linear-gradient(110deg, rgba(117, 81, 232, .28), rgba(117, 81, 232, .12));
    box-shadow: inset 3px 0 #8c70f2;
}

.side-nav button.is-active > span:first-child {
    color: #a991ff;
}

.side-nav button small {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 7px;
    color: #d9d0ff;
    background: rgba(137, 105, 239, .22);
    font-size: 9px;
}

.consent-card {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: auto 5px 16px;
    padding: 13px;
    border: 1px solid rgba(89, 217, 170, .14);
    border-radius: 12px;
    background: rgba(27, 163, 117, .1);
}

.consent-icon {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border-radius: 9px;
    color: #80e4bf;
    background: rgba(32, 180, 128, .16);
    font-weight: 900;
}

.consent-card div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.consent-card strong {
    color: #dbf8ed;
    font-size: 10px;
}

.consent-card small {
    margin-top: 2px;
    color: #7fa899;
    font-size: 8px;
}

.workspace-user {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 26px;
    align-items: center;
    gap: 9px;
    padding: 15px 7px 0;
    border-top: 1px solid rgba(255,255,255,.07);
}

.avatar {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(145deg, #7b5be7, #ad73ef);
    font-size: 9px;
    font-weight: 850;
}

.workspace-user strong {
    overflow: hidden;
    color: #e9e5ef;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-user button {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #888190;
    background: transparent;
    font-size: 12px;
}

.workspace-user button:hover {
    color: #fff;
    background: rgba(255,255,255,.07);
}

.app-stage {
    min-width: 0;
}

.topbar {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px clamp(18px, 2.8vw, 36px);
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.93);
}

.mobile-brand {
    display: none;
    align-items: center;
    gap: 8px;
}

.mobile-brand .brand-mark {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
    border-radius: 9px;
    font-size: 13px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #958f9f;
    font-size: 10px;
}

.breadcrumb strong {
    color: #393542;
}

.breadcrumb > span:nth-child(2) {
    color: #c2bcc8;
    font-size: 17px;
}

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

.saved-state {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-right: 2px;
    color: #777080;
    font-size: 9px;
    font-weight: 700;
}

.saved-state > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mint);
}

.saved-state.is-saving > span {
    background: #d09434;
}

.icon-button {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: #6e6877;
    background: #fff;
    font-size: 11px;
    font-weight: 850;
}

.campaign-page {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: clamp(22px, 3vw, 38px) clamp(18px, 3vw, 40px) 46px;
}

.campaign-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 5px;
    color: var(--violet);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.title-line {
    display: flex;
    align-items: center;
    gap: 7px;
}

.title-line h1 {
    margin: 0;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.title-line button {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #9b94a5;
    background: transparent;
}

.title-line button:hover {
    color: var(--violet);
    background: var(--violet-soft);
}

.campaign-heading > div > p:last-child {
    max-width: 580px;
    margin: 7px 0 0;
    color: var(--ink-soft);
    font-size: 11px;
}

.campaign-status {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    padding: 7px 10px;
    border: 1px solid #e1d8fb;
    border-radius: 999px;
    color: #67539c;
    background: var(--violet-pale);
    font-size: 9px;
    font-weight: 800;
}

.campaign-status > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #896af0;
}

.workflow-tabs {
    display: grid;
    grid-template-columns: auto minmax(12px, 1fr) auto minmax(12px, 1fr) auto minmax(12px, 1fr) auto minmax(12px, 1fr) auto;
    align-items: center;
    margin: 27px 0 24px;
    padding: 17px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(48, 37, 65, .035);
}

.workflow-tabs button {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    padding: 0;
    border: 0;
    color: #8d8696;
    background: transparent;
    text-align: left;
}

.workflow-tabs button > span:last-child {
    display: flex;
    flex-direction: column;
}

.workflow-tabs button strong {
    color: inherit;
    font-size: 9px;
}

.workflow-tabs button small {
    margin-top: 1px;
    color: #b2abb9;
    font-size: 7px;
}

.step-number {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    place-items: center;
    border: 1px solid #ddd7e3;
    border-radius: 9px;
    color: #8d8696;
    background: #faf9fb;
    font-size: 9px;
    font-weight: 850;
    transition: color 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
}

.workflow-tabs button.is-active {
    color: var(--violet);
}

.workflow-tabs button.is-active .step-number {
    border-color: var(--violet);
    color: #fff;
    background: var(--violet);
    box-shadow: 0 5px 13px rgba(103, 71, 233, .25);
}

.workflow-tabs button.is-complete {
    color: var(--mint-dark);
}

.workflow-tabs button.is-complete .step-number {
    border-color: #c5ecdd;
    color: var(--mint-dark);
    background: var(--mint-soft);
}

.step-line {
    height: 1px;
    margin: 0 10px;
    background: #e4dfe8;
}

.step-line.is-complete {
    background: #bfe6d8;
}

.composer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    align-items: start;
    gap: 20px;
}

.editor-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.editor-header {
    display: flex;
    min-height: 75px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 21px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fff, #fdfcfe);
}

.editor-header > div {
    min-width: 0;
}

.step-chip {
    display: inline-block;
    margin-bottom: 3px;
    color: var(--violet);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.editor-header h2 {
    margin: 0;
    font-size: 15px;
    letter-spacing: -.015em;
}

.quality-badge,
.safe-pill {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid #cfeee3;
    border-radius: 999px;
    color: var(--mint-dark);
    background: var(--mint-soft);
    font-size: 8px;
    font-weight: 850;
}

.step-panel {
    min-height: 470px;
    padding: 22px;
}

.step-panel:focus {
    outline: none;
}

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

.panel-intro h3,
.safeguard-heading h3,
.readiness-card h3 {
    margin: 0;
    font-size: 14px;
    letter-spacing: -.015em;
}

.panel-intro p:last-child {
    max-width: 540px;
    margin: 5px 0 0;
    color: var(--ink-soft);
    font-size: 10px;
}

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

.template-card,
.channel-card {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    min-height: 72px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: #fff;
    text-align: left;
    transition: border-color 160ms var(--ease), background 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}

.template-card:hover,
.channel-card:hover,
.segment-row:hover {
    border-color: #cfc5ed;
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(60, 43, 93, .06);
}

.template-card.is-selected,
.channel-card.is-selected {
    border-color: #a895ef;
    background: var(--violet-pale);
    box-shadow: 0 0 0 2px rgba(103, 71, 233, .08);
}

.template-card > span:nth-child(2),
.channel-card > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.template-card strong,
.channel-card strong {
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.template-card small,
.channel-card small {
    margin-top: 3px;
    color: var(--ink-faint);
    font-size: 7px;
}

.template-icon,
.channel-logo {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border-radius: 9px;
    background: var(--peach-soft);
    font-size: 13px;
}

.template-card:nth-child(2) .template-icon {
    color: var(--violet);
    background: var(--violet-soft);
}

.template-card:nth-child(3) .template-icon {
    color: var(--blue);
    background: var(--blue-soft);
}

.selection-check {
    position: absolute;
    top: 7px;
    right: 7px;
    display: none;
    width: 15px;
    height: 15px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--violet);
    font-size: 7px;
    font-weight: 900;
}

.is-selected > .selection-check {
    display: grid;
}

.message-editor {
    margin-top: 18px;
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 7px;
}

.field-label-row label,
.schedule-field label {
    font-size: 9px;
    font-weight: 850;
}

.field-label-row span {
    color: var(--ink-faint);
    font-size: 8px;
    font-variant-numeric: tabular-nums;
}

.field-label-row span.is-near-limit {
    color: var(--danger);
}

.message-editor textarea {
    display: block;
    width: 100%;
    min-height: 125px;
    resize: vertical;
    padding: 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px 12px 0 0;
    outline: 0;
    color: #34303d;
    background: #fdfcfe;
    font-size: 11px;
    line-height: 1.65;
    transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.message-editor textarea:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(103, 71, 233, .12);
}

.message-tools {
    display: flex;
    min-height: 39px;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
    border: 1px solid var(--line-strong);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    color: var(--ink-faint);
    background: #fff;
    font-size: 8px;
}

.message-tools button {
    padding: 5px 8px;
    border: 0;
    border-radius: 7px;
    color: #675e71;
    background: #f5f2f7;
    font-size: 8px;
    font-weight: 750;
}

.message-tools button:last-child {
    margin-left: auto;
    color: var(--violet);
    background: var(--violet-soft);
}

.message-tools button:hover {
    color: var(--violet-dark);
    background: #ebe4fd;
}

.message-guidance {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 11px 13px;
    border: 1px solid #e9e3f1;
    border-radius: 11px;
    background: #faf8fd;
}

.message-guidance > span:first-child {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 8px;
    color: var(--violet);
    background: var(--violet-soft);
    font-family: Georgia, serif;
    font-size: 12px;
    font-weight: 900;
}

.message-guidance p,
.privacy-note p {
    display: flex;
    margin: 0;
    flex-direction: column;
}

.message-guidance strong {
    font-size: 9px;
}

.message-guidance small {
    margin-top: 2px;
    color: var(--ink-faint);
    font-size: 7px;
}

.score {
    color: var(--ink-faint);
    font-size: 8px;
}

.score strong {
    color: var(--mint-dark);
    font-size: 14px;
}

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

.channel-card {
    min-height: 82px;
}

.channel-logo {
    color: #fff;
    background: linear-gradient(145deg, #25bd8a, #16855f);
    font-size: 11px;
    font-weight: 900;
}

.channel-logo-sms {
    background: linear-gradient(145deg, #8366eb, #5f40ca);
}

.connection-detail {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 11px;
    margin-top: 18px;
    padding: 15px;
    border: 1px solid #dfece8;
    border-radius: 13px;
    background: #f7fcfa;
}

.connection-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: #24202c;
    font-size: 9px;
    font-weight: 850;
}

.connection-detail > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.connection-detail strong {
    font-size: 10px;
}

.connection-detail > div > span {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    color: var(--ink-faint);
    font-size: 8px;
}

.online-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mint);
}

.audience-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 13px;
    margin-bottom: 13px;
    padding: 13px;
    border: 1px solid #ded6f7;
    border-radius: 13px;
    background: var(--violet-pale);
}

.avatar-stack {
    display: flex;
    padding-left: 7px;
}

.avatar-stack span {
    display: grid;
    width: 29px;
    height: 29px;
    margin-left: -7px;
    place-items: center;
    border: 2px solid var(--violet-pale);
    border-radius: 50%;
    color: #fff;
    background: #8c6dea;
    font-size: 7px;
    font-weight: 850;
}

.avatar-stack span:nth-child(2) {
    background: #49a88b;
}

.avatar-stack span:nth-child(3) {
    background: #e18462;
}

.avatar-stack span:last-child {
    color: #655c70;
    background: #e8e2f1;
}

.audience-summary > div:last-child {
    display: flex;
    flex-direction: column;
}

.audience-summary strong {
    font-size: 10px;
}

.audience-summary small {
    margin-top: 2px;
    color: var(--ink-faint);
    font-size: 8px;
}

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

.segment-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 52px 16px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 62px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    text-align: left;
    transition: border-color 160ms var(--ease), background 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}

.segment-row.is-selected {
    border-color: #a895ef;
    background: var(--violet-pale);
}

.segment-row > span:nth-child(2),
.segment-row > span:nth-child(3) {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.segment-row > span:nth-child(3) {
    text-align: right;
}

.segment-row strong {
    font-size: 9px;
}

.segment-row small {
    margin-top: 2px;
    color: var(--ink-faint);
    font-size: 7px;
}

.segment-icon,
.review-icon {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 9px;
    color: var(--mint-dark);
    background: var(--mint-soft);
    font-size: 11px;
    font-weight: 850;
}

.segment-icon-lilac,
.review-icon-lilac {
    color: var(--violet);
    background: var(--violet-soft);
}

.segment-icon-peach,
.review-icon-peach {
    color: #b75e3c;
    background: var(--peach-soft);
}

.radio-dot {
    display: block;
    width: 15px;
    height: 15px;
    border: 1px solid #cfc8d7;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 3px #fff;
}

.segment-row.is-selected .radio-dot,
.timing-card input:checked + .radio-dot {
    border-color: var(--violet);
    background: var(--violet);
}

.eligibility-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.eligibility-list li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 9px;
    border-radius: 9px;
    background: #f7fbf9;
}

.eligibility-list li > span:first-child {
    color: var(--mint);
    font-weight: 900;
}

.eligibility-list li > span:last-child {
    display: flex;
    flex-direction: column;
}

.eligibility-list strong {
    font-size: 8px;
}

.eligibility-list small {
    margin-top: 2px;
    color: var(--ink-faint);
    font-size: 6px;
    line-height: 1.4;
}

.timing-options {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    border: 0;
}

.timing-options legend {
    margin-bottom: 8px;
    font-size: 9px;
    font-weight: 850;
}

.timing-card {
    position: relative;
    display: grid;
    grid-template-columns: 16px 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 63px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
}

.timing-card:has(input:checked) {
    border-color: #a895ef;
    background: var(--violet-pale);
}

.timing-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.timing-card:has(input:focus-visible) {
    outline: 3px solid #2d74db;
    outline-offset: 3px;
}

.timing-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    color: var(--mint-dark);
    background: var(--mint-soft);
    font-weight: 900;
}

.timing-icon-lilac {
    color: var(--violet);
    background: var(--violet-soft);
}

.timing-card > span:nth-of-type(3) {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.timing-card strong {
    font-size: 9px;
}

.timing-card small {
    margin-top: 2px;
    color: var(--ink-faint);
    font-size: 7px;
}

.recommended {
    padding: 5px 7px;
    border-radius: 999px;
    color: var(--mint-dark);
    background: var(--mint-soft);
    font-size: 7px;
    font-weight: 850;
}

.schedule-field {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 7px 12px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #faf9fc;
}

.schedule-field input {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 205px;
    padding: 8px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    font-size: 9px;
}

.schedule-field small {
    color: var(--ink-faint);
    font-size: 7px;
}

.safeguard-card {
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.safeguard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 11px 13px;
    border-bottom: 1px solid var(--line);
    background: #faf9fc;
}

.safeguard-heading .section-kicker {
    margin-bottom: 2px;
    font-size: 7px;
}

.safeguard-heading h3 {
    font-size: 10px;
}

.safeguard-heading > span {
    color: var(--ink-faint);
    font-size: 8px;
}

.safeguard-list > div {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 52px;
    padding: 8px 12px;
    border-bottom: 1px solid #f0edf3;
}

.safeguard-list > div:last-child {
    border-bottom: 0;
}

.safeguard-list > div > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.safeguard-list strong {
    font-size: 8px;
}

.safeguard-list small {
    margin-top: 1px;
    color: var(--ink-faint);
    font-size: 7px;
}

.safeguard-icon {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 8px;
    color: var(--mint-dark);
    background: var(--mint-soft);
    font-size: 9px;
}

.switch {
    position: relative;
    width: 34px;
    height: 19px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cec8d3;
    transition: background 160ms var(--ease);
}

.switch span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
    transition: transform 160ms var(--ease);
}

.switch.is-active {
    background: var(--mint);
}

.switch.is-active span {
    transform: translateX(15px);
}

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

.review-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 59px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 11px;
}

.review-item > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.review-item small {
    color: var(--ink-faint);
    font-size: 7px;
}

.review-item strong {
    margin-top: 2px;
    overflow: hidden;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-item button {
    padding: 4px;
    border: 0;
    color: var(--violet);
    background: transparent;
    font-size: 7px;
    font-weight: 850;
}

.review-icon-blue {
    color: var(--blue);
    background: var(--blue-soft);
}

.readiness-card {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    margin-top: 13px;
    padding: 13px;
    border: 1px solid #d8ece5;
    border-radius: 12px;
    background: #f5fbf8;
}

.readiness-card.is-warning {
    border-color: #f0d7dc;
    background: var(--danger-soft);
}

.readiness-ring {
    display: flex;
    width: 58px;
    height: 58px;
    align-items: baseline;
    justify-content: center;
    padding-top: 17px;
    border: 5px solid #bfe7d8;
    border-radius: 50%;
    color: var(--mint-dark);
}

.is-warning .readiness-ring {
    border-color: #efbdc7;
    color: var(--danger);
}

.readiness-ring strong {
    font-size: 15px;
    line-height: 1;
}

.readiness-ring span {
    font-size: 7px;
}

.readiness-card > div:nth-child(2) > p:last-child {
    margin: 3px 0 0;
    color: var(--ink-faint);
    font-size: 7px;
}

.readiness-card ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    color: #5e776d;
    font-size: 7px;
    list-style: none;
}

.readiness-card li span {
    color: var(--mint);
    font-weight: 900;
}

.simulation-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 13px;
    padding: 12px;
    border: 1px solid #ddd5fa;
    border-radius: 12px;
    background: linear-gradient(105deg, #f8f5ff, #f2edff);
}

.simulation-card > div {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.simulation-card > div > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.simulation-card strong {
    font-size: 9px;
}

.simulation-card small {
    margin-top: 2px;
    color: var(--ink-faint);
    font-size: 7px;
}

.simulation-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: var(--violet);
    font-size: 9px;
}

.simulation-card.is-running .simulation-icon {
    animation: soft-pulse 850ms ease-in-out infinite alternate;
}

.simulation-card.is-complete {
    border-color: #cbe9de;
    background: var(--mint-soft);
}

.simulation-card.is-complete .simulation-icon {
    background: var(--mint);
}

.nothing-sent {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 11px 2px 0;
    color: var(--ink-faint);
    font-size: 7px;
}

.nothing-sent span {
    color: var(--mint);
}

.editor-footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 65px;
    padding: 12px 20px;
    border-top: 1px solid var(--line);
    background: #fdfcfe;
}

.footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--ink-faint);
    font-size: 7px;
}

.footer-note span {
    color: var(--mint);
}

.button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 9px;
    font-weight: 850;
    text-decoration: none;
    transition: border-color 160ms var(--ease), background 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}

.button:not(:disabled):hover {
    transform: translateY(-1px);
}

.button:not(:disabled):active {
    transform: translateY(0);
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, #7455eb, #5c3bd4);
    box-shadow: 0 7px 16px rgba(103, 71, 233, .22);
}

.button-primary:hover {
    background: linear-gradient(135deg, #6747e9, #4f2fc2);
    box-shadow: 0 9px 19px rgba(103, 71, 233, .28);
}

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

.button-secondary:hover {
    border-color: #cfc6dd;
    background: #faf8fc;
}

.button-ghost {
    color: #746d7d;
    background: transparent;
}

.button-ghost:hover {
    color: var(--ink);
    background: #f2eff5;
}

.button-compact {
    min-height: 31px;
    padding: 6px 10px;
    font-size: 8px;
}

.phone-column {
    position: sticky;
    top: 63px;
    padding: 0 5px 5px;
}

.phone-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 10px;
    padding: 0 3px;
}

.phone-heading > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.phone-heading strong {
    font-size: 9px;
}

.phone-heading .live-dot {
    width: 6px;
    height: 6px;
    background: var(--mint);
    box-shadow: none;
}

.phone-heading button {
    padding: 4px;
    border: 0;
    color: var(--violet);
    background: transparent;
    font-size: 8px;
    font-weight: 850;
}

.phone-shell {
    position: relative;
    width: 228px;
    margin: 0 auto;
    overflow: hidden;
    border: 7px solid #211e27;
    border-radius: 31px;
    background: #f0eeec;
    box-shadow: 0 20px 40px rgba(31, 23, 45, .2), inset 0 0 0 1px rgba(255,255,255,.15);
}

.phone-hardware {
    position: absolute;
    z-index: 2;
    top: 6px;
    left: 50%;
    width: 59px;
    height: 14px;
    border-radius: 999px;
    background: #211e27;
    transform: translateX(-50%);
}

.phone-status {
    display: flex;
    height: 29px;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    color: #403b42;
    background: #fff;
    font-size: 7px;
    font-weight: 800;
}

.chat-header {
    display: grid;
    grid-template-columns: 13px 28px 1fr auto;
    align-items: center;
    gap: 6px;
    min-height: 48px;
    padding: 7px 9px;
    color: #fff;
    background: linear-gradient(115deg, #6546d8, #7757e8);
}

.chat-header > span:first-child {
    font-size: 18px;
}

.chat-avatar {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    font-size: 9px;
    font-weight: 900;
}

.chat-header > span:nth-child(3) {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.chat-header strong {
    font-size: 8px;
}

.chat-header small {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 1px;
    color: rgba(255,255,255,.7);
    font-size: 5px;
}

.chat-header small span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #83edc5;
}

.chat-header > span:last-child {
    font-size: 8px;
    letter-spacing: 1px;
}

.chat-body {
    display: flex;
    min-height: 305px;
    flex-direction: column;
    align-items: flex-end;
    padding: 13px 10px;
    background:
        radial-gradient(circle at 12px 12px, rgba(99, 80, 113, .05) 1px, transparent 1.5px) 0 0/21px 21px,
        #f3f0ed;
}

.chat-date {
    align-self: center;
    margin-bottom: 34px;
    padding: 4px 7px;
    border-radius: 6px;
    color: #777078;
    background: rgba(255,255,255,.82);
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    font-size: 5px;
    font-weight: 700;
}

.chat-bubble {
    position: relative;
    max-width: 88%;
    padding: 9px 9px 7px;
    border-radius: 10px 3px 10px 10px;
    color: #39343a;
    background: #e3f8ef;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

.chat-bubble::after {
    position: absolute;
    top: 0;
    right: -5px;
    border-width: 0 0 8px 6px;
    border-style: solid;
    border-color: transparent transparent #e3f8ef transparent;
    content: "";
}

.chat-bubble p {
    margin: 0;
    font-size: 7px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.chat-bubble small {
    display: block;
    margin-top: 4px;
    color: #6e9b8d;
    font-size: 5px;
    text-align: right;
}

.reply-chip {
    align-self: flex-end;
    margin-top: 8px;
    padding: 6px 9px;
    border: 1px solid #cfc5ef;
    border-radius: 999px;
    color: var(--violet-dark);
    background: #fff;
    font-size: 6px;
    font-weight: 800;
}

.sample-caption {
    align-self: center;
    margin-top: auto;
    color: #9b9599;
    font-size: 5px;
    letter-spacing: .03em;
}

.chat-compose {
    display: grid;
    grid-template-columns: 19px 1fr 19px;
    align-items: center;
    gap: 5px;
    min-height: 43px;
    padding: 6px 7px;
    color: #8e878d;
    background: #fafafa;
    font-size: 8px;
}

.chat-compose span:nth-child(2) {
    padding: 7px 9px;
    border: 1px solid #e0dde0;
    border-radius: 999px;
    background: #fff;
    font-size: 6px;
}

.chat-compose span:last-child {
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--violet);
    font-size: 6px;
}

.preview-detail {
    display: grid;
    grid-template-columns: 27px 1fr;
    align-items: center;
    gap: 9px;
    margin: 11px 6px 0;
    padding: 10px;
    border: 1px solid #dcebe6;
    border-radius: 11px;
    background: #f6fbf9;
}

.preview-check {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 8px;
    color: var(--mint-dark);
    background: var(--mint-soft);
    font-size: 9px;
    font-weight: 900;
}

.preview-detail > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.preview-detail strong {
    overflow: hidden;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-detail small {
    margin-top: 2px;
    color: var(--ink-faint);
    font-size: 6px;
}

.privacy-note {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 8px;
    margin: 9px 6px 0;
    padding: 10px;
    border: 1px dashed #d7d0df;
    border-radius: 10px;
    color: #766f7d;
    background: rgba(255,255,255,.7);
}

.privacy-note > span {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 7px;
    color: var(--violet);
    background: var(--violet-soft);
}

.privacy-note strong {
    font-size: 7px;
}

.privacy-note small {
    margin-top: 2px;
    font-size: 6px;
    line-height: 1.45;
}

.toast {
    position: fixed;
    z-index: 90;
    right: 22px;
    bottom: 22px;
    max-width: min(360px, calc(100vw - 32px));
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 11px;
    color: #fff;
    background: #211d2a;
    box-shadow: 0 14px 34px rgba(26, 19, 37, .28);
    font-size: 10px;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes soft-pulse {
    from { transform: scale(.92); }
    to { transform: scale(1.06); }
}

@media (max-width: 1120px) {
    .preview-canvas {
        padding: 24px;
    }

    .sender-app {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .app-sidebar {
        padding-inline: 12px;
    }

    .workflow-tabs button small {
        display: none;
    }

    .step-line {
        margin-inline: 7px;
    }

    .composer-layout {
        grid-template-columns: minmax(0, 1fr) 240px;
        gap: 14px;
    }

    .phone-column {
        padding-inline: 0;
    }

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

@media (max-width: 900px) {
    .preview-canvas {
        padding: 18px;
    }

    .browser-window {
        min-height: auto;
    }

    .sender-app {
        display: block;
    }

    .app-sidebar {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 14px;
        padding: 11px 16px;
    }

    .app-brand {
        margin: 0;
    }

    .app-brand small {
        display: none;
    }

    .side-nav {
        display: flex;
        min-width: 0;
        flex-direction: row;
        justify-content: center;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .side-nav::-webkit-scrollbar {
        display: none;
    }

    .side-nav button {
        display: flex;
        min-width: max-content;
        min-height: 37px;
        padding: 0 10px;
    }

    .side-nav button > span:first-child {
        font-size: 14px;
    }

    .side-nav button.is-active {
        box-shadow: inset 0 -2px #8c70f2;
    }

    .side-nav button small {
        width: 18px;
        height: 18px;
    }

    .consent-card {
        display: none;
    }

    .workspace-user {
        grid-template-columns: 30px;
        padding: 0;
        border: 0;
    }

    .workspace-user > span:nth-child(2),
    .workspace-user button {
        display: none;
    }

    .composer-layout {
        grid-template-columns: 1fr;
    }

    .phone-column {
        position: static;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 240px;
        gap: 14px;
        align-items: start;
        margin-top: 5px;
        padding: 17px;
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        background: #fff;
    }

    .phone-heading,
    .phone-shell {
        grid-column: 2;
    }

    .phone-heading {
        grid-row: 1;
    }

    .phone-shell {
        grid-row: 2 / span 3;
    }

    .preview-detail,
    .privacy-note {
        grid-column: 1;
        margin-inline: 0;
    }

    .preview-detail {
        grid-row: 2;
        margin-top: 0;
    }

    .privacy-note {
        grid-row: 3;
    }
}

@media (max-width: 700px) {
    .preview-disclosure {
        align-items: flex-start;
    }

    .local-only {
        display: none;
    }

    .browser-bar {
        grid-template-columns: 65px minmax(0, 1fr);
        gap: 10px;
        padding-inline: 12px;
    }

    .browser-mode {
        display: none;
    }

    .app-sidebar {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px;
    }

    .side-nav {
        justify-content: flex-start;
    }

    .workspace-user {
        display: none;
    }

    .side-nav button > span:nth-child(2) {
        display: none;
    }

    .side-nav button.is-active > span:nth-child(2) {
        display: inline;
    }

    .topbar {
        min-height: 55px;
        padding-inline: 15px;
    }

    .breadcrumb {
        display: none;
    }

    .mobile-brand {
        display: flex;
    }

    .saved-state {
        display: none;
    }

    .campaign-page {
        padding-inline: 13px;
    }

    .campaign-heading {
        align-items: center;
    }

    .campaign-heading > div > p:last-child {
        max-width: 460px;
    }

    .workflow-tabs {
        grid-template-columns: repeat(5, minmax(36px, 1fr));
        gap: 5px;
        padding: 11px;
        overflow: hidden;
    }

    .workflow-tabs .step-line {
        display: none;
    }

    .workflow-tabs button {
        justify-content: center;
    }

    .workflow-tabs button > span:last-child {
        display: none;
    }

    .step-number {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
    }

    .step-panel {
        min-height: 0;
        padding: 18px;
    }

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

    .template-card {
        min-height: 59px;
    }

    .channel-grid,
    .review-grid {
        grid-template-columns: 1fr;
    }

    .panel-intro {
        display: block;
    }

    .panel-intro .safe-pill {
        display: inline-flex;
        margin-top: 10px;
    }

    .readiness-card {
        grid-template-columns: 58px 1fr;
    }

    .readiness-card ul {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, 1fr);
    }

    .phone-column {
        display: block;
        padding: 15px;
    }

    .phone-heading {
        margin-inline: auto;
        width: min(100%, 250px);
    }

    .preview-detail,
    .privacy-note {
        width: min(100%, 360px);
        margin: 10px auto 0;
    }
}

@media (max-width: 520px) {
    .preview-disclosure {
        min-height: 0;
        padding: 8px 11px;
        font-size: 10px;
    }

    .portfolio-return span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .disclosure-primary {
        gap: 7px;
    }

    .disclosure-divider {
        display: none;
    }

    .disclosure-primary {
        flex-wrap: wrap;
    }

    .disclosure-badge {
        padding: 3px 7px;
    }

    .preview-canvas {
        padding: 0;
    }

    .browser-window {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .browser-bar {
        min-height: 43px;
        grid-template-columns: 50px minmax(0, 1fr);
        padding: 6px 9px;
    }

    .window-controls {
        gap: 5px;
    }

    .window-controls span {
        width: 8px;
        height: 8px;
    }

    .browser-address {
        height: 30px;
        justify-content: flex-start;
        padding-inline: 10px;
        font-size: 9px;
    }

    .app-sidebar {
        padding: 9px 10px;
    }

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

    .brand-mark {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
        border-radius: 9px;
        font-size: 14px;
    }

    .side-nav button {
        min-width: 36px;
        justify-content: center;
        padding: 0 8px;
    }

    .side-nav button.is-active > span:nth-child(2) {
        display: none;
    }

    .side-nav button small {
        display: none;
    }

    .topbar-actions .button {
        display: none;
    }

    .campaign-page {
        padding-top: 20px;
    }

    .campaign-status {
        display: none;
    }

    .campaign-heading > div > p:last-child {
        font-size: 10px;
    }

    .workflow-tabs {
        margin: 20px 0 14px;
    }

    .editor-header {
        min-height: 66px;
        padding-inline: 16px;
    }

    .quality-badge {
        padding-inline: 7px;
    }

    .step-panel {
        padding: 16px;
    }

    .message-tools {
        flex-wrap: wrap;
        padding-block: 8px;
    }

    .message-tools > span {
        display: none;
    }

    .message-tools button:last-child {
        margin-left: 0;
    }

    .message-guidance {
        grid-template-columns: 25px 1fr;
    }

    .message-guidance .score {
        grid-column: 2;
    }

    .connection-detail {
        grid-template-columns: 34px 1fr;
    }

    .connection-detail .button {
        grid-column: 1 / -1;
    }

    .segment-row {
        grid-template-columns: 28px minmax(0, 1fr) 14px;
    }

    .segment-row > span:nth-child(3) {
        display: none;
    }

    .timing-card {
        grid-template-columns: 16px 30px minmax(0, 1fr);
    }

    .timing-card .recommended {
        grid-column: 3;
        justify-self: start;
    }

    .schedule-field {
        grid-template-columns: 1fr;
    }

    .schedule-field input {
        grid-column: 1;
        grid-row: auto;
        min-width: 0;
        width: 100%;
    }

    .safeguard-list > div {
        grid-template-columns: 25px minmax(0, 1fr) auto;
        padding-inline: 9px;
    }

    .readiness-card {
        grid-template-columns: 52px 1fr;
        padding: 10px;
    }

    .readiness-ring {
        width: 50px;
        height: 50px;
        padding-top: 14px;
    }

    .readiness-card ul {
        grid-template-columns: 1fr;
    }

    .simulation-card {
        align-items: stretch;
        flex-direction: column;
    }

    .editor-footer {
        grid-template-columns: 1fr 1fr;
        padding-inline: 13px;
    }

    .editor-footer .footer-note {
        display: none;
    }

    .editor-footer .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media (forced-colors: active) {
    .brand-mark,
    .step-number,
    .switch,
    .chat-header,
    .button-primary {
        border: 1px solid ButtonText;
    }

    .is-selected,
    .is-active {
        outline: 2px solid Highlight;
    }
}
