html {
    scroll-behavior: smooth;
}

/* ===== ListingOK Brand Tokens ===== */
:root {
    --lok-red: #C1272D;
    --lok-red-hover: #A01F24;
    --lok-red-light: #E8333A;
    --lok-dark: #222222;
    --lok-gray: #6c757d;
    --lok-light: #F8F9FA;
    --lok-hero-bg: #1A1A1A;
    --lok-teal: #2A9D8F;
    --lok-teal-light: #E8F5F3;
    --lok-orange: #C2410C;
    --lok-orange-light: #FFF8F0;
    --lok-warning-bg: #FFF8E1;
    --lok-warning-border: #FFE082;
    --lok-warning-icon: #B45309;

    /* Card accent colors */
    --lok-card-guest: #7eb8f7;
    --lok-card-host: #82d4b8;
    --lok-card-pricing: #f5a76c;
    --lok-card-visibility: #e87b7b;
    --lok-card-occupancy: #c97be8;
    --lok-card-price-align: #e8c98a;
    --lok-card-insight: #5cb8a7;
    --lok-card-images: #7B8EC8;
    --lok-card-sentiment: #82d4b8;
    --lok-card-quality: #5cb8a7;

    /* === Semantic status — ON-WHITE INK (AA: 4.5:1 small / 3:1 large bold) === */
    --lok-status-excellent: #15803D;
    --lok-status-good:      #047857;
    --lok-status-average:   #B45309;
    --lok-status-warning:   #92400E;
    --lok-status-danger:    #BE123C;
    --lok-status-info:      #0F766E;

    /* === Vivid fills — scale-bar segments, calendar dots, sparklines === */
    --lok-fill-excellent: #15803D;
    --lok-fill-good:      #34D399;
    --lok-fill-average:   #FACC15;
    --lok-fill-warning:   #F59E0B;
    --lok-fill-danger:    #EF4444;
    --lok-fill-info:      #2A9D8F;

    /* === Soft pill backgrounds — ink-bearing pills with AA-safe text === */
    --lok-bg-excellent: #DCFCE7;
    --lok-bg-good:      #D1FAE5;
    --lok-bg-average:   #FEF3C7;
    --lok-bg-warning:   #FEF3C7;
    --lok-bg-danger:    #FEE2E2;
    --lok-bg-info:      #CCFBF1;

    /* Star/rating color */
    --lok-star: #B45309;

    /* Chart colors */
    --lok-chart-primary: #8B2A2F;
    --lok-chart-secondary: #D3D3D3;

    /* Borders */
    --lok-border: #dee2e6;
    --lok-border-light: #e9ecef;

    /* Text */
    --lok-text-dark: #333;
    --lok-text-muted: #666;
    --lok-text-light: #888;

    /* Border radius */
    --lok-radius-sm: 0.5rem;
    --lok-radius-md: 0.75rem;
    --lok-radius-lg: 1rem;
}

/* ===== Global ===== */
body {
    color: var(--lok-dark);
}

h1:focus {
    outline: none;
}

/* ===== Buttons ===== */
.btn-lok {
    background-color: var(--lok-red);
    border-color: var(--lok-red);
    color: #fff;
}

.btn-lok:hover, .btn-lok:focus {
    background-color: var(--lok-red-hover);
    border-color: var(--lok-red-hover);
    color: #fff;
}

.btn-lok:disabled {
    background-color: var(--lok-red);
    border-color: var(--lok-red);
    opacity: 0.65;
    color: #fff;
}

.btn-outline-lok {
    border-color: var(--lok-red);
    color: var(--lok-red);
}

.btn-outline-lok:hover, .btn-outline-lok:focus {
    background-color: var(--lok-red);
    border-color: var(--lok-red);
    color: #fff;
}

/* ===== Hero Section ===== */
.lok-hero {
    background-color: var(--lok-hero-bg);
    color: #fff;
}

.lok-hero .form-control {
    border: 2px solid rgba(255,255,255,0.2);
    background-color: rgba(255,255,255,0.08);
    color: #fff;
}

.lok-hero .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

.lok-hero .form-control:focus {
    border-color: var(--lok-red);
    background-color: rgba(255,255,255,0.12);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(193, 39, 45, 0.25);
}

/* ===== Section alternating bg ===== */
.lok-section-alt {
    background-color: var(--lok-light);
}

/* ===== Step badges ===== */
.lok-step-badge {
    width: 40px;
    height: 40px;
    line-height: 24px;
    background-color: var(--lok-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== Accent text ===== */
.text-lok {
    color: var(--lok-red);
}

/* ===== Login Page ===== */
.lok-login-bg {
    background-color: #f0f2f5;
}

.lok-login-card {
    background: #fff;
    border-radius: var(--lok-radius-lg);
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 420px;
}

.lok-login-card .input-group-text {
    border-right: 0;
}

.lok-login-card .input-group .form-control {
    border-left: 0;
}

.lok-login-card .input-group .form-control:focus {
    border-color: var(--lok-border);
    box-shadow: 0 0 0 0.2rem rgba(193, 39, 45, 0.15);
}

.lok-login-card .input-group:focus-within .input-group-text {
    border-color: var(--lok-border);
    box-shadow: 0 0 0 0.2rem rgba(193, 39, 45, 0.15);
}

.lok-login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--lok-gray);
    font-size: 0.85rem;
}

.lok-login-divider::before,
.lok-login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--lok-border);
}

.lok-login-divider span {
    padding: 0 1rem;
}

/* ===== Checkout Sign-In Page ===== */
.lok-checkout-signin-bg {
    background-color: #f0f2f5;
}

.lok-checkout-signin-card {
    background: #fff;
    border-radius: var(--lok-radius-lg);
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 440px;
}

.lok-checkout-signin-card .input-group-text {
    border-right: 0;
}

.lok-checkout-signin-card .input-group .form-control {
    border-left: 0;
}

.lok-checkout-signin-card .input-group .form-control:focus,
.lok-checkout-signin-card .input-group:focus-within .input-group-text {
    border-color: var(--lok-border);
    box-shadow: 0 0 0 0.2rem rgba(193, 39, 45, 0.15);
}

.lok-checkout-signin-listing {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #fafafa;
    border: 1px solid var(--lok-border);
    border-radius: var(--lok-radius-md);
}

