/* FORCE CONSISTENT WIDTH FOR APP FEEL */
:root {
  --app-max-width: 600px; /* Standard mobile width on desktop */
}

html {
    min-height: 100%;
    background: #020617;
}

body {
    margin: 0;
    background: #020617; /* Dark background for desktop gutters */
    min-height: 100vh;
    display: block;
    overflow-x: hidden;
}

/* This targets the main page wrappers so every page keeps the same app feel */
main,
.wrap,
.container,
.app,
.app-container,
.app-viewport,
.page-shell,
.guide-wrapper,
.hospiedge-ai-wrap,
.alerts-wrap,
.incident-wrap,
.register-container,
.audit-container,
.support-wrap,
.page-floor-audit,
.page-ring-it,
.page-sales-today,
.page-disciplinary-log,
.page-on-the-clock,
.page-incidents,
.page-leadersboard,
.page-performance-alerts {
    width: 100%;
    max-width: var(--app-max-width) !important;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Fixed header/footer are constrained in header.php; page shells should not add extra top padding here */
body > div,
body > main {
    box-sizing: border-box;
}


/* Shared app-shell responsive hardening */
.page-shell,
.app-container,
.app-viewport,
.guide-wrapper,
.hospiedge-ai-wrap,
.alerts-wrap,
.incident-wrap,
.page-incidents,
.page-leadersboard,
.page-performance-alerts {
    min-width: 0;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

@media (max-width: 820px) {
    .guide-wrapper,
    .page-shell,
    .app-container,
    .app-viewport,
    .hospiedge-ai-wrap,
    .alerts-wrap,
    .incident-wrap,
    .support-wrap,
    .page-incidents,
    .page-leadersboard,
    .page-performance-alerts {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Specific overrides for visual polish */
.card {
    margin-bottom: 15px;
}

/* Hide scrollbar visually but allow scrolling */
html {
    scrollbar-width: none; /* Firefox */
}
body::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* HospiEdge UI polish: toast */
.hospi-toast {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(env(safe-area-inset-bottom) + 96px);
    z-index: 1000000;
    max-width: 600px;
    margin: 0 auto;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(34, 197, 94, 0.28);
    background: rgba(2, 6, 23, 0.96);
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    line-height: 1.35;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .22s ease, transform .22s ease;
}

.hospi-toast::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 14px 0 0 14px;
    background: var(--success, #22c55e);
}

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

.hospi-toast.is-error {
    border-color: rgba(239, 68, 68, 0.32);
}

.hospi-toast.is-error::before {
    background: #ef4444;
}

@media (max-width: 600px) {
    .hospi-toast {
        bottom: calc(env(safe-area-inset-bottom) + 90px);
        font-size: 12px;
    }
}

/* audit.php extracted inline styles */
:root {
    --audit-bg-deep: #020617;
    --audit-card-bg: rgba(15, 23, 42, 0.8);
    --audit-border: rgba(255, 255, 255, 0.1);
    --audit-primary: #22d3ee;
    --audit-gold: #fbbf24;
    --audit-danger: #ef4444;
    --audit-orange: #f97316;
    --audit-green: #10b981;
}

.page-floor-audit {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    color: #f8fafc;
}

.page-floor-audit .card {
    background: var(--audit-card-bg);
    border: 1px solid var(--audit-border);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;
}

.page-floor-audit label {
    display: block;
    font-size: 14px;
    color: var(--audit-primary);
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.page-floor-audit select,
.page-floor-audit input,
.page-floor-audit textarea {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--audit-border);
    color: white;
    margin-bottom: 20px;
    outline: none;
    box-sizing: border-box;
    font-size: 16px;
}

.page-floor-audit .live-score-bar {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--audit-gold);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-floor-audit .live-val {
    font-size: 24px;
    font-weight: 900;
    color: var(--audit-gold);
}

.page-floor-audit .rating-text {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--audit-gold);
}

.page-floor-audit .score-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
}

.page-floor-audit .score-pill {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--audit-border);
    border-radius: 14px;
    padding: 15px;
    text-align: center;
}

.page-floor-audit .score-btn {
    flex: 1;
    padding: 15px 0;
    border-radius: 10px;
    background: rgba(0,0,0,0.4);
    color: #ccc;
    border: 1px solid transparent;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
}

.page-floor-audit .score-btn.primary {
    background: var(--audit-primary);
    color: #020617;
    box-shadow: 0 0 15px rgba(34,211,238,0.4);
}

.page-floor-audit .score-buttons {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.page-floor-audit .ai-box {
    display: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 15px;
    border-left: 4px solid;
    background: rgba(0,0,0,0.2);
}

.page-floor-audit .ai-pass {
    border-color: #10b981;
    color: #34d399;
}

.page-floor-audit .ai-fail {
    border-color: #ef4444;
    color: #f87171;
}

.page-floor-audit .ai-loading {
    border-color: var(--audit-primary);
    color: var(--audit-primary);
}

#aiModal.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

#aiModal .modal-content {
    background: #1e293b;
    padding: 25px;
    border-radius: 16px;
    width: 90%;
    max-width: 320px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

#aiModal .m-btn,
#posTableDetailModal .m-btn {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: none;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.page-floor-audit .btn.save {
    width: 100%;
    background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
    color: #020617;
    font-weight: 900;
    padding: 18px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    text-transform: uppercase;
}

#posTableModal.pos-modal,
#posTableDetailModal.pos-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 10000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    backdrop-filter: blur(6px);
    padding-top: 40px;
    overflow-y: auto;
}

#posTableModal .pos-modal-box,
#posTableDetailModal .pos-modal-box {
    background: #0f172a;
    border: 1px solid rgba(34,211,238,0.3);
    border-radius: 20px;
    width: 92%;
    max-width: 480px;
    padding: 22px;
    margin-bottom: 40px;
}

#posTableModal .pos-modal-title,
#posTableDetailModal .pos-modal-title {
    color: #22d3ee;
    font-weight: 900;
    font-size: 16px;
    text-transform: uppercase;
    margin: 0 0 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#posTableModal .pos-close-btn,
#posTableDetailModal .pos-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 22px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

#posTableModal .pos-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

#posTableModal .pos-item:hover {
    border-color: #22d3ee;
    background: rgba(34,211,238,0.08);
}

#posTableModal .pos-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#posTableModal .pos-table-ref {
    font-weight: 900;
    font-size: 16px;
    color: #f8fafc;
}

#posTableModal .pos-amount {
    font-weight: 700;
    font-size: 14px;
    color: #fbbf24;
}

#posTableModal .pos-server {
    font-size: 13px;
    color: #22d3ee;
    margin-top: 5px;
    font-weight: 600;
}

#posTableModal .pos-server.unmatched {
    color: #f97316;
}

#posTableModal .pos-meta {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.pos-status-open {
    display: inline-block;
    background: rgba(16,185,129,0.15);
    color: #10b981;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
}

.pos-status-saved {
    display: inline-block;
    background: rgba(251,191,36,0.15);
    color: #fbbf24;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
}

#posTableModal .pos-empty,
#posTableDetailBody .pos-empty {
    color: #64748b;
    text-align: center;
    padding: 24px;
    font-size: 14px;
}

.page-floor-audit .pos-load-btn {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    background: rgba(34,211,238,0.1);
    border: 1px solid rgba(34,211,238,0.3);
    color: #22d3ee;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    text-transform: uppercase;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.page-floor-audit .pos-load-btn:hover {
    background: rgba(34,211,238,0.2);
}

.page-floor-audit .pos-linked-badge {
    display: none;
    font-size: 11px;
    color: #10b981;
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.25);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 14px;
    text-align: center;
    font-weight: 700;
}

.page-floor-audit .pos-unlinked-banner {
    display: none;
    font-size: 12px;
    color: #f97316;
    background: rgba(249,115,22,0.1);
    border: 1px solid rgba(249,115,22,0.25);
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 14px;
}

#posTableDetailModal .pos-detail-refresh {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px 0;
    color: #94a3b8;
    font-size: 12px;
}

#posTableDetailModal .pos-detail-header {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    color: #e2e8f0;
    font-size: 13px;
}

#posTableDetailModal .pos-detail-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px 0;
}

#posTableDetailModal .pos-detail-stat {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 10px 12px;
}

#posTableDetailModal .pos-detail-stat .label {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .04em;
}

#posTableDetailModal .pos-detail-stat .value {
    display: block;
    color: #f8fafc;
    font-size: 15px;
    font-weight: 800;
    margin-top: 4px;
}

#posTableDetailModal .pos-detail-items {
    max-height: 42vh;
    overflow: auto;
    padding-right: 4px;
}

#posTableDetailModal .pos-detail-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

#posTableDetailModal .pos-detail-item-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

#posTableDetailModal .pos-detail-item-name {
    color: #f8fafc;
    font-weight: 800;
    font-size: 14px;
}

#posTableDetailModal .pos-detail-item-meta {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 5px;
}

#posTableDetailModal .pos-detail-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.pos-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
}

.pos-pill.sent {
    background: rgba(16,185,129,0.12);
    color: #34d399;
}

.pos-pill.not-sent {
    background: rgba(239,68,68,0.12);
    color: #f87171;
}

.pos-pill.hold {
    background: rgba(249,115,22,0.14);
    color: #fb923c;
}

.pos-pill.kds {
    background: rgba(34,211,238,0.12);
    color: #67e8f9;
}

.pos-pill.service {
    background: rgba(148,163,184,0.16);
    color: #cbd5e1;
}

#posTableDetailModal .pos-modifiers,
#posTableDetailModal .pos-notes {
    color: #cbd5e1;
    font-size: 12px;
    margin-top: 8px;
    line-height: 1.45;
}

#posTableDetailModal .pos-detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

#posTableDetailModal .pos-detail-actions .m-btn {
    margin-bottom: 0;
}

.page-floor-audit .top-links {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.page-floor-audit .link-btn {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    font-weight: 800;
    font-size: 13px;
    color: #888;
    text-decoration: none;
    background: rgba(255,255,255,0.05);
}

.page-floor-audit .link-btn.active {
    background: var(--audit-primary);
    color: #020617;
}

@media (max-width: 600px) {
    .page-floor-audit {
        padding: 16px;
    }

    .page-floor-audit .score-grid {
        grid-template-columns: 1fr;
    }

    #posTableDetailModal .pos-detail-summary {
        grid-template-columns: 1fr;
    }

    #posTableDetailModal .pos-detail-actions {
        flex-direction: column;
    }
}

/* === Ring-It page === */
.page-ring-it {
    color: #e6eef8;
    font-family: Inter, system-ui;
    padding: 18px;
}

.page-ring-it .card {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto 20px auto;
    max-width: 600px;
}

.page-ring-it .ring-it-surface-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 auto 14px auto;
    max-width: 600px;
}

.page-ring-it .ring-it-surface-bar .link-btn {
    flex: 1 1 0;
    min-width: 0;
}

.page-ring-it .ring-it-surface-bar .back-link {
    flex: 0 0 auto;
    min-width: 132px;
}

.page-ring-it .ring-it-surface-bar .current-link {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset, 0 12px 24px rgba(15, 23, 42, 0.28);
}

.page-ring-it .top-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 auto 12px auto;
    max-width: 600px;
}

.page-ring-it .link-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    font-weight: 800;
    font-size: 13px;
    color: #888;
    text-decoration: none;
    background: rgba(255,255,255,0.05);
}

.page-ring-it .link-btn.active {
    background: var(--primary);
    color: #020617;
}

.page-ring-it .ring-it-nav-note {
    max-width: 600px;
    margin: 0 auto 20px auto;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(34, 211, 238, 0.18);
    background: rgba(15, 23, 42, 0.72);
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.5;
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.26);
}


.page-ring-it .ring-it-watch-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 16px;
}

.page-ring-it .ring-it-watch-card {
    padding: 16px;
    border-radius: 16px;
    background: rgba(22, 16, 8, 0.58);
    border: 1px solid rgba(251, 191, 36, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-ring-it .ring-it-watch-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 800;
    color: #cbd5e1;
}

.page-ring-it .ring-it-watch-value {
    margin-top: 8px;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 900;
    color: #fef3c7;
}

.page-ring-it .ring-it-watch-note {
    margin-top: 8px;
    color: #fde68a;
    font-size: 12px;
    line-height: 1.55;
}

.page-ring-it .ring-it-watch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.page-ring-it .ring-it-watch-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(251, 191, 36, 0.28);
    background: rgba(251, 191, 36, 0.10);
    color: #fef3c7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-decoration: none;
    transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}

.page-ring-it .ring-it-watch-link:hover,
.page-ring-it .ring-it-watch-link:focus-visible {
    transform: translateY(-1px);
    background: rgba(251, 191, 36, 0.16);
    border-color: rgba(251, 191, 36, 0.38);
    color: #fffbeb;
}

.page-audit-records .audit-archive-watch-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 14px;
}

.page-audit-records .audit-archive-watch-card {
    padding: 16px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(34, 211, 238, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-audit-records .audit-archive-watch-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 800;
    color: #94a3b8;
}

.page-audit-records .audit-archive-watch-value {
    margin-top: 8px;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 900;
    color: #a5f3fc;
}

.page-audit-records .audit-archive-watch-note {
    margin-top: 8px;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.55;
}

.page-audit-records .audit-archive-watch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.page-audit-records .audit-archive-watch-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.24);
    background: rgba(34, 211, 238, 0.10);
    color: #a5f3fc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-decoration: none;
    transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}

.page-audit-records .audit-archive-watch-link:hover,
.page-audit-records .audit-archive-watch-link:focus-visible {
    transform: translateY(-1px);
    background: rgba(34, 211, 238, 0.16);
    border-color: rgba(34, 211, 238, 0.34);
    color: #ecfeff;
}

@media (max-width: 860px) {
    .page-audit-records .audit-archive-watch-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .page-audit-records .audit-archive-watch-summary {
        grid-template-columns: 1fr;
    }
}

.page-ring-it .field-label {
    display: block;
    font-size: 14px;
    color: var(--primary);
    font-weight: 800;
    margin: 15px 0 8px 0;
    text-transform: uppercase;
}

.page-ring-it input:not([type="checkbox"]),
.page-ring-it textarea,
.page-ring-it select {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    box-sizing: border-box;
    margin-bottom: 20px;
    font-size: 16px;
    outline: none;
}

.page-ring-it .check-group {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-ring-it .check-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 10px;
}

.page-ring-it .check-row:last-child {
    margin-bottom: 0;
}

.page-ring-it .check-row input {
    width: 24px;
    height: 24px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--danger);
}

.page-ring-it .actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.page-ring-it .btn {
    padding: 18px;
    border-radius: 14px;
    border: none;
    font-weight: 900;
    cursor: pointer;
    flex: 1;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    text-transform: uppercase;
}

.page-ring-it .btn.save {
    background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
    color: #020617;
}

.page-ring-it .btn.cancel {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.page-ring-it .photo-preview {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.page-ring-it .pos-load-btn {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    background: rgba(34,211,238,0.08);
    border: 1px solid rgba(34,211,238,0.3);
    color: #22d3ee;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.page-ring-it .pos-load-btn:hover {
    background: rgba(34,211,238,0.18);
}

.page-ring-it .pos-linked-badge {
    display: none;
    font-size: 11px;
    color: #10b981;
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.25);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 700;
}

.page-ring-it .pos-unlinked-banner {
    display: none;
    font-size: 12px;
    color: #f97316;
    background: rgba(249,115,22,0.08);
    border: 1px solid rgba(249,115,22,0.25);
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.page-ring-it .pos-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 10000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    backdrop-filter: blur(6px);
    padding-top: 40px;
    overflow-y: auto;
}

.page-ring-it .pos-modal-box {
    background: #0f172a;
    border: 1px solid rgba(34,211,238,0.3);
    border-radius: 20px;
    width: 92%;
    max-width: 500px;
    padding: 22px;
    margin-bottom: 40px;
}

.page-ring-it .pos-modal-title {
    color: #22d3ee;
    font-weight: 900;
    font-size: 16px;
    text-transform: uppercase;
    margin: 0 0 14px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-ring-it .pos-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 22px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.page-ring-it .pos-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.page-ring-it .pos-item:hover {
    border-color: #22d3ee;
    background: rgba(34,211,238,0.08);
}

.page-ring-it .pos-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-ring-it .pos-check-id {
    font-weight: 900;
    font-size: 15px;
    color: #f8fafc;
}

.page-ring-it .pos-amount {
    font-weight: 700;
    font-size: 14px;
    color: #fbbf24;
}

.page-ring-it .pos-server {
    font-size: 13px;
    color: #22d3ee;
    margin-top: 5px;
    font-weight: 600;
}

.page-ring-it .pos-server.unmatched {
    color: #f97316;
}

.page-ring-it .pos-meta {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.page-ring-it .pos-flag-open {
    display: inline-block;
    background: rgba(16,185,129,0.15);
    color: #10b981;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
}

.page-ring-it .pos-flag-saved {
    display: inline-block;
    background: rgba(251,191,36,0.15);
    color: #fbbf24;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
}

.page-ring-it .pos-empty {
    color: #64748b;
    text-align: center;
    padding: 24px;
    font-size: 14px;
}

.page-ring-it .pos-selected-check {
    display: none;
    background: rgba(34,211,238,0.08);
    border: 1px solid rgba(34,211,238,0.25);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #e2e8f0;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .15s;
}

.page-ring-it .pos-selected-check:hover {
    border-color: #67e8f9;
    background: rgba(34,211,238,0.12);
    transform: translateY(-1px);
}

.page-ring-it .pos-selected-check strong {
    color: #22d3ee;
}

.page-ring-it .pos-selected-check small {
    display: block;
    color: #94a3b8;
    margin-top: 6px;
}

.page-ring-it .pos-detail-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px 0;
}

.page-ring-it .pos-detail-stat {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 10px 12px;
}

.page-ring-it .pos-detail-stat .label {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .04em;
}

.page-ring-it .pos-detail-stat .value {
    display: block;
    color: #f8fafc;
    font-size: 15px;
    font-weight: 800;
    margin-top: 4px;
}

.page-ring-it .pos-detail-header {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    color: #e2e8f0;
    font-size: 13px;
}

.page-ring-it .pos-detail-items {
    max-height: 50vh;
    overflow: auto;
    padding-right: 4px;
}

.page-ring-it .pos-detail-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.page-ring-it .pos-detail-item-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.page-ring-it .pos-detail-item-name {
    color: #f8fafc;
    font-weight: 800;
    font-size: 14px;
}

.page-ring-it .pos-detail-item-meta {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 5px;
}

.page-ring-it .pos-detail-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.page-ring-it .pos-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 800;
}

.page-ring-it .pos-pill.sent {
    background: rgba(16,185,129,0.18);
    color: #10b981;
}

.page-ring-it .pos-pill.not-sent {
    background: rgba(249,115,22,0.18);
    color: #f97316;
}

.page-ring-it .pos-pill.hold {
    background: rgba(245,158,11,0.18);
    color: #f59e0b;
}

.page-ring-it .pos-pill.kds {
    background: rgba(59,130,246,0.18);
    color: #60a5fa;
}

.page-ring-it .pos-pill.service {
    background: rgba(168,85,247,0.18);
    color: #c084fc;
}

.page-ring-it .pos-modifiers,
.page-ring-it .pos-notes {
    margin-top: 8px;
    font-size: 12px;
    color: #cbd5e1;
}

.page-ring-it .pos-modifiers strong,
.page-ring-it .pos-notes strong {
    color: #f8fafc;
}

.page-ring-it .pos-detail-refresh {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px 0;
    color: #94a3b8;
    font-size: 12px;
}

.page-ring-it .pos-inline-btn {
    background: rgba(34,211,238,0.12);
    border: 1px solid rgba(34,211,238,0.3);
    color: #67e8f9;
    border-radius: 10px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.page-ring-it .pos-inline-btn:hover {
    background: rgba(34,211,238,0.18);
}

@media (max-width: 600px) {
    .page-ring-it {
        padding: 16px;
    }

    .page-ring-it .ring-it-surface-bar {
        align-items: stretch;
    }

    .page-ring-it .ring-it-surface-bar .back-link,
    .page-ring-it .ring-it-surface-bar .current-link,
    .page-ring-it .top-links .link-btn {
        flex: 1 1 calc(50% - 10px);
        min-width: 132px;
    }

    .page-ring-it .actions {
        flex-direction: column;
    }

    .page-ring-it .ring-it-watch-summary {
        grid-template-columns: 1fr;
    }

    .page-ring-it .pos-detail-summary {
        grid-template-columns: 1fr;
    }
}



/* incidents.php — page-scoped extracted styles */
.page-incidents {
    padding: 20px;
}

.page-incidents .incidents-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.page-incidents .incidents-title {
    margin: 0;
}

.page-incidents .incidents-subtitle {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 4px;
}

.page-incidents .incidents-report-btn {
    background: var(--danger);
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}

.page-incidents .incidents-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.page-incidents .incidents-stat-card {
    margin: 0;
}

.page-incidents .incidents-stat-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 800;
}

.page-incidents .incidents-stat-value {
    font-size: 28px;
    font-weight: 900;
    margin-top: 6px;
}

.page-incidents .incidents-stat-value-danger {
    color: #fca5a5;
}

.page-incidents .incidents-empty {
    text-align: center;
    padding: 40px;
    color: var(--muted);
}

.page-incidents .incident-card {
    margin-bottom: 15px;
    border-left: 4px solid var(--warning);
}

.page-incidents .incident-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.page-incidents .incident-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 4px;
}

.page-incidents .incident-category {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

.page-incidents .incident-status-pill {
    font-size: 10px;
    padding: 3px 7px;
    border-radius: 999px;
    font-weight: 800;
    text-transform: uppercase;
}

.page-incidents .incident-title {
    margin: 2px 0;
    font-size: 16px;
}

.page-incidents .incident-meta {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

.page-incidents .incident-meta-strong {
    color: #e2e8f0;
}

.page-incidents .incident-time {
    font-size: 10px;
    background: rgba(255,255,255,0.05);
    padding: 3px 7px;
    border-radius: 4px;
}

.page-incidents .incident-description {
    font-size: 13px;
    color: #94a3b8;
    margin: 10px 0;
}

.page-incidents .incident-photo-wrap {
    margin: 10px 0;
}

.page-incidents .incident-photo {
    display: block;
    max-width: 100%;
    max-height: 190px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
}

.page-incidents .incident-ai-box {
    display: none;
    background: rgba(34, 211, 238, 0.05);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.4;
}

.page-incidents .incident-ai-title {
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
}

.page-incidents .incident-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.page-incidents .incident-action-btn {
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    padding: 8px;
}

.page-incidents .incident-action-primary {
    flex: 1;
    background: var(--success);
}

.page-incidents .incident-action-secondary {
    width: 60px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
}

@media (max-width: 600px) {
    .page-incidents {
        padding: 16px;
    }

    .page-incidents .incident-card-top,
    .page-incidents .incident-actions {
        flex-direction: column;
    }

    .page-incidents .incident-time {
        align-self: flex-start;
    }

    .page-incidents .incident-action-secondary {
        width: 100%;
    }
}


/* compliance_dashboard.php — page-scoped extracted styles */
.page-compliance-dashboard {
    --compliance-bg: #020617;
    --compliance-card: rgba(15, 23, 42, 0.6);
    --compliance-border: rgba(255, 255, 255, 0.08);
    --compliance-primary: #22d3ee;
    max-width: 1020px;
    margin: 0 auto;
    padding: 20px;
    color: #f8fafc;
    min-height: 100vh;
    background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, transparent 60%), var(--compliance-bg);
}

.page-compliance-dashboard .compliance-topbar {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--compliance-border);
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.page-compliance-dashboard .compliance-title {
    margin: 0;
    font-size: 24px;
}

.page-compliance-dashboard .compliance-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: #94a3b8;
}

.page-compliance-dashboard .compliance-home-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.page-compliance-dashboard .compliance-load-error {
    margin-bottom: 18px;
    color: #fca5a5;
    font-size: 13px;
}

.page-compliance-dashboard .grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.page-compliance-dashboard .stat-card,
.page-compliance-dashboard .panel {
    background: var(--compliance-card);
    border: 1px solid var(--compliance-border);
    border-radius: 16px;
}

.page-compliance-dashboard .stat-card {
    padding: 20px;
    text-align: center;
}

.page-compliance-dashboard .stat-val {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 5px;
}

.page-compliance-dashboard .stat-lbl {
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
}

.page-compliance-dashboard .c-pass { color: #34d399; }
.page-compliance-dashboard .c-fail { color: #f87171; }
.page-compliance-dashboard .c-temp { color: #fbbf24; }
.page-compliance-dashboard .c-primary { color: #67e8f9; }

.page-compliance-dashboard .compliance-section-grid {
    margin-bottom: 24px;
}

.page-compliance-dashboard .section-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
    align-items: start;
}

.page-compliance-dashboard .panel {
    padding: 18px;
}

.page-compliance-dashboard .panel h3,
.page-compliance-dashboard .compliance-gallery-title {
    margin: 0 0 14px 0;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--compliance-primary);
    letter-spacing: .04em;
}

.page-compliance-dashboard .compliance-gallery-title {
    margin-bottom: 15px;
}

.page-compliance-dashboard .summary-list {
    display: grid;
    gap: 12px;
}

.page-compliance-dashboard .summary-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 10px;
}

.page-compliance-dashboard .summary-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.page-compliance-dashboard .summary-label {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.page-compliance-dashboard .summary-value {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    text-align: right;
}

.page-compliance-dashboard .action-links,
.page-compliance-dashboard .quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.page-compliance-dashboard .action-links {
    margin-top: 14px;
}

.page-compliance-dashboard .quick-actions {
    margin-top: 12px;
}

.page-compliance-dashboard .action-links a,
.page-compliance-dashboard .quick-actions a {
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    padding: 10px 14px;
}

.page-compliance-dashboard .btn-cyan {
    background: rgba(34,211,238,0.15);
    color: #67e8f9;
    border: 1px solid rgba(34,211,238,0.3);
}

.page-compliance-dashboard .btn-red {
    background: rgba(239,68,68,0.15);
    color: #fda4af;
    border: 1px solid rgba(239,68,68,0.35);
}

.page-compliance-dashboard .btn-gold {
    background: rgba(251,191,36,0.16);
    color: #fde68a;
    border: 1px solid rgba(251,191,36,0.35);
}

.page-compliance-dashboard .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.page-compliance-dashboard .audit-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--compliance-border);
    border-radius: 12px;
    overflow: hidden;
    transition: .2s;
}

.page-compliance-dashboard .audit-card:hover {
    border-color: var(--compliance-primary);
    transform: translateY(-2px);
}

.page-compliance-dashboard .audit-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.page-compliance-dashboard .audit-body {
    padding: 15px;
}

.page-compliance-dashboard .ai-tag {
    font-size: 10px;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.page-compliance-dashboard .tag-fail {
    background: rgba(239,68,68,0.2);
    color: #f87171;
    border: 1px solid rgba(239,68,68,0.3);
}

.page-compliance-dashboard .tag-pass {
    background: rgba(16,185,129,0.2);
    color: #34d399;
    border: 1px solid rgba(16,185,129,0.3);
}

.page-compliance-dashboard .audit-note {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.4;
}

.page-compliance-dashboard .compliance-audit-meta,
.page-compliance-dashboard .compliance-empty-panel {
    color: #94a3b8;
}

.page-compliance-dashboard .compliance-audit-meta {
    margin-top: 10px;
    font-size: 10px;
}

.page-compliance-dashboard .compliance-empty-panel {
    text-align: center;
}

@media (max-width: 780px) {
    .page-compliance-dashboard .section-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .page-compliance-dashboard {
        padding: 16px;
    }

    .page-compliance-dashboard .action-links,
    .page-compliance-dashboard .quick-actions {
        flex-direction: column;
    }

    .page-compliance-dashboard .action-links a,
    .page-compliance-dashboard .quick-actions a,
    .page-compliance-dashboard .compliance-home-link {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .page-compliance-dashboard .summary-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-compliance-dashboard .summary-value {
        text-align: left;
    }
}


/* === Daily Review page === */
.page-daily-review {
    --daily-bg: #020617;
    --daily-card: #0f172a;
    --daily-text: #f8fafc;
    --daily-muted: #94a3b8;
    --daily-border: rgba(255,255,255,0.1);
    --daily-cyan: #22d3ee;
    --daily-gold: #fbbf24;
    --daily-red: #ef4444;
    color: var(--daily-text);
    font-family: 'Inter', system-ui;
    padding-bottom: 80px;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.page-daily-review .controls {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--daily-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.page-daily-review .controls-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: min(100%, 360px);
}

.page-daily-review .quick-date-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-daily-review .quick-date-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--daily-border);
    color: var(--daily-muted);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    cursor: pointer;
    transition: .18s ease;
}

.page-daily-review .quick-date-btn:hover {
    border-color: rgba(34,211,238,0.35);
    color: var(--daily-cyan);
    background: rgba(34,211,238,0.08);
}

.page-daily-review .date-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.page-daily-review .date-label {
    font-weight: 800;
    font-size: 12px;
    color: var(--daily-muted);
}

.page-daily-review .date-input {
    background: #020617;
    border: 1px solid var(--daily-border);
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.page-daily-review .btn-search {
    background: var(--daily-cyan);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

.page-daily-review .btn-pdf {
    background: transparent;
    border: 1px solid var(--daily-red);
    color: var(--daily-red);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

.page-daily-review .btn-pdf:hover {
    background: var(--daily-red);
    color: white;
    box-shadow: 0 0 15px var(--daily-red);
}

.page-daily-review .btn-label {
    background: rgba(251,191,36,0.16);
    color: var(--daily-gold);
    border: 1px solid rgba(251,191,36,0.35);
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.page-daily-review .btn-label:hover {
    box-shadow: 0 0 15px rgba(251,191,36,0.28);
    background: rgba(251,191,36,0.22);
}

.page-daily-review .quick-actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.page-daily-review .tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.page-daily-review .tab {
    padding: 10px 20px;
    border-radius: 99px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--daily-border);
    color: var(--daily-muted);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    white-space: nowrap;
}

.page-daily-review .tab.active {
    background: white;
    color: black;
    border-color: white;
}

.page-daily-review #report-content {
    padding: 10px;
}

.page-daily-review .section {
    display: none;
}

.page-daily-review .section.show {
    display: block;
}

.page-daily-review .card {
    background: var(--daily-card);
    border: 1px solid var(--daily-border);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    page-break-inside: avoid;
}

.page-daily-review .card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 10px;
}

.page-daily-review .data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.page-daily-review .data-item {
    background: rgba(0,0,0,0.3);
    padding: 8px;
    border-radius: 6px;
    font-size: 11px;
    color: var(--daily-muted);
}

.page-daily-review .data-item b {
    display: block;
    color: white;
    font-size: 13px;
    margin-bottom: 2px;
}

.page-daily-review .full-notes {
    background: rgba(255,255,255,0.03);
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #cbd5e1;
    margin-top: 10px;
    border-left: 3px solid var(--daily-border);
}

.page-daily-review .ai-box {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    background: rgba(34, 211, 238, 0.05);
    border: 1px solid rgba(34, 211, 238, 0.2);
    color: #bae6fd;
}

.page-daily-review .tag {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.page-daily-review .img-box {
    margin-top: 15px;
}

.page-daily-review .img-box img {
    max-height: 150px;
    border-radius: 8px;
    border: 1px solid var(--daily-border);
}

body.pdf-mode .page-daily-review {
    background: white;
    color: black;
    max-width: 100%;
    padding: 0;
}

body.pdf-mode .page-daily-review .controls,
body.pdf-mode .page-daily-review .tabs,
body.pdf-mode header,
body.pdf-mode footer {
    display: none !important;
}

body.pdf-mode .page-daily-review .card {
    border: 1px solid #ccc;
    background: white;
    color: black;
    box-shadow: none;
    border-radius: 4px;
}

body.pdf-mode .page-daily-review .card-head {
    border-bottom: 1px solid #eee;
}

body.pdf-mode .page-daily-review .data-item {
    background: #f3f4f6;
    color: #333;
}

body.pdf-mode .page-daily-review .data-item b {
    color: black;
}

body.pdf-mode .page-daily-review .full-notes {
    background: #f9fafb;
    color: #333;
    border-left-color: #000;
}

body.pdf-mode .page-daily-review .print-header {
    display: block !important;
    text-align: center;
    margin-bottom: 20px;
    color: black;
}

body.pdf-mode .page-daily-review .print-header h1 {
    font-size: 24px;
    margin: 0 0 5px 0;
}

body.pdf-mode .page-daily-review .section {
    display: none;
}

body.pdf-mode .page-daily-review .section.show {
    display: block;
}

.page-daily-review .print-header {
    display: none;
}

.page-daily-review .pulse-card {
    border-left: 4px solid #22d3ee;
}

.page-daily-review .pulse-note {
    font-size: 12px;
    color: var(--daily-muted);
    margin-top: 10px;
}

.page-daily-review,
.page-daily-review td,
.page-daily-review th {
    font-family: Inter, system-ui;
}

@media (max-width: 700px) {
    .page-daily-review {
        padding: 16px;
    }

    .page-daily-review .controls,
    .page-daily-review .date-group,
    .page-daily-review .card-head {
        flex-direction: column;
        align-items: stretch;
    }

    .page-daily-review .controls > div:last-child,
    .page-daily-review .controls > div:last-child > * {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }
}


/* weekly_report.php extracted inline styles */
:root {
    --weekly-bg: #020617;
    --weekly-card: rgba(15,23,42,0.7);
    --weekly-border: rgba(255,255,255,0.08);
    --weekly-primary: #22d3ee;
    --weekly-text: #f8fafc;
    --weekly-muted: #94a3b8;
    --weekly-gold: #fbbf24;
    --weekly-danger: #ef4444;
    --weekly-success: #10b981;
}

.page-weekly-report {
    color: var(--weekly-text);
    font-family: 'Inter', system-ui, sans-serif;
    background-image: radial-gradient(circle at 50% 0%, #172554 0%, transparent 60%);
    min-height: 100vh;
}

.page-weekly-report .header {
    text-align: center;
    margin-bottom: 30px;
}

.page-weekly-report h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
}

.page-weekly-report .label {
    font-size: 11px;
    font-weight: 900;
    color: var(--weekly-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-weekly-report .bracket {
    background: rgba(2,6,23,0.3);
    border: 1px solid var(--weekly-border);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
}

.page-weekly-report .bracket-title {
    font-size: 10px;
    font-weight: 900;
    color: var(--weekly-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px;
}

.page-weekly-report .stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.page-weekly-report .stat-box {
    background: var(--weekly-card);
    border: 1px solid var(--weekly-border);
    padding: 15px;
    border-radius: 16px;
    text-align: center;
}

.page-weekly-report .stat-val {
    font-size: 24px;
    font-weight: 900;
    margin: 5px 0;
}

.page-weekly-report .stat-lbl {
    font-size: 9px;
    font-weight: 800;
    color: var(--weekly-muted);
    text-transform: uppercase;
}

.page-weekly-report .card {
    background: var(--weekly-card);
    border: 1px solid var(--weekly-border);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 12px;
    position: relative;
}

.page-weekly-report .card-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.page-weekly-report .badge {
    font-size: 9px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    color: #020617;
}

.page-weekly-report .b-audit {
    background: var(--weekly-primary);
}

.page-weekly-report .b-incident {
    background: var(--weekly-danger);
    color: #fff;
}

.page-weekly-report .b-ringit {
    background: var(--weekly-gold);
}

.page-weekly-report .meta {
    font-size: 10px;
    color: var(--weekly-muted);
    font-weight: 700;
}

.page-weekly-report .notes {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
    margin-top: 8px;
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 10px;
}

.page-weekly-report .ai-box {
    margin-top: 12px;
    padding: 10px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(34,211,238,0.05), transparent);
    border-left: 3px solid var(--weekly-primary);
    font-size: 11px;
    color: #cbd5e1;
    line-height: 1.4;
}

.page-weekly-report .ai-label {
    color: var(--weekly-primary);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 9px;
    display: block;
    margin-bottom: 4px;
}

.page-weekly-report .temp-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.page-weekly-report .temp-item {
    background: rgba(0,0,0,0.3);
    padding: 8px;
    border-radius: 6px;
    font-size: 10px;
    color: var(--weekly-muted);
    border: 1px solid var(--weekly-border);
    display: flex;
    justify-content: space-between;
}

.page-weekly-report .temp-val {
    color: #fff;
    font-weight: 800;
}

.page-weekly-report .temp-danger {
    border-color: var(--weekly-danger);
    background: rgba(239,68,68,0.1);
    color: var(--weekly-danger);
}

.page-weekly-report .photo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--weekly-border);
    border-radius: 8px;
    color: var(--weekly-primary);
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.2s;
}

.page-weekly-report .photo-btn:hover {
    background: rgba(34,211,238,0.1);
    border-color: var(--weekly-primary);
    color: #fff;
}

.page-weekly-report .btn-main {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    background: linear-gradient(135deg, var(--weekly-primary), #0ea5e9);
    color: #020617;
    font-weight: 900;
    border-radius: 14px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(34,211,238,0.3);
    cursor: pointer;
    border: none;
}

.page-weekly-report .btn-pdf {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: var(--weekly-muted);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.page-weekly-report .btn-pdf:hover {
    color: #fff;
}

.weekly-report-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.weekly-report-lightbox-img {
    max-width: 95%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.2);
}

.weekly-report-lightbox-close {
    position: absolute;
    bottom: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.2);
    transition: 0.2s;
}

.weekly-report-lightbox-close:hover {
    background: var(--weekly-danger);
    border-color: var(--weekly-danger);
}

.page-weekly-report,
.page-weekly-report td,
.page-weekly-report th {
    font-family: Inter, system-ui, sans-serif;
}


/* === Culinary Audit Page === */
.page-culinary-audit {
    --culinary-bg-deep: #020617;
    --culinary-card-bg: rgba(15, 23, 42, 0.8);
    --culinary-border: rgba(255, 255, 255, 0.1);
    --culinary-primary: #22d3ee;
    --culinary-gold: #fbbf24;
    --culinary-danger: #ef4444;
    --culinary-orange: #f97316;
    --culinary-green: #10b981;
    color: #f8fafc;
    font-family: Inter, system-ui, sans-serif;
    padding-bottom: 80px;
}

.page-culinary-audit .audit-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.page-culinary-audit .card {
    background: var(--culinary-card-bg);
    border: 1px solid var(--culinary-border);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;
}

.page-culinary-audit label {
    display: block;
    font-size: 14px;
    color: var(--culinary-primary);
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.page-culinary-audit select,
.page-culinary-audit input,
.page-culinary-audit textarea {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--culinary-border);
    color: white;
    margin-bottom: 20px;
    outline: none;
    font-size: 16px;
    box-sizing: border-box;
}

.page-culinary-audit .live-score-bar {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--culinary-gold);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-culinary-audit .live-val {
    font-size: 24px;
    font-weight: 900;
    color: var(--culinary-gold);
}

.page-culinary-audit .rating-text {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--culinary-gold);
}

.page-culinary-audit .score-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
}

.page-culinary-audit .score-pill {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--culinary-border);
    border-radius: 14px;
    padding: 15px;
    text-align: center;
}

