:root {
    color-scheme: light;
    --page: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --field: #ffffff;
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --accent-soft: #eef2ff;
    --accent-contrast: #ffffff;
    --success: #10b981;
    --success-soft: #ecfdf5;
    --warning: #f59e0b;
    --warning-soft: #fffbeb;
    --danger: #ef4444;
    --danger-soft: #fef2f2;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--page);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --page: #0b0f19;
    --surface: #131b2e;
    --surface-soft: #1e293b;
    --ink: #f8fafc;
    --muted: #94a3b8;
    --line: #1e293b;
    --field: #0f172a;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-soft: #1e1e38;
    --accent-contrast: #ffffff;
    --success: #34d399;
    --success-soft: #064e3b;
    --warning: #fbbf24;
    --warning-soft: #451a03;
    --danger: #f87171;
    --danger-soft: #450a0a;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.4);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--page); color: var(--ink); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #7f9f8c; outline-offset: 3px; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.035em; }
h1 { margin-bottom: 14px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; }
h2 { margin-bottom: 10px; font-size: 1.3rem; line-height: 1.25; }
h3 { margin-bottom: 8px; font-size: 1.08rem; line-height: 1.3; }
p { line-height: 1.65; }
small { color: var(--muted); }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 1rem; font-weight: 760; letter-spacing: -.035em; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-lockup { line-height: 1.08; }
.brand-lockup > span:last-child { display: grid; gap: 5px; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: var(--accent); color: var(--accent-contrast); font-size: 1rem; font-weight: 800; letter-spacing: 0; }
.brand-accent { color: var(--accent); }
.brand-lockup small { font-size: .62rem; font-weight: 750; letter-spacing: .15em; }

.button, button.button, button[type="submit"], input[type="submit"] {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--accent-contrast);
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    transition: all .15s cubic-bezier(0.4, 0, 0.2, 1);
}
.button:hover, button[type="submit"]:hover, input[type="submit"]:hover {
    border-color: var(--accent-hover);
    background: var(--accent-hover);
    color: var(--accent-contrast);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 30%, transparent);
    transform: translateY(-1px);
}
.button:active, button[type="submit"]:active {
    transform: translateY(0);
}
.button-small { min-height: 36px; padding: 6px 14px; font-size: .84rem; }
.button.secondary, .button-quiet {
    border-color: var(--line);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.button.secondary:hover, .button-quiet:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}
button:not(.button):not(.theme-toggle) {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font-weight: 550;
    cursor: pointer;
    transition: all .15s ease;
}
button:not(.button):not(.theme-toggle):hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}
button:disabled { opacity: .5; cursor: not-allowed !important; transform: none !important; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; text-decoration: none; transition: color .15s; }
.text-link:hover { color: var(--accent-hover); text-decoration: underline; }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--muted); font-size: .88rem; font-weight: 550; text-decoration: none; }
.back-link:hover { color: var(--accent); }