.lok-checkout-signin-listing-img {
    width: 56px;
    height: 56px;
    border-radius: var(--lok-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.lok-checkout-signin-listing-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: var(--lok-gray);
}

.lok-checkout-signin-listing-img-placeholder .material-symbols-outlined {
    font-size: 28px;
}

.lok-checkout-signin-listing-body {
    min-width: 0;
    flex: 1;
}

.lok-checkout-signin-listing-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
    color: var(--lok-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.lok-checkout-signin-listing-meta {
    font-size: 0.75rem;
    color: var(--lok-gray);
    margin: 0.15rem 0 0;
}

.lok-checkout-signin-google {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    font-size: 1rem;
}

.lok-checkout-signin-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: var(--lok-gray);
    font-size: 0.8rem;
    text-align: center;
}

.lok-checkout-signin-trust .material-symbols-outlined {
    font-size: 16px;
}

.lok-checkout-signin-email-toggle {
    display: block;
    margin: 1.25rem auto 0;
    background: none;
    border: 0;
    padding: 0.25rem 0.5rem;
    color: var(--lok-gray);
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
}

.lok-checkout-signin-email-toggle:hover {
    color: var(--lok-dark);
}

/* ===== Analysis Started Page ===== */
.lok-started-bg {
    background: linear-gradient(180deg, #1A1A1A 0%, #2D1215 100%);
    color: #fff;
}

.lok-started-card {
    background-color: var(--lok-red);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.lok-started-check {
    width: 56px;
    height: 56px;
    background-color: #28a745;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lok-started-url {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    word-break: break-all;
}

.lok-started-badge {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

.lok-started-input {
    background: #fff;
    border: 2px solid #fff;
    color: var(--lok-text-dark);
}

.lok-started-input::placeholder {
    color: #999;
}

.lok-started-input:focus {
    background: #fff;
    border-color: #fff;
    color: var(--lok-text-dark);
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.3);
}

.lok-started-btn {
    background-color: #fff;
    color: var(--lok-red);
    border: 1px solid #fff;
}

.lok-started-btn:hover, .lok-started-btn:focus {
    background-color: #f0f0f0;
    color: var(--lok-red-hover);
    border-color: #f0f0f0;
}

.lok-started-btn:disabled {
    background-color: #fff;
    color: var(--lok-red);
    opacity: 0.65;
    border-color: #fff;
}

@media (max-width: 575.98px) {
    .lok-started-card {
        padding: 1.5rem !important;
        border-radius: var(--lok-radius-lg);
    }

    .lok-listing-card-img,
    .lok-listing-card-img-placeholder {
        height: 140px;
    }

    .lok-hero .display-5 {
        font-size: 1.75rem;
    }

    .lok-dashboard-header .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* ===== Dashboard ===== */
.lok-dashboard-bg {
    background-color: #f0f2f5;
}

.lok-dashboard-header {
    background: #fff;
    border-bottom: 1px solid var(--lok-border-light);
}

.lok-url-input-bar .form-control {
    border-radius: 8px 0 0 8px;
    padding: 0.6rem 1rem;
}

.lok-url-input-bar .form-control:focus {
    border-color: var(--lok-red);
    box-shadow: 0 0 0 0.2rem rgba(193, 39, 45, 0.15);
}

.lok-url-input-bar .btn {
    border-radius: 0 8px 8px 0;
}

.lok-listing-card {
    background: #fff;
    border: 1px solid var(--lok-border-light);
    border-radius: 10px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.lok-listing-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--lok-red);
}

.lok-listing-card-img {
    height: 160px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    width: 100%;
}

.lok-listing-card-img-placeholder {
    height: 160px;
    background: var(--lok-border-light);
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lok-empty-state {
    background: #fff;
    border-radius: var(--lok-radius-md);
    border: 1px solid var(--lok-border-light);
    padding: 3rem 1.5rem;
}

.lok-credit-badge {
    display: inline-block;
    background: #f0f2f5;
    border: 1px solid var(--lok-border);
    border-radius: 20px;
    padding: 0.2rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

/* ===== Pricing Page ===== */
.lok-pricing-card {
    background: #fff;
    border: 1px solid var(--lok-border-light);
    border-radius: var(--lok-radius-md);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.lok-pricing-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.lok-pricing-card-popular {
    border-color: var(--lok-red);
    box-shadow: 0 2px 12px rgba(193, 39, 45, 0.12);
}

.lok-subscription-popular-badge,
.lok-subscriber-quote-label {
    background: var(--lok-red);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
}
.lok-subscription-popular-badge {
    position: absolute;
    top: -0.8rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.3rem 0.85rem;
    white-space: nowrap;
}

.lok-pricing-feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    font-size: 0.95rem;
}

.lok-pricing-feature svg {
    flex-shrink: 0;
}

.lok-guarantee-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--lok-teal-light);
    border: 1px solid var(--lok-teal);
    border-radius: var(--lok-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--lok-dark);
}

.lok-refund-guarantee {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--lok-dark);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}
.lok-refund-guarantee-icon {
    color: var(--lok-red);
    flex-shrink: 0;
}

/* Credit-vs-subscription math anchor — quiet but visible callout under credit packs */
.lok-credit-anchor {
    margin: 1rem 0 0;
    padding: 0.65rem 0.85rem;
    background: var(--lok-teal-light);
    border-left: 3px solid var(--lok-teal);
    border-radius: var(--lok-radius-sm);
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--lok-dark);
}

.lok-free-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    background: var(--lok-teal-light);
    color: var(--lok-teal);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===== TopBar ===== */
.lok-topbar {
    background-color: #FAFAFA;
    border-bottom: 1px solid var(--lok-border);
}

.lok-topbar .nav-link {
    color: var(--lok-text-muted);
    font-size: 0.9rem;
    transition: color 0.15s;
}

.lok-topbar .nav-link:hover,
.lok-topbar .nav-link:focus {
    color: var(--lok-dark);
}

/* ===== Calendar cells ===== */
.lok-cal-cell {
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04), inset 0 0 0 1px rgba(0,0,0,0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
@media (min-width: 768px) {
    .lok-cal-cell { border-radius: 8px; }
}
.lok-cal-clickable { cursor: pointer; }

/* Hover lift — desktop with hover-capable input only */
@media (hover: hover) and (min-width: 768px) {
    .lok-cal-clickable:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(0,0,0,0.14), inset 0 0 0 1px rgba(0,0,0,0.04);
        z-index: 5;
    }
}

/* Today marker — outline ring */
.lok-cal-today {
    box-shadow: inset 0 0 0 2px var(--lok-teal), inset 0 1px 2px rgba(0,0,0,0.04);
}
@media (hover: hover) and (min-width: 768px) {
    .lok-cal-today.lok-cal-clickable:hover {
        box-shadow: 0 6px 16px rgba(0,0,0,0.14), inset 0 0 0 2px var(--lok-teal);
    }
}

/* Underpriced ring — drawn on a pseudo-element so it sits above the
   occupancy fill (which would otherwise cover an inset box-shadow).
   The orange glow on the cell itself extends outside its box; the cell
   has overflow:hidden but box-shadow on the cell paints in the parent
   grid (which doesn't clip), so the halo is preserved. */
.lok-cal-underpriced {
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04), 0 0 14px rgba(249, 115, 22, 0.45);
}
.lok-cal-underpriced::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-top: 3px solid #F97316;
    border-right: 3px solid #F97316;
    border-bottom: 3px solid #F97316;
    border-left: 3px solid #F97316;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
    pointer-events: none;
    z-index: 4;
}
.lok-up-no-l::after { border-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.lok-up-no-r::after { border-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.lok-up-no-t::after { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.lok-up-no-b::after { border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
@media (hover: hover) and (min-width: 768px) {
    .lok-cal-underpriced.lok-cal-clickable:hover {
        box-shadow: 0 6px 18px rgba(0,0,0,0.14), 0 0 18px rgba(249, 115, 22, 0.6);
    }
}

/* Weekend tint — subtle background shift */
.lok-cal-weekend::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.025);
    pointer-events: none;
    z-index: 0;
}

.lok-cell-rank { font-size: 1rem; }
.lok-cell-not-found { font-size: 0.95rem; color: var(--lok-status-danger); }
.lok-cell-gap { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.lok-cell-gap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(0,0,0,0.08) 3px, rgba(0,0,0,0.08) 6px);
    border-radius: inherit;
}
@media (min-width: 768px) {
    .lok-cell-rank { font-size: 1.2rem; }
    .lok-cell-not-found { font-size: 1.1rem; }
}

/* Corner labels — desktop only. Use absolute positioning + tiny translucent bg */
.lok-cell-day,
.lok-cell-price,
.lok-cell-occ { display: none; }
@media (min-width: 768px) {
    .lok-cell-day,
    .lok-cell-price,
    .lok-cell-occ {
        display: inline-flex;
        align-items: center;
        position: absolute;
        z-index: 3;
        padding: 1px 4px;
        border-radius: 4px;
        background: rgba(255,255,255,0.7);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        line-height: 1;
        pointer-events: none;
        font-variant-numeric: tabular-nums;
    }
    .lok-cell-day { top: 3px; left: 3px; font-size: 0.8rem; color: #666; font-weight: 500; padding: 1px 5px; }
    .lok-cell-day-est { color: #b08000; margin-left: 2px; font-weight: 700; }
    .lok-cell-day-outside { color: #ccc; background: transparent; }
    .lok-cell-price { top: 3px; right: 3px; font-size: 0.9rem; color: #222; font-weight: 600; }
    .lok-cell-occ { bottom: 3px; right: 3px; font-size: 0.78rem; color: #444; font-weight: 500; }
}

.lok-cell-center {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}
.lok-cell-min-price {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--lok-orange);
}
.lok-legend-min-sample {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: var(--lok-orange-light);
    color: var(--lok-orange);
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1;
}
.lok-cell-min-stay {
    font-size: 0.55rem;
    color: #666;
    margin-top: 1px;
}
@media (min-width: 768px) {
    .lok-cell-min-price { font-size: 0.95rem; }
    .lok-cell-min-stay { font-size: 0.7rem; margin-top: 2px; }
}

/* Page rank chip */
.lok-rank-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.18);
    white-space: nowrap;
    letter-spacing: 0.01em;
}
@media (min-width: 768px) {
    .lok-rank-chip {
        padding: 0.32rem 0.85rem;
        font-size: 1rem;
    }
}
.lok-rank-p1 { background: #166534; }
.lok-rank-p2 { background: #22c55e; }
.lok-rank-mid { background: var(--lok-fill-warning); color: #4a3500; }
.lok-rank-bad { background: var(--lok-fill-danger); }
.lok-rank-hidden { background: #991b1b; gap: 0.25rem; }
.lok-rank-hidden-icon { font-size: 0.95rem; line-height: 1; }
@media (min-width: 768px) {
    .lok-rank-hidden-icon { font-size: 1.1rem; }
}

/* Month header — centered title with side rules */
.lok-month-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.25rem 0 0.5rem;
    color: var(--lok-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.lok-month-title::before,
.lok-month-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--lok-border);
}
@media (min-width: 768px) {
    .lok-month-title {
        font-size: 1rem;
        margin: 0.5rem 0 0.75rem;
        gap: 1rem;
    }
}

/* Legend as chips */
.lok-legend-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}
.lok-legend-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    background: #f8f9fa;
    border: 1px solid var(--lok-border-light);
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--lok-text-muted);
    line-height: 1;
}
@media (min-width: 768px) {
    .lok-legend-chip { font-size: 0.82rem; }
}
.lok-legend-chip .material-symbols-outlined { font-size: 14px; color: #999; }

/* Cell click interaction */
.lok-cell-clickable { cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.lok-cell-clickable:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }

/* Day detail panel — desktop: right slide, 400px wide */
.lok-day-panel { --bs-offcanvas-width: 400px; }
.lok-day-panel-header { border-bottom: 1px solid var(--lok-border); padding: 1rem 1.25rem; }

/* Mobile: bottom sheet override */
@media (max-width: 767.98px) {
    .lok-day-panel.offcanvas-end {
        top: auto; right: 0; left: 0; bottom: 0;
        width: 100%; max-height: 80vh;
        border-left: none; border-top: 1px solid var(--lok-border);
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
    }
    .lok-day-panel.offcanvas-end.show,
    .lok-day-panel.offcanvas-end.showing {
        transform: translateY(0);
    }
}

.lok-topbar-signout {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

@media (max-width: 767.98px) {
    .lok-topbar .navbar-collapse {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

/* ===== Home Page — Hero Gradient ===== */
.lok-hero-gradient {
    background: linear-gradient(135deg, rgba(193,39,45,0.06) 0%, #fff 40%, rgba(193,39,45,0.03) 100%);
}

/* Hero trust strip — three inline reassurances under the subhead */
.lok-hero-trust-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--lok-text-muted);
}
.lok-hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    color: var(--lok-dark);
}
.lok-hero-trust-star {
    color: var(--lok-teal);
    font-size: 0.95rem;
    line-height: 1;
}
.lok-hero-trust-sep {
    color: var(--lok-border);
}

/* Final CTA — split paths (first-time vs. returning intent) */
.lok-final-cta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.lok-final-cta-path {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--lok-border);
    border-radius: var(--lok-radius-md);
    padding: 1.25rem 1.1rem;
    box-shadow: 0 4px 14px -10px rgba(0, 0, 0, 0.18);
}
.lok-final-cta-path-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--lok-text-muted);
    margin-bottom: 0.35rem;
}
.lok-final-cta-path-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--lok-dark);
    margin: 0 0 0.5rem;
}
.lok-final-cta-path-sub {
    font-size: 0.95rem;
    color: var(--lok-text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}
.lok-final-cta-path .lok-free-badge {
    align-self: flex-start;
    margin-top: 0.65rem;
}
.lok-final-cta-watch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: auto;
}
.lok-final-cta-path-hint {
    display: block;
    text-align: center;
    font-size: 0.78rem;
    color: var(--lok-text-muted);
    margin-top: 0.55rem;
}
@media (min-width: 768px) {
    .lok-final-cta-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
    .lok-final-cta-path {
        padding: 1.5rem 1.35rem;
    }
}

/* ===== Home Page — Pill Input ===== */
.lok-pill-input {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid var(--lok-border-light);
    border-radius: 100px;
    padding: 0.35rem 0.35rem 0.35rem 1.25rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lok-pill-input:focus-within {
    border-color: var(--lok-red);
    box-shadow: 0 0 0 0.2rem rgba(193, 39, 45, 0.15);
}

.lok-pill-input input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.95rem;
    background: transparent;
    min-width: 0;
}

.lok-pill-input input::placeholder {
    color: #adb5bd;
}

.lok-pill-input .lok-pill-btn {
    background: var(--lok-red);
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 0.55rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.lok-pill-input .lok-pill-btn:hover {
    background: var(--lok-red-hover);
}

.lok-pill-input .lok-pill-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ===== Home Page — Icon Boxes ===== */
.lok-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--lok-radius-md);
    background: linear-gradient(135deg, var(--lok-red), var(--lok-red-light));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.lok-icon-box-light {
    width: 48px;
    height: 48px;
    border-radius: var(--lok-radius-md);
    background: rgba(193, 39, 45, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--lok-red);
    flex-shrink: 0;
}

/* ===== Home Page — Stat Cards ===== */
.lok-stat-card {
    background: #fff;
    border: 1px solid var(--lok-border-light);
    border-radius: var(--lok-radius-lg);
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.lok-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* ===== Home Page — Feature Cards ===== */
.lok-feature-card {
    background: #fff;
    border: 1px solid var(--lok-border-light);
    border-radius: var(--lok-radius-lg);
    padding: 1.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lok-feature-card:hover {
    border-color: #ced4da;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.lok-subscriber-quote {
    border-color: var(--lok-red);
    box-shadow: 0 4px 20px rgba(193, 39, 45, 0.10);
}
.lok-subscriber-quote-label {
    display: inline-block;
    align-self: flex-start;
    padding: 0.3rem 0.7rem;
    margin-bottom: 1rem;
}
.lok-subscriber-quote-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--lok-dark);
    font-style: italic;
    margin: 0 0 1.25rem;
}
.lok-subscriber-quote-meta {
    color: var(--lok-teal);
    font-weight: 600;
}

/* ===== Home Page — "What's included" sub-rows ===== */
.lok-includes-subhead {
    text-align: center;
    margin: 2rem auto 1.5rem;
    max-width: 640px;
}

.lok-includes-subhead h3 {
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0.5rem 0 0;
}

.lok-includes-subhead p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0.5rem 0 0;
}

.lok-includes-subhead-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #fff;
    border: 1px solid var(--lok-border-light);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
}

.lok-includes-subhead-tag--accent {
    background: var(--lok-red);
    border-color: var(--lok-red);
    color: #fff;
}

