/* ══════════════════════════════════════════════════════════
   HospiEdge Marketing — Restaurant Manager Theme
   Light, warm, professional — built for managers, not devs
   ══════════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-padding-top: 84px; -webkit-font-smoothing: antialiased; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f8f9fb;
    color: #1e293b;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: #4f46e5; text-decoration: none; }
a:hover { color: #4338ca; text-decoration: underline; }
code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 0.9em; color: #475569; }
img { max-width: 100%; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid #818cf8;
    outline-offset: 2px;
}

/* ── Top Navigation ── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    padding: 0 24px;
}
.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    min-height: 60px;
    gap: 16px;
}
.topbar-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}
.topbar-brand:hover { text-decoration: none; color: #1e293b; }
.topbar-brand .brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
}
.topbar-nav {
    display: flex;
    gap: 2px;
    flex-wrap: nowrap;
    align-items: center;
}
.topbar-nav-main {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.topbar-nav-main::-webkit-scrollbar { display: none; }
.is-guest .topbar-nav { gap: 6px; }
.is-guest .topbar-link { padding-inline: 12px; }
.topbar-nav-access {
    flex-shrink: 0;
    border-left: 1px solid #e5e7eb;
    padding-left: 8px;
    margin-left: 8px;
}
.topbar-link {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 500;
    color: #64748b;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.topbar-link:hover {
    background: #f1f5f9;
    color: #1e293b;
    text-decoration: none;
}
.topbar-link.active,
.topbar-link[aria-current="page"] {
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 600;
}

.topbar-link-emphasis {
    border-color: rgba(79, 70, 229, 0.22);
    background: linear-gradient(180deg, rgba(238, 242, 255, 0.94), rgba(224, 231, 255, 0.92));
    color: #4338ca;
    font-weight: 700;
}
.topbar-link-emphasis:hover,
.topbar-link-emphasis:focus-visible {
    background: linear-gradient(180deg, rgba(224, 231, 255, 0.98), rgba(199, 210, 254, 0.96));
    color: #3730a3;
    text-decoration: none;
}

.guest-guide-shell .main-content {
    max-width: 1280px;
}
.guest-guide-footer {
    margin-top: 8px;
}

.topbar-link .nav-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.topbar-nav-shell {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 16px;
    border-left: 1px solid #e5e7eb;
    margin-left: 8px;
}
.topbar-user-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e293b;
}
.topbar-user-role {
    font-size: 0.75rem;
    color: #94a3b8;
}
.topbar-btn {
    background: none;
    font-family: inherit;
    cursor: pointer;
    border: 0;
    color: #64748b;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.15s;
}
.topbar-btn:hover {
    background: #fef2f2;
    color: #dc2626;
}
.topbar-logout { display: inline; }

.is-guest .topbar {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}
.is-guest .topbar-inner {
    max-width: 1280px;
}
.is-guest .topbar-brand {
    font-size: 1.02rem;
}
.is-guest .topbar-link {
    font-size: 0.82rem;
}

.app-footer {
    text-align: center;
    padding: 24px;
    color: #94a3b8;
    font-size: 0.8rem;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

/* Mobile menu toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    color: #475569;
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}
.mobile-menu-btn:hover {
    background: #f1f5f9;
}
.mobile-menu-btn[aria-expanded="true"] {
    background: #eef2ff;
    color: #4f46e5;
    border-color: #c7d2fe;
}

/* ── App Shell ── */
.app-shell { min-height: 100vh; }

/* ── Main Content ── */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 48px;
    width: 100%;
}

/* ── Page Header ── */
.page-header { margin-bottom: 28px; }
.page-header h1 {
    font-size: 1.65rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}
.page-subtitle {
    color: #64748b;
    margin-top: 6px;
    font-size: 0.95rem;
    max-width: 680px;
    line-height: 1.5;
}
.page-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* ── Welcome Header (Dashboard) ── */
.welcome-header {
    margin-bottom: 32px;
}
.welcome-greeting {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
}
.welcome-date {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 4px;
}

.marketing-start-grid {
    align-items: stretch;
}
.marketing-start-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}
.marketing-start-card .marketing-card-kicker {
    margin-bottom: 2px;
}
.marketing-start-card h3 {
    font-size: 1.08rem;
    color: #0f172a;
}
.marketing-start-card p {
    color: #475569;
}
.marketing-start-card .btn {
    margin-top: auto;
    align-self: flex-start;
}
.marketing-page-map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}
.marketing-page-map-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
    padding: 22px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}
.marketing-page-map-card h3,
.marketing-page-map-card p {
    margin: 0;
}
.marketing-page-map-card p {
    color: #475569;
    max-width: 34ch;
}
.marketing-page-map-card .btn {
    margin-top: auto;
    align-self: flex-start;
}
.marketing-page-map-card--positive {
    border-color: rgba(79, 70, 229, 0.22);
    background: linear-gradient(180deg, rgba(238, 242, 255, 0.78), #ffffff 100%);
}
.marketing-page-map-card--neutral {
    border-color: rgba(14, 165, 233, 0.14);
}

.marketing-quick-route-grid {
    gap: 18px;
}
.marketing-quick-route-card {
    min-height: 100%;
}
.marketing-quick-route-card h3 {
    font-size: 1.12rem;
}
.marketing-quick-route-card p {
    max-width: 48ch;
}
.marketing-decision-strip {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}
.marketing-decision-strip-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}
.marketing-step-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.marketing-decision-strip-copy {
    display: grid;
    gap: 6px;
}
.marketing-decision-strip-copy h3 {
    margin: 0;
    font-size: 1.02rem;
    color: #0f172a;
}
.marketing-decision-strip-copy p {
    margin: 0;
    color: #475569;
    max-width: 60ch;
}

/* ── Quick Actions ── */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}
.quick-action-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    cursor: pointer;
}
.quick-action-card:hover {
    text-decoration: none;
    border-color: #c7d2fe;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
    transform: translateY(-1px);
}
.quick-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.quick-action-icon.campaigns { background: #eef2ff; color: #4f46e5; }
.quick-action-icon.contacts { background: #ecfdf5; color: #059669; }
.quick-action-icon.offers { background: #fef3c7; color: #d97706; }
.quick-action-icon.reviews { background: #fce7f3; color: #db2777; }
.quick-action-icon.analytics { background: #f0f9ff; color: #0284c7; }

/* ── Stat Cards ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: box-shadow 0.2s;
}
.stat-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-bottom: 6px;
}
.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}
.stat-detail {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 4px;
}
.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 999px;
}
.stat-trend.up { background: #ecfdf5; color: #059669; }
.stat-trend.down { background: #fef2f2; color: #dc2626; }
.stat-trend.flat { background: #f8fafc; color: #94a3b8; }

/* Legacy status grid compatibility */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.status-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 20px;
}
.status-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-bottom: 4px;
}
.status-value { font-size: 1.1rem; font-weight: 600; color: #0f172a; }
.status-ok { color: #059669; }
.status-warn { color: #d97706; }
.status-error { color: #dc2626; }

/* ── Panel / Card ── */
.panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s;
}
.panel:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.panel h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}
.panel-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.panel-header-row h2 { margin-bottom: 0; }
.panel-note {
    margin-top: 12px;
    color: #94a3b8;
    font-size: 0.88rem;
}

/* ── Attention / Needs Action List ── */
.attention-list {
    display: grid;
    gap: 12px;
}
.attention-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    font-size: 0.9rem;
}
.attention-item.info {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.attention-item.success {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.attention-icon {
    font-size: 1.1rem;
    line-height: 1.4;
    flex-shrink: 0;
}
.attention-text strong {
    display: block;
    color: #0f172a;
    margin-bottom: 2px;
}
.attention-text span {
    color: #64748b;
    font-size: 0.85rem;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary {
    background: #4f46e5;
    border-color: #4338ca;
    color: #fff;
    box-shadow: 0 1px 2px rgba(79, 70, 229, 0.15);
}
.btn-primary:hover {
    background: #4338ca;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.2);
    color: #fff;
}

.btn-secondary {
    background: #fff;
    border-color: #d1d5db;
    color: #374151;
}
.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-success {
    background: #059669;
    border-color: #047857;
    color: #fff;
}
.btn-success:hover {
    background: #047857;
    color: #fff;
}

.btn-danger {
    background: #fff;
    border-color: #fca5a5;
    color: #dc2626;
}
.btn-danger:hover {
    background: #fef2f2;
    border-color: #dc2626;
}

.btn-sm { padding: 5px 12px; font-size: 0.82rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-inline { padding: 5px 14px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.action-row { display: flex; gap: 10px; flex-wrap: wrap; }
.action-stack { display: grid; gap: 10px; }

/* ── Badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.badge-ok, .badge-success { background: #ecfdf5; color: #059669; }
.badge-muted { background: #f1f5f9; color: #64748b; }
.badge-warn, .badge-warning { background: #fffbeb; color: #d97706; }
.badge-error, .badge-danger { background: #fef2f2; color: #dc2626; }
.badge-info { background: #eef2ff; color: #4f46e5; }
.badge[disabled] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

/* Status chips */
.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    background: #f1f5f9;
    color: #475569;
}
.status-chip-solid {
    background: #4f46e5;
    color: #fff;
}

/* Nav pill */
.nav-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
}
.nav-pill.muted {
    background: #f1f5f9;
    color: #64748b;
}

/* ── Tables ── */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid #e5e7eb; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: #fff; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #f1f5f9; }
th {
    font-weight: 600;
    color: #64748b;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #f8fafc;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafbfc; }

.table-wrap tr:target {
    background: rgba(79, 70, 229, 0.05);
    box-shadow: inset 3px 0 0 #4f46e5;
}

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.form-hint {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 4px;
}
.form-input,
.form-control {
    width: 100%;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #1e293b;
    font-size: 0.92rem;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus,
.form-control:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}
.form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}
select.form-input,
.form-select {
    appearance: auto;
    width: 100%;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #1e293b;
    font-size: 0.92rem;
}
.form-select:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}
.form-select-sm { min-width: 190px; max-width: 240px; }
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.inline-form { display: inline; }
.inline-form-stack {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.form-inline-label {
    font-size: 0.8rem;
    color: #64748b;
}

/* Form card */
.form-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    max-width: 600px;
}

/* ── Auth Pages ── */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 60px;
    padding-bottom: 60px;
    background: #f8f9fb;
}
.auth-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 36px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.auth-card h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}
.auth-card .auth-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 24px;
}
.auth-footer {
    margin-top: 20px;
    font-size: 0.88rem;
    color: #64748b;
    text-align: center;
}

/* ── Alerts ── */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}
.alert-error, .alert-danger { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert-warning, .alert-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* ── Checklist ── */
.checklist { list-style: none; }
.checklist li {
    padding: 10px 0 10px 32px;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.92rem;
    color: #374151;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
    position: absolute;
    left: 0;
    top: 10px;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    font-size: 0.75rem;
    text-align: center;
    line-height: 20px;
}
.check-done::before {
    content: "\2713";
    background: #ecfdf5;
    color: #059669;
    font-weight: 700;
}
.check-pending::before {
    content: "";
    background: #f8fafc;
    border: 2px solid #d1d5db;
}
.check-detail {
    color: #94a3b8;
    font-size: 0.82rem;
}

/* ── Workspace Cards (campaign/contact/offer list items) ── */
.workspace-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 12px;
    transition: all 0.15s ease;
}
.workspace-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.06);
}
.workspace-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.workspace-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}
.workspace-card-title a {
    color: #0f172a;
}
.workspace-card-title a:hover {
    color: #4f46e5;
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 56px 24px;
    color: #94a3b8;
}
.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.5;
}
.empty-state h3 {
    color: #475569;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.empty-state p {
    max-width: 400px;
    margin: 0 auto 16px;
    font-size: 0.9rem;
}
.empty-state .btn { margin-top: 8px; }

/* ── Upload Row ── */
.upload-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.file-input {
    flex: 1;
    min-width: 200px;
}