/* Public landing and account pages */
.public-shell { min-height: 100vh; }
.landing { width: min(1200px, 100%); margin: 0 auto; padding: 0 32px; }
.public-nav { display: flex; min-height: 80px; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.public-nav > div { display: flex; align-items: center; gap: 20px; }
.public-nav > div > a:first-child { color: var(--ink); font-size: .92rem; font-weight: 600; text-decoration: none; }
.public-nav > div > a:first-child:hover { color: var(--accent); }
.hero { max-width: 820px; padding: clamp(64px, 10vw, 110px) 0 76px; }
.hero h1 { max-width: 780px; margin: 18px 0; font-size: clamp(2.8rem, 6.5vw, 4.8rem); line-height: 1.05; letter-spacing: -.05em; font-weight: 800; }
.hero-gradient-text { background: linear-gradient(135deg, var(--accent) 0%, #a855f7 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-copy { max-width: 680px; margin: 0 0 30px; color: var(--muted); font-size: 1.15rem; line-height: 1.7; font-weight: 400; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.hero-badges { display: flex; align-items: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero-badge-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--muted); background: var(--surface-soft); padding: 6px 14px; border-radius: 9999px; border: 1px solid var(--line); }
.hero-badge-pill svg { color: var(--success); }
.eyebrow { margin-bottom: 12px; color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.fine-print, .muted { color: var(--muted); font-size: .875rem; }
.fine-print { margin: 20px 0 0; }
.promise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 48px 0 80px; border-top: 1px solid var(--line); }
.promise-grid article { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.promise-grid article:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-soft); }
.promise-grid h2 { margin: 16px 0 10px; font-size: 1.25rem; letter-spacing: -.02em; font-weight: 700; }
.promise-grid p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.6; }
.landing-explainer { display: grid; grid-template-columns: minmax(200px, .9fr) minmax(0, 1.4fr); align-items: start; gap: 16px 36px; margin: 0 0 72px; padding: 36px; }
.landing-explainer .text-link { grid-column: 2; margin-top: 12px; }
.connection-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0 28px; }
.connection-guide article { display: grid; align-content: start; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.connection-guide span { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.number { color: var(--accent); font-size: .82rem; font-weight: 750; letter-spacing: .1em; }
.layout-toolbar { display: flex; width: min(1200px, 100%); justify-content: flex-end; margin: 0 auto; padding: 14px 32px 0; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 9999px; background: var(--surface); color: var(--ink); font-size: .82rem; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-sm); transition: all .15s ease; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.theme-toggle::before { content: "🌙"; font-size: 0.9em; }
[data-theme="dark"] .theme-toggle::before { content: "☀️"; font-size: 0.9em; }
.auth-page { width: min(480px, calc(100% - 36px)); margin: clamp(20px, 6vh, 64px) auto; padding: 36px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.auth-page h1 { margin: 32px 0 10px; font-size: 2.2rem; font-weight: 750; }
.auth-page > p { color: var(--muted); font-size: .95rem; }
.auth-eyebrow { margin: 24px 0 8px; }
.auth-switch { margin: 16px 0; }
.auth-switch a { font-weight: 650; }
.auth-form { display: grid; gap: 14px; margin: 24px 0 16px; }
.auth-form button { justify-self: start; margin-top: 8px; }
.auth-message { min-height: 24px; margin: 12px 0; color: var(--accent); font-size: .9rem; line-height: 1.5; }
.auth-page code { padding: 3px 7px; border-radius: var(--radius-sm); background: var(--surface-soft); color: var(--ink); font-size: .84em; }

/* Customer and operations shell */
.customer-shell { display: grid; min-height: 100vh; grid-template-columns: 260px minmax(0, 1fr); }
.app-sidebar { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 24px 16px 18px; border-right: 1px solid var(--line); background: var(--surface); }
.app-sidebar > .brand { padding: 0 12px 22px; }
.app-nav { display: grid; gap: 3px; overflow-y: auto; padding: 8px 0; }
.nav-label { margin: 18px 12px 6px; color: var(--muted); font-size: .66rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.nav-label:first-child { margin-top: 4px; }
.nav-link { display: flex; min-height: 40px; align-items: center; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--muted); font-size: .89rem; font-weight: 550; text-decoration: none; transition: all .15s ease; }
.nav-link:hover { background: var(--surface-soft); color: var(--ink); }
.nav-link.active { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.sidebar-footer { display: grid; gap: 12px; margin-top: auto; padding: 16px 12px 6px; border-top: 1px solid var(--line); }
.sidebar-footer p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.sidebar-footer .theme-toggle { justify-self: stretch; width: 100%; border-radius: var(--radius-sm); }
.sidebar-footer form { margin: 0; }
.sidebar-footer form .text-link { padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; }
.app-content { min-width: 0; background: var(--page); }
.app-topbar { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(22px, 4vw, 54px); border-bottom: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .85rem; }
.app-topbar strong { color: var(--warning); font-weight: 680; }
.topbar-separator { padding: 0 8px; color: var(--line); }
.topbar-help { color: var(--muted); text-decoration: none; transition: color .15s; }
.topbar-help:hover { color: var(--accent); }
.app-main { width: 100%; }
.workspace-page { width: min(1160px, 100%); margin: 0 auto; padding: clamp(28px, 4vw, 52px) clamp(20px, 4vw, 48px) 76px; }
.workspace-page-narrow { width: min(800px, 100%); }
.page-heading { margin-bottom: 30px; }
.page-heading h1 { max-width: 850px; font-weight: 800; font-size: 2.2rem; }
.page-heading .hero-copy { max-width: 760px; margin-bottom: 0; font-size: 1.05rem; }
.page-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; }
.page-heading-row .button { flex: 0 0 auto; }
.loading-state { padding: 28px 0; color: var(--muted); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin: 40px 0 18px; }
.section-heading h2 { margin: 0; font-size: 1.5rem; font-weight: 750; }

/* Cards, onboarding and empty states */
.workspace-card { min-width: 0; margin: 18px 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .15s ease, box-shadow .15s ease; }
.workspace-card > :last-child { margin-bottom: 0; }
.workspace-card h2 { margin-bottom: 10px; font-weight: 700; }
.workspace-card p { color: var(--muted); }
.workspace-card .eyebrow { color: var(--accent); }
.onboarding-card { max-width: 680px; padding: clamp(24px, 4vw, 36px); }
.onboarding-card > p { color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; margin-top: 24px; }
.dashboard-grid .workspace-card { margin: 0; }
.getting-started-grid { margin-top: 0; }
.step-card { display: flex; min-height: 225px; flex-direction: column; align-items: flex-start; }
.step-number { display: inline-flex; min-height: 26px; align-items: center; margin-bottom: 16px; padding: 4px 10px; border-radius: 9999px; background: var(--accent-soft); color: var(--accent); font-size: .7rem; font-weight: 750; letter-spacing: .08em; }
.step-card p { margin-bottom: 20px; color: var(--muted); font-size: .92rem; }
.step-card .text-link { margin-top: auto; font-size: .88rem; }
.step-card-optional .step-number { background: var(--surface-soft); color: var(--muted); }
.notice { display: flex; align-items: flex-start; gap: 14px; margin: 22px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); font-size: .89rem; line-height: 1.55; }
.notice strong { flex: 0 0 auto; }
.notice-info { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); background: var(--accent-soft); color: var(--ink); }
.dashboard-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.dashboard-links > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: all .15s ease; }
.dashboard-links > a:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.dashboard-links > a > span:first-child { display: grid; gap: 5px; }
.dashboard-links strong { font-size: .92rem; font-weight: 650; }
.dashboard-links small { font-size: .78rem; color: var(--muted); }
.empty-state { display: grid; justify-items: center; padding: clamp(32px, 7vw, 68px) 24px; border: 1px dashed var(--line); border-radius: 16px; background: var(--surface-soft); text-align: center; }
.empty-state p { max-width: 450px; margin-bottom: 20px; color: var(--muted); }
.empty-state-mark { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 17px; border-radius: 15px; background: var(--accent-soft); color: var(--accent); font-size: 1.4rem; }
.campaign-list { display: grid; gap: 10px; }
.campaign-list-item { display: flex; min-height: 76px; align-items: center; gap: 14px; padding: 14px 17px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); text-decoration: none; }
.campaign-list-item:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.campaign-list-icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 760; }
.campaign-list-copy { display: grid; flex: 1; gap: 5px; }
.campaign-list-copy strong { font-size: .92rem; }
.campaign-list-copy small { font-size: .75rem; }
.campaign-list-action { color: var(--accent); font-size: .8rem; font-weight: 680; }
.workflow-strip { display: flex; gap: 10px; margin: 26px 0; padding: 0; list-style: none; }
.workflow-strip li { display: flex; flex: 1; align-items: center; gap: 9px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); font-size: .8rem; }
.workflow-strip li span { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--surface-soft); font-size: .72rem; font-weight: 760; }
.workflow-strip li.current { border-color: var(--accent); color: var(--accent); }
.workflow-strip li.current span, .workflow-strip li.complete span { background: var(--accent); color: var(--accent-contrast); }
.workflow-strip li.complete { color: var(--ink); }
.card-step { margin-bottom: 7px !important; color: var(--accent) !important; font-size: .67rem; font-weight: 760; letter-spacing: .12em; }