.page-culinary-audit .score-btn {
    flex: 1;
    padding: 15px 0;
    border-radius: 10px;
    background: rgba(0,0,0,0.4);
    color: #ccc;
    border: 1px solid transparent;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
}

.page-culinary-audit .score-btn.primary {
    background: var(--culinary-primary);
    color: #020617;
    box-shadow: 0 0 15px rgba(34,211,238,0.4);
}

.page-culinary-audit .score-buttons {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.page-culinary-audit .temp-row {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.page-culinary-audit .temp-input {
    margin-bottom: 0 !important;
    flex: 1;
}

.page-culinary-audit .temp-danger {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: var(--culinary-danger) !important;
    color: #ffadad !important;
}

.page-culinary-audit .smart-cta {
    background: linear-gradient(135deg, rgba(34,211,238,0.1), rgba(15,23,42,0.8));
    border: 1px solid rgba(34,211,238,0.3);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 25px;
    text-align: center;
    display: none;
}

.page-culinary-audit .btn-action {
    background: var(--culinary-green);
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-weight: 900;
    width: 100%;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.page-culinary-audit .ai-box {
    display: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 15px;
    border-left: 4px solid;
    background: rgba(0,0,0,0.2);
}

.page-culinary-audit .ai-pass {
    border-color: var(--culinary-green);
    color: #34d399;
}

.page-culinary-audit .ai-fail {
    border-color: var(--culinary-danger);
    color: #f87171;
}

.page-culinary-audit .ai-loading {
    border-color: var(--culinary-primary);
    color: var(--culinary-primary);
}

.page-culinary-audit .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.page-culinary-audit .modal-content {
    background: #1e293b;
    padding: 25px;
    border-radius: 16px;
    width: 90%;
    max-width: 320px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.page-culinary-audit .m-btn {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: none;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.page-culinary-audit .btn.save {
    width: 100%;
    background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
    color: #020617;
    font-weight: 900;
    padding: 18px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    text-transform: uppercase;
}

.page-culinary-audit .top-links {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.page-culinary-audit .link-btn {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    font-weight: 800;
    font-size: 13px;
    color: #888;
    text-decoration: none;
    background: rgba(255,255,255,0.05);
}

.page-culinary-audit .link-btn.active {
    background: var(--culinary-primary);
    color: #020617;
}

.page-culinary-audit .make-label-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(251,191,36,0.35);
    background: linear-gradient(135deg, rgba(251,191,36,0.14), rgba(15,23,42,0.82));
    margin-bottom: 20px;
}

.page-culinary-audit .make-label-copy {
    color: #fde68a;
    font-size: 13px;
    line-height: 1.5;
}

.page-culinary-audit .make-label-btn {
    white-space: nowrap;
    padding: 14px 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 900;
    font-size: 13px;
    color: #020617;
    text-decoration: none;
    background: var(--culinary-gold);
    box-shadow: 0 0 18px rgba(251,191,36,0.25);
}

@media (max-width: 640px) {
    .page-culinary-audit .make-label-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .page-culinary-audit .make-label-btn {
        width: 100%;
        box-sizing: border-box;
    }
}


/* === Open Checks === */
.page-open-checks {
  max-width: 1100px;
  margin: 16px auto;
  padding: 16px;
  color: #e2e8f0;
  font-family: Arial, sans-serif;
}
.page-open-checks .card {
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}
.page-open-checks .row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.page-open-checks .field {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0b1220;
  color: #fff;
}
.page-open-checks .btn {
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  background: #22d3ee;
  color: #021018;
  font-weight: 700;
  text-decoration: none;
}
.page-open-checks table {
  width: 100%;
  border-collapse: collapse;
}
.page-open-checks th,
.page-open-checks td {
  padding: 10px;
  border-bottom: 1px solid #1f2937;
  text-align: left;
}
.page-open-checks th {
  color: #94a3b8;
  font-size: 12px;
  text-transform: uppercase;
}
.page-open-checks .right {
  text-align: right;
}
.page-open-checks .check-link {
  background: none;
  border: none;
  color: #67e8f9;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.page-open-checks .check-link:hover {
  text-decoration: underline;
}
.page-open-checks .muted-btn {
  background: rgba(34, 211, 238, 0.12);
  color: #67e8f9;
  border: 1px solid rgba(34, 211, 238, 0.18);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
}
.page-open-checks .check-row:hover {
  background: rgba(255, 255, 255, 0.03);
}
.page-open-checks .pos-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.82);
  z-index: 9999;
  padding: 22px;
  box-sizing: border-box;
}
.page-open-checks .pos-modal-box {
  max-width: 860px;
  margin: 0 auto;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 16px;
  max-height: calc(100vh - 44px);
  overflow: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.page-open-checks .pos-modal-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}
.page-open-checks .pos-close-btn {
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 22px;
  cursor: pointer;
}
.page-open-checks .pos-empty {
  padding: 16px;
  border: 1px dashed #334155;
  border-radius: 12px;
  color: #94a3b8;
  text-align: center;
}
.page-open-checks .pos-detail-refresh {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  color: #94a3b8;
  font-size: 12px;
}
.page-open-checks .pos-inline-btn {
  padding: 8px 12px;
  border: none;
  background: #1d4ed8;
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
.page-open-checks .pos-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.page-open-checks .pos-detail-stat {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 10px 12px;
}
.page-open-checks .pos-detail-stat .label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 4px;
}
.page-open-checks .pos-detail-stat .value {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #f8fafc;
}
.page-open-checks .pos-item-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}
.page-open-checks .pos-item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.page-open-checks .pos-item-name {
  font-weight: 800;
  color: #f8fafc;
}
.page-open-checks .pos-item-meta {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.page-open-checks .pos-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.page-open-checks .pos-pill.sent {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
}
.page-open-checks .pos-pill.not-sent {
  background: rgba(249, 115, 22, 0.18);
  color: #f97316;
}
.page-open-checks .pos-pill.hold {
  background: rgba(244, 63, 94, 0.18);
  color: #fb7185;
}
.page-open-checks .pos-pill.kds {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
}
.page-open-checks .pos-modifiers {
  margin-top: 8px;
  padding-left: 16px;
  color: #cbd5e1;
  font-size: 12px;
}


/* === Goals Board === */
.page-goals-board {
  --goals-bg0: #070a13;
  --goals-panel: #0f172a;
  --goals-stroke: rgba(255, 255, 255, 0.1);
  --goals-cyan: #22d3ee;
  --goals-warn: #facc15;
  --goals-danger: #ef4444;
  --goals-green: #10b981;
  --goals-purple: #8b5cf6;
  background: var(--goals-bg0);
  color: #fff;
  padding-bottom: 80px;
}
.page-goals-board .board-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}
.page-goals-board .board-header {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--goals-stroke);
  padding-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.page-goals-board .board-title {
  font-size: 24px;
  font-weight: 900;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-goals-board .add-task-btn {
  background: var(--goals-cyan);
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
}
.page-goals-board .add-task-btn:hover {
  transform: translateY(-2px);
}
.page-goals-board .group-section {
  margin-bottom: 40px;
}
.page-goals-board .group-header {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--goals-cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-goals-board .group-header.done {
  color: var(--goals-green);
}
.page-goals-board .goal-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}
.page-goals-board .goal-table th {
  text-align: left;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  padding: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.page-goals-board .goal-row {
  background: var(--goals-panel);
  transition: transform 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.page-goals-board .goal-row:hover {
  transform: translateX(5px);
  background: #1e293b;
}
.page-goals-board .goal-row td {
  padding: 12px 15px;
  border-top: 1px solid var(--goals-stroke);
  border-bottom: 1px solid var(--goals-stroke);
  vertical-align: middle;
}
.page-goals-board .goal-row td:first-child {
  border-left: 6px solid transparent;
  border-radius: 8px 0 0 8px;
}
.page-goals-board .goal-row td:last-child {
  border-radius: 0 8px 8px 0;
  border-right: 1px solid var(--goals-stroke);
}
.page-goals-board .goal-row.priority-A td:first-child {
  border-left-color: var(--goals-danger);
}
.page-goals-board .goal-row.priority-B td:first-child {
  border-left-color: var(--goals-warn);
}
.page-goals-board .goal-row.priority-C td:first-child {
  border-left-color: var(--goals-cyan);
}
.page-goals-board .task-input {
  background: transparent;
  border: none;
  color: white;
  font-weight: 700;
  width: 100%;
  font-size: 15px;
  outline: none;
}
.page-goals-board .status-badge {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 8px 0;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  color: white;
  letter-spacing: 0.5px;
}
.page-goals-board .status-todo {
  background: #f59e0b;
}
.page-goals-board .status-done {
  background: var(--goals-green);
}
.page-goals-board .status-stuck {
  background: var(--goals-danger);
}
.page-goals-board .date-pill {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 12px;
  text-align: center;
  font-weight: 600;
  min-width: 100px;
  display: inline-block;
}
.page-goals-board .date-pill.empty {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
}
.page-goals-board .due-date-input {
  margin-top: 8px;
  width: 100%;
  max-width: 150px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 7px 9px;
  font-size: 12px;
}
.page-goals-board .due-date-input:focus {
  outline: none;
  border-color: var(--goals-cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}
.page-goals-board .date-help {
  margin-top: 6px;
  font-size: 10px;
  color: #94a3b8;
}
.page-goals-board .owner-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.page-goals-board .priority-block {
  width: 100%;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  color: #cbd5e1;
}
@media (max-width: 768px) {
  .page-goals-board .hide-mobile {
    display: none;
  }
  .page-goals-board .goal-table,
  .page-goals-board .goal-table tbody,
  .page-goals-board .goal-table tr,
  .page-goals-board .goal-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .page-goals-board .goal-table thead {
    display: none;
  }
  .page-goals-board .goal-row {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--goals-stroke);
    padding: 10px;
  }
  .page-goals-board .goal-row td {
    padding: 8px 5px;
    border: none;
  }
  .page-goals-board .goal-row td:first-child {
    border: none;
    border-bottom: 1px solid var(--goals-stroke);
    margin-bottom: 8px;
    border-radius: 0;
  }
  .page-goals-board .goal-row td:last-child {
    border: none;
  }
  .page-goals-board .status-badge {
    padding: 12px 0;
  }
}


/* Leadersboard page */
.page-leadersboard {
  --leadersboard-primary: #22d3ee;
  --leadersboard-bg: #020617;
  --leadersboard-card: #1e293b;
  --leadersboard-border: #334155;
  --leadersboard-gold: #f59e0b;
  --leadersboard-text: #ffffff;
  background: var(--leadersboard-bg);
  color: var(--leadersboard-text);
  font-family: system-ui, sans-serif;
  padding: 20px;
}
.page-leadersboard .leaderboard-container {
  max-width: 500px;
  margin: 0 auto;
}
.page-leadersboard .leaderboard-header {
  text-align: center;
  margin-bottom: 30px;
}
.page-leadersboard .leaderboard-header h1 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
}
.page-leadersboard .leaderboard-header p {
  color: #94a3b8;
  font-size: 14px;
}
.page-leadersboard .leaderboard-card {
  background: var(--leadersboard-card);
  border-radius: 16px;
  border: 1px solid var(--leadersboard-border);
  overflow: hidden;
}
.page-leadersboard .rank-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--leadersboard-border);
  transition: background 0.2s;
}
.page-leadersboard .rank-item:last-child {
  border-bottom: none;
}
.page-leadersboard .rank-item:hover {
  background: rgba(255, 255, 255, 0.03);
}
.page-leadersboard .rank-number {
  width: 40px;
  font-size: 20px;
  font-weight: 900;
  color: #64748b;
}
.page-leadersboard .rank-item:nth-child(1) .rank-number {
  color: var(--leadersboard-gold);
}
.page-leadersboard .rank-item:nth-child(2) .rank-number {
  color: #cbd5e1;
}
.page-leadersboard .rank-item:nth-child(3) .rank-number {
  color: #92400e;
}
.page-leadersboard .staff-info {
  flex-grow: 1;
}
.page-leadersboard .staff-name {
  font-weight: 700;
  font-size: 16px;
}
.page-leadersboard .staff-meta {
  font-size: 12px;
  color: #94a3b8;
}
.page-leadersboard .score-box {
  text-align: right;
}
.page-leadersboard .power-score {
  font-size: 18px;
  font-weight: 900;
  color: var(--leadersboard-primary);
}
.page-leadersboard .sales-val {
  font-size: 11px;
  color: #10b981;
  font-weight: 600;
}
.page-leadersboard .sales-lbl {
  font-size: 10px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
}
.page-leadersboard .empty {
  text-align: center;
  padding: 40px;
  color: #64748b;
}


/* Performance Alerts page */
.page-performance-alerts {
  --alerts-surface: rgba(15,23,42,0.82);
  --alerts-border-soft: rgba(255,255,255,0.06);
  --alerts-text-soft: #94a3b8;
  max-width: 880px;
  padding: 20px;
  margin: 0 auto;
}
.page-performance-alerts .alerts-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 15px;
  margin-bottom: 20px;
  gap: 14px;
  flex-wrap: wrap;
}
.page-performance-alerts .alerts-title {
  color: white;
  margin: 0;
}
.page-performance-alerts .alerts-subtitle {
  color: var(--alerts-text-soft);
  font-size: 12px;
  margin-top: 4px;
}
.page-performance-alerts .alerts-head a {
  background: #334155;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
}
.page-performance-alerts .alerts-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}
.page-performance-alerts .rule-card {
  background: var(--alerts-surface);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(239,68,68,0.25);
  box-shadow: 0 18px 36px -24px rgba(239,68,68,0.45);
}
.page-performance-alerts .rule-card.warning {
  border-color: rgba(251,191,36,0.24);
  box-shadow: 0 18px 36px -24px rgba(251,191,36,0.35);
}
.page-performance-alerts .rule-kicker {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fca5a5;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.page-performance-alerts .rule-card.warning .rule-kicker {
  color: #fde68a;
}
.page-performance-alerts .rule-title {
  font-size: 18px;
  font-weight: 900;
  color: white;
  margin-bottom: 6px;
}
.page-performance-alerts .rule-message {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
}
.page-performance-alerts .rule-action {
  display: inline-flex;
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255,255,255,0.08);
  color: white;
}
.page-performance-alerts .queue-card {
  background: rgba(15,23,42,0.8);
  border-left: 4px solid #ef4444;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.page-performance-alerts .queue-meta,
.page-performance-alerts .incident-meta {
  color: var(--alerts-text-soft);
  font-size: 12px;
}
.page-performance-alerts .queue-meta {
  font-weight: 700;
  text-transform: uppercase;
}
.page-performance-alerts .queue-score {
  color: #ef4444;
  font-weight: 800;
  margin-top: 5px;
}
.page-performance-alerts .queue-action {
  background: #ef4444;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  white-space: nowrap;
}
.page-performance-alerts .incident-list,
.page-performance-alerts .queue-grid {
  display: grid;
  gap: 10px;
}
.page-performance-alerts .queue-grid {
  gap: 15px;
}
.page-performance-alerts .incident-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--alerts-border-soft);
  border-radius: 12px;
  padding: 12px;
}
.page-performance-alerts .incident-item strong {
  color: white;
  display: block;
  margin-bottom: 4px;
}
.page-performance-alerts .empty-state {
  text-align: center;
  padding: 40px;
  color: #64748b;
  background: rgba(15,23,42,0.65);
  border-radius: 14px;
  border: 1px solid var(--alerts-border-soft);
}
.page-performance-alerts .alerts-empty-title,
.page-performance-alerts .queue-title {
  margin: 0;
  color: white;
}
.page-performance-alerts .alerts-empty-title {
  margin-bottom: 8px;
}
.page-performance-alerts .alerts-empty-copy {
  margin: 0;
}
.page-performance-alerts .queue-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 26px 0 14px;
  flex-wrap: wrap;
}
.page-performance-alerts .queue-subtitle {
  color: var(--alerts-text-soft);
  font-size: 12px;
  margin-top: 4px;
}
.page-performance-alerts .queue-staff-name {
  font-size: 18px;
  font-weight: 900;
  color: white;
}
@media (max-width: 640px) {
  .page-performance-alerts .queue-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-performance-alerts .queue-action {
    width: 100%;
    text-align: center;
  }
}

/* === Settings Page === */
.page-settings {
  --bg-deep: #020617;
  --card-bg: rgba(15, 23, 42, 0.6);
  --border: rgba(255, 255, 255, 0.08);
  --primary: #22d3ee;
  --primary-dim: rgba(34, 211, 238, 0.1);
  --gold: #fbbf24;
  --danger: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  position: relative;
  min-height: 100vh;
  background: var(--bg-deep);
  background-image:
    radial-gradient(circle at 50% 0%, #1e1b4b 0%, transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.page-settings .glow-effect {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 100%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
.page-settings .settings-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 100px;
  position: relative;
  z-index: 10;
}
.page-settings .page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}
.page-settings .page-title {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}
.page-settings .page-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.page-settings .back-btn {
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid var(--border);
  transition: all 0.2s;
  text-transform: uppercase;
}
.page-settings .card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.page-settings .card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.page-settings .card-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  font-weight: 800;
}
.page-settings .action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.page-settings .action-item {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 14px;
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.page-settings .action-item:hover {
  background: var(--primary-dim);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px var(--primary-dim);
}
.page-settings .ai-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.page-settings .ai-sub {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}
.page-settings .ai-icon {
  font-size: 20px;
  margin-bottom: 2px;
}
.page-settings .action-item.premium {
  border-color: rgba(251, 191, 36, 0.3);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, transparent 100%);
}
.page-settings .premium-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--gold);
  color: #000;
  font-size: 8px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
}
.page-settings .invite-box {
  background: rgba(34, 211, 238, 0.03);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.page-settings .invite-code {
  font-size: 32px;
  font-family: monospace;
  font-weight: 900;
  margin: 10px 0;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
}
.page-settings .invite-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}
.page-settings .btn-action {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  transition: 0.2s;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-settings .btn-primary {
  background: linear-gradient(135deg, #22d3ee 0%, #0ea5e9 100%);
  color: #020617;
  border: none;
}
.page-settings .user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.page-settings .user-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-main);
}
.page-settings .btn-remove {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.3);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
}
.page-settings .advisor {
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--primary);
  padding: 15px;
  border-radius: 0 12px 12px 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}
.page-settings .cancel-link {
  display: block;
  text-align: center;
  margin-top: 30px;
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
}
@media (max-width: 600px) {
  .page-settings .page-header {
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
  }
  .page-settings .invite-actions,
  .page-settings .action-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}



/* === Sales Today page === */
.page-sales-today {
  max-width: 1100px;
  margin: 16px auto;
  padding: 16px;
  color: #e2e8f0;
}
.page-sales-today .card {
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}
.page-sales-today .row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.page-sales-today .field {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0b1220;
  color: #fff;
}
.page-sales-today .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  background: #22d3ee;
  color: #021018;
  font-weight: 700;
  text-decoration: none;
}
.page-sales-today table {
  width: 100%;
  border-collapse: collapse;
}
.page-sales-today th,
.page-sales-today td {
  padding: 10px;
  border-bottom: 1px solid #1f2937;
  text-align: left;
}
.page-sales-today th {
  color: #94a3b8;
  font-size: 12px;
  text-transform: uppercase;
}
.page-sales-today .right {
  text-align: right;
}


/* === Disciplinary Log page === */
.page-disciplinary-log {
  max-width: 1020px;
  margin: 0 auto;
  padding: 20px;
  color: white;
}
.page-disciplinary-log .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.page-disciplinary-log .stat-card {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 16px;
}
.page-disciplinary-log .stat-value {
  font-size: 28px;
  font-weight: 900;
  color: white;
  line-height: 1;
  margin-bottom: 5px;
}
.page-disciplinary-log .stat-label {
  font-size: 11px;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 800;
  letter-spacing: .04em;
}
.page-disciplinary-log .filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.page-disciplinary-log .pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #334155;
  text-decoration: none;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
}
.page-disciplinary-log .pill.active {
  background: rgba(34,211,238,0.15);
  color: var(--primary);
  border-color: rgba(34,211,238,0.35);
}
.page-disciplinary-log .search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.page-disciplinary-log .search-input {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #1e293b;
  color: white;
  font-size: 16px;
}
.page-disciplinary-log .btn-search {
  padding: 12px 25px;
  background: var(--primary);
  color: black;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}
.page-disciplinary-log .log-table {
  width: 100%;
  border-collapse: collapse;
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
}
.page-disciplinary-log .log-table th {
  text-align: left;
  padding: 15px;
  background: #1e293b;
  color: #94a3b8;
  font-size: 12px;
  text-transform: uppercase;
}
.page-disciplinary-log .log-table td {
  padding: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 14px;
  vertical-align: top;
}
.page-disciplinary-log .log-table tr:last-child td {
  border-bottom: none;
}
.page-disciplinary-log .status-tag {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  display: inline-block;
  margin: 2px 4px 2px 0;
}
.page-disciplinary-log .st-active {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.page-disciplinary-log .st-archived {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
}
.page-disciplinary-log .btn-view {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid var(--primary);
  padding: 5px 10px;
  border-radius: 6px;
  display: inline-block;
}
.page-disciplinary-log .btn-view:hover {
  background: rgba(34, 211, 238, 0.1);
}
.page-disciplinary-log .finding-preview {
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 6px;
  max-width: 360px;
}
.page-disciplinary-log .disciplinary-log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}
.page-disciplinary-log .disciplinary-log-subtitle {
  font-size: 12px;
  color: #94a3b8;
}
.page-disciplinary-log .disciplinary-log-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.page-disciplinary-log .disciplinary-log-link {
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
.page-disciplinary-log .disciplinary-log-link-muted {
  background: #334155;
}
.page-disciplinary-log .disciplinary-log-link-danger {
  background: #ef4444;
  box-shadow: 0 4px 10px rgba(239,68,68,0.3);
}
.page-disciplinary-log .disciplinary-log-clear {
  padding: 12px;
  color: #94a3b8;
  align-self: center;
  text-decoration: none;
}
.page-disciplinary-log .disciplinary-log-error {
  margin-bottom: 12px;
  color: #fca5a5;
  font-size: 13px;
}
.page-disciplinary-log .disciplinary-log-table-wrap {
  overflow-x: auto;
}
@media (max-width: 640px) {
  .page-disciplinary-log .search-bar {
    flex-direction: column;
  }
  .page-disciplinary-log .btn-search,
  .page-disciplinary-log .disciplinary-log-clear {
    width: 100%;
    text-align: center;
  }
}

/* === On The Clock page === */
.page-on-the-clock {
  --on-the-clock-primary: #22d3ee;
  --on-the-clock-card: #111827;
  --on-the-clock-border: #1f2937;
  --on-the-clock-muted: #94a3b8;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  box-sizing: border-box;
}
.page-on-the-clock .back-link {
  display: inline-block;
  color: #64748b;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.page-on-the-clock .card {
  background: var(--on-the-clock-card);
  border: 1px solid var(--on-the-clock-border);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 16px;
}
.page-on-the-clock .title {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  color: white;
  letter-spacing: -1px;
}
.page-on-the-clock .sub {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--on-the-clock-muted);
}
.page-on-the-clock .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  background: #0b1220;
  border: 1px solid var(--on-the-clock-border);
  border-radius: 18px;
  margin-bottom: 10px;
  gap: 12px;
}
.page-on-the-clock .name {
  color: #fff;
  font-weight: 900;
  font-size: 14px;
}
.page-on-the-clock .meta {
  color: #64748b;
  font-weight: 800;
  font-size: 11px;
  margin-top: 4px;
}
.page-on-the-clock .time {
  color: var(--on-the-clock-primary);
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;
}
.page-on-the-clock .on-the-clock-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.page-on-the-clock .on-the-clock-location {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.page-on-the-clock .on-the-clock-stats {
  text-align: right;
}
.page-on-the-clock .on-the-clock-last-sync {
  margin-top: 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}
.page-on-the-clock .on-the-clock-empty-title {
  font-weight: 900;
  color: #e2e8f0;
}
@media (max-width: 640px) {
  .page-on-the-clock .row {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-on-the-clock .time,
  .page-on-the-clock .on-the-clock-stats {
    text-align: left;
  }
}




/* === Pass 139 display alignment fixes === */
.page-floor-audit.page-culinary-audit {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    color: #f8fafc;
}

.page-floor-audit.page-culinary-audit .card,
.page-floor-audit.page-culinary-audit .make-label-banner,
.page-floor-audit.page-culinary-audit .smart-cta {
    width: 100%;
    box-sizing: border-box;
}

.page-floor-audit.page-culinary-audit .make-label-banner {
    margin-bottom: 20px;
}

.page-settings .settings-container,
.page-settings .card,
.page-settings .invite-box,
.page-settings .action-item,
.page-settings .btn-action,
.page-settings .btn-remove,
.page-settings .back-btn {
    box-sizing: border-box;
}

.page-settings .settings-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 100px;
}

.page-settings .page-header {
    margin-bottom: 20px;
}

.page-settings .card,
.page-settings .invite-box {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 20px;
    box-shadow: none;
}

.page-settings .action-grid {
    align-items: stretch;
}

.page-settings .action-item {
    min-width: 0;
    min-height: 116px;
    justify-content: center;
}

.page-settings .back-btn {
    background: rgba(255,255,255,0.05);
    color: #cbd5e1;
}

.page-settings .invite-code {
    font-size: 28px;
    letter-spacing: 3px;
    word-break: break-word;
}

/* === staff.php inline migration === */
.page-staff-roster {
  --staff-primary: #22d3ee;
  --staff-bg: #020617;
  --staff-card: #111827;
  --staff-border: #1f2937;
  --staff-muted: #94a3b8;
  --staff-danger: #ef4444;
}
.page-staff-roster.app-viewport {
  max-width: 520px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  box-sizing: border-box;
}
.page-staff-roster .card {
  background: var(--staff-card);
  border: 1px solid var(--staff-border);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
}
.page-staff-roster input,
.page-staff-roster select {
  width: 100%;
  background: #0f172a;
  border: 1px solid var(--staff-border);
  border-radius: 12px;
  padding: 14px;
  color: white;
  font-size: 16px;
  margin-bottom: 15px;
  box-sizing: border-box;
  outline: none;
  -webkit-appearance: none;
}
.page-staff-roster input:focus,
.page-staff-roster select:focus {
  border-color: var(--staff-primary);
}
.page-staff-roster .btn-primary {
  width: 100%;
  background: var(--staff-primary);
  color: #000;
  border: none;
  padding: 16px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(34, 211, 238, 0.2);
}
.page-staff-roster .staff-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: var(--staff-card);
  border: 1px solid var(--staff-border);
  border-radius: 16px;
  margin-bottom: 10px;
}
.page-staff-roster .back-link {
  display: inline-block;
  color: #64748b;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.page-staff-roster .msg-ok {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 800;
  text-align: center;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.page-staff-roster .msg-err {
  background: rgba(239, 68, 68, 0.10);
  color: #fecaca;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 900;
  text-align: center;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.page-staff-roster .empty {
  text-align:center;
  padding:40px;
  color:#94a3b8;
  border: 2px dashed var(--staff-border);
  border-radius: 20px;
  background: rgba(255,255,255,0.02);
  font-weight: 800;
  line-height: 1.5;
}
.page-staff-roster .notice {
  background: rgba(34,211,238,0.06);
  border: 1px solid rgba(34,211,238,0.20);
  border-radius: 16px;
  padding: 14px;
  color: #cbd5e1;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 16px;
}
.page-staff-roster .api-badge {
  font-size: 9px;
  background: #6366f1;
  color: white;
  padding: 3px 6px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.page-staff-roster.app-viewport {
  max-width: 980px;
}

.page-staff-roster .staff-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.85fr);
  gap: 18px;
  padding: 22px;
  margin-bottom: 18px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(8, 15, 30, 0.92));
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.38);
}

.page-staff-roster .staff-eyebrow,
.page-staff-roster .staff-kpi-label,
.page-staff-roster .staff-field-label,
.page-staff-roster .staff-filter-title {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--staff-primary);
}

.page-staff-roster .staff-title {
  margin: 10px 0 10px;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.page-staff-roster .staff-copy,
.page-staff-roster .staff-filter-copy,
.page-staff-roster .staff-side-copy,
.page-staff-roster .staff-kpi-copy {
  color: #94a3b8;
  line-height: 1.6;
}

.page-staff-roster .staff-hero-meta,
.page-staff-roster .staff-route-grid,
.page-staff-roster .staff-role-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-staff-roster .staff-inline-pill,
.page-staff-roster .staff-sync-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 800;
}

.page-staff-roster .staff-route-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.page-staff-roster .staff-route-link {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: rgba(8, 47, 73, 0.18);
  text-decoration: none;
}

.page-staff-roster .staff-route-link strong,
.page-staff-roster .staff-row-name,
.page-staff-roster .staff-side-title,
.page-staff-roster .staff-sync-title {
  color: #fff;
}

.page-staff-roster .staff-route-link span,
.page-staff-roster .staff-row-role,
.page-staff-roster .staff-side-list,
.page-staff-roster .staff-sync-copy {
  color: #cbd5e1;
  line-height: 1.55;
}

.page-staff-roster .staff-route-link:hover,
.page-staff-roster .staff-route-link:focus-visible,
.page-staff-roster .staff-filter-chip:hover,
.page-staff-roster .staff-filter-chip:focus-visible {
  border-color: rgba(34, 211, 238, 0.4);
  outline: none;
}

.page-staff-roster .staff-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.page-staff-roster .staff-kpi-card,
.page-staff-roster .staff-filter-card,
.page-staff-roster .staff-form-card,
.page-staff-roster .staff-side-card {
  margin: 0;
}

.page-staff-roster .staff-kpi-card {
  padding: 16px;
}

.page-staff-roster .staff-kpi-value {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 900;
  color: #fff;
}

.page-staff-roster .staff-sync-status {
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
}

.page-staff-roster .staff-sync-status-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.page-staff-roster .staff-sync-title {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 900;
}

.page-staff-roster .staff-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
  gap: 16px;
  margin-bottom: 20px;
}

.page-staff-roster .staff-form-card,
.page-staff-roster .staff-side-card,
.page-staff-roster .staff-filter-card {
  padding: 18px;
}

.page-staff-roster .staff-field-label {
  display: block;
  margin-bottom: 8px;
}

.page-staff-roster .staff-search-input {
  margin-bottom: 12px;
}

.page-staff-roster .staff-filter-section {
  margin: 28px 0 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-staff-roster .staff-filter-title {
  margin: 0 0 8px 5px;
}

.page-staff-roster .staff-filter-copy {
  margin-left: 5px;
}

.page-staff-roster .staff-role-chip-grid {
  gap: 8px;
}

.page-staff-roster .staff-filter-chip {
  border-radius: 999px;
}

.page-staff-roster .staff-row-name {
  font-weight: 800;
  font-size: 16px;
}

.page-staff-roster .staff-row-role {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--staff-primary);
}

.page-staff-roster .staff-row-status {
  font-size: 10px;
  background: rgba(34, 211, 238, 0.1);
  color: var(--staff-primary);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 900;
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.page-staff-roster .staff-side-title {
  margin: 8px 0 10px;
  font-size: 22px;
  line-height: 1.08;
}

.page-staff-roster .staff-side-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .page-staff-roster .staff-hero-card,
  .page-staff-roster .staff-panel-grid,
  .page-staff-roster .staff-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* === leadersboard cache note === */
.page-leadersboard .leaderboard-cache-note {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  background: rgba(34, 211, 238, 0.08);
  color: #a5f3fc;
  font-size: 11px;
  font-weight: 800;
}


/* === edit_audit.php inline migration === */
.page-edit-audit {
    --edit-audit-bg: var(--audit-bg-deep, #020617);
    --edit-audit-card: var(--audit-card-bg, #0f172a);
    --edit-audit-accent: var(--audit-primary, #22d3ee);
    --edit-audit-text: #ffffff;
    --edit-audit-gold: var(--audit-gold, #fbbf24);
    --edit-audit-orange: var(--audit-orange, #f97316);
    --edit-audit-green: var(--audit-green, #10b981);
    --edit-audit-danger: var(--audit-danger, #ef4444);
}

.page-edit-audit body,
body.page-edit-audit {
    background: var(--edit-audit-bg);
    color: var(--edit-audit-text);
}

.card.page-edit-audit {
    background: var(--edit-audit-card);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.page-edit-audit label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 800;
}

.page-edit-audit input,
.page-edit-audit select,
.page-edit-audit textarea {
    width: 100%;
    padding: 14px;
    background: #020617;
    border: 1px solid #334155;
    color: #fff;
    border-radius: 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
    font-size: 16px;
}

.page-edit-audit .live-score-bar {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--edit-audit-gold);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-edit-audit .live-val {
    font-size: 24px;
    font-weight: 900;
    color: var(--edit-audit-gold);
}

.page-edit-audit .rating-text {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--edit-audit-gold);
}

.page-edit-audit .score-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.page-edit-audit .score-pill {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.page-edit-audit .score-label {
    font-size: 11px;
    font-weight: 800;
    color: #ccc;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.page-edit-audit .score-btn {
    flex: 1;
    padding: 10px 0;
    background: rgba(0,0,0,0.4);
    color: #94a3b8;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

.page-edit-audit .score-btn.primary {
    background: var(--edit-audit-accent);
    color: #000;
    box-shadow: 0 0 10px rgba(34,211,238,0.3);
}

.page-edit-audit .score-buttons {
    display: flex;
    gap: 4px;
}

.page-edit-audit .btn {
    width: 100%;
    padding: 16px;
    background: var(--edit-audit-accent);
    color: #000;
    border: none;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
}

.page-edit-audit .photo-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #334155;
    margin-bottom: 10px;
    display: block;
}

.page-edit-audit .ai-box {
    display: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 15px;
    border-left: 4px solid;
    background: rgba(0,0,0,0.2);
}

.page-edit-audit .ai-pass { border-color: var(--edit-audit-green); color: #34d399; }
.page-edit-audit .ai-fail { border-color: var(--edit-audit-danger); color: #f87171; }
.page-edit-audit .ai-loading { border-color: var(--edit-audit-accent); color: var(--edit-audit-accent); }

.page-edit-audit .action-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.page-edit-audit .am-content {
    background: #1e293b;
    padding: 25px;
    border-radius: 16px;
    width: 90%;
    max-width: 320px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.page-edit-audit .am-btn {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: none;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.page-edit-audit .sales-note {
    display: none;
    margin: -6px 0 14px 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(34,211,238,0.08);
    border: 1px solid rgba(34,211,238,0.22);
    color: #67e8f9;
    font-size: 12px;
    line-height: 1.45;
}

.page-edit-audit .sales-note .apply-btn {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 10px;
    background: rgba(34,211,238,0.16);
    color: #cffafe;
    font-weight: 800;
    padding: 10px 12px;
    cursor: pointer;
}

.page-edit-audit .sales-note .apply-btn:hover {
    background: rgba(34,211,238,0.24);
}


/* === Pass 141 responsive shell fixes === */
.site-header-container,
.main-footer {
    width: min(100%, var(--app-max-width));
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.page-floor-audit,
.page-ring-it,
.page-sales-today,
.page-disciplinary-log,
.page-on-the-clock,
.page-settings .settings-container {
    width: 100%;
    max-width: var(--app-max-width);
    margin-left: auto;
    margin-right: auto;
}

.page-floor-audit,
.page-ring-it,
.page-sales-today,
.page-disciplinary-log,
.page-on-the-clock,
.page-settings .settings-container {
    padding-left: 16px;
    padding-right: 16px;
}

@media (max-width: 820px) {
    .page-floor-audit,
    .page-ring-it,
    .page-sales-today,
    .page-disciplinary-log,
    .page-on-the-clock,
    .page-settings .settings-container {
        padding-left: 14px;
        padding-right: 14px;
    }
}

@media (max-width: 640px) {
    .page-floor-audit,
    .page-ring-it,
    .page-sales-today,
    .page-disciplinary-log,
    .page-on-the-clock,
    .page-settings .settings-container {
        padding-left: 12px;
        padding-right: 12px;
    }
}


/* === ai_incidents.php inline migration === */
.page-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-bottom: 80px;
}

.page-shell .aii-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

.page-shell .quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.page-shell .quick-btn {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 15px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-weight: 800;
  font-size: 11px;
  transition: all 0.2s;
  text-transform: uppercase;
}

.page-shell .quick-btn:hover {
  background: rgba(34, 211, 238, 0.1);
  border-color: #22d3ee;
  color: white;
  transform: translateY(-2px);
}

.page-shell .icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

.page-shell .inc-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-shell .inc-card {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px;
  position: relative;
  transition: transform 0.2s;
}

.page-shell .inc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.page-shell .inc-meta {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.page-shell .inc-title {
  font-size: 16px;
  font-weight: 900;
  color: white;
  margin: 0;
}

.page-shell .inc-desc {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
  background: rgba(0,0,0,0.2);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  margin-top: 10px;
}

.page-shell .photo-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: 0.2s;
  overflow: hidden;
}

.page-shell .photo-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}

.page-shell .photo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-shell .card-footer {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  align-items: center;
}

.page-shell .btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  font-size: 11px;
  text-transform: uppercase;
  transition: 0.2s;
  text-align: center;
}

.page-shell .btn-resolve {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #020617;
}

.page-shell .btn-edit {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.08);
}

.page-shell .btn-delete {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
  flex: 0 0 44px;
}

#incidentModal.modal,
#imgOverlay.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 20000;
}

#incidentModal .modal-inner,
#imgOverlay .modal-inner {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 25px;
  border-radius: 24px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.7);
}

#incidentModal h3,
#imgOverlay h3 {
  color: white;
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 900;
}

#incidentModal input,
#incidentModal textarea,
#incidentModal select {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: #020617;
  border: 1px solid rgba(255,255,255,0.08);
  color: white;
  font-size: 15px;
  margin-bottom: 12px;
  box-sizing: border-box;
  outline: none;
}

#incidentModal input:focus,
#incidentModal textarea:focus,
#incidentModal select:focus {
  border-color: #22d3ee;
}

#imgOverlay .modal-inner {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#fullResImage {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 16px;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 100px rgba(0,0,0,0.8);
}

.close-circle-btn {
  margin-top: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.close-circle-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: scale(1.1);
}

@media (max-width: 640px) {
  .page-shell .aii-card {
    padding: 20px;
    border-radius: 20px;
  }

  .page-shell .quick-grid {
    grid-template-columns: 1fr;
  }

  .page-shell .inc-header,
  .page-shell .card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .page-shell .btn-delete {
    flex-basis: auto;
  }
}



/* === Visual consistency sweep: audit, incidents, settings === */
.page-floor-audit .top-links {
  position: sticky;
  top: calc(var(--he-sticky-top, 70px) + 10px);
  z-index: 20;
  padding: 10px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.32);
}

.page-floor-audit .link-btn {
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  border: 1px solid rgba(255,255,255,0.08);
}

.page-floor-audit .link-btn:hover {
  transform: translateY(-1px);
  background: rgba(34,211,238,0.12);
  color: #e0f2fe;
  border-color: rgba(34,211,238,0.22);
}

.page-floor-audit .card {
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.3);
}