/* ── File Tree ── */
.file-tree {
    max-height: 400px;
    overflow-y: auto;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: "Cascadia Code", "Fira Code", monospace;
    font-size: 0.82rem;
    line-height: 1.7;
}
.file-entry { color: #475569; }

/* ── Job Output ── */
.job-output {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 18px;
    font-size: 0.88rem;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 500px;
    overflow-y: auto;
    color: #475569;
}
.job-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.job-header h2 { margin-bottom: 0; }

/* ── Tags ── */
.tag-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.mini-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 500;
}
.mini-tag.status-ok { background: #ecfdf5; color: #059669; }
.mini-tag.status-warn { background: #fffbeb; color: #d97706; }
.mini-tag.status-error { background: #fef2f2; color: #dc2626; }

/* ── Key-Value Grid ── */
.kv-grid { display: grid; gap: 10px; }
.kv-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}
.kv-row:last-child { border-bottom: none; padding-bottom: 0; }
.kv-row span { color: #64748b; font-size: 0.9rem; }
.kv-row strong { color: #0f172a; text-align: right; }

/* ── Mini Alert ── */
.mini-alert {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
}
.mini-alert-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

/* ── Ordered Steps ── */
.ordered-steps { padding-left: 22px; color: #475569; }
.ordered-steps li + li { margin-top: 8px; }

/* ── Bullet List ── */
.bullet-list { margin-left: 18px; display: grid; gap: 6px; }
.bullet-list li { line-height: 1.5; }

/* ── Section Subtitle ── */
.section-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
}

/* ── Proposal / Review Cards ── */
.proposal-list { display: grid; gap: 14px; }
.proposal-card {
    display: block;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 18px;
}
.proposal-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.proposal-card input[type="checkbox"] { margin-right: 8px; }
.proposal-details summary { cursor: pointer; color: #4f46e5; font-weight: 500; }

/* ── Review Form Grid ── */
.review-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.review-span-2 { grid-column: 1 / -1; }

/* ── Path List ── */
.path-list { list-style: none; display: grid; gap: 8px; }
.path-list li {
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

/* ── Dashboard Grids ── */
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.preflight-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

/* ── Readiness ── */
.readiness-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.readiness-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 18px;
}
.readiness-list { margin-top: 10px; padding-left: 18px; }
.readiness-list li + li { margin-top: 6px; }
.readiness-checklist li { display: flex; flex-direction: column; gap: 3px; }

/* Preflight */
.preflight-header-row { align-items: flex-start; }
.preflight-overall {
    min-width: 280px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 18px 20px;
    background: #fff;
}
.preflight-overall-ok { box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.15); }
.preflight-overall-warn { box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.15); }
.preflight-overall-value { font-size: 1.05rem; font-weight: 700; color: #0f172a; }
.preflight-status-grid .status-card { min-height: 92px; }

/* ── Continuity ── */
.continuity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.continuity-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 18px;
}
.continuity-value { font-size: 1rem; font-weight: 600; color: #0f172a; }
.continuity-note { color: #64748b; font-size: 0.88rem; line-height: 1.55; }

/* ── Metrics ── */
.proposal-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}
.proposal-summary-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
}
.proposal-summary-value { font-size: 1.1rem; font-weight: 700; color: #0f172a; }
.proposal-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}
.metric-pill {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
}
.metric-pill span {
    display: block;
    color: #94a3b8;
    font-size: 0.78rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.metric-pill strong { color: #0f172a; font-size: 0.88rem; }

.proposal-diff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.proposal-preview-pane { min-width: 0; }
.proposal-risk-list { margin-left: 18px; }

/* Scope badges */
.scope-new { background: #ecfdf5; color: #059669; }
.scope-narrow { background: #eef2ff; color: #4338ca; }
.scope-wide { background: #fffbeb; color: #d97706; }
.scope-full { background: #fef2f2; color: #dc2626; }
.tag-ok { background: #ecfdf5; color: #059669; }
.tag-warn { background: #fffbeb; color: #d97706; }

/* ── Recommendation ── */
.recommendation-grid .continuity-card { min-height: 0; }
.recommendation-body { border-top: 1px solid #f1f5f9; padding-top: 1rem; }
.recommendation-summary-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.1rem;
}
.recommendation-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}
.recommendation-column {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
}
.recommendation-column h3,
.recommendation-summary-card h3 { margin: 0; }
.recommendation-chip-row,
.recommendation-targets { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.recommendation-chip {
    display: inline-block;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e5e7eb;
    color: #475569;
    font-size: 0.82rem;
}

/* ── Utility ── */
.text-muted { color: #94a3b8; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mb-md { margin-bottom: 16px; }
.inline-form { display: inline-flex; }

/* ── Sidebar (kept for backward compat, restyled) ── */
.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.sidebar { display: none; }
.sidebar-brand { display: none; }
.sidebar-shell-note { display: none; }
.sidebar-access-rail { display: none; }
.sidebar-section-label { display: none; }
.sidebar-nav { display: none; }
.sidebar-quick-actions { display: none; }
.sidebar-footer { display: none; }
.sidebar-kicker { display: none; }
.sidebar-quick-actions-compact { display: none; }
.nav-locked { opacity: 0.6; }
.nav-lock-badge {
    font-size: 0.7rem;
    background: #fef2f2;
    color: #dc2626;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 6px;
}
.btn-sidebar { display: none; }

/* Top bar (from layout) */
.top-bar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 24px;
    margin: -32px -24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.top-bar-copy { flex: 1; min-width: 0; }
.top-bar-kicker {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4f46e5;
    margin-bottom: 4px;
}
.top-bar h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}
.top-bar-subtitle {
    color: #64748b;
    font-size: 0.88rem;
    margin-top: 4px;
    max-width: 600px;
}
.top-bar-statuses {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Page content */
.page-content {
    flex: 1;
}

/* ── Filter Bar ── */
.filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 20px;
}
.filter-bar .form-group {
    margin-bottom: 0;
    min-width: 150px;
}
.filter-bar .form-label {
    font-size: 0.78rem;
    margin-bottom: 4px;
}

/* ── Tip Card ── */
.tip-card {
    background: linear-gradient(135deg, #eef2ff, #faf5ff);
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 20px;
}
.tip-card strong {
    color: #4f46e5;
    font-size: 0.88rem;
}
.tip-card p {
    color: #475569;
    font-size: 0.88rem;
    margin-top: 4px;
}

/* ── Toast Notification ── */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
    max-width: 380px;
}
.toast.success { border-left: 3px solid #059669; }
.toast.error { border-left: 3px solid #dc2626; }
.toast.info { border-left: 3px solid #4f46e5; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translateY(-10px); }
}

/* ── Skip Link ── */
.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #4f46e5;
    color: #fff;
    font-weight: 600;
    z-index: 1000;
}
.skip-link:focus { top: 12px; }

/* ── Shell stack ── */
.shell-stack > * + * { margin-top: 20px; }
.main-content > :last-child { margin-bottom: 0; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .topbar { padding: 0 16px; position: relative; }
    .topbar-inner {
        min-height: 56px;
        gap: 12px;
        flex-wrap: wrap;
    }
    .topbar-brand-group { max-width: none; flex: 1 1 0; min-width: 0; }
    .topbar-context { -webkit-line-clamp: 1; font-size: 0.72rem; }
    .topbar-nav-shell {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        padding: 12px 16px;
        flex-direction: column;
        gap: 8px;
        z-index: 200;
    }
    .topbar-nav-shell.open { display: flex; }
    .topbar-nav {
        flex-direction: column;
        gap: 2px;
    }
    .topbar-nav-main { overflow-x: visible; }
    .topbar-nav-access {
        border-left: none;
        border-top: 1px solid #e5e7eb;
        padding-left: 0;
        margin-left: 0;
        padding-top: 8px;
        margin-top: 4px;
    }
    .topbar-link { width: 100%; padding: 10px 14px; font-size: 0.9rem; }
    .topbar-user { display: none; }
    .mobile-menu-btn { display: flex; }

    .main-content { padding: 20px 16px 32px; }

    .dashboard-grid { grid-template-columns: 1fr; }
    .top-bar { margin: -20px -16px 20px; padding: 18px 16px; }
    .preflight-overall { min-width: 0; width: 100%; }

    .panel, .form-card, .auth-card { padding: 18px; }
    .panel-header-row, .page-header-row, .job-header {
        align-items: flex-start;
        flex-direction: column;
    }
    th, td { padding: 10px 12px; }
    .review-form-grid { grid-template-columns: 1fr; }
    .review-span-2 { grid-column: auto; }
    .proposal-diff-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .quick-actions { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

    .topbar-link { width: 100%; }
    .action-row, .upload-row, .page-header-row {
        align-items: stretch;
        flex-direction: column;
    }
    .action-row .btn, .upload-row .btn, .btn-block {
        width: 100%;
        text-align: center;
    }
    .file-input { min-width: 0; }
    .table-wrap { margin-left: -4px; margin-right: -4px; }
    th, td { white-space: nowrap; }
    .form-card, .auth-card { border-radius: 12px; }

    .topbar { padding-left: 12px; padding-right: 12px; }
    .quick-action-card { padding: 12px 14px; }
}

/* ── Build packet ── */
.route-build-packet .job-output { max-height: 360px; }
.route-build-packet .file-tree { max-height: 460px; }
.route-build-packet .preflight-card-grid > .panel { margin-bottom: 0; }

/* ── Shell status rail (kept for compat) ── */
.shell-status-rail {
    border-bottom: 1px solid #e5e7eb;
    background: #fffbeb;
}
.shell-status-rail-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
}
.shell-status-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 10px;
}
.shell-status-list { list-style: none; display: grid; gap: 8px; }
.shell-status-item { border-radius: 8px; padding: 10px 14px; font-size: 0.9rem; }
.shell-status-item-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.shell-status-item-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

/* ── Topbar context (compat) ── */
.topbar-brand-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    max-width: 220px;
}
.topbar-context {
    color: #94a3b8;
    font-size: 0.73rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 900px) {
    .shell-status-rail-inner { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 640px) {
    .topbar-context { display: none; }
    .topbar-brand { font-size: 1rem; }
}

/* ══════════════════════════════════════════════════
   View Compatibility Classes
   Used by campaign/contact/offer/review/analytics views
   ══════════════════════════════════════════════════ */

/* ── Dashboard Stack (view wrapper) ── */
.dashboard-stack { display: grid; gap: 20px; }
.dashboard-stack-tight { gap: 16px; }

/* ── Eyebrow / Kicker labels ── */
.eyebrow {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4f46e5;
    margin-bottom: 4px;
}
.card-kicker {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-bottom: 4px;
}

/* ── Ops Banner (hero panels) ── */
.ops-banner {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}
.ops-banner h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}
.ops-banner p {
    color: #64748b;
    font-size: 0.9rem;
    max-width: 680px;
}
.ops-banner-copy { margin-bottom: 16px; }
.ops-banner-actions { margin-top: 14px; }

/* ── Hero Actions ── */
.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.ops-inline-actions { margin-top: 12px; }

/* ── Info Card ── */
.info-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}
.info-card h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

/* ── Section Heading ── */
.section-heading {
    margin-bottom: 16px;
}
.section-heading h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}
.section-heading p {
    color: #64748b;
    font-size: 0.88rem;
}

/* ── Button Ghost ── */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}
.btn-ghost:hover {
    background: #f1f5f9;
    color: #1e293b;
    text-decoration: none;
}

/* ── Stack Form ── */
.stack-form .form-group { margin-bottom: 16px; }
.stack-form label span {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.stack-form label input,
.stack-form label textarea,
.stack-form label select {
    width: 100%;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #1e293b;
    font-size: 0.92rem;
    font-family: inherit;
}
.stack-form label input:focus,
.stack-form label textarea:focus,
.stack-form label select:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}
.stack-form label small {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* ── Workspace Card (list items) ── */
.workspace-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 12px;
    transition: all 0.15s ease;
}
.workspace-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.06);
}
.workspace-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.workspace-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}
.workspace-card-title a { color: #0f172a; }
.workspace-card-title a:hover { color: #4f46e5; }
.workspace-card-body {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
}
.workspace-card-metrics {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.workspace-metric {
    font-size: 0.82rem;
    color: #64748b;
}
.workspace-metric strong {
    color: #0f172a;
    font-weight: 600;
}
.workspace-bullet-list {
    list-style: disc;
    padding-left: 18px;
    font-size: 0.88rem;
    color: #64748b;
}
.workspace-bullet-list-compact { margin-top: 8px; }
.workspace-bullet-list li + li { margin-top: 4px; }

/* ── Entry Form (access login compat) ── */
.entry-form-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}
.entry-form-grid label span {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: #374151;
    margin-bottom: 6px;
}
.entry-form-grid label input {
    width: 100%;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #1e293b;
    font-size: 0.92rem;
}
.entry-form-grid label input:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}
.entry-field-note {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 4px;
}
.entry-login-note {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #475569;
}
.entry-login-note strong { display: block; margin-bottom: 2px; color: #0f172a; }

/* ── Blueprint / Template Cards ── */
.blueprint-row,
.blueprint-picker {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.blueprint-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    min-width: 200px;
    max-width: 280px;
    flex: 1;
    transition: all 0.15s;
}
.blueprint-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.06);
}
.blueprint-card.is-active,
.blueprint-card.selected {
    border-color: #818cf8;
    background: #eef2ff;
}
.blueprint-card strong {
    display: block;
    font-size: 0.92rem;
    color: #0f172a;
    margin-bottom: 4px;
}
.blueprint-card p,
.blueprint-card small {
    font-size: 0.82rem;
    color: #64748b;
    display: block;
}
.blueprint-focus { font-size: 0.78rem; color: #4f46e5; margin-top: 4px; }

/* ── Two Column Grid (sidebar layout in views) ── */
.ops-two-col,
.dashboard-two-col {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 20px;
}
@media (max-width: 900px) {
    .ops-two-col,
    .dashboard-two-col {
        grid-template-columns: 1fr;
    }
}

/* ── Metric Grid (inline stats) ── */
.metric-strip,
.ops-stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.mini-stat-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
}
.mini-stat-card .stat-label,
.mini-stat-card .card-kicker {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 4px;
}
.mini-stat-card .stat-value,
.mini-stat-card strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    display: block;
}
.mini-stat-card small {
    font-size: 0.78rem;
    color: #94a3b8;
}

/* ── Timeline (recent runs/events) ── */
.ops-timeline {
    display: grid;
    gap: 12px;
}
.ops-timeline-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
}
.ops-timeline-item-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

/* ── Detail List ── */
.detail-list {
    display: grid;
    gap: 8px;
}
.detail-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}
.detail-list-item:last-child { border-bottom: none; padding-bottom: 0; }

/* ── Blocking / Warning List ── */
.blocking-list {
    list-style: none;
    display: grid;
    gap: 6px;
}
.blocking-list li {
    padding: 8px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 0.88rem;
    color: #991b1b;
}

/* ── Queue / Report Cards ── */
.ops-report-card,
.queue-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
}
.queue-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