.lok-monitoring-band {
    margin-top: 2.5rem;
    padding: 1.5rem 1rem 2rem;
    background: linear-gradient(180deg, rgba(193,39,45,0.06) 0%, rgba(193,39,45,0.03) 100%);
    border: 1px solid rgba(193,39,45,0.18);
    border-radius: var(--lok-radius-lg);
}

.lok-alert-mini-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 1060px;
    margin: 0 auto;
}

.lok-alert-mini {
    background: #fff;
    border: 1px solid var(--lok-border-light);
    border-radius: var(--lok-radius-md);
    padding: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lok-alert-mini:hover {
    border-color: rgba(193,39,45,0.4);
    box-shadow: 0 2px 12px rgba(193,39,45,0.08);
}

.lok-alert-mini-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--lok-radius-sm);
    background: rgba(193,39,45,0.08);
    color: var(--lok-red);
    font-size: 22px;
    margin-bottom: 0.6rem;
}

.lok-alert-mini-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--lok-dark);
}

.lok-alert-mini-why {
    color: #6c757d;
    font-size: 0.825rem;
    line-height: 1.45;
}

.lok-monitoring-quote {
    margin: 1.5rem auto 0;
    max-width: 720px;
    background: #fff;
    border: 1px solid var(--lok-red);
    box-shadow: 0 4px 20px rgba(193, 39, 45, 0.10);
    border-radius: var(--lok-radius-lg);
    padding: 1.5rem;
}

@media (min-width: 576px) {
    .lok-alert-mini-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .lok-includes-subhead {
        margin: 2.5rem auto 2rem;
    }
    .lok-includes-subhead h3 {
        font-size: 1.5rem;
    }
    .lok-monitoring-band {
        margin-top: 3rem;
        padding: 2rem 2rem 2.5rem;
    }
    .lok-alert-mini-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    .lok-alert-mini {
        padding: 1.25rem;
    }
}

@media (min-width: 992px) {
    .lok-alert-mini-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== Home Page — Accordion Cards (Mobile) ===== */
.lok-accordion-card {
    border: 1px solid var(--lok-border-light);
    border-radius: var(--lok-radius-md);
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s;
}

.lok-accordion-card.active {
    border-color: var(--lok-red);
}

.lok-accordion-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font: inherit;
}

.lok-accordion-body {
    padding: 0 1rem 1rem 1rem;
    display: none;
}

.lok-accordion-card.active .lok-accordion-body {
    display: block;
}

.lok-accordion-chevron {
    margin-left: auto;
    transition: transform 0.2s;
    color: #adb5bd;
}

.lok-accordion-card.active .lok-accordion-chevron {
    transform: rotate(180deg);
    color: var(--lok-red);
}

/* ===== Home Page — Badge Pill ===== */
.lok-badge-pill {
    display: inline-block;
    background: rgba(193, 39, 45, 0.08);
    color: var(--lok-red);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 1rem;
    border-radius: 100px;
}

/* ===== Home Page — Testimonial Card ===== */
.lok-testimonial-card {
    background: #fff;
    border: 1px solid var(--lok-border-light);
    border-radius: var(--lok-radius-lg);
    padding: 2rem;
}

/* ===== Home Page — Resource Cards ===== */
.lok-resource-card {
    background: #fff;
    border: 1px solid var(--lok-border-light);
    border-radius: var(--lok-radius-lg);
    padding: 1.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.lok-resource-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    color: inherit;
}

/* ===== Home Page — Sample Badge ===== */
.lok-sample-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--lok-red);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
}

/* ===== Home Page — Trust Badges ===== */
.lok-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.lok-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #6c757d;
    font-size: 0.85rem;
}

/* ===== Home Page — Section Headings ===== */
.lok-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.lok-section-header h2 {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.lok-section-header p {
    color: #6c757d;
    max-width: 560px;
    margin: 0 auto;
}

/* ===== Home Page — Responsive ===== */
/* Stats grid: 2-col on mobile, auto-fit centered on md+ (handles 2/3/4 cards) */
.lok-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .lok-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 280px));
        justify-content: center;
        gap: 1.5rem;
    }
}

/* Hero image */
.lok-hero-image {
    border-radius: var(--lok-radius-lg);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ===== Hero analyzer mockup ===== */
.lok-hero-mock {
    position: relative;
    background: #fff;
    border: 1px solid var(--lok-border-light);
    border-radius: var(--lok-radius-lg);
    box-shadow: 0 16px 48px rgba(0,0,0,0.10);
    overflow: hidden;
}

.lok-hero-mock-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.lok-hero-mock-chrome .lok-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.lok-hero-mock-title {
    margin-left: auto;
    font-size: 0.75rem;
    color: #6c757d;
}

.lok-hero-mock-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.lok-hero-mock-card {
    border: 1px solid var(--lok-border-light);
    border-radius: var(--lok-radius-md);
    padding: 12px 14px;
    background: #fff;
}

.lok-hero-mock-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.lok-hero-mock-card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    margin-bottom: 4px;
}

.lok-hero-mock-card-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--lok-dark);
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lok-hero-mock-card-meta {
    font-size: 0.7rem;
    color: #adb5bd;
    white-space: nowrap;
}

.lok-hero-mock-delta {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 999px;
}

.lok-hero-mock-delta-down {
    color: var(--lok-red);
    background: rgba(193, 39, 45, 0.08);
}

.lok-hero-mock-rating-from {
    color: var(--lok-dark);
}

.lok-hero-mock-arrow {
    color: #adb5bd;
    font-weight: 400;
}

.lok-hero-mock-rating-to {
    color: var(--lok-red);
}

.lok-hero-mock-flag {
    color: var(--lok-red);
    font-size: 1rem;
    margin-left: 2px;
}

.lok-hero-mock-spark {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 280 / 70;
}

.lok-hero-mock-spark-sm {
    aspect-ratio: 280 / 50;
}

.lok-hero-mock-alerts {
    border: 1px solid var(--lok-border-light);
    border-radius: var(--lok-radius-md);
    padding: 12px 14px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lok-hero-mock-alerts-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    margin-bottom: 2px;
}

.lok-hero-mock-alerts-count {
    background: var(--lok-red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    letter-spacing: 0;
}

.lok-hero-mock-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    border-left: 3px solid transparent;
    background: #fafbfc;
}

.lok-hero-mock-alert-red {
    border-left-color: var(--lok-red);
    background: rgba(193, 39, 45, 0.05);
}

.lok-hero-mock-alert-amber {
    border-left-color: #E0A800;
    background: rgba(224, 168, 0, 0.06);
}

.lok-hero-mock-alert-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.lok-hero-mock-alert-red .lok-hero-mock-alert-dot {
    background: var(--lok-red);
}

.lok-hero-mock-alert-amber .lok-hero-mock-alert-dot {
    background: #E0A800;
}

.lok-hero-mock-alert-body {
    min-width: 0;
    flex: 1;
}

.lok-hero-mock-alert-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lok-dark);
    line-height: 1.25;
}

.lok-hero-mock-alert-meta {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 2px;
}

@media (min-width: 768px) {
    .lok-hero-mock-body {
        padding: 18px;
        gap: 14px;
    }
    .lok-hero-mock-card-value {
        font-size: 1.55rem;
    }
}

/* Check list items */
.lok-check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.lok-check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(193, 39, 45, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--lok-red);
    margin-top: 2px;
}

/* Star icons (overview cards) */
.lok-star-icon { font-size: 18px; color: var(--lok-star); }
.lok-star-icon--muted { font-size: 18px; color: #ccc; }

/* Star ratings */
.lok-stars {
    color: #fbbf24;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* Section padding */
.lok-section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .lok-section {
        padding: 5rem 0;
    }
}

/* Highlight box */
.lok-highlight-box {
    background: linear-gradient(135deg, rgba(193,39,45,0.06) 0%, rgba(193,39,45,0.02) 100%);
    border-radius: var(--lok-radius-md);
    padding: 1.5rem;
    border-left: 3px solid var(--lok-red);
}

/* ===== Footer ===== */
.lok-footer {
    background-color: var(--lok-hero-bg);
    color: #fff;
}

.lok-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.lok-footer a:hover {
    color: #fff;
}

.lok-footer ul {
    padding: 0;
}

.lok-footer ul li {
    margin-bottom: 0.5rem;
}

.lok-footer-heading {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.lok-footer-badge {
    display: inline-block;
    background: var(--lok-red);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 100px;
    vertical-align: middle;
    margin-left: 0.25rem;
}

.lok-footer-social {
    display: flex;
    gap: 0.75rem;
}

.lok-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: background 0.15s, color 0.15s;
}

.lok-footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.lok-footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.lok-footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.lok-footer-legal a:hover {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 767.98px) {
    .lok-footer-legal {
        justify-content: center;
        text-align: center;
    }
}

/* ===== Blazor error UI ===== */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* ===== Report Header ===== */
.lok-report-header {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--lok-border);
    border-radius: var(--lok-radius-md);
    overflow: hidden;
    margin-bottom: 1rem;
}

.lok-report-hero {
    position: relative;
    width: 100%;
    height: 240px;
}

.lok-report-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lok-report-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 1.5rem 1.1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 45%, transparent 100%);
    color: #fff;
}

.lok-report-hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0;
    color: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.lok-report-hero-title--plain {
    color: var(--lok-dark);
    text-shadow: none;
    padding: 1.25rem 1.5rem 0;
}

.lok-report-header-info {
    padding: 1rem 1.5rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.lok-report-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    color: var(--lok-gray);
    font-size: 0.875rem;
}

@media (max-width: 575.98px) {
    .lok-report-hero {
        height: 200px;
    }

    .lok-report-hero-overlay {
        padding: 2.5rem 1rem 0.9rem;
    }

    .lok-report-hero-title {
        font-size: 1.6rem;
    }

    .lok-report-hero-title--plain {
        padding: 1rem 1rem 0;
    }

    .lok-report-header-info {
        padding: 0.75rem 1rem 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (min-width: 768px) {
    .lok-report-hero {
        height: 280px;
    }

    .lok-report-hero-title {
        font-size: 2.25rem;
    }
}

/* ===== Listing Health Scorecard ===== */
.lok-health-scorecard {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid var(--lok-border);
    border-radius: var(--lok-radius-md);
    padding: 1.25rem;
    overflow: hidden;
}
.lok-health-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
}
.lok-health-headline {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
}
.lok-health-headline-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--lok-dark);
}
.lok-health-descriptor {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: var(--lok-bg-info);
}
.lok-health-descriptor.lok-analysis-score-ring--excellent { background: var(--lok-bg-excellent); }
.lok-health-descriptor.lok-analysis-score-ring--good      { background: var(--lok-bg-good); }
.lok-health-descriptor.lok-analysis-score-ring--average   { background: var(--lok-bg-average); }
.lok-health-descriptor.lok-analysis-score-ring--warning   { background: var(--lok-bg-warning); }
.lok-health-descriptor.lok-analysis-score-ring--danger    { background: var(--lok-bg-danger); }
.lok-health-limited {
    font-size: 0.7rem;
    color: var(--lok-text-light);
    font-weight: 500;
}
.lok-health-scorecard .lok-findings-list {
    border-top: 1px solid var(--lok-border-light);
    padding-top: 0.4rem;
}
@media (min-width: 768px) {
    .lok-health-scorecard {
        padding: 1.5rem 2rem;
    }
    .lok-health-header {
        gap: 1.5rem;
        padding-bottom: 1.25rem;
    }
    .lok-health-headline-title {
        font-size: 1.2rem;
    }
}

/* ===== Report Tab Navigation ===== */
.lok-findings-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.lok-findings-list li + li {
    border-top: 1px solid var(--lok-border-light);
}