.page-floor-audit .audit-hero-card {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.84));
}

.page-floor-audit .audit-hero-head,
.page-floor-audit .audit-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.page-floor-audit .audit-eyebrow,
.page-floor-audit .audit-subsection-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 900;
  color: #67e8f9;
}

.page-floor-audit .audit-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.02;
  letter-spacing: -.03em;
}

.page-floor-audit .audit-subtitle,
.page-floor-audit .audit-section-head p,
.page-floor-audit .audit-helper-strip,
.page-floor-audit .audit-score-intro,
.page-floor-audit .audit-save-note {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
}

.page-floor-audit .audit-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(34,211,238,0.12);
  border: 1px solid rgba(34,211,238,0.24);
  color: #67e8f9;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}

.page-floor-audit .audit-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 16px;
}

.page-floor-audit .audit-stat-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-floor-audit .audit-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  color: #94a3b8;
}

.page-floor-audit .audit-stat-value {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 900;
  color: #f8fafc;
}

.page-floor-audit .audit-stat-copy {
  margin-top: 6px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
}

.page-floor-audit .audit-helper-strip,
.page-floor-audit .audit-inline-note {
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}

.page-floor-audit .floor-audit-continuity-note {
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(34,211,238,0.16);
  background: rgba(34,211,238,0.08);
  color: #d8f8ff;
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 16px;
}

.page-floor-audit .floor-audit-status-strip {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.24);
  background: rgba(15,23,42,0.74);
}

.page-floor-audit .floor-audit-status-strip.is-saved {
  border-color: rgba(16,185,129,0.28);
  background: rgba(16,185,129,0.12);
}

.page-floor-audit .floor-audit-status-strip.is-updated {
  border-color: rgba(34,211,238,0.24);
  background: rgba(34,211,238,0.10);
}

.page-floor-audit .floor-audit-status-title {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
  margin-bottom: 4px;
}

.page-floor-audit .floor-audit-status-copy {
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}

.page-floor-audit .floor-audit-watch-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.page-floor-audit .floor-audit-entry-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-floor-audit .floor-audit-watch-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-floor-audit .floor-audit-watch-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  color: #94a3b8;
}

.page-floor-audit .floor-audit-watch-value {
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
  color: #f8fafc;
}

.page-floor-audit .floor-audit-watch-note {
  margin-top: 8px;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.55;
}

.page-floor-audit .floor-audit-watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.page-floor-audit .floor-audit-watch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  background: rgba(34, 211, 238, 0.08);
  color: #cffafe;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}

.page-floor-audit .floor-audit-watch-link:hover {
  transform: translateY(-1px);
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.36);
  color: #ecfeff;
}

.page-floor-audit .audit-inline-note {
  margin: -6px 0 14px;
  font-size: 12px;
}

.page-floor-audit .audit-inline-note-success {
  background: rgba(16,185,129,0.10);
  border-color: rgba(16,185,129,0.24);
  color: #d1fae5;
}

.page-floor-audit .audit-inline-note-info {
  background: rgba(34,211,238,0.08);
  border-color: rgba(34,211,238,0.22);
  color: #67e8f9;
}

.page-floor-audit .audit-form-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.8));
}

.page-floor-audit .audit-section-head h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 24px;
}

.page-floor-audit .audit-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-floor-audit .audit-score-intro {
  margin: -4px 0 16px;
}

.page-floor-audit .score-pill {
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.page-floor-audit .score-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(34,211,238,0.22);
  background: rgba(34,211,238,0.08);
}

.page-floor-audit .score-btn {
  transition: transform .14s ease, border-color .14s ease, background .14s ease, color .14s ease;
}

.page-floor-audit .score-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(34,211,238,0.34);
  color: #fff;
}

.page-floor-audit .btn.save {
  box-shadow: 0 18px 30px rgba(6, 182, 212, 0.22);
}

.page-shell.page-incidents .container {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 0 0;
}

.page-shell.page-incidents .incident-hero-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.74));
}

.page-shell.page-incidents .incident-hero-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.page-shell.page-incidents .incident-kicker {
  font-size: 11px;
  font-weight: 900;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 6px;
}

.page-shell.page-incidents .incident-title-main {
  margin: 0;
  font-size: 30px;
  line-height: 1.02;
  letter-spacing: -.03em;
  color: #fff;
}

.page-shell.page-incidents .incident-hero-copy,
.page-shell.page-incidents .incident-hero-note,
.page-shell.page-incidents .incident-stat-copy {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
}

.page-shell.page-incidents .incident-hero-summary {
  min-width: 150px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: right;
}

.page-shell.page-incidents .incident-summary-label {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 800;
}

.page-shell.page-incidents .incident-summary-value {
  margin-top: 8px;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  color: #fff;
}

.page-shell.page-incidents .incident-summary-danger {
  margin-top: 6px;
  font-size: 10px;
  color: #fca5a5;
  text-transform: uppercase;
  font-weight: 800;
}

.page-shell.page-incidents .incident-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 14px;
}

.page-shell.page-incidents .incident-stat-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(255,255,255,0.08);
}

.page-shell.page-incidents .incident-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  color: #94a3b8;
}

.page-shell.page-incidents .incident-stat-value {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 900;
  color: #fff;
}

.page-shell.page-incidents .incident-stat-value-danger,
.page-shell.page-incidents .incident-severity-pill.danger {
  color: #fca5a5;
}

.page-shell.page-incidents .incident-hero-note {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}

.page-shell.page-incidents .quick-btn {
  min-height: 98px;
}

.page-shell.page-incidents .inc-card {
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.22);
}

.page-shell.page-incidents .inc-card:hover {
  transform: translateY(-2px);
}

.page-shell.page-incidents .incident-severity-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(148,163,184,0.12);
  border: 1px solid rgba(148,163,184,0.18);
  color: #cbd5e1;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .08em;
}

.page-shell.page-incidents .inc-empty {
  text-align: center;
  padding: 22px;
  color: var(--text-muted);
  font-size: 12px;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,0.12);
  background: rgba(15,23,42,0.5);
}

.page-shell.page-incidents .inc-empty-error {
  color: #fca5a5;
  border-color: rgba(239,68,68,0.24);
}

.page-shell.page-incidents .incident-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 18px;
}

.page-shell.page-incidents .incident-flow-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(255,255,255,0.08);
}

.page-shell.page-incidents .incident-flow-label,
.page-shell.page-incidents .incident-section-kicker,
.page-shell.page-incidents .incident-modal-kicker {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  color: #94a3b8;
}

.page-shell.page-incidents .incident-flow-title,
.page-shell.page-incidents .incident-section-title {
  margin: 8px 0 0;
  font-size: 19px;
  line-height: 1.15;
  color: #fff;
}

.page-shell.page-incidents .incident-flow-copy,
.page-shell.page-incidents .incident-section-copy,
.page-shell.page-incidents .incident-modal-copy,
.page-shell.page-incidents .incident-modal-helper,
.page-shell.page-incidents .incident-modal-note,
.page-shell.page-incidents .incident-modal-message {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #cbd5e1;
}

.page-shell.page-incidents .incident-flow-link-row,
.page-shell.page-incidents .incident-board-actions,
.page-shell.page-incidents .incident-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.page-shell.page-incidents .incident-flow-link,
.page-shell.page-incidents .incident-board-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(34,211,238,0.28);
  background: rgba(34,211,238,0.12);
  color: #cffafe;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-shell.page-incidents .incident-flow-link-secondary,
.page-shell.page-incidents .incident-board-link-secondary {
  border-color: rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: #e2e8f0;
}

.page-shell.page-incidents .incident-flow-link:hover,
.page-shell.page-incidents .incident-board-link:hover {
  transform: translateY(-1px);
  border-color: rgba(34,211,238,0.42);
  color: #fff;
}

.page-shell.page-incidents .incident-board-shell {
  overflow: hidden;
}

.page-shell.page-incidents .incident-board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.page-shell.page-incidents .incident-modal-inner {
  max-width: 640px;
}

.page-shell.page-incidents .incident-modal-head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.page-shell.page-incidents .incident-modal-label {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 900;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.page-shell.page-incidents .incident-modal-field {
  margin-bottom: 12px;
}

.page-shell.page-incidents .incident-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-shell.page-incidents .incident-modal-file {
  padding: 10px !important;
}

.page-shell.page-incidents .incident-modal-note {
  margin-top: 6px;
}

.page-shell.page-incidents .incident-modal-message {
  text-align: center;
}

.page-shell.page-incidents-legacy .container {
  max-width: 1140px;
}

.page-shell.page-incidents-legacy .incident-legacy-hero {
  overflow: hidden;
}

.page-shell.page-incidents-legacy .incident-legacy-status {
  border-left: 4px solid var(--primary);
  padding: 16px 18px;
}

.page-shell.page-incidents-legacy .incident-status-copy {
  margin-top: 6px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
}

.page-shell.page-incidents-legacy .incident-legacy-list {
  display: grid;
  gap: 16px;
}

.page-shell.page-incidents-legacy .incident-legacy-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.7));
}

.page-shell.page-incidents-legacy .incident-legacy-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.page-shell.page-incidents-legacy .incident-legacy-chip-row {
  flex-wrap: wrap;
}

.page-shell.page-incidents-legacy .incident-legacy-title {
  margin: 10px 0 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.page-shell.page-incidents-legacy .incident-legacy-meta {
  margin-top: 10px;
}

.page-shell.page-incidents-legacy .incident-legacy-time-wrap {
  min-width: 120px;
  text-align: right;
}

.page-shell.page-incidents-legacy .incident-legacy-time-note {
  display: block;
  margin-top: 8px;
  color: #94a3b8;
  font-size: 10px;
  letter-spacing: .12em;
  font-weight: 800;
  text-transform: uppercase;
}

.page-shell.page-incidents-legacy .incident-legacy-body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, .75fr);
  gap: 18px;
  margin-top: 16px;
}

.page-shell.page-incidents-legacy .incident-legacy-main {
  min-width: 0;
}

.page-shell.page-incidents-legacy .incident-legacy-desc {
  margin-top: 0;
}

.page-shell.page-incidents-legacy .incident-legacy-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.page-shell.page-incidents-legacy .incident-legacy-side-card {
  padding: 14px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.32);
  border: 1px solid rgba(255,255,255,0.08);
}

.page-shell.page-incidents-legacy .incident-legacy-side-card-muted {
  background: rgba(148,163,184,0.08);
}

.page-shell.page-incidents-legacy .incident-legacy-side-copy {
  margin-top: 8px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
}

.page-shell.page-incidents-legacy .incident-legacy-evidence-link {
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.page-shell.page-incidents-legacy .incident-legacy-evidence-link:hover {
  border-color: rgba(34,211,238,0.24);
  transform: translateY(-1px);
}

.page-shell.page-incidents-legacy .incident-legacy-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
}

.page-shell.page-incidents-legacy .incident-legacy-evidence-copy {
  color: #cffafe;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-shell.page-incidents-legacy .incident-legacy-ai {
  margin-top: 12px;
}

.page-shell.page-incidents-legacy .incident-legacy-actions {
  margin-top: 18px;
}

.page-shell.page-incidents-legacy .incident-action-btn {
  min-height: 46px;
}

@media (max-width: 900px) {
  .page-shell.page-incidents-legacy .incident-legacy-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell.page-incidents-legacy .container {
    padding-top: 14px;
  }

  .page-shell.page-incidents-legacy .incident-legacy-card-head,
  .page-shell.page-incidents-legacy .incident-legacy-actions {
    flex-direction: column;
  }

  .page-shell.page-incidents-legacy .incident-legacy-time-wrap {
    min-width: 0;
    text-align: left;
  }

  .page-shell.page-incidents-legacy .incident-action-btn {
    width: 100%;
  }
}


.page-settings .settings-hero-card {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.78));
}

.page-settings .settings-hero-header {
  margin-bottom: 18px;
  padding-bottom: 0;
  border-bottom: none;
}

.page-settings .settings-kicker {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--primary);
  margin-bottom: 6px;
}

.page-settings .settings-hero-copy,
.page-settings .settings-stat-copy,
.page-settings .card-subtitle,
.page-settings .invite-copy {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.page-settings .settings-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.page-settings .settings-stat-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.page-settings .settings-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  font-weight: 800;
}

.page-settings .settings-stat-value {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 900;
  color: var(--text-main);
  word-break: break-word;
}

.page-settings .settings-advisor {
  border-left-width: 4px;
  border-left-style: solid;
  border-radius: 16px;
}

.page-settings .settings-advisor.is-good {
  border-left-color: #10b981;
  background: rgba(16,185,129,0.08);
}

.page-settings .settings-advisor.is-alert {
  border-left-color: #ef4444;
  background: rgba(239,68,68,0.08);
}

.page-settings .settings-advisor.is-learning {
  border-left-color: #fbbf24;
  background: rgba(251,191,36,0.08);
}

.page-settings .card-subtitle {
  margin-top: 6px;
}

.page-settings .invite-copy {
  margin-bottom: 12px;
}

.page-settings .owner-plan-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: rgba(34, 211, 238, 0.08);
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

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

.page-settings .settings-link-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.42);
  text-decoration: none;
  color: #fff;
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.16);
}

.page-settings .settings-link-card strong {
  font-size: 18px;
  line-height: 1.15;
}

.page-settings .settings-link-card span:last-child {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.page-settings .settings-link-kicker {
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.page-settings .settings-link-card:hover,
.page-settings .settings-link-card:focus-visible {
  border-color: rgba(34, 211, 238, 0.34);
  background: rgba(8, 47, 73, 0.26);
  outline: none;
}

.page-settings .settings-secondary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.page-settings .settings-secondary-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.36);
  color: #cbd5e1;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.page-settings .settings-secondary-links a:hover,
.page-settings .settings-secondary-links a:focus-visible {
  border-color: rgba(34, 211, 238, 0.28);
  color: #ecfeff;
  outline: none;
}

.page-settings .invite-box--calm {
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.16);
}

.page-settings .invite-box--calm .invite-code {
  font-size: clamp(28px, 5vw, 36px);
  letter-spacing: 3px;
  text-shadow: none;
}

@media (max-width: 640px) {
  .page-settings .settings-link-grid {
    grid-template-columns: 1fr;
  }
}

.page-settings .team-count-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(34,211,238,0.12);
  border: 1px solid rgba(34,211,238,0.2);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.page-settings .action-item {
  min-height: 112px;
  justify-content: center;
}

.page-settings .action-item[style*="grid-column: span 2"] {
  align-items: flex-start;
}

.page-settings .user-row:last-child {
  border-bottom: none;
}

@media (max-width: 900px) {
  .page-floor-audit .floor-audit-entry-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-floor-audit .audit-hero-head,
  .page-floor-audit .audit-section-head,
  .page-shell.page-incidents .incident-hero-top,
  .page-shell.page-incidents .incident-board-head {
    flex-direction: column;
  }

  .page-floor-audit .audit-stat-grid,
  .page-floor-audit .floor-audit-watch-summary,
  .page-shell.page-incidents .incident-stat-grid,
  .page-shell.page-incidents .incident-flow-grid,
  .page-shell.page-incidents .incident-modal-grid,
  .page-settings .settings-stat-grid,
  .page-floor-audit .audit-inline-grid {
    grid-template-columns: 1fr;
  }

  .page-shell.page-incidents .container {
    padding-top: 14px;
  }

  .page-shell.page-incidents .incident-flow-link,
  .page-shell.page-incidents .incident-board-link,
  .page-shell.page-incidents .incident-modal-actions .btn {
    width: 100%;
  }
}

/* === Pass 144: responsive app-shell catch-up === */
.page-leadersboard .leaderboard-card,
.page-performance-alerts .alerts-grid,
.page-weekly-report .bracket,
.page-weekly-report .card,
.page-disciplinary-log .stat-card,
.page-disciplinary-log .disciplinary-log-table-wrap {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .page-weekly-report,
  .page-performance-alerts,
  .page-disciplinary-log {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  .page-weekly-report .header {
    margin-bottom: 22px;
  }

  .page-weekly-report .stat-grid,
  .page-weekly-report .temp-grid {
    grid-template-columns: 1fr;
  }

  .page-weekly-report .card-head,
  .page-leadersboard .rank-item,
  .page-performance-alerts .alerts-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-leadersboard .score-box {
    width: 100%;
    text-align: left;
  }

  .page-disciplinary-log .stats-grid {
    grid-template-columns: 1fr;
  }
}



/* === Pass 34: live operations lane continuity === */
.live-ops-shell {
  max-width: var(--app-max-width);
  margin: 0 auto;
  box-sizing: border-box;
}
.live-ops-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.live-ops-back-link:hover {
  color: #e2e8f0;
}
.live-ops-topbar {
  display: grid;
  gap: 16px;
}
.live-ops-copy {
  display: grid;
  gap: 8px;
}
.live-ops-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.18);
  color: #bae6fd;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.live-ops-title {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.live-ops-copy p,
.live-ops-sub {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.6;
}
.live-ops-sub strong {
  color: #fff;
}
.live-ops-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.live-ops-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.live-ops-lane {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.live-ops-lane-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.live-ops-lane-link:hover {
  color: #fff;
  border-color: rgba(56, 189, 248, 0.4);
}
.live-ops-lane-link.is-current {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(37, 99, 235, 0.18));
  border-color: rgba(56, 189, 248, 0.45);
  color: #fff;
  box-shadow: 0 18px 40px rgba(2, 132, 199, 0.16);
}
.live-ops-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.live-ops-status {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.62);
  padding: 16px 18px;
}
.live-ops-status[data-tone="warning"] {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(120, 53, 15, 0.16);
}
.live-ops-status[data-tone="error"] {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(127, 29, 29, 0.18);
}
.live-ops-status-title {
  margin: 0 0 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}
.live-ops-status-copy {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.55;
}
.live-ops-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.live-ops-kpi {
  background: rgba(2, 6, 23, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  padding: 14px 16px;
}
.live-ops-kpi-label {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.live-ops-kpi-value {
  margin-top: 8px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}
.live-ops-kpi-meta {
  margin-top: 6px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.45;
}
.live-ops-table-card {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
  padding: 14px;
}
.live-ops-table-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}
.live-ops-empty {
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.42);
  color: #cbd5e1;
}
.live-ops-empty strong {
  color: #fff;
}
@media (min-width: 900px) {
  .live-ops-topbar {
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
    align-items: start;
  }
  .live-ops-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .live-ops-shell {
    padding-left: 12px;
    padding-right: 12px;
  }
  .live-ops-actions > *,
  .live-ops-lane-link {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }
  .live-ops-kpis {
    grid-template-columns: 1fr;
  }
}

/* === Pass 149: app-width normalization for dense data pages === */
.page-open-checks,
.page-sales-today,
.page-disciplinary-log {
  max-width: var(--app-max-width) !important;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.page-open-checks .card,
.page-sales-today .card,
.page-disciplinary-log .stat-card,
.page-disciplinary-log .disciplinary-log-table-wrap,
.page-disciplinary-log .disciplinary-log-header,
.page-disciplinary-log .search-bar {
  width: 100%;
  box-sizing: border-box;
}

.page-open-checks table,
.page-sales-today table,
.page-disciplinary-log .log-table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  .page-open-checks,
  .page-sales-today,
  .page-disciplinary-log {
    padding-left: 12px;
    padding-right: 12px;
  }

  .page-open-checks .row,
  .page-sales-today .row,
  .page-disciplinary-log .disciplinary-log-header,
  .page-disciplinary-log .disciplinary-log-actions,
  .page-disciplinary-log .search-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .page-open-checks .row > *,
  .page-sales-today .row > *,
  .page-disciplinary-log .disciplinary-log-actions > *,
  .page-disciplinary-log .search-bar > * {
    width: 100%;
    box-sizing: border-box;
  }

  .page-open-checks .btn,
  .page-sales-today .btn,
  .page-disciplinary-log .disciplinary-log-link,
  .page-disciplinary-log .btn-search,
  .page-disciplinary-log .disciplinary-log-clear {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .page-open-checks table th,
  .page-open-checks table td,
  .page-sales-today table th,
  .page-sales-today table td,
  .page-disciplinary-log .log-table th,
  .page-disciplinary-log .log-table td {
    white-space: nowrap;
  }
}



/* === guides.php inline migration + app shell === */
.mobile-menu-btn {
  display: none;
  width: calc(100% - 32px);
  max-width: var(--app-max-width);
  margin: 12px auto 0;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--primary);
  cursor: pointer;
  box-sizing: border-box;
}

.guide-wrapper {
  display: flex;
  width: 100%;
  min-height: calc(100svh - var(--he-sticky-top, 70px) - 24px);
  margin: 16px auto 108px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.guide-nav {
  width: 220px;
  flex: 0 0 220px;
  background: rgba(2, 6, 23, 0.55);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow-y: auto;
  padding: 18px 14px 22px;
  box-sizing: border-box;
}

.nav-cat {
  font-size: 11px;
  font-weight: 900;
  color: var(--gold, #fbbf24);
  text-transform: uppercase;
  margin: 22px 0 10px;
  letter-spacing: 0.08em;
}

.nav-link {
  display: block;
  padding: 10px 12px;
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  margin-bottom: 4px;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(34, 211, 238, 0.12);
  color: var(--primary, #22d3ee);
  transform: translateX(2px);
}

.guide-content {
  flex: 1;
  min-width: 0;
  padding: 24px 20px 28px;
  overflow-y: auto;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

.guide-content h1 {
  font-size: 30px;
  color: var(--primary, #22d3ee);
  margin: 0 0 8px;
  line-height: 1.1;
}

.guide-content h2 {
  font-size: 22px;
  color: var(--primary, #22d3ee);
  margin-top: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.guide-content h3 {
  font-size: 17px;
  color: var(--gold, #fbbf24);
  margin-top: 22px;
}

.guide-content p,
.guide-content li {
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 14px;
  font-size: 14px;
}

.guide-content ul,
.guide-content ol {
  padding-left: 20px;
}

.tip-box,
.danger-box {
  padding: 14px 15px;
  margin: 18px 0;
  border-radius: 12px;
}

.tip-box {
  background: rgba(34, 211, 238, 0.1);
  border-left: 4px solid var(--primary, #22d3ee);
}

.danger-box {
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid #ef4444;
}

@media (max-width: 820px) {
  .mobile-menu-btn {
    display: block;
  }

  .guide-wrapper {
    min-height: auto;
    margin-top: 10px;
    border-radius: 18px;
    flex-direction: column;
  }

  .guide-nav {
    display: none;
    width: 100%;
    flex: 0 0 auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .guide-nav.show {
    display: block;
  }

  .guide-content {
    padding: 20px 16px 24px;
    overflow: visible;
  }

  .guide-content h1 {
    font-size: 26px;
  }
}

@media print {
  .guide-nav,
  .mobile-menu-btn,
  header,
  footer {
    display: none !important;
  }

  .guide-wrapper,
  .guide-content {
    width: 100%;
    max-width: none !important;
    padding: 0;
    overflow: visible;
    background: white;
    color: black;
    border: 0;
    box-shadow: none;
  }

  .guide-content h1,
  .guide-content h2,
  .guide-content h3,
  .guide-content p,
  .guide-content li {
    color: black !important;
  }
}

/* === contact_support.php inline migration === */
.support-wrap {
  width: min(1180px, calc(100% - 20px));
  margin: 20px auto 110px;
  padding: 0 16px;
}

.support-hero {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.support-hero-meta {
  display: grid;
  gap: 10px;
}

.support-mini-stat {
  padding: 13px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.78), rgba(15, 23, 42, 0.78));
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.support-mini-stat span {
  display: block;
  margin-bottom: 6px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.support-mini-stat strong {
  display: block;
  color: #f8fafc;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.support-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.76));
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 22px 48px rgba(2, 6, 23, 0.24);
  backdrop-filter: blur(16px);
}

.support-title {
  margin: 0 0 6px;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.support-sub {
  margin: 0;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.72;
  max-width: 72ch;
}

.support-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.support-hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(2, 6, 23, 0.5);
  color: #e0f2fe;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.support-hero-link:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 14px 26px rgba(8, 47, 73, 0.28);
}

.support-hero-note {
  margin-top: 14px;
  margin-bottom: 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.65;
}

.support-route-band {
  margin-bottom: 18px;
}

.support-route-head {
  margin-bottom: 16px;
}

.support-route-copy {
  margin: 0;
  max-width: 52ch;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.7;
}

.support-route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.support-route-card {
  display: grid;
  gap: 8px;
  min-height: 100%;
  padding: 18px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.46);
  border: 1px solid rgba(148, 163, 184, 0.18);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.support-route-card:hover,
.support-route-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.38);
  box-shadow: 0 18px 34px rgba(8, 47, 73, 0.22);
  background: rgba(15, 23, 42, 0.78);
  outline: none;
}

.support-route-eyebrow {
  color: #67e8f9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-route-card strong {
  color: #f8fafc;
  font-size: 17px;
  line-height: 1.35;
}

.support-route-card span:last-child {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.65;
}

.support-section + .support-section {
  margin-top: 22px;
}

.support-section-head {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.support-toolbar {
  margin-bottom: 18px;
}

.support-search-field {
  margin-bottom: 0;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: #020617;
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 12px 13px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
  background: rgba(2, 6, 23, 0.92);
}

.field select {
  appearance: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #64748b;
}

.field textarea {
  min-height: 170px;
  resize: vertical;
  line-height: 1.5;
}

.support-meta {
  margin-top: 16px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.6;
}

.support-btn,
.support-secondary-btn {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.support-btn {
  background: linear-gradient(135deg, #22d3ee 0%, #0ea5e9 100%);
  color: #020617;
  box-shadow: 0 16px 30px rgba(14, 165, 233, 0.22);
}

.support-btn:hover,
.support-secondary-btn:hover {
  transform: translateY(-1px);
}

.support-secondary-btn {
  background: rgba(2, 6, 23, 0.86);
  color: #e0f2fe;
  border: 1px solid rgba(125, 211, 252, 0.26);
}

.support-msg {
  border-radius: 10px;
  padding: 11px 12px;
  margin-bottom: 14px;
  font-size: 13px;
}

.support-msg-ok {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

.support-msg-err {
  background: rgba(239, 68, 68, 0.13);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.support-card-main {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.support-card-side {
  padding: 18px;
}

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

.support-status {
  border-radius: 16px;
  padding: 15px 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.72);
}

.support-status-kicker,
.support-panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.support-status-title,
.support-panel-title {
  margin: 6px 0 6px;
  font-size: 18px;
  line-height: 1.25;
  color: #f8fafc;
}

.support-status-copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #cbd5e1;
}

.support-status-warn {
  border-color: rgba(250, 204, 21, 0.32);
  background: rgba(113, 63, 18, 0.22);
}

.support-status-ready,
.support-status-ok {
  border-color: rgba(16, 185, 129, 0.34);
  background: rgba(6, 78, 59, 0.3);
}

.support-status-err {
  border-color: rgba(239, 68, 68, 0.36);
  background: rgba(127, 29, 29, 0.28);
}

.support-status-sending {
  border-color: rgba(14, 165, 233, 0.36);
  background: rgba(12, 74, 110, 0.28);
}

.support-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.support-chip {
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(2, 6, 23, 0.8);
  color: #e0f2fe;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.support-chip:hover,
.support-template:hover,
.support-resource:hover,
.support-secondary-btn:hover,
.support-faq:hover,
.support-context-row:hover,
.support-check-item:hover {
  border-color: rgba(34, 211, 238, 0.5);
  transform: translateY(-1px);
}

.support-template:hover,
.support-resource:hover,
.support-faq:hover,
.support-context-row:hover,
.support-check-item:hover {
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.22);
}

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

.support-context-grid {
  margin-bottom: 0;
}

.support-helper {
  margin-top: 7px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.6;
}

.support-helper-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.support-template-grid,
.support-resource-list,
.support-faq-list {
  display: grid;
  gap: 12px;
}

.support-timeline {
  display: grid;
  gap: 12px;
}

.support-timeline-step {
  padding: 14px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.support-timeline-step strong {
  display: block;
  color: #f8fafc;
  font-size: 14px;
  line-height: 1.4;
}

.support-timeline-step p {
  margin: 8px 0 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.65;
}

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

.support-template,
.support-resource,
.support-faq {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 23, 0.72);
}

.support-template,
.support-resource {
  text-align: left;
  color: inherit;
  text-decoration: none;
  padding: 15px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.support-template-title,
.support-resource-title {
  display: block;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.support-template-copy,
.support-resource-copy,
.support-faq p {
  display: block;
  margin-top: 6px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.6;
}

.support-template-cta {
  display: inline-flex;
  margin-top: 10px;
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.support-faq {
  padding: 14px;
}

.support-faq h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 15px;
  line-height: 1.35;
}

.support-no-results {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #94a3b8;
}

.support-context-list {
  display: grid;
  gap: 10px;
}

.support-context-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.support-context-row span {
  color: #94a3b8;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.support-context-row strong {
  color: #f8fafc;
  font-size: 13px;
  text-align: right;
  word-break: break-word;
}

.support-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.support-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.support-check-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: #475569;
  box-shadow: 0 0 0 4px rgba(71, 85, 105, 0.15);
  flex: 0 0 auto;
}

.support-check-item.is-done {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(6, 78, 59, 0.26);
  color: #d1fae5;
}

.support-check-item.is-done .support-check-dot {
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.support-btn[disabled] {
  opacity: 0.72;
  cursor: wait;
}

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

@media (max-width: 760px) {
  .support-wrap {
    width: min(100%, calc(100% - 12px));
    padding: 0 10px;
  }

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

  .support-helper-split,
  .support-context-row,
  .support-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .support-hero-actions {
    width: 100%;
  }

  .support-hero-link {
    flex: 1 1 100%;
  }

  .support-context-row strong {
    text-align: left;
  }
}

/* === Pass 151: billing/account page app-shell catch-up === */
.standalone-app-page.page-billing-admin,
.standalone-app-page.page-cancel-plan {
  background: #020617;
  color: #f8fafc;
  padding: 16px 0 calc(var(--footer-pad, 110px) + 16px);
}

.billing-admin-wrap,
.cancel-plan-wrap {
  max-width: var(--app-max-width) !important;
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
}

.billing-admin-card,
.cancel-plan-card {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.billing-admin-title,
.cancel-plan-title {
  margin: 0 0 8px;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1.15;
}

.billing-admin-copy,
.cancel-plan-copy {
  margin: 0;
  color: #94a3b8;
  line-height: 1.6;
}

.page-billing-admin label {
  display: block;
  margin-top: 12px;
  font-weight: 800;
  color: #cbd5e1;
}

.page-billing-admin input {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b1224;
  color: #fff;
  box-sizing: border-box;
}

.page-billing-admin .btn,
.page-cancel-plan .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #1e293b;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  box-sizing: border-box;
}

.page-billing-admin .btn {
  margin-top: 14px;
  width: 100%;
  background: #22d3ee;
  color: #001018;
}

.page-cancel-plan .btn {
  background: #111827;
  color: #fff;
}

.page-cancel-plan .danger,
.page-cancel-plan .cancel-plan-confirm {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
}

.page-billing-admin .msg {
  margin-top: 12px;
  font-weight: 900;
}

.page-billing-admin .msg.is-success {
  color: #10b981;
}

.page-billing-admin .msg.is-error {
  color: #ef4444;
}

.billing-admin-back-wrap {
  margin-top: 14px;
}

.billing-admin-back-link {
  color: #22d3ee;
  text-decoration: none;
  font-weight: 900;
}

.cancel-plan-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.cancel-plan-actions > * {
  flex: 1 1 220px;
}

@media (max-width: 640px) {
  .billing-admin-wrap,
  .cancel-plan-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }

  .billing-admin-card,
  .cancel-plan-card {
    padding: 18px;
    border-radius: 20px;
  }

  .cancel-plan-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cancel-plan-actions > * {
    width: 100%;
    flex-basis: auto;
  }
}


/* === Auth entry pages === */
.he-auth-entry {
  position: relative;
  width: min(100%, var(--app-max-width, 600px));
  margin: 0 auto;
  padding: 18px 16px 28px;
  min-height: calc(100vh - (var(--he-sticky-top, 70px) + 110px));
  box-sizing: border-box;
  background:
    radial-gradient(circle at 50% 0%, rgba(30, 27, 75, 0.78) 0%, rgba(2, 6, 23, 0) 56%),
    linear-gradient(180deg, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px, 36px 36px;
}

.he-auth-entry::before {
  content: "";
  position: absolute;
  inset: 10px 14px auto;
  height: 260px;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18) 0%, rgba(34, 211, 238, 0) 72%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

.he-auth-entry > * {
  position: relative;
  z-index: 1;
}

.he-auth-entry .login-wrapper,
.he-auth-entry .register-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  max-width: 500px;
  box-sizing: border-box;
}

.he-auth-entry .glow-effect {
  display: none;
}

.he-auth-entry .login-card,
.he-auth-entry .reg-card {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 26px 22px;
  box-shadow: 0 24px 54px rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.he-auth-entry .brand-header,
.he-auth-entry .header-area {
  text-align: center;
  margin-bottom: 24px;
}

.he-auth-entry .brand-title,
.he-auth-entry .page-title {
  margin: 0;
  font-size: clamp(1.85rem, 5.5vw, 2.3rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 900;
  color: #f8fafc;
}

.he-auth-entry .brand-subtitle,
.he-auth-entry .page-subtitle,
.he-auth-entry .footer-text,
.he-auth-entry .auth-footer,
.he-auth-entry .hint-text,
.he-auth-entry .forgot-link {
  color: #94a3b8;
}

.he-auth-entry .brand-subtitle,
.he-auth-entry .page-subtitle,
.he-auth-entry .auth-footer {
  font-size: 13px;
  font-weight: 700;
}

.he-auth-entry .page-subtitle {
  margin: 8px auto 0;
  max-width: 340px;
  line-height: 1.5;
}

.he-auth-entry .form-group {
  margin-bottom: 18px;
}

.he-auth-entry .label-style {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #22d3ee;
}

.he-auth-entry input {
  width: 100%;
  min-height: 52px;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(2, 6, 23, 0.58);
  color: #f8fafc;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.he-auth-entry input::placeholder {
  color: rgba(148, 163, 184, 0.55);
}

.he-auth-entry input:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
  background: rgba(15, 23, 42, 0.9);
}

.he-auth-entry .btn-login,
.he-auth-entry .btn-submit,
.he-auth-entry .btn-outline,
.he-auth-entry .modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 14px 16px;
  border-radius: 14px;
  box-sizing: border-box;
}

.he-auth-entry .btn-login,
.he-auth-entry .btn-submit {
  border: none;
  background: linear-gradient(135deg, #22d3ee 0%, #0ea5e9 100%);
  color: #020617;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(14, 165, 233, 0.28);
  cursor: pointer;
}

.he-auth-entry .btn-outline {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.he-auth-entry .footer-links {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.he-auth-entry .auth-support-note {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  background: rgba(15, 23, 42, 0.5);
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
}

.he-auth-entry .auth-support-note strong {
  color: #f8fafc;
}

.he-auth-entry .auth-trust-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.he-auth-entry .auth-trust-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.42);
  padding: 14px 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.he-auth-entry .auth-trust-card strong {
  display: block;
  margin-bottom: 6px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
}

.he-auth-entry .auth-trust-card span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.55;
}

.he-auth-entry .link-group {
  display: grid;
  gap: 12px;
}

.he-auth-entry .error-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #fca5a5;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.he-auth-entry .tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(2, 6, 23, 0.38);
}

.he-auth-entry .tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #94a3b8;
  text-align: center;
  cursor: pointer;
}

.he-auth-entry .tab-btn.active {
  background: #22d3ee;
  color: #001018;
  box-shadow: 0 6px 18px rgba(34, 211, 238, 0.24);
}

.he-auth-entry .info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.he-auth-entry .modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10030;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(6px);
}

.he-auth-entry .modal-active {
  display: flex;
}

.he-auth-entry .modal-box {
  width: min(100%, 420px);
  padding: 26px 22px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0f172a;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.6);
}

.he-auth-entry .modal-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 900;
  color: #f8fafc;
}

.he-auth-entry .modal-body {
  margin-bottom: 18px;
  color: #cbd5e1;
  line-height: 1.6;
  font-size: 14px;
}

.he-auth-entry .modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
}

.he-auth-entry .auth-footer {
  margin-top: 22px;
  text-align: center;
}

.he-auth-entry .auth-footer a,
.he-auth-entry .forgot-link,
.he-auth-entry .billing-admin-back-link {
  color: #22d3ee;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 640px) {
  .he-auth-entry {
    padding: 14px 12px 22px;
    min-height: calc(100vh - (var(--he-sticky-top, 64px) + 104px));
  }

  .he-auth-entry .login-card,
  .he-auth-entry .reg-card {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .he-auth-entry .tabs {
    grid-template-columns: 1fr;
  }

  .he-auth-entry .brand-title,
  .he-auth-entry .page-title {
    font-size: 1.8rem;
  }
}


.he-auth-entry .auth-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  background: rgba(8, 47, 73, 0.26);
  color: #67e8f9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.he-auth-entry .auth-intro-copy {
  margin: 14px auto 0;
  max-width: 38ch;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.65;
}


.he-auth-entry .auth-inline-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.6;
}

.he-auth-entry .auth-inline-list li + li {
  margin-top: 6px;
}

.he-auth-entry .auth-note-band {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.74), rgba(2, 6, 23, 0.54));
}

.he-auth-entry .auth-route-grid,
.he-auth-entry .auth-path-summary {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.he-auth-entry .auth-route-card,
.he-auth-entry .auth-path-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.44);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.he-auth-entry .auth-route-card {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.he-auth-entry .auth-route-card:hover,
.he-auth-entry .auth-route-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow: 0 16px 28px rgba(2, 6, 23, 0.24);
  background: rgba(15, 23, 42, 0.8);
  outline: none;
}

.he-auth-entry .auth-route-card-static:hover,
.he-auth-entry .auth-route-card-static:focus-visible {
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.he-auth-entry .auth-route-eyebrow {
  color: #67e8f9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.he-auth-entry .auth-route-card strong,
.he-auth-entry .auth-path-card strong {
  color: #f8fafc;
  font-size: 15px;
  line-height: 1.35;
}

.he-auth-entry .auth-route-card span:last-child,
.he-auth-entry .auth-path-card span {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.6;
}

.he-auth-entry .auth-trust-grid-expanded {
  margin-top: 16px;
}

.he-auth-entry .auth-onboarding-context-strip {
  margin-bottom: 18px;
}

.he-auth-entry .auth-onboarding-context-strip a,
.he-auth-entry .auth-onboarding-context-link {
  color: #67e8f9;
  font-weight: 800;
  text-decoration: none;
}

.he-auth-entry .auth-onboarding-context-strip a:hover,
.he-auth-entry .auth-onboarding-context-strip a:focus-visible,
.he-auth-entry .auth-onboarding-context-link:hover,
.he-auth-entry .auth-onboarding-context-link:focus-visible {
  text-decoration: underline;
}

@media (min-width: 720px) {
  .he-auth-entry .auth-route-grid,
  .he-auth-entry .auth-path-summary,
  .he-auth-entry .auth-route-grid-register {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.support-summary-band {
  margin-bottom: 18px;
}

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

.support-summary-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.46);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.support-summary-card strong {
  color: #f8fafc;
  font-size: 17px;
  line-height: 1.35;
}

.support-summary-card p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.65;
}

.support-form-intro {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

.legal-decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.legal-decision-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.46);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.legal-decision-card strong {
  color: #f8fafc;
  font-size: 17px;
  line-height: 1.35;
}

.legal-decision-card p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.65;
}

.legal-read-first {
  margin: 20px 0 8px;
}

@media (max-width: 1040px) {
  .support-summary-grid,
  .legal-decision-grid {
    grid-template-columns: 1fr;
  }
}

/* === Auth recovery pages === */
.he-auth-recovery .recovery-wrapper {
  max-width: 460px;
}

.he-auth-recovery .recovery-card {
  padding-top: 30px;
}

.he-auth-recovery .status-box {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.he-auth-recovery .success-box {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #86efac;
}

.he-auth-recovery .success-box a,
.he-auth-recovery .recovery-alt-link a {
  color: #22d3ee;
  font-weight: 800;
  text-decoration: none;
}

.he-auth-recovery .success-box-html a {
  text-decoration: underline;
}

.he-auth-recovery .recovery-footer-links {
  margin-top: 22px;
}

.he-auth-recovery .recovery-alt-link {
  margin-top: -6px;
  margin-bottom: 18px;
}


.he-auth-recovery .recovery-footer-links .link-group {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.guide-nav-shortcut {
  margin: 10px 0 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.55;
}

.guide-nav-shortcut strong {
  color: #f8fafc;
}

.guide-purpose-grid {
  margin-top: 18px;
}

@media (max-width: 640px) {
  .he-auth-recovery .recovery-card {
    padding-top: 24px;
  }
}


/* === Pass 154: subscription + AI credit flow app-shell cleanup === */
.standalone-app-page.page-renew-portal,
.standalone-app-page.page-stripe-success,
.standalone-app-page.page-checkout-cancel,
.standalone-app-page.page-activate-ai-credits {
  background: #020617;
  color: #f8fafc;
}

.standalone-app-page.page-renew-portal {
  --cyan: #22d3ee;
  --green: #34d399;
  --muted: #94a3b8;
  padding: 18px 0 72px;
}

.page-renew-portal .container {
  max-width: min(100%, 880px);
  margin: 0 auto;
  padding: 0 16px 72px;
  box-sizing: border-box;
}

.page-renew-portal .nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.page-renew-portal .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}

.page-renew-portal .back-link:hover {
  color: #22d3ee;
}

.page-renew-portal .success-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.34);
  color: #d1fae5;
  font-weight: 700;
}

.page-renew-portal .activate-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
}

.page-renew-portal .act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #34d399;
  color: #022c22;
  text-decoration: none;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.page-renew-portal .header {
  margin-bottom: 36px;
  text-align: center;
}

.page-renew-portal .header h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 2.4rem);
  line-height: 1.05;
  font-weight: 950;
  background: linear-gradient(120deg, #f8fafc 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-renew-portal .header p {
  max-width: 620px;
  margin: 0 auto;
  color: #94a3b8;
  line-height: 1.6;
}

.page-renew-portal .toggle-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-renew-portal .switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.page-renew-portal .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.page-renew-portal .slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 999px;
  background: #1e293b;
  transition: background .2s ease;
}

.page-renew-portal .slider:before {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  transition: transform .2s ease;
}

.page-renew-portal input:checked + .slider {
  background: #22d3ee;
}

.page-renew-portal input:checked + .slider:before {
  transform: translateX(24px);
}

.page-renew-portal .save-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.15);
  color: #22d3ee;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
}

.page-renew-portal .grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 44px;
}