/* ── Misc compat ── */
.entry-state-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}
.entry-state-pill.is-ready { background: #ecfdf5; color: #059669; }
.entry-state-pill.is-blocked { background: #fef2f2; color: #dc2626; }

.filter-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 20px;
}
.filter-form .form-group { margin-bottom: 0; min-width: 150px; }
.filter-form .form-label { font-size: 0.78rem; margin-bottom: 4px; }

.ops-kv-table {
    width: 100%;
    border-collapse: collapse;
}
.ops-kv-table th,
.ops-kv-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.88rem;
}
.ops-kv-table th {
    text-align: left;
    font-weight: 600;
    color: #64748b;
    font-size: 0.78rem;
    text-transform: uppercase;
    background: #f8fafc;
}

.coverage-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
}

.empty-state-strip {
    text-align: center;
    padding: 32px 20px;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ── Print styles ── */
@media print {
    .topbar, .mobile-menu-btn, .btn, .filter-bar, .filter-form { display: none !important; }
    body { background: #fff; }
    .main-content { padding: 0; max-width: none; }
    .panel, .ops-banner, .info-card { break-inside: avoid; border: 1px solid #ccc; box-shadow: none; }
}

/* ── Public guest theme polish ── */
body.guest-guide-shell,
body.public-lead-page {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(214, 117, 54, 0.12), transparent 30%),
        radial-gradient(circle at top left, rgba(12, 126, 107, 0.10), transparent 26%),
        linear-gradient(180deg, #fffaf5 0%, #f7fbf7 52%, #fff6ee 100%);
    color: #16332c;
}

.guest-guide-shell a,
.public-lead-page a {
    color: #ab4b25;
}

.guest-guide-shell a:hover,
.public-lead-page a:hover {
    color: #8f3d1c;
}

.guest-guide-shell .topbar,
.public-lead-page .topbar {
    background: rgba(255, 250, 244, 0.92);
    border-bottom-color: rgba(171, 75, 37, 0.12);
    box-shadow: 0 12px 28px rgba(22, 51, 44, 0.06);
}

.guest-guide-shell .topbar-brand .brand-icon {
    background: linear-gradient(135deg, #ab4b25, #0f766e);
    box-shadow: 0 10px 24px rgba(171, 75, 37, 0.18);
}

.guest-guide-shell .topbar-link.active,
.guest-guide-shell .topbar-link[aria-current="page"] {
    background: rgba(245, 121, 73, 0.12);
    color: #8f3d1c;
}

.guest-guide-shell .topbar-link-emphasis {
    border-color: rgba(171, 75, 37, 0.18);
    background: linear-gradient(180deg, rgba(255, 242, 233, 0.98), rgba(255, 231, 214, 0.96));
    color: #8f3d1c;
}

.guest-guide-shell .topbar-link-emphasis:hover,
.guest-guide-shell .topbar-link-emphasis:focus-visible {
    background: linear-gradient(180deg, rgba(255, 233, 219, 1), rgba(255, 219, 193, 0.98));
    color: #733015;
}

.guest-guide-shell .page-header h1,
.guest-guide-shell .marketing-hero-copy h1,
.guest-guide-shell .marketing-hero-copy h2,
.guest-guide-shell .marketing-final-cta h2,
.guest-guide-shell .marketing-proof-bridge-summary h3,
.guest-guide-shell .marketing-proof-bridge-card h3,
.public-lead-page h1,
.public-lead-page h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    color: #16332c;
}

.guest-guide-shell .marketing-kicker,
.guest-guide-shell .marketing-card-kicker,
.guest-guide-shell .marketing-proof-kicker,
.guest-guide-shell .eyebrow,
.public-lead-page .marketing-kicker,
.public-lead-page .marketing-card-kicker {
    color: #ab4b25;
}

.guest-guide-shell .btn-primary,
.public-lead-page .btn-primary {
    background: linear-gradient(135deg, #ab4b25, #c76639);
    border-color: #9a431f;
    color: #fff;
    box-shadow: 0 12px 24px rgba(171, 75, 37, 0.18);
}

.guest-guide-shell .btn-primary:visited,
.public-lead-page .btn-primary:visited {
    color: #fff;
}

.guest-guide-shell .btn-primary:hover,
.public-lead-page .btn-primary:hover {
    background: linear-gradient(135deg, #95411f, #b75428);
    color: #fff;
}

.guest-guide-shell .btn-secondary,
.public-lead-page .btn-secondary {
    border-color: rgba(22, 51, 44, 0.10);
    background: rgba(255, 255, 255, 0.92);
    color: #16332c;
}

.guest-guide-shell .btn-secondary:hover,
.public-lead-page .btn-secondary:hover {
    background: #fff4ea;
    border-color: rgba(171, 75, 37, 0.20);
}

.guest-guide-shell .btn-ghost,
.public-lead-page .btn-ghost {
    color: #6b4b3b;
}

.guest-guide-shell .btn-ghost:hover,
.public-lead-page .btn-ghost:hover {
    background: rgba(171, 75, 37, 0.08);
    color: #8f3d1c;
}

.login-gate-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.65fr);
    gap: 24px;
    align-items: stretch;
    background:
        linear-gradient(135deg, rgba(255, 250, 245, 0.98), rgba(244, 250, 247, 0.96)),
        #fffdf9;
}

.login-gate-copy {
    display: grid;
    align-content: center;
    gap: 16px;
}

.login-gate-copy h2 {
    max-width: 860px;
    margin: 0;
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 1;
    color: #16332c;
}

.login-gate-copy p {
    max-width: 760px;
    margin: 0;
    color: #5f6f66;
    font-size: 1.03rem;
    line-height: 1.7;
}

.login-gate-status {
    display: grid;
    align-content: end;
    gap: 10px;
    min-height: 260px;
    border: 1px solid rgba(22, 51, 44, 0.10);
    border-radius: 8px;
    padding: 22px;
    background: #16332c;
    color: #f7fff9;
}

.login-gate-status span,
.login-gate-card span {
    color: #ffd7b0;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-gate-status strong {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.8rem;
    line-height: 1.05;
}

.login-gate-status p {
    margin: 0;
    color: rgba(247, 255, 249, 0.82);
    line-height: 1.55;
}

.login-gate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.login-gate-card {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(22, 51, 44, 0.08);
    border-radius: 8px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(22, 51, 44, 0.06);
}

.login-gate-card span {
    color: #ab4b25;
}

.login-gate-card h3 {
    margin: 0;
    color: #16332c;
    font-size: 1.05rem;
}

.login-gate-card p {
    margin: 0;
    color: #66746d;
    line-height: 1.6;
}

.guest-guide-shell .marketing-hero-panel,
.guest-guide-shell .marketing-proof-bridge-card,
.guest-guide-shell .marketing-proof-bridge-summary,
.guest-guide-shell .marketing-page-map-card,
.guest-guide-shell .marketing-start-card,
.guest-guide-shell .marketing-question-card,
.guest-guide-shell .marketing-proof-card,
.public-lead-page .panel,
.public-lead-page .public-lead-sidecard {
    border-color: rgba(22, 51, 44, 0.08);
    box-shadow: 0 18px 40px rgba(22, 51, 44, 0.08);
}

.guest-guide-shell .marketing-hero-panel {
    background:
        radial-gradient(circle at top right, rgba(214, 117, 54, 0.14), transparent 30%),
        linear-gradient(180deg, #fffdf9 0%, #fff5eb 100%);
}

.guest-guide-shell .marketing-proof-card,
.guest-guide-shell .marketing-proof-bridge-summary,
.guest-guide-shell .marketing-proof-bridge-card {
    background: linear-gradient(180deg, #ffffff 0%, #fff8f2 100%);
}

.guest-guide-shell .marketing-hero-route-card,
.guest-guide-shell .marketing-hero-check-item {
    border-color: rgba(171, 75, 37, 0.20);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 235, 0.94));
}

.guest-guide-shell .marketing-step-pill,
.guest-guide-shell .marketing-step-number {
    background: rgba(171, 75, 37, 0.12);
    color: #8f3d1c;
}

.guest-guide-shell .marketing-site-footer-state.is-ready {
    background: rgba(12, 126, 107, 0.12);
    color: #0f766e;
}

.guest-guide-shell .marketing-site-footer-state.is-review {
    background: rgba(171, 75, 37, 0.10);
    color: #8f3d1c;
}

.form-error {
    margin-top: 6px;
    color: #b42318;
    font-size: 0.82rem;
    font-weight: 600;
}

/* ── Public request review / lead pages ── */
.marketing-request-grid,
.public-lead-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
    gap: 20px;
}

.marketing-request-form,
.public-lead-form {
    display: grid;
    gap: 18px;
}

.marketing-request-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.marketing-request-field-span {
    grid-column: 1 / -1;
}

.marketing-request-actions,
.public-lead-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.marketing-request-proof-card h3,
.marketing-request-sidecard h3,
.public-lead-sidecard h2 {
    margin: 10px 0 10px;
    font-size: 1.25rem;
    color: #16332c;
}

.marketing-request-success {
    border: 1px solid rgba(15, 118, 110, 0.18);
}

.marketing-request-success p {
    margin-top: 6px;
}

.marketing-request-success-note {
    color: #5f6d68;
    font-size: 0.85rem;
}

.public-lead-page {
    min-height: 100vh;
}

.public-lead-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 24px 52px;
}

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

.public-lead-backlink {
    font-weight: 800;
    letter-spacing: 0.01em;
}

.public-lead-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.95fr);
    gap: 20px;
    margin-bottom: 20px;
}

.public-lead-hero > * {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(22, 51, 44, 0.08);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(22, 51, 44, 0.08);
}

.public-lead-copy {
    margin-top: 12px;
    max-width: 56ch;
    color: #52615d;
    font-size: 1rem;
    line-height: 1.7;
}

.public-lead-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.public-lead-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(171, 75, 37, 0.08);
    color: #8f3d1c;
    font-size: 0.82rem;
    font-weight: 700;
}

.public-lead-form-panel {
    padding: 24px;
}

.public-lead-footnote {
    color: #5f6d68;
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .login-gate-hero,
    .login-gate-grid {
        grid-template-columns: 1fr;
    }

    .login-gate-status {
        min-height: auto;
    }

    .marketing-request-grid,
    .public-lead-grid,
    .public-lead-hero {
        grid-template-columns: 1fr;
    }

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

    .marketing-request-field-span {
        grid-column: auto;
    }

    .public-lead-shell {
        padding: 20px 16px 36px;
    }

    .public-lead-topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .marketing-request-actions,
    .public-lead-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .marketing-request-actions .btn,
    .public-lead-actions .btn {
        width: 100%;
    }
}


/* ── Public marketing site foundation ── */
.marketing-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.95fr);
    gap: 24px;
    padding: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.marketing-kicker,