.lok-finding-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    width: 100%;
    padding: 0.6rem 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
    border-radius: var(--lok-radius-sm);
}

.lok-finding-row:hover {
    background: var(--lok-bg);
}

.lok-finding-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.lok-finding-number--critical { background: var(--lok-status-danger); }
.lok-finding-number--warning { background: var(--lok-status-warning); }
.lok-finding-number--nudge { background: var(--lok-status-info); }

.lok-finding-text {
    flex: 1;
    min-width: 0;
    font-size: 0.88rem;
    color: var(--lok-dark);
    line-height: 1.45;
}

.lok-finding-arrow {
    flex-shrink: 0;
    font-size: 20px;
    color: var(--lok-gray);
    margin-top: 1px;
    transition: color 0.15s;
}

.lok-finding-row:hover .lok-finding-arrow {
    color: var(--lok-dark);
}

.lok-finding-impact {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
    margin-left: 0.4rem;
    vertical-align: middle;
}

.lok-finding-impact--critical { background: #fef2f2; color: #991b1b; }
.lok-finding-impact--warning { background: #fffbeb; color: #92400e; }
.lok-finding-impact--nudge { background: var(--lok-teal-light); color: var(--lok-status-info); }

.lok-findings-alerts-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.55rem 0.7rem;
    border-top: 1px solid var(--lok-border-light);
    color: var(--lok-text-muted);
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}
.lok-findings-alerts-link:hover {
    color: var(--lok-red);
    background: var(--lok-bg);
}
.lok-findings-alerts-link-arrow {
    font-size: 18px;
    flex-shrink: 0;
    transition: transform 0.15s;
}
.lok-findings-alerts-link:hover .lok-findings-alerts-link-arrow {
    transform: translateX(2px);
}

.lok-action-row[disabled] { cursor: default; }
.lok-action-row[disabled]:hover { background: transparent; }
.lok-action-row-headline-line {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    min-width: 0;
}
.lok-action-row .lok-action-row-headline {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
.lok-action-row .lok-action-row-headline-line .lok-finding-impact {
    flex-shrink: 0;
    margin-left: 0;
}
.lok-action-row--expanded .lok-action-row-headline,
.lok-action-row[disabled] .lok-action-row-headline {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}
.lok-action-row-detail {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--lok-text-muted);
    line-height: 1.5;
}

.lok-sticky-tabbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 4px 8px -4px rgba(0, 0, 0, 0.08);
}

body:has(.lok-sticky-banner) .lok-sticky-tabbar {
    top: 38px;
}

.lok-sticky-tabbar-title {
    display: block;
    padding: 0.5rem 0.75rem 0.45rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--lok-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid var(--lok-border-light);
}

@media (max-width: 575.98px) {
    .lok-sticky-tabbar-title {
        padding: 0.4rem 0.6rem 0.35rem;
        font-size: 0.85rem;
    }
}

.lok-report-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: var(--lok-radius-sm);
    background: var(--lok-border-light);
}

@media (max-width: 575.98px) {
    .lok-report-tabs {
        grid-template-columns: 1fr 1fr;
    }
}

.lok-overview-card-anchor {
    scroll-margin-top: 70px;
}

body:has(.lok-sticky-banner) .lok-overview-card-anchor {
    scroll-margin-top: 108px;
}

@media (max-width: 575.98px) {
    .lok-overview-card-anchor {
        scroll-margin-top: 100px;
    }
    body:has(.lok-sticky-banner) .lok-overview-card-anchor {
        scroll-margin-top: 138px;
    }
}

/* In-tab TOC for Performance overview */
.lok-overview-toc {
    background: #fff;
    border: 1px solid var(--lok-border);
    border-radius: var(--lok-radius-md);
    padding: 0.35rem;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.15rem;
}

.lok-overview-toc-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    border: none;
    background: transparent;
    border-radius: calc(var(--lok-radius-md) - 0.4rem);
    cursor: pointer;
    text-align: left;
    color: var(--lok-dark);
    font-size: 0.85rem;
    transition: background-color 0.15s;
    min-width: 0;
}

.lok-overview-toc-item:hover {
    background: var(--lok-border-light);
}

.lok-overview-toc-icon {
    flex-shrink: 0;
    font-size: 18px !important;
}

.lok-overview-toc-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.lok-overview-toc-badge {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .lok-overview-toc {
        grid-template-columns: 1fr;
    }
    .lok-overview-toc-item {
        font-size: 0.82rem;
        padding: 0.45rem 0.5rem;
    }
    .lok-overview-toc-badge {
        font-size: 0.65rem;
        padding: 0.1rem 0.4rem;
    }
}

.lok-report-tab {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    min-width: 0;
    min-height: 44px;
    padding: 0.5rem 0.6rem;
    border: none;
    background: transparent;
    color: var(--lok-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: calc(var(--lok-radius-sm) - 0.15rem);
    cursor: pointer;
    text-align: left;
    transition: background-color 0.15s, color 0.15s;
}
.lok-report-tab-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lok-report-tab:not(.active):hover {
    background: var(--lok-border-light);
    color: var(--lok-dark);
}
a.lok-report-tab {
    text-decoration: none;
}

.lok-report-tab.active {
    background: var(--lok-teal-light);
    color: var(--lok-teal);
    font-weight: 600;
}

.lok-topbar-currency-dropdown {
    background: transparent;
    border: 1px solid var(--lok-border);
    color: var(--lok-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 10px;
}

.lok-topbar-currency-dropdown:hover,
.lok-topbar-currency-dropdown:focus {
    background: rgba(0,0,0,0.04);
    color: var(--lok-dark);
    border-color: var(--lok-text-muted);
}

.lok-topbar-currency-dropdown::after {
    margin-left: 0.35em;
}

.lok-topbar-currency-menu {
    background: #fff;
    border: 1px solid var(--lok-border);
    min-width: 11rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.lok-topbar-currency-menu .dropdown-item {
    color: var(--lok-text-muted);
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
}

.lok-topbar-currency-menu .dropdown-item:hover,
.lok-topbar-currency-menu .dropdown-item:focus {
    background: var(--lok-light);
    color: var(--lok-dark);
}

.lok-topbar-currency-menu .dropdown-item.active {
    background: var(--lok-teal);
    color: #fff;
}

.lok-area-map {
    border: 0;
    border-radius: var(--lok-radius-sm);
    height: 300px;
}
@media (min-width: 768px) {
    .lok-area-map {
        height: 100%;
    }
}

/* ===== Area Overview Chips ===== */
.lok-area-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    border: 1px solid var(--lok-border-light);
    border-radius: var(--lok-radius-sm);
    padding: 0.5rem 0.65rem;
}
.lok-area-chip-icon {
    font-size: 20px;
    color: var(--lok-teal);
}
.lok-area-chip-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
    line-height: 1.2;
}
.lok-area-chip-value {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Listings in Area breakdown */
.lok-listings-breakdown {
    padding: 0.6rem 0.75rem;
    background: var(--lok-light);
    border-radius: var(--lok-radius-sm);
}
.lok-listings-breakdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 1rem;
}
.lok-listings-breakdown-row {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}
.lok-listings-breakdown-count {
    font-weight: 600;
    font-size: 0.85rem;
}

/* ===== Overview Dashboard ===== */
.lok-overview-header {
    background: #fff;
    border: 1px solid var(--lok-border);
    border-radius: var(--lok-radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.lok-overview-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.2rem;
    color: var(--lok-dark);
    letter-spacing: -0.01em;
}
.lok-overview-section-subtitle {
    font-size: 0.85rem;
    color: var(--lok-text-muted);
    margin: 0;
}
@media (min-width: 768px) {
    .lok-overview-section-title { font-size: 1.6rem; }
}
.lok-overview-window-badge {
    display: inline-block;
    background: var(--lok-teal-light);
    color: var(--lok-teal);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
}
.lok-card-header-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.lok-card-header-icon .material-symbols-outlined {
    font-size: 18px;
}
.lok-overview-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--lok-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.lok-overview-card-icon .material-symbols-outlined {
    font-size: 22px;
}
@keyframes lokOverviewFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 575.98px) {
    .lok-overview-card-icon { width: 36px; height: 36px; }
    .lok-overview-card-icon .material-symbols-outlined { font-size: 20px; }
}

/* ===== Enriched Guest Ratings Card ===== */
.lok-ratings-card {
    background: #fff;
    border: 1px solid var(--lok-border);
    border-left-width: 4px;
    border-left-style: solid;
    border-radius: var(--lok-radius-sm);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    animation: lokOverviewFadeIn 0.4s ease both;
}
.lok-ratings-card--empty {
    padding: 1rem 1.25rem;
}

/* Status emphasis variants */
.lok-ratings-card--attention {
    background: #fffaf2;
    border-left-width: 6px;
    box-shadow: 0 1px 4px rgba(180, 95, 0, 0.06);
}
.lok-ratings-card--healthy {
    background: #fafaf8;
    padding: 0.85rem 1.25rem;
    margin-bottom: 0.6rem;
    border-left-width: 3px;
}
.lok-ratings-card--healthy.lok-ratings-card--collapsed {
    padding: 0.65rem 1rem 0.7rem;
}
.lok-ratings-card--collapsed .lok-ratings-card-body {
    display: none;
}

/* Card header (clickable when card is collapsible) */
.lok-ratings-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0 0 0.75rem;
    color: inherit;
    text-align: left;
}
.lok-ratings-card-header:disabled { cursor: default; }
.lok-ratings-card-header--clickable {
    cursor: pointer;
    border-radius: 6px;
    margin: -0.25rem -0.25rem 0.5rem;
    padding: 0.25rem;
    transition: background-color 0.15s;
}
.lok-ratings-card-header--clickable:hover {
    background: rgba(0, 0, 0, 0.03);
}
.lok-ratings-card--healthy .lok-ratings-card-header,
.lok-ratings-card--collapsed .lok-ratings-card-header {
    margin-bottom: 0;
}
.lok-ratings-card-header-left {
    min-width: 0;
    flex: 1;
}
.lok-ratings-card-header-right {
    flex-shrink: 0;
}

.lok-ratings-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--lok-dark);
    line-height: 1.3;
}
.lok-ratings-card--attention .lok-ratings-card-title {
    font-size: 1.05rem;
    font-weight: 700;
}
.lok-ratings-card--healthy .lok-ratings-card-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--lok-text-muted);
}

.lok-ratings-card-toggle {
    font-size: 20px;
    color: var(--lok-text-muted);
}