/* Forms and data */
form { display: grid; gap: 12px; }
label { display: grid; gap: 7px; color: var(--ink); font-size: .84rem; font-weight: 650; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--field);
    color: var(--ink);
    font-size: .91rem;
}
textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #89978f; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 17%, transparent); outline-offset: 0; }
.form-card { max-width: 680px; padding: clamp(22px, 4vw, 34px); }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 6px; }
.helper-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.field-hint { color: var(--muted); font-size: .77rem; font-weight: 450; }
.validation-summary-errors, .validation-message { color: var(--danger); font-size: .83rem; }
.validation-summary-errors ul { margin: 0; padding-left: 20px; }
.auth-message[role="alert"], [role="alert"] { padding: 12px 14px; border-radius: 8px; background: var(--danger-soft); color: var(--danger); }
[role="status"] { color: var(--accent); }
.muted { color: var(--muted); }
.workspace-page textarea { min-height: 112px; }
.workspace-page table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.workspace-card:has(table) { overflow-x: auto; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .69rem; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }
td { color: var(--ink); }
tr:last-child td { border-bottom: 0; }
details { max-width: 100%; }
summary { color: var(--accent); cursor: pointer; font-weight: 650; }
pre { max-width: 100%; overflow: auto; padding: 14px; border-radius: 8px; background: var(--surface-soft); white-space: pre-wrap; overflow-wrap: anywhere; }

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    padding: 12px 24px;
    background: #fee2e2;
    color: #991b1b;
    border-top: 2px solid #ef4444;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    font-size: 0.88rem;
    font-weight: 600;
}
#blazor-error-ui .reload {
    margin-left: 10px;
    color: #b91c1c;
    text-decoration: underline;
    font-weight: 700;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #991b1b;
}