.marketing-card-kicker,
.marketing-proof-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4f46e5;
}
.marketing-hero-copy h1,
.marketing-hero-copy h2,
.marketing-final-cta h2 {
    font-size: 2.2rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin: 12px 0 14px;
}
.marketing-hero-lead,
.marketing-final-cta p {
    font-size: 1.02rem;
    color: #475569;
    max-width: 760px;
}
.marketing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}
.marketing-stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 24px;
}
.marketing-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}
.marketing-stat-label {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 8px;
}
.marketing-stat-card strong {
    display: block;
    font-size: 1rem;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 6px;
}
.marketing-stat-card p,
.marketing-feature-card p,
.marketing-proof-panel p,
.marketing-workspace-card p,
.marketing-step-card p,
.marketing-proof-list li,
.marketing-role-card p,
.marketing-centralize-card p {
    color: #475569;
    font-size: 0.94rem;
}
.marketing-proof-card {
    height: 100%;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    padding: 20px;
    background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
}
.marketing-proof-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding-left: 18px;
}
.marketing-proof-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.marketing-hero-proof-card {
    display: grid;
    gap: 16px;
}
.marketing-hero-checklist {
    display: grid;
    gap: 12px;
}
.marketing-hero-check-item {
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 14px 15px;
    background: rgba(255, 255, 255, 0.78);
}
.marketing-hero-check-item strong {
    display: block;
    color: #0f172a;
    font-size: 0.98rem;
    margin-bottom: 5px;
}
.marketing-hero-check-item p {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.55;
}
.marketing-hero-route-grid {
    display: grid;
    gap: 10px;
}
.marketing-hero-route-card {
    display: grid;
    gap: 4px;
    border: 1px solid #c7d2fe;
    border-radius: 14px;
    padding: 14px 15px;
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
    color: #1e293b;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.marketing-hero-route-card:hover,
.marketing-hero-route-card:focus-visible {
    text-decoration: none;
    border-color: #818cf8;
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.12);
    transform: translateY(-1px);
}
.marketing-hero-route-card strong {
    color: #0f172a;
    font-size: 0.95rem;
}
.marketing-hero-route-card span {
    color: #475569;
    font-size: 0.86rem;
    line-height: 1.45;
}
.marketing-hero-proof-note {
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.6;
}
.marketing-proof-bridge-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.95fr);
    gap: 20px;
    margin-top: 16px;
}
.marketing-proof-bridge-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.marketing-proof-bridge-card,
.marketing-proof-bridge-summary {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}
.marketing-proof-bridge-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-top: 4px solid #4f46e5;
}
.marketing-proof-bridge-summary {
    display: grid;
    gap: 14px;
    align-content: start;
    background: linear-gradient(180deg, #ffffff 0%, #f7fffd 100%);
    border-top: 4px solid #0f766e;
}
.marketing-proof-bridge-card h3,
.marketing-proof-bridge-summary h3 {
    font-size: 1.08rem;
    line-height: 1.35;
    color: #0f172a;
    margin: 10px 0 8px;
}
.marketing-proof-bridge-card p,
.marketing-proof-bridge-summary p,
.marketing-proof-bridge-list li {
    color: #475569;
    font-size: 0.94rem;
}
.marketing-proof-bridge-list {
    display: grid;
    gap: 10px;
    padding-left: 18px;
}
.marketing-section > .page-header,
.marketing-section.panel > .panel-header-row,
.marketing-final-cta {
    margin-bottom: 0;
}
.marketing-card-grid,
.marketing-workspace-grid,
.marketing-steps-grid,
.marketing-compare-grid,
.marketing-next-step-grid,
.marketing-timeline-grid,
.marketing-access-grid,
.marketing-rollout-grid,
.marketing-confidence-grid,
.marketing-boundary-grid {
    display: grid;
    gap: 16px;
}
.marketing-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.marketing-card-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.marketing-card-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.marketing-card-grid-1 {
    grid-template-columns: 1fr;
}
.marketing-feature-card,
.marketing-proof-panel,
.marketing-fit-card,
.marketing-role-card,
.marketing-centralize-card,
.marketing-decision-card,
.marketing-faq-card,
.marketing-problem-card,
.marketing-compare-card,
.marketing-next-step-card,
.marketing-timeline-card,
.marketing-access-card,
.marketing-rollout-card,
.marketing-confidence-card,
.marketing-outcome-card,
.marketing-boundary-card,
.marketing-evaluation-card {
    height: 100%;
}
.marketing-feature-card h3,
.marketing-proof-panel h3,
.marketing-fit-card h3,
.marketing-role-card h3,
.marketing-centralize-card h3,
.marketing-decision-card h3,
.marketing-faq-card h3,
.marketing-workspace-card h3,
.marketing-step-card h3,
.marketing-problem-card h3,
.marketing-compare-card h3,
.marketing-next-step-card h3,
.marketing-timeline-card h3,
.marketing-access-card h3,
.marketing-rollout-card h3,
.marketing-confidence-card h3,
.marketing-outcome-card h3,
.marketing-boundary-card h3,
.marketing-evaluation-card h3,
.marketing-checklist-item strong {
    font-size: 1.08rem;
    line-height: 1.35;
    color: #0f172a;
    margin: 10px 0 8px;
}
.marketing-steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.marketing-step-card,
.marketing-workspace-card,
.marketing-fit-card,
.marketing-role-card,
.marketing-centralize-card,
.marketing-decision-card,
.marketing-faq-card,
.marketing-problem-card,
.marketing-compare-card,
.marketing-next-step-card,
.marketing-timeline-card,
.marketing-access-card,
.marketing-rollout-card,
.marketing-confidence-card,
.marketing-outcome-card,
.marketing-boundary-card,
.marketing-evaluation-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
}
.marketing-fit-card,
.marketing-role-card,
.marketing-centralize-card,
.marketing-decision-card,
.marketing-problem-card,
.marketing-next-step-card,
.marketing-access-card,
.marketing-rollout-card,
.marketing-confidence-card,
.marketing-outcome-card,
.marketing-boundary-card,
.marketing-evaluation-card {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}
.marketing-role-card {
    border-top: 4px solid #0f766e;
    background: linear-gradient(180deg, #ffffff 0%, #f7fffd 100%);
}
.marketing-centralize-card {
    border-top: 4px solid #1d4ed8;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.marketing-problem-card {
    border-top: 4px solid #c7d2fe;
}
.marketing-compare-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
}
.marketing-compare-card {
    display: grid;
    gap: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.marketing-compare-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
    background: #eef2ff;
    border-radius: 999px;
    padding: 6px 10px;
}
.marketing-next-step-grid,
.marketing-timeline-grid,
.marketing-access-grid,
.marketing-rollout-grid,
.marketing-confidence-grid,
.marketing-boundary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
}
.marketing-next-step-card,
.marketing-access-card {
    display: grid;
    gap: 12px;
    align-content: start;
}
.marketing-faq-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}
.marketing-faq-card {
    border-left: 4px solid #c7d2fe;
}
.marketing-fit-card p,
.marketing-role-card p,
.marketing-centralize-card p,
.marketing-decision-card p,
.marketing-faq-card p,
.marketing-problem-card p,
.marketing-compare-card p,
.marketing-next-step-card p,
.marketing-timeline-card p,
.marketing-access-card p,
.marketing-rollout-card p,
.marketing-confidence-card p,
.marketing-outcome-card p,
.marketing-boundary-card p,
.marketing-evaluation-card p,
.marketing-checklist-item p {
    color: #475569;
    font-size: 0.94rem;
}
.marketing-choice-next {
    margin: -2px 0 2px;
    color: #0f172a;
    font-size: 0.82rem;
    line-height: 1.55;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}
.marketing-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-weight: 800;
    font-size: 0.92rem;
}
.marketing-workspace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}
.marketing-workspace-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.marketing-timeline-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
}
.marketing-access-card {
    display: grid;
    gap: 12px;
    align-content: start;
    border-top: 4px solid #4f46e5;
}
.marketing-access-card.is-active {
    border-color: #0f766e;
    box-shadow: 0 20px 40px rgba(15, 118, 110, 0.12);
}

.marketing-access-card--primary {
    border-color: rgba(79, 70, 229, 0.24);
    background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
    box-shadow: 0 18px 38px rgba(79, 70, 229, 0.12);
}

.marketing-access-card--secondary {
    border-color: rgba(15, 23, 42, 0.1);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.marketing-access-card--conditional {
    border-color: rgba(14, 116, 144, 0.18);
    background: linear-gradient(180deg, #ecfeff 0%, #ffffff 100%);
}

.marketing-access-card--standard {
    background: #fff;
}
.marketing-rollout-card {
    border-top: 4px solid #4f46e5;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.marketing-confidence-card {
    border-top: 4px solid #14b8a6;
    background: linear-gradient(180deg, #ffffff 0%, #f8fffd 100%);
}
.marketing-outcome-card {
    border-top: 4px solid #0f766e;
    background: linear-gradient(180deg, #ffffff 0%, #f7fffd 100%);
}
.marketing-boundary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
}
.marketing-boundary-card {
    border-top: 4px solid #f59e0b;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
}
.marketing-evaluation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 16px;
}
.marketing-evaluation-card {
    display: grid;
    gap: 16px;
    align-content: start;
}
.marketing-evaluation-card-positive {
    border-top: 4px solid #0f766e;
    background: linear-gradient(180deg, #ffffff 0%, #f7fffd 100%);
}
.marketing-evaluation-card-caution {
    border-top: 4px solid #d97706;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf3 100%);
}
.marketing-checklist {
    display: grid;
    gap: 12px;
}
.marketing-checklist-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.82);
}
.marketing-checklist-item strong {
    display: block;
    margin-bottom: 6px;
}
.marketing-site-footer {
    margin-top: 40px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}
.marketing-site-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 32px 40px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}
.marketing-site-footer-copy {
    max-width: 460px;
}
.marketing-site-footer-copy strong {
    display: block;
    color: #0f172a;
    margin-bottom: 8px;
}
.marketing-site-footer-copy p {
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.6;
}
.marketing-site-footer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}
.marketing-site-footer-helper {
    margin-top: 12px;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.5;
}
.marketing-site-footer-route-order {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}
.marketing-site-footer-route-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.marketing-site-footer-route-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}
.marketing-site-footer-route-card strong {
    display: block;
    color: #0f172a;
    margin-bottom: 4px;
}
.marketing-site-footer-route-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.55;
}
.marketing-site-footer-route-card a {
    display: inline-flex;
    margin-top: 8px;
    color: #4338ca;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}
.marketing-site-footer-route-card a:hover,
.marketing-site-footer-route-card a:focus-visible {
    color: #312e81;
}
.marketing-site-footer-state {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.marketing-site-footer-state.is-ready {
    background: #ecfdf5;
    color: #047857;
}
.marketing-site-footer-state.is-review {
    background: #eef2ff;
    color: #4338ca;
}
.marketing-site-footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 24px;
}
.marketing-site-footer-group {
    display: grid;
    gap: 10px;
}
.marketing-site-footer-group-title {
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.marketing-site-footer-group-links {
    display: grid;
    gap: 10px;
}
.marketing-site-footer-links a {
    color: #1e293b;
    font-weight: 600;
    text-decoration: none;
}
.marketing-site-footer-links a:hover,
.marketing-site-footer-links a:focus-visible {
    color: #4338ca;
}
.marketing-final-cta {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: stretch;
    gap: 24px;
    padding: 24px 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.marketing-final-cta-main {
    display: grid;
    gap: 18px;
}
.marketing-final-cta-rail {
    display: grid;
    gap: 12px;
}
.marketing-final-cta-rail-card {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #dbe4f0;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
.marketing-final-cta-rail-card h3 {
    margin: 8px 0 6px;
    color: #0f172a;
    font-size: 1rem;
}
.marketing-final-cta-rail-card p {
    margin: 0;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.6;
}
.marketing-exit-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.marketing-exit-choice-grid--compact {
    margin-top: 4px;
}

.marketing-exit-choice-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.marketing-exit-choice-card h3,
.marketing-exit-choice-card p {
    margin: 0;
}

.marketing-exit-choice-card p {
    color: #475569;
    line-height: 1.6;
}

.marketing-exit-choice-card--positive {
    border-color: rgba(22, 163, 74, 0.2);
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.98), rgba(255, 255, 255, 0.94));
}

.marketing-exit-choice-card--neutral {
    border-color: rgba(59, 130, 246, 0.16);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.94), rgba(255, 255, 255, 0.94));
}
@media (max-width: 1024px) {
    .marketing-hero-panel,
    .marketing-card-grid,
    .marketing-card-grid-2,
    .marketing-card-grid-3,
    .marketing-steps-grid,
    .marketing-workspace-grid,
    .marketing-compare-grid,
    .marketing-next-step-grid,
    .marketing-timeline-grid,
    .marketing-access-grid,
    .marketing-rollout-grid,
    .marketing-confidence-grid,
    .marketing-boundary-grid,
    .marketing-evaluation-grid,
    .marketing-final-cta,
    .marketing-proof-bridge-grid,
    .marketing-proof-bridge-cards {
        grid-template-columns: 1fr;
    }
    .marketing-final-cta {
        display: grid;
    }
    .marketing-site-footer-inner,
    .marketing-site-footer-links {
        grid-template-columns: 1fr;
    }
    .marketing-site-footer-inner {
        display: grid;
        padding: 24px 24px 32px;
    }
}
@media (max-width: 640px) {
    .marketing-hero-panel,
    .marketing-final-cta,
    .marketing-step-card,
    .marketing-workspace-card,
    .marketing-proof-card,
    .marketing-feature-card,
    .marketing-fit-card,
    .marketing-role-card,
    .marketing-centralize-card,
    .marketing-decision-card,
    .marketing-faq-card,
    .marketing-problem-card,
    .marketing-compare-card,
    .marketing-next-step-card,
    .marketing-timeline-card,
    .marketing-access-card,
    .marketing-rollout-card,
    .marketing-confidence-card,
    .marketing-outcome-card,
    .marketing-boundary-card,
    .marketing-evaluation-card {
        padding: 18px;
    }
    .marketing-hero-copy h1,
    .marketing-hero-copy h2,
    .marketing-final-cta h2 {
        font-size: 1.75rem;
    }
    .marketing-workspace-card {
        flex-direction: column;
        align-items: stretch;
    }
    .marketing-hero-actions {
        flex-direction: column;
    }
    .marketing-decision-strip-card {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .marketing-decision-strip-card .btn {
        width: 100%;
    }
}


.access-guide-shell {
    gap: 18px;
}
.access-guide-hero {
    align-items: stretch;
}
.access-guide-summary {
    min-height: 100%;
}
.access-guide-shell--guide .access-guide-hero {
    border: 1px solid rgba(37, 99, 235, 0.12);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.98));
}
.access-guide-shell--guide .access-guide-summary {
    border: 1px solid rgba(37, 99, 235, 0.16);
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.52), rgba(255, 255, 255, 0.98));
    box-shadow: 0 22px 44px rgba(37, 99, 235, 0.08);
}
.access-guide-card--positive {
    border-color: rgba(15, 118, 110, 0.22);
}
.access-guide-card--caution {
    border-color: rgba(217, 119, 6, 0.24);
}
.access-guide-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.access-guide-check {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    background: #ffffff;
    padding: 18px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}
