:root {
  --ink: #181725;
  --muted: #777586;
  --line: #e8e7ef;
  --soft: #f6f6fa;
  --card: #fff;
  --purple: #7359ee;
  --purple-dark: #5c43d1;
  --nav: #191824;
  --green: #26956b;
  --amber: #b67a16;
  --red: #d64b62;
  --cyan: #2aa7bd;
  --shadow: 0 12px 34px rgba(39, 32, 76, .07);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { color: var(--ink); background: var(--soft); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 8px; color: var(--purple); font-size: 11px; font-weight: 850; letter-spacing: .14em; }
.eyebrow.light { color: #d1c8ff; }

.brand { display: flex; height: 74px; align-items: center; gap: 11px; padding: 0 20px; color: white; font-size: 19px; font-weight: 850; letter-spacing: -.04em; text-decoration: none; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px 4px 11px 11px; color: white; background: linear-gradient(145deg, #987fff, #6046d7); box-shadow: 0 7px 16px rgba(74, 53, 183, .3); font-weight: 900; }
.login-view { display: grid; min-height: 100vh; grid-template-columns: 1.08fr .92fr; background: white; }
.login-brand-panel { position: relative; display: flex; min-height: 100vh; overflow: hidden; flex-direction: column; justify-content: space-between; padding: 42px 54px; color: white; background: radial-gradient(circle at 78% 18%, rgba(148, 124, 255, .36), transparent 29%), linear-gradient(145deg, #18132c, #342663 55%, #674fe1); }
.login-brand-panel::after { content: ""; position: absolute; width: 650px; height: 650px; right: -260px; top: 80px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 90px rgba(255,255,255,.025), 0 0 0 190px rgba(255,255,255,.018); }
.brand-light { position: relative; z-index: 1; height: auto; padding: 0; font-size: 22px; }
.login-copy { position: relative; z-index: 1; max-width: 670px; }
.login-copy h1 { max-width: 620px; margin: 14px 0 22px; font-size: clamp(46px, 5.2vw, 78px); line-height: 1.02; letter-spacing: -.06em; }
.login-copy > p:last-child { max-width: 570px; margin: 0; color: rgba(255,255,255,.7); font-size: 18px; line-height: 1.65; }
.storage-note { position: relative; z-index: 1; display: flex; width: max-content; align-items: center; gap: 13px; padding: 14px 17px; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; background: rgba(255,255,255,.08); }
.storage-note div { display: grid; gap: 3px; }.storage-note small { color: rgba(255,255,255,.6); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #50dfa6; box-shadow: 0 0 0 6px rgba(80,223,166,.12); }
.login-form-panel { display: grid; place-items: center; padding: 36px; }
.login-card { width: min(100%, 430px); }
.login-card h2 { margin: 0; font-size: 30px; letter-spacing: -.045em; }
.login-card > .muted { margin: 9px 0 30px; line-height: 1.55; }
.login-card label, .form-field { display: grid; gap: 7px; margin-bottom: 16px; color: #51505f; font-size: 12px; font-weight: 750; }
.mobile-brand { display: none; }

input, select, textarea { width: 100%; border: 1px solid #dcdbe5; border-radius: 9px; outline: 0; color: var(--ink); background: white; }
input, select { height: 44px; padding: 0 12px; }
textarea { min-height: 108px; padding: 12px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(115,89,238,.11); }
.form-error { min-height: 20px; color: var(--red); font-size: 11px; }
.button { display: inline-flex; min-height: 41px; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 9px; padding: 0 15px; font-size: 12px; font-weight: 780; }
.button.primary { color: white; background: var(--purple); box-shadow: 0 7px 16px rgba(115,89,238,.2); }
.button.primary:hover { background: var(--purple-dark); }
.button.secondary { color: #545263; border-color: #dddce6; background: white; }
.button.danger { color: white; background: var(--red); }
.button.wide { width: 100%; height: 49px; }.button.wide span { margin-left: auto; }
.button.small { min-height: 33px; padding: 0 10px; font-size: 10px; }
.text-button { border: 0; padding: 0; color: var(--purple); background: none; font-size: 10px; font-weight: 750; }
.text-button.danger-text { color: var(--red); }

.app-shell { display: grid; min-height: 100vh; grid-template-columns: 232px 1fr; }
.sidebar { position: sticky; top: 0; z-index: 30; display: flex; height: 100vh; flex-direction: column; color: #d8d7e1; background: var(--nav); }
.sidebar nav { padding: 18px 12px; }
.nav-label { margin: 4px 0 10px; padding: 0 10px; color: #6c697a; font-size: 9px; font-weight: 850; letter-spacing: .16em; }
.nav-item { position: relative; display: flex; width: 100%; height: 46px; align-items: center; gap: 12px; border: 0; border-radius: 9px; padding: 0 11px; color: #aaa8b6; background: transparent; font-size: 12px; text-align: left; }
.nav-item > span { width: 21px; color: #898698; font-size: 18px; text-align: center; }
.nav-item:hover { color: white; background: rgba(255,255,255,.04); }
.nav-item.active { color: white; background: linear-gradient(90deg, rgba(115,89,238,.25), rgba(115,89,238,.07)); }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: #927cff; }
.storage-card { display: grid; gap: 4px; margin: auto 15px 15px; padding: 14px; border: 1px solid rgba(255,255,255,.07); border-radius: 11px; background: rgba(255,255,255,.025); font-size: 10px; }
.storage-card span { color: #c9beff; }.storage-card small { color: #74717e; }
.profile { display: flex; min-height: 68px; align-items: center; gap: 10px; border: 0; border-top: 1px solid rgba(255,255,255,.06); padding: 0 15px; color: #eee; background: transparent; text-align: left; }
.profile > span:nth-child(2) { display: grid; flex: 1; gap: 2px; font-size: 10px; }.profile small { color: #777482; }
.avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #35287a; background: #c8bdff; font-size: 10px; font-weight: 900; }
.close-menu { display: none; }
.workspace { min-width: 0; padding-bottom: 30px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; height: 74px; align-items: center; justify-content: space-between; padding: 0 27px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.topbar-title, .topbar-actions { display: flex; align-items: center; gap: 11px; }
.topbar-title p { margin: 0 0 2px; color: #9a98a7; font-size: 9px; }.topbar-title h1 { margin: 0; font-size: 18px; letter-spacing: -.03em; }
.icon-button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: white; }
.menu-button { display: none; }
.database-badge { display: inline-flex; align-items: center; gap: 7px; color: #686675; font-size: 10px; }.database-badge i { width: 7px; height: 7px; border-radius: 50%; background: #3bb382; box-shadow: 0 0 0 4px #e7f6f0; }
.content { max-width: 1480px; margin: 0 auto; padding: 28px 27px; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-intro h2 { margin: 0; font-size: 29px; letter-spacing: -.045em; }.page-intro .muted { margin: 6px 0 0; font-size: 12px; }
.action-row { display: flex; align-items: center; gap: 8px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 13px; }
.metric { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow); }
.metric-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; color: #634ad6; background: #eeeafd; }
.metric p { margin: 15px 0 5px; color: #807e8c; font-size: 10px; }.metric strong { display: block; font-size: 25px; letter-spacing: -.04em; }.metric small { color: #aaa8b4; font-size: 8px; }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 13px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 19px; border-bottom: 1px solid #eeeeF3; }
.panel-head h3 { margin: 0; font-size: 14px; }.panel-head p { margin: 4px 0 0; color: #8e8c9a; font-size: 9px; }
.test-console-layout { display: grid; grid-template-columns: minmax(330px, .82fr) minmax(0, 1.18fr); gap: 13px; align-items: start; }
.test-api-stack { display: grid; min-width: 0; gap: 13px; }
.test-api-panel { min-width: 0; }
.test-api-wide { grid-column: auto; }
.test-api-form { display: grid; gap: 14px; padding: 20px; }
.test-api-form .form-field { margin: 0; }
.test-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 13px; }
.test-field-grid .full { grid-column: 1 / -1; }
.request-method { padding: 5px 8px; border-radius: 6px; color: #267a5d; background: #e7f6f0; font-size: 9px; font-weight: 850; }
.code-tabs { overflow: hidden; border: 1px solid #373442; border-radius: 10px; background: #211f2d; }
.code-tab-list { display: flex; gap: 4px; padding: 6px 7px 0; border-bottom: 1px solid #373442; background: #292634; }
.code-tab-list button { min-height: 31px; border: 0; border-bottom: 2px solid transparent; padding: 0 12px; color: #9691aa; background: transparent; font-size: 9px; font-weight: 800; }
.code-tab-list button:hover { color: #d9d3f7; }.code-tab-list button.active { border-bottom-color: #8f75ff; color: #efeaff; }
.code-sample, .api-response { margin: 0; overflow: auto; border-radius: 10px; color: #ded9f8; background: #211f2d; font: 11px/1.65 Consolas, "SFMono-Regular", monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.code-tabs .code-sample { min-height: 175px; max-height: 390px; border-radius: 0; padding: 15px; }
.api-response { min-height: calc(100vh - 245px); max-height: calc(100vh - 245px); padding: 19px; border-radius: 0; color: #d7f7ea; }
.api-response.error { color: #ffc8d1; }
.test-response-panel { position: sticky; top: 92px; }.test-response-panel .panel-head { min-height: 70px; }
.record-summary { display: grid; grid-template-columns: 1.3fr .7fr; gap: 13px; }
.analytics-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .75fr); gap: 13px; margin-bottom: 13px; }
.chart-panel .panel-head, .mix-panel .panel-head { min-height: 78px; }.chart-period { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: #777585; font-size: 9px; }
.bar-chart { display: grid; height: 250px; grid-template-columns: repeat(7, 1fr); gap: 13px; align-items: end; padding: 24px 24px 18px; }
.bar-column { display: grid; height: 100%; grid-template-rows: 20px 1fr 18px; gap: 5px; align-items: end; text-align: center; }.bar-column > strong { color: #777585; font-size: 8px; }.bar-column > small { color: #9896a4; font-size: 8px; }
.bar-track { position: relative; height: 100%; overflow: hidden; border-radius: 7px 7px 3px 3px; background: repeating-linear-gradient(to top, #f4f3f8 0, #f4f3f8 1px, transparent 1px, transparent 25%); }
.bar-track span { position: absolute; right: 18%; bottom: 0; left: 18%; min-height: 4px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #8d73ff, #6547e7); box-shadow: 0 7px 18px rgba(105,75,229,.22); }
.mix-chart { display: grid; place-items: center; gap: 22px; padding: 24px 25px; }.donut { display: grid; width: 148px; height: 148px; place-items: center; border-radius: 50%; }.donut > div { display: grid; width: 96px; height: 96px; place-items: center; align-content: center; border-radius: 50%; background: white; }.donut strong { font-size: 21px; }.donut span { color: #9a98a6; font-size: 8px; }
.mix-legend { display: grid; width: 100%; gap: 10px; }.mix-legend > div { display: flex; align-items: center; justify-content: space-between; color: #555363; font-size: 9px; }.mix-legend span { display: flex; align-items: center; gap: 7px; }.mix-legend i { width: 7px; height: 7px; border-radius: 50%; }.mix-legend i.purple { background: var(--purple); }.mix-legend i.cyan { background: #4fc0d6; }.mix-legend i.amber { background: #d5a548; }.mix-legend small { margin-left: 5px; color: #9997a4; }
.activity-list { display: grid; padding: 8px 18px 14px; }
.activity-item { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid #f0eff4; }
.activity-item:last-child { border: 0; }.activity-symbol { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; color: #5b44c8; background: #eeeafd; }
.activity-item p { display: grid; flex: 1; gap: 3px; margin: 0; font-size: 10px; }.activity-item small { color: #9896a4; }
.count-list { display: grid; gap: 14px; padding: 20px; }.count-list > div { display: grid; gap: 6px; }.count-list p { display: flex; justify-content: space-between; margin: 0; color: #777585; font-size: 10px; }.progress { height: 7px; overflow: hidden; border-radius: 5px; background: #eeedf3; }.progress span { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #7157ec, #9b88ff); }

.toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) 145px 160px 160px; gap: 9px; align-items: end; padding: 15px 17px; }
.search-box { display: flex; align-items: center; border: 1px solid #dddce6; border-radius: 9px; }.search-box span { padding-left: 11px; color: #918f9e; }.search-box input { border: 0; box-shadow: none; }
.filter-field { display: grid; gap: 5px; color: #8e8c9b; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { padding: 11px 14px; color: #92909d; background: #fafafd; font-size: 8px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
td { padding: 13px 14px; border-top: 1px solid #f0eff4; color: #5e5c6c; font-size: 9px; }
td strong { color: #292836; }
.contact-name { display: flex; align-items: center; gap: 9px; }.contact-name > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; color: #5942bc; background: #ece8fa; font-size: 8px; font-weight: 850; }.contact-name p { display: grid; gap: 2px; margin: 0; }.contact-name small { color: #aaa8b4; font-size: 8px; }
.tags { display: flex; gap: 4px; margin-top: 4px; }.tag { padding: 2px 5px; border-radius: 5px; color: #6b6087; background: #f0eef5; font-size: 7px; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 20px; font-size: 8px; font-weight: 800; }.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.active, .status.completed { color: var(--green); background: #e5f6ef; }.status.archived { color: #656371; background: #ececf1; }.status.unsubscribed, .status.cancelled { color: #a36472; background: #f8ecef; }.status.scheduled { color: var(--amber); background: #fff3db; }.status.draft { color: #6550c8; background: #ece9fb; }
.row-actions { display: flex; gap: 8px; }
.empty-state { padding: 50px 20px; color: #8b8998; text-align: center; }.empty-state strong { display: block; margin-bottom: 5px; color: #403e4d; }
.pagination { display: flex; align-items: center; justify-content: space-between; padding: 12px 17px; border-top: 1px solid #efeff4; color: #8b8998; font-size: 9px; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.record-card { padding: 17px; }.record-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }.record-card h3 { margin: 0; font-size: 14px; }.record-card > p { min-height: 48px; color: #6f6d7c; font-size: 10px; line-height: 1.55; }.record-meta { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid #efeff3; border-bottom: 1px solid #efeff3; color: #92909d; font-size: 8px; }.record-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 12px; }
.channel { display: inline-flex; padding: 4px 7px; border-radius: 15px; color: #5942c5; background: #ece8fc; font-size: 8px; font-weight: 800; }
.channel-sent-counts { display: flex; min-width: 128px; gap: 6px; }
.channel-sent-counts span { position: relative; display: grid; min-width: 62px; gap: 2px; padding: 6px 26px 6px 8px; border: 1px solid #e5e2f1; border-radius: 8px; background: #faf9fd; }
.channel-sent-counts b { color: #8e8a9c; font-size: 7px; text-transform: uppercase; }
.channel-sent-counts strong { color: #4c3e94; font-size: 11px; }
.channel-reset-button { position: absolute; top: 50%; right: 5px; display: grid; width: 20px; height: 20px; transform: translateY(-50%); place-items: center; border: 1px solid #ddd8ef; border-radius: 6px; padding: 0; color: #6b50d6; background: white; font-size: 13px; line-height: 1; }.channel-reset-button:hover { color: white; border-color: #6b50d6; background: #6b50d6; }

.modal-layer { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(22,19,35,.55); backdrop-filter: blur(5px); }
.modal-card { width: min(880px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 15px; background: white; box-shadow: 0 30px 70px rgba(20,14,50,.3); }
.modal-card > header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid #ededf3; }.modal-card h2, .confirm-card h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }.modal-card > header button { display: grid; width: 32px; height: 32px; place-items: center; border: 0; border-radius: 8px; color: #777482; background: #f2f1f6; font-size: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 13px; padding: 20px 22px 5px; }.form-grid .full { grid-column: 1 / -1; }
.storage-warning { margin: 0 22px 14px; padding: 10px 12px; border: 1px solid #e6e0fb; border-radius: 8px; color: #655889; background: #f8f6ff; font-size: 9px; line-height: 1.5; }
.modal-error { margin: 0 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 15px 22px 20px; border-top: 1px solid #efeff4; }
.confirm-card { width: min(410px, 100%); padding: 26px; border-radius: 15px; background: white; text-align: center; }.confirm-card p { color: #777585; line-height: 1.55; }.confirm-card .modal-actions { justify-content: center; padding: 15px 0 0; border: 0; }.warning-mark { display: grid; width: 45px; height: 45px; place-items: center; margin: 0 auto 14px; border-radius: 50%; color: var(--red); background: #fcecef; font-size: 20px; font-weight: 900; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; padding: 12px 15px; border: 1px solid #d7e8e1; border-radius: 9px; color: #276e56; background: #f0faf6; box-shadow: 0 12px 30px rgba(20,50,40,.14); font-size: 10px; font-weight: 750; }
.scrim, .mobile-nav { display: none; }

.wizard-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 18px 22px 5px; }.wizard-progress > div { position: relative; display: flex; align-items: center; gap: 7px; color: #9a98a6; }.wizard-progress > div:not(:last-child)::after { content: ""; position: absolute; right: 4px; left: 42px; top: 14px; height: 1px; background: #e5e3ec; }.wizard-progress span { position: relative; z-index: 1; display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; background: #f0eff5; font-size: 9px; font-weight: 850; }.wizard-progress small { position: relative; z-index: 1; padding-right: 6px; background: white; font-size: 9px; font-weight: 750; }.wizard-progress .active { color: var(--purple); }.wizard-progress .active span { color: white; background: var(--purple); }.wizard-progress .complete span { color: #277c5e; background: #e5f5ef; }.wizard-progress .complete span::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; }.wizard-progress .complete span { font-size: 0; }
.wizard-step { display: none; padding: 22px 22px 4px; }.wizard-step.active { display: block; }.step-heading { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 20px; }.step-heading > span { display: grid; flex: 0 0 31px; height: 31px; place-items: center; border-radius: 9px; color: #6149d4; background: #ece8ff; font-size: 10px; font-weight: 900; }.step-heading h3 { margin: 1px 0 4px; font-size: 15px; }.step-heading p { margin: 0; color: #9693a1; font-size: 9px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }.audience-choices { grid-template-columns: repeat(4, 1fr); }.choice-card { cursor: pointer; }.choice-card input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }.choice-card > span { display: grid; min-height: 92px; place-items: center; align-content: center; gap: 5px; border: 1px solid #e2e0e9; border-radius: 11px; color: #706e7e; background: #fafafd; text-align: center; }.choice-card i { font-style: normal; font-size: 17px; }.choice-card strong { font-size: 10px; }.choice-card small { color: #a09eaa; font-size: 8px; }.choice-card input:checked + span { border-color: #8169ef; color: #5e46cf; background: #f6f3ff; box-shadow: 0 0 0 2px rgba(115,89,238,.1); }
.step-note { margin: -5px 0 18px; color: #9895a3; font-size: 9px; }.message-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 16px; color: #8d8a99; font-size: 8px; }.message-tools button { border: 1px solid #dedbe9; border-radius: 6px; padding: 4px 7px; color: #654ccf; background: white; font-size: 8px; }.message-preview { min-height: 90px; margin-bottom: 18px; padding: 14px; border-radius: 12px; background: #f1f0f6; }.message-preview > span { color: #9b98a6; font-size: 8px; font-weight: 800; text-transform: uppercase; }.message-preview p { width: min(80%, 520px); margin: 10px 0 0; padding: 11px 13px; border-radius: 13px 13px 13px 4px; color: #484654; background: white; box-shadow: 0 5px 15px rgba(30,26,50,.06); font-size: 9px; line-height: 1.5; }
.audience-rule-list { display: grid; gap: 10px; margin-bottom: 12px; }
.audience-rule-row { position: relative; display: grid; grid-template-columns: minmax(150px, .42fr) minmax(220px, 1fr) 34px; gap: 10px; align-items: end; padding: 14px; border: 1px solid #e7e4ef; border-radius: 12px; background: #fbfafd; }
.audience-rule-row .form-field { margin: 0; }
.audience-rule-value input[readonly] { color: #8f8c9a; background: #f1f0f5; cursor: default; }
.remove-audience-rule { display: grid; width: 34px; height: 44px; place-items: center; border: 1px solid #e4dfe9; border-radius: 9px; color: #a05365; background: white; font-size: 18px; }
.remove-audience-rule:disabled { cursor: not-allowed; opacity: .35; }
.audience-rule-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.audience-rule-toolbar span { color: #9693a1; font-size: 9px; }
.schedule-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }.schedule-cards label { cursor: pointer; }.schedule-cards input { position: absolute; width: 1px; height: 1px; opacity: 0; }.schedule-cards label > span { display: flex; min-height: 70px; flex-direction: column; justify-content: center; gap: 4px; border: 1px solid #e1dfe8; border-radius: 11px; padding: 0 16px; }.schedule-cards strong { font-size: 10px; }.schedule-cards small { color: #9b99a5; font-size: 8px; }.schedule-cards input:checked + span { border-color: #8169ef; background: #f7f4ff; box-shadow: 0 0 0 2px rgba(115,89,238,.09); }.schedule-field input:disabled { color: #aaa8b3; background: #f3f2f6; }
.review-card { margin: 0 0 15px; padding: 14px 16px; border: 1px solid #e8e6ee; border-radius: 11px; background: #fbfbfd; }.review-card > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }.review-card > div > div { display: grid; gap: 3px; }.review-card span { color: #9996a4; font-size: 8px; }.review-card strong { color: #484654; font-size: 9px; }.wizard-actions > span { flex: 1; }
.automation-banner { display: flex; align-items: center; gap: 14px; margin-bottom: 13px; padding: 18px 20px; border-radius: 13px; color: white; background: linear-gradient(105deg, #32255c, #6047c6); box-shadow: 0 13px 27px rgba(64,44,133,.18); }.automation-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px; background: rgba(255,255,255,.13); font-size: 19px; }.automation-banner > div { display: grid; flex: 1; gap: 4px; }.automation-banner strong { font-size: 13px; }.automation-banner small { color: rgba(255,255,255,.65); font-size: 9px; }.storage-pill { padding: 7px 10px; border-radius: 20px; color: #d8d0ff; background: rgba(255,255,255,.12); font-size: 8px; font-weight: 800; }
.automation-how { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 8px; align-items: center; margin-bottom: 13px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 13px; background: white; }.automation-how > div { display: flex; align-items: center; gap: 9px; }.automation-how > div > span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; color: #6249d0; background: #ece8ff; font-size: 9px; font-weight: 850; }.automation-how p { display: grid; gap: 2px; margin: 0; }.automation-how strong { font-size: 9px; }.automation-how small { color: #9997a4; font-size: 7px; }.automation-how > i { color: #c7c4cf; font-style: normal; }
.card-label { display: block; margin-bottom: 5px; color: #9a97a4; font-size: 7px; font-weight: 850; letter-spacing: .08em; }.automation-card > p { min-height: 62px; }.mini-steps { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 22px 0; color: #777482; font-size: 8px; }.mini-steps span { display: flex; align-items: center; gap: 5px; }.mini-steps i { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 7px; color: #654ad3; background: #eeeaff; font-style: normal; font-weight: 850; }.mini-steps b { color: #c6c3cd; font-weight: 400; }

.campaign-fullscreen { display: block; overflow-y: auto; overscroll-behavior-y: contain; padding: 0; background: #f5f5f9; backdrop-filter: none; }
.campaign-fullscreen .modal-card { width: 100%; max-height: none; min-height: 100vh; overflow: visible; border-radius: 0; background: #f5f5f9; box-shadow: none; }
.campaign-fullscreen .modal-card > header { position: sticky; top: 0; z-index: 10; padding: 16px max(24px, calc((100vw - 1440px) / 2)); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.campaign-fullscreen .modal-card > header > div { display: grid; gap: 3px; }.campaign-fullscreen .modal-card > header .eyebrow { margin: 0; cursor: pointer; }.campaign-fullscreen .modal-card > header h2 { font-size: 24px; }
.campaign-fullscreen #modal-form { width: min(1440px, 100%); margin: 0 auto; padding: 28px 24px 50px; }
.campaign-builder-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.campaign-form-column { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow); }
.campaign-fullscreen .campaign-section { display: block; padding: 24px 26px 18px; border-bottom: 1px solid #ecebf1; }
.campaign-fullscreen .campaign-section:last-of-type { border-bottom: 0; }
.campaign-fullscreen .campaign-save-actions { position: sticky; bottom: 0; z-index: 5; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.campaign-fullscreen .modal-error { margin-top: 10px; }
.campaign-preview-panel { position: sticky; top: 104px; display: grid; gap: 14px; }
.preview-heading { position: relative; padding: 4px 2px; }.preview-heading h3 { max-width: 230px; margin: 0; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.preview-heading .status { position: absolute; top: 5px; right: 0; }
.phone-preview { position: relative; overflow: hidden; width: 100%; height: 510px; border: 9px solid #24232d; border-radius: 38px; background: #f2f1f6; box-shadow: 0 18px 38px rgba(28,25,43,.13); }
.phone-notch { position: absolute; z-index: 2; top: -1px; left: 50%; width: 105px; height: 20px; transform: translateX(-50%); border-radius: 0 0 14px 14px; background: #24232d; }
.phone-header { display: flex; height: 82px; align-items: center; gap: 8px; padding: 20px 14px 7px; border-bottom: 1px solid #e1e0e7; background: white; }.phone-header button { border: 0; color: #34313f; background: transparent; font-size: 24px; }.phone-header .brand-mark { width: 31px; height: 31px; border-radius: 9px 3px 9px 9px; font-size: 11px; }.phone-header p { display: grid; gap: 2px; margin: 0; font-size: 9px; }.phone-header small { color: #95929f; font-size: 7px; }
.phone-screen { display: grid; align-content: start; gap: 18px; padding: 18px 13px; }.phone-screen > small { color: #aaa7b2; font-size: 7px; text-align: center; }.phone-bubble { margin-top: 10px; padding: 13px 14px; border-radius: 15px 15px 4px 15px; color: #45424f; background: white; box-shadow: 0 6px 15px rgba(37,33,55,.08); font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.preview-summary { display: grid; gap: 10px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow); }.preview-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; }.preview-summary span { color: #9794a1; font-size: 8px; }.preview-summary strong { max-width: 190px; color: #45434f; font-size: 8px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .record-summary { grid-template-columns: 1fr; }
  .analytics-grid { grid-template-columns: 1fr; }.mix-chart { grid-template-columns: auto 1fr; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .campaign-builder-layout { grid-template-columns: minmax(0, 1fr) 280px; }.phone-preview { height: 450px; }
  .toolbar { grid-template-columns: 1fr 140px; }.toolbar .search-box { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .login-view { grid-template-columns: 1fr; }.login-brand-panel { display: none; }.login-form-panel { min-height: 100vh; padding: 26px 21px; }.mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 45px; font-size: 20px; font-weight: 850; }
  .app-shell { display: block; }.sidebar { position: fixed; left: 0; width: 245px; transform: translateX(-105%); transition: transform .25s; box-shadow: 20px 0 60px rgba(20,18,32,.28); }.sidebar.open { transform: translateX(0); }.close-menu { position: absolute; top: 18px; right: 10px; display: block; border: 0; color: #8e8b99; background: transparent; font-size: 22px; }
  .scrim { position: fixed; inset: 0; z-index: 25; display: block; border: 0; background: rgba(16,14,25,.45); }
  .topbar { height: 64px; padding: 0 14px; }.menu-button { display: grid; }.topbar-title p, .database-badge { display: none; }.topbar-title h1 { font-size: 16px; }.topbar-actions .button { width: 39px; overflow: hidden; padding: 0; white-space: nowrap; }.topbar-actions .button b { display: none; }.topbar-actions .button span { font-size: 17px; }
  .content { padding: 20px 14px 92px; }.page-intro { align-items: flex-start; flex-direction: column; }.page-intro h2 { font-size: 25px; }.action-row { width: 100%; flex-wrap: wrap; }.action-row .button { flex: 1; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.metric { padding: 14px; }.metric strong { font-size: 21px; }
  .cards-grid { grid-template-columns: 1fr; }.toolbar { grid-template-columns: 1fr 1fr; }.toolbar .search-box { grid-column: 1 / -1; }
  .test-console-layout { grid-template-columns: 1fr; }.test-api-stack { grid-row: 1; }.test-response-panel { position: static; grid-row: 2; }.api-response { min-height: 220px; max-height: 420px; }.test-api-wide { grid-column: auto; }.test-field-grid { grid-template-columns: 1fr; }.test-field-grid .full { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }.form-grid .full { grid-column: auto; }
  .bar-chart { height: 210px; gap: 6px; padding: 20px 10px 15px; }.bar-track span { right: 12%; left: 12%; }.mix-chart { grid-template-columns: 1fr; }
  .wizard-progress { padding-right: 14px; padding-left: 14px; }.wizard-progress small { display: none; }.wizard-progress > div:not(:last-child)::after { left: 34px; }.wizard-step { padding-right: 15px; padding-left: 15px; }.choice-grid, .audience-choices { grid-template-columns: 1fr 1fr; }.audience-rule-row { grid-template-columns: 1fr 34px; }.audience-rule-row .audience-rule-value { grid-column: 1 / -1; grid-row: 2; }.audience-rule-row .remove-audience-rule { grid-column: 2; grid-row: 1; }.audience-rule-toolbar { align-items: flex-start; flex-direction: column; }.schedule-cards { grid-template-columns: 1fr; }.review-card > div { grid-template-columns: 1fr; }.message-preview p { width: 100%; }
  .automation-how { grid-template-columns: 1fr 1fr; }.automation-how > i { display: none; }.automation-banner { align-items: flex-start; }.storage-pill { display: none; }.mini-steps { flex-wrap: wrap; }
  .campaign-fullscreen .modal-card > header { padding: 13px 14px; }.campaign-fullscreen .modal-card > header h2 { font-size: 19px; }.campaign-fullscreen #modal-form { padding: 14px 12px 90px; }.campaign-builder-layout { grid-template-columns: 1fr; }.campaign-preview-panel { position: static; grid-row: 1; }.preview-heading { display: none; }.phone-preview { height: 330px; border-width: 7px; border-radius: 29px; }.phone-header { height: 68px; }.campaign-fullscreen .campaign-section { padding: 20px 15px 14px; }.campaign-fullscreen .campaign-save-actions { bottom: 72px; }.preview-summary { grid-template-columns: 1fr 1fr; }.preview-summary > div { display: grid; gap: 3px; }.preview-summary strong { text-align: left; }
  .mobile-nav { position: fixed; left: 9px; right: 9px; bottom: 9px; z-index: 18; display: grid; grid-template-columns: repeat(4,1fr); padding: 6px; border-radius: 16px; background: rgba(26,24,36,.95); box-shadow: 0 13px 32px rgba(20,18,30,.28); backdrop-filter: blur(14px); }.mobile-nav button { display: grid; gap: 2px; place-items: center; border: 0; border-radius: 9px; padding: 5px 2px; color: #777381; background: transparent; }.mobile-nav button span { font-size: 17px; }.mobile-nav button small { font-size: 7px; }.mobile-nav button.active { color: white; background: var(--purple); }
  .toast { left: 14px; right: 14px; bottom: 84px; text-align: center; }
}

@media (max-width: 420px) {
  .metric-grid { grid-template-columns: 1fr; }.toolbar { grid-template-columns: 1fr; }.toolbar .search-box { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