.page-renew-portal .card {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.page-renew-portal .card.featured {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 20px 46px rgba(34, 211, 238, 0.12);
}

.page-renew-portal .plan-name {
  margin-bottom: 10px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.page-renew-portal .price {
  margin-bottom: 6px;
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 950;
  color: #fff;
  line-height: 1.05;
}

.page-renew-portal .price span {
  font-size: 16px;
  color: #94a3b8;
  font-weight: 700;
}

.page-renew-portal .sub-text,
.page-renew-portal li {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.55;
}

.page-renew-portal .sub-text {
  min-height: 44px;
  margin-bottom: 18px;
}

.page-renew-portal ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.page-renew-portal li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.page-renew-portal li b {
  color: #f8fafc;
}

.page-renew-portal .btn {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.page-renew-portal .btn-outline {
  background: transparent;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-renew-portal .btn-primary {
  background: #22d3ee;
  color: #001018;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.24);
}

.page-renew-portal .section-title {
  margin: 52px 0 24px;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 900;
}

.page-renew-portal > .container > div[style*="text-align:center"] {
  color: #94a3b8 !important;
}

.standalone-app-page.page-stripe-success,
.standalone-app-page.page-activate-ai-credits,
.standalone-app-page.page-checkout-cancel {
  min-height: 100vh;
  padding: 18px 0 30px;
}

.page-stripe-success .he-standalone-shell,
.page-activate-ai-credits .he-standalone-shell,
.page-checkout-cancel .he-standalone-shell {
  max-width: min(100%, 720px);
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.page-checkout-cancel .he-standalone-shell {
  max-width: min(100%, 520px);
}

.page-stripe-success .he-standalone-card,
.page-activate-ai-credits .he-standalone-card,
.page-checkout-cancel .he-standalone-card {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.page-stripe-success .he-standalone-card h1,
.page-checkout-cancel .he-standalone-card h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  line-height: 1.08;
}

.page-checkout-cancel .he-standalone-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.6;
}

.page-checkout-cancel .he-standalone-card a {
  color: #fca5a5;
  text-decoration: none;
  font-weight: 900;
}

.page-stripe-success .muted {
  color: #94a3b8;
  font-size: 13px;
}

.page-stripe-success .grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.page-stripe-success .card {
  background: rgba(17, 26, 46, 0.94);
  border: 1px solid #1f2a44;
  border-radius: 18px;
  padding: 16px;
}

.page-stripe-success .he-checkout-section-title {
  margin: 26px 0 14px;
  font-size: 1.1rem;
  font-weight: 900;
}

.page-stripe-success button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
}

.page-stripe-success .sub {
  background: #22c55e;
  color: #05120a;
}

.page-stripe-success .pay {
  background: #38bdf8;
  color: #031018;
}

.page-stripe-success .error,
.page-stripe-success .ok {
  display: none;
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
}

.page-stripe-success .error {
  background: #7f1d1d;
  border: 1px solid #ef4444;
}

.page-stripe-success .ok {
  background: #064e3b;
  border: 1px solid #10b981;
}

.page-stripe-success code {
  color: #a7f3d0;
}

.page-activate-ai-credits .he-activate-card {
  text-align: center;
  max-width: 420px;
  margin: 8vh auto 0;
}

.page-activate-ai-credits .he-activate-title {
  margin: 0 0 12px;
  font-size: 1.7rem;
  font-weight: 950;
}

.page-activate-ai-credits .he-activate-title.ok {
  color: #34d399;
}

.page-activate-ai-credits .he-activate-title.err {
  color: #f87171;
}

.page-activate-ai-credits .he-activate-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.6;
}

.page-activate-ai-credits .he-activate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 14px;
  background: #22d3ee;
  color: #000;
  text-decoration: none;
  font-weight: 900;
}

.he-ai-credit-activate {
  max-width: var(--app-max-width);
  margin: 0 auto;
  padding: 18px 16px calc(var(--footer-pad, 110px) + 16px);
  box-sizing: border-box;
}

.he-ai-credit-activate .he-ai-credit-card {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.he-ai-credit-activate .he-ai-credit-title {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 950;
  color: #fff;
}

.he-ai-credit-activate .he-ai-credit-muted {
  color: #94a3b8;
  font-size: 13px;
  margin-top: 8px;
  line-height: 1.55;
}

.he-ai-credit-activate .muted {
  color: #94a3b8;
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.55;
}

.he-ai-credit-activate .he-ai-credit-alert {
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 900;
  color: #fff;
}

.he-ai-credit-activate .he-ai-credit-alert.bad {
  background: rgba(239, 68, 68, .14);
  border: 1px solid rgba(239, 68, 68, .35);
}

.he-ai-credit-activate .he-ai-credit-alert.good {
  background: rgba(34, 211, 238, .10);
  border: 1px solid rgba(34, 211, 238, .30);
}

.he-ai-credit-activate .he-ai-credit-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.he-ai-credit-activate .he-ai-credit-kv {
  background: rgba(255,255,255,.03);
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 14px;
}

.he-ai-credit-activate .he-ai-credit-k {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.he-ai-credit-activate .he-ai-credit-v {
  font-size: 18px;
  font-weight: 950;
  color: #fff;
  margin-top: 6px;
}

.he-ai-credit-activate .he-ai-credit-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.he-ai-credit-activate .he-ai-credit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 950;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  border: 1px solid rgba(255,255,255,.12);
  box-sizing: border-box;
}

.he-ai-credit-activate .he-ai-credit-btn-primary {
  background: #22d3ee;
  color: #020617;
  border-color: transparent;
}

.he-ai-credit-activate .he-ai-credit-btn-secondary {
  background: rgba(255,255,255,.06);
  color: #fff;
}

@media (min-width: 900px) {
  .he-ai-credit-activate .he-ai-credit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .page-renew-portal .nav-bar {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 22px;
  }

  .page-renew-portal .grid {
    grid-template-columns: 1fr;
  }

  .page-renew-portal .toggle-row {
    width: 100%;
  }

  .page-renew-portal .activate-box {
    padding: 16px;
  }

  .page-checkout-cancel .he-standalone-card,
  .page-stripe-success .he-standalone-card,
  .page-activate-ai-credits .he-standalone-card {
    padding: 18px;
    border-radius: 20px;
  }

  .page-activate-ai-credits .he-activate-card {
    margin-top: 22px;
  }

  .he-ai-credit-activate .he-ai-credit-actions {
    flex-direction: column;
  }

  .he-ai-credit-activate .he-ai-credit-btn,
  .page-renew-portal .act-btn {
    width: 100%;
  }
}


/* === owner_locations.php inline migration === */
.owner-locations-page {
  --owner-bg-deep: #020617;
  --owner-card-bg: rgba(15, 23, 42, 0.6);
  --owner-border: rgba(255, 255, 255, 0.08);
  --owner-primary: #22d3ee;
  --owner-primary-dim: rgba(34, 211, 238, 0.1);
  --owner-gold: #fbbf24;
  --owner-danger: #ef4444;
  --owner-text-main: #f8fafc;
  --owner-text-muted: #94a3b8;
  --primary: var(--owner-primary);
  --gold: var(--owner-gold);
  --danger: var(--owner-danger);
  --border: var(--owner-border);
  --text-muted: var(--owner-text-muted);
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 16px 100px;
  position: relative;
  color: var(--owner-text-main);
}

.owner-locations-page::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(120vw, 900px);
  height: 100vh;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.owner-locations-page > * {
  position: relative;
  z-index: 1;
}

.owner-locations-page .page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--owner-border);
}

.owner-locations-page .page-title {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}

.owner-locations-page .page-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--owner-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.owner-locations-page .back-btn {
  background: transparent;
  color: var(--owner-text-muted);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid var(--owner-border);
  transition: all 0.2s;
  text-transform: uppercase;
  white-space: nowrap;
}

.owner-locations-page .back-btn:hover {
  background: rgba(255,255,255,0.03);
  color: var(--owner-text-main);
  border-color: var(--owner-text-muted);
}

.owner-locations-page .card {
  background: var(--owner-card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--owner-border);
  border-radius: 24px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.owner-locations-page .card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.owner-locations-page .card-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--owner-primary);
  font-weight: 800;
}

.owner-locations-page .slot-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--owner-border);
  padding: 20px;
  border-radius: 18px;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}

.owner-locations-page .slot-card:hover {
  background: var(--owner-primary-dim);
  border-color: var(--owner-primary);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--owner-primary-dim);
}

.owner-locations-page .slot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.owner-locations-page .slot-num {
  font-size: 14px;
  font-weight: 900;
  color: white;
  letter-spacing: 1px;
}

.owner-locations-page .badge {
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.owner-locations-page .b-current {
  background: rgba(34, 211, 238, 0.2);
  color: var(--owner-primary);
  border: 1px solid rgba(34, 211, 238, 0.4);
}

.owner-locations-page .b-used {
  background: rgba(255, 255, 255, 0.1);
  color: var(--owner-text-muted);
  border: 1px solid var(--owner-border);
}

.owner-locations-page .b-avail {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.owner-locations-page .info-row {
  font-size: 12px;
  color: var(--owner-text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.owner-locations-page .info-val {
  color: white;
  font-weight: 700;
  margin-left: 5px;
}

.owner-locations-page .code-box {
  text-align: center;
  margin: 15px 0;
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  padding: 15px;
  border: 1px dashed var(--owner-border);
}

.owner-locations-page .start-code {
  font-size: 24px;
  font-family: monospace;
  font-weight: 900;
  margin: 5px 0;
  letter-spacing: 3px;
  background: linear-gradient(135deg, #fff 0%, var(--owner-primary) 50%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(34, 211, 238, 0.4);
}

.owner-locations-page .actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 15px;
}

.owner-locations-page .btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  transition: 0.2s;
  box-sizing: border-box;
}

.owner-locations-page .btn-primary {
  background: linear-gradient(135deg, #22d3ee 0%, #0ea5e9 100%);
  color: #020617;
  border: none;
  box-shadow: 0 4px 15px rgba(34, 211, 238, 0.2);
}

.owner-locations-page .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 211, 238, 0.4);
}

.owner-locations-page .btn-sec {
  background: rgba(255,255,255,0.05);
  color: white;
  border: 1px solid var(--owner-border);
}

.owner-locations-page .btn-sec:hover {
  background: rgba(255,255,255,0.1);
}

.owner-locations-page .btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--owner-danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.owner-locations-page .btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

.owner-locations-page .advisor {
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--owner-primary);
  padding: 15px;
  border-radius: 0 12px 12px 0;
  color: var(--owner-text-muted);
  font-size: 12px;
  line-height: 1.6;
}


.owner-locations-page .owner-card-copy {
  margin: 8px 0 0;
  color: var(--owner-text-muted);
  line-height: 1.6;
}

.owner-locations-page .owner-plan-pill {
  font-size: 10px;
  font-weight: 800;
  background: rgba(34,211,238,0.1);
  color: var(--primary);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(34,211,238,0.2);
  white-space: nowrap;
}

.owner-locations-page .owner-metric-grid,
.owner-locations-page .owner-route-grid {
  display: grid;
  gap: 12px;
}

.owner-locations-page .owner-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.owner-locations-page .owner-metric-card,
.owner-locations-page .owner-route-link {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(2, 6, 23, 0.42);
  padding: 16px;
}

.owner-locations-page .owner-metric-card strong,
.owner-locations-page .owner-route-link strong,
.owner-locations-page .owner-inline-strong {
  color: var(--owner-text-main);
}

.owner-locations-page .owner-metric-card strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 30px;
  line-height: 1;
}

.owner-locations-page .owner-metric-card span:last-child,
.owner-locations-page .owner-route-link span,
.owner-locations-page .owner-advisor-note,
.owner-locations-page .owner-slot-helper,
.owner-locations-page .owner-code-caption,
.owner-locations-page .owner-slot-disabled,
.owner-locations-page .owner-slot-error {
  color: var(--owner-text-muted);
  line-height: 1.55;
}

.owner-locations-page .owner-metric-label {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--owner-primary);
}

.owner-locations-page .owner-metric-card-gold {
  border-color: rgba(251, 191, 36, 0.22);
}

.owner-locations-page .owner-route-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.owner-locations-page .owner-route-link {
  display: grid;
  gap: 8px;
  text-decoration: none;
}

.owner-locations-page .owner-route-link:hover,
.owner-locations-page .owner-route-link:focus-visible,
.owner-locations-page .owner-accent-link:hover,
.owner-locations-page .owner-accent-link:focus-visible {
  border-color: rgba(34, 211, 238, 0.38);
  outline: none;
}

.owner-locations-page .owner-utility-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 16px;
}

.owner-locations-page .owner-utility-link {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(8, 15, 30, 0.76);
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.18);
}

.owner-locations-page .owner-utility-link strong {
  color: var(--owner-text-main);
  font-size: 15px;
  line-height: 1.2;
}

.owner-locations-page .owner-utility-link:hover,
.owner-locations-page .owner-utility-link:focus-visible {
  border-color: rgba(34, 211, 238, 0.32);
  outline: none;
}

@media (max-width: 900px) {
  .owner-locations-page .owner-metric-grid,
  .owner-locations-page .owner-route-grid,
  .owner-locations-page .owner-utility-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .owner-locations-page .owner-utility-row,
  .owner-locations-page .owner-metric-grid,
  .owner-locations-page .owner-route-grid {
    grid-template-columns: 1fr;
  }
}

.owner-locations-page .owner-advisor-box {
  margin-top: 0;
}

.owner-locations-page .owner-code-inline {
  font-family: monospace;
}

.owner-locations-page .owner-slot-helper,
.owner-locations-page .owner-slot-error,
.owner-locations-page .owner-slot-disabled,
.owner-locations-page .owner-code-caption {
  font-size: 12px;
}

.owner-locations-page .owner-actions-single {
  grid-template-columns: 1fr;
}

.owner-locations-page .owner-accent-link {
  color: #22d3ee;
  border-color: #22d3ee;
}

/* === start_location_register.php inline migration === */
.start-location-register-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 18px 16px 100px;
}

.start-location-register-page .slr-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
}

.start-location-register-page .slr-title {
  font-size: 22px;
  font-weight: 950;
  margin: 0;
  color: #fff;
}

.start-location-register-page .slr-copy,
.start-location-register-page .slr-label {
  color: #94a3b8;
  font-size: 13px;
}

.start-location-register-page .slr-copy {
  margin-top: 6px;
  line-height: 1.55;
}

.start-location-register-page .slr-label {
  display: block;
  margin-top: 14px;
  font-weight: 700;
}

.start-location-register-page .slr-input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #020617;
  color: #fff;
  margin-top: 8px;
  box-sizing: border-box;
}

.start-location-register-page .slr-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 0;
  background: #22d3ee;
  color: #020617;
  font-weight: 950;
  margin-top: 16px;
  min-height: 48px;
  box-sizing: border-box;
}

.start-location-register-page .slr-error {
  color: #f87171;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .owner-locations-page {
    padding: 18px 14px 100px;
  }

  .owner-locations-page .page-header,
  .owner-locations-page .card-head,
  .owner-locations-page .slot-header {
    flex-direction: column;
    align-items: stretch;
  }

  .owner-locations-page .back-btn,
  .owner-locations-page .actions-grid {
    width: 100%;
  }

  .owner-locations-page .actions-grid,
  .owner-locations-page .owner-route-grid,
  .page-staff-roster .staff-role-chip-grid {
    grid-template-columns: 1fr;
  }

  .owner-locations-page .owner-metric-grid,
  .owner-locations-page .owner-route-grid,
  .page-staff-roster .staff-hero-meta {
    display: grid;
  }

  .owner-locations-page .card,
  .start-location-register-page .slr-card {
    padding: 18px;
    border-radius: 20px;
  }

  .owner-locations-page .start-code {
    font-size: 20px;
    letter-spacing: 2px;
    word-break: break-word;
  }
}


/* === Pass 156: help.php + ai_consultant.php app-shell cleanup === */
.page-help-advisor,
.page-ai-consultant {
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.16), transparent 36%),
    radial-gradient(circle at 85% 18%, rgba(34, 211, 238, 0.12), transparent 28%),
    #020617;
  color: #e2e8f0;
}

.help-advisor-page,
.ai-consultant-page {
  max-width: 600px !important;
  margin: 0 auto;
  padding: 20px 16px 100px;
}

.help-advisor-card,
.ai-consultant-card {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.44);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.help-advisor-head,
.ai-consultant-head {
  margin-bottom: 16px;
}

.help-advisor-kicker,
.ai-consultant-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #22d3ee;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.help-advisor-title,
.ai-consultant-title {
  margin: 0;
  color: #f8fafc;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.help-advisor-copy,
.ai-consultant-copy {
  margin: 8px 0 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.65;
}

.help-advisor-display,
.ai-consultant-output {
  min-height: 300px;
  max-height: 56svh;
  overflow-y: auto;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.88);
  color: #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.help-advisor-input-group {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.help-advisor-input,
.ai-consultant-textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.86);
  color: #f8fafc;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.help-advisor-input::placeholder,
.ai-consultant-textarea::placeholder {
  color: #64748b;
}

.help-advisor-input:focus,
.ai-consultant-textarea:focus {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
  background: rgba(15, 23, 42, 0.95);
}

.ai-consultant-label {
  display: block;
  margin: 0 0 8px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-consultant-textarea {
  min-height: 150px;
  resize: vertical;
}

.help-advisor-btn,
.ai-consultant-btn {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
  color: #04111f;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(34, 211, 238, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.help-advisor-btn:hover,
.ai-consultant-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(34, 211, 238, 0.24);
  filter: brightness(1.03);
}

.ai-consultant-btn {
  width: 100%;
  margin-top: 14px;
}

.ai-consultant-response-head {
  margin-top: 18px;
}

.ai-consultant-response-title {
  margin: 0 0 10px;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.ai-consultant-output {
  margin-bottom: 0;
  white-space: pre-wrap;
}

@media (max-width: 640px) {
  .help-advisor-page,
  .ai-consultant-page {
    padding: 18px 14px 96px;
  }

  .help-advisor-card,
  .ai-consultant-card {
    padding: 18px;
    border-radius: 20px;
  }

  .help-advisor-title,
  .ai-consultant-title {
    font-size: 24px;
  }

  .help-advisor-input-group {
    flex-direction: column;
  }

  .help-advisor-btn,
  .ai-consultant-btn {
    width: 100%;
  }
}


/* === Pass 159: guide + legal support page upgrade === */
.guide-wrapper-extended {
  max-width: 1120px;
}

.guide-nav-print {
  text-align: center;
  margin-bottom: 18px;
}

.guide-print-btn {
  width: 100%;
  background: var(--primary, #22d3ee);
  color: #03131a;
  border: none;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
}

.guide-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold, #fbbf24);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-intro {
  max-width: 900px;
  font-size: 15px;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 8px;
}

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

.guide-card {
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
}

.guide-card h3 {
  margin-top: 0;
}

.guide-callout {
  margin: 18px 0 10px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-callout-info {
  background: rgba(34, 211, 238, 0.08);
}

.guide-callout-warm {
  background: rgba(251, 191, 36, 0.08);
}

.guide-list-box {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 16px;
  margin: 16px 0;
}

.guide-step-grid {
  margin-top: 14px;
}

.legal-shell {
  max-width: 980px;
  margin: 0 auto 110px;
  padding: 24px 16px 0;
  box-sizing: border-box;
}

.legal-hero {
  margin: 10px 0 22px;
}

.legal-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.05;
  color: #f8fafc;
}

.legal-hero p {
  margin: 0;
  max-width: 760px;
  color: #94a3b8;
  line-height: 1.65;
}

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

.legal-section {
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 22px;
  line-height: 1.65;
}

.legal-section-accent {
  border-left: 4px solid var(--primary, #22d3ee);
}

.label-mini {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 10px;
  color: var(--primary, #22d3ee);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-section h3 {
  margin: 0 0 10px;
  color: #f8fafc;
  font-size: 19px;
}

.legal-section p,
.legal-section li,
.legal-footer-note p {
  color: #94a3b8;
  font-size: 14px;
}

.legal-section ul {
  padding-left: 18px;
  margin: 0;
}

.agreement-banner {
  margin-bottom: 22px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.38);
}

.agreement-banner p {
  margin: 0;
  color: #e2f8ff;
  font-weight: 700;
}

.legal-faq-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.legal-footer-note {
  margin-top: 26px;
  text-align: center;
}

.legal-footer-note a {
  color: var(--primary, #22d3ee);
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
}

@media (max-width: 900px) {
  .guide-card-grid,
  .guide-card-grid-2,
  .legal-grid,
  .legal-faq-strip {
    grid-template-columns: 1fr;
  }
}

/* === Pass 227: ai_consultant.php operator-confidence upgrade === */
.ai-consultant-page {
  max-width: 760px !important;
}

.ai-consultant-status {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.9);
}

.ai-consultant-status strong {
  display: block;
  margin-bottom: 4px;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 900;
}

.ai-consultant-status p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
}

.ai-consultant-status-meta {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}

.ai-consultant-status.is-ready {
  border-color: rgba(34, 197, 94, 0.26);
  background: rgba(5, 46, 22, 0.34);
}

.ai-consultant-status.is-ready .ai-consultant-status-meta {
  color: #86efac;
}

.ai-consultant-status.is-warning {
  border-color: rgba(250, 204, 21, 0.28);
  background: rgba(66, 32, 6, 0.38);
}

.ai-consultant-status.is-warning .ai-consultant-status-meta {
  color: #fde68a;
}

.ai-consultant-status.is-loading {
  border-color: rgba(34, 211, 238, 0.3);
  background: rgba(8, 47, 73, 0.44);
}

.ai-consultant-status.is-loading .ai-consultant-status-meta {
  color: #67e8f9;
}

.ai-consultant-status.is-success {
  border-color: rgba(96, 165, 250, 0.32);
  background: rgba(30, 41, 59, 0.92);
}

.ai-consultant-status.is-success .ai-consultant-status-meta {
  color: #93c5fd;
}

.ai-consultant-status.is-error {
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(69, 10, 10, 0.42);
}

.ai-consultant-status.is-error .ai-consultant-status-meta {
  color: #fca5a5;
}

.ai-consultant-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.ai-consultant-context-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.65);
}

.ai-consultant-context-label {
  display: block;
  margin-bottom: 6px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-consultant-context-value {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 800;
  word-break: break-word;
}

.ai-consultant-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.ai-consultant-chip,
.ai-consultant-ghost-btn {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(15, 23, 42, 0.78);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.ai-consultant-chip:hover,
.ai-consultant-ghost-btn:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(15, 23, 42, 0.96);
  transform: translateY(-1px);
}

.ai-consultant-chip:focus-visible,
.ai-consultant-ghost-btn:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.5);
  outline-offset: 2px;
}

.ai-consultant-toolbar,
.ai-consultant-response-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.ai-consultant-toolbar {
  margin-top: 12px;
}

.ai-consultant-toolbar-copy {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.ai-consultant-toolbar-actions,
.ai-consultant-response-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.ai-consultant-ghost-btn[disabled],
.ai-consultant-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ai-consultant-btn {
  width: auto;
  margin-top: 0;
}

.ai-consultant-response-head {
  margin-top: 18px;
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  .ai-consultant-status,
  .ai-consultant-toolbar,
  .ai-consultant-response-head {
    flex-direction: column;
    align-items: stretch;
  }

  .ai-consultant-context-grid {
    grid-template-columns: 1fr;
  }

  .ai-consultant-toolbar-actions,
  .ai-consultant-response-actions {
    width: 100%;
  }

  .ai-consultant-btn,
  .ai-consultant-ghost-btn {
    width: 100%;
    text-align: center;
  }
}

/* === Pass 228: help.php operator-confidence upgrade === */
.help-advisor-page {
  max-width: 760px !important;
}

.help-advisor-status {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.9);
}

.help-advisor-status strong {
  display: block;
  margin-bottom: 4px;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 900;
}

.help-advisor-status p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
}

.help-advisor-status-meta {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}

.help-advisor-status.is-ready {
  border-color: rgba(34, 197, 94, 0.26);
  background: rgba(5, 46, 22, 0.34);
}

.help-advisor-status.is-ready .help-advisor-status-meta {
  color: #86efac;
}

.help-advisor-status.is-warning {
  border-color: rgba(250, 204, 21, 0.28);
  background: rgba(66, 32, 6, 0.38);
}

.help-advisor-status.is-warning .help-advisor-status-meta {
  color: #fde68a;
}

.help-advisor-status.is-loading {
  border-color: rgba(34, 211, 238, 0.3);
  background: rgba(8, 47, 73, 0.44);
}

.help-advisor-status.is-loading .help-advisor-status-meta {
  color: #67e8f9;
}

.help-advisor-status.is-success {
  border-color: rgba(96, 165, 250, 0.32);
  background: rgba(30, 41, 59, 0.92);
}

.help-advisor-status.is-success .help-advisor-status-meta {
  color: #93c5fd;
}

.help-advisor-status.is-error {
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(69, 10, 10, 0.42);
}

.help-advisor-status.is-error .help-advisor-status-meta {
  color: #fca5a5;
}

.help-advisor-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.help-advisor-context-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.65);
}

.help-advisor-context-label {
  display: block;
  margin-bottom: 6px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-advisor-context-value {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 800;
  word-break: break-word;
}

.help-advisor-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.help-advisor-chip,
.help-advisor-ghost-btn {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(15, 23, 42, 0.78);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.help-advisor-chip:hover,
.help-advisor-ghost-btn:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(15, 23, 42, 0.96);
  transform: translateY(-1px);
}

.help-advisor-chip:focus-visible,
.help-advisor-ghost-btn:focus-visible,
.help-advisor-btn:focus-visible,
.help-advisor-textarea:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.5);
  outline-offset: 2px;
}

.help-advisor-label {
  display: block;
  margin: 0 0 8px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-advisor-textarea {
  min-height: 130px;
  resize: vertical;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.86);
  color: #f8fafc;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.help-advisor-textarea::placeholder {
  color: #64748b;
}

.help-advisor-textarea:focus {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
  background: rgba(15, 23, 42, 0.95);
}

.help-advisor-toolbar,
.help-advisor-response-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.help-advisor-toolbar {
  margin-top: 12px;
}

.help-advisor-toolbar-copy {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.help-advisor-toolbar-actions,
.help-advisor-response-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.help-advisor-btn[disabled],
.help-advisor-ghost-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.help-advisor-btn {
  width: auto;
}

.help-advisor-response-head {
  margin-top: 18px;
  margin-bottom: 10px;
}

.help-advisor-response-title {
  margin: 0;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.help-advisor-display {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0;
}

.help-advisor-bubble {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.2);
}

.help-advisor-bubble-user {
  margin-left: auto;
  background: rgba(8, 47, 73, 0.86);
  border-color: rgba(34, 211, 238, 0.24);
}

.help-advisor-bubble-advisor {
  margin-right: auto;
}

.help-advisor-bubble-error {
  margin-right: auto;
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(69, 10, 10, 0.42);
}

.help-advisor-bubble-label {
  display: block;
  margin-bottom: 6px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-advisor-bubble-content {
  color: #f8fafc;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

@media (max-width: 640px) {
  .help-advisor-status,
  .help-advisor-toolbar,
  .help-advisor-response-head {
    flex-direction: column;
    align-items: stretch;
  }

  .help-advisor-context-grid {
    grid-template-columns: 1fr;
  }

  .help-advisor-toolbar-actions,
  .help-advisor-response-actions {
    width: 100%;
  }

  .help-advisor-btn,
  .help-advisor-ghost-btn {
    width: 100%;
    text-align: center;
  }

  .help-advisor-bubble {
    max-width: 100%;
  }
}

/* === Pass 229: guides.php operator-wayfinding upgrade === */
.guide-shell {
  align-items: stretch;
}

.guide-nav-status-card {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.12), rgba(15, 23, 42, 0.88));
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.guide-nav-status-kicker,
.guide-panel-kicker,
.guide-signal-label,
.guide-path-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.guide-nav-status-kicker,
.guide-panel-kicker,
.guide-signal-label {
  color: var(--primary, #22d3ee);
}

.guide-path-kicker {
  color: var(--gold, #fbbf24);
}

.guide-nav-status-title,
.guide-panel-title {
  margin: 0 0 8px;
  color: #f8fafc;
  font-size: 20px;
  line-height: 1.15;
}

.guide-nav-status-copy,
.guide-panel-copy,
.guide-nav-active-meta,
.guide-nav-meta,
.guide-section-lead,
.guide-path-card p,
.guide-signal-card p,
.guide-trust-list li {
  color: #cbd5e1;
}

.guide-nav-status-copy,
.guide-panel-copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.guide-nav-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.guide-nav-status-item {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-nav-status-item span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.guide-nav-status-item strong {
  display: block;
  margin-top: 4px;
  color: #f8fafc;
  font-size: 15px;
}

.guide-nav-tools {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-search-label {
  display: block;
  margin-bottom: 8px;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 800;
}

.guide-search-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(2, 6, 23, 0.72);
  color: #f8fafc;
  box-sizing: border-box;
}

.guide-search-input::placeholder {
  color: #94a3b8;
}

.guide-search-input:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}

.guide-nav-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.guide-nav-meta,
.guide-nav-active-meta {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.guide-clear-search,
.guide-link-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.guide-clear-search {
  padding: 8px 12px;
  font-size: 11px;
}

.guide-quick-links {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.guide-quick-link {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.guide-quick-link:hover,
.guide-quick-link:focus-visible,
.guide-path-card:hover,
.guide-path-card:focus-visible,
.guide-link-btn:hover,
.guide-link-btn:focus-visible,
.guide-clear-search:hover,
.guide-clear-search:focus-visible {
  transform: translateY(-1px);
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.28);
  outline: none;
}

.guide-link-hidden {
  display: none;
}

.guide-nav-empty {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fecaca;
  font-size: 12px;
  line-height: 1.55;
}

.guide-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.guide-trust-panel {
  padding: 18px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-trust-list {
  padding-left: 18px;
  margin: 12px 0 0;
}

.guide-trust-list li + li {
  margin-top: 8px;
}

.guide-signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 8px;
}

.guide-signal-card,
.guide-path-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.48);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.guide-signal-card {
  padding: 16px;
}

.guide-signal-card strong,
.guide-path-card strong {
  display: block;
  color: #f8fafc;
  font-size: 17px;
  line-height: 1.3;
}

.guide-signal-card p,
.guide-path-card p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
}

.guide-path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.guide-path-card {
  display: block;
  padding: 18px;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.guide-section {
  scroll-margin-top: calc(var(--he-sticky-top, 70px) + 16px);
}

.guide-section-hidden {
  display: none;
}

.guide-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guide-link-btn {
  flex: 0 0 auto;
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.guide-section-lead {
  margin-top: 0;
  max-width: 900px;
  font-size: 15px;
  line-height: 1.65;
}

.guide-bottom-space {
  height: 100px;
}

@media (max-width: 1040px) {
  .guide-hero-grid,
  .guide-signal-grid,
  .guide-path-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .guide-nav-tools,
  .guide-nav-status-card,
  .guide-trust-panel,
  .guide-signal-card,
  .guide-path-card {
    border-radius: 16px;
  }

  .guide-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .guide-link-btn {
    align-self: flex-start;
  }

  .guide-nav-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media print {
  .guide-nav-status-card,
  .guide-nav-tools,
  .guide-quick-links,
  .guide-link-btn {
    display: none !important;
  }

  .guide-shell,
  .guide-signal-card,
  .guide-trust-panel,
  .guide-path-card {
    box-shadow: none !important;
  }
}

/* === Pass 230: legal.php plain-language trust upgrade === */
.legal-shell-wrap {
  max-width: 1120px;
}

.legal-content {
  position: relative;
}

.legal-status-card {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.14), rgba(15, 23, 42, 0.88));
  border-color: rgba(59, 130, 246, 0.24);
}

.legal-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.legal-route-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.18);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.legal-route-card strong {
  color: #f8fafc;
  font-size: 17px;
  line-height: 1.35;
}

.legal-route-card p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.65;
}

.legal-route-card:hover,
.legal-route-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.32);
  background: rgba(15, 23, 42, 0.8);
  outline: none;
}

.legal-route-note {
  margin-top: 16px;
}

.legal-trust-panel {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.72));
}

.legal-snapshot-grid,
.legal-process-grid,
.legal-faq-grid,
.legal-footer-actions {
  display: grid;
  gap: 14px;
}

.legal-snapshot-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 20px 0 8px;
}

.legal-snapshot-card,
.legal-process-card,
.legal-faq-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.48);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.legal-snapshot-card strong,
.legal-process-card h3,
.legal-faq-card h3 {
  display: block;
  margin: 0;
  color: #f8fafc;
}

.legal-snapshot-card strong {
  font-size: 17px;
  line-height: 1.3;
}

.legal-snapshot-card p,
.legal-process-card p,
.legal-faq-card p {
  margin: 8px 0 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.6;
}

.legal-process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.legal-process-card h3,
.legal-faq-card h3 {
  font-size: 17px;
  line-height: 1.3;
}

.legal-inline-list {
  margin: 0;
  padding-left: 18px;
}

.legal-inline-list li + li {
  margin-top: 10px;
}

.legal-plain-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.24);
  color: #dbeafe;
  line-height: 1.65;
}

.legal-checklist ol {
  margin: 0;
  padding-left: 20px;
}

.legal-checklist li + li {
  margin-top: 10px;
}

.legal-faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.legal-footer-note-rich {
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-footer-note-rich p {
  margin: 0 0 14px;
}

.legal-footer-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legal-footer-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.legal-footer-actions a:hover,
.legal-footer-actions a:focus-visible {
  transform: translateY(-1px);
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.28);
  outline: none;
}

@media (max-width: 1040px) {
  .legal-snapshot-grid,
  .legal-process-grid,
  .legal-faq-grid,
  .legal-footer-actions,
  .legal-route-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .legal-status-card,
  #legalMenuToggle,
  #legalPrintButton,
  .guide-nav-tools,
  .guide-quick-links,
  .guide-link-btn,
  .legal-footer-actions {
    display: none !important;
  }

  .legal-snapshot-card,
  .legal-process-card,
  .legal-faq-card,
  .legal-footer-note-rich {
    box-shadow: none !important;
  }
}

/* === Pass 232: billing admin confidence + validation surface === */
.page-billing-admin {
  background:
    radial-gradient(circle at top, rgba(34, 211, 238, 0.16), transparent 32%),
    linear-gradient(180deg, #020617 0%, #081121 100%);
}

.billing-admin-shell-wrap {
  padding-top: 22px;
}

.billing-admin-shell {
  display: grid;
  gap: 18px;
}

.billing-admin-hero {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .9fr);
  align-items: stretch;
}

.billing-admin-eyebrow,
.billing-admin-kicker {
  margin: 0 0 8px;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #67e8f9;
  font-weight: 900;
}

.billing-admin-copy-hero {
  max-width: 62ch;
}

.billing-admin-state,
.billing-admin-message,
.billing-admin-validation,
.billing-admin-panel {
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.32);
}