.access-guide-check--positive {
    border-color: rgba(15, 118, 110, 0.22);
    background: linear-gradient(180deg, rgba(240, 253, 250, 0.96), #ffffff 72%);
}
.access-guide-check--caution {
    border-color: rgba(217, 119, 6, 0.24);
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.98), #ffffff 72%);
}
.access-guide-check--neutral {
    border-color: rgba(59, 130, 246, 0.18);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), #ffffff 72%);
}
.access-guide-check-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.access-guide-check p {
    margin: 0;
    color: #475569;
}
.access-guide-ordered-steps {
    margin-top: 14px;
}
@media (max-width: 900px) {
    .access-guide-check-header {
        flex-direction: column;
        align-items: flex-start;
    }
}



.access-guide-orientation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.access-guide-orientation-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.06);
}

.access-guide-orientation-card h3,
.access-guide-orientation-card p {
    margin: 0;
}

.access-guide-orientation-card p {
    color: #475569;
}

.access-guide-orientation-card--positive {
    border-color: rgba(14, 116, 144, 0.22);
    background: linear-gradient(180deg, rgba(236, 254, 255, 0.92), rgba(255, 255, 255, 0.96));
}

.access-guide-orientation-card--neutral {
    border-color: rgba(59, 130, 246, 0.16);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.96));
}

.access-guide-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 20px;
}

.access-guide-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.78);
    color: var(--text-color, #0f172a);
    font-weight: 600;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.access-guide-tab:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.access-guide-tab.is-active {
    border-color: rgba(37, 99, 235, 0.45);
    background: rgba(219, 234, 254, 0.78);
    color: #1d4ed8;
}

.access-guide-context-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.access-guide-context-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.access-guide-context-card h3,
.access-guide-context-card p {
    margin: 0;
}

.access-guide-context-card p {
    color: #475569;
}

.access-guide-context-card--positive {
    border-color: rgba(14, 116, 144, 0.22);
    background: linear-gradient(180deg, rgba(236, 254, 255, 0.9), rgba(255, 255, 255, 0.96));
}

.access-guide-context-card--neutral {
    border-color: rgba(59, 130, 246, 0.16);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.72), rgba(255, 255, 255, 0.96));
}

.access-guide-skim-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.access-guide-skim-card {
    display: grid;
    gap: 0.75rem;
    padding: 1.1rem 1.15rem;
    border-radius: 1rem;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.access-guide-skim-card h3,
.access-guide-skim-card p {
    margin: 0;
}

.access-guide-skim-card p {
    color: #475569;
}

.access-guide-skim-card--positive {
    border-color: rgba(14, 116, 144, 0.18);
    background: linear-gradient(180deg, rgba(240, 253, 250, 0.96), rgba(255, 255, 255, 0.96));
}

.access-guide-skim-card--neutral {
    border-color: rgba(59, 130, 246, 0.14);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.96));
}

.access-guide-jump-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 2px;
}

.access-guide-jump-card {
    border-radius: 22px;
    padding: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.access-guide-jump-card h3,
.access-guide-jump-card p {
    margin: 0;
}

.access-guide-jump-card p {
    color: #475569;
}

.access-guide-jump-card--positive {
    border-color: rgba(37, 99, 235, 0.24);
    background: linear-gradient(180deg, rgba(224, 231, 255, 0.82), rgba(255, 255, 255, 0.96));
}

.access-guide-jump-card--neutral {
    border-color: rgba(59, 130, 246, 0.16);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.7), rgba(255, 255, 255, 0.96));
}

.access-guide-moves-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.access-guide-move-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.06);
}

.access-guide-move-card h3,
.access-guide-move-card p {
    margin: 0;
}

.access-guide-move-card p {
    color: #475569;
}

.access-guide-move-card--positive {
    border-color: rgba(22, 163, 74, 0.2);
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.96), rgba(255, 255, 255, 0.94));
}

.access-guide-move-card--neutral {
    border-color: rgba(59, 130, 246, 0.16);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.94), rgba(255, 255, 255, 0.94));
}

.access-guide-move-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.access-guide-path-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.access-guide-path-card {
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.access-guide-path-card h3,
.access-guide-path-card p {
    margin: 0;
}

.access-guide-path-card p {
    color: #475569;
}

.access-guide-path-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.92);
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.access-guide-path-card--neutral {
    border-color: rgba(59, 130, 246, 0.16);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.94), rgba(255, 255, 255, 0.94));
}

.access-guide-path-card--positive {
    border-color: rgba(22, 163, 74, 0.2);
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.96), rgba(255, 255, 255, 0.94));
}

.access-guide-path-card--current {
    border-color: rgba(37, 99, 235, 0.28);
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.9), rgba(255, 255, 255, 0.96));
}

.access-guide-path-card.is-current {
    box-shadow: 0 20px 42px rgba(37, 99, 235, 0.12);
}

.access-guide-claim-card {
    border-radius: 20px;
    padding: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.access-guide-first-outcome-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.access-guide-first-outcome-card {
    border-radius: 22px;
    padding: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.access-guide-first-outcome-card h3,
.access-guide-first-outcome-card p {
    margin: 0;
}

.access-guide-first-outcome-card p {
    color: #475569;
}

.access-guide-first-outcome-card--positive {
    border-color: rgba(22, 163, 74, 0.2);
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.96), rgba(255, 255, 255, 0.94));
}

.access-guide-first-outcome-card--neutral {
    border-color: rgba(59, 130, 246, 0.16);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.94), rgba(255, 255, 255, 0.94));
}

.access-guide-claim-card--positive {
    border-color: rgba(22, 163, 74, 0.2);
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.96), rgba(255, 255, 255, 0.94));
}

.access-guide-claim-card--caution {
    border-color: rgba(217, 119, 6, 0.22);
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.94));
}

.access-guide-claim-card--neutral {
    border-color: rgba(59, 130, 246, 0.16);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.94), rgba(255, 255, 255, 0.94));
}

.access-guide-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.access-guide-review-card {
    border-radius: 22px;
    padding: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.access-guide-review-card h3,
.access-guide-review-card p {
    margin: 0;
}

.access-guide-review-card p {
    color: #475569;
}

.access-guide-review-card--positive {
    border-color: rgba(37, 99, 235, 0.24);
    background: linear-gradient(180deg, rgba(224, 231, 255, 0.8), rgba(255, 255, 255, 0.96));
}

.access-guide-review-card--neutral {
    border-color: rgba(99, 102, 241, 0.16);
    background: linear-gradient(180deg, rgba(238, 242, 255, 0.72), rgba(255, 255, 255, 0.96));
}

.access-guide-share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.access-guide-share-card {
    border-radius: 22px;
    padding: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.access-guide-share-card h3,
.access-guide-share-card p {
    margin: 0;
}

.access-guide-share-card p {
    color: #475569;
}

.access-guide-share-card--positive {
    border-color: rgba(14, 116, 144, 0.24);
    background: linear-gradient(180deg, rgba(236, 254, 255, 0.88), rgba(255, 255, 255, 0.96));
}

.access-guide-share-card--neutral {
    border-color: rgba(59, 130, 246, 0.16);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.7), rgba(255, 255, 255, 0.96));
}

.access-guide-card--active {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.12);
}


.delivery-detail-groups {
    margin-top: 12px;
}
.delivery-detail-card .form-help {
    margin-top: 10px;
}
.delivery-detail-card .delivery-detail-list {
    margin-top: 12px;
}

.campaign-evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.campaign-message-meta-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 14px;
}
.campaign-evidence-card {
    height: 100%;
    align-content: start;
}
.campaign-evidence-card-title {
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.45;
}
.campaign-evidence-card-body {
    color: #0f172a;
    font-size: 0.9rem;
}
.campaign-evidence-card-note {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.5;
}

.campaign-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.campaign-review-grid-compact {
    gap: 10px;
}
.campaign-overview-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.95fr);
    gap: 18px;
    align-items: start;
}
.campaign-overview-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.95fr);
    gap: 18px;
    align-items: start;
}
.campaign-overview-hero-copy,
.campaign-overview-hero-side,
.campaign-boundary-cluster {
    display: grid;
    gap: 14px;
}
.campaign-overview-hero-copy h2 {
    margin-bottom: 10px;
}
.campaign-overview-hero-copy p {
    margin: 0;
    max-width: 66ch;
    color: rgba(15, 23, 42, 0.82);
    line-height: 1.65;
}
.campaign-overview-actions {
    justify-content: flex-start;
}
.campaign-overview-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}
.campaign-overview-fact {
    min-height: 100%;
}
.campaign-overview-fact strong,
.campaign-overview-status-card strong {
    color: #0f172a;
    line-height: 1.45;
}
.campaign-overview-fact p,
.campaign-overview-status-card p {
    color: #64748b;
    font-size: 0.82rem;
}
.campaign-overview-status-card {
    gap: 10px;
    border-radius: 14px;
}
.campaign-overview-status-head,
.campaign-overview-entry-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.campaign-overview-entry-grid {
    display: grid;
    gap: 12px;
}
.campaign-overview-entry-card {
    gap: 12px;
}
.campaign-overview-entry-card > p {
    margin: 0;
    color: rgba(15, 23, 42, 0.82);
    line-height: 1.6;
}
.campaign-overview-entry-detail {
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.55;
}
.campaign-overview-entry-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}
.campaign-overview-entry-fact strong {
    color: #0f172a;
    line-height: 1.45;
}
.campaign-proof-strip {
    display: grid;
    gap: 16px;
}
.campaign-proof-strip-rail {
    align-content: start;
    height: 100%;
}
.campaign-proof-strip-rail .campaign-proof-guide-grid {
    grid-template-columns: minmax(0, 1fr);
}
.campaign-proof-strip-rail .campaign-proof-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.campaign-boundary-workspace {
    display: grid;
    gap: 18px;
}
.campaign-boundary-shell {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}
.campaign-boundary-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.campaign-send-result-alert {
    display: grid;
    gap: 14px;
}
.campaign-send-result-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.campaign-send-result-head p {
    margin: 6px 0 0;
    color: rgba(15, 23, 42, 0.82);
    line-height: 1.55;
}
.campaign-send-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}
.campaign-send-result-card strong {
    color: #0f172a;
    line-height: 1.5;
}
.campaign-send-review-workspace {
    display: grid;
    gap: 18px;
}
.campaign-lower-workspace {
    display: grid;
    gap: 14px;
}
.campaign-history-workspace {
    gap: 12px;
}
.campaign-lower-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(252px, 0.9fr);
    gap: 14px;
    align-items: start;
}
.campaign-message-main,
.campaign-message-rail,
.campaign-history-main,
.campaign-history-rail,
.delivery-run-main,
.delivery-run-rail {
    display: grid;
    gap: 10px;
}
.campaign-message-preview-card {
    gap: 12px;
    border-radius: 16px;
    padding: 16px;
    border-color: rgba(79, 70, 229, 0.12);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}
.campaign-message-preview-head {
    display: grid;
    gap: 8px;
}
.campaign-lower-intro-head {
    gap: 6px;
}
.campaign-lower-intro-heading {
    display: grid;
    gap: 4px;
}
.campaign-lower-intro-note,
.campaign-history-intro-note {
    margin: 0;
    color: #475569;
    font-size: 0.84rem;
    line-height: 1.46;
}
.campaign-history-intro-note {
    max-width: 70ch;
}
.campaign-message-preview-heading {
    display: grid;
    gap: 4px;
}
.campaign-message-preview-note {
    margin: 0;
    color: #475569;
    font-size: 0.84rem;
    line-height: 1.55;
    max-width: 64ch;
}
.campaign-message-preview-subject {
    color: #0f172a;
    font-size: 1.02rem;
    line-height: 1.42;
}
.campaign-message-preview-copy {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    padding: 14px 16px;
}
.campaign-message-preview-copy pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    color: #0f172a;
    font: inherit;
    line-height: 1.58;
}
.campaign-lower-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.campaign-lower-summary-grid-dense {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
}
.campaign-lower-summary-card {
    min-height: 100%;
    gap: 5px;
}
.campaign-lower-summary-card-dense {
    padding: 10px 12px;
    gap: 4px;
    border-radius: 10px;
}
.campaign-lower-summary-card strong {
    font-size: 1rem;
    line-height: 1.35;
}
.campaign-lower-summary-card-dense strong {
    font-size: 0.98rem;
    line-height: 1.28;
}
.campaign-lower-summary-card p {
    color: #64748b;
    font-size: 0.81rem;
    line-height: 1.5;
}
.campaign-lower-summary-card-dense p {
    font-size: 0.76rem;
    line-height: 1.4;
}
.campaign-message-guide-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.campaign-guide-strip {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
    gap: 10px;
    align-items: stretch;
}
.campaign-guide-strip-lead,
.campaign-guide-strip-fact {
    min-height: 100%;
}
.campaign-guide-strip-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}
.campaign-guide-strip-lead p,
.campaign-guide-strip-fact p {
    margin: 0;
    color: #475569;
    font-size: 0.87rem;
    line-height: 1.52;
}
.campaign-guide-strip-lead small,
.campaign-guide-strip-fact small {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.46;
}