.lok-ratings-card-tip {
    font-size: 0.8rem;
    color: var(--lok-text-muted);
    line-height: 1.45;
    margin-top: 0.4rem;
    padding-left: calc(28px + 0.5rem);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 575.98px) {
    .lok-ratings-card-tip {
        padding-left: 0;
    }
}
/* Occupancy neutral comparison bars */
.lok-occ-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.lok-occ-bars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.lok-occ-bar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.lok-occ-bar-label {
    width: 32px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--lok-text-muted);
    flex-shrink: 0;
}
.lok-occ-bar-track {
    flex: 1;
    height: 20px;
    background: #f0f0f0;
    border-radius: 6px;
    position: relative;
    overflow: visible;
}
.lok-occ-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.6s ease;
}
.lok-occ-bar-fill--you {
    background: #c97be8;
}
.lok-occ-bar-fill--zone {
    background: #c97be840;
}
.lok-occ-benchmark {
    position: absolute;
    top: -3px;
    bottom: -3px;
    width: 2px;
    border-left: 2px dashed #c97be8;
    transform: translateX(-1px);
    pointer-events: none;
}
.lok-occ-bar-value {
    width: 36px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--lok-text-dark);
    text-align: right;
    flex-shrink: 0;
}
.lok-occ-diff {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: #c97be8;
    font-size: 0.85rem;
    font-weight: 600;
}
@media (max-width: 575.98px) {
    .lok-occ-bar-track {
        height: 16px;
    }
    .lok-occ-bars {
        gap: 0.35rem;
    }
    .lok-occ-bar-value {
        font-size: 0.75rem;
        width: 32px;
    }
}
/* Near-term occupancy urgency alert */
.lok-occ-urgency {
    background: var(--lok-warning-bg);
    border: 1px solid var(--lok-warning-border);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    font-size: 0.82rem;
    color: var(--lok-dark);
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

/* Dynamic Pricing Alignment card */
.lok-price-tiers {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.lok-price-tier {
    background: #faf8f4;
    border: 1px solid #f0ece4;
    border-radius: 10px;
    padding: 0.75rem;
}
.lok-price-tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}
.lok-price-tier-bars {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.lok-price-tier-bar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.lok-price-tier-bar-label {
    width: 36px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--lok-text-light);
    flex-shrink: 0;
}
.lok-price-tier-bar-track {
    flex: 1;
    height: 18px;
    background: #eee9e0;
    border-radius: 6px;
    position: relative;
    overflow: visible;
}
.lok-price-tier-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.6s ease;
}
.lok-price-tier-bar-fill--actual {
    background: #e8c98a;
}
.lok-price-tier-bar-fill--recommended {
    background: #e8c98a40;
}
.lok-price-tier-rec-marker {
    position: absolute;
    top: -3px;
    bottom: -3px;
    width: 2px;
    border-left: 2px dashed #c9a94e;
    transform: translateX(-1px);
    pointer-events: none;
}
.lok-price-tier-bar-value {
    width: 44px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--lok-text-dark);
    text-align: right;
    flex-shrink: 0;
}
.lok-price-tier-diff {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.25rem;
}
@media (max-width: 575.98px) {
    .lok-price-tier-bar-track {
        height: 14px;
    }
    .lok-price-tier {
        padding: 0.5rem;
    }
    .lok-price-tier-bar-value {
        width: 38px;
        font-size: 0.75rem;
    }
}
.lok-overview-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1.5px solid var(--lok-teal);
    border-radius: var(--lok-radius-sm);
    background: transparent;
    color: var(--lok-teal);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.lok-overview-cta:hover {
    background: var(--lok-teal);
    color: #fff;
}
.lok-ratings-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}
.lok-ratings-metric {
    text-align: center;
    padding: 0.5rem 0;
}
.lok-ratings-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
}
.lok-ratings-value--muted {
    color: #999;
}
/* Zone scale */
.lok-zone-scale-wrapper {
    padding: 0 0.25rem;
}
.lok-zone-scale {
    position: relative;
    display: flex;
    height: 10px;
    border-radius: 5px;
    overflow: visible;
}
.lok-zone-segment {
    flex: 1;
}
.lok-zone-segment:first-child { border-radius: 5px 0 0 5px; }
.lok-zone-segment:last-child  { border-radius: 0 5px 5px 0; }
.lok-zone-poor     { background: var(--lok-fill-danger); }
.lok-zone-below    { background: var(--lok-fill-warning); }
.lok-zone-average  { background: var(--lok-fill-average); }
.lok-zone-good     { background: var(--lok-fill-good); }
.lok-zone-excellent { background: var(--lok-fill-excellent); }
.lok-zone-marker {
    position: absolute;
    top: -6px;
    transform: translateX(-50%);
    z-index: 2;
    transition: left 0.6s ease;
}
.lok-zone-marker-pin {
    width: 12px;
    height: 22px;
    background: #1a1a1a;
    border-radius: 6px 6px 2px 2px;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.lok-zone-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.35rem;
    font-size: 0.65rem;
    color: var(--lok-text-light);
    font-weight: 500;
}
/* Explanation box */
.lok-ratings-explanation {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: var(--lok-teal-light);
    border: 1px solid var(--lok-teal);
    border-radius: var(--lok-radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #1a1a1a;
    line-height: 1.5;
}
@media (max-width: 575.98px) {
    .lok-ratings-card {
        padding: 1rem;
    }
    .lok-ratings-metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }
    .lok-ratings-value {
        font-size: 1.35rem;
    }
    .lok-zone-labels {
        font-size: 0.55rem;
    }
    .lok-ratings-explanation {
        font-size: 0.8rem;
        padding: 0.6rem 0.75rem;
    }
}

/* ===== Summary Cards (shared base) ===== */
.lok-summary-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--lok-border);
    border-radius: var(--lok-radius-sm);
    padding: 1rem 1.25rem;
}
.lok-income-card { border-left: 4px solid var(--lok-fill-warning); }
.lok-visibility-card { border-left: 4px solid var(--lok-teal); }

.lok-summary-card-help {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--lok-gray);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.lok-summary-card-help:hover {
    background: var(--lok-bg);
    color: var(--lok-status-info);
}
.lok-summary-card-help .material-symbols-outlined {
    font-size: 20px;
}

.lok-card-label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.7rem;
}