.billing-admin-state {
  display: grid;
  gap: 6px;
  padding: 18px;
  align-content: start;
}

.billing-admin-state-label {
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 900;
}

.billing-admin-state strong {
  font-size: 1.05rem;
  color: #f8fafc;
}

.billing-admin-state span:last-child {
  color: #cbd5e1;
  line-height: 1.55;
}

.billing-admin-state-ready,
.billing-admin-readiness.is-ready {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(180deg, rgba(6, 95, 70, 0.22), rgba(15, 23, 42, 0.9));
}

.billing-admin-state-partial,
.billing-admin-readiness.is-partial {
  border-color: rgba(250, 204, 21, 0.34);
  background: linear-gradient(180deg, rgba(120, 53, 15, 0.24), rgba(15, 23, 42, 0.9));
}

.billing-admin-state-missing,
.billing-admin-readiness.is-missing {
  border-color: rgba(148, 163, 184, 0.24);
}

.billing-admin-state-error,
.billing-admin-readiness.is-error {
  border-color: rgba(239, 68, 68, 0.42);
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.26), rgba(15, 23, 42, 0.92));
}

.billing-admin-message,
.billing-admin-validation {
  padding: 16px 18px;
}

.billing-admin-message.is-success {
  border-color: rgba(16, 185, 129, 0.38);
  color: #bbf7d0;
}

.billing-admin-message.is-error,
.billing-admin-validation {
  border-color: rgba(239, 68, 68, 0.34);
  color: #fecaca;
}

.billing-admin-validation strong {
  display: block;
  margin-bottom: 8px;
}

.billing-admin-validation ul {
  margin: 0;
  padding-left: 18px;
}

.billing-admin-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  align-items: start;
}

.billing-admin-side {
  display: grid;
  gap: 18px;
}

.billing-admin-panel {
  padding: 20px;
}

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

.billing-admin-panel-head h2 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.2;
}

.billing-admin-panel-head.compact {
  margin-bottom: 14px;
}

.billing-admin-portal-link,
.billing-admin-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid rgba(34, 211, 238, 0.24);
  color: #67e8f9;
  background: rgba(8, 145, 178, 0.08);
}

.billing-admin-form {
  display: grid;
  gap: 12px;
}

.page-billing-admin .billing-admin-form label {
  margin-top: 0;
}

.billing-admin-field-copy {
  margin: -4px 0 0;
  color: #94a3b8;
  line-height: 1.55;
}

.billing-admin-readiness {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.7);
}

.billing-admin-readiness-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-top: 4px;
  background: currentColor;
  color: #94a3b8;
  box-shadow: 0 0 0 6px rgba(148, 163, 184, 0.12);
}

.billing-admin-readiness strong {
  display: block;
  margin-bottom: 4px;
  color: #f8fafc;
}

.billing-admin-readiness p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.55;
}

.billing-admin-readiness.is-ready .billing-admin-readiness-dot {
  color: #10b981;
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.12);
}

.billing-admin-readiness.is-partial .billing-admin-readiness-dot {
  color: #facc15;
  box-shadow: 0 0 0 6px rgba(250, 204, 21, 0.12);
}

.billing-admin-readiness.is-error .billing-admin-readiness-dot {
  color: #ef4444;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.12);
}

.billing-admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.page-billing-admin .billing-admin-actions .btn {
  flex: 1 1 220px;
  width: auto;
  margin-top: 0;
}

.billing-admin-actions .billing-admin-back-link {
  flex: 1 1 220px;
}

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

.billing-admin-metric {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.38);
}

.billing-admin-metric span {
  display: block;
  margin-bottom: 6px;
  color: #94a3b8;
  font-size: .84rem;
}

.billing-admin-metric strong {
  color: #f8fafc;
  font-size: 1rem;
}

.billing-admin-note-list,
.billing-admin-checklist {
  display: grid;
  gap: 12px;
}

.billing-admin-note {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.32);
}

.billing-admin-note strong {
  display: block;
  margin-bottom: 6px;
  color: #f8fafc;
}

.billing-admin-note span,
.billing-admin-checklist li {
  color: #cbd5e1;
  line-height: 1.55;
}

.billing-admin-checklist {
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 920px) {
  .billing-admin-hero,
  .billing-admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .billing-admin-shell-wrap {
    padding-top: 16px;
  }

  .billing-admin-panel,
  .billing-admin-state,
  .billing-admin-message,
  .billing-admin-validation {
    padding: 16px;
    border-radius: 20px;
  }

  .billing-admin-panel-head,
  .billing-admin-actions {
    flex-direction: column;
  }

  .billing-admin-metrics {
    grid-template-columns: 1fr;
  }

  .page-billing-admin .billing-admin-actions .btn,
  .billing-admin-actions .billing-admin-back-link,
  .billing-admin-portal-link {
    width: 100%;
  }
}


/* === Pass 233: cancel plan safety + Stripe handoff surface === */
.page-cancel-plan {
  background:
    radial-gradient(circle at top, rgba(248, 113, 113, 0.16), transparent 34%),
    linear-gradient(180deg, #020617 0%, #081121 100%);
}

.cancel-plan-shell-wrap {
  padding-top: 22px;
}

.cancel-plan-shell {
  display: grid;
  gap: 18px;
}

.cancel-plan-hero {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .9fr);
  align-items: stretch;
}

.cancel-plan-eyebrow,
.cancel-plan-kicker {
  margin: 0 0 8px;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fca5a5;
  font-weight: 900;
}

.cancel-plan-copy-hero {
  max-width: 62ch;
}

.cancel-plan-state,
.cancel-plan-message,
.cancel-plan-panel,
.cancel-plan-readiness {
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.32);
}

.cancel-plan-state {
  display: grid;
  gap: 6px;
  padding: 18px;
  align-content: start;
}

.cancel-plan-state-label {
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 900;
}

.cancel-plan-state strong {
  font-size: 1.05rem;
  color: #f8fafc;
}

.cancel-plan-state span:last-child {
  color: #cbd5e1;
  line-height: 1.55;
}

.cancel-plan-state-ready {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(180deg, rgba(6, 95, 70, 0.22), rgba(15, 23, 42, 0.9));
}

.cancel-plan-state-warning {
  border-color: rgba(250, 204, 21, 0.34);
  background: linear-gradient(180deg, rgba(120, 53, 15, 0.24), rgba(15, 23, 42, 0.9));
}

.cancel-plan-state-neutral {
  border-color: rgba(148, 163, 184, 0.24);
}

.cancel-plan-state-done {
  border-color: rgba(34, 211, 238, 0.34);
  background: linear-gradient(180deg, rgba(8, 145, 178, 0.18), rgba(15, 23, 42, 0.9));
}

.cancel-plan-message {
  padding: 16px 18px;
}

.cancel-plan-message.is-error {
  border-color: rgba(239, 68, 68, 0.34);
  color: #fecaca;
}

.cancel-plan-message.is-info {
  border-color: rgba(34, 211, 238, 0.28);
  color: #bae6fd;
}

.cancel-plan-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
  align-items: start;
}

.cancel-plan-side {
  display: grid;
  gap: 18px;
}

.cancel-plan-panel {
  padding: 20px;
}

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

.cancel-plan-panel-head h2 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.2;
}

.cancel-plan-panel-head.compact {
  margin-bottom: 14px;
}

.cancel-plan-link,
.page-cancel-plan .cancel-plan-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid rgba(248, 113, 113, 0.24);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.18);
}

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

.cancel-plan-process-card,
.cancel-plan-note,
.cancel-plan-metric {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.34);
}

.cancel-plan-process-card strong,
.cancel-plan-note strong {
  display: block;
  margin-bottom: 6px;
  color: #f8fafc;
}

.cancel-plan-process-card span,
.cancel-plan-note span,
.cancel-plan-checklist li,
.cancel-plan-field-copy {
  color: #cbd5e1;
  line-height: 1.55;
}

.cancel-plan-checklist-wrap {
  margin-top: 18px;
}

.cancel-plan-section-title {
  display: block;
  margin-bottom: 10px;
  color: #f8fafc;
}

.cancel-plan-checklist {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

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

.cancel-plan-metric span {
  display: block;
  margin-bottom: 6px;
  color: #94a3b8;
  font-size: .84rem;
}

.cancel-plan-metric strong {
  color: #f8fafc;
  font-size: 1rem;
}

.cancel-plan-note-list {
  display: grid;
  gap: 12px;
}

.cancel-plan-confirm-panel {
  margin-bottom: 102px;
}

.cancel-plan-form {
  display: grid;
  gap: 12px;
}

.cancel-plan-checkbox-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.3);
}

.cancel-plan-checkbox-row input {
  margin-top: 4px;
}

.cancel-plan-input {
  width: 100%;
}

.cancel-plan-readiness {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 8px;
  padding: 14px 16px;
}

.cancel-plan-readiness-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-top: 4px;
  background: currentColor;
  color: #94a3b8;
  box-shadow: 0 0 0 6px rgba(148, 163, 184, 0.12);
}

.cancel-plan-readiness strong {
  display: block;
  margin-bottom: 4px;
  color: #f8fafc;
}

.cancel-plan-readiness p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.55;
}

.cancel-plan-readiness.cancel-plan-state-ready .cancel-plan-readiness-dot {
  color: #10b981;
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.12);
}

.cancel-plan-readiness.cancel-plan-state-warning .cancel-plan-readiness-dot {
  color: #facc15;
  box-shadow: 0 0 0 6px rgba(250, 204, 21, 0.12);
}

.cancel-plan-readiness.cancel-plan-state-done .cancel-plan-readiness-dot {
  color: #22d3ee;
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.12);
}

.cancel-plan-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.page-cancel-plan .cancel-plan-actions .btn,
.page-cancel-plan .cancel-plan-actions .cancel-plan-back {
  flex: 1 1 220px;
  width: auto;
  margin-top: 0;
}

.page-cancel-plan .cancel-plan-confirm[disabled] {
  opacity: .55;
  cursor: not-allowed;
}

@media (max-width: 920px) {
  .cancel-plan-hero,
  .cancel-plan-grid,
  .cancel-plan-process-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cancel-plan-shell-wrap {
    padding-top: 16px;
  }

  .cancel-plan-panel,
  .cancel-plan-state,
  .cancel-plan-message,
  .cancel-plan-readiness {
    padding: 16px;
    border-radius: 20px;
  }

  .cancel-plan-panel-head,
  .cancel-plan-actions {
    flex-direction: column;
  }

  .cancel-plan-metrics {
    grid-template-columns: 1fr;
  }

  .page-cancel-plan .cancel-plan-actions .btn,
  .page-cancel-plan .cancel-plan-actions .cancel-plan-back,
  .cancel-plan-link {
    width: 100%;
  }
}

/* === Pass 234: billing portal launch safety surface === */
.page-billing-portal {
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.16), transparent 34%),
    linear-gradient(180deg, #020617 0%, #081121 100%);
}

.billing-portal-shell-wrap {
  padding-top: 22px;
}

.billing-portal-shell {
  display: grid;
  gap: 18px;
}

.billing-portal-hero {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .9fr);
  align-items: stretch;
}

.billing-portal-eyebrow,
.billing-portal-kicker {
  margin: 0 0 8px;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #93c5fd;
  font-weight: 900;
}

.billing-portal-copy-hero {
  max-width: 62ch;
}

.billing-portal-state,
.billing-portal-message,
.billing-portal-panel {
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.32);
}

.billing-portal-state {
  display: grid;
  gap: 6px;
  padding: 18px;
  align-content: start;
}

.billing-portal-state-label {
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 900;
}

.billing-portal-state strong {
  font-size: 1.05rem;
  color: #f8fafc;
}

.billing-portal-state span:last-child {
  color: #cbd5e1;
  line-height: 1.55;
}

.billing-portal-state-ready {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(180deg, rgba(6, 95, 70, 0.22), rgba(15, 23, 42, 0.9));
}

.billing-portal-state-warning {
  border-color: rgba(250, 204, 21, 0.34);
  background: linear-gradient(180deg, rgba(120, 53, 15, 0.24), rgba(15, 23, 42, 0.9));
}

.billing-portal-state-error {
  border-color: rgba(239, 68, 68, 0.42);
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.26), rgba(15, 23, 42, 0.92));
}

.billing-portal-state-partial {
  border-color: rgba(96, 165, 250, 0.34);
  background: linear-gradient(180deg, rgba(30, 64, 175, 0.2), rgba(15, 23, 42, 0.9));
}

.billing-portal-state-missing {
  border-color: rgba(148, 163, 184, 0.24);
}

.billing-portal-message {
  padding: 16px 18px;
}

.billing-portal-message.is-error {
  border-color: rgba(239, 68, 68, 0.34);
  color: #fecaca;
}

.billing-portal-message.is-info {
  border-color: rgba(96, 165, 250, 0.34);
  color: #dbeafe;
}

.billing-portal-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
  align-items: start;
}

.billing-portal-side {
  display: grid;
  gap: 18px;
}

.billing-portal-panel {
  padding: 20px;
}

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

.billing-portal-panel-head h2 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.2;
}

.billing-portal-panel-head.compact {
  margin-bottom: 14px;
}

.billing-portal-link,
.page-billing-portal .billing-portal-back,
.page-billing-portal .billing-portal-copy-context {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
}

.billing-portal-link,
.page-billing-portal .billing-portal-copy-context {
  border: 1px solid rgba(96, 165, 250, 0.24);
  color: #bfdbfe;
  background: rgba(30, 64, 175, 0.16);
}

.page-billing-portal .billing-portal-copy-context {
  cursor: pointer;
}

.page-billing-portal .billing-portal-back {
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.6);
}

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

.billing-portal-process-card,
.billing-portal-note,
.billing-portal-metric {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.34);
}

.billing-portal-process-card strong,
.billing-portal-note strong {
  display: block;
  margin-bottom: 6px;
  color: #f8fafc;
}

.billing-portal-process-card span,
.billing-portal-note span,
.billing-portal-checklist li {
  color: #cbd5e1;
  line-height: 1.55;
}

.billing-portal-note-ready {
  border-color: rgba(16, 185, 129, 0.28);
}

.billing-portal-note-warning,
.billing-portal-note-error {
  border-color: rgba(239, 68, 68, 0.28);
}

.billing-portal-note-partial {
  border-color: rgba(96, 165, 250, 0.28);
}

.billing-portal-checklist-wrap {
  margin-top: 18px;
}

.billing-portal-section-title {
  display: block;
  margin-bottom: 10px;
  color: #f8fafc;
}

.billing-portal-checklist {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

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

.billing-portal-metric span {
  display: block;
  margin-bottom: 6px;
  color: #94a3b8;
  font-size: .84rem;
}

.billing-portal-metric strong {
  color: #f8fafc;
  font-size: 1rem;
}

.billing-portal-note-list {
  display: grid;
  gap: 12px;
}

.billing-portal-form {
  display: grid;
  gap: 12px;
}

.billing-portal-confirm-panel {
  margin-bottom: 102px;
}

.billing-portal-checkbox-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.3);
}

.billing-portal-checkbox-row input {
  margin-top: 4px;
}

.billing-portal-readiness {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.7);
}

.billing-portal-readiness-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-top: 4px;
  background: currentColor;
  color: #94a3b8;
  box-shadow: 0 0 0 6px rgba(148, 163, 184, 0.12);
}

.billing-portal-readiness strong {
  display: block;
  margin-bottom: 4px;
  color: #f8fafc;
}

.billing-portal-readiness p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.55;
}

.billing-portal-readiness.billing-portal-state-ready .billing-portal-readiness-dot {
  color: #10b981;
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.12);
}

.billing-portal-readiness.billing-portal-state-warning .billing-portal-readiness-dot,
.billing-portal-readiness.billing-portal-state-partial .billing-portal-readiness-dot {
  color: #facc15;
  box-shadow: 0 0 0 6px rgba(250, 204, 21, 0.12);
}

.billing-portal-readiness.billing-portal-state-error .billing-portal-readiness-dot {
  color: #f87171;
  box-shadow: 0 0 0 6px rgba(248, 113, 113, 0.12);
}

.billing-portal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.page-billing-portal .billing-portal-actions .btn,
.page-billing-portal .billing-portal-actions .billing-portal-back,
.page-billing-portal .billing-portal-actions .billing-portal-copy-context {
  flex: 1 1 220px;
  width: auto;
  margin-top: 0;
}

.page-billing-portal .billing-portal-launch[disabled] {
  opacity: .55;
  cursor: not-allowed;
}


.billing-portal-return-panel {
  margin-bottom: 102px;
}

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

.billing-portal-route-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.34);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.billing-portal-route-card:hover,
.billing-portal-route-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.32);
  box-shadow: 0 16px 28px rgba(2, 6, 23, 0.24);
  background: rgba(15, 23, 42, 0.8);
  outline: none;
}

.billing-portal-route-eyebrow {
  color: #93c5fd;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 900;
}

.billing-portal-route-card strong {
  color: #f8fafc;
  font-size: 1rem;
}

.billing-portal-route-card span:last-child {
  color: #cbd5e1;
  line-height: 1.55;
}

@media (max-width: 920px) {
  .billing-portal-hero,
  .billing-portal-grid,
  .billing-portal-process-grid,
  .billing-portal-route-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .billing-portal-shell-wrap {
    padding-top: 16px;
  }

  .billing-portal-panel,
  .billing-portal-state,
  .billing-portal-message,
  .billing-portal-readiness {
    padding: 16px;
    border-radius: 20px;
  }

  .billing-portal-panel-head,
  .billing-portal-actions {
    flex-direction: column;
  }

  .billing-portal-metrics {
    grid-template-columns: 1fr;
  }

  .page-billing-portal .billing-portal-actions .btn,
  .page-billing-portal .billing-portal-actions .billing-portal-back,
  .page-billing-portal .billing-portal-actions .billing-portal-copy-context,
  .billing-portal-link {
    width: 100%;
  }
}

/* === Pass 235: sales billing return surface cleanup === */
.standalone-app-page.page-billing-sales {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.14), transparent 28%),
    #020617;
  color: #f8fafc;
  padding: 18px 0 72px;
}

.billing-sales-shell-wrap {
  max-width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 16px;
}

.billing-sales-shell {
  display: grid;
  gap: 20px;
}

.billing-sales-topbar,
.billing-sales-top-actions,
.billing-sales-hero-actions,
.billing-sales-toggle-row,
.billing-sales-help-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.billing-sales-topbar {
  justify-content: space-between;
}

.billing-sales-back,
.billing-sales-link,
.billing-sales-copy-context {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.billing-sales-copy-context {
  cursor: pointer;
}

.billing-sales-back:hover,
.billing-sales-link:hover,
.billing-sales-copy-context:hover {
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(15, 23, 42, 0.92);
  transform: translateY(-1px);
}

.billing-sales-hero,
.billing-sales-message,
.billing-sales-metric-card,
.billing-sales-plan-card,
.billing-sales-credit-card,
.billing-sales-help-card,
.billing-sales-summary-card,
.billing-sales-activation-panel {
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.84);
  box-shadow: 0 22px 54px rgba(2, 6, 23, 0.42);
}

.billing-sales-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .9fr);
  gap: 22px;
  padding: 28px;
}

.billing-sales-eyebrow,
.billing-sales-kicker,
.billing-sales-summary-label,
.billing-sales-status-label,
.billing-sales-metric-label,
.billing-sales-plan-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #22d3ee;
}

.billing-sales-title {
  margin: 10px 0 12px;
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.billing-sales-copy {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.7;
}

.billing-sales-copy-hero {
  max-width: 640px;
}

.billing-sales-status {
  display: grid;
  gap: 6px;
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.42);
}

.billing-sales-status strong {
  font-size: 1.05rem;
}

.billing-sales-status span:last-child {
  color: #cbd5e1;
  line-height: 1.6;
}

.billing-sales-status-success {
  border-color: rgba(16, 185, 129, 0.34);
  background: rgba(16, 185, 129, 0.12);
}

.billing-sales-status-error {
  border-color: rgba(248, 113, 113, 0.34);
  background: rgba(127, 29, 29, 0.18);
}

.billing-sales-status-warning {
  border-color: rgba(250, 204, 21, 0.32);
  background: rgba(113, 63, 18, 0.18);
}

.billing-sales-status-ready {
  border-color: rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.12);
}

.billing-sales-hero-actions {
  margin-top: 18px;
}

.page-billing-sales .billing-sales-hero-btn,
.page-billing-sales .billing-sales-copy-context {
  flex: 1 1 220px;
  width: auto;
}

.billing-sales-summary-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
}

.billing-sales-summary-card strong {
  font-size: clamp(1.4rem, 3vw, 1.95rem);
  line-height: 1.06;
}

.billing-sales-summary-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.65;
}

.billing-sales-summary-card-ready {
  border-color: rgba(16, 185, 129, 0.32);
}

.billing-sales-summary-card-partial {
  border-color: rgba(250, 204, 21, 0.32);
}

.billing-sales-inline-metrics {
  display: grid;
  gap: 12px;
  margin: 12px 0 0;
}

.billing-sales-inline-metrics div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.48);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.billing-sales-inline-metrics dt {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #94a3b8;
}

.billing-sales-inline-metrics dd {
  margin: 6px 0 0;
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 800;
}

.billing-sales-metrics,
.billing-sales-message-grid,
.billing-sales-plan-grid,
.billing-sales-credit-grid,
.billing-sales-help-grid {
  display: grid;
  gap: 18px;
}

.billing-sales-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.billing-sales-message-grid,
.billing-sales-help-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.billing-sales-plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.billing-sales-credit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.billing-sales-metric-card,
.billing-sales-message,
.billing-sales-help-card,
.billing-sales-credit-card,
.billing-sales-plan-card {
  padding: 22px;
}

.billing-sales-metric-card {
  display: grid;
  gap: 4px;
  align-content: start;
}

.billing-sales-metric-card strong,
.billing-sales-credit-price,
.billing-sales-price {
  display: block;
  margin: 10px 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 950;
  line-height: 1.05;
}

.billing-sales-price span {
  margin-left: 4px;
  font-size: 16px;
  color: #94a3b8;
  font-weight: 700;
}

.billing-sales-metric-card p,
.billing-sales-message p,
.billing-sales-help-card p,
.billing-sales-credit-card p,
.billing-sales-plan-copy,
.billing-sales-section-note,
.billing-sales-activation-panel p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.65;
}

.billing-sales-metric-card p {
  color: #94a3b8;
  line-height: 1.45;
}

.billing-sales-message-success {
  border-color: rgba(16, 185, 129, 0.34);
}

.billing-sales-message-error {
  border-color: rgba(248, 113, 113, 0.34);
}

.billing-sales-activation-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, .8fr);
  gap: 18px;
  padding: 22px;
}

.billing-sales-activation-stats {
  display: grid;
  gap: 12px;
  align-content: start;
}

.billing-sales-activation-stats span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.44);
  border: 1px solid rgba(16, 185, 129, 0.18);
  color: #cbd5e1;
}

.billing-sales-activation-stats strong {
  color: #f8fafc;
}

.page-billing-sales .billing-sales-activate-btn {
  width: 100%;
}

.billing-sales-utility-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(8, 15, 30, 0.74);
}

.billing-sales-utility-panel-tight {
  margin-top: 6px;
}

.billing-sales-utility-copy {
  display: grid;
  gap: 10px;
  align-content: start;
}

.billing-sales-utility-copy h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.12;
}

.billing-sales-utility-copy p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.6;
}

.billing-sales-utility-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

.billing-sales-utility-links .billing-sales-link {
  flex: 1 1 170px;
}

.billing-sales-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.billing-sales-toggle-row {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.72);
}

.billing-sales-toggle-row span {
  color: #cbd5e1;
  font-weight: 800;
}

.billing-sales-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.billing-sales-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.billing-sales-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #1e293b;
  cursor: pointer;
  transition: background .18s ease;
}

.billing-sales-slider::before {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  transition: transform .18s ease;
}

.billing-sales-switch input:checked + .billing-sales-slider {
  background: #22d3ee;
}

.billing-sales-switch input:checked + .billing-sales-slider::before {
  transform: translateX(24px);
}

.billing-sales-save-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.14);
  color: #22d3ee;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.billing-sales-plan-card,
.billing-sales-credit-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.billing-sales-plan-card-featured,
.billing-sales-credit-card-featured {
  border-color: rgba(34, 211, 238, 0.34);
  box-shadow: 0 22px 54px rgba(34, 211, 238, 0.1);
}

.billing-sales-plan-name-featured {
  color: #67e8f9;
}

.billing-sales-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.billing-sales-feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #cbd5e1;
  line-height: 1.55;
}

.billing-sales-feature-list svg {
  width: 18px;
  height: 18px;
  color: #22d3ee;
  flex-shrink: 0;
  margin-top: 2px;
}

.billing-sales-feature-list b {
  color: #f8fafc;
}

.page-billing-sales .btn {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
}

@media (max-width: 1080px) {
  .billing-sales-hero,
  .billing-sales-activation-panel,
  .billing-sales-utility-panel,
  .billing-sales-metrics,
  .billing-sales-plan-grid,
  .billing-sales-credit-grid,
  .billing-sales-message-grid,
  .billing-sales-help-grid {
    grid-template-columns: 1fr 1fr;
  }

  .billing-sales-hero,
  .billing-sales-utility-panel,
  .billing-sales-activation-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .billing-sales-topbar,
  .billing-sales-top-actions,
  .billing-sales-hero-actions,
  .billing-sales-toggle-row,
  .billing-sales-help-links,
  .billing-sales-section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .billing-sales-metrics,
  .billing-sales-plan-grid,
  .billing-sales-credit-grid,
  .billing-sales-message-grid,
  .billing-sales-help-grid {
    grid-template-columns: 1fr;
  }

  .billing-sales-hero,
  .billing-sales-message,
  .billing-sales-metric-card,
  .billing-sales-plan-card,
  .billing-sales-credit-card,
  .billing-sales-help-card,
  .billing-sales-summary-card,
  .billing-sales-activation-panel,
  .billing-sales-utility-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .page-billing-sales .billing-sales-hero-btn,
  .page-billing-sales .billing-sales-copy-context,
  .billing-sales-back,
  .billing-sales-link {
    width: 100%;
  }
}


/* === Pass 9 standalone surface alignment === */
.he-context-rail {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 18px 0;
}

.he-context-card {
  background: rgba(8, 15, 30, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.22);
}

.he-context-label,
.he-standalone-kicker {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #67e8f9;
  margin-bottom: 8px;
}

.he-context-card strong {
  display: block;
  color: #f8fafc;
  font-size: 1rem;
  margin-bottom: 8px;
}

.he-context-card p,
.he-checkout-lead,
.he-checkout-note {
  color: #cbd5e1;
  line-height: 1.65;
}

.he-action-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.he-pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  background: rgba(8, 15, 30, 0.85);
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

button.he-pill-link {
  font: inherit;
}

.he-pill-link:hover,
.he-pill-link:focus-visible {
  border-color: rgba(103, 232, 249, 0.5);
  color: #67e8f9;
  outline: none;
}

.he-checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 18px;
}

.he-standalone-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  background: linear-gradient(135deg, #22d3ee, #38bdf8);
  color: #06202a;
  font-weight: 900;
  border: 1px solid rgba(34, 211, 238, 0.45);
  box-shadow: 0 14px 30px rgba(8, 47, 73, 0.28);
}

.he-standalone-btn-secondary {
  background: rgba(8, 15, 30, 0.88);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: none;
}

.he-checkout-lead {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 1rem;
}

.help-advisor-route-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 18px 0 4px;
}

.help-advisor-route-card {
  display: block;
  text-decoration: none;
  background: rgba(8, 15, 30, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.2);
}

.help-advisor-route-card strong {
  display: block;
  color: #f8fafc;
  margin-bottom: 8px;
}

.help-advisor-route-card p,
.help-advisor-route-label {
  color: #cbd5e1;
}

.help-advisor-route-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #67e8f9;
}

.guide-utility-bar {
  width: min(100%, var(--app-max-width, 600px));
  margin: 12px auto 0;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  box-sizing: border-box;
}

.guide-utility-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(8, 15, 30, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
  font-weight: 700;
}

.guide-utility-link:hover,
.guide-utility-link:focus-visible {
  color: #67e8f9;
  border-color: rgba(103, 232, 249, 0.45);
  outline: none;
}

@media (max-width: 640px) {
  .he-checkout-actions,
  .he-action-pills,
  .guide-utility-bar {
    align-items: stretch;
  }

  .he-standalone-btn,
  .he-pill-link,
  .guide-utility-link {
    width: 100%;
  }
}


/* === Pass 37: AI workspace ask/read/act continuity === */
.operator-workspace-bar {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.operator-workspace-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(8, 15, 30, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.18);
}

.operator-workspace-link:hover,
.operator-workspace-link:focus-visible {
  outline: none;
  color: #67e8f9;
  border-color: rgba(103, 232, 249, 0.44);
}

.operator-workspace-map {
  margin: 0 0 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(8, 15, 30, 0.92));
  box-shadow: 0 22px 48px rgba(2, 6, 23, 0.22);
}

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

.operator-workspace-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #67e8f9;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.operator-workspace-map-head h2,
.operator-workspace-map-head h3 {
  margin: 0 0 6px;
  color: #f8fafc;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  line-height: 1.2;
}

.operator-workspace-map-head p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.65;
}

.operator-workspace-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(103, 232, 249, 0.28);
  background: rgba(8, 47, 73, 0.24);
  color: #67e8f9;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.operator-workspace-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.operator-workspace-card {
  display: block;
  text-decoration: none;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(8, 15, 30, 0.9);
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.22);
}

.operator-workspace-card.is-current {
  border-color: rgba(34, 211, 238, 0.42);
  background: linear-gradient(180deg, rgba(8, 47, 73, 0.34), rgba(8, 15, 30, 0.92));
}

.operator-workspace-card:hover,
.operator-workspace-card:focus-visible {
  outline: none;
  color: #67e8f9;
  border-color: rgba(103, 232, 249, 0.44);
}

.operator-workspace-card strong {
  display: block;
  margin-bottom: 8px;
  color: #f8fafc;
}

.operator-workspace-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.62;
}

.operator-workspace-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #67e8f9;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.operator-workspace-meta {
  margin-top: 14px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.65;
}

.operator-workspace-context-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 0 0 18px;
}

.operator-workspace-context-chip {
  background: rgba(8, 15, 30, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.18);
}

.operator-workspace-context-chip strong {
  display: block;
  margin-bottom: 6px;
  color: #f8fafc;
  font-size: 14px;
}

.operator-workspace-context-chip p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.62;
}

.operator-workspace-context-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #67e8f9;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.page-help-advisor .operator-workspace-bar {
  margin-bottom: 16px;
}

.guide-content .operator-workspace-map {
  margin-top: 16px;
}

@media (max-width: 640px) {
  .operator-workspace-bar,
  .operator-workspace-grid,
  .operator-workspace-context-strip {
    grid-template-columns: 1fr;
  }

  .operator-workspace-link {
    width: 100%;
  }

  .operator-workspace-map-head {
    flex-direction: column;
    align-items: stretch;
  }

  .operator-workspace-badge {
    width: fit-content;
  }
}


/* === Pass 14: AI workspace and settings routing alignment === */
.ai-workspace-page {
  max-width: 880px !important;
  padding: 18px 16px 28px;
}

.ai-workspace-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(8, 15, 30, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 26px;
  padding: 22px;
  box-shadow: 0 28px 64px rgba(2, 6, 23, 0.38);
}

.ai-workspace-head,
.hospiedge-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.ai-workspace-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #67e8f9;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ai-workspace-title {
  color: #f8fafc;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.04;
}

.ai-workspace-copy {
  max-width: 720px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.65;
}

.ai-workspace-controls,
.hospiedge-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ai-workspace-control-btn,
.hospiedge-clear {
  min-height: 40px;
  border-radius: 999px;
  padding: 9px 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(8, 15, 30, 0.92);
  color: #e2e8f0;
  font-weight: 800;
}

.ai-workspace-status {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin: 0 0 18px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(103, 232, 249, 0.24);
  background: rgba(8, 47, 73, 0.28);
}

.ai-workspace-status strong {
  display: block;
  margin-bottom: 4px;
  color: #f8fafc;
  font-size: 15px;
}

.ai-workspace-status p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.6;
}

.ai-workspace-status-pill {
  flex-shrink: 0;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid currentColor;
  color: #67e8f9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ai-workspace-status-warning {
  border-color: rgba(250, 204, 21, 0.28);
  background: rgba(66, 32, 6, 0.34);
}

.ai-workspace-status-warning .ai-workspace-status-pill {
  color: #fde68a;
}

.ai-workspace-route-grid,
.help-advisor-lane-grid,
.settings-route-grid,
.settings-note-grid,
.ai-workspace-note-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.ai-workspace-route-grid {
  margin: 0 0 18px;
}

.ai-workspace-route-card,
.help-advisor-lane-card,
.settings-route-link,
.settings-note-card,
.ai-workspace-note-card {
  display: block;
  text-decoration: none;
  background: rgba(8, 15, 30, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.22);
}

.ai-workspace-route-card strong,
.help-advisor-lane-card strong,
.settings-route-link strong,
.settings-note-card strong,
.ai-workspace-note-card strong {
  display: block;
  color: #f8fafc;
  margin-bottom: 8px;
}

.ai-workspace-route-card p,
.help-advisor-lane-card p,
.settings-route-link p,
.settings-note-card p,
.ai-workspace-note-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.62;
}

.ai-workspace-route-label,
.settings-route-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #67e8f9;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ai-workspace-note-grid {
  margin: 0 0 18px;
}

.ai-workspace-chat,
.hospiedge-chat {
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  padding: 16px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hospiedge-messages {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.hospiedge-bubble {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 18px;
  line-height: 1.55;
  word-wrap: break-word;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.22);
}

.hospiedge-bubble.ai {
  align-self: flex-start;
  background: rgba(15, 23, 42, 0.9);
  color: #e6eef8;
}

.hospiedge-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.94), rgba(56, 189, 248, 0.94));
  color: #03151e;
  border-color: rgba(34, 211, 238, 0.5);
}

.hospiedge-input-area {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 2px;
}

.hospiedge-input {
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #e6eef8;
}

.hospiedge-send {
  min-height: 46px;
  border: none;
  border-radius: 14px;
  padding: 11px 16px;
  background: linear-gradient(135deg, #22d3ee, #38bdf8);
  color: #021018;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(8, 47, 73, 0.26);
}

.hospiedge-small {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.6;
}

.help-advisor-lane-grid {
  margin: 0 0 16px;
}

.help-advisor-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.help-advisor-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(103, 232, 249, 0.26);
  background: rgba(8, 47, 73, 0.24);
  color: #e2e8f0;
  font-weight: 800;
}

.help-advisor-inline-link:hover,
.help-advisor-inline-link:focus-visible,
.ai-workspace-route-card:hover,
.ai-workspace-route-card:focus-visible,
.settings-route-link:hover,
.settings-route-link:focus-visible {
  outline: none;
  border-color: rgba(103, 232, 249, 0.48);
  color: #67e8f9;
}

.help-advisor-review-card {
  margin-top: 16px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(8, 15, 30, 0.9);
}

.help-advisor-review-card strong {
  display: block;
  margin-bottom: 6px;
  color: #f8fafc;
}

.help-advisor-review-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.6;
}

.settings-preview-banner {
  background: #f59e0b;
  color: #000;
  padding: 12px;
  text-align: center;
  font-weight: 900;
  font-size: 13px;
  position: sticky;
  top: var(--he-sticky-top, 70px);
  z-index: 999;
}

.settings-preview-link {
  color: #000;
  text-decoration: underline;
}

.page-settings .settings-route-card {
  overflow: hidden;
}

.page-settings .settings-plan-pill {
  font-size: 10px;
  font-weight: 800;
  background: rgba(34,211,238,0.1);
  color: var(--primary);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(34,211,238,0.2);
}

.page-settings .settings-admin-link-wrap {
  margin-top: 15px;
  text-align: center;
}

.page-settings .settings-admin-link {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.page-settings .settings-invite-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 1px;
}

.page-settings .settings-action-featured {
  grid-column: span 2;
  border-color: var(--primary);
  background: linear-gradient(90deg, var(--primary-dim) 0%, transparent 100%);
  align-items: flex-start;
}

.page-settings .settings-action-copy {
  text-align: left;
}

.page-settings .settings-action-label-primary {
  color: var(--primary);
}

.page-settings .settings-action-copy-strong {
  color: var(--text-main);
}

.page-settings .settings-action-copy-mini {
  font-size: 9px;
  margin-top: 4px;
}

.page-settings .settings-inline-emphasis {
  color: var(--primary);
}

.page-settings .settings-action-accent {
  border-color: rgba(34,211,238,0.4);
  background: rgba(34,211,238,0.05);
}

.page-settings .settings-action-danger {
  border-color: rgba(239,68,68,0.4);
  background: rgba(239,68,68,0.05);
}

.page-settings .settings-action-label-danger {
  color: #ef4444;
}

.page-settings .settings-action-label-gold {
  color: var(--gold);
}

.page-settings .settings-empty-copy {
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
  text-align: center;
}

@media (max-width: 640px) {
  .ai-workspace-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .ai-workspace-card {
    padding: 18px;
    border-radius: 22px;
  }

  .ai-workspace-head,
  .ai-workspace-status,
  .hospiedge-input-area {
    flex-direction: column;
    align-items: stretch;
  }

  .hospiedge-bubble {
    max-width: 100%;
  }

  .hospiedge-send,
  .ai-workspace-control-btn,
  .help-advisor-inline-link {
    width: 100%;
    justify-content: center;
  }
}


/* Shared owner billing journey map */
.billing-journey-card {
    margin: 18px 0 24px;
    padding: 20px 22px;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(8, 15, 31, 0.92));
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.32);
}

.billing-journey-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 16px;
}

.billing-journey-kicker {
    margin: 0 0 8px;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #67e8f9;
    font-weight: 800;
}

.billing-journey-head h2 {
    margin: 0;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    line-height: 1.2;
    color: #f8fafc;
}

.billing-journey-copy {
    margin: 0;
    max-width: 520px;
    font-size: 0.96rem;
    line-height: 1.6;
    color: rgba(226, 232, 240, 0.82);
}

.billing-journey-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.billing-journey-link,
.page-billing-admin .billing-journey-copy,
.page-cancel-plan .billing-journey-copy {
    text-decoration: none;
}

.billing-journey-link {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    font-weight: 700;
    line-height: 1.35;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.billing-journey-link:hover,
.billing-journey-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(34, 211, 238, 0.36);
    background: rgba(15, 23, 42, 0.9);
}

.billing-journey-link.is-current {
    border-color: rgba(34, 211, 238, 0.48);
    background: rgba(8, 47, 73, 0.52);
    color: #ecfeff;
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.12);
}

.billing-journey-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.82);
    color: #e2e8f0;
    font-weight: 700;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

button.billing-journey-copy:hover,
button.billing-journey-copy:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(34, 211, 238, 0.36);
    background: rgba(15, 23, 42, 0.94);
}