.campaign-guide-strip-compact {
    grid-template-columns: minmax(0, 1.02fr) minmax(208px, 0.98fr);
    gap: 8px;
}
.campaign-guide-strip-compact .campaign-guide-strip-lead,
.campaign-guide-strip-compact .campaign-guide-strip-fact {
    padding: 10px 12px;
    gap: 5px;
    border-radius: 11px;
}
.campaign-guide-strip-compact .campaign-guide-strip-facts {
    grid-template-columns: repeat(auto-fit, minmax(164px, 1fr));
    gap: 8px;
}
.campaign-guide-strip-compact .campaign-guide-strip-lead p,
.campaign-guide-strip-compact .campaign-guide-strip-fact p {
    font-size: 0.83rem;
    line-height: 1.44;
}
.campaign-guide-strip-compact .campaign-guide-strip-lead small,
.campaign-guide-strip-compact .campaign-guide-strip-fact small {
    font-size: 0.77rem;
    line-height: 1.36;
}
.campaign-message-meta-rail {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 0;
}
.campaign-message-rail .campaign-side-panel-card,
.campaign-history-rail .campaign-side-panel-card,
.campaign-send-action-rail .campaign-side-panel-card {
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}
.campaign-history-rail {
    align-content: start;
}
.campaign-message-rail,
.campaign-history-rail {
    gap: 12px;
}
.delivery-run-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(232px, 0.82fr);
    gap: 14px;
    align-items: start;
}
.campaign-send-review-heading p {
    margin: 8px 0 0;
    max-width: 62ch;
    font-size: 0.89rem;
}
.campaign-send-review-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.92fr);
    gap: 16px;
    align-items: start;
}
.campaign-send-review-main,
.campaign-send-action-rail,
.campaign-review-stack {
    display: grid;
    gap: 12px;
}
.campaign-review-stack-emphasis {
    gap: 12px;
}
.campaign-middle-review-stack {
    gap: 14px;
}
.campaign-middle-review-top {
    display: grid;
    gap: 12px;
}
.campaign-middle-review-guides {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.campaign-middle-guide-card {
    min-height: 100%;
}
.campaign-middle-review-facts {
    margin-top: 0;
}
.campaign-middle-panel {
    display: grid;
    gap: 12px;
    padding: 14px 16px 16px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.84), rgba(255, 255, 255, 0.98));
}
.campaign-middle-panel-head {
    align-items: flex-end;
}
.campaign-middle-panel-head h4 {
    margin: 0;
    color: #0f172a;
    font-size: 0.96rem;
    line-height: 1.45;
}
.campaign-review-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.campaign-review-section-head h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.03rem;
    line-height: 1.4;
}
.campaign-review-section-kicker {
    display: inline-flex;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.campaign-review-section-head-compact {
    gap: 10px;
}
.campaign-review-section-head-compact h3 {
    font-size: 1rem;
    line-height: 1.34;
}
.campaign-send-overview-card {
    gap: 10px;
    border-radius: 14px;
}
.campaign-send-overview-card p {
    color: #334155;
    font-size: 0.92rem;
}
.campaign-review-summary-row {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.98fr);
    gap: 12px;
    align-items: start;
}
.campaign-review-summary-row .campaign-decision-facts {
    margin: 0;
}
.campaign-review-readiness-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.campaign-review-readiness-grid .readiness-card,
.campaign-detail-panel-grid .delivery-detail-card {
    min-height: 100%;
    gap: 10px;
    border-radius: 14px;
}
.campaign-review-readiness-grid .proposal-card-head,
.campaign-detail-panel-grid .proposal-card-head {
    align-items: flex-start;
    gap: 10px;
}
.campaign-review-readiness-grid .form-help,
.campaign-detail-panel-grid .form-help {
    margin: 0;
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.5;
}
.readiness-card-ready {
    border-color: rgba(5, 150, 105, 0.18);
    background: linear-gradient(180deg, rgba(247, 255, 253, 0.96), #ffffff 90%);
}
.readiness-card-attention,
.readiness-card-review {
    border-color: rgba(217, 119, 6, 0.18);
    background: linear-gradient(180deg, rgba(255, 250, 243, 0.96), #ffffff 90%);
}
.readiness-card-blocked {
    border-color: rgba(220, 38, 38, 0.16);
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.94), #ffffff 92%);
}
.campaign-review-facts-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.campaign-detail-panel-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.campaign-detail-fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}
.campaign-detail-fact-card {
    min-height: 100%;
}
.campaign-detail-fact-card strong {
    color: #0f172a;
    font-size: 0.92rem;
    line-height: 1.45;
}
.campaign-detail-fact-list div {
    align-items: start;
}
.campaign-blocker-summary-card {
    display: grid;
    gap: 12px;
    border-radius: 14px;
}
.campaign-middle-panel-blockers .campaign-ready-card,
.campaign-middle-panel-blockers .campaign-blocker-summary-card {
    margin: 0;
}
.campaign-blocker-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.campaign-ready-card {
    border-radius: 14px;
}
.campaign-send-action-rail {
    position: sticky;
    top: 20px;
}
.campaign-send-action-card {
    gap: 14px;
    border-radius: 16px;
    border-color: rgba(79, 70, 229, 0.14);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}
.campaign-side-panel-card {
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
}
.campaign-side-panel-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.campaign-side-panel-section-head strong {
    color: #0f172a;
    font-size: 0.96rem;
    line-height: 1.4;
}
.campaign-side-panel-summary {
    margin: 0;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.55;
}
.campaign-summary-strip {
    display: grid;
    gap: 10px;
}
.campaign-summary-strip-lead,
.campaign-summary-strip-fact-card {
    min-height: 100%;
}
.campaign-summary-strip-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}
.campaign-side-summary-strip {
    gap: 10px;
}
.campaign-side-summary-lead {
    gap: 6px;
}
.campaign-side-summary-facts {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}
.campaign-side-panel-summary-block {
    display: grid;
    gap: 8px;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}
.campaign-side-panel-detail {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.5;
}
.campaign-side-panel-fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}
.campaign-side-panel-fact-card {
    min-height: 100%;
    align-content: start;
}
.campaign-side-panel-fact-card strong {
    color: #0f172a;
    font-size: 0.92rem;
    line-height: 1.45;
}
.campaign-side-panel-fact-card p {
    color: #0f172a;
    font-size: 0.9rem;
}
.campaign-side-panel-fact-card small {
    color: #64748b;
}
.campaign-summary-strip-fact-card p {
    color: #475569;
    font-size: 0.84rem;
    line-height: 1.5;
}
.campaign-summary-strip-fact-card small {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.42;
}
.campaign-send-action-summary-strip .campaign-summary-strip-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.campaign-message-summary-strip .campaign-summary-strip-facts,
.campaign-history-summary-strip .campaign-summary-strip-facts {
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}

.campaign-history-guide-facts {
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
}
.history-guide-card {
    gap: 5px;
}
.campaign-history-guide-facts .history-guide-card {
    padding: 10px 12px;
    border-radius: 11px;
}
.history-guide-lead p,
.history-guide-fact p {
    font-size: 0.82rem;
    line-height: 1.42;
}
.history-guide-lead small,
.history-guide-fact small {
    font-size: 0.76rem;
    line-height: 1.34;
}
.campaign-side-panel-guide-grid,
.delivery-run-rail-grid {
    display: grid;
    gap: 10px;
}
.campaign-side-panel-guide-card {
    min-height: 100%;
}
.delivery-run-follow-up-strip {
    grid-template-columns: minmax(0, 1fr);
}
.delivery-run-follow-up-summary-lead {
    gap: 6px;
}
.delivery-run-follow-up-fact-grid,
.delivery-run-follow-up-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.delivery-run-follow-up-strip-compact {
    gap: 8px;
}
.delivery-run-follow-up-strip-compact .campaign-summary-strip-lead,
.delivery-run-follow-up-strip-compact .campaign-summary-strip-fact-card {
    padding: 10px 12px;
    gap: 5px;
    border-radius: 11px;
}
.delivery-run-follow-up-strip-compact .campaign-side-panel-summary {
    font-size: 0.83rem;
    line-height: 1.44;
}
.delivery-run-follow-up-strip-compact .campaign-side-panel-detail {
    font-size: 0.76rem;
    line-height: 1.34;
}
.delivery-run-follow-up-strip-compact .delivery-run-follow-up-fact-grid {
    gap: 8px;
}
.delivery-run-follow-up-fact p {
    font-size: 0.84rem;
    line-height: 1.5;
}

.delivery-run-follow-up-fact-compact p {
    font-size: 0.82rem;
    line-height: 1.42;
}
.delivery-run-follow-up-fact-compact small {
    font-size: 0.75rem;
    line-height: 1.32;
}
.campaign-side-panel-footer {
    display: grid;
    gap: 10px;
}
.campaign-side-panel-note {
    border-radius: 12px;
}
.delivery-run-rail-shell {
    gap: 12px;
}
.campaign-send-action-intro,
.campaign-side-rail-intro-card {
    display: grid;
    gap: 6px;
}
.campaign-send-action-intro p,
.campaign-side-rail-intro-card p {
    margin: 0;
    color: #475569;
    font-size: 0.86rem;
    line-height: 1.55;
}
.campaign-side-rail-intro-card strong {
    color: #0f172a;
    font-size: 0.96rem;
    line-height: 1.4;
}
.campaign-send-action-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.campaign-send-action-head strong {
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.4;
}
.campaign-send-action-head p {
    margin: 6px 0 0;
    color: #475569;
}
.campaign-send-action-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.campaign-send-action-fact-card {
    min-height: 100%;
}
.campaign-send-action-fact-card strong {
    color: #0f172a;
    font-size: 0.94rem;
    line-height: 1.45;
}
.campaign-send-control-note {
    border-radius: 12px;
}
.campaign-send-control-note p {
    color: #475569;
}
.campaign-send-action-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}
.campaign-send-action-form {
    display: grid;
    gap: 0;
}
.campaign-send-action-form .btn {
    width: 100%;
    justify-content: center;
}
.campaign-proof-guide-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.history-guide-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.campaign-proof-guide-card {
    min-height: 100%;
}
.campaign-review-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    display: grid;
    gap: 8px;
}
.campaign-review-card-compact {
    padding: 12px 14px;
    gap: 6px;
}
.campaign-review-card-soft {
    background: rgba(255, 255, 255, 0.86);
}
.campaign-review-metric-card-soft {
    background: rgba(255, 255, 255, 0.9);
}
.campaign-review-card-info {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.campaign-review-card-warning,
.campaign-review-card-attention {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf3 100%);
}
.campaign-review-card-success {
    background: linear-gradient(180deg, #ffffff 0%, #f7fffd 100%);
}
.campaign-review-card-blocked {
    border-color: rgba(220, 38, 38, 0.18);
    box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.08);
}
.campaign-review-card-attention,
.campaign-review-card-warning {
    border-color: rgba(217, 119, 6, 0.2);
    box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.08);
}
.campaign-review-card p,
.delivery-run-copy p {
    margin: 0;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.55;
}
.campaign-review-card small,
.delivery-run-meta small {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.5;
}
.campaign-review-kicker,
.campaign-decision-fact-label,
.campaign-review-metric-card span {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}
.campaign-decision-facts {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.campaign-decision-fact strong {
    color: #0f172a;
    font-size: 0.94rem;
    line-height: 1.45;
}
.campaign-decision-fact p {
    color: #64748b;
    font-size: 0.82rem;
}
.readiness-group-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.delivery-detail-groups,
.readiness-group-grid {
    margin-top: 12px;
}
.delivery-run-list {
    display: grid;
    gap: 12px;
}
.delivery-run-item {
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    padding: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    display: grid;
    gap: 10px;
}
.delivery-run-item-empty {
    padding: 0;
    border: 0;
    background: transparent;
}
.delivery-run-empty-state {
    padding: 18px;
}
.delivery-run-empty-state-compact {
    padding: 14px 16px;
    gap: 5px;
}
.delivery-run-empty-state-head {
    display: grid;
    gap: 2px;
}
.delivery-run-empty-state-copy {
    margin: 0;
    color: #475569;
    font-size: 0.84rem;
    line-height: 1.44;
}
.delivery-run-empty-state-note {
    display: block;
    color: #64748b;
    font-size: 0.76rem;
    line-height: 1.34;
}
.delivery-run-item-failed {
    border-color: rgba(220, 38, 38, 0.18);
    box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.08);
}
.delivery-run-item-completed {
    border-color: rgba(5, 150, 105, 0.18);
    box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.08);
}
.delivery-run-item-partial,
.delivery-run-item-review {
    border-color: rgba(79, 70, 229, 0.14);
    box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.06);
}
.delivery-run-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.delivery-run-header-facts {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.delivery-run-header-fact-card {
    min-height: 100%;
    gap: 5px;
}
.delivery-run-header-fact-card strong {
    font-size: 0.94rem;
    line-height: 1.4;
}
.delivery-run-header-fact-card p {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.45;
}
.delivery-run-header-facts-dense {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
}
.delivery-run-header-fact-card-dense {
    padding: 10px 12px;
    gap: 4px;
}
.delivery-run-header-fact-card-dense strong {
    font-size: 0.92rem;
}
.delivery-run-header-fact-card-dense p {
    font-size: 0.76rem;
    line-height: 1.38;
}
.delivery-run-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.delivery-run-copy strong {
    color: #0f172a;
    font-size: 0.97rem;
    line-height: 1.34;
}
.delivery-run-meta {
    display: grid;
    gap: 6px;
    justify-items: end;
}
.campaign-review-metric-grid,
.delivery-run-counts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}
.delivery-run-counts-compact {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.delivery-run-counts-dense {
    gap: 8px;
}
.campaign-review-metric-card,
.delivery-run-count-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    display: grid;
    gap: 6px;
    align-content: start;
}
.campaign-review-metric-card-compact {
    padding: 10px 12px;
    gap: 5px;
}
.campaign-review-metric-card strong,
.delivery-run-count-card strong {
    color: #0f172a;
    font-size: 1.1rem;
    line-height: 1.15;
}
.campaign-review-metric-card-compact strong {
    font-size: 1rem;
    line-height: 1.2;
}
.delivery-run-count-card p {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.45;
}
.delivery-run-count-card-dense {
    padding: 10px 12px;
    gap: 4px;
}
.delivery-run-count-card-dense strong {
    font-size: 0.98rem;
    line-height: 1.1;
}
.delivery-run-count-card-dense p {
    font-size: 0.75rem;
    line-height: 1.38;
}
.delivery-run-guidance-card-primary {
    border-color: rgba(79, 70, 229, 0.14);
    box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.05);
}
.campaign-review-metric-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.5;
}
.campaign-review-metric-card-compact p {
    font-size: 0.78rem;
    line-height: 1.42;
}
.campaign-review-metric-card-info {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.campaign-review-metric-card-attention,
.campaign-review-metric-card-warning {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf3 100%);
    border-color: rgba(217, 119, 6, 0.18);
}
.campaign-review-metric-card-success {
    background: linear-gradient(180deg, #ffffff 0%, #f7fffd 100%);
    border-color: rgba(5, 150, 105, 0.16);
}
.campaign-proof-metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.marketing-proof-launch-shell {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}
.marketing-proof-launch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.marketing-proof-launch-cards {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}
.marketing-proof-launch-card {
    align-items: start;
}
.marketing-proof-launch-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.marketing-proof-launch-meta div {
    display: grid;
    gap: 4px;
}
.marketing-proof-launch-meta strong {
    color: #0f172a;
    font-size: 0.78rem;
    line-height: 1.35;
}
.marketing-proof-launch-meta span {
    color: #475569;
    font-size: 0.8rem;
    line-height: 1.45;
}
.campaign-proof-metric-card,
.delivery-mini-stat-card {
    min-height: 100%;
}
.campaign-proof-metric-title {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
}
.campaign-proof-metric-note {
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.5;
}
.delivery-mini-stat-grid {
    margin-top: 12px;
}
.status-chip-attention {
    background: #fffbeb;
    color: #b45309;
}
.status-chip-review {
    background: #eef2ff;
    color: #4338ca;
}
@media (max-width: 980px) {
    .campaign-overview-shell,
    .campaign-overview-hero,
    .campaign-boundary-shell,
    .campaign-send-review-shell,
    .campaign-lower-shell,
    .delivery-run-shell,
    .campaign-review-summary-row,
    .campaign-guide-strip,
    .campaign-summary-strip {
        grid-template-columns: minmax(0, 1fr);
    }
    .campaign-lower-summary-grid-dense,
    .delivery-run-header-facts-dense,
    .delivery-run-counts-dense {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .campaign-proof-strip-rail .campaign-proof-guide-grid,
    .campaign-proof-strip-rail .campaign-proof-metric-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .marketing-proof-launch-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .campaign-send-action-rail {
        position: static;
    }
    .campaign-middle-panel {
        padding: 14px;
    }
}
@media (max-width: 640px) {
    .delivery-run-meta {
        justify-items: start;
    }
    .campaign-send-result-head,
    .campaign-send-action-head,
    .campaign-review-section-head,
    .campaign-overview-status-head,
    .campaign-overview-entry-head,
    .campaign-side-panel-section-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .campaign-overview-entry-facts {
        grid-template-columns: minmax(0, 1fr);
    }
    .campaign-send-action-facts,
    .campaign-guide-strip-facts,
    .delivery-run-follow-up-facts,
    .campaign-lower-summary-grid-dense,
    .delivery-run-header-facts-dense,
    .delivery-run-counts-dense {
        grid-template-columns: minmax(0, 1fr);
    }
    .marketing-proof-launch-meta {
        grid-template-columns: minmax(0, 1fr);
    }
}

.marketing-question-panel {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.035), rgba(17, 24, 39, 0));
}