.lok-dow-header {
    padding: 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lok-metric-icon {
    font-size: 28px;
    color: var(--lok-teal);
}

.lok-icon-xs { font-size: 14px; vertical-align: middle; }
.lok-icon-sm { font-size: 18px; vertical-align: middle; }
.lok-icon-lg { font-size: 24px; }

.lok-legend-dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 2px;
}
.lok-legend-available { background: #d4edda; }
.lok-legend-blocked { background: var(--lok-border-light); }
.lok-legend-gap { background: repeating-linear-gradient(45deg, #d4edda, #d4edda 2px, rgba(0,0,0,0.08) 2px, rgba(0,0,0,0.08) 4px); }
.lok-legend-underpriced { background: #FDE0C4; border: 2px solid var(--lok-orange); }

.lok-visibility-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.lok-visibility-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    line-height: 1;
}

.lok-visibility-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    line-height: 1;
}

.lok-visibility-badge--prominent {
    font-size: 0.875rem;
    padding: 0.3rem 0.75rem;
}

/* Visibility icon color variants — fills carry a white icon, need >=3:1 */
.lok-vis-great { background: #198754; }
.lok-vis-good { background: #0d6efd; }
.lok-vis-average { background: #D97706; }
.lok-vis-bad { background: #BE123C; }
.lok-vis-unknown { background: #adb5bd; }
.lok-vis-underpriced { background: #FDE0C4; color: var(--lok-orange); }

/* Visibility badge color variants */
.lok-vis-badge-great { background: #d1e7dd; color: #0f5132; }
.lok-vis-badge-good { background: #cfe2ff; color: #084298; }
.lok-vis-badge-average { background: #fff3cd; color: #664d03; }
.lok-vis-badge-bad { background: #f8d7da; color: #842029; }
.lok-vis-badge-unknown { background: var(--lok-border-light); color: #495057; }

@media (max-width: 575.98px) {
    .lok-visibility-icon {
        width: 40px;
        height: 40px;
    }
    .lok-visibility-icon .material-symbols-outlined {
        font-size: 20px !important;
    }
    .lok-visibility-score {
        font-size: 1.25rem;
    }
}

/* ===== Layout Utilities ===== */
.lok-page-container {
    max-width: 1320px;
    margin: 0 auto;
}

/* Desktop shell: sticky left rail + main column for the report tabs */
.lok-report-shell {
    display: contents;
}
.lok-sidebar-nav {
    display: none;
}
@media (min-width: 1024px) {
    .lok-report-shell {
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 1.5rem;
        align-items: start;
    }
    .lok-sidebar-nav {
        display: block;
        position: sticky;
        top: 0;
        max-height: 100vh;
        overflow-y: auto;
        padding: 0.5rem 0;
    }
    body:has(.lok-sticky-banner) .lok-sidebar-nav {
        top: 38px;
        max-height: calc(100vh - 38px);
    }
    .lok-report-main {
        min-width: 0;
    }
    .lok-report-main .lok-sticky-tabbar {
        display: none;
    }
    .lok-report-main .lok-overview-toc {
        display: none;
    }
}

.lok-sidebar-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.lok-sidebar-tab {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.55rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: var(--lok-radius-sm);
    color: var(--lok-text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}
.lok-sidebar-tab:hover {
    background: var(--lok-border-light);
    color: var(--lok-dark);
}
a.lok-sidebar-tab {
    text-decoration: none;
}
.lok-sidebar-tab.active {
    background: var(--lok-teal-light);
    color: var(--lok-teal);
    font-weight: 600;
}
.lok-sidebar-tab-label {
    flex: 1;
    min-width: 0;
}
.lok-sidebar-subnav {
    list-style: none;
    margin: 0.15rem 0 0.5rem;
    padding: 0 0 0 1.85rem;
    border-left: 1px solid var(--lok-border-light);
    margin-left: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.lok-sidebar-subnav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.35rem 0.5rem;
    background: transparent;
    border: none;
    border-radius: var(--lok-radius-sm);
    color: var(--lok-dark);
    font-size: 0.82rem;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s;
}
.lok-sidebar-subnav-item:hover {
    background: var(--lok-border-light);
}
.lok-sidebar-subnav-title {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.25;
}
.lok-sidebar-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.75rem;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}
.lok-sidebar-pill--healthy  { background: #d1e7dd; color: #0f5132; }
.lok-sidebar-pill--watch    { background: #e9ecef; color: #495057; }
.lok-sidebar-pill--critical { background: #f8d7da; color: #842029; }
.lok-sidebar-finding-mark {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}
.lok-sidebar-finding-mark--critical { background: #842029; }
.lok-sidebar-finding-mark--warning  { background: #b45309; }
.lok-sidebar-finding-mark--nudge    { background: #6c757d; }

/* Performance tab single-column card grid */
.lok-overview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
@media (min-width: 1024px) {
    .lok-overview-grid {
        grid-auto-rows: auto;
        gap: 1rem 1.5rem;
        align-items: start;
    }
    .lok-overview-grid > .lok-overview-card-anchor {
        display: flex;
        flex-direction: column;
    }
    .lok-overview-grid > .lok-overview-card-anchor > .lok-ratings-card {
        margin-bottom: 0;
    }
}
.lok-narrow-container {
    max-width: 520px;
    margin: 0 auto;
}
.lok-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
    font-size: 0.9rem;
}

/* ===== Listing Analysis Tab ===== */
.lok-analysis-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid var(--lok-border);
    border-radius: var(--lok-radius-md);
    padding: 1.5rem 2rem;
    margin-bottom: 1.25rem;
}
.lok-analysis-score-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 4px solid;
    color: var(--lok-teal);
    background: #fff;
}
.lok-analysis-score-ring--excellent { color: var(--lok-status-excellent); }
.lok-analysis-score-ring--good { color: var(--lok-status-good); }
.lok-analysis-score-ring--average { color: var(--lok-status-average); }
.lok-analysis-score-ring--warning { color: var(--lok-status-warning); }
.lok-analysis-score-ring--danger { color: var(--lok-status-danger); }
.lok-analysis-score-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}
.lok-analysis-score-max {
    font-size: 0.8rem;
    color: var(--lok-text-muted);
    font-weight: 500;
}
/* Sub-scores: mobile-first (base = small screens) */
.lok-analysis-header-subscores {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.lok-analysis-header-subscore {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    min-width: 60px;
}
.lok-analysis-header-subscore .material-symbols-outlined {
    font-size: 20px;
}
.lok-analysis-header-subscore-value {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--lok-dark);
}
.lok-analysis-header-subscore-value small {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--lok-text-muted);
}
.lok-analysis-header-subscore-label {
    font-size: 0.7rem;
    color: var(--lok-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
@media (min-width: 576px) {
    .lok-analysis-header-subscores {
        margin-left: auto;
        gap: 1.25rem;
    }
}
.lok-analysis-header-text h5 {
    margin: 0 0 0.25rem 0;
    font-weight: 700;
    font-size: 1.15rem;
}
.lok-analysis-header-text p {
    margin: 0;
}
/* Summary bars group */
.lok-analysis-summary-group {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--lok-border);
    border-radius: var(--lok-radius-sm);
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.lok-analysis-summary-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: #fff;
    border-left: 4px solid var(--lok-teal);
    cursor: pointer;
    transition: background 0.15s ease;
    user-select: none;
}
.lok-analysis-summary-bar:not(:last-child) {
    border-bottom: 1px solid var(--lok-border-light);
}
.lok-analysis-summary-bar:hover {
    background: #f8f9fa;
}
.lok-analysis-summary-bar-icon {
    font-size: 22px;
    flex-shrink: 0;
}
.lok-analysis-summary-bar-title {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--lok-dark);
    white-space: nowrap;
}
.lok-analysis-summary-bar-summary {
    flex: 1;
    min-width: 0;
    font-size: 0.82rem;
    color: var(--lok-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lok-analysis-summary-bar-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}
.lok-analysis-summary-bar-chevron {
    font-size: 20px;
    color: var(--lok-text-muted);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.lok-analysis-summary-bar-chevron--open {
    transform: rotate(180deg);
}

.lok-analysis-loading {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #fff;
    border: 1px solid var(--lok-border);
    border-radius: var(--lok-radius-md);
}
.lok-analysis-loading .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
}
.lok-analysis-loading-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: var(--lok-teal-light);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--lok-teal);
    margin-top: 0.75rem;
}
.lok-analysis-section {
    border-top: 1px solid var(--lok-border-light);
    padding-top: 1rem;
    margin-top: 1rem;
}
.lok-analysis-section-title {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--lok-dark);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.lok-analysis-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    margin: 0.15rem 0.2rem;
    line-height: 1.4;
}
.lok-analysis-chip--positive {
    background: #d1fae5;
    color: #065f46;
}
.lok-analysis-chip--negative {
    background: #fef2f2;
    color: #991b1b;
}
.lok-analysis-chip--neutral {
    background: #f3f4f6;
    color: #4b5563;
}
.lok-analysis-chip--keyword {
    background: #eff6ff;
    color: #1e40af;
}
.lok-analysis-proposal {
    border-left: 3px solid var(--lok-teal);
    background: var(--lok-teal-light);
    border-radius: 0 var(--lok-radius-sm) var(--lok-radius-sm) 0;
    padding: 0.75rem 1rem;
    margin-bottom: 0.6rem;
}
.lok-analysis-proposal-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--lok-dark);
    margin-bottom: 0.2rem;
}
.lok-analysis-proposal-justification {
    font-size: 0.82rem;
    color: var(--lok-text-muted);
}
.lok-analysis-quote {
    border-left: 3px solid var(--lok-border);
    padding: 0.6rem 1rem;
    background: var(--lok-light);
    border-radius: 0 var(--lok-radius-sm) var(--lok-radius-sm) 0;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
}
.lok-analysis-quote-author {
    font-weight: 600;
    color: var(--lok-dark);
    font-size: 0.82rem;
    margin-bottom: 0.15rem;
}
.lok-analysis-quote-concern {
    font-weight: 600;
    color: var(--lok-status-warning);
    font-size: 0.78rem;
    margin-bottom: 0.3rem;
}
.lok-analysis-quote-text {
    font-style: italic;
    color: var(--lok-text-muted);
    font-size: 0.82rem;
}
.lok-analysis-suggestion {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.88rem;
    color: var(--lok-text-dark);
}
.lok-analysis-suggestion .material-symbols-outlined {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}
.lok-analysis-concern {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.88rem;
    color: var(--lok-text-dark);
}
.lok-analysis-concern .material-symbols-outlined {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--lok-status-warning);
}
.lok-analysis-bool-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.88rem;
}
.lok-analysis-bool-row .material-symbols-outlined {
    font-size: 20px;
}
.lok-analysis-narrative-box {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: var(--lok-radius-sm);
    font-size: 0.88rem;
    margin-top: 0.5rem;
}
.lok-analysis-narrative-box--ok {
    background: #d1fae51A;
    border: 1px solid #15803d40;
}
.lok-analysis-narrative-box--warn {
    background: #fef2f21A;
    border: 1px solid #ef444440;
}
.lok-analysis-error {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #fff;
    border: 1px solid var(--lok-border);
    border-radius: var(--lok-radius-md);
}
.lok-analysis-rooms-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.3rem;
}
.lok-analysis-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.lok-analysis-text-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.lok-analysis-text-item-label {
    font-size: 0.75rem;
    color: var(--lok-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}
.lok-analysis-metric {
    text-align: center;
    padding: 0.5rem;
}
.lok-analysis-metric-label {
    font-size: 0.75rem;
    color: var(--lok-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.lok-analysis-metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lok-dark);
    line-height: 1.2;
}
.lok-analysis-metric-sub {
    font-size: 0.78rem;
    color: var(--lok-text-light);
}

@media (max-width: 575.98px) {
    .lok-report-tab {
        font-size: 0.85rem;
        padding: 0.5rem 0.55rem;
        gap: 0.4rem;
    }
    .lok-report-tab .material-symbols-outlined {
        font-size: 16px;
    }
    .lok-analysis-header {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
        gap: 0.75rem;
    }
    .lok-analysis-score-ring {
        width: 75px;
        height: 75px;
    }
    .lok-analysis-score-value {
        font-size: 1.6rem;
    }
    .lok-analysis-metrics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .lok-analysis-summary-bar {
        padding: 0.6rem 0.9rem;
        gap: 0.5rem;
    }
    .lok-analysis-summary-bar-summary {
        display: none;
    }
}
.lok-analysis-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
    background: var(--lok-bg-card);
    border: 1px solid var(--lok-border);
    border-radius: 12px;
}
.lok-analysis-cta p { margin: 0; }
@media (max-width: 600px) {
    .lok-analysis-cta {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1rem;
    }
}

/* ===== Quality Sub-Cards (Accordion) ===== */
.lok-quality-subcards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.lok-accordion-card--quality {
    border-left: 3px solid var(--lok-card-quality);
}

.lok-accordion-card--quality.active {
    border-color: var(--lok-card-quality);
    border-left-width: 3px;
}

.lok-accordion-card--quality .lok-accordion-header {
    padding: 0.75rem;
    gap: 0.5rem;
}

.lok-accordion-card--quality .lok-accordion-chevron {
    color: var(--lok-text-muted);
}

.lok-accordion-card--quality.active .lok-accordion-chevron {
    color: var(--lok-card-quality);
}

.lok-accordion-card--quality .lok-accordion-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease, padding 0.25s ease;
    padding: 0 1rem;
}

.lok-accordion-card--quality.active .lok-accordion-body {
    grid-template-rows: 1fr;
    padding: 0 1rem 1rem 1rem;
}

.lok-accordion-card--quality .lok-accordion-body-inner {
    overflow: hidden;
}

.lok-quality-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (min-width: 576px) {
    .lok-accordion-card--quality .lok-accordion-header {
        padding: 0.85rem 1.25rem;
        gap: 0.75rem;
    }

    .lok-quality-badge {
        font-size: 0.78rem;
        padding: 0.15rem 0.55rem;
    }
}

/* ===== FAQ Section ===== */
.lok-faq-card {
    background: #fff;
    border: 1px solid var(--lok-border-light);
    border-radius: var(--lok-radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

/* ===== Support Chat Widget ===== */
.lok-chat-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1050;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--lok-red);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.lok-chat-fab:hover {
    background: var(--lok-red-hover);
    transform: scale(1.05);
}

.lok-chat-fab .material-symbols-outlined {
    font-size: 1.6rem;
}

.lok-chat-panel {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1050;
    width: 380px;
    height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.lok-chat-header {
    background: var(--lok-red);
    color: #fff;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.lok-chat-close {
    margin-left: auto;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    display: flex;
    opacity: 0.8;
}

.lok-chat-close:hover {
    opacity: 1;
}

.lok-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lok-chat-msg {
    max-width: 85%;
    padding: 0.6rem 0.85rem;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.45;
    word-wrap: break-word;
}

.lok-chat-msg-user {
    align-self: flex-end;
    background: var(--lok-red);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.lok-chat-msg-assistant {
    align-self: flex-start;
    background: var(--lok-light);
    color: var(--lok-dark);
    border-bottom-left-radius: 4px;
}

.lok-chat-cursor {
    display: inline-block;
    animation: lok-chat-blink 0.8s step-end infinite;
    font-weight: bold;
    color: var(--lok-gray);
}

@keyframes lok-chat-blink {
    50% { opacity: 0; }
}

.lok-chat-input-area {
    border-top: 1px solid var(--lok-border-light);
    padding: 0.65rem;
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    background: #fff;
}

.lok-chat-input-area .form-control {
    border-radius: 20px;
    font-size: 0.875rem;
}

.lok-chat-send {
    background: var(--lok-red);
    color: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lok-chat-send:hover:not(:disabled) {
    background: var(--lok-red-hover);
    color: #fff;
}

.lok-chat-send:disabled {
    background: var(--lok-gray);
    color: #fff;
    opacity: 0.5;
}

.lok-chat-send .material-symbols-outlined {
    font-size: 1.1rem;
}

@media (max-width: 575.98px) {
    .lok-chat-panel {
        width: calc(100% - 1rem);
        height: calc(100% - 5rem);
        bottom: 0.5rem;
        right: 0.5rem;
        border-radius: 12px;
    }

    .lok-chat-fab {
        bottom: 1rem;
        right: 1rem;
    }
}

/* Navigation progress bar */
#lok-nav-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--lok-teal);
    z-index: 9999;
    pointer-events: none;
}
#lok-nav-progress.active {
    width: 70%;
    transition: width 8s cubic-bezier(0.1, 0.5, 0.3, 1);
}

/* ===== Conversion Surfaces ===== */
.lok-sticky-banner {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--lok-teal-light);
    border-bottom: 1px solid #c3e6e1;
    font-size: 0.85rem;
    color: var(--lok-text-dark);
}
.lok-sticky-banner a {
    color: var(--lok-teal);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.lok-sticky-banner a:hover { text-decoration: underline; }

.lok-tab-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
    background: var(--lok-teal-light);
    border: 1px solid #c3e6e1;
    border-radius: 12px;
}
.lok-tab-cta a {
    color: var(--lok-teal);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.lok-tab-cta a:hover { text-decoration: underline; }
@media (max-width: 600px) {
    .lok-tab-cta {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1rem;
    }
}

.lok-purchase-inline {
    margin-bottom: 1rem;
}
.lok-purchase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.lok-purchase-sub {
    position: relative;
    padding: 1.5rem 1.25rem 1.25rem;
    background: linear-gradient(135deg, var(--lok-teal-light), #fff);
    border: 2px solid var(--lok-teal);
    border-radius: var(--lok-radius-md);
    box-shadow: 0 2px 12px rgba(42, 157, 143, 0.12);
}
.lok-purchase-sub-badge {
    position: absolute;
    top: -0.65rem;
    left: 1.25rem;
    background: var(--lok-teal);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}
.lok-purchase-roi {
    margin: 0.25rem 0 1rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-left: 3px solid var(--lok-teal);
    border-radius: 0 var(--lok-radius-sm) var(--lok-radius-sm) 0;
}
.lok-purchase-sub-tagline {
    font-size: 0.85rem;
    color: var(--lok-teal);
    font-weight: 600;
    margin: 0 0 0.5rem;
}
.lok-purchase-roi-headline {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--lok-dark);
    line-height: 1.35;
    margin: 0 0 0.35rem;
}
.lok-purchase-roi-headline strong {
    color: var(--lok-teal);
}
.lok-purchase-roi-sub {
    font-size: 0.88rem;
    color: var(--lok-text-muted);
    line-height: 1.45;
    margin: 0;
}
.lok-purchase-sub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}
.lok-purchase-sub-btn .material-symbols-outlined {
    font-size: 18px;
}
.lok-purchase-sub-prefill {
    font-size: 0.82rem;
    color: var(--lok-teal);
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.6rem;
    text-align: center;
}
.lok-purchase-sub-includes {
    font-size: 0.8rem;
    color: var(--lok-text-muted);
    line-height: 1.45;
    margin: 0;
}

/* Locked 30-day evolution chart previews (mid-report subscribe card) */
.lok-locked-charts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-top: 0.85rem;
}
.lok-locked-chart-card {
    background: #fff;
    border: 1px solid var(--lok-border);
    border-radius: var(--lok-radius-md);
    padding: 0.6rem 0.7rem 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}
.lok-locked-chart-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--lok-text-muted);
}
.lok-locked-chart-icon {
    font-size: 16px;
    color: var(--lok-red);
}
.lok-locked-chart-title {
    font-weight: 600;
    color: var(--lok-dark);
    flex: 1 1 auto;
    min-width: 0;
}
.lok-locked-chart-window {
    font-size: 0.7rem;
    color: var(--lok-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.lok-locked-chart-canvas {
    position: relative;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(180deg, #fafafa, #f3f3f3);
}
.lok-locked-chart-svg {
    display: block;
    width: 100%;
    height: 100%;
    filter: blur(2px);
    opacity: 0.85;
}
.lok-locked-chart-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    color: var(--lok-dark);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    padding: 0 0.5rem;
}
.lok-locked-chart-overlay .material-symbols-outlined {
    font-size: 16px;
    color: var(--lok-red);
}
.lok-locked-chart-footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4rem;
    font-size: 0.78rem;
}
.lok-locked-chart-now {
    color: var(--lok-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.68rem;
    font-weight: 600;
}
.lok-locked-chart-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--lok-dark);
}
@media (min-width: 576px) {
    .lok-locked-charts {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}

.lok-purchase-credits {
    padding: 1.25rem;
    background: var(--lok-light);
    border: 1px solid var(--lok-border);
    border-radius: var(--lok-radius-md);
}
.lok-purchase-credits-headline {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--lok-dark);
    margin: 0 0 0.4rem;
    line-height: 1.35;
}
.lok-purchase-credits-pitch {
    font-size: 0.85rem;
    color: var(--lok-text-muted);
    margin: 0 0 0.5rem;
}
.lok-purchase-credits-link {
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}
.lok-purchase-inline-guarantee {
    font-size: 0.8rem;
    color: var(--lok-text-muted);
    text-align: center;
    margin: 1rem 0 0;
}
@media (min-width: 768px) {
    .lok-purchase-grid {
        grid-template-columns: 1.6fr 1fr;
        align-items: start;
    }
    .lok-purchase-sub {
        padding: 1.75rem 1.5rem 1.5rem;
    }
    .lok-purchase-roi-headline {
        font-size: 1.15rem;
    }
}

.lok-send-report {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.lok-send-report a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
}

/* ===== Share Modal ===== */
.lok-share-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: var(--lok-bg-secondary, #f8f9fa);
    border-radius: 6px;
}
.lok-share-copylink {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem 0.4rem 0.75rem;
    background: var(--lok-bg-secondary, #f8f9fa);
    border-radius: 6px;
}

/* Position History (Visibility tab) */
.lok-position-history-card {
    background: #fff;
    border: 1px solid var(--lok-border);
    border-radius: 12px;
    padding: 1rem;
}
.lok-position-history-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--lok-border);
}
.lok-position-history-stat-label {
    font-size: 0.75rem;
    color: var(--lok-text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.15rem;
}
.lok-position-history-stat-value {
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.lok-position-history-chart {
    width: 100%;
    min-height: 280px;
}
.lok-position-history-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    background: #fff;
    border: 1px solid var(--lok-border);
    border-radius: 12px;
}
.lok-position-history-cta {
    background: linear-gradient(180deg, #fff 0%, #F4FBF9 100%);
    border: 1px solid var(--lok-border);
    border-radius: 12px;
    padding: 1.25rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}
.lok-position-history-cta-preview {
    position: relative;
    height: 90px;
    width: 100%;
    border-radius: 8px;
    background: #fff;
    border: 1px dashed rgba(42, 139, 127, 0.35);
    overflow: hidden;
}
.lok-position-history-cta-svg {
    display: block;
    width: 100%;
    height: 100%;
}
.lok-position-history-cta-preview-tag {
    position: absolute;
    top: 0.4rem;
    right: 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2A8B7F;
    background: rgba(42, 139, 127, 0.1);
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}
.lok-position-history-cta-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.lok-position-history-cta-headline {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--lok-text);
    margin: 0;
    line-height: 1.3;
}
.lok-position-history-cta-sub {
    font-size: 0.875rem;
    color: var(--lok-text-light);
    margin: 0;
    line-height: 1.45;
}
.lok-position-history-cta-btn {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.25rem;
}
.lok-position-history-cta-note {
    font-size: 0.78rem;
    color: var(--lok-text-light);
    margin: 0;
    text-align: center;
}
@media (min-width: 768px) {
    .lok-position-history-card {
        padding: 1.5rem;
    }
    .lok-position-history-stats {
        gap: 1rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
    .lok-position-history-stat-value {
        font-size: 1.25rem;
    }
    .lok-position-history-cta {
        flex-direction: row;
        align-items: center;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    .lok-position-history-cta-preview {
        flex: 0 0 280px;
        height: 140px;
    }
    .lok-position-history-cta-body {
        flex: 1;
    }
    .lok-position-history-cta-btn {
        align-self: flex-start;
    }
    .lok-position-history-cta-note {
        text-align: left;
    }
}

/* ===== Visibility heatmap (Visibility tab) ===== */
.lok-vis-cal-card {
    background: #fff;
    border: 1px solid var(--lok-border);
    border-radius: 12px;
    padding: 0.85rem;
}

.lok-vis-cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    margin-bottom: 0.85rem;
    font-size: 0.72rem;
    color: var(--lok-text);
}
.lok-vis-cal-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    line-height: 1;
    white-space: nowrap;
}
.lok-vis-cal-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.lok-vis-cal-months {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lok-vis-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.lok-vis-cal-dow {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--lok-text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 0 4px;
}

.lok-vis-cal-spacer {
    aspect-ratio: 1;
}

.lok-vis-cal-cell {
    aspect-ratio: 1;
    position: relative;
    border-radius: 5px;
    background: #f8f9fa;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    overflow: hidden;
    color: #495057;
}

.lok-vis-cal-clickable { cursor: pointer; }

.lok-vis-cal-day {
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1;
    color: #666;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

.lok-vis-cal-blocked-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
    color: #999;
}
.lok-vis-cal-blocked-icon { font-size: 0.95rem; }
.lok-vis-cal-blocked-label { font-size: 0.55rem; margin-top: 1px; }

/* Heatmap-scoped chip sizing — calendar tab keeps its larger chip untouched */
.lok-vis-cal-cell .lok-rank-chip {
    padding: 0.18rem 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
    max-width: calc(100% - 6px);
}
.lok-vis-cal-cell .lok-rank-hidden {
    gap: 0;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.18rem 0.35rem;
}

.lok-vis-cal-today {
    box-shadow: inset 0 0 0 2px var(--lok-teal);
}

/* Tier colours — used only by the legend dots; mirror the in-cell chip palette */
.lok-vis-cal-dot.lok-vis-cal-p1      { background: #166534; }
.lok-vis-cal-dot.lok-vis-cal-p2      { background: #22c55e; }
.lok-vis-cal-dot.lok-vis-cal-p34     { background: var(--lok-fill-warning); }
.lok-vis-cal-dot.lok-vis-cal-p5      { background: var(--lok-fill-danger); }
.lok-vis-cal-dot.lok-vis-cal-hidden  { background: #991b1b; }
.lok-vis-cal-dot.lok-vis-cal-blocked { background: #f1f3f5; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }

.lok-vis-cal-outside {
    background: transparent;
    box-shadow: none;
}
.lok-vis-cal-outside .lok-vis-cal-day { display: none; }

@media (min-width: 576px) {
    .lok-vis-cal-card { padding: 1rem; }
    .lok-vis-cal-grid { gap: 3px; }
    .lok-vis-cal-day { font-size: 0.7rem; }
}

@media (min-width: 768px) {
    .lok-vis-cal-card { padding: 1.25rem; }
    .lok-vis-cal-grid { gap: 4px; }
    .lok-vis-cal-cell { border-radius: 7px; }
    .lok-vis-cal-day { font-size: 0.72rem; top: 3px; left: 5px; }
    .lok-vis-cal-blocked-icon { font-size: 1.1rem; }
    .lok-vis-cal-blocked-label { font-size: 0.65rem; }
    .lok-vis-cal-cell .lok-rank-chip { padding: 0.22rem 0.65rem; font-size: 0.8rem; }
    .lok-vis-cal-cell .lok-rank-hidden { padding: 0.2rem 0.45rem; font-size: 0.68rem; }
    .lok-vis-cal-legend { font-size: 0.78rem; gap: 0.4rem 0.85rem; margin-bottom: 1rem; }
    .lok-vis-cal-dow { font-size: 0.72rem; }
}

@media (hover: hover) and (min-width: 768px) {
    .lok-vis-cal-clickable:hover {
        transform: scale(1.08);
        box-shadow: 0 6px 14px rgba(0,0,0,0.18), inset 0 0 0 1px rgba(0,0,0,0.04);
        z-index: 5;
    }
    .lok-vis-cal-today.lok-vis-cal-clickable:hover {
        box-shadow: 0 6px 14px rgba(0,0,0,0.18), inset 0 0 0 2px var(--lok-teal);
    }
}

/* Two-column months on wide screens */
@media (min-width: 992px) {
    .lok-vis-cal-months {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem 1.5rem;
    }
}

/* ===== Alerts page ===== */
.lok-alerts-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 0 1.25rem;
}
.lok-alerts-header-thumb {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: var(--lok-radius-md);
    background: linear-gradient(135deg, #e87b7b, #f5a76c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.lok-alerts-header-thumb .material-symbols-outlined {
    font-size: 32px;
}
.lok-alerts-header-text {
    min-width: 0;
}
.lok-alerts-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--lok-dark);
    line-height: 1.25;
}
.lok-alerts-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--lok-dark);
    margin: 0 0 0.25rem;
}
.lok-alerts-caption {
    font-size: 0.85rem;
    color: var(--lok-text-muted);
    margin: 0;
    line-height: 1.4;
}
@media (min-width: 768px) {
    .lok-alerts-header {
        flex-direction: row;
        align-items: center;
        gap: 1.25rem;
    }
    .lok-alerts-header-thumb {
        width: 88px;
        height: 88px;
    }
    .lok-alerts-header-thumb .material-symbols-outlined {
        font-size: 44px;
    }
    .lok-alerts-title {
        font-size: 1.75rem;
    }
}

.lok-alerts-tabbar {
    background: #fff;
    padding: 0;
}
.lok-alerts-tabbar .lok-report-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.lok-alerts-tabbar .lok-report-tabs::-webkit-scrollbar {
    display: none;
}
.lok-alerts-tabbar .lok-report-tab {
    text-decoration: none;
    flex: 0 0 auto;
    white-space: nowrap;
}
@media (min-width: 768px) {
    .lok-alerts-tabbar .lok-report-tab {
        flex: 1;
    }
}

.lok-alerts-state-toggle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin: 0 0 1rem;
    background: var(--lok-light);
    border: 1px dashed var(--lok-border);
    border-radius: var(--lok-radius-sm);
    font-size: 0.8rem;
}
.lok-alerts-state-toggle a {
    color: var(--lok-teal);
    font-weight: 600;
    text-decoration: none;
}
.lok-alerts-state-toggle a:hover { text-decoration: underline; }

/* Section headings */
.lok-alerts-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--lok-dark);
    margin: 0 0 0.2rem;
    line-height: 1.3;
}
.lok-alerts-section-sub {
    font-size: 0.85rem;
    color: var(--lok-text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Missed-alerts panel (highlighted) */
.lok-alerts-missed-panel {
    background: var(--lok-warning-bg);
    border: 1px solid var(--lok-warning-border);
    border-radius: var(--lok-radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
}
.lok-alerts-missed-head {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
}
.lok-alerts-missed-icon {
    color: var(--lok-warning-icon);
    font-size: 28px;
    flex-shrink: 0;
}
.lok-alerts-missed-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.lok-alerts-missed-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.75rem;
    background: #fff;
    border: 1px solid var(--lok-warning-border);
    border-radius: var(--lok-radius-sm);
}
.lok-alerts-missed-row-icon {
    color: var(--lok-warning-icon);
    font-size: 22px;
    flex-shrink: 0;
}
.lok-alerts-missed-row-body {
    flex: 1;
    min-width: 0;
}
.lok-alerts-missed-row-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--lok-warning-icon);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.lok-alerts-missed-row-text {
    font-size: 0.88rem;
    color: var(--lok-dark);
    line-height: 1.35;
}
.lok-alerts-missed-tag {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: var(--lok-bg-warning);
    color: var(--lok-warning-icon);
    border: 1px solid var(--lok-warning-border);
}
.lok-alerts-missed-cta {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}
.lok-alerts-missed-cta .material-symbols-outlined {
    margin-right: 0.3rem;
}

/* Alert groups */
.lok-alerts-group {
    background: #fff;
    border: 1px solid var(--lok-border);
    border-radius: var(--lok-radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
}
button.lok-alerts-group-head {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s;
    border-radius: var(--lok-radius-md);
}
button.lok-alerts-group-head:hover {
    background: var(--lok-light);
}
.lok-alerts-group-head {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 1rem;
}
.lok-alerts-group--open button.lok-alerts-group-head {
    border-bottom: 1px solid var(--lok-border-light);
    border-radius: var(--lok-radius-md) var(--lok-radius-md) 0 0;
}
.lok-alerts-group-head--static {
    padding: 0 0 0.85rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid var(--lok-border-light);
    align-items: flex-start;
}
.lok-alerts-group-head-text {
    flex: 1;
    min-width: 0;
}
.lok-alerts-group-icon {
    font-size: 28px;
    color: var(--lok-teal);
    flex-shrink: 0;
}
.lok-alerts-group-chevron {
    font-size: 24px;
    color: var(--lok-text-muted);
    flex-shrink: 0;
    transition: transform 0.2s;
}
.lok-alerts-group--open .lok-alerts-group-chevron {
    transform: rotate(180deg);
    color: var(--lok-teal);
}
.lok-alerts-group-body {
    padding: 0.25rem 1rem 1rem;
}

/* Individual alert row */
.lok-alerts-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--lok-border-light);
}
.lok-alerts-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.lok-alerts-row:first-of-type {
    padding-top: 0;
}
.lok-alerts-row-icon {
    font-size: 22px !important;
    color: var(--lok-text-muted);
    flex-shrink: 0;
    margin-top: 0.15rem;
}
.lok-alerts-row-body {
    flex: 1;
    min-width: 0;
}
.lok-alerts-row-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--lok-dark);
    line-height: 1.3;
    margin-bottom: 0.2rem;
}
.lok-alerts-row-why {
    font-size: 0.83rem;
    color: var(--lok-text-muted);
    line-height: 1.4;
    margin-bottom: 0.55rem;
}
.lok-alerts-row-caption {
    font-size: 0.8rem;
    color: var(--lok-text-muted);
    line-height: 1.4;
}
.lok-alerts-row-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.lok-alerts-row-current {
    font-size: 0.83rem;
    color: var(--lok-dark);
}
.lok-alerts-row-threshold {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--lok-text-muted);
    background: var(--lok-light);
    padding: 0.4rem 0.55rem;
    border-radius: var(--lok-radius-sm);
}
.lok-alerts-threshold-label {
    color: var(--lok-text-muted);
}
.lok-alerts-threshold-static {
    font-weight: 700;
    color: var(--lok-dark);
}
.lok-alerts-threshold-input {
    width: 4.5rem;
    padding: 0.15rem 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lok-dark);
    border: 1px solid var(--lok-border);
    border-radius: 0.35rem;
    background: #fff;
}
.lok-alerts-threshold-input:focus {
    outline: none;
    border-color: var(--lok-teal);
    box-shadow: 0 0 0 0.15rem rgba(42,157,143,0.18);
}
.lok-alerts-row-toggle {
    flex-shrink: 0;
    margin-top: 0.15rem;
    position: relative;
}