.page-billing-admin .billing-admin-actions .billing-journey-copy,
.page-cancel-plan .cancel-plan-actions .billing-journey-copy {
    flex: 1 1 220px;
}

@media (max-width: 820px) {
    .billing-journey-head {
        flex-direction: column;
    }

    .billing-journey-card {
        padding: 18px;
        border-radius: 20px;
    }
}


/* === Pass 17: paused-access recovery bridges === */
.page-settings .settings-recovery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.page-settings .settings-recovery-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.44);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.page-settings .settings-recovery-card strong {
  color: #f8fafc;
  font-size: 17px;
  line-height: 1.35;
}

.page-settings .settings-recovery-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.6;
}

.page-settings .settings-recovery-card:hover,
.page-settings .settings-recovery-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.38);
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.24);
  outline: none;
}


.page-settings .owner-control-lane-grid,
.page-settings .owner-control-launch-grid,
.owner-locations-page .owner-control-lane-grid,
.owner-locations-page .owner-control-launch-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.page-settings .owner-control-lane-grid,
.owner-locations-page .owner-control-lane-grid {
  margin-top: 16px;
}

.page-settings .owner-control-launch-grid,
.owner-locations-page .owner-control-launch-grid {
  margin-top: 14px;
}

.page-settings .owner-control-lane-link,
.page-settings .owner-control-launch-link,
.owner-locations-page .owner-control-lane-link,
.owner-locations-page .owner-control-launch-link {
  display: grid;
  gap: 8px;
  text-decoration: none;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(8, 15, 30, 0.9);
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.22);
}

.page-settings .owner-control-lane-link strong,
.page-settings .owner-control-launch-link strong,
.owner-locations-page .owner-control-lane-link strong,
.owner-locations-page .owner-control-launch-link strong {
  display: block;
  color: #f8fafc;
}

.page-settings .owner-control-lane-link p,
.page-settings .owner-control-launch-link p,
.owner-locations-page .owner-control-lane-link span:last-child,
.owner-locations-page .owner-control-launch-link span:last-child {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.6;
}

.page-settings .owner-control-lane-link.is-current,
.owner-locations-page .owner-control-lane-link.is-current {
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(8, 47, 73, 0.38);
}

.page-settings .owner-control-lane-link:hover,
.page-settings .owner-control-lane-link:focus-visible,
.page-settings .owner-control-launch-link:hover,
.page-settings .owner-control-launch-link:focus-visible,
.owner-locations-page .owner-control-lane-link:hover,
.owner-locations-page .owner-control-lane-link:focus-visible,
.owner-locations-page .owner-control-launch-link:hover,
.owner-locations-page .owner-control-launch-link:focus-visible {
  outline: none;
  border-color: rgba(34, 211, 238, 0.38);
}

.support-recovery-context-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.support-summary-card-tight {
  min-height: 100%;
}

.support-summary-card-tight strong {
  word-break: break-word;
}

.support-recovery-route-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .page-settings .settings-recovery-grid,
  .support-recovery-context-grid,
  .support-recovery-route-grid {
    grid-template-columns: 1fr;
  }
}


/* === Pass 18: trust and pre-support decision lane alignment === */
.help-advisor-context-banner,
.guide-decision-note,
.billing-admin-support-note {
  margin: 16px 0 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(103, 232, 249, 0.24);
  background: rgba(8, 47, 73, 0.22);
  color: #dbeafe;
  line-height: 1.65;
}

.help-advisor-context-banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.help-advisor-context-banner strong,
.billing-admin-support-note strong {
  display: block;
  color: #f8fafc;
  margin-bottom: 6px;
}

.help-advisor-context-banner p,
.billing-admin-support-note span {
  margin: 0;
}

.help-advisor-context-banner span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(103, 232, 249, 0.26);
  color: #67e8f9;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.help-advisor-decision-grid,
.guide-decision-grid,
.billing-admin-decision-lane {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin: 16px 0 0;
}

.help-advisor-decision-card,
.guide-decision-card,
.billing-admin-decision-card {
  display: block;
  text-decoration: none;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(8, 15, 30, 0.9);
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.22);
}

.help-advisor-decision-card strong,
.guide-decision-card strong,
.billing-admin-decision-card strong {
  display: block;
  color: #f8fafc;
  margin-bottom: 8px;
}

.help-advisor-decision-card p,
.guide-decision-card p,
.billing-admin-decision-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.62;
}

.help-advisor-decision-card.is-current,
.guide-decision-card.is-current,
.billing-admin-decision-card.is-current {
  border-color: rgba(34, 211, 238, 0.42);
  background: linear-gradient(180deg, rgba(8, 47, 73, 0.34), rgba(8, 15, 30, 0.92));
}

.help-advisor-decision-card:hover,
.help-advisor-decision-card:focus-visible,
.guide-decision-card:hover,
.guide-decision-card:focus-visible,
.billing-admin-decision-card:hover,
.billing-admin-decision-card:focus-visible,
.legal-route-card:hover,
.legal-route-card:focus-visible {
  outline: none;
  border-color: rgba(103, 232, 249, 0.44);
  color: #67e8f9;
}

.help-advisor-review-card-compact {
  margin-top: 16px;
}

.billing-admin-support-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.billing-admin-support-note a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(103, 232, 249, 0.24);
  color: #e2e8f0;
  font-weight: 800;
  white-space: nowrap;
}

.billing-admin-support-note a:hover,
.billing-admin-support-note a:focus-visible {
  outline: none;
  border-color: rgba(103, 232, 249, 0.44);
  color: #67e8f9;
}

@media (max-width: 640px) {
  .help-advisor-context-banner,
  .billing-admin-support-note {
    flex-direction: column;
    align-items: stretch;
  }

  .billing-admin-support-note a {
    width: 100%;
  }
}


.support-origin-note {
  margin-top: 14px;
  margin-bottom: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: rgba(8, 47, 73, 0.22);
  color: #e0f2fe;
  font-size: 13px;
  line-height: 1.65;
}

.support-recovery-context-grid-extended {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.billing-sales-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.billing-sales-route-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.84);
  box-shadow: 0 22px 54px rgba(2, 6, 23, 0.42);
}

.billing-sales-route-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #22d3ee;
}

.billing-sales-route-card strong {
  display: block;
  margin-top: 12px;
  font-size: 1.15rem;
  line-height: 1.4;
}

.billing-sales-route-card p {
  margin: 12px 0 0;
  color: #cbd5e1;
  line-height: 1.7;
}

.billing-sales-route-card .billing-sales-help-links {
  margin-top: 16px;
}

@media (max-width: 980px) {
  .support-recovery-context-grid-extended,
  .billing-sales-route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .support-recovery-context-grid-extended,
  .billing-sales-route-grid {
    grid-template-columns: 1fr;
  }
}


.page-floor-audit .audit-surface-bar {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin:0 0 14px;
}
.page-floor-audit .audit-surface-bar .link-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
}
.page-floor-audit .audit-surface-bar .back-link {
  min-width:148px;
}
.page-floor-audit .audit-surface-bar .current-link {
  font-weight:900;
}
.page-floor-audit.page-culinary-audit .floor-audit-watch-card {
  background: rgba(7, 20, 18, 0.58);
  border-color: rgba(52, 211, 153, 0.18);
}
.page-floor-audit.page-culinary-audit .floor-audit-watch-value {
  color: #ecfccb;
}
.page-floor-audit.page-culinary-audit .culinary-audit-watch-link {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.26);
}
.page-floor-audit.page-culinary-audit .culinary-audit-watch-link:hover,
.page-floor-audit.page-culinary-audit .culinary-audit-watch-link:focus-visible {
  background: rgba(16, 185, 129, 0.18);
}

.page-floor-audit.page-culinary-audit .audit-helper-strip,
.page-floor-audit.page-culinary-audit .culinary-helper-strip {
  margin:0 0 14px;
}

.page-audit-edit .audit-edit-hero {
  margin-bottom: 16px;
}
.page-audit-edit .audit-edit-watch-summary {
  margin: 16px 0 14px;
}
.page-audit-edit .audit-form-card {
  max-width: 940px;
  margin: 0 auto 20px;
}
.page-audit-edit .audit-hero-card {
  max-width: 940px;
  margin: 0 auto 16px;
}
.page-audit-edit .audit-stat-value {
  font-size: clamp(20px, 3vw, 26px);
  word-break: break-word;
}
.page-audit-edit .audit-section-head {
  margin: 0 0 18px;
}
.page-audit-edit .audit-section-head p {
  max-width: 720px;
}
.page-audit-edit .audit-inline-grid > div {
  min-width: 0;
}
.page-audit-edit .audit-save-note {
  margin: 0 0 14px;
}
.page-audit-edit .audit-form-card > #bt-box,
.page-audit-edit .audit-form-card > #ios-box {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.page-audit-edit .audit-form-card .btn-bt {
  margin-bottom: 14px;
}
.page-audit-edit #tempModuleContainer > div {
  margin-bottom: 18px;
}
.page-audit-edit .audit-form-card .btn {
  width: 100%;
}
@media (max-width: 680px) {
  .page-audit-edit .audit-stat-grid,
  .page-audit-edit .audit-inline-grid {
    grid-template-columns: 1fr;
  }
}

/* === Audit lane button consistency pass === */
.page-floor-audit .audit-lane-breadcrumb,
.page-ring-it .audit-lane-breadcrumb {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 12px;
  color:#94a3b8;
  font-size:12px;
  line-height:1.45;
  font-weight:800;
}
.page-floor-audit .audit-lane-breadcrumb a,
.page-ring-it .audit-lane-breadcrumb a {
  color:#cbd5e1;
  text-decoration:none;
}
.page-floor-audit .audit-lane-breadcrumb a:hover,
.page-ring-it .audit-lane-breadcrumb a:hover {
  color:#ffffff;
}
.page-floor-audit .top-links,
.page-ring-it .top-links {
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}
.page-floor-audit .top-links .link-btn,
.page-ring-it .top-links .link-btn {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:56px;
  min-width:0;
  padding:18px 10px;
  border-radius:16px;
  text-align:center;
  font-weight:800;
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  text-decoration:none;
  background:rgba(15,23,42,0.6);
  backdrop-filter:blur(5px);
  transition:transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.page-floor-audit .top-links .link-btn:hover,
.page-ring-it .top-links .link-btn:hover {
  transform:translateY(-2px);
}
.page-floor-audit .top-links .lane-floor,
.page-ring-it .top-links .lane-floor {
  border:1px solid rgba(34,211,238,0.52);
  color:#22d3ee;
  box-shadow:0 0 10px rgba(34,211,238,0.1);
}
.page-floor-audit .top-links .lane-floor:hover,
.page-ring-it .top-links .lane-floor:hover {
  background:rgba(34,211,238,0.1);
  box-shadow:0 0 20px rgba(34,211,238,0.22), inset 0 0 10px rgba(34,211,238,0.16);
}
.page-floor-audit .top-links .lane-floor.active,
.page-ring-it .top-links .lane-floor.active {
  background:#22d3ee;
  color:#020617;
  border-color:#22d3ee;
  box-shadow:0 0 22px rgba(34,211,238,0.28), inset 0 0 12px rgba(255,255,255,0.2);
}
.page-floor-audit .top-links .lane-culinary,
.page-ring-it .top-links .lane-culinary {
  border:1px solid rgba(251,191,36,0.58);
  color:#fbbf24;
  box-shadow:0 0 10px rgba(251,191,36,0.1);
}
.page-floor-audit .top-links .lane-culinary:hover,
.page-ring-it .top-links .lane-culinary:hover {
  background:rgba(251,191,36,0.1);
  box-shadow:0 0 20px rgba(251,191,36,0.22), inset 0 0 10px rgba(251,191,36,0.16);
}
.page-floor-audit .top-links .lane-culinary.active,
.page-ring-it .top-links .lane-culinary.active {
  background:#fbbf24;
  color:#111827;
  border-color:#fbbf24;
  box-shadow:0 0 22px rgba(251,191,36,0.28), inset 0 0 12px rgba(255,255,255,0.18);
}
.page-floor-audit .top-links .lane-ring,
.page-ring-it .top-links .lane-ring {
  border:1px solid rgba(239,68,68,0.58);
  color:#ef4444;
  box-shadow:0 0 10px rgba(239,68,68,0.1);
}
.page-floor-audit .top-links .lane-ring:hover,
.page-ring-it .top-links .lane-ring:hover {
  background:rgba(239,68,68,0.1);
  box-shadow:0 0 20px rgba(239,68,68,0.22), inset 0 0 10px rgba(239,68,68,0.16);
}
.page-floor-audit .top-links .lane-ring.active,
.page-ring-it .top-links .lane-ring.active {
  background:#ef4444;
  color:#fff;
  border-color:#ef4444;
  box-shadow:0 0 22px rgba(239,68,68,0.28), inset 0 0 12px rgba(255,255,255,0.12);
}
@media (max-width: 420px) {
  .page-floor-audit .top-links .link-btn,
  .page-ring-it .top-links .link-btn {
    min-height:52px;
    padding:16px 8px;
    font-size:10px;
    letter-spacing:.06em;
  }
}

.page-audit-center .audit-center-lane-note {
  margin:0 0 14px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(148,163,184,0.18);
  background:rgba(15,23,42,0.68);
  color:#cbd5e1;
  font-size:12px;
  line-height:1.5;
  font-weight:700;
}
@media (max-width: 680px) {
  .page-floor-audit .audit-surface-bar .back-link,
  .page-floor-audit .audit-surface-bar .current-link {
    flex:1 1 100%;
    width:100%;
  }
}

/* Pass 64 - internal tools / diagnostics desk polish */
.page-internal-tools {
    padding: calc(var(--he-sticky-top, 74px) + 18px) 16px 136px;
    color: #e2e8f0;
}

.page-internal-tools .internal-tools-hero-card,
.page-internal-tools .internal-tools-panel-card,
.page-internal-tools .internal-tools-stat-card {
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.34);
}

.page-internal-tools .internal-tools-hero-card {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 22px;
    margin-bottom: 16px;
}

.page-internal-tools .internal-tools-eyebrow,
.page-internal-tools .internal-tools-route-eyebrow,
.page-internal-tools .internal-tools-stat-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #67e8f9;
}

.page-internal-tools h1,
.page-internal-tools h2 {
    margin: 6px 0 10px;
    color: #f8fafc;
}

.page-internal-tools h1 {
    font-size: 28px;
    line-height: 1.05;
}

.page-internal-tools h2 {
    font-size: 20px;
}

.page-internal-tools p,
.page-internal-tools span,
.page-internal-tools small,
.page-internal-tools label {
    line-height: 1.5;
}

.page-internal-tools .internal-tools-badge,
.page-internal-tools .internal-tools-inline-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.page-internal-tools .is-good {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.34);
    color: #6ee7b7;
}

.page-internal-tools .is-neutral {
    background: rgba(148, 163, 184, 0.14);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #cbd5e1;
}

.page-internal-tools .is-warn {
    background: rgba(251, 191, 36, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.32);
    color: #fde68a;
}

.page-internal-tools .internal-tools-alert {
    display: flex;
    gap: 10px;
    align-items: center;
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.page-internal-tools .internal-tools-alert-success {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #d1fae5;
}

.page-internal-tools .internal-tools-stat-grid,
.page-internal-tools .internal-tools-panel-grid,
.page-internal-tools .internal-tools-route-grid,
.page-internal-tools .internal-tools-detail-grid {
    display: grid;
    gap: 14px;
}

.page-internal-tools .internal-tools-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 16px;
}

.page-internal-tools .internal-tools-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 16px;
}

.page-internal-tools .internal-tools-route-grid,
.page-internal-tools .internal-tools-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-internal-tools .internal-tools-route-grid-compact {
    margin-bottom: 10px;
}

.page-internal-tools .internal-tools-stat-card,
.page-internal-tools .internal-tools-panel-card {
    padding: 18px;
}

.page-internal-tools .internal-tools-stat-card strong,
.page-internal-tools .internal-tools-detail-grid strong {
    display: block;
    margin-top: 8px;
    color: #f8fafc;
    font-size: 20px;
    word-break: break-word;
}

.page-internal-tools .internal-tools-stat-card small,
.page-internal-tools .internal-tools-detail-grid span,
.page-internal-tools .internal-tools-copy,
.page-internal-tools .internal-tools-footnote,
.page-internal-tools .internal-tools-route-card span:last-child,
.page-internal-tools .internal-tools-inline-form span,
.page-internal-tools .internal-tools-form-actions span {
    color: #94a3b8;
}

.page-internal-tools .internal-tools-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.page-internal-tools .internal-tools-route-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 124px;
    text-decoration: none;
    color: inherit;
    border-radius: 18px;
    padding: 16px;
    background: rgba(2, 6, 23, 0.52);
    border: 1px solid rgba(148, 163, 184, 0.15);
    transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.page-internal-tools .internal-tools-route-card:hover,
.page-internal-tools .internal-tools-route-card:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(103, 232, 249, 0.42);
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.28);
}

.page-internal-tools .internal-tools-route-card strong {
    color: #f8fafc;
    font-size: 17px;
}

.page-internal-tools .tone-info {
    border-color: rgba(34, 211, 238, 0.22);
}

.page-internal-tools .internal-tools-pre {
    overflow-x: auto;
    margin: 14px 0 0;
    padding: 14px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.5;
}

.page-internal-tools .internal-tools-inline-form,
.page-internal-tools .internal-tools-pat-form,
.page-internal-tools .internal-tools-form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-internal-tools .internal-tools-inline-form {
    margin-top: 14px;
}

.page-internal-tools .internal-tools-button {
    appearance: none;
    border: 0;
    border-radius: 14px;
    padding: 13px 16px;
    background: linear-gradient(135deg, #22d3ee, #38bdf8);
    color: #082f49;
    font-weight: 900;
    cursor: pointer;
}

.page-internal-tools .internal-tools-button-secondary {
    background: rgba(148, 163, 184, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: #f8fafc;
}

.page-internal-tools .internal-tools-pat-form input {
    width: 100%;
    box-sizing: border-box;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(2, 6, 23, 0.78);
    color: #f8fafc;
    padding: 14px 15px;
}

@media (max-width: 640px) {
    .page-internal-tools {
        padding-left: 12px;
        padding-right: 12px;
    }

    .page-internal-tools .internal-tools-hero-card,
    .page-internal-tools .internal-tools-card-head {
        flex-direction: column;
    }

    .page-internal-tools .internal-tools-stat-grid,
    .page-internal-tools .internal-tools-panel-grid,
    .page-internal-tools .internal-tools-route-grid,
    .page-internal-tools .internal-tools-detail-grid {
        grid-template-columns: 1fr;
    }
}


/* Pass 83 - audit lane visual restore */
.page-floor-audit .audit-lane-breadcrumb,
.page-ring-it .audit-lane-breadcrumb,
.page-floor-audit .audit-helper-strip,
.page-ring-it .ring-it-nav-note {
  display: none;
}

.page-floor-audit .top-links,
.page-ring-it .top-links {
  display: flex;
  gap: 10px;
  margin: 0 0 20px;
  max-width: 600px;
}

.page-floor-audit .top-links .link-btn,
.page-ring-it .top-links .link-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  padding: 14px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: #94a3b8;
  box-shadow: none;
  backdrop-filter: none;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  line-height: 1.2;
  transform: none;
}

.page-floor-audit .top-links .link-btn:hover,
.page-ring-it .top-links .link-btn:hover {
  transform: none;
  background: rgba(255,255,255,0.08);
  color: #e2e8f0;
  box-shadow: none;
}

.page-floor-audit .top-links .link-btn.active,
.page-floor-audit .top-links .lane-floor.active,
.page-floor-audit .top-links .lane-culinary.active,
.page-floor-audit .top-links .lane-ring.active,
.page-ring-it .top-links .link-btn.active,
.page-ring-it .top-links .lane-floor.active,
.page-ring-it .top-links .lane-culinary.active,
.page-ring-it .top-links .lane-ring.active {
  border-color: transparent;
  background: var(--primary);
  color: #020617;
  box-shadow: none;
}

.page-floor-audit .top-links .lane-floor,
.page-floor-audit .top-links .lane-culinary,
.page-floor-audit .top-links .lane-ring,
.page-ring-it .top-links .lane-floor,
.page-ring-it .top-links .lane-culinary,
.page-ring-it .top-links .lane-ring {
  border-color: rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: #94a3b8;
  box-shadow: none;
}

.page-floor-audit .top-links .lane-floor:hover,
.page-floor-audit .top-links .lane-culinary:hover,
.page-floor-audit .top-links .lane-ring:hover,
.page-ring-it .top-links .lane-floor:hover,
.page-ring-it .top-links .lane-culinary:hover,
.page-ring-it .top-links .lane-ring:hover {
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: #e2e8f0;
  box-shadow: none;
}

@media (max-width: 680px) {
  .page-floor-audit .top-links,
  .page-ring-it .top-links {
    gap: 8px;
  }

  .page-floor-audit .top-links .link-btn,
  .page-ring-it .top-links .link-btn {
    padding: 13px 8px;
    font-size: 12px;
  }
}


/* === Pass 193: visual restraint alignment for AI workspace family === */
.page-help-advisor,
.page-ai-consultant {
  background: #020617;
}

.help-advisor-page,
.ai-consultant-page {
  max-width: 760px !important;
  padding: 20px 16px 88px;
}

.help-advisor-card,
.ai-consultant-card,
.ai-workspace-card {
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ai-workspace-card {
  padding: 20px;
  border-radius: 24px;
}

.operator-workspace-bar {
  gap: 8px;
  margin-bottom: 14px;
}

.operator-workspace-link {
  min-height: 36px;
  padding: 8px 12px;
  background: rgba(2, 6, 23, 0.72);
  box-shadow: none;
  font-size: 13px;
}

.operator-workspace-map {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.38);
  box-shadow: none;
}

.operator-workspace-grid,
.ai-workspace-route-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.operator-workspace-card,
.ai-workspace-route-card,
.help-advisor-route-card,
.guide-signal-card,
.guide-path-card,
.guide-decision-card,
.guide-trust-panel,
.operator-workspace-context-chip,
.help-advisor-review-card {
  background: rgba(8, 15, 30, 0.76);
  box-shadow: none;
  border-color: rgba(148, 163, 184, 0.14);
}

.operator-workspace-card.is-current,
.guide-decision-card.is-current {
  background: rgba(8, 47, 73, 0.28);
}

.operator-workspace-context-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.help-advisor-inline-links,
.he-action-pills {
  gap: 8px;
  margin: 14px 0 0;
}

.he-pill-link,
.help-advisor-inline-link {
  min-height: 36px;
  padding: 8px 12px;
  background: rgba(2, 6, 23, 0.58);
  box-shadow: none;
}

.ai-workspace-status,
.ai-consultant-status,
.help-advisor-status {
  box-shadow: none;
}

.help-advisor-review-card {
  margin-top: 14px;
}

.guide-hero-grid {
  gap: 16px;
}

.guide-signal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 8px;
}

.guide-path-grid {
  margin-top: 16px;
}

.guide-content .guide-intro {
  max-width: 640px;
  color: #cbd5e1;
}

.page-billing-sales .billing-sales-hero,
.page-billing-sales .billing-sales-plan-card,
.page-billing-sales .billing-sales-credit-card,
.page-billing-sales .billing-sales-help-card,
.page-billing-sales .billing-sales-utility-panel {
  box-shadow: none;
  background: rgba(8, 15, 30, 0.78);
  border-color: rgba(148, 163, 184, 0.14);
}

@media (max-width: 640px) {
  .operator-workspace-context-strip {
    grid-template-columns: 1fr;
  }
}


/* === Pass 196 audit-family shell alignment === */
:root {
  --audit-family-surface: rgba(8, 15, 30, 0.82);
  --audit-family-surface-strong: rgba(15, 23, 42, 0.92);
  --audit-family-border-soft: rgba(148, 163, 184, 0.14);
  --audit-family-border-strong: rgba(34, 211, 238, 0.24);
  --audit-family-text: #f8fafc;
  --audit-family-muted: #94a3b8;
  --audit-family-cyan: #22d3ee;
  --audit-family-gold: #fbbf24;
  --audit-family-danger: #fb7185;
  --audit-family-success: #34d399;
}

.audit-family-shell {
  color: var(--audit-family-text);
}

.audit-family-hero,
.audit-family-section {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(8, 15, 30, 0.84));
  border: 1px solid var(--audit-family-border-soft);
  border-radius: 24px;
  box-shadow: 0 24px 54px -36px rgba(2, 6, 23, 0.92);
}

.audit-family-hero {
  padding: 22px;
  margin-bottom: 18px;
}

.audit-family-section {
  padding: 18px;
  margin-bottom: 18px;
}

.audit-family-hero-head,
.audit-family-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.audit-family-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--audit-family-cyan);
}

.audit-family-title,
.audit-family-section-title {
  margin: 0;
  color: #fff;
  line-height: 1.05;
}

.audit-family-title {
  font-size: clamp(34px, 6vw, 54px);
}

.audit-family-section-title {
  font-size: clamp(24px, 5vw, 32px);
}

.audit-family-subtitle,
.audit-family-section-copy {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--audit-family-muted);
  font-size: 14px;
  line-height: 1.6;
}

.audit-family-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--audit-family-border-strong);
  background: rgba(34, 211, 238, 0.08);
  color: var(--audit-family-cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.audit-family-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.audit-family-stat-card,
.page-performance-alerts .alerts-watch-card,
.page-weekly-report .weekly-feed-card {
  background: rgba(15, 23, 42, 0.64);
  border: 1px solid var(--audit-family-border-soft);
  border-radius: 18px;
  box-shadow: none;
}

.audit-family-stat-card {
  padding: 16px;
  min-height: 132px;
}

.audit-family-stat-label,
.page-performance-alerts .alerts-watch-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--audit-family-muted);
}

.audit-family-stat-value,
.page-performance-alerts .alerts-watch-value {
  margin-top: 10px;
  color: #fff;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.05;
  font-weight: 900;
}

.audit-family-stat-copy,
.page-performance-alerts .alerts-watch-copy {
  margin-top: 8px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
}

.audit-family-action-row,
.page-performance-alerts .alerts-watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.audit-family-cta,
.audit-family-link-button,
.page-performance-alerts .alerts-watch-link,
.page-performance-alerts .rule-action,
.page-performance-alerts .queue-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  box-shadow: none;
}

.audit-family-cta {
  cursor: pointer;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.94), rgba(14, 165, 233, 0.88));
  color: #04111f;
  border-color: rgba(34, 211, 238, 0.32);
}

.audit-family-link-button.is-secondary,
.page-performance-alerts .alerts-watch-link-secondary {
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
}

.audit-family-empty,
.page-performance-alerts .empty-state {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.42);
  color: var(--audit-family-muted);
  text-align: left;
}

.audit-family-empty strong {
  color: #fff;
  font-size: 15px;
}

.page-floor-audit.audit-family-shell,
.page-weekly-report.audit-family-shell {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.page-floor-audit .audit-family-hero,
.page-floor-audit .audit-family-section {
  box-shadow: none;
}

.page-performance-alerts {
  max-width: 880px;
  padding: 20px;
}

.page-performance-alerts .performance-alerts-hero-card {
  padding: 20px;
}

.page-performance-alerts .alerts-watch-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 0;
}

.page-performance-alerts .alerts-watch-card {
  padding: 16px;
  min-height: 148px;
}

.page-performance-alerts .alerts-watch-card.is-action {
  display: flex;
  flex-direction: column;
}

.page-performance-alerts .alerts-watch-card.is-action .alerts-watch-actions {
  margin-top: auto;
}

.page-performance-alerts .section-shell {
  padding: 18px;
}

.page-performance-alerts .alerts-head,
.page-performance-alerts .queue-head {
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-performance-alerts .alerts-title,
.page-performance-alerts .queue-title {
  margin: 0;
  font-size: 30px;
  color: #fff;
}

.page-performance-alerts .alerts-subtitle,
.page-performance-alerts .queue-subtitle {
  margin-top: 6px;
  color: var(--audit-family-muted);
  font-size: 13px;
}

.page-performance-alerts .alerts-grid,
.page-performance-alerts .queue-grid {
  gap: 14px;
}

.page-performance-alerts .rule-card {
  padding: 18px;
  border-color: rgba(251, 113, 133, 0.18);
}

.page-performance-alerts .rule-card.warning {
  border-color: rgba(251, 191, 36, 0.2);
}

.page-performance-alerts .queue-card {
  border-left: 0;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.64);
}

.page-weekly-report .weekly-report-hero,
.page-weekly-report .weekly-report-feed-shell {
  margin-bottom: 18px;
}

.page-weekly-report .weekly-report-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-weekly-report .weekly-report-stat-card.is-positive .audit-family-stat-value {
  color: var(--audit-family-success);
}

.page-weekly-report .weekly-report-stat-card.is-negative .audit-family-stat-value {
  color: var(--audit-family-danger);
}

.page-weekly-report .weekly-report-actions {
  margin-top: 16px;
}

.page-weekly-report .weekly-report-primary {
  flex: 1 1 220px;
  border: 0;
}

.page-weekly-report .weekly-feed-stack {
  display: grid;
  gap: 14px;
}

.page-weekly-report .weekly-feed-card {
  padding: 16px;
}

.page-weekly-report .weekly-feed-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.page-weekly-report .weekly-feed-title-group {
  display: grid;
  gap: 6px;
}

.page-weekly-report .weekly-feed-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.page-weekly-report .weekly-feed-subtitle {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.page-weekly-report .weekly-feed-meta {
  color: var(--audit-family-muted);
  font-size: 12px;
  font-weight: 700;
}

.page-weekly-report .weekly-feed-value {
  color: var(--audit-family-cyan);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.page-weekly-report .notes {
  margin-top: 12px;
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.page-weekly-report .ai-box {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.08), rgba(15, 23, 42, 0.2));
  border-left-color: var(--audit-family-cyan);
}

.page-weekly-report .photo-btn {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .audit-family-stat-grid,
  .page-performance-alerts .alerts-watch-summary,
  .page-weekly-report .weekly-report-summary-grid {
    grid-template-columns: 1fr;
  }

  .page-performance-alerts .alerts-watch-card {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .audit-family-hero,
  .audit-family-section,
  .page-weekly-report .weekly-feed-card,
  .page-performance-alerts .section-shell {
    padding: 16px;
    border-radius: 20px;
  }

  .audit-family-title {
    font-size: 32px;
  }

  .audit-family-section-title {
    font-size: 24px;
  }

  .page-weekly-report .weekly-feed-head,
  .page-performance-alerts .queue-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-weekly-report .weekly-feed-value {
    white-space: normal;
  }
}


/* === Pass 197 audit-center and archive family alignment === */
.page-audit-center {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 20px 120px;
}

.page-audit-center .audit-center-title {
  font-size: clamp(34px, 8vw, 52px);
}

.page-audit-center .audit-center-controls {
  margin-bottom: 18px;
}

.page-audit-center .audit-center-context {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  color: var(--audit-family-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-audit-center .audit-center-context strong {
  color: var(--audit-family-text);
}

.page-audit-center .search-wrap {
  display: flex;
  gap: 10px;
  margin: 16px 0 18px;
}

.page-audit-center .search-input {
  flex: 1;
  min-width: 0;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.62);
  color: #fff;
  padding: 14px 16px;
  font-size: 15px;
  outline: none;
}

.page-audit-center .search-input::placeholder,
.page-audit-records .archive-search-input::placeholder {
  color: #7c8aa5;
}

.page-audit-center .search-input:focus,
.page-audit-records .archive-search-input:focus {
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.page-audit-center .go-btn {
  min-width: 74px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.94), rgba(14, 165, 233, 0.88));
  color: #04111f;
  font-weight: 900;
  cursor: pointer;
}

.page-audit-center .action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.page-audit-center .action-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 16px 10px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.64);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.page-audit-center .action-card:hover {
  transform: translateY(-1px);
}

.page-audit-center .act-floor {
  border-color: rgba(34, 211, 238, 0.44);
  color: #67e8f9;
}

.page-audit-center .act-floor:hover {
  background: rgba(34, 211, 238, 0.1);
}

.page-audit-center .act-culinary {
  border-color: rgba(251, 191, 36, 0.44);
  color: #fde68a;
}

.page-audit-center .act-culinary:hover {
  background: rgba(251, 191, 36, 0.1);
}

.page-audit-center .act-ring {
  border-color: rgba(251, 113, 133, 0.44);
  color: #fda4af;
}

.page-audit-center .act-ring:hover {
  background: rgba(251, 113, 133, 0.1);
}

.page-audit-center .tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.page-audit-center .tab-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.48);
  color: var(--audit-family-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-audit-center .tab-item.active {
  background: rgba(34, 211, 238, 0.16);
  color: #a5f3fc;
  border-color: rgba(34, 211, 238, 0.34);
}

.page-audit-center .audit-center-continuity-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 18px;
}

.page-audit-center .audit-center-continuity-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(8, 15, 30, 0.84));
  box-shadow: 0 24px 54px -36px rgba(2, 6, 23, 0.92);
  overflow: hidden;
}

.page-audit-center .audit-center-continuity-card::after {
  content: "";
  position: absolute;
  inset: auto -32px -42px auto;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.78;
}

.page-audit-center .audit-center-continuity-card[data-tone="cyan"]::after {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14), rgba(34, 211, 238, 0));
}

.page-audit-center .audit-center-continuity-card[data-tone="gold"]::after {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.14), rgba(251, 191, 36, 0));
}

.page-audit-center .audit-center-continuity-card[data-tone="red"]::after {
  background: radial-gradient(circle, rgba(248, 113, 113, 0.14), rgba(248, 113, 113, 0));
}

.page-audit-center .audit-center-continuity-label {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.74);
}

.page-audit-center .audit-center-continuity-value {
  position: relative;
  z-index: 1;
  font-size: clamp(1.2rem, 1.6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

.page-audit-center .audit-center-continuity-card[data-tone="cyan"] .audit-center-continuity-value { color: var(--audit-family-cyan); }
.page-audit-center .audit-center-continuity-card[data-tone="gold"] .audit-center-continuity-value { color: var(--audit-family-gold); }
.page-audit-center .audit-center-continuity-card[data-tone="red"] .audit-center-continuity-value { color: #fca5a5; }
.page-audit-center .audit-center-continuity-card[data-tone="slate"] .audit-center-continuity-value { color: #cbd5e1; }

.page-audit-center .audit-center-continuity-copy {
  position: relative;
  z-index: 1;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #cbd5e1;
}

.page-audit-center .audit-center-continuity-links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-audit-center .audit-center-continuity-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.68);
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .12s ease;
}

.page-audit-center .audit-center-continuity-links a:hover,
.page-audit-center .audit-center-continuity-links a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.34);
  background: rgba(8, 47, 73, 0.5);
  color: #f8fafc;
  outline: none;
}

.page-audit-center .audit-center-feed {
  display: grid;
  gap: 14px;
}

.page-audit-center .perf-alert-stack {
  display: grid;
  gap: 12px;
}

.page-audit-center .perf-alert-banner,
.page-audit-center .pinned-goals-card,
.page-audit-center .audit-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(8, 15, 30, 0.84));
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  box-shadow: 0 24px 54px -36px rgba(2, 6, 23, 0.92);
}

.page-audit-center .perf-alert-banner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 16px;
  border-color: rgba(251, 113, 133, 0.22);
  background: linear-gradient(180deg, rgba(69, 10, 10, 0.38), rgba(8, 15, 30, 0.9));
}

.page-audit-center .perf-alert-banner.warning {
  border-color: rgba(251, 191, 36, 0.26);
  background: linear-gradient(180deg, rgba(120, 53, 15, 0.32), rgba(8, 15, 30, 0.9));
}