.marketing-question-grid,
.access-guide-answer-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.marketing-question-support-grid {
    margin-top: 1rem;
}

.marketing-question-card,
.access-guide-answer-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 20px;
    padding: 1.15rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.marketing-question-card--positive,
.access-guide-answer-card--positive {
    border-color: rgba(5, 150, 105, 0.3);
    box-shadow: 0 20px 42px rgba(5, 150, 105, 0.08);
}

.marketing-question-card--neutral,
.access-guide-answer-card--neutral {
    border-color: rgba(59, 130, 246, 0.16);
}

.marketing-question-card--caution,
.access-guide-answer-card--caution {
    border-color: rgba(245, 158, 11, 0.28);
    box-shadow: 0 18px 40px rgba(245, 158, 11, 0.07);
}

.marketing-question-card h3,
.access-guide-answer-card h3 {
    margin: 0;
    font-size: 1.02rem;
}

.marketing-question-card p,
.access-guide-answer-card p {
    margin: 0;
    color: var(--text-muted);
}

.marketing-problem-card--calm {
    border-style: solid;
    border-color: rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.82);
}


.marketing-contract-packet-grid {
    align-items: start;
}

.marketing-contract-packet-card {
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.marketing-copy-block {
    margin: 0;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #475569;
    font-family: "Cascadia Code", "Fira Code", monospace;
    font-size: 0.82rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}

.marketing-copy-block code {
    font-family: inherit;
}

.marketing-proof-export-grid {
    align-items: start;
}

.marketing-proof-export-card {
    gap: 0.85rem;
}

.marketing-proof-export-card .agent-audit-meta {
    justify-content: flex-start;
}


.marketing-quick-check-grid {
    align-items: start;
}

.marketing-quick-check-card {
    display: grid;
    gap: 0.85rem;
}

.marketing-quick-check-card .agent-audit-meta {
    justify-content: flex-start;
}

/* Pass 364 — POS coupon scan card */
.coupon-scan-card {
    overflow: hidden;
}

.coupon-scan-card-ready {
    border-color: rgba(5, 150, 105, 0.22);
}

.coupon-scan-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1.05fr);
    gap: 1.15rem;
    align-items: stretch;
}

.coupon-scan-visual {
    display: grid;
    gap: 0.75rem;
    align-content: center;
    justify-items: center;
    padding: 1.15rem;
    border: 1px dashed rgba(15, 23, 42, 0.22);
    border-radius: 18px;
    background: #fff;
}

.coupon-barcode-svg {
    display: block;
    width: 100%;
    min-height: 76px;
    max-height: 100px;
}

.coupon-scan-code {
    font-family: "Cascadia Code", "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #111827;
    text-align: center;
    word-break: break-word;
}

.coupon-scan-type {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-align: center;
}

.coupon-scan-instructions {
    display: grid;
    gap: 0.9rem;
    align-content: center;
}

.coupon-scan-instructions p {
    margin: 0;
    color: var(--text-muted);
}

@media (max-width: 760px) {
    .coupon-scan-layout {
        grid-template-columns: 1fr;
    }
}

@media print {
    .coupon-scan-card {
        break-inside: avoid;
    }

    .coupon-scan-card .section-heading,
    .coupon-scan-card .form-actions {
        display: none;
    }

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

.status-chip-ready {
    background: rgba(5, 150, 105, 0.12);
    color: #047857;
    border-color: rgba(5, 150, 105, 0.24);
}

/* ── Marketing command center upgrade (Pass 381) ── */
.marketing-command-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
    gap: 22px;
    align-items: stretch;
    padding: 30px;
    border-radius: 24px;
    border-color: rgba(79, 70, 229, 0.16);
    background:
        radial-gradient(circle at top left, rgba(79, 70, 229, 0.12), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 58%, #eef2ff 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}
.marketing-command-hero-main {
    display: grid;
    align-content: center;
    gap: 14px;
    min-width: 0;
}
.marketing-command-kicker,
.marketing-priority-card > span,
.marketing-command-metric-card > span,
.marketing-rhythm-card > span,
.marketing-workspace-card > span {
    color: #4f46e5;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.marketing-command-hero h2 {
    max-width: 12ch;
    margin: 0;
    color: #0f172a;
    font-size: clamp(2rem, 5vw, 4.2rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}
.marketing-command-hero p {
    max-width: 62ch;
    color: #475569;
    font-size: 1rem;
}
.marketing-command-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}
.marketing-command-status-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 22px;
    border: 1px solid rgba(79, 70, 229, 0.18);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}
.marketing-command-status-card strong {
    color: #0f172a;
    font-size: 1.05rem;
    line-height: 1.25;
}
.marketing-command-status-card p {
    font-size: 0.88rem;
}
.marketing-command-status-card .btn {
    align-self: flex-start;
    margin-top: auto;
}
.marketing-command-priorities,
.marketing-command-metrics,
.marketing-launch-grid,
.marketing-rhythm-grid,
.marketing-workspace-grid,
.manager-shift-grid,
.manager-outcome-grid,
.manager-language-grid {
    display: grid;
    gap: 16px;
}
.marketing-command-priorities {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 20px;
}
.marketing-priority-card,
.marketing-launch-card,
.marketing-command-metric-card,
.marketing-workspace-card,
.manager-shift-card,
.manager-outcome-card,
.manager-language-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100%;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    color: #1e293b;
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
}
.marketing-priority-card:hover,
.marketing-launch-card:hover,
.marketing-command-metric-card:hover,
.marketing-workspace-card:hover,
.manager-shift-card:hover,
.manager-outcome-card:hover {
    border-color: rgba(79, 70, 229, 0.34);
    box-shadow: 0 18px 44px rgba(79, 70, 229, 0.1);
    text-decoration: none;
    transform: translateY(-1px);
}
.marketing-priority-card--urgent {
    border-color: rgba(220, 38, 38, 0.22);
    background: linear-gradient(180deg, #fff 0%, #fff7ed 100%);
}
.marketing-priority-card--ready {
    border-color: rgba(5, 150, 105, 0.22);
    background: linear-gradient(180deg, #fff 0%, #f0fdf4 100%);
}
.marketing-priority-card h3,
.marketing-rhythm-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.06rem;
}
.marketing-priority-card p,
.marketing-rhythm-card p,
.marketing-workspace-card p,
.marketing-launch-card span,
.manager-shift-card p,
.manager-outcome-card span {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
}
.marketing-priority-card .btn {
    align-self: flex-start;
    margin-top: auto;
}
.marketing-command-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 20px;
}
.marketing-command-metric-card strong {
    color: #0f172a;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.03em;
}
.marketing-command-metric-card small {
    color: #64748b;
}
.marketing-command-metric-card em,
.marketing-launch-card em,
.manager-shift-card em,
.manager-outcome-card em {
    margin-top: auto;
    color: #4f46e5;
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 800;
}
.marketing-launch-grid,
.marketing-rhythm-grid,
.marketing-workspace-grid,
.manager-language-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.marketing-launch-card strong,
.marketing-workspace-card strong,
.manager-outcome-card strong,
.manager-language-card strong {
    color: #0f172a;
    font-size: 1rem;
}
.manager-shift-panel,
.manager-outcomes-panel,
.manager-language-panel {
    border-color: rgba(14, 165, 233, 0.16);
}
.manager-shift-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.manager-shift-card {
    min-height: 210px;
    border-color: rgba(14, 165, 233, 0.2);
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.manager-shift-card span,
.manager-outcome-card em,
.manager-language-card span {
    color: #0369a1;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.manager-shift-card strong {
    color: #0f172a;
    font-size: 1.12rem;
    line-height: 1.25;
}
.manager-outcome-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.manager-outcome-card {
    min-height: 170px;
    border-color: rgba(5, 150, 105, 0.18);
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}
.manager-language-card {
    border-color: rgba(148, 163, 184, 0.22);
    background: #f8fafc;
    box-shadow: none;
}
.manager-language-card strong {
    line-height: 1.35;
}
.marketing-rhythm-card {
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.marketing-command-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.marketing-command-panel-stretch {
    min-height: 100%;
}
.marketing-pulse-list,
.marketing-activity-feed {
    display: grid;
    gap: 12px;
}
.marketing-pulse-item,
.marketing-activity-item {
    display: grid;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}
.marketing-pulse-item:last-child,
.marketing-activity-item:last-child {
    border-bottom: 0;
}
.marketing-pulse-item > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.marketing-pulse-item strong,
.marketing-activity-item strong {
    color: #0f172a;
}
.marketing-pulse-item span {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}
.marketing-pulse-item small,
.marketing-activity-item p,
.marketing-activity-item time {
    color: #64748b;
    font-size: 0.86rem;
}
.marketing-activity-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
}
.marketing-activity-item > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 800;
}
.marketing-empty-state {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
}
.marketing-empty-state strong {
    color: #0f172a;
}
.marketing-empty-state p {
    color: #64748b;
}
.marketing-empty-state .btn {
    justify-self: start;
}
.marketing-empty-state-inline {
    display: block;
}
.marketing-workspace-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px) {
    .marketing-command-hero,
    .marketing-command-two-col,
    .marketing-command-priorities,
    .marketing-command-metrics,
    .marketing-launch-grid,
    .marketing-rhythm-grid,
    .marketing-workspace-grid,
    .manager-shift-grid,
    .manager-outcome-grid,
    .manager-language-grid {
        grid-template-columns: 1fr 1fr;
    }
    .marketing-command-hero-main {
        grid-column: 1 / -1;
    }
}
@media (max-width: 640px) {
    .marketing-command-hero,
    .marketing-command-two-col,
    .marketing-command-priorities,
    .marketing-command-metrics,
    .marketing-launch-grid,
    .marketing-rhythm-grid,
    .marketing-workspace-grid,
    .manager-shift-grid,
    .manager-outcome-grid,
    .manager-language-grid {
        grid-template-columns: 1fr;
    }
    .marketing-command-hero {
        padding: 22px;
        border-radius: 20px;
    }
    .marketing-command-hero h2 {
        max-width: 13ch;
    }
    .marketing-pulse-item > div,
    .marketing-activity-item {
        grid-template-columns: 1fr;
    }
    .marketing-pulse-item span,
    .marketing-activity-item time {
        white-space: normal;
    }
}