/* Toggle switch */
.lok-alerts-switch {
    display: inline-block;
    position: relative;
    cursor: pointer;
    user-select: none;
}
.lok-alerts-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.lok-alerts-switch-track {
    display: inline-block;
    position: relative;
    width: 44px;
    height: 24px;
    background: #cfd3d8;
    border-radius: 999px;
    transition: background-color 0.15s;
    vertical-align: middle;
}
.lok-alerts-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.18);
    transition: transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lok-alerts-switch--on .lok-alerts-switch-track {
    background: var(--lok-teal);
}
.lok-alerts-switch--on .lok-alerts-switch-thumb {
    transform: translateX(20px);
}
.lok-alerts-switch--locked {
    cursor: not-allowed;
}
.lok-alerts-switch--locked .lok-alerts-switch-track {
    background: #d6d8db;
}
.lok-alerts-switch--locked.lok-alerts-switch--on .lok-alerts-switch-track {
    background: #b8d8d4;
}
.lok-alerts-switch--locked .lok-alerts-switch-thumb {
    background: #f6f7f8;
    color: var(--lok-text-muted);
}
.lok-alerts-switch--locked .lok-alerts-switch-thumb .material-symbols-outlined {
    font-size: 14px;
    color: var(--lok-text-muted);
}

/* Locked tooltip */
.lok-alerts-locked-tooltip {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    width: 300px;
    background: var(--lok-dark);
    color: #fff;
    padding: 0.75rem;
    border-radius: var(--lok-radius-sm);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.lok-alerts-locked-tooltip::before {
    content: "";
    position: absolute;
    bottom: 100%;
    right: 14px;
    border: 6px solid transparent;
    border-bottom-color: var(--lok-dark);
}
.lok-alerts-locked-tooltip-text {
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.92);
}
.lok-alerts-locked-tooltip-cta {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--lok-teal);
    align-self: flex-end;
}
.lok-alerts-switch--locked:hover .lok-alerts-locked-tooltip,
.lok-alerts-switch--locked:focus .lok-alerts-locked-tooltip,
.lok-alerts-switch--locked:focus-within .lok-alerts-locked-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Delivery preferences */
.lok-alerts-delivery {
    background: #fff;
    border: 1px solid var(--lok-border);
    border-radius: var(--lok-radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
}
.lok-alerts-delivery-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--lok-border-light);
}
.lok-alerts-delivery-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.lok-alerts-delivery-row:first-of-type {
    padding-top: 0;
}
.lok-alerts-delivery-row--radio {
    align-items: flex-start;
}
.lok-alerts-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.55rem;
}
.lok-alerts-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--lok-dark);
    cursor: pointer;
}
.lok-alerts-radio input {
    accent-color: var(--lok-teal);
}
.lok-alerts-radio--locked {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Sticky unlock bar on alerts page (free state only). Mobile = fixed bottom
   so it doesn't fight the mobile sticky tabbar at top. Desktop = sticky top. */
.lok-alerts-unlock-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom));
    background: var(--lok-teal-light);
    border-top: 1px solid #c3e6e1;
    box-shadow: 0 -6px 14px -8px rgba(0, 0, 0, 0.18);
    flex-wrap: nowrap;
}
.lok-alerts-unlock-bar-text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    flex: 1 1 auto;
    min-width: 0;
}
.lok-alerts-unlock-bar-headline {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--lok-dark);
    line-height: 1.25;
}
.lok-alerts-unlock-bar-sub {
    font-size: 0.75rem;
    color: var(--lok-text-muted);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lok-alerts-unlock-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    white-space: nowrap;
}
.lok-alerts-unlock-bar-btn .material-symbols-outlined {
    font-size: 18px;
}
/* Reserve space at the bottom of the alerts page so fixed bar doesn't
   cover the last row. Scoped to pages that show the bar. */