@media (max-width: 900px) {
    .customer-shell { grid-template-columns: 210px minmax(0, 1fr); }
    .app-sidebar { padding-inline: 11px; }
    .dashboard-links { grid-template-columns: 1fr; }
    .connection-guide { grid-template-columns: 1fr; }
    .landing-explainer { grid-template-columns: 1fr; gap: 10px; }
    .landing-explainer .text-link { grid-column: 1; }
}

@media (max-width: 680px) {
    .customer-shell { display: block; }
    .app-sidebar { position: static; display: block; width: 100%; height: auto; padding: 12px 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .app-sidebar > .brand { padding: 0 0 12px; }
    .app-nav { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 12px; scrollbar-width: thin; }
    .nav-label { display: none; }
    .nav-link { min-height: 36px; flex: 0 0 auto; padding: 8px 10px; font-size: .79rem; }
    .sidebar-footer { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
    .sidebar-footer p { display: none; }
    .app-topbar { min-height: 48px; padding-inline: 18px; font-size: .73rem; }
    .topbar-help { display: none; }
    .workspace-page { padding: 30px 18px 56px; }
    .page-heading-row { align-items: flex-start; flex-direction: column; gap: 16px; }
    .page-heading-row .button { margin: 0; }
    .promise-grid { grid-template-columns: 1fr; padding: 20px 0 50px; }
    .promise-grid article, .promise-grid article + article { padding: 17px 0; border: 0; }
    .promise-grid article + article { border-top: 1px solid var(--line); }
    .landing { padding-inline: 20px; }
    .public-nav { min-height: 68px; }
    .public-nav > div { gap: 13px; }
    .public-nav > div > a:first-child { font-size: .83rem; }
    .hero { padding: 64px 0 58px; }
    .hero h1 { font-size: clamp(2.7rem, 14vw, 4.2rem); }
    .hero-copy { font-size: 1rem; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
    .auth-page { width: min(480px, calc(100% - 28px)); margin: 18px auto; padding: 25px 21px; }
    .workspace-card { padding: 19px; }
    .notice { flex-direction: column; gap: 5px; }
    .workflow-strip { flex-direction: column; }
    .campaign-list-action { font-size: 0; }
    .campaign-list-action span { font-size: 1rem; }
}

/* Modern Public Layout & Landing Styles */
.public-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.public-header-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.public-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}
.public-nav-links a {
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}
.public-nav-links a:hover, .public-nav-links a.active {
    color: var(--accent);
}
.public-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.public-footer {
    margin-top: 80px;
    border-top: 1px solid var(--line);
    background: var(--surface);
    padding: 64px 0 32px;
}
.footer-container {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
}
.footer-col h4 {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 16px 0;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-col a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s ease;
}
.footer-col a:hover {
    color: var(--accent);
}
.footer-bottom {
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.84rem;
    color: var(--muted);
}
.stats-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0 60px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.stat-box strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.1;
}
.stat-box span {
    font-size: 0.88rem;
    color: var(--muted);
    margin-top: 4px;
    display: block;
}
.interactive-mockup {
    margin-top: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.mockup-header-bar {
    background: var(--surface-soft);
    padding: 12px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 8px;
}
.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.mockup-body-content {
    padding: 28px;
}
.channels-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
}
.channel-pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    font-size: 0.88rem;
    font-weight: 600;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0 60px;
}
.pricing-card {
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform .2s ease, box-shadow .2s ease;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.pricing-card.featured {
    border: 2px solid var(--accent);
    position: relative;
    box-shadow: var(--shadow);
}
.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent);
    color: var(--accent-contrast);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    margin: 40px 0;
}

@media (max-width: 900px) {
    .public-nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .stats-strip { grid-template-columns: 1fr 1fr; }
}

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