/* ── Campaign control board upgrade (Pass 382) ── */
.campaign-control-board {
    gap: 22px;
}

.campaign-control-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
    gap: 22px;
    align-items: stretch;
    padding: 30px;
    border: 1px solid rgba(79, 70, 229, 0.16);
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(79, 70, 229, 0.13), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 58%, #eef2ff 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.campaign-control-hero-main {
    display: grid;
    align-content: center;
    gap: 14px;
    min-width: 0;
}

.campaign-control-hero h2 {
    max-width: 14ch;
    margin: 0;
    color: #0f172a;
    font-size: clamp(2rem, 4.8vw, 3.9rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.campaign-control-hero p,
.campaign-control-focus p,
.campaign-proof-card p {
    margin: 0;
    color: #475569;
}

.campaign-control-focus {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 22px;
    border: 1px solid rgba(79, 70, 229, 0.18);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.campaign-control-focus-urgent {
    border-color: rgba(220, 38, 38, 0.22);
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
}

.campaign-control-focus span,
.campaign-template-card span {
    color: #4f46e5;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.campaign-control-focus strong {
    color: #0f172a;
    font-size: 1.2rem;
    line-height: 1.18;
}

.campaign-control-focus .btn {
    align-self: flex-start;
    margin-top: auto;
}

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

.campaign-action-card p {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
}

.campaign-control-metrics {
    margin-bottom: 0;
}

.campaign-control-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.72fr);
    gap: 20px;
    align-items: start;
}

.campaign-control-main-panel,
.campaign-control-rail {
    min-width: 0;
}

.campaign-control-rail {
    display: grid;
    gap: 18px;
}

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

.campaign-status-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.campaign-status-tab {
    display: grid;
    gap: 4px;
    padding: 13px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    color: #1e293b;
    text-decoration: none;
}

.campaign-status-tab:hover,
.campaign-status-tab.active {
    border-color: rgba(79, 70, 229, 0.34);
    background: #eef2ff;
    color: #3730a3;
    text-decoration: none;
}

.campaign-status-tab span {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.campaign-status-tab strong {
    color: inherit;
    font-size: 1.35rem;
    line-height: 1;
}

.campaign-filter-toolbar {
    margin-bottom: 18px;
}

.campaign-board-list {
    display: grid;
    gap: 14px;
}

.campaign-board-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
    gap: 18px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.045);
}

.campaign-board-card-draft {
    border-left: 4px solid #f59e0b;
}

.campaign-board-card-scheduled,
.campaign-board-card-sending {
    border-left: 4px solid #4f46e5;
}

.campaign-board-card-completed {
    border-left: 4px solid #059669;
}

.campaign-board-card-paused {
    border-left: 4px solid #64748b;
}

.campaign-board-card-main,
.campaign-board-card-side {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.campaign-board-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.12rem;
    line-height: 1.24;
}

.campaign-board-card h3 a {
    color: inherit;
}

.campaign-board-card h3 a:hover {
    color: #4f46e5;
    text-decoration: none;
}

.campaign-board-card-main > p,
.campaign-board-time {
    color: #64748b;
    font-size: 0.9rem;
}

.campaign-board-next {
    display: grid;
    gap: 3px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
}

.campaign-board-next strong {
    color: #0f172a;
}

.campaign-board-next span {
    color: #475569;
    font-size: 0.9rem;
}

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

.campaign-mini-metrics div,
.campaign-rail-facts div {
    display: grid;
    gap: 3px;
    padding: 11px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.campaign-mini-metrics strong,
.campaign-rail-facts strong {
    color: #0f172a;
    font-size: 1.02rem;
    line-height: 1;
}

.campaign-mini-metrics span,
.campaign-rail-facts span {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

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

.campaign-rail-facts-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
}

.campaign-compact-list {
    display: grid;
    gap: 8px;
    margin: 14px 0 0;
    padding-left: 18px;
    color: #92400e;
    font-size: 0.9rem;
}

.campaign-template-stack {
    display: grid;
    gap: 10px;
}

.campaign-template-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    color: #1e293b;
    text-decoration: none;
}

.campaign-template-card:hover {
    border-color: rgba(79, 70, 229, 0.34);
    background: #f8fafc;
    text-decoration: none;
}

.campaign-template-card strong {
    color: #0f172a;
}

.campaign-empty-state {
    margin-top: 4px;
}

@media (max-width: 980px) {
    .campaign-control-hero,
    .campaign-control-layout,
    .campaign-board-card {
        grid-template-columns: 1fr;
    }

    .campaign-control-card-grid,
    .campaign-control-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .campaign-control-hero {
        padding: 22px;
        border-radius: 20px;
    }

    .campaign-control-hero h2 {
        max-width: 13ch;
    }

    .campaign-control-card-grid,
    .campaign-control-metrics,
    .campaign-status-tabs,
    .campaign-rail-facts,
    .campaign-mini-metrics {
        grid-template-columns: 1fr;
    }
}

/* ── Offer Launch Builder (pass 383) ── */
.offer-launch-builder {
    gap: 22px;
}

.offer-launch-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
    gap: 20px;
    align-items: stretch;
    padding: 28px;
    border: 1px solid rgba(79, 70, 229, 0.16);
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 52%, #eef2ff 100%);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.07);
}

.offer-launch-hero-copy {
    display: grid;
    align-content: center;
    gap: 8px;
}

.offer-launch-hero h2 {
    margin: 0;
    max-width: 720px;
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.offer-launch-hero p {
    max-width: 720px;
    color: #475569;
    font-size: 1rem;
    line-height: 1.65;
}

.offer-launch-hero-panel {
    display: grid;
    align-content: center;
    gap: 7px;
    padding: 20px;
    border: 1px solid rgba(79, 70, 229, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.055);
}

.offer-launch-hero-panel strong {
    color: #0f172a;
    font-size: 1.12rem;
}

.offer-launch-hero-panel span:not(.card-kicker) {
    color: #64748b;
    font-size: 0.9rem;
}

.offer-launch-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.offer-launch-step {
    display: grid;
    gap: 5px;
    min-height: 142px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}

.offer-launch-step-ready {
    border-color: rgba(5, 150, 105, 0.28);
    background: linear-gradient(180deg, #fff 0%, #f0fdf4 100%);
}

.offer-launch-step-attention {
    border-color: rgba(245, 158, 11, 0.32);
    background: linear-gradient(180deg, #fff 0%, #fffbeb 100%);
}

.offer-launch-step span {
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.offer-launch-step strong {
    color: #0f172a;
    font-size: 0.96rem;
    line-height: 1.25;
}

.offer-launch-step p {
    margin: 0;
    color: #475569;
    font-size: 0.86rem;
    line-height: 1.45;
}

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

.offer-launch-main,
.offer-launch-side {
    min-width: 0;
}

.offer-launch-card,
.offer-launch-preview,
.offer-template-panel {
    border-radius: 20px;
}

.offer-launch-form {
    display: grid;
    gap: 18px;
}

.offer-form-section {
    display: grid;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid #eef2f7;
}

.section-heading-compact {
    margin-bottom: 0;
}

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

.offer-launch-actions {
    position: sticky;
    bottom: 12px;
    z-index: 3;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.075);
}

.offer-launch-preview h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1.2rem;
}

.offer-launch-preview p {
    color: #475569;
    line-height: 1.55;
}

.offer-template-panel .campaign-template-card.selected {
    border-color: rgba(79, 70, 229, 0.45);
    background: #eef2ff;
}

.offer-template-panel .campaign-template-card span:last-child {
    color: #475569;
    font-size: 0.86rem;
    line-height: 1.45;
}

@media (max-width: 1040px) {
    .offer-launch-hero,
    .offer-launch-layout {
        grid-template-columns: 1fr;
    }

    .offer-launch-progress {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .offer-launch-hero {
        padding: 22px;
        border-radius: 20px;
    }

    .offer-launch-hero h2 {
        max-width: 13ch;
    }

    .offer-launch-progress,
    .field-grid-3,
    .offer-launch-preview .campaign-rail-facts-compact {
        grid-template-columns: 1fr;
    }

    .offer-launch-actions {
        position: static;
    }
}

/* Pass 384 — Offer Run Console */
.offer-run-console {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.offer-run-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr);
    gap: 1rem;
    align-items: stretch;
    padding: clamp(1.1rem, 2vw, 1.65rem);
    border: 1px solid rgba(99, 102, 241, .18);
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 10%, rgba(99, 102, 241, .16), transparent 32%),
        linear-gradient(135deg, rgba(15, 23, 42, .98), rgba(31, 41, 55, .94));
    color: #f8fafc;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
}

.offer-run-hero .eyebrow,
.offer-run-hero .card-kicker {
    color: rgba(226, 232, 240, .78);
}

.offer-run-hero h2 {
    margin: .35rem 0 .55rem;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: .96;
    letter-spacing: -.06em;
}

.offer-run-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(241, 245, 249, .84);
    font-size: 1rem;
    line-height: 1.7;
}

.offer-run-meta,
.offer-run-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    align-items: center;
    margin-top: 1rem;
}

.offer-run-decision {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 24px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(14px);
}

.offer-run-decision strong {
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.45;
}

.offer-run-decision-ready {
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .22);
}

.offer-run-decision-attention {
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .22);
}

.offer-run-decision-danger {
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, .24);
}

.offer-readiness-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem;
}

.offer-readiness-card {
    min-height: 148px;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .08);
}

.offer-readiness-card > span {
    display: block;
    color: #64748b;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.offer-readiness-card strong {
    display: block;
    margin-top: .55rem;
    color: #0f172a;
    font-size: 1.18rem;
    line-height: 1.25;
}

.offer-readiness-card p {
    margin: .55rem 0 0;
    color: #475569;
    font-size: .92rem;
    line-height: 1.55;
}

.offer-readiness-card-ready {
    border-color: rgba(16, 185, 129, .32);
}

.offer-readiness-card-attention {
    border-color: rgba(245, 158, 11, .34);
}

.offer-readiness-card-neutral {
    border-color: rgba(99, 102, 241, .24);
}

.offer-run-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    gap: 1rem;
    align-items: start;
}

.guest-offer-card,
.offer-run-actions {
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 22px 52px rgba(15, 23, 42, .08);
}

.guest-offer-card {
    padding: clamp(1.1rem, 2vw, 1.55rem);
}

.guest-offer-promise {
    margin: .75rem 0 1rem;
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.65;
}

.guest-offer-code {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 22px;
    border: 1px dashed rgba(79, 70, 229, .32);
    background: linear-gradient(135deg, rgba(79, 70, 229, .08), rgba(14, 165, 233, .08));
}

.guest-offer-code span,
.guest-offer-facts span,
.guest-offer-staff-note strong {
    color: #64748b;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.guest-offer-code strong {
    color: #111827;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    letter-spacing: .05em;
}

.guest-offer-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin-top: .85rem;
}

.guest-offer-facts div,
.guest-offer-staff-note,
.offer-run-action {
    padding: .9rem;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 18px;
    background: #f8fafc;
}

.guest-offer-facts strong {
    display: block;
    margin-top: .35rem;
    color: #0f172a;
    line-height: 1.35;
}

.guest-offer-staff-note {
    display: grid;
    gap: .45rem;
    margin-top: .85rem;
}

.guest-offer-staff-note span {
    color: #334155;
    line-height: 1.55;
}

.offer-run-actions {
    display: grid;
    gap: .85rem;
    padding: 1rem;
}

.offer-run-actions h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.25rem;
    letter-spacing: -.02em;
}

.offer-run-action-list {
    display: grid;
    gap: .75rem;
}

.offer-run-action {
    display: grid;
    gap: .75rem;
}

.offer-run-action strong,
.offer-run-action span {
    display: block;
}

.offer-run-action strong {
    color: #0f172a;
}

.offer-run-action span {
    margin-top: .25rem;
    color: #64748b;
    line-height: 1.45;
}

.offer-run-action .btn {
    width: max-content;
}

.status-chip-danger,
.status-chip-cancelled,
.status-chip-expired {
    color: #991b1b;
    border-color: rgba(248, 113, 113, .36);
    background: rgba(254, 226, 226, .92);
}

@media (max-width: 980px) {
    .offer-run-hero,
    .offer-run-layout {
        grid-template-columns: 1fr;
    }

    .offer-readiness-strip,
    .guest-offer-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .offer-run-hero {
        border-radius: 22px;
    }

    .offer-readiness-strip,
    .guest-offer-facts {
        grid-template-columns: 1fr;
    }

    .offer-run-status-actions,
    .offer-run-status-actions .inline-form,
    .offer-run-status-actions .btn,
    .offer-run-action .btn {
        width: 100%;
    }
}