.page-audit-center .perf-alert-title {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.page-audit-center .perf-alert-text {
  font-size: 12px;
  line-height: 1.5;
  color: #fecaca;
}

.page-audit-center .perf-alert-banner.warning .perf-alert-text {
  color: #fde68a;
}

.page-audit-center .perf-alert-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.page-audit-center .perf-alert-link,
.page-audit-center .perf-alert-dismiss button,
.page-audit-center .pinned-goals-link,
.page-audit-center .btn-resume {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.page-audit-center .perf-alert-dismiss {
  margin: 0;
}

.page-audit-center .perf-alert-dismiss button {
  background: transparent;
  color: #fca5a5;
  border-color: rgba(252, 165, 165, 0.35);
}

.page-audit-center .pinned-goals-card {
  padding: 16px 18px;
}

.page-audit-center .pinned-goals-head,
.page-audit-center .card-header,
.page-audit-records .archive-row-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.page-audit-center .pinned-goals-title {
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-audit-center .pinned-goals-sub,
.page-audit-center .auditor-tag,
.page-audit-records .archive-row-meta,
.page-audit-records .archive-empty-copy {
  color: var(--audit-family-muted);
  font-size: 12px;
  line-height: 1.5;
}

.page-audit-center .pinned-goals-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.page-audit-center .pinned-goal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.page-audit-center .pinned-goal-title,
.page-audit-center .staff-name {
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  margin: 0;
}

.page-audit-center .pinned-goal-meta,
.page-audit-center .audit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
  font-size: 11px;
  color: var(--audit-family-muted);
}

.page-audit-center .pinned-goal-tag,
.page-audit-center .badge,
.page-audit-records .archive-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-audit-center .priority-A { background: rgba(239,68,68,0.14); color: #fda4af; }
.page-audit-center .priority-B { background: rgba(250,204,21,0.14); color: #fde68a; }
.page-audit-center .priority-C { background: rgba(34,211,238,0.14); color: #a5f3fc; }
.page-audit-center .is-overdue { color: #fca5a5; font-weight: 800; }

.page-audit-center .audit-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.page-audit-center .card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, color-mix(in srgb, var(--glow-color) 26%, transparent) 0%, transparent 56%);
  opacity: .55;
  pointer-events: none;
}

.page-audit-center .audit-card > * {
  position: relative;
  z-index: 1;
}

.page-audit-center .badge.ai-pass { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.page-audit-center .badge.ai-fail { background: rgba(239,68,68,0.15); color: #fda4af; }
.page-audit-center .badge.temp { background: rgba(251,191,36,0.1); color: #fde68a; }
.page-audit-center .badge.sales { background: rgba(34,211,238,0.1); color: #a5f3fc; border: 1px solid rgba(34,211,238,0.2); }

.page-audit-center .score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.page-audit-center .score-pill {
  padding: 10px 6px;
  border-radius: 12px;
  text-align: center;
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.page-audit-center .score-label {
  display: block;
  margin-bottom: 2px;
  color: var(--audit-family-muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-audit-center .score-val {
  font-size: 13px;
  font-weight: 900;
}

.page-audit-center .data-box,
.page-audit-center .ai-data-box,
.page-audit-records .archive-note-card {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
}

.page-audit-center .data-box { background: rgba(255,255,255,0.04); color: #cbd5e1; border-left: 3px solid var(--glow-color); }
.page-audit-center .ai-data-box { background: rgba(34,211,238,0.06); color: #bae6fd; border-left: 3px solid #22d3ee; }

.page-audit-center .thumb-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  flex-shrink: 0;
}

.page-audit-center .thumb-img { width: 100%; height: 100%; object-fit: cover; }

.page-audit-center .lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.page-audit-center .lightbox img {
  max-width: 95%;
  max-height: 85vh;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 0 50px rgba(0,0,0,1);
  cursor: default;
}

.page-audit-center .close-tip {
  position: absolute;
  bottom: 30px;
  width: 100%;
  text-align: center;
  color: var(--audit-family-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.page-audit-records {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 15px 140px;
}

.page-audit-records .archive-return-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.page-audit-records .audit-lane-breadcrumb {
  margin-bottom: 10px;
}

.page-audit-records .top-links {
  margin-bottom: 14px;
}

.page-audit-records .archive-title {
  font-size: clamp(32px, 6vw, 48px);
}

.page-audit-records .archive-status-strip {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(255,255,255,0.04);
  color: #e2e8f0;
}

.page-audit-records .archive-filter-head {
  display: grid;
  gap: 14px;
}

.page-audit-records .archive-filter-copy {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
  max-width: 680px;
}

.page-audit-records .archive-filter-search-wrap {
  max-width: 480px;
}

.page-audit-records .archive-search-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(2,6,23,0.62);
  color: #fff;
}

.page-audit-records .archive-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.page-audit-records .archive-chip-group {
  display: grid;
  gap: 8px;
}

.page-audit-records .archive-chip-label,
.page-audit-records .archive-lane-card-label,
.page-audit-records .archive-note-label {
  font-size: 11px;
  color: var(--audit-family-muted);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-audit-records .archive-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-audit-records .archive-filter-chip,
.page-audit-records .archive-lane-chip,
.page-audit-records .archive-empty-button {
  border: 1px solid rgba(148,163,184,0.22);
  background: rgba(255,255,255,0.04);
  color: #cbd5e1;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.page-audit-records .archive-filter-chip span,
.page-audit-records .archive-lane-chip span {
  opacity: .75;
}

.page-audit-records .archive-lane-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.page-audit-records .archive-lane-card {
  display: block;
  text-decoration: none;
  padding: 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.64);
  border: 1px solid rgba(148,163,184,0.14);
}

.page-audit-records .archive-lane-card-value {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.05;
}

.page-audit-records .archive-lane-card-copy {
  margin-top: 6px;
  font-size: 12px;
  color: var(--audit-family-muted);
  line-height: 1.5;
}

.page-audit-records .archive-lane-card.lane-floor .archive-lane-card-value { color: var(--audit-family-cyan); }
.page-audit-records .archive-lane-card.lane-culinary .archive-lane-card-value { color: var(--audit-family-gold); }
.page-audit-records .archive-lane-card.lane-ringit .archive-lane-card-value { color: var(--audit-family-danger); }

.page-audit-records .archive-empty-state {
  margin-bottom: 18px;
  padding: 28px;
  border-radius: 18px;
  text-align: center;
  border: 1px dashed rgba(148,163,184,0.18);
  background: rgba(15,23,42,0.54);
  color: var(--audit-family-muted);
}

.page-audit-records .archive-empty-title {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
}

.page-audit-records .archive-row {
  padding: 18px;
  margin-bottom: 16px;
  border-radius: 20px;
  border: 1px solid rgba(148,163,184,0.14);
  border-left: 4px solid var(--archive-accent, var(--audit-family-cyan));
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(8, 15, 30, 0.84));
  color: #fff;
}

.page-audit-records .archive-row-title-group {
  display: grid;
  gap: 8px;
}

.page-audit-records .archive-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-audit-records .archive-tag-lane { background: rgba(59,130,246,0.12); color: #bfdbfe; }
.page-audit-records .archive-tag-score { background: rgba(34,211,238,0.12); color: #a5f3fc; }
.page-audit-records .archive-tag-pos { background: rgba(16,185,129,0.12); color: #86efac; }
.page-audit-records .archive-tag-neutral { background: rgba(255,255,255,0.06); color: #cbd5e1; }
.page-audit-records .archive-tag-incident { background: rgba(239,68,68,0.12); color: #fca5a5; }

.page-audit-records .archive-row-title {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}

.page-audit-records .archive-row-reporter {
  font-size: 12px;
  color: var(--audit-family-muted);
}

.page-audit-records .archive-row-reporter strong {
  color: #e2e8f0;
}

.page-audit-records .archive-delete-btn {
  background: transparent;
  color: #f87171;
  font-size: 11px;
  font-weight: 900;
  padding: 8px 12px;
  border: 1px solid rgba(248,113,113,0.34);
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}

.page-audit-records .archive-note-card {
  background: rgba(255,255,255,0.03);
  color: #e2e8f0;
}

.page-audit-records .archive-note-card-neutral { border-color: rgba(148,163,184,0.14); }
.page-audit-records .archive-note-card-pos { background: rgba(16,185,129,0.05); border-color: rgba(16,185,129,0.16); color: #d1fae5; }
.page-audit-records .archive-note-card-incident { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.16); color: #fecaca; }
.page-audit-records .archive-note-card-ai { background: rgba(34,211,238,0.06); border-color: rgba(34,211,238,0.16); color: #cbd5e1; }

.page-audit-records .archive-note-body {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.55;
}

.page-audit-records .archive-photo-wrap {
  margin-top: 10px;
}

.page-audit-records .archive-photo {
  display: block;
  max-width: 100%;
  max-height: 220px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

.page-audit-records .archive-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.page-audit-records .archive-row-actions .link-btn {
  text-decoration: none;
}

@media (max-width: 900px) {
  .page-audit-center .score-grid,
  .page-audit-records .archive-chip-grid,
  .page-audit-records .archive-lane-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-audit-center .audit-center-context,
  .page-audit-center .tabs,
  .page-audit-center .action-grid,
  .page-audit-records .archive-row-head {
    grid-template-columns: 1fr;
  }

  .page-audit-center .tabs,
  .page-audit-center .action-grid {
    display: grid;
  }

  .page-audit-center .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-audit-center .card-header,
  .page-audit-center .pinned-goals-head,
  .page-audit-records .archive-row-head {
    flex-direction: column;
  }

  .page-audit-center .score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* === Pass 198 incident family alignment === */
.incident-page-pad {
  padding: 20px 16px 120px;
  box-sizing: border-box;
}

.incident-phone-shell.page-incidents {
  max-width: 760px !important;
  margin: 0 auto;
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

.incident-phone-shell.page-incidents .incident-board-hero,
.incident-phone-shell.page-incidents .incident-board-shell {
  background: linear-gradient(180deg, rgba(15,23,42,0.90), rgba(15,23,42,0.76));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(2,6,23,0.26);
}

.incident-phone-shell.page-incidents .incident-board-hero {
  padding: 22px;
}

.incident-phone-shell.page-incidents .incident-board-overview,
.incident-phone-shell.page-incidents .incident-board-head,
.page-incident-report .incident-flow-hero-top,
.page-incident-report .incident-flow-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.incident-phone-shell.page-incidents .incident-board-kicker,
.incident-phone-shell.page-incidents .incident-board-section-kicker,
.page-incident-report .incident-eyebrow,
.page-incident-report .incident-chip,
.page-incident-report .incident-rail-label,
.page-incident-report .incident-watch-label,
.page-incident-report .incident-stat-label,
.page-incident-report .incident-label {
  color: #67e8f9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.incident-phone-shell.page-incidents .incident-board-title,
.page-incident-report .incident-title,
.page-incident-report .incident-card-title,
.page-incident-report .incident-rail-title {
  margin: 8px 0 0;
  color: #fff;
  line-height: 1.04;
  letter-spacing: -.03em;
}

.incident-phone-shell.page-incidents .incident-board-title {
  font-size: 32px;
}

.incident-phone-shell.page-incidents .incident-board-copy,
.incident-phone-shell.page-incidents .incident-board-summary-copy,
.incident-phone-shell.page-incidents .incident-board-section-copy,
.incident-phone-shell.page-incidents .incident-board-note,
.incident-phone-shell.page-incidents .incident-board-desc,
.incident-phone-shell.page-incidents .incident-board-meta,
.page-incident-report .incident-subtitle,
.page-incident-report .incident-summary-copy,
.page-incident-report .incident-helper,
.page-incident-report .incident-rail-copy,
.page-incident-report .incident-list,
.page-incident-report .incident-watch-copy,
.page-incident-report .incident-card-copy,
.page-incident-report .incident-meta {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
}

.incident-phone-shell.page-incidents .incident-board-report-btn,
.incident-phone-shell.page-incidents .incident-board-pill,
.page-incident-report .incident-link-pill,
.page-incident-report .incident-link,
.page-incident-report .incident-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .08s ease, border-color .15s ease, opacity .15s ease, background .15s ease;
}

.incident-phone-shell.page-incidents .incident-board-report-btn,
.page-incident-report .incident-btn {
  border: none;
  padding: 0 18px;
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  color: #fff;
  box-shadow: 0 16px 34px rgba(239,68,68,0.22);
}

.incident-phone-shell.page-incidents .incident-board-pill,
.page-incident-report .incident-link-pill {
  border: 1px solid rgba(34,211,238,0.24);
  background: rgba(34,211,238,0.12);
  color: #cffafe;
  padding: 0 14px;
}

.page-incident-report .incident-link-pill-secondary,
.page-incident-report .incident-link,
.incident-phone-shell.page-incidents .incident-board-action-secondary {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: #e2e8f0;
}

.incident-phone-shell.page-incidents .incident-board-report-btn:hover,
.incident-phone-shell.page-incidents .incident-board-pill:hover,
.incident-phone-shell.page-incidents .incident-board-action:hover,
.page-incident-report .incident-link-pill:hover,
.page-incident-report .incident-link:hover,
.page-incident-report .incident-btn:hover {
  transform: translateY(-1px);
}

.incident-phone-shell.page-incidents .incident-board-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.incident-phone-shell.page-incidents .incident-board-summary-card,
.page-incident-report .incident-summary-card,
.page-incident-report .incident-stat-card,
.page-incident-report .incident-watch-card,
.page-incident-report .incident-card,
.page-incident-report .incident-rail-card {
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(2,6,23,0.38);
  box-shadow: 0 14px 34px rgba(2,6,23,0.18);
}

.incident-phone-shell.page-incidents .incident-board-summary-card {
  padding: 16px;
}

.incident-phone-shell.page-incidents .incident-board-summary-label,
.page-incident-report .incident-summary-label {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.incident-phone-shell.page-incidents .incident-board-summary-value,
.page-incident-report .incident-summary-value,
.page-incident-report .incident-stat-value,
.page-incident-report .incident-watch-value {
  margin-top: 8px;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.incident-phone-shell.page-incidents .incident-board-summary-value.is-danger,
.page-incident-report .incident-summary-value.is-danger {
  color: #fca5a5;
}

.incident-phone-shell.page-incidents .incident-board-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.incident-phone-shell.page-incidents .incident-board-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.incident-phone-shell.page-incidents .incident-board-route-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(2,6,23,0.38);
  box-shadow: 0 14px 34px rgba(2,6,23,0.18);
}

.incident-phone-shell.page-incidents .incident-board-route-label,
.page-incident-report .incident-bridge-label {
  color: #67e8f9;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.incident-phone-shell.page-incidents .incident-board-route-title,
.page-incident-report .incident-bridge-title {
  margin: 8px 0 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.18;
}

.incident-phone-shell.page-incidents .incident-board-route-copy,
.page-incident-report .incident-bridge-copy {
  margin: 10px 0 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.6;
}

.incident-phone-shell.page-incidents .incident-board-route-links,
.page-incident-report .incident-bridge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.incident-phone-shell.page-incidents .incident-board-pill-secondary {
  border-color: rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: #e2e8f0;
}

.incident-phone-shell.page-incidents .incident-board-shell {
  margin-top: 18px;
  padding: 20px;
}

.incident-phone-shell.page-incidents .incident-board-head {
  margin-bottom: 18px;
}

.incident-phone-shell.page-incidents .incident-board-section-title {
  margin: 8px 0 0;
  color: #fff;
  font-size: 22px;
}

.incident-phone-shell.page-incidents .incident-board-note {
  max-width: 240px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}

.incident-phone-shell.page-incidents .incident-board-list {
  display: grid;
  gap: 14px;
}

.incident-phone-shell.page-incidents .incident-board-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 4px solid var(--incident-accent, rgba(148,163,184,0.5));
  background: rgba(2,6,23,0.42);
}

.incident-phone-shell.page-incidents .incident-board-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.incident-phone-shell.page-incidents .incident-board-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.incident-phone-shell.page-incidents .incident-board-category,
.incident-phone-shell.page-incidents .incident-board-status,
.incident-phone-shell.page-incidents .incident-board-severity,
.incident-phone-shell.page-incidents .incident-board-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.incident-phone-shell.page-incidents .incident-board-category {
  background: rgba(34,211,238,0.12);
  border: 1px solid rgba(34,211,238,0.24);
  color: #cffafe;
}

.incident-phone-shell.page-incidents .incident-board-severity,
.incident-phone-shell.page-incidents .incident-board-date {
  background: rgba(148,163,184,0.12);
  border: 1px solid rgba(148,163,184,0.18);
  color: #cbd5e1;
}

.incident-phone-shell.page-incidents .incident-board-severity.is-danger {
  color: #fecaca;
  border-color: rgba(239,68,68,0.24);
  background: rgba(239,68,68,0.12);
}

.incident-phone-shell.page-incidents .incident-board-card-title {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
}

.incident-phone-shell.page-incidents .incident-board-meta {
  margin-top: 8px;
}

.incident-phone-shell.page-incidents .incident-board-meta strong {
  color: #fff;
}

.incident-phone-shell.page-incidents .incident-board-meta-sep {
  display: inline-block;
  margin: 0 6px;
  color: #64748b;
}

.incident-phone-shell.page-incidents .incident-board-date {
  flex-shrink: 0;
}

.incident-phone-shell.page-incidents .incident-board-desc {
  margin: 14px 0 0;
}

.incident-phone-shell.page-incidents .incident-board-photo-wrap {
  margin-top: 14px;
}

.incident-phone-shell.page-incidents .incident-board-photo {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}

.incident-phone-shell.page-incidents .incident-board-ai {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(34,211,238,0.18);
  background: rgba(34,211,238,0.06);
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
}

.incident-phone-shell.page-incidents .incident-board-ai-title {
  display: block;
  margin-bottom: 6px;
  color: #67e8f9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.incident-phone-shell.page-incidents .incident-board-actions,
.page-incident-report .incident-actions,
.page-incident-report .incident-flow-links,
.page-incident-report .incident-watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.incident-phone-shell.page-incidents .incident-board-action {
  min-height: 46px;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.incident-phone-shell.page-incidents .incident-board-action-primary {
  flex: 1 1 220px;
  border: none;
  background: linear-gradient(135deg, rgba(16,185,129,0.94), rgba(5,150,105,0.94));
  color: #fff;
}

.incident-phone-shell.page-incidents .incident-board-action-secondary {
  border-radius: 14px;
  padding: 0 16px;
}

.incident-phone-shell.page-incidents .incident-board-empty {
  text-align: center;
  padding: 22px;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,0.12);
  background: rgba(15,23,42,0.5);
  color: #cbd5e1;
}

.page-incident-report .incident-flow-page {
  max-width: 1200px !important;
  margin: 0 auto;
  padding: 20px 16px 120px;
  box-sizing: border-box;
}

.page-incident-report .incident-flow-hero {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15,23,42,0.92), rgba(15,23,42,0.80));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
}

.page-incident-report .incident-title {
  font-size: 34px;
}

.page-incident-report .incident-subtitle {
  max-width: 760px;
  margin: 12px 0 0;
}

.page-incident-report .incident-summary-card,
.page-incident-report .incident-stat-card,
.page-incident-report .incident-watch-card,
.page-incident-report .incident-rail-card,
.page-incident-report .incident-card {
  padding: 18px;
}

.page-incident-report .incident-summary-card {
  min-width: 220px;
}

.page-incident-report .incident-flow-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.page-incident-report .incident-intake-watch {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.page-incident-report .incident-flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .9fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.page-incident-report .incident-bridge-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(2,6,23,0.34);
  box-shadow: 0 14px 34px rgba(2,6,23,0.18);
}

.page-incident-report .incident-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.page-incident-report .incident-field,
.page-incident-report .incident-field-full {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-incident-report .incident-field-full {
  grid-column: 1 / -1;
}

.page-incident-report .incident-input,
.page-incident-report .incident-select,
.page-incident-report .incident-textarea,
.page-incident-report .incident-file {
  width: 100%;
  box-sizing: border-box;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(2, 6, 23, 0.75);
  color: #f8fafc;
  padding: 15px 16px;
  font-size: 15px;
  outline: none;
}

.page-incident-report .incident-textarea {
  min-height: 170px;
  resize: vertical;
  line-height: 1.55;
}

.page-incident-report .incident-input:focus,
.page-incident-report .incident-select:focus,
.page-incident-report .incident-textarea:focus,
.page-incident-report .incident-file:focus {
  border-color: rgba(34,211,238,0.45);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.12);
}

.page-incident-report .incident-select option {
  color: #0f172a;
}

.page-incident-report .incident-helper {
  margin-top: 4px;
}

.page-incident-report .incident-meta {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.18);
  color: #cffafe;
  font-size: 12px;
}

.page-incident-report .incident-alert {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid transparent;
}

.page-incident-report .incident-alert.show {
  display: block;
}

.page-incident-report .incident-alert.success {
  background: rgba(16,185,129,0.12);
  border-color: rgba(16,185,129,0.24);
  color: #d1fae5;
}

.page-incident-report .incident-alert.error {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.24);
  color: #fecaca;
}

.page-incident-report .incident-btn,
.page-incident-report .incident-link {
  min-height: 52px;
  font-size: 13px;
  cursor: pointer;
}

.page-incident-report .incident-btn {
  flex: 1 1 240px;
}

.page-incident-report .incident-rail {
  display: grid;
  gap: 14px;
  position: sticky;
  top: calc(var(--he-sticky-top, 70px) + 14px);
}

.page-incident-report .incident-rail-card-highlight {
  background: rgba(34,211,238,0.08);
  border-color: rgba(34,211,238,0.18);
}

.page-incident-report .incident-rail-title {
  font-size: 18px;
}

.page-incident-report .incident-list {
  margin: 12px 0 0;
  padding-left: 18px;
}

.page-incident-report .incident-list li + li {
  margin-top: 8px;
}

@media (max-width: 920px) {
  .page-incident-report .incident-flow-layout {
    grid-template-columns: 1fr;
  }

  .page-incident-report .incident-intake-watch,
  .incident-phone-shell.page-incidents .incident-board-summary,
  .incident-phone-shell.page-incidents .incident-board-route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-incident-report .incident-rail {
    position: static;
  }
}

@media (max-width: 640px) {
  .incident-page-pad,
  .page-incident-report .incident-flow-page {
    padding: 16px 12px 120px;
  }

  .incident-phone-shell.page-incidents {
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }

  .incident-phone-shell.page-incidents .incident-board-hero,
  .incident-phone-shell.page-incidents .incident-board-shell,
  .page-incident-report .incident-flow-hero,
  .page-incident-report .incident-card,
  .page-incident-report .incident-rail-card {
    padding: 18px;
    border-radius: 18px;
  }

  .incident-phone-shell.page-incidents .incident-board-overview,
  .incident-phone-shell.page-incidents .incident-board-head,
  .incident-phone-shell.page-incidents .incident-board-card-head,
  .page-incident-report .incident-flow-hero-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .incident-phone-shell.page-incidents .incident-board-title,
  .page-incident-report .incident-title {
    font-size: 28px;
  }

  .incident-phone-shell.page-incidents .incident-board-summary,
  .incident-phone-shell.page-incidents .incident-board-route-grid,
  .page-incident-report .incident-grid,
  .page-incident-report .incident-flow-stat-grid,
  .page-incident-report .incident-intake-watch {
    grid-template-columns: 1fr;
  }

  .incident-phone-shell.page-incidents .incident-board-action,
  .incident-phone-shell.page-incidents .incident-board-report-btn,
  .page-incident-report .incident-btn,
  .page-incident-report .incident-link,
  .page-incident-report .incident-link-pill {
    width: 100%;
    flex-basis: 100%;
  }

  .incident-phone-shell.page-incidents .incident-board-date {
    min-height: 24px;
  }
}

/* === Pass 199: incident follow-through exit family alignment === */
body.page-manual-warning-body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top right, rgba(34,211,238,0.12), transparent 34%), linear-gradient(180deg, #020617, #0f172a 54%, #020617);
  color: #f8fafc;
  padding: 18px;
}

.page-compliance-dashboard,
.page-disciplinary-log,
.page-manual-warning {
  max-width: min(1360px, calc(100vw - 28px)) !important;
  margin: 0 auto;
  color: #f8fafc;
}

.page-compliance-dashboard,
.page-disciplinary-log {
  padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px));
}

.page-manual-warning {
  display: grid;
  gap: 18px;
  padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px));
}

.page-compliance-dashboard .desktop-shell-header,
.page-disciplinary-log .desktop-shell-header,
.page-manual-warning .desktop-shell-header {
  margin-bottom: 0;
}

.page-compliance-dashboard .desktop-shell-copy,
.page-disciplinary-log .desktop-shell-copy,
.page-manual-warning .desktop-shell-copy {
  max-width: 760px;
}

.page-compliance-dashboard .compliance-shell,
.page-disciplinary-log {
  display: grid;
  gap: 18px;
}

.page-compliance-dashboard .compliance-surface-topbar,
.page-disciplinary-log .disciplinary-log-controls,
.page-manual-warning .warning-hero,
.page-manual-warning .form-card,
.page-manual-warning .side-card,
.page-compliance-dashboard .compliance-hero,
.page-compliance-dashboard .compliance-watch-card,
.page-compliance-dashboard .panel,
.page-disciplinary-log .disciplinary-log-hero,
.page-disciplinary-log .disciplinary-log-watch-card,
.page-disciplinary-log .disciplinary-log-panel,
.page-disciplinary-log .disciplinary-log-table-wrap {
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,0.14);
  background: linear-gradient(180deg, rgba(15,23,42,0.94), rgba(15,23,42,0.82));
  box-shadow: 0 16px 38px rgba(2,6,23,0.18);
}

.page-compliance-dashboard .compliance-surface-topbar,
.page-disciplinary-log .disciplinary-log-controls {
  padding: 14px 16px;
}

.page-compliance-dashboard .desktop-shell-inline-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-compliance-dashboard .desktop-shell-inline-tools a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.16);
  background: rgba(2,6,23,0.35);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}

.page-compliance-dashboard .desktop-shell-inline-tools a:hover {
  border-color: rgba(34,211,238,0.28);
  color: #fff;
}

.page-compliance-dashboard .compliance-hero,
.page-disciplinary-log .disciplinary-log-hero,
.page-manual-warning .warning-hero {
  padding: 24px;
}

.page-compliance-dashboard .compliance-hero-grid,
.page-disciplinary-log .disciplinary-log-hero-grid {
  gap: 18px;
}

.page-compliance-dashboard .compliance-title,
.page-disciplinary-log .disciplinary-log-title,
.page-manual-warning h1 {
  margin: 14px 0 6px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.02;
}

.page-compliance-dashboard .compliance-subtitle,
.page-disciplinary-log .disciplinary-log-copy,
.page-manual-warning .hero-copy {
  max-width: 760px;
  color: rgba(226,232,240,0.8);
  font-size: 15px;
  line-height: 1.6;
}

.page-compliance-dashboard .compliance-quick-grid,
.page-compliance-dashboard .compliance-watch-summary,
.page-disciplinary-log .disciplinary-log-watch-summary,
.page-manual-warning .warning-watch-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.page-compliance-dashboard .compliance-watch-summary,
.page-disciplinary-log .disciplinary-log-watch-summary,
.page-manual-warning .warning-watch-summary {
  margin: 0;
}

.page-compliance-dashboard .compliance-stat-card,
.page-compliance-dashboard .compliance-watch-card,
.page-disciplinary-log .stat-card,
.page-disciplinary-log .disciplinary-log-watch-card,
.page-manual-warning .warning-watch-card,
.page-manual-warning .hero-stat,
.page-manual-warning .section-card {
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(2,6,23,0.28);
  box-shadow: none;
}

.page-compliance-dashboard .compliance-stat-card,
.page-compliance-dashboard .compliance-watch-card,
.page-disciplinary-log .disciplinary-log-watch-card,
.page-manual-warning .warning-watch-card,
.page-manual-warning .hero-stat,
.page-manual-warning .section-card {
  padding: 16px;
}

.page-compliance-dashboard .compliance-stat-value,
.page-compliance-dashboard .compliance-watch-value,
.page-disciplinary-log .stat-value,
.page-disciplinary-log .disciplinary-log-watch-value,
.page-manual-warning .warning-watch-value,
.page-manual-warning .hero-stat-value {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.08;
}

.page-compliance-dashboard .compliance-stat-note,
.page-compliance-dashboard .compliance-watch-note,
.page-disciplinary-log .disciplinary-log-watch-copy,
.page-manual-warning .warning-watch-copy,
.page-manual-warning .hero-stat p,
.page-manual-warning .form-intro,
.page-manual-warning .form-help,
.page-manual-warning .side-copy,
.page-manual-warning .helper-list,
.page-manual-warning .helper-list li,
.page-disciplinary-log .disciplinary-log-subtitle {
  color: rgba(226,232,240,0.78);
  line-height: 1.55;
  font-size: 13px;
}

.page-compliance-dashboard .compliance-watch-links,
.page-disciplinary-log .disciplinary-log-watch-actions,
.page-manual-warning .warning-watch-actions,
.page-manual-warning .hero-actions,
.page-manual-warning .helper-links,
.page-disciplinary-log .disciplinary-log-actions,
.page-compliance-dashboard .action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-compliance-dashboard .action-links {
  margin-top: 14px;
}

.page-compliance-dashboard .action-links a,
.page-compliance-dashboard .action-links button,
.page-disciplinary-log .disciplinary-log-watch-link,
.page-disciplinary-log .disciplinary-log-link,
.page-manual-warning .warning-watch-link,
.page-manual-warning .btn-secondary,
.page-manual-warning .btn-ghost,
.page-manual-warning .helper-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.16);
  background: rgba(2,6,23,0.34);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  box-sizing: border-box;
}

.page-compliance-dashboard .btn-cyan,
.page-manual-warning .btn-secondary,
.page-manual-warning .warning-watch-link,
.page-disciplinary-log .disciplinary-log-watch-link,
.page-disciplinary-log .disciplinary-log-link-danger {
  border-color: rgba(34,211,238,0.24);
  background: rgba(34,211,238,0.12);
  color: #cffafe;
}

.page-compliance-dashboard .btn-red,
.page-manual-warning .btn-save {
  border-color: rgba(239,68,68,0.24);
  background: linear-gradient(180deg, #ef4444, #dc2626);
  color: #fff;
}

.page-compliance-dashboard .btn-gold,
.page-disciplinary-log .pill.active {
  border-color: rgba(251,191,36,0.24);
  background: rgba(251,191,36,0.12);
  color: #fde68a;
}

.page-manual-warning .btn-save {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(239,68,68,0.22);
}

.page-compliance-dashboard .compliance-chip-row,
.page-disciplinary-log .disciplinary-log-chip-row,
.page-manual-warning .hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.page-compliance-dashboard .compliance-chip,
.page-disciplinary-log .disciplinary-log-chip,
.page-manual-warning .hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(15,23,42,0.74);
  border: 1px solid rgba(148,163,184,0.14);
  font-size: 13px;
}

.page-compliance-dashboard .compliance-chip strong,
.page-disciplinary-log .disciplinary-log-chip strong,
.page-manual-warning .hero-chip strong,
.page-manual-warning .eyebrow,
.page-compliance-dashboard .compliance-eyebrow,
.page-disciplinary-log .disciplinary-log-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.page-manual-warning .eyebrow,
.page-compliance-dashboard .compliance-eyebrow,
.page-disciplinary-log .disciplinary-log-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15,23,42,0.72);
  border: 1px solid rgba(148,163,184,0.18);
  color: #cbd5e1;
}

.page-compliance-dashboard .compliance-truth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.page-compliance-dashboard .panel {
  padding: 18px;
}

.page-compliance-dashboard .panel h3,
.page-compliance-dashboard .compliance-gallery-title,
.page-disciplinary-log .disciplinary-log-panel h2,
.page-manual-warning .form-card h2,
.page-manual-warning .side-card h2,
.page-manual-warning .section-card h3 {
  margin: 0 0 10px;
  color: #f8fafc;
}

.page-compliance-dashboard .compliance-scope-list,
.page-manual-warning .form-sections {
  display: grid;
  gap: 14px;
}

.page-compliance-dashboard .compliance-scope-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.page-compliance-dashboard .compliance-scope-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-compliance-dashboard .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.page-compliance-dashboard .audit-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.12);
  background: rgba(15,23,42,0.88);
}

.page-compliance-dashboard .audit-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.page-manual-warning .warning-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.page-manual-warning .form-card,
.page-manual-warning .side-card {
  padding: 22px;
}

.page-manual-warning .section-card p {
  margin: 0 0 12px;
}

.page-manual-warning .field-grid,
.page-manual-warning .field-grid-tight,
.page-manual-warning .checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.page-manual-warning .field {
  display: grid;
  gap: 6px;
}

.page-manual-warning .field.full-span {
  grid-column: 1 / -1;
}

.page-manual-warning label {
  display: block;
  color: #67e8f9;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.page-manual-warning input,
.page-manual-warning textarea,
.page-manual-warning select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.22);
  background: #020617;
  color: #fff;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
}

.page-manual-warning textarea {
  min-height: 120px;
  resize: vertical;
}

.page-manual-warning input:focus,
.page-manual-warning textarea:focus,
.page-manual-warning select:focus {
  outline: none;
  border-color: rgba(34,211,238,0.7);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.16);
}

.page-manual-warning .cb-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.12);
  background: rgba(255,255,255,0.04);
  font-size: 13px;
}

.page-manual-warning .cb-item input {
  width: auto;
  margin-top: 2px;
}

.page-manual-warning .helper-list {
  margin: 0;
  padding-left: 18px;
}

.page-manual-warning .helper-list li + li {
  margin-top: 8px;
}

.page-disciplinary-log .disciplinary-log-controls {
  display: grid;
  gap: 14px;
}

.page-disciplinary-log .disciplinary-log-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
}

.page-disciplinary-log .filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.page-disciplinary-log .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.16);
  background: rgba(2,6,23,0.34);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}

.page-disciplinary-log .search-bar {
  display: flex;
  gap: 10px;
  margin: 0;
}

.page-disciplinary-log .search-input {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(2,6,23,0.65);
  color: #fff;
}

.page-disciplinary-log .btn-search,
.page-disciplinary-log .disciplinary-log-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  text-decoration: none;
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 800;
}

.page-disciplinary-log .btn-search {
  border: 1px solid rgba(34,211,238,0.24);
  background: rgba(34,211,238,0.12);
  color: #cffafe;
}

.page-disciplinary-log .disciplinary-log-clear {
  border: 1px solid rgba(148,163,184,0.16);
  background: rgba(2,6,23,0.35);
  color: #cbd5e1;
}

.page-disciplinary-log .disciplinary-log-table-wrap {
  overflow: hidden;
}

.page-disciplinary-log .log-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

.page-disciplinary-log .log-table th {
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: left;
}

.page-disciplinary-log .log-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  vertical-align: top;
  font-size: 14px;
}

.page-disciplinary-log .log-table tr:last-child td {
  border-bottom: 0;
}

.page-disciplinary-log .status-tag {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 2px 6px 2px 0;
}

.page-disciplinary-log .btn-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(34,211,238,0.24);
  background: rgba(34,211,238,0.12);
  color: #cffafe;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}

.page-disciplinary-log .finding-preview {
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 6px;
  max-width: 360px;
}


.page-manual-warning .warning-watch-summary {
  margin-bottom: 18px;
}

.page-manual-warning .warning-hero-grid {
  display: grid;
  gap: 18px;
}

.page-manual-warning .manual-warning-topbar {
  margin-top: 16px;
}

.page-manual-warning .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.page-compliance-dashboard .compliance-watch-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.16);
  background: rgba(2,6,23,0.35);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}

@media (max-width: 1180px) {
  .page-compliance-dashboard,
  .page-disciplinary-log,
  .page-manual-warning {
    max-width: min(100%, calc(100vw - 20px)) !important;
  }

  .page-compliance-dashboard .compliance-truth-grid,
  .page-compliance-dashboard .compliance-quick-grid,
  .page-compliance-dashboard .compliance-watch-summary,
  .page-disciplinary-log .disciplinary-log-watch-summary,
  .page-manual-warning .warning-watch-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .page-compliance-dashboard .compliance-hero-grid,
  .page-compliance-dashboard .compliance-truth-grid,
  .page-disciplinary-log .disciplinary-log-hero-grid,
  .page-manual-warning .warning-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.page-manual-warning-body {
    padding: 12px;
  }

  .page-compliance-dashboard,
  .page-disciplinary-log,
  .page-manual-warning {
    max-width: 100% !important;
  }

  .page-compliance-dashboard .compliance-hero,
  .page-disciplinary-log .disciplinary-log-hero,
  .page-manual-warning .warning-hero,
  .page-manual-warning .form-card,
  .page-manual-warning .side-card,
  .page-disciplinary-log .disciplinary-log-controls,
  .page-disciplinary-log .disciplinary-log-table-wrap {
    padding: 18px;
    border-radius: 18px;
  }

  .page-compliance-dashboard .compliance-quick-grid,
  .page-compliance-dashboard .compliance-watch-summary,
  .page-compliance-dashboard .compliance-truth-grid,
  .page-disciplinary-log .disciplinary-log-watch-summary,
  .page-manual-warning .warning-watch-summary,
  .page-manual-warning .field-grid,
  .page-manual-warning .field-grid-tight,
  .page-manual-warning .checkbox-group {
    grid-template-columns: 1fr;
  }

  .page-compliance-dashboard .desktop-shell-inline-tools a,
  .page-compliance-dashboard .action-links a,
  .page-compliance-dashboard .action-links button,
  .page-disciplinary-log .disciplinary-log-actions > *,
  .page-disciplinary-log .search-bar > *,
  .page-manual-warning .hero-actions > *,
  .page-manual-warning .helper-links > *,
  .page-manual-warning .warning-watch-actions > * {
    width: 100%;
    flex-basis: 100%;
  }

  .page-disciplinary-log .disciplinary-log-header,
  .page-disciplinary-log .search-bar {
    flex-direction: column;
  }
}



/* === Pass 202 documentation intake alignment === */
.warning-flow-shell-root .documentation-entry-bridge,
.page-manual-warning .documentation-entry-bridge,
.page-compliance-dashboard .documentation-entry-bridge,
.page-performance-alerts .documentation-entry-bridge {
  border-radius: 20px;
  border: 1px solid rgba(148,163,184,0.14);
  background: linear-gradient(180deg, rgba(15,23,42,0.94), rgba(15,23,42,0.82));
  box-shadow: 0 16px 38px rgba(2,6,23,0.18);
  padding: 18px;
}

.warning-flow-shell-root .documentation-entry-bridge {
  margin-top: 18px;
}

.warning-flow-shell-root .documentation-entry-kicker,
.page-manual-warning .documentation-entry-kicker,
.page-compliance-dashboard .documentation-entry-kicker,
.page-performance-alerts .documentation-entry-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #67e8f9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.warning-flow-shell-root .documentation-entry-title,
.page-manual-warning .documentation-entry-title,
.page-compliance-dashboard .documentation-entry-title,
.page-performance-alerts .documentation-entry-title {
  margin: 10px 0 6px;
  color: #f8fafc;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.08;
}

.warning-flow-shell-root .documentation-entry-copy,
.page-manual-warning .documentation-entry-copy,
.page-compliance-dashboard .documentation-entry-copy,
.page-performance-alerts .documentation-entry-copy {
  margin: 0;
  color: rgba(226,232,240,0.8);
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 880px;
}

.warning-flow-shell-root .documentation-entry-grid,
.page-manual-warning .documentation-entry-grid,
.page-compliance-dashboard .documentation-entry-grid,
.page-performance-alerts .documentation-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.warning-flow-shell-root .documentation-entry-card,
.page-manual-warning .documentation-entry-card,
.page-compliance-dashboard .documentation-entry-card,
.page-performance-alerts .documentation-entry-card {
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(2,6,23,0.28);
  padding: 14px;
}

.warning-flow-shell-root .documentation-entry-card strong,
.page-manual-warning .documentation-entry-card strong,
.page-compliance-dashboard .documentation-entry-card strong,
.page-performance-alerts .documentation-entry-card strong {
  display: block;
  margin-bottom: 8px;
  color: #f8fafc;
  font-size: 14px;
}

.warning-flow-shell-root .documentation-entry-card p,
.page-manual-warning .documentation-entry-card p,
.page-compliance-dashboard .documentation-entry-card p,
.page-performance-alerts .documentation-entry-card p {
  margin: 0;
  color: rgba(226,232,240,0.76);
  font-size: 12.75px;
  line-height: 1.55;
}

.warning-flow-shell-root .documentation-entry-actions,
.page-manual-warning .documentation-entry-actions,
.page-compliance-dashboard .documentation-entry-actions,
.page-performance-alerts .documentation-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.warning-flow-shell-root .documentation-entry-actions a,
.page-manual-warning .documentation-entry-actions a,
.page-compliance-dashboard .documentation-entry-actions a,
.page-performance-alerts .documentation-entry-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.16);
  background: rgba(2,6,23,0.35);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}

.warning-flow-shell-root .documentation-entry-actions a[data-tone="primary"],
.page-manual-warning .documentation-entry-actions a[data-tone="primary"],
.page-compliance-dashboard .documentation-entry-actions a[data-tone="primary"],
.page-performance-alerts .documentation-entry-actions a[data-tone="primary"] {
  border-color: rgba(34,211,238,0.24);
  background: rgba(34,211,238,0.12);
  color: #cffafe;
}

.warning-flow-shell-root .warning-watch-card[data-tone="danger"] .warning-watch-value,
.page-manual-warning .warning-watch-card[data-tone="danger"] .warning-watch-value,
.page-compliance-dashboard .compliance-watch-card[data-tone="red"] .compliance-watch-value {
  color: #fca5a5;
}

.warning-flow-shell-root .warning-watch-card[data-tone="warning"] .warning-watch-value,
.page-manual-warning .warning-watch-card[data-tone="warning"] .warning-watch-value,
.page-compliance-dashboard .compliance-watch-card[data-tone="gold"] .compliance-watch-value {
  color: #fbbf24;
}

.page-compliance-dashboard .compliance-watch-card[data-tone="green"] .compliance-watch-value {
  color: #34d399;
}

.warning-flow-shell-root .warning-action-row {
  margin-top: 18px;
}

.warning-flow-shell-root .warning-rail-title {
  margin: 8px 0 0;
  color: #f8fafc;
  font-size: 22px;
}