.lok-report-main:has(.lok-alerts-unlock-bar) {
    padding-bottom: 5.5rem;
}
@media (min-width: 768px) {
    .lok-alerts-unlock-bar {
        position: sticky;
        top: 0;
        bottom: auto;
        left: auto;
        right: auto;
        z-index: 90;
        margin-bottom: 1rem;
        padding: 0.85rem 1.1rem;
        border: 1px solid #c3e6e1;
        border-radius: var(--lok-radius-md);
        box-shadow: 0 4px 10px -6px rgba(0, 0, 0, 0.12);
        flex-wrap: wrap;
    }
    .lok-alerts-unlock-bar-text {
        gap: 0.1rem;
        flex: 1 1 240px;
    }
    .lok-alerts-unlock-bar-headline {
        font-size: 1.05rem;
    }
    .lok-alerts-unlock-bar-sub {
        font-size: 0.85rem;
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
    }
    .lok-report-main:has(.lok-alerts-unlock-bar) {
        padding-bottom: 0;
    }
}

/* CTA card on report bottom */
.lok-alerts-report-cta {
    margin-top: 1.5rem;
    padding: 1.25rem 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--lok-teal-light), #fff);
    border: 1px solid #c3e6e1;
    border-radius: var(--lok-radius-md);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.lok-alerts-report-cta-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--lok-radius-sm);
    background: var(--lok-teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.lok-alerts-report-cta-icon .material-symbols-outlined {
    font-size: 24px;
}
.lok-alerts-report-cta-headline {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--lok-dark);
    margin: 0 0 0.3rem;
    line-height: 1.3;
}
.lok-alerts-report-cta-sub {
    font-size: 0.88rem;
    color: var(--lok-text-muted);
    margin: 0;
    line-height: 1.45;
}
.lok-alerts-report-cta-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.lok-alerts-report-cta-btn .material-symbols-outlined {
    font-size: 18px;
}
@media (min-width: 768px) {
    .lok-alerts-report-cta {
        flex-direction: row;
        align-items: center;
        gap: 1.1rem;
        padding: 1.5rem;
    }
    .lok-alerts-report-cta-body {
        flex: 1;
        min-width: 0;
    }
    .lok-alerts-report-cta-headline {
        font-size: 1.15rem;
    }
}