.warning-flow-shell-root .warning-rail-copy,
.warning-flow-shell-root .warning-list {
  margin-top: 12px;
}

.warning-flow-shell-root .warning-rail-helper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.warning-flow-shell-root .warning-rail-helper-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.16);
  background: rgba(2,6,23,0.34);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}

.warning-flow-shell-root .warning-rail-helper-links a[data-tone="primary"] {
  border-color: rgba(34,211,238,0.24);
  background: rgba(34,211,238,0.12);
  color: #cffafe;
}

.page-compliance-dashboard .action-links.action-links-doc {
  margin-top: 14px;
}

.page-compliance-dashboard .action-links.action-links-doc form.action-inline-form {
  margin: 0;
}

@media (max-width: 980px) {
  .warning-flow-shell-root .documentation-entry-grid,
  .page-manual-warning .documentation-entry-grid,
  .page-compliance-dashboard .documentation-entry-grid,
.page-performance-alerts .documentation-entry-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .warning-flow-shell-root .documentation-entry-bridge,
  .page-manual-warning .documentation-entry-bridge,
  .page-compliance-dashboard .documentation-entry-bridge,
.page-performance-alerts .documentation-entry-bridge {
    padding: 16px;
    border-radius: 18px;
  }

  .warning-flow-shell-root .documentation-entry-actions a,
  .warning-flow-shell-root .warning-rail-helper-links a,
  .page-manual-warning .documentation-entry-actions a,
  .page-compliance-dashboard .documentation-entry-actions a,
.page-performance-alerts .documentation-entry-actions a {
    width: 100%;
    flex-basis: 100%;
  }
}

/* === Pass 200 warning record shared screen styles === */
.warning-record-body {
        color-scheme: dark;
        --bg:#020617;
        --panel:#0f172a;
        --line:rgba(148,163,184,.16);
        --copy:rgba(226,232,240,.82);
        --muted:#94a3b8;
        --good:#10b981;
        --warn:#f59e0b;
        --danger:#ef4444;
        --accent:#3b82f6;
    }
    .warning-record-body * { box-sizing:border-box; }
    .warning-record-body {
        font-family: Inter, Arial, sans-serif;
        background:radial-gradient(circle at top right, rgba(59,130,246,.16), transparent 34%), linear-gradient(180deg, #020617, #0f172a 54%, #020617);
        padding:24px;
        margin:0;
        color:white;
    }
    .warning-record-body .page-shell {
        max-width:1220px !important;
        margin:0 auto;
        display:grid;
        gap:20px;
        padding-bottom:calc(110px + env(safe-area-inset-bottom, 0px));
    }
    .warning-record-body .page-hero {
        position:relative;
        overflow:hidden;
        border-radius:28px;
        padding:28px;
        background:linear-gradient(140deg, rgba(15,23,42,.98), rgba(15,23,42,.84));
        border:1px solid var(--line);
        box-shadow:0 24px 60px rgba(2,6,23,.3);
    }
    .warning-record-body .page-hero::after {
        content:"";
        position:absolute;
        inset:auto -120px -180px auto;
        width:360px;
        height:360px;
        border-radius:50%;
        background:radial-gradient(circle, rgba(59,130,246,.18), rgba(59,130,246,0));
        pointer-events:none;
    }
    .warning-record-body .page-hero-grid {
        position:relative;
        z-index:1;
        display:grid;
        grid-template-columns:minmax(0, 1.2fr) minmax(320px, .85fr);
        gap:22px;
        align-items:start;
    }
    .warning-record-body .eyebrow {
        display:inline-flex;
        align-items:center;
        gap:8px;
        padding:8px 14px;
        border-radius:999px;
        background:rgba(15,23,42,.72);
        border:1px solid rgba(148,163,184,.18);
        font-size:12px;
        font-weight:800;
        letter-spacing:.12em;
        text-transform:uppercase;
        color:#cbd5e1;
    }
    .warning-record-body h1 {
        margin:16px 0 8px;
        font-size:clamp(32px, 4vw, 44px);
        line-height:1.02;
    }
    .warning-record-body .hero-copy {
        max-width:720px;
        color:var(--copy);
        font-size:16px;
        line-height:1.65;
    }
    .warning-record-body .hero-chip-row,
.warning-record-body .action-links,
.warning-record-body .btn-stack {
        display:flex;
        flex-wrap:wrap;
        gap:10px;
    }
    .warning-record-body .hero-chip {
        display:inline-flex;
        align-items:center;
        gap:8px;
        border-radius:999px;
        padding:9px 13px;
        font-size:13px;
        background:rgba(15,23,42,.68);
        border:1px solid rgba(148,163,184,.14);
    }
    .warning-record-body .hero-chip strong {
        font-size:11px;
        font-weight:800;
        letter-spacing:.12em;
        text-transform:uppercase;
        color:var(--muted);
    }
    .warning-record-body .hero-card-grid {
        display:grid;
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:14px;
    }
    .warning-record-body .hero-card {
        border-radius:22px;
        padding:18px;
        background:rgba(15,23,42,.76);
        border:1px solid rgba(148,163,184,.14);
    }
    .warning-record-body .hero-card strong {
        display:block;
        font-size:12px;
        font-weight:800;
        letter-spacing:.12em;
        text-transform:uppercase;
        color:var(--muted);
    }
    .warning-record-body .hero-card-value {
        margin-top:10px;
        font-size:22px;
        font-weight:800;
        line-height:1.1;
    }
    .warning-record-body .hero-card p {
        margin:8px 0 0;
        color:var(--copy);
        line-height:1.55;
        font-size:13px;
    }
    .warning-record-body .warning-record-watch-summary {
        display:grid;
        grid-template-columns:repeat(4, minmax(0, 1fr));
        gap:12px;
        margin:0 0 18px;
    }
    .warning-record-body .warning-record-watch-card {
        border-radius:20px;
        padding:16px;
        background:rgba(15,23,42,.78);
        border:1px solid rgba(148,163,184,.14);
        box-shadow:0 12px 28px rgba(2,6,23,.18);
    }
    .warning-record-body .warning-record-watch-label {
        color:var(--muted);
        font-size:10px;
        font-weight:800;
        letter-spacing:.12em;
        text-transform:uppercase;
    }
    .warning-record-body .warning-record-watch-value {
        margin-top:8px;
        color:#fff;
        font-size:24px;
        font-weight:900;
        line-height:1.05;
    }
    .warning-record-body .warning-record-watch-copy {
        margin-top:6px;
        color:var(--copy);
        line-height:1.55;
        font-size:13px;
    }
    .warning-record-body .warning-record-watch-actions {
        display:flex;
        flex-wrap:wrap;
        gap:8px;
        margin-top:12px;
    }
    .warning-record-body .warning-record-watch-link {
        display:inline-flex;
        align-items:center;
        justify-content:center;
        min-height:40px;
        padding:0 12px;
        border-radius:999px;
        border:1px solid rgba(59,130,246,.24);
        background:rgba(59,130,246,.12);
        color:#dbeafe;
        font-size:11px;
        font-weight:800;
        letter-spacing:.08em;
        text-transform:uppercase;
        text-decoration:none;
        cursor:pointer;
    }
    .warning-record-body .warning-record-watch-link-secondary {
        border-color:rgba(148,163,184,.16);
        background:rgba(15,23,42,.68);
        color:#e2e8f0;
    }
    .warning-record-body .warning-record-watch-value .status-pill {
        font-size:12px;
        padding:8px 12px;
    }
    .warning-record-body .status-pill {
        display:inline-flex;
        align-items:center;
        justify-content:center;
        border-radius:999px;
        padding:6px 11px;
        font-size:11px;
        font-weight:800;
        letter-spacing:.12em;
        text-transform:uppercase;
    }
    .warning-record-body .status-pending { background:rgba(245,158,11,.16); color:#fcd34d; }
    .warning-record-body .status-signed { background:rgba(16,185,129,.16); color:#86efac; }
    .warning-record-body .status-refused { background:rgba(239,68,68,.16); color:#fca5a5; }
    .warning-record-body .btn-bar {
        position:fixed;
        bottom:20px;
        right:20px;
        display:flex;
        flex-wrap:wrap;
        gap:10px;
        z-index:999;
    }
    .warning-record-body .btn-float,
.warning-record-body .btn-sign,
.warning-record-body .btn-refuse,
.warning-record-body .btn-inline {
        display:inline-flex;
        align-items:center;
        justify-content:center;
        gap:8px;
        min-height:46px;
        padding:0 18px;
        border-radius:999px;
        border:none;
        cursor:pointer;
        font-weight:800;
        font-size:14px;
        text-decoration:none;
        box-shadow:0 12px 30px rgba(2,6,23,.24);
    }
    .warning-record-body .btn-pdf { background:linear-gradient(180deg, #3b82f6, #2563eb); color:white; }
    .warning-record-body .btn-back { background:#fff; color:#0f172a; }
    .warning-record-body .btn-sign { background:linear-gradient(180deg, #10b981, #059669); color:white; }
    .warning-record-body .btn-refuse { background:linear-gradient(180deg, #ef4444, #dc2626); color:white; }
    .warning-record-body .btn-inline { background:rgba(255,255,255,.04); color:white; border:1px solid rgba(148,163,184,.18); }
    .warning-record-body .paper-wrap {
        display:grid;
        gap:14px;
    }
    .warning-record-body .paper-intro {
        display:flex;
        justify-content:space-between;
        gap:16px;
        align-items:center;
        color:var(--copy);
        font-size:14px;
        line-height:1.55;
    }
    .warning-record-body .paper {
        background:white;
        max-width:860px;
        margin:0 auto;
        padding:40px 50px;
        min-height:1000px;
        color:black;
        position:relative;
        border-radius:20px;
        box-shadow:0 28px 70px rgba(2,6,23,.38);
    }
    .warning-record-body .paper h1 { font-size:16px; text-transform:uppercase; text-align:center; border-bottom:2px solid #000; padding-bottom:10px; margin-bottom:20px; font-weight:bold; color:black; }
    .warning-record-body .field-row { border-bottom:1px dotted #ccc; padding-bottom:2px; margin-bottom:5px; display:flex; font-size:14px; }
    .warning-record-body .lbl { font-weight:bold; width:140px; }
    .warning-record-body .section-title { font-weight:bold; margin-top:15px; margin-bottom:5px; font-size:14px; text-decoration:underline; }
    .warning-record-body .input-area { border:1px solid #ddd; padding:8px; font-family:Arial,sans-serif; font-size:12px; white-space:pre-wrap; background:#fdfdfd; margin-bottom:10px; border-radius:8px; }
    .warning-record-body .sign-box {
        background:#f1f5f9;
        border:2px dashed #334155;
        padding:20px;
        text-align:center;
        margin-top:30px;
        border-radius:16px;
        font-family:Arial,sans-serif;
    }
    .warning-record-body .sign-input {
        padding:12px 14px;
        width:min(100%, 420px);
        border:1px solid #cbd5e1;
        border-radius:14px;
        font-size:16px;
        margin-bottom:12px;
    }
    .warning-record-body .signed-panel {
        border:2px solid #ccc;
        padding:18px;
        background:#f9f9f9;
        border-radius:16px;
    }
    .warning-record-body .signed-title {
        font-size:14px;
        font-weight:bold;
        margin-bottom:10px;
    }
    @media print{
        .warning-record-body { background:white; padding:0; }
        .warning-record-body .page-hero,
.warning-record-body .paper-intro,
.warning-record-body .btn-bar { display:none !important; }
        .warning-record-body .page-shell { max-width:none; padding:0; }
        .warning-record-body .paper { box-shadow:none; border-radius:0; max-width:none; min-height:auto; }
    }
    @media (max-width: 980px){
        .warning-record-body .page-hero-grid,
.warning-record-body .hero-card-grid,
.warning-record-body .warning-record-watch-summary {
            grid-template-columns:1fr 1fr;
        }
        .warning-record-body .paper {
            padding:32px 24px;
            border-radius:18px;
        }
    }
    @media (max-width: 760px){
        .warning-record-body .warning-record-watch-summary { grid-template-columns:1fr; }
        .warning-record-body { padding:16px; }
        .warning-record-body .page-hero { padding:22px; border-radius:22px; }
        .warning-record-body .btn-bar {
            position:sticky;
            bottom:auto;
            right:auto;
            top:calc(100vh - 88px);
            justify-content:stretch;
        }
        .warning-record-body .btn-bar > * { flex:1 1 100%; }
        .warning-record-body .paper-intro { display:grid; }
        .warning-record-body .field-row { display:grid; gap:4px; }
        .warning-record-body .lbl { width:auto; }
    }

/* === Pass 200 daily review shared screen styles === */
.page-daily-review {
        --app-max-width: 1120px;
    }

    .page-daily-review .review-hero,
.page-daily-review .summary-strip,
.page-daily-review .lane-heading,
.page-daily-review .empty-lane {
        position: relative;
        z-index: 1;
    }

    .page-daily-review .review-hero {
        display: grid;
        grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
        gap: 18px;
        margin-bottom: 18px;
    }

    .page-daily-review .review-hero-card,
.page-daily-review .review-status-card,
.page-daily-review .summary-metric,
.page-daily-review .empty-lane,
.page-daily-review .lane-heading {
        background: linear-gradient(180deg, rgba(15,23,42,0.9), rgba(15,23,42,0.72));
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 18px;
        box-shadow: 0 20px 50px -36px rgba(15, 23, 42, 0.95);
    }

    .page-daily-review .review-hero-card {
        padding: 22px 24px;
    }

    .page-daily-review .review-kicker,
.page-daily-review .lane-kicker {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(34,211,238,0.12);
        color: var(--daily-cyan);
        font-size: 11px;
        font-weight: 900;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .page-daily-review .review-hero-card h1 {
        margin: 14px 0 10px;
        font-size: clamp(32px, 4vw, 44px);
        line-height: 1.02;
    }

    .page-daily-review .review-hero-card p {
        margin: 0;
        max-width: 720px;
        color: #cbd5e1;
        font-size: 15px;
        line-height: 1.65;
    }

    .page-daily-review .review-status-card {
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .page-daily-review .review-status-label {
        font-size: 11px;
        font-weight: 900;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--daily-muted);
    }

    .page-daily-review .review-status-date {
        font-size: 22px;
        font-weight: 900;
        color: #fff;
    }

    .page-daily-review .review-status-copy {
        color: #cbd5e1;
        font-size: 13px;
        line-height: 1.55;
    }

    .page-daily-review .status-pill-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .page-daily-review .status-pill {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 36px;
        padding: 8px 12px;
        border-radius: 999px;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.08);
        color: #e2e8f0;
        font-size: 12px;
        font-weight: 700;
    }

    .page-daily-review .review-watch-summary {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
        margin: 0 0 18px;
    }

    .page-daily-review .review-watch-card {
        padding: 18px;
        display: grid;
        gap: 8px;
        background: linear-gradient(180deg, rgba(15,23,42,0.88), rgba(15,23,42,0.72));
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 18px;
        box-shadow: 0 20px 50px -36px rgba(15, 23, 42, 0.95);
    }

    .page-daily-review .review-watch-card[data-tone="red"] {
        border-color: rgba(239,68,68,0.24);
        background: linear-gradient(180deg, rgba(127,29,29,0.28), rgba(15,23,42,0.78));
    }

    .page-daily-review .review-watch-card[data-tone="gold"] {
        border-color: rgba(245,158,11,0.24);
        background: linear-gradient(180deg, rgba(120,53,15,0.26), rgba(15,23,42,0.78));
    }

    .page-daily-review .review-watch-card[data-tone="green"] {
        border-color: rgba(16,185,129,0.24);
        background: linear-gradient(180deg, rgba(4,120,87,0.24), rgba(15,23,42,0.78));
    }

    .page-daily-review .review-watch-card[data-tone="cyan"] {
        border-color: rgba(34,211,238,0.24);
        background: linear-gradient(180deg, rgba(8,47,73,0.28), rgba(15,23,42,0.78));
    }

    .page-daily-review .review-watch-card[data-tone="slate"] {
        border-color: rgba(148,163,184,0.18);
        background: linear-gradient(180deg, rgba(30,41,59,0.5), rgba(15,23,42,0.72));
    }

    .page-daily-review .review-watch-label {
        font-size: 11px;
        font-weight: 900;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--daily-muted);
    }

    .page-daily-review .review-watch-value {
        font-size: clamp(24px, 3.8vw, 32px);
        font-weight: 900;
        color: #fff;
        line-height: 1.05;
    }

    .page-daily-review .review-watch-note {
        color: #cbd5e1;
        font-size: 13px;
        line-height: 1.55;
    }

    .page-daily-review .review-watch-links {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 4px;
    }

    .page-daily-review .review-watch-links a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 34px;
        padding: 7px 10px;
        border-radius: 999px;
        text-decoration: none;
        border: 1px solid rgba(255,255,255,0.08);
        background: rgba(255,255,255,0.05);
        color: #f8fafc;
        font-size: 12px;
        font-weight: 800;
    }

    .page-daily-review .review-watch-links a:hover {
        border-color: rgba(34,211,238,0.3);
        color: #a5f3fc;
    }

    .page-daily-review .summary-strip {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
        margin: 0 0 18px;
    }

    .page-daily-review .summary-metric {
        padding: 18px;
    }

    .page-daily-review .summary-label {
        font-size: 11px;
        font-weight: 900;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--daily-muted);
    }

    .page-daily-review .summary-value {
        margin-top: 10px;
        font-size: clamp(24px, 4vw, 32px);
        font-weight: 900;
        color: #fff;
        line-height: 1;
    }

    .page-daily-review .summary-copy {
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.5;
        color: #cbd5e1;
    }

    .page-daily-review .lane-heading {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 16px;
        padding: 16px 18px;
        margin: 0 0 14px;
    }

    .page-daily-review .lane-heading h2 {
        margin: 10px 0 4px;
        color: #fff;
        font-size: 20px;
    }

    .page-daily-review .lane-heading p,
.page-daily-review .lane-count {
        margin: 0;
        color: var(--daily-muted);
        font-size: 13px;
        line-height: 1.55;
    }

    .page-daily-review .lane-count {
        font-weight: 800;
        white-space: nowrap;
    }

    .page-daily-review .lane-side {
        display: grid;
        gap: 10px;
        justify-items: end;
    }

    .page-daily-review .lane-watch-links {
        justify-content: flex-end;
    }

    .page-daily-review .lane-watch-links a {
        background: rgba(255,255,255,0.04);
    }

    .page-daily-review .lane-watch-links a:hover,
    .page-daily-review .lane-watch-links a:focus-visible {
        background: rgba(34,211,238,0.08);
    }

    .page-daily-review .empty-lane {
        padding: 18px;
        color: #cbd5e1;
        font-size: 14px;
        line-height: 1.55;
        margin-bottom: 16px;
    }

    body.pdf-mode .page-daily-review .review-hero,
body.pdf-mode .page-daily-review .review-watch-summary,
body.pdf-mode .page-daily-review .summary-strip,
body.pdf-mode .page-daily-review .lane-watch-links,
body.pdf-mode .page-daily-review .lane-heading {
        display: none !important;
    }

    @media (max-width: 900px){
        .page-daily-review .review-hero,
.page-daily-review .review-watch-summary,
.page-daily-review .summary-strip {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 700px){
        .page-daily-review .review-watch-summary,
.page-daily-review .summary-strip {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 700px){
        .page-daily-review {
            --app-max-width: 600px;
        }

        .page-daily-review .review-hero-card,
.page-daily-review .review-status-card,
.page-daily-review .summary-metric,
.page-daily-review .lane-heading,
.page-daily-review .empty-lane {
            padding: 16px;
        }

        .page-daily-review .lane-heading {
            align-items: stretch;
            flex-direction: column;
        }

        .page-daily-review .lane-side {
            justify-items: start;
        }

        .page-daily-review .lane-watch-links {
            justify-content: flex-start;
        }

        .page-daily-review .desktop-shell-copy {
            display: none;
        }

        .page-daily-review .review-hero {
            margin-top: 12px;
        }
    }


/* === Pass 201 documentation history family alignment === */
.desktop-shell-records-history {
  display: grid;
  gap: 18px;
  width: min(1360px, calc(100vw - 28px));
  margin: 0 auto;
}

.desktop-shell-records-history .desktop-shell-header {
  margin-bottom: 0;
}

.page-audit-records.documentation-history-shell {
  max-width: min(1360px, calc(100vw - 28px)) !important;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  color: #f8fafc;
  padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px));
}

.page-audit-records.documentation-history-shell .archive-return-links,
.page-audit-records.documentation-history-shell .top-links,
.page-audit-records.documentation-history-shell .archive-hero-actions,
.page-disciplinary-log.documentation-history-shell .disciplinary-log-actions,
.page-disciplinary-log.documentation-history-shell .disciplinary-log-watch-actions,
.warning-record-body .documentation-history-shell .warning-record-watch-actions,
.warning-record-body .documentation-history-shell .warning-record-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-audit-records.documentation-history-shell .archive-return-links,
.page-audit-records.documentation-history-shell .top-links {
  margin: 0;
}

.page-audit-records .audit-archive-watch-card,
.page-disciplinary-log.documentation-history-shell .disciplinary-log-watch-card,
.warning-record-body .documentation-history-shell .warning-record-watch-card {
  position: relative;
  overflow: hidden;
}

.page-audit-records .audit-archive-watch-card::after,
.page-disciplinary-log.documentation-history-shell .disciplinary-log-watch-card::after,
.warning-record-body .documentation-history-shell .warning-record-watch-card::after {
  content: "";
  position: absolute;
  inset: auto -52px -78px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.12), rgba(34, 211, 238, 0));
  pointer-events: none;
}

.page-audit-records .audit-family-link-button,
.page-disciplinary-log.documentation-history-shell .disciplinary-log-link,
.page-disciplinary-log.documentation-history-shell .disciplinary-log-watch-link,
.warning-record-body .documentation-history-shell .warning-record-watch-link,
.warning-record-body .documentation-history-shell .btn-inline {
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .12s ease;
}

.page-audit-records .audit-family-link-button:hover,
.page-disciplinary-log.documentation-history-shell .disciplinary-log-link:hover,
.page-disciplinary-log.documentation-history-shell .disciplinary-log-watch-link:hover,
.warning-record-body .documentation-history-shell .warning-record-watch-link:hover,
.warning-record-body .documentation-history-shell .btn-inline:hover {
  transform: translateY(-1px);
}

.page-audit-records .audit-family-link-button:focus-visible,
.page-disciplinary-log.documentation-history-shell .disciplinary-log-link:focus-visible,
.page-disciplinary-log.documentation-history-shell .disciplinary-log-watch-link:focus-visible,
.warning-record-body .documentation-history-shell .warning-record-watch-link:focus-visible,
.warning-record-body .documentation-history-shell .btn-inline:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.45);
  outline-offset: 2px;
}

.page-audit-records .archive-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-audit-records .archive-row-actions .link-btn {
  min-height: 38px;
}

.page-audit-records .archive-continuity-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.page-audit-records .archive-continuity-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.84));
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.26);
}

.page-audit-records .archive-continuity-card::after {
  content: "";
  position: absolute;
  inset: auto -48px -82px auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(148, 163, 184, 0.14), rgba(148, 163, 184, 0));
}

.page-audit-records .archive-continuity-card[data-tone="cyan"]::after {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16), rgba(34, 211, 238, 0));
}

.page-audit-records .archive-continuity-card[data-tone="gold"]::after {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.14), rgba(251, 191, 36, 0));
}

.page-audit-records .archive-continuity-card[data-tone="red"]::after {
  background: radial-gradient(circle, rgba(248, 113, 113, 0.14), rgba(248, 113, 113, 0));
}

.page-audit-records .archive-continuity-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.74);
}

.page-audit-records .archive-continuity-value {
  font-size: clamp(1.2rem, 1.6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

.page-audit-records .archive-continuity-card[data-tone="cyan"] .archive-continuity-value { color: var(--audit-family-cyan); }
.page-audit-records .archive-continuity-card[data-tone="gold"] .archive-continuity-value { color: var(--audit-family-gold); }
.page-audit-records .archive-continuity-card[data-tone="red"] .archive-continuity-value { color: #fca5a5; }
.page-audit-records .archive-continuity-card[data-tone="slate"] .archive-continuity-value { color: #cbd5e1; }

.page-audit-records .archive-continuity-copy {
  font-size: 0.94rem;
  line-height: 1.65;
  color: #cbd5e1;
}

.page-audit-records .archive-continuity-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-audit-records .archive-continuity-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.68);
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .12s ease;
}

.page-audit-records .archive-continuity-links a:hover,
.page-audit-records .archive-continuity-links a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.34);
  background: rgba(8, 47, 73, 0.5);
  color: #f8fafc;
  outline: none;
}

@media (max-width: 1200px) {
  .page-audit-records .archive-continuity-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .page-audit-center .audit-center-continuity-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .page-audit-center .audit-center-continuity-summary {
    grid-template-columns: 1fr;
  }

  .desktop-shell-records-history,
  .page-audit-records.documentation-history-shell {
    width: min(100%, calc(100vw - 20px));
    max-width: min(100%, calc(100vw - 20px)) !important;
  }

  .page-audit-records .archive-continuity-summary {
    grid-template-columns: 1fr;
  }
}


/* === Pass 200 documentation-family tone helpers === */

.page-performance-alerts .alerts-watch-card[data-tone="danger"] .alerts-watch-value,
.warning-record-body .warning-record-watch-card[data-tone="danger"] .warning-record-watch-value {
  color: var(--audit-family-danger, #fca5a5);
}

.page-performance-alerts .alerts-watch-card[data-tone="warning"] .alerts-watch-value,
.warning-record-body .warning-record-watch-card[data-tone="warning"] .warning-record-watch-value {
  color: var(--audit-family-gold, #fbbf24);
}

.warning-record-body .warning-record-watch-card[data-tone="success"] .warning-record-watch-value {
  color: var(--audit-family-success, #34d399);
}

.warning-record-body .warning-record-hero-chip-row {
  margin-top: 16px;
}

.warning-record-body .warning-record-topbar {
  margin-top: 18px;
}

.page-daily-review .daily-review-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* === Pass 210: culinary audit family continuity polish === */
.page-floor-audit.page-culinary-audit {
  width: 100%;
  max-width: 1180px !important;
  margin: 0 auto;
  padding: 20px 16px 32px;
  color: #f8fafc;
}

.page-floor-audit.page-culinary-audit .audit-hero-card {
  background: linear-gradient(180deg, rgba(19, 34, 24, 0.94), rgba(15, 23, 42, 0.88));
}

.page-floor-audit.page-culinary-audit .audit-status-badge {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.26);
  color: #bbf7d0;
}

.page-floor-audit.page-culinary-audit .culinary-audit-continuity-note {
  border-color: rgba(52, 211, 153, 0.24);
  background: rgba(16, 185, 129, 0.10);
  color: #dcfce7;
}

.page-floor-audit.page-culinary-audit .culinary-status-strip {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.page-floor-audit.page-culinary-audit .culinary-status-strip.is-success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.28);
}

.page-floor-audit.page-culinary-audit .culinary-status-strip.is-alert {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.28);
}

.page-floor-audit.page-culinary-audit .culinary-status-title {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
  margin-bottom: 4px;
}

.page-floor-audit.page-culinary-audit .culinary-status-sub {
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}

.page-floor-audit.page-culinary-audit .culinary-readiness-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.page-floor-audit.page-culinary-audit .readiness-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.page-floor-audit.page-culinary-audit .readiness-chip.is-good {
  color: #bbf7d0;
  border-color: rgba(16, 185, 129, 0.32);
  background: rgba(16, 185, 129, 0.10);
}

.page-floor-audit.page-culinary-audit .readiness-chip.is-warn {
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(245, 158, 11, 0.10);
}

.page-floor-audit.page-culinary-audit .readiness-chip.is-alert {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.34);
  background: rgba(239, 68, 68, 0.12);
}

.page-floor-audit.page-culinary-audit .temp-input.temp-danger {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.35);
}

.page-floor-audit.page-culinary-audit .temp-input.temp-ok {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.22);
}

.page-floor-audit.page-culinary-audit .culinary-audit-watch-link {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.26);
  color: #dcfce7;
}

.page-floor-audit.page-culinary-audit .culinary-audit-watch-link:hover,
.page-floor-audit.page-culinary-audit .culinary-audit-watch-link:focus-visible {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(52, 211, 153, 0.34);
  color: #f0fdf4;
}

.page-floor-audit.page-culinary-audit .culinary-audit-guardrail-note {
  margin: -4px 0 0;
}

.page-floor-audit.page-culinary-audit .audit-form-card {
  max-width: none;
}

@media (max-width: 640px) {
  .page-floor-audit.page-culinary-audit {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* === Pass 211: saved culinary edit continuity polish === */
.page-floor-audit.page-edit-audit.page-edit-culinary {
  width: 100%;
  max-width: 1180px !important;
  margin: 0 auto;
  padding: 20px 16px 32px;
  color: #f8fafc;
}

.page-floor-audit.page-edit-audit.page-edit-culinary .audit-hero-card {
  background: linear-gradient(180deg, rgba(19, 34, 24, 0.94), rgba(15, 23, 42, 0.88));
}

.page-floor-audit.page-edit-audit.page-edit-culinary .audit-status-badge {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.26);
  color: #bbf7d0;
}

.page-floor-audit.page-edit-audit.page-edit-culinary .audit-edit-watch-summary,
.page-floor-audit.page-edit-audit.page-edit-culinary .edit-culinary-form-card {
  max-width: none;
}

.page-floor-audit.page-edit-audit.page-edit-culinary .floor-audit-watch-card {
  background: rgba(7, 20, 18, 0.58);
  border-color: rgba(52, 211, 153, 0.18);
}

.page-floor-audit.page-edit-audit.page-edit-culinary .floor-audit-watch-value {
  color: #ecfccb;
}

.page-floor-audit.page-edit-audit.page-edit-culinary .culinary-status-strip {
  margin: 0 0 14px;
}

.page-floor-audit.page-edit-audit.page-edit-culinary .culinary-readiness-strip {
  margin: 0 0 16px;
}

.page-floor-audit.page-edit-audit.page-edit-culinary .edit-culinary-form-card #bt-box,
.page-floor-audit.page-edit-audit.page-edit-culinary .edit-culinary-form-card #ios-box {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.page-floor-audit.page-edit-audit.page-edit-culinary .edit-culinary-form-card .btn-bt {
  margin-bottom: 14px;
}

.page-floor-audit.page-edit-audit.page-edit-culinary .edit-culinary-form-card > form {
  margin-top: 18px;
}

.page-floor-audit.page-edit-audit.page-edit-culinary .make-label-banner {
  margin-bottom: 18px;
}

@media (max-width: 640px) {
  .page-floor-audit.page-edit-audit.page-edit-culinary {
    padding-left: 14px;
    padding-right: 14px;
  }
}


/* === Pass 212: saved floor edit continuity polish === */
.page-floor-audit.page-edit-audit.page-edit-floor {
  width: 100%;
  max-width: 1180px !important;
  margin: 0 auto;
  padding: 20px 16px 32px;
  color: #f8fafc;
}

.page-floor-audit.page-edit-audit.page-edit-floor .audit-hero-card {
  background: linear-gradient(180deg, rgba(8, 31, 46, 0.94), rgba(15, 23, 42, 0.9));
}

.page-floor-audit.page-edit-audit.page-edit-floor .audit-status-badge {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.24);
  color: #cffafe;
}

.page-floor-audit.page-edit-audit.page-edit-floor .audit-edit-watch-summary,
.page-floor-audit.page-edit-audit.page-edit-floor .edit-floor-form-card {
  max-width: none;
}

.page-floor-audit.page-edit-audit.page-edit-floor .floor-audit-watch-card {
  background: rgba(8, 23, 34, 0.58);
  border-color: rgba(34, 211, 238, 0.18);
}

.page-floor-audit.page-edit-audit.page-edit-floor .floor-audit-watch-value {
  color: #e0f2fe;
}

.page-floor-audit.page-edit-audit.page-edit-floor .floor-audit-status-strip {
  margin: 0 0 14px;
}

.page-floor-audit.page-edit-audit.page-edit-floor .floor-edit-readiness-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.page-floor-audit.page-edit-audit.page-edit-floor .readiness-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.page-floor-audit.page-edit-audit.page-edit-floor .readiness-chip.is-good {
  color: #bae6fd;
  border-color: rgba(34, 211, 238, 0.32);
  background: rgba(34, 211, 238, 0.10);
}

.page-floor-audit.page-edit-audit.page-edit-floor .readiness-chip.is-warn {
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(245, 158, 11, 0.10);
}

.page-floor-audit.page-edit-audit.page-edit-floor .readiness-chip.is-alert {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.34);
  background: rgba(239, 68, 68, 0.12);
}

.page-floor-audit.page-edit-audit.page-edit-floor .audit-sales-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-floor-audit.page-edit-audit.page-edit-floor .audit-sales-grid > div {
  min-width: 0;
}

.page-floor-audit.page-edit-audit.page-edit-floor .edit-floor-form-card > form {
  margin-top: 18px;
}

@media (max-width: 640px) {
  .page-floor-audit.page-edit-audit.page-edit-floor {
    padding-left: 14px;
    padding-right: 14px;
  }

  .page-floor-audit.page-edit-audit.page-edit-floor .audit-sales-grid {
    grid-template-columns: 1fr;
  }
}


/* === Pass 213 - Ring-It lane width and continuity polish === */
.page-ring-it {
  max-width: min(100%, 1180px) !important;
  margin-left: auto;
  margin-right: auto;
  padding: calc(var(--he-sticky-top, 74px) + 18px) 16px 136px;
}

.page-ring-it .top-links,
.page-ring-it .ring-it-nav-note,
.page-ring-it .card {
  max-width: none !important;
  margin-left: 0;
  margin-right: 0;
}

.page-ring-it .top-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.page-ring-it .card {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.74));
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.32);
}

.page-ring-it .ring-it-nav-note {
  display: block;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, 0.18);
  background: rgba(15, 23, 42, 0.7);
  color: #fde68a;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
}

.page-ring-it .ring-it-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.page-ring-it .ring-it-title,
.page-ring-it .ring-it-form-card h2 {
  margin: 6px 0 8px;
  color: #fff;
  line-height: 1.05;
}

.page-ring-it .ring-it-title {
  font-size: 30px;
  letter-spacing: -0.03em;
}

.page-ring-it .ring-it-form-card h2 {
  font-size: 20px;
}

.page-ring-it .ring-it-subtitle,
.page-ring-it .ring-it-section-head p {
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
  max-width: 760px;
}

.page-ring-it .ring-it-context-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.22);
  color: #a5f3fc;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.page-ring-it .ring-it-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.page-ring-it .ring-it-entry-actions .link-btn {
  flex: 0 0 auto;
  width: auto;
  min-height: 42px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.42);
  color: #e2e8f0;
  text-decoration: none;
}

.page-ring-it .ring-it-entry-actions .link-btn:hover,
.page-ring-it .ring-it-entry-actions .link-btn:focus-visible {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.26);
  color: #ecfeff;
}

.page-ring-it .ring-it-status-strip {
  margin-top: 16px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.78);
}

.page-ring-it .ring-it-status-strip.is-saved {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.12);
}

.page-ring-it .ring-it-status-strip.is-context {
  border-color: rgba(34, 211, 238, 0.24);
  background: rgba(34, 211, 238, 0.10);
}

.page-ring-it .ring-it-status-title {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.page-ring-it .ring-it-status-copy,
.page-ring-it .ring-it-inline-note {
  margin-top: 6px;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
}

.page-ring-it .ring-it-watch-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.page-ring-it .ring-it-watch-card {
  min-width: 0;
  min-height: 100%;
  padding: 18px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.page-ring-it .ring-it-watch-note {
  color: #cbd5e1;
}

.page-ring-it .ring-it-watch-actions {
  margin-top: 14px;
}

.page-ring-it .ring-it-watch-link {
  text-decoration: none;
}

.page-ring-it .ring-it-inline-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: rgba(15, 23, 42, 0.56);
}

.page-ring-it .ring-it-form-card form {
  max-width: none;
}

.page-ring-it .check-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-ring-it .check-row {
  min-height: 100%;
}

.page-ring-it .pos-modal-box {
  max-width: 760px;
}

@media (max-width: 980px) {
  .page-ring-it .ring-it-watch-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-ring-it .ring-it-section-head {
    flex-direction: column;
  }

  .page-ring-it .top-links,
  .page-ring-it .check-group,
  .page-ring-it .ring-it-watch-summary {
    grid-template-columns: 1fr;
  }

  .page-ring-it .ring-it-entry-actions .link-btn {
    width: 100%;
  }
}


/* === Pass 214 authenticated surface declutter sweep === */
.page-performance-alerts .documentation-entry-bridge,
.page-performance-alerts .alerts-watch-card.is-action,
.page-compliance-dashboard .documentation-entry-bridge,
.page-manual-warning .documentation-entry-bridge,
.warning-flow-shell-root .documentation-entry-bridge,
.page-floor-audit .floor-audit-continuity-note,
.page-floor-audit .floor-audit-entry-bridge,
.page-culinary-audit .culinary-audit-entry-bridge,
.page-edit-audit .audit-edit-watch-summary,
.page-ring-it .ring-it-entry-bridge,
.page-daily-review .review-hero,
.page-daily-review .review-watch-summary,
.page-audit-records .archive-continuity-summary,
.incident-phone-shell.page-incidents .incident-board-route-grid,
.page-incident-report .planner-shell-utility-row,
.page-incident-report .incident-intake-watch,
.page-incident-report .incident-flow-stat-grid,
.page-incident-report .incident-bridge-card,
.page-incident-report .incident-rail {
  display: none !important;
}

.page-performance-alerts .performance-alerts-hero-card {
  padding-bottom: 18px;
}

.page-performance-alerts .audit-family-title {
  font-size: clamp(2.15rem, 3.5vw, 3.3rem) !important;
  line-height: 0.96;
  max-width: 9ch;
}

.page-performance-alerts .audit-family-subtitle {
  max-width: 56ch;
}

.page-incident-report .incident-helper {
  display: none !important;
}

.page-incident-report .incident-flow-layout {
  display: block !important;
}

.page-incident-report .incident-card {
  width: 100% !important;
  max-width: none !important;
}

.page-incident-report .incident-flow-hero-top {
  align-items: end;
}

.settings-container.page-settings {
  width: min(1360px, calc(100vw - 32px)) !important;
  max-width: min(1360px, calc(100vw - 32px)) !important;
  padding: 24px 20px calc(110px + env(safe-area-inset-bottom)) 20px !important;
  display: grid;
  gap: 20px;
}

.settings-container.page-settings .page-header {
  margin-bottom: 0;
}

.settings-container.page-settings .card,
.settings-container.page-settings .invite-box {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .settings-container.page-settings {
    width: min(100%, calc(100vw - 20px)) !important;
    max-width: min(100%, calc(100vw - 20px)) !important;
    padding: 18px 14px calc(110px + env(safe-area-inset-bottom)) 14px !important;
  }
}
