﻿/* ========================================================= */
/* L9 PORTAL CSS                                             */
/* PURPOSE                                                   */
/* Portal specific component layer for My.L9.Com.Au          */
/*                                                           */
/* THIS FILE SHOULD HOLD                                     */
/* - portal specific layout components                       */
/* - reusable portal controls                                */
/* - list and repeater components                            */
/* - timetable components                                    */
/* - specialist portal widgets                               */
/*                                                           */
/* THIS FILE SHOULD NOT HOLD                                 */
/* - tokens / variables                                      */
/* - global shell, typography, buttons, forms               */
/* Those belong in l9.tokens.css and l9.theme.css            */
/* ========================================================= */


/* ========================================================= */
/* SECTION: LAYOUT CONTROLS                                  */
/* ========================================================= */


/* ========================================================= */
/* CONTROL: layout_sectionheader                             */
/* PURPOSE                                                   */
/* Reusable title block for sections across portal pages     */
/* NOTES                                                     */
/* - Supports optional gold label above title                */
/* - Supports optional subtitle                              */
/* - Supports optional top-right actions                     */
/* ========================================================= */

.l9-sectionheader {
    margin-bottom: 20px;
}

.l9-sectionheader-bordered {
    border-bottom: 1px solid var(--l9-border);
    padding-bottom: 16px;
}

.l9-sectionheader-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.l9-sectionheader-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.l9-sectionheader-label {
    margin-bottom: 8px;
    color: var(--l9-accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.l9-sectionheader-title {
    margin: 0 0 8px 0;
    color: var(--l9-text);
    font-family: var(--l9-font-heading);
    font-size: 1.75rem;
    line-height: 1.05;
}

.l9-sectionheader-subtitle {
    margin: 0;
    color: var(--l9-text-muted);
    line-height: 1.55;
    max-width: 860px;
}

.l9-sectionheader-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}


/* ========================================================= */
/* SECTION: HOME / HERO SUPPORT                              */
/* ========================================================= */

.l9-home-sidecard {
    height: 100%;
    background: var(--l9-surface);
    border: 1px solid var(--l9-border);
    border-radius: var(--l9-radius-card);
    padding: 24px;
}

.l9-home-side-label {
    color: var(--l9-text-muted);
    font-size: 14px;
    margin-bottom: 4px;
}

.l9-home-side-value {
    color: var(--l9-text);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 18px;
}

.l9-divider {
    border: 0;
    border-top: 1px solid var(--l9-border);
    margin: 18px 0;
}


/* ========================================================= */
/* SECTION: SPECIALIST CONTROLS                              */
/* ========================================================= */


/* ========================================================= */
/* CONTROL: ctrl_pausetimeline                               */
/* PURPOSE                                                   */
/* Visual control for pause start / pause end selection      */
/* FUNCTIONAL MODEL                                          */
/* - Today marker fixed                                      */
/* - Pause start marker fixed                                */
/* - End marker moves                                        */
/* - Active bar shows pause window                           */
/* ========================================================= */

.pause-timeline-wrap {
    position: relative;
    height: 46px;
    margin-top: 12px;
}

.pause-timeline-base {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 8px;
    transform: translateY(-50%);
    background: #4a4a4a;
    border-radius: 999px;
}

.pause-timeline-active {
    position: absolute;
    top: 50%;
    height: 8px;
    transform: translateY(-50%);
    background: #d4a64a;
    border-radius: 999px;
}

.pause-marker {
    position: absolute;
    top: 50%;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    z-index: 2;
    pointer-events: none;
}

.pause-marker-today {
    left: 0%;
    background: #9a9a9a;
    box-shadow: 0 0 0 4px rgba(154,154,154,.12);
}

.pause-marker-start {
    background: #d4a64a;
    box-shadow: 0 0 0 5px rgba(212,166,74,.18);
}

.pause-marker-end {
    background: #d4a64a;
    box-shadow: 0 0 0 5px rgba(212,166,74,.18);
}

.pause-range {
    position: absolute;
    left: 6.25%;
    width: 93.75%;
    top: 50%;
    transform: translateY(-50%);
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    z-index: 3;
    margin: 0;
}

    .pause-range:focus {
        outline: none;
    }

    .pause-range::-webkit-slider-runnable-track {
        height: 30px;
        background: transparent;
        border: none;
    }

    .pause-range::-moz-range-track {
        height: 30px;
        background: transparent;
        border: none;
    }

    .pause-range::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 30px;
        height: 30px;
        margin-top: 0;
        border-radius: 999px;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    .pause-range::-moz-range-thumb {
        width: 30px;
        height: 30px;
        border-radius: 999px;
        background: transparent;
        border: none;
        cursor: pointer;
    }

#pauseStartTextAnchor {
    min-width: 140px;
}


/* ========================================================= */
/* LIST TIMETABLE                                            */
/* PURPOSE                                                   */
/* Full timetable styling block for list_timetable.ascx      */
/* Includes:                                                 */
/* - header + toolbar                                        */
/* - date strip                                              */
/* - mode toggle                                             */
/* - location filter buttons / dropdown / single label       */
/* - grid mode                                               */
/* - list mode                                               */
/* - quick booking card                                      */
/* - responsive behaviour                                    */
/* ========================================================= */

.list_timetable {
    width: 100%;
}

    .list_timetable .l9-timetable-title {
        margin: 0 0 8px 0;
        color: var(--l9-text);
        font-family: var(--l9-font-heading);
        font-size: 1.75rem;
        line-height: 1.05;
    }

    .list_timetable .l9-timetable-subtitle {
        margin: 0;
        color: var(--l9-text-muted);
        line-height: 1.55;
        max-width: 860px;
    }

    .list_timetable .l9-timetable-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 18px;
    }

    .list_timetable .l9-timetable-header-main {
        min-width: 0;
        flex: 1 1 auto;
    }

    .list_timetable .l9-timetable-header-actions {
        flex: 0 0 auto;
        display: flex;
        justify-content: flex-end;
        align-items: flex-start;
    }

    .list_timetable .l9-timetable-toolbar {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 18px;
    }

    .list_timetable .l9-timetable-toolbar-left {
        min-width: 0;
        flex: 1 1 auto;
    }

    .list_timetable .l9-timetable-toolbar-right {
        flex: 0 0 auto;
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }

    /* DATE STRIP */

    .list_timetable .l9-date-strip {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .list_timetable .l9-date-chip {
        min-width: 72px;
        min-height: 64px;
        padding: 8px 10px;
        border-radius: 14px;
        border: 1px solid var(--l9-border);
        background: rgba(255,255,255,0.02);
        color: var(--l9-text);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: all .2s ease;
    }

        .list_timetable .l9-date-chip:hover {
            border-color: rgba(212,166,74,.45);
        }

        .list_timetable .l9-date-chip.is-active {
            background: #d4a64a;
            color: #111111;
            border-color: #d4a64a;
            font-weight: 700;
        }

    .list_timetable .l9-date-chip-top {
        font-size: 0.72rem;
        text-transform: uppercase;
        line-height: 1;
        margin-bottom: 4px;
    }

    .list_timetable .l9-date-chip-bottom {
        font-size: 1.35rem;
        line-height: 1;
        font-weight: 700;
    }

    /* MODE TOGGLE */

    .list_timetable .l9-mode-toggle {
        display: inline-flex;
        border: 1px solid var(--l9-border);
        border-radius: 14px;
        overflow: hidden;
        background: rgba(255,255,255,0.02);
    }

    .list_timetable .l9-mode-btn {
        min-width: 96px;
        padding: 10px 16px;
        border: 0;
        background: transparent;
        color: var(--l9-text);
        cursor: pointer;
        transition: all .2s ease;
        font-weight: 700;
    }

        .list_timetable .l9-mode-btn.is-active {
            background: #d4a64a;
            color: #111111;
        }

    /* LOCATION FILTERS */

    .list_timetable .l9-location-filter {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .list_timetable .l9-location-filter-btn {
        min-height: 40px;
        padding: 0 14px;
        border-radius: 999px;
        border: 1px solid var(--l9-border);
        background: rgba(255,255,255,0.02);
        color: var(--l9-text);
        font-weight: 700;
        transition: all .2s ease;
        cursor: pointer;
    }

        .list_timetable .l9-location-filter-btn:hover {
            border-color: rgba(212,166,74,.45);
        }

        .list_timetable .l9-location-filter-btn.is-active {
            background: #d4a64a;
            color: #111111;
            border-color: #d4a64a;
        }

    .list_timetable .l9-location-filter-select-wrap {
        min-width: 220px;
    }

    .list_timetable .l9-location-filter-single {
        color: var(--l9-text);
        font-weight: 700;
        padding-top: 10px;
    }

    /* PANELS */

    .list_timetable [data-l9-timetable-panel] {
        display: none;
    }

        .list_timetable [data-l9-timetable-panel].is-active {
            display: block;
        }

    /* GRID MODE */

    .list_timetable .l9-week-grid {
        display: grid;
        grid-template-columns: 86px repeat(7, minmax(92px, 1fr));
        gap: 8px;
        align-items: stretch;
    }

    .list_timetable .l9-week-head {
        min-height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--l9-text-muted);
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

        .list_timetable .l9-week-head.is-selected {
            color: #d4a64a;
        }

    .list_timetable .l9-week-head-time {
        justify-content: flex-start;
    }

    .list_timetable .l9-time-cell {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        color: var(--l9-text);
        font-weight: 700;
        font-size: 0.95rem;
        padding-top: 14px;
        padding-right: 8px;
    }

    .list_timetable .l9-grid-cell {
        min-height: 94px;
    }

        .list_timetable .l9-grid-cell.is-selected-day {
            outline: 1px solid rgba(212,166,74,0.35);
            outline-offset: -1px;
        }

    .list_timetable .l9-grid-session-stack {
        display: flex;
        flex-direction: column;
        gap: 8px;
        min-height: 100%;
    }

    .list_timetable .l9-grid-session {
        width: 100%;
        min-height: 94px;
        border-radius: 14px;
        padding: 8px;
        border: 1px solid rgba(255,255,255,.10);
        background: rgba(255,255,255,0.03);
        color: var(--l9-text);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        text-align: left;
        transition: all .2s ease;
        cursor: pointer;
    }

        .list_timetable .l9-grid-session:hover {
            transform: translateY(-1px);
            border-color: rgba(212,166,74,.45);
        }

        .list_timetable .l9-grid-session.is-selected {
            box-shadow: 0 0 0 1px rgba(212,166,74,.35);
        }

        .list_timetable .l9-grid-session:disabled,
        .list_timetable .l9-grid-session.is-disabled {
            opacity: .45;
            cursor: not-allowed;
        }

        .list_timetable .l9-grid-session.level-1 {
            background: linear-gradient(180deg, rgba(255,193,7,.16) 0%, rgba(255,193,7,.10) 100%);
            border-color: rgba(255,193,7,.28);
        }

        .list_timetable .l9-grid-session.level-2 {
            background: linear-gradient(180deg, rgba(255,145,0,.22) 0%, rgba(255,145,0,.14) 100%);
            border-color: rgba(255,145,0,.34);
        }

        .list_timetable .l9-grid-session.level-3 {
            background: linear-gradient(180deg, rgba(255,106,0,.24) 0%, rgba(255,106,0,.16) 100%);
            border-color: rgba(255,106,0,.36);
        }

    .list_timetable .l9-grid-session-time {
        font-size: 0.72rem;
        line-height: 1.15;
        opacity: .92;
    }

    .list_timetable .l9-grid-session-title {
        display: block;
        font-size: 0.92rem;
        line-height: 1.15;
        font-weight: 700;
    }

    .list_timetable .l9-grid-session-meta {
        display: block;
        font-size: 0.78rem;
        color: var(--l9-text-muted);
        line-height: 1.2;
    }

    .list_timetable .l9-grid-session-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 22px;
        padding: 0 8px;
        border-radius: 999px;
        font-size: 0.68rem;
        font-weight: 700;
        border: 1px solid rgba(255,255,255,.16);
        background: rgba(0,0,0,.18);
    }

    .list_timetable .l9-timetable-footnote {
        margin-top: 14px;
        color: var(--l9-text-muted);
        font-size: 0.85rem;
    }

    /* LIST MODE */

    .list_timetable .l9-day-list-header {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        align-items: baseline;
        margin-bottom: 14px;
    }

    .list_timetable .l9-day-list-title {
        color: #d4a64a;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .list_timetable .l9-day-list-subtitle {
        color: var(--l9-text-muted);
        font-size: 0.88rem;
    }

    .list_timetable .l9-day-location-group {
        margin-bottom: 18px;
    }

    .list_timetable .l9-day-location-title {
        color: var(--l9-text);
        font-weight: 700;
        margin-bottom: 10px;
    }

    .list_timetable .l9-day-agenda {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 16px;
    }

    .list_timetable .l9-agenda-item {
        width: 100%;
        border-radius: 16px;
        border: 1px solid var(--l9-border);
        background: rgba(255,255,255,0.02);
        color: var(--l9-text);
        display: grid;
        grid-template-columns: 96px 1fr auto;
        gap: 14px;
        padding: 14px;
        text-align: left;
        align-items: center;
        transition: all .2s ease;
        cursor: pointer;
    }

        .list_timetable .l9-agenda-item:hover,
        .list_timetable .l9-agenda-item.is-selected {
            border-color: rgba(212,166,74,.45);
            background: rgba(255,255,255,0.04);
        }

        .list_timetable .l9-agenda-item:disabled,
        .list_timetable .l9-agenda-item.is-disabled {
            opacity: .45;
            cursor: not-allowed;
        }

    .list_timetable .l9-agenda-time {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .list_timetable .l9-agenda-time-main {
        font-weight: 800;
        font-size: 1rem;
        line-height: 1.1;
    }

    .list_timetable .l9-agenda-time-sub {
        color: var(--l9-text-muted);
        font-size: 0.86rem;
    }

    .list_timetable .l9-agenda-main {
        min-width: 0;
    }

    .list_timetable .l9-agenda-title {
        font-weight: 800;
        font-size: 1.02rem;
        margin-bottom: 4px;
    }

    .list_timetable .l9-agenda-meta {
        color: var(--l9-text-muted);
        line-height: 1.35;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        align-items: center;
    }

    .list_timetable .l9-agenda-action {
        font-weight: 700;
        color: var(--l9-accent);
        white-space: nowrap;
    }

    /* QUICK BOOK CARD */

    .list_timetable .l9-quick-book-card {
        display: grid;
        grid-template-columns: 112px 1fr;
        gap: 14px;
        border-radius: 18px;
        border: 1px solid var(--l9-border);
        background: rgba(255,255,255,0.03);
        padding: 14px;
        margin-bottom: 12px;
    }

    .list_timetable .l9-quick-book-left {
        min-width: 0;
    }

    .list_timetable .l9-quick-book-main {
        min-width: 0;
    }

    .list_timetable .l9-quick-book-badge {
        min-height: 110px;
        border-radius: 14px;
        background: linear-gradient(180deg, rgba(255,106,0,.75) 0%, rgba(255,145,0,.68) 100%);
        color: #111111;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 10px;
        font-weight: 800;
        line-height: 1.2;
    }

    .list_timetable .l9-quick-book-title {
        font-size: 1.25rem;
        font-weight: 800;
        margin-bottom: 4px;
    }

    .list_timetable .l9-quick-book-meta {
        color: var(--l9-text-muted);
        margin-bottom: 6px;
    }

    .list_timetable .l9-quick-book-desc {
        margin-bottom: 8px;
        color: var(--l9-text);
    }

    .list_timetable .l9-quick-book-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .list_timetable .l9-quick-book-actions {
        display: grid;
        gap: 10px;
    }

    /* EMPTY HELPERS */

    .list_timetable .l9-day-list-empty {
        margin-bottom: 16px;
    }

/* RESPONSIVE */

@media (max-width: 991.98px) {
    .list_timetable .l9-timetable-header,
    .list_timetable .l9-timetable-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .list_timetable .l9-timetable-header-actions,
    .list_timetable .l9-timetable-toolbar-right {
        justify-content: flex-start;
    }

    .list_timetable .l9-date-strip {
        overflow-x: auto;
        flex-wrap: nowrap;
        width: 100%;
        padding-bottom: 4px;
    }

    .list_timetable .l9-date-chip {
        flex: 0 0 auto;
    }

    .list_timetable .l9-week-grid {
        grid-template-columns: 72px repeat(7, minmax(92px, 1fr));
    }

    .list_timetable .l9-location-filter-select-wrap {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    /* Grid panel must scroll horizontally so the min-width grid stays contained
       within the component rather than causing full-page horizontal overflow. */
    .list_timetable [data-l9-timetable-panel="grid"] {
        overflow-x: auto;
    }

    .list_timetable .l9-week-grid {
        min-width: 820px;
    }

    .list_timetable .l9-agenda-item {
        grid-template-columns: 84px 1fr;
        padding: 12px;
    }

    .list_timetable .l9-agenda-action {
        grid-column: 2;
        margin-top: 4px;
    }

    .list_timetable .l9-quick-book-card {
        grid-template-columns: 1fr;
    }

    .list_timetable .l9-quick-book-badge {
        min-height: 72px;
    }
}

/* ========================================================= */
/* SECTION: LIST / MEDIA                                     */
/* ========================================================= */


/* ========================================================= */
/* CONTROL: list_media                                       */
/* PURPOSE                                                   */
/* Large image/video + text rows                             */
/* ========================================================= */

.l9-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.l9-media-row {
    display: flex;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--l9-border);
    border-radius: 20px;
    background: rgba(255,255,255,0.02);
}

.l9-media-row-thumb {
    flex: 0 0 220px;
    min-height: 140px;
    border-radius: 18px;
    background: #2b2b2b;
    color: var(--l9-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.l9-media-row-body {
    flex: 1 1 auto;
    min-width: 0;
}

.l9-media-row-meta {
    margin-bottom: 8px;
    color: var(--l9-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.l9-media-row-title {
    font-family: var(--l9-font-heading);
    font-size: 1.5rem;
    line-height: 1.1;
    color: var(--l9-text);
    margin-bottom: 8px;
}

.l9-media-row-desc {
    color: var(--l9-text-muted);
    line-height: 1.65;
    margin-bottom: 14px;
}

.l9-media-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


/* ========================================================= */
/* CONTROL: list_featurescroller                             */
/* PURPOSE                                                   */
/* Swipeable / scrollable feature tiles                      */
/* ========================================================= */

.l9-horizontal-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
}

.l9-horizontal-tile {
    min-width: 420px;
    max-width: 420px;
    border: 1px solid var(--l9-border);
    border-radius: 22px;
    background: rgba(255,255,255,0.02);
    overflow: hidden;
    scroll-snap-align: start;
}

.l9-horizontal-tile-media {
    height: 220px;
    background: #2b2b2b;
    color: var(--l9-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.l9-horizontal-tile-body {
    padding: 18px;
}

.l9-horizontal-tile-title {
    font-family: var(--l9-font-heading);
    font-size: 1.45rem;
    line-height: 1.1;
    color: var(--l9-text);
    margin-bottom: 8px;
}

.l9-horizontal-tile-desc {
    color: var(--l9-text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.l9-horizontal-tile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


/* ========================================================= */
/* CONTROL: list_faqaccordion                                */
/* PURPOSE                                                   */
/* FAQ answer layouts                                        */
/* ========================================================= */

.l9-faq-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.l9-faq-followups {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


/* ========================================================= */
/* SECTION: MODAL HELPERS                                    */
/* ========================================================= */

.l9-modal-media {
    border-radius: 18px;
    overflow: hidden;
    background: #222222;
}

.l9-modal-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.l9-modal-action-stack {
    display: grid;
    gap: 10px;
}


/* ========================================================= */
/* SECTION: EMPTY STATES                                     */
/* ========================================================= */

.l9-empty-state {
    border: 1px solid var(--l9-border);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    background: rgba(255,255,255,0.02);
}

.l9-empty-state-title {
    color: var(--l9-text);
    font-family: var(--l9-font-heading);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.l9-empty-state-copy {
    color: var(--l9-text-muted);
    margin-bottom: 16px;
}


/* ========================================================= */
/* SECTION: ASK LANA                                         */
/* ========================================================= */

.l9-lana-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.l9-lana-notes {
    border: 1px solid var(--l9-border);
    border-radius: 20px;
    background: rgba(255,255,255,0.02);
    padding: 18px;
    height: 100%;
}

.l9-lana-panel {
    border: 1px solid var(--l9-border);
    border-radius: 22px;
    background: rgba(255,255,255,0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 760px;
}

.l9-lana-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 18px 14px 18px;
    border-bottom: 1px solid var(--l9-border);
    background: rgba(255,255,255,0.02);
}

.l9-lana-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.l9-lana-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(180deg, #d4a64a 0%, #b98524 100%);
    color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--l9-font-heading);
}

.l9-lana-title {
    color: var(--l9-text);
    font-weight: 800;
    font-size: 1.05rem;
}

.l9-lana-subtitle {
    color: var(--l9-text-muted);
    font-size: 0.88rem;
}

.l9-lana-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--l9-border);
    background: rgba(255,255,255,0.015);
}

.l9-lana-messages {
    flex: 1 1 auto;
    padding: 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 420px;
}

.l9-lana-message {
    display: flex;
}

.l9-lana-message-assistant {
    justify-content: flex-start;
}

.l9-lana-message-user {
    justify-content: flex-end;
}

.l9-lana-bubble {
    max-width: min(680px, 88%);
    border-radius: 18px;
    padding: 14px 16px;
    line-height: 1.5;
    border: 1px solid var(--l9-border);
}

.l9-lana-message-assistant .l9-lana-bubble {
    background: rgba(255,255,255,0.04);
    color: var(--l9-text);
}

.l9-lana-message-user .l9-lana-bubble {
    background: linear-gradient(180deg, rgba(212,166,74,.22) 0%, rgba(212,166,74,.14) 100%);
    border-color: rgba(212,166,74,.38);
    color: var(--l9-text);
}

.l9-lana-rich-card {
    width: min(720px, 100%);
    border: 1px solid var(--l9-border);
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    padding: 16px;
}

.l9-lana-rich-meta {
    color: var(--l9-accent);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.l9-lana-rich-title {
    color: var(--l9-text);
    font-family: var(--l9-font-heading);
    font-size: 1.2rem;
    line-height: 1.1;
    margin-bottom: 8px;
}

.l9-lana-rich-desc {
    color: var(--l9-text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.l9-lana-link-card {
    border: 1px solid var(--l9-border);
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
    padding: 14px;
    margin-bottom: 12px;
}

.l9-lana-link-card-title {
    color: var(--l9-text);
    font-weight: 700;
    margin-bottom: 4px;
}

.l9-lana-link-card-url {
    color: var(--l9-text-muted);
    font-size: 0.88rem;
    word-break: break-all;
}

.l9-lana-followups {
    width: min(720px, 100%);
    border: 1px solid var(--l9-border);
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    padding: 14px;
}

.l9-lana-composer {
    padding: 16px 18px 18px 18px;
    border-top: 1px solid var(--l9-border);
    background: rgba(255,255,255,0.02);
}


/* ========================================================= */
/* SECTION: RESPONSIVE                                       */
/* ========================================================= */

@media (max-width: 991.98px) {
    .l9-timetable-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .l9-date-strip {
        overflow-x: auto;
        flex-wrap: nowrap;
        width: 100%;
        padding-bottom: 4px;
    }

    .l9-date-chip {
        flex: 0 0 auto;
    }

    .l9-week-grid {
        grid-template-columns: 72px repeat(7, minmax(92px, 1fr));
    }

    .l9-media-row {
        flex-direction: column;
    }

    .l9-media-row-thumb {
        flex: 0 0 auto;
        width: 100%;
        min-height: 200px;
    }

    .l9-horizontal-tile {
        min-width: 320px;
        max-width: 320px;
    }

    .l9-lana-shell {
        grid-template-columns: 1fr;
    }

    .l9-lana-panel {
        min-height: 680px;
    }
}

@media (max-width: 767.98px) {
    .l9-sectionheader-top {
        flex-direction: column;
        align-items: stretch;
    }

    .l9-sectionheader-actions {
        justify-content: flex-start;
    }

    .l9-sectionheader-title {
        font-size: 1.45rem;
    }

    .l9-home-side-value {
        font-size: 18px;
    }

    /* Match the scoped fix — contain grid overflow within the panel. */
    [data-l9-timetable-panel="grid"] {
        overflow-x: auto;
    }

    .l9-week-grid {
        min-width: 820px;
    }

    .l9-agenda-item {
        grid-template-columns: 84px 1fr 16px;
        padding: 12px;
    }

    .l9-quick-book-card {
        grid-template-columns: 1fr;
    }

    .l9-quick-book-badge {
        min-height: 72px;
    }

    .l9-faq-media-grid {
        grid-template-columns: 1fr;
    }

    .l9-lana-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .l9-lana-bubble,
    .l9-lana-rich-card,
    .l9-lana-followups {
        max-width: 100%;
        width: 100%;
    }

    .l9-lana-panel {
        min-height: 620px;
    }
}

/* ========================================================= */
/* CONTROL: layout_stickyactionbar                           */
/* PURPOSE                                                   */
/* Script-assisted sticky action bar                         */
/* ========================================================= */

.l9-stickybar-wrap {
    position: relative;
    width: 100%;
}

.l9-stickybar-spacer {
    display: none;
    height: 0;
}

.l9-stickybar-card {
    border: 1px solid var(--l9-border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
    background: rgba(31,31,31,0.96);
    backdrop-filter: blur(10px);
    box-shadow: var(--l9-shadow-strong);
    z-index: 1030;
}

.l9-stickybar-fixed-top {
    position: fixed !important;
}

.l9-stickybar-fixed-bottom {
    position: fixed !important;
}

@media (min-width: 992px) {
    .l9-stickybar-card {
        flex-direction: row;
        align-items: center;
    }
}

/* ========================================================= */
/* CONTROL: ctrl_daterangeselector                           */
/* PURPOSE                                                   */
/* Expanded date range selector for From / To date picking   */
/* ========================================================= */

.l9-daterange-selector {
    width: 100%;
}

.l9-daterange-display-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.l9-daterange-display {
    border: 1px solid var(--l9-border);
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    color: var(--l9-text);
    padding: 14px 16px;
    text-align: left;
    transition: all .2s ease;
}

    .l9-daterange-display:hover,
    .l9-daterange-display.is-active {
        border-color: rgba(212,166,74,.55);
        background: rgba(255,255,255,0.05);
    }

.l9-daterange-display-label {
    display: block;
    color: var(--l9-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.l9-daterange-display-value {
    display: block;
    color: var(--l9-text);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.25;
}

.l9-daterange-calendar-shell {
    border: 1px solid var(--l9-border);
    border-radius: 20px;
    background: rgba(255,255,255,0.02);
    padding: 16px;
}

.l9-daterange-calendar-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.l9-daterange-calendar-instruction {
    color: var(--l9-text-muted);
    text-align: center;
    font-size: 0.92rem;
    line-height: 1.35;
}

.l9-daterange-calendar-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.l9-daterange-month {
    min-width: 0;
}

.l9-daterange-month-title {
    color: var(--l9-text);
    font-family: var(--l9-font-heading);
    font-size: 1.25rem;
    line-height: 1.1;
    margin-bottom: 12px;
    text-align: center;
}

.l9-daterange-weekdays,
.l9-daterange-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.l9-daterange-weekdays {
    margin-bottom: 8px;
}

.l9-daterange-weekday {
    color: var(--l9-text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.l9-daterange-day {
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    color: var(--l9-text);
    font-weight: 700;
    transition: all .15s ease;
}

    .l9-daterange-day:hover {
        border-color: rgba(212,166,74,.45);
        background: rgba(255,255,255,0.06);
    }

    .l9-daterange-day.is-empty {
        background: transparent;
        pointer-events: none;
    }

    .l9-daterange-day.is-disabled {
        opacity: .26;
        cursor: not-allowed;
        background: rgba(255,255,255,0.015);
        color: var(--l9-text-muted);
    }

    .l9-daterange-day.is-in-range {
        background: rgba(212,166,74,.16);
        border-color: rgba(212,166,74,.20);
    }

    .l9-daterange-day.is-selected {
        background: var(--l9-accent);
        border-color: var(--l9-accent);
        color: #111111;
    }

@media (max-width: 991.98px) {
    .l9-daterange-calendar-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .l9-daterange-display-row {
        grid-template-columns: 1fr;
    }

    .l9-daterange-calendar-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .l9-daterange-day {
        min-height: 38px;
        border-radius: 10px;
    }
}

/* ========================================================= */
/* CONTROL: ctrl_productcomparison                           */
/* PURPOSE                                                   */
/* Generic comparison cards for memberships, passes, offers  */
/* and product tiers.                                        */
/* ========================================================= */

.l9-productcomparison {
    width: 100%;
}

.l9-productcomparison-header {
    margin-bottom: 18px;
}

.l9-productcomparison-title {
    margin: 0 0 8px 0;
    color: var(--l9-text);
    font-family: var(--l9-font-heading);
    font-size: 1.75rem;
    line-height: 1.05;
}

.l9-productcomparison-subtitle {
    margin: 0;
    color: var(--l9-text-muted);
    line-height: 1.55;
    max-width: 860px;
}

.l9-productcomparison-grid {
    display: grid;
    gap: 18px;
    align-items: stretch;
}

.l9-productcomparison-cols-1 .l9-productcomparison-grid {
    grid-template-columns: 1fr;
}

.l9-productcomparison-cols-2 .l9-productcomparison-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.l9-productcomparison-cols-3 .l9-productcomparison-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.l9-productcomparison-cols-4 .l9-productcomparison-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.l9-productcomparison-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid var(--l9-border);
    border-radius: 22px;
    background: rgba(255,255,255,0.025);
    padding: 22px;
    color: var(--l9-text);
    box-shadow: var(--l9-shadow-soft);
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

    .l9-productcomparison-card:hover {
        transform: translateY(-2px);
        border-color: rgba(212,166,74,.45);
        background: rgba(255,255,255,0.04);
    }

    .l9-productcomparison-card.is-featured {
        border-color: rgba(212,166,74,.72);
        background: linear-gradient(180deg, rgba(212,166,74,.12) 0%, rgba(255,255,255,0.025) 100%);
    }

    .l9-productcomparison-card.is-disabled {
        opacity: .52;
    }

.l9-productcomparison-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--l9-accent);
    color: #111111;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

.l9-productcomparison-card-head {
    margin-bottom: 18px;
}

.l9-productcomparison-card-title {
    color: var(--l9-text);
    font-family: var(--l9-font-heading);
    font-size: 1.55rem;
    line-height: 1.05;
    margin-bottom: 8px;
}

.l9-productcomparison-card-description {
    color: var(--l9-text-muted);
    line-height: 1.55;
}

.l9-productcomparison-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 18px;
}

.l9-productcomparison-price {
    color: var(--l9-text);
    font-family: var(--l9-font-heading);
    font-size: 2.1rem;
    line-height: 1;
}

.l9-productcomparison-price-suffix {
    color: var(--l9-text-muted);
    font-weight: 700;
}

.l9-productcomparison-features {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--l9-text);
}

    .l9-productcomparison-features ul {
        display: grid;
        gap: 10px;
        padding-left: 1.15rem;
        margin: 0;
    }

    .l9-productcomparison-features li {
        color: var(--l9-text);
        line-height: 1.45;
    }

.l9-productcomparison-footer-text {
    color: var(--l9-text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
    margin-top: auto;
    padding-top: 4px;
}

.l9-productcomparison-action {
    margin-top: 18px;
}

@media (max-width: 1199.98px) {
    .l9-productcomparison-cols-4 .l9-productcomparison-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .l9-productcomparison-cols-3 .l9-productcomparison-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .l9-productcomparison-cols-2 .l9-productcomparison-grid,
    .l9-productcomparison-cols-4 .l9-productcomparison-grid {
        grid-template-columns: 1fr;
    }

    .l9-productcomparison-card {
        padding: 18px;
    }

    .l9-productcomparison-card-title {
        font-size: 1.35rem;
    }

    .l9-productcomparison-price {
        font-size: 1.8rem;
    }
}

/* ========================================================= */
/* LIST: list_datalist                                       */
/* PURPOSE                                                   */
/* Dense data driven record list with optional media,        */
/* per row actions, selected row, More menu and pagination.  */
/* ========================================================= */

.list_datalist {
    width: 100%;
}

.l9-datalist-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.l9-datalist-header-main {
    min-width: 0;
}

.l9-datalist-title {
    margin: 0 0 4px 0;
    color: var(--l9-text);
    font-family: var(--l9-font-heading);
    font-size: 1.18rem;
    line-height: 1.1;
}

.l9-datalist-subtitle {
    margin: 0;
    color: var(--l9-text-muted);
    line-height: 1.45;
}

.l9-datalist-body {
    display: grid;
    gap: 7px;
}

.l9-datalist-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--l9-border);
    border-radius: 14px;
    background: rgba(255,255,255,0.025);
    color: var(--l9-text);
    transition: background .15s ease, border-color .15s ease;
}

    .l9-datalist-row:hover {
        border-color: rgba(212,166,74,.34);
        background: rgba(255,255,255,0.04);
    }

    .l9-datalist-row.is-selected {
        border-color: rgba(212,166,74,.82);
        background: rgba(212,166,74,.12);
    }

    .l9-datalist-row.is-highlight {
        border-color: rgba(212,166,74,.36);
    }

    .l9-datalist-row.is-disabled {
        opacity: .52;
    }

.list_datalist.is-compact .l9-datalist-row {
    min-height: 58px;
    padding: 7px 8px;
}

.list_datalist.is-comfortable .l9-datalist-row {
    min-height: 78px;
    padding: 11px;
}

.list_datalist.is-large .l9-datalist-row {
    min-height: 102px;
    padding: 16px;
}

.l9-datalist-media {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(212,166,74,.14);
    color: var(--l9-accent);
    font-weight: 900;
}

.list_datalist.is-compact .l9-datalist-media {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: .82rem;
}

.list_datalist.is-comfortable .l9-datalist-media {
    width: 52px;
    height: 52px;
    border-radius: 13px;
}

.list_datalist.is-large .l9-datalist-media {
    width: 70px;
    height: 70px;
    border-radius: 16px;
}

.l9-datalist-media.is-circle {
    border-radius: 999px;
}

.l9-datalist-media.is-rectangle {
    width: 70px;
}

.list_datalist.is-comfortable .l9-datalist-media.is-rectangle {
    width: 92px;
}

.list_datalist.is-large .l9-datalist-media.is-rectangle {
    width: 126px;
}

.l9-datalist-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.l9-datalist-play {
    position: absolute;
    inset: auto auto 5px 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(0,0,0,.72);
    color: #ffffff;
    font-size: .68rem;
}

.l9-datalist-main {
    min-width: 0;
}

.l9-datalist-topline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 1px;
}

.l9-datalist-meta {
    color: var(--l9-accent);
    font-size: .66rem;
    font-weight: 850;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.l9-datalist-titleline {
    color: var(--l9-text);
    font-weight: 850;
    line-height: 1.16;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list_datalist.is-compact .l9-datalist-titleline {
    font-size: .92rem;
}

.list_datalist.is-comfortable .l9-datalist-titleline,
.list_datalist.is-large .l9-datalist-titleline {
    font-size: 1.03rem;
}

.l9-datalist-subline,
.l9-datalist-description {
    color: var(--l9-text-muted);
    font-size: .78rem;
    line-height: 1.25;
}

.l9-datalist-subline {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.l9-datalist-description.is-hidden {
    display: none;
}

.l9-datalist-description.is-clamped {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

.l9-datalist-description.is-clamped-1 {
    -webkit-line-clamp: 1;
}

.l9-datalist-description.is-clamped-2 {
    -webkit-line-clamp: 2;
}

.l9-datalist-description.is-clamped-3 {
    -webkit-line-clamp: 3;
}

.l9-datalist-description.is-clamped-4 {
    -webkit-line-clamp: 4;
}

.l9-datalist-description.is-clamped-5 {
    -webkit-line-clamp: 5;
}

.l9-datalist-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    min-width: max-content;
}

.l9-datalist-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid var(--l9-border);
    border-radius: 10px;
    background: transparent;
    color: var(--l9-text);
    font-size: .76rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .015em;
    white-space: nowrap;
    cursor: pointer;
}

    .l9-datalist-action:hover {
        border-color: rgba(212,166,74,.45);
        color: var(--l9-text);
    }

    .l9-datalist-action.is-primary {
        border-color: var(--l9-accent);
        background: var(--l9-accent);
        color: #111111;
    }

    .l9-datalist-action.is-secondary {
        border-color: rgba(255,255,255,.22);
        background: rgba(255,255,255,.02);
    }

    .l9-datalist-action.is-danger {
        border-color: rgba(255,96,96,.55);
        color: #ffb1b1;
    }

    .l9-datalist-action.is-link {
        border-color: transparent;
        color: var(--l9-accent);
        padding-left: 3px;
        padding-right: 3px;
    }

    .l9-datalist-action.is-ghost {
        background: transparent;
    }

    .l9-datalist-action.is-icon {
        width: 30px;
        min-width: 30px;
        padding-left: 0;
        padding-right: 0;
    }

    .l9-datalist-action.is-pill {
        border-radius: 999px;
    }

    .l9-datalist-action:disabled,
    .l9-datalist-action.disabled {
        opacity: .42;
        cursor: not-allowed;
    }

.l9-datalist-action-icon {
    display: inline-flex;
    line-height: 1;
}

.l9-datalist-more .dropdown-menu {
    background: #181818;
    border: 1px solid var(--l9-border);
    border-radius: 14px;
    padding: 6px;
    box-shadow: var(--l9-shadow-soft);
}

.l9-datalist-more .dropdown-item {
    color: var(--l9-text);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: .86rem;
    font-weight: 750;
}

    .l9-datalist-more .dropdown-item:hover,
    .l9-datalist-more .dropdown-item:focus {
        background: rgba(212,166,74,.14);
        color: var(--l9-text);
    }

.l9-datalist-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.l9-datalist-paging-summary {
    color: var(--l9-text-muted);
    font-size: .86rem;
}

.l9-datalist-loadmore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(212,166,74,.46);
    border-radius: 12px;
    background: rgba(212,166,74,.12);
    color: var(--l9-accent);
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .02em;
}

    .l9-datalist-loadmore:hover {
        background: rgba(212,166,74,.18);
    }

.l9-datalist-pager {
    display: flex;
    justify-content: flex-end;
}

.l9-datalist-pager-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.l9-datalist-pagebtn {
    min-width: 32px;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
    color: var(--l9-text);
    font-size: .78rem;
    font-weight: 850;
}

    .l9-datalist-pagebtn.is-active {
        border-color: var(--l9-accent);
        background: var(--l9-accent);
        color: #111111;
    }

    .l9-datalist-pagebtn:disabled {
        opacity: .42;
        cursor: not-allowed;
    }

.l9-datalist-pager-ellipsis {
    color: var(--l9-text-muted);
    padding: 0 2px;
}

@media (max-width: 767.98px) {
    .l9-datalist-header {
        flex-direction: column;
        align-items: stretch;
    }

    .l9-datalist-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 8px;
    }

    .l9-datalist-actions {
        grid-column: auto;
        justify-content: flex-end;
        align-self: center;
        flex-wrap: nowrap;
        padding-top: 0;
    }

    .list_datalist.is-compact .l9-datalist-row {
        min-height: 72px;
    }

    .l9-datalist-action {
        min-height: 28px;
        padding: 0 8px;
        font-size: .68rem;
        border-radius: 9px;
    }

        .l9-datalist-action.is-icon {
            width: 28px;
            min-width: 28px;
        }

        .l9-datalist-action span:not(.l9-datalist-action-icon) {
            display: none;
        }

    .l9-datalist-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .l9-datalist-loadmore,
    .l9-datalist-pager {
        width: 100%;
    }

    .l9-datalist-pager-inner {
        justify-content: flex-start;
    }

    .l9-datalist-description.is-desktop-only {
        display: none;
    }
}

@media (min-width: 768px) {
    .l9-datalist-description.is-mobile-only {
        display: none;
    }
}}



/* modal_base */

body.l9-modal-open {
    overflow: hidden;
}

.l9-modal-root {
    position: fixed;
    inset: 0;
    z-index: 1080;
}

    .l9-modal-root:not(.is-open) {
        display: none;
    }

.l9-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.68);
    backdrop-filter: blur(3px);
}

.l9-modal-shell {
    position: absolute;
    background: #151515;
    border: 1px solid var(--l9-border);
    box-shadow: 0 24px 80px rgba(0,0,0,.45);
    color: var(--l9-text);
    overflow: hidden;
}

.l9-modal-root.is-popover .l9-modal-shell {
    top: 50%;
    left: 50%;
    width: min(680px, calc(100vw - 28px));
    max-height: calc(100vh - 42px);
    transform: translate(-50%, -50%);
    border-radius: 22px;
}

.l9-modal-root.is-slidein .l9-modal-shell {
    top: 0;
    right: 0;
    width: min(520px, 100vw);
    height: 100vh;
    border-radius: 22px 0 0 22px;
}

.l9-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 20px 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.l9-modal-header-main {
    min-width: 0;
}

.l9-modal-title {
    margin: 0;
    font-family: var(--l9-font-heading);
    font-size: 1.32rem;
    line-height: 1.12;
    color: var(--l9-text);
}

.l9-modal-subtitle {
    margin: 6px 0 0;
    color: var(--l9-text-muted);
    line-height: 1.35;
}

.l9-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: transparent;
    color: var(--l9-text);
    font-size: 1.4rem;
    line-height: 1;
}

.l9-modal-statusrow {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 12px 20px 0;
}

.l9-modal-body {
    padding: 18px 20px;
    overflow: auto;
    max-height: calc(100vh - 180px);
}

.l9-modal-root.is-slidein .l9-modal-body {
    max-height: calc(100vh - 172px);
}

.l9-modal-fields {
    display: grid;
    gap: 12px;
}

.l9-modal-field {
    display: grid;
    gap: 6px;
}

.l9-modal-field-label {
    color: var(--l9-accent);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.l9-modal-field-value {
    color: var(--l9-text);
    font-weight: 700;
    line-height: 1.35;
}

.l9-modal-input {
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px;
    background: rgba(255,255,255,.035);
    color: var(--l9-text);
    padding: 9px 11px;
    outline: none;
}

    .l9-modal-input:focus {
        border-color: rgba(212,166,74,.7);
    }

.l9-modal-check,
.l9-modal-option {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--l9-text);
}

.l9-modal-options {
    display: grid;
    gap: 8px;
}

.l9-modal-message {
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(212,166,74,.35);
    border-radius: 12px;
    background: rgba(212,166,74,.1);
    color: var(--l9-text);
}

    .l9-modal-message.is-error {
        border-color: rgba(255,96,96,.48);
        background: rgba(255,96,96,.11);
    }

.l9-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px 20px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.l9-modal-action {
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    background: transparent;
    color: var(--l9-text);
    font-weight: 850;
}

    .l9-modal-action.is-primary {
        border-color: var(--l9-accent);
        background: var(--l9-accent);
        color: #111111;
    }

    .l9-modal-action.is-danger {
        border-color: rgba(255,96,96,.55);
        color: #ffb1b1;
    }

    .l9-modal-action.is-ghost {
        border-color: transparent;
    }

@media (max-width: 767.98px) {
    .l9-modal-root.is-popover .l9-modal-shell,
    .l9-modal-root.is-slidein .l9-modal-shell {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100vw;
        height: auto;
        max-height: 92vh;
        transform: none;
        border-radius: 22px 22px 0 0;
    }

    .l9-modal-body {
        max-height: calc(92vh - 170px);
    }

    .l9-modal-footer {
        flex-direction: column-reverse;
    }

    .l9-modal-action {
        width: 100%;
    }
}



/* ========================================================= */
/* CONTROL: ctrl_loggedin                                    */
/* PURPOSE                                                   */
/* Session based logged in identity panel                    */
/* ========================================================= */

.l9-loggedin-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    background: linear-gradient(180deg, rgba(38,38,38,0.97) 0%, rgba(27,27,27,0.97) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--l9-shadow-strong);
}

.l9-loggedin-avatar-wrap {
    width: 96px;
    height: 96px;
    border-radius: 28px;
    background: rgba(212,166,74,0.16);
    border: 1px solid rgba(212,166,74,0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--l9-shadow-soft);
}

.l9-loggedin-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.l9-loggedin-initials {
    color: var(--l9-accent);
    font-family: var(--l9-font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.l9-loggedin-title {
    margin: 0 0 8px 0;
    color: var(--l9-text);
    font-family: var(--l9-font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.l9-loggedin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--l9-text-muted);
    font-weight: 600;
    margin-bottom: 10px;
}

.l9-loggedin-dot {
    color: var(--l9-accent);
}

.l9-loggedin-nickname {
    color: var(--l9-text-muted);
    margin-bottom: 16px;
}

    .l9-loggedin-nickname strong {
        color: var(--l9-text);
    }

.l9-loggedin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

@media (max-width: 767.98px) {
    .l9-loggedin-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 24px;
    }

    .l9-loggedin-avatar-wrap {
        margin: 0 auto;
    }

    .l9-loggedin-meta,
    .l9-loggedin-actions {
        justify-content: center;
    }
}

/* ========================================================= */
/* HOME DECISION HERO                                        */
/* PURPOSE                                                   */
/* Potent default.aspx decision panel                        */
/* ========================================================= */

.l9-home-hero {
    min-height: 430px;
    display: flex;
    align-items: center;
}

.l9-home-hero-inner {
    max-width: 820px;
}

.l9-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.l9-home-context {
    margin-top: 20px;
    color: var(--l9-text-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .l9-home-hero {
        min-height: 360px;
    }

    .l9-home-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* ========================================================= */
/* L9.FITNESS LIGHT PORTAL PRODUCTION UX PATCH               */
/* PURPOSE                                                   */
/* Finishes the light portal around membership management    */
/* and support routing without changing the ASCX architecture */
/* ========================================================= */

.l9-utility-hero {
    min-height: 380px;
}

.l9-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.l9-title-page {
    margin-bottom: 8px;
}

.l9-page-heading-actions,
.l9-action-row,
.l9-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.l9-current-membership {
    border-color: rgba(212,166,74,0.42);
}

.l9-card-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.l9-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(212,166,74,0.14);
    border: 1px solid rgba(212,166,74,0.45);
    color: var(--l9-accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
}

.l9-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.l9-metric-card,
.l9-mini-summary {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    padding: 16px;
}

.l9-mini-label {
    color: var(--l9-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.l9-mini-value {
    color: var(--l9-text);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    word-break: break-word;
}

.l9-membership-grid,
.l9-membership-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.l9-membership-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
}

.l9-membership-row-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.l9-membership-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212,166,74,0.16);
    color: var(--l9-accent);
    font-weight: 900;
}

.l9-row-title {
    color: var(--l9-text);
    font-weight: 800;
    line-height: 1.25;
}

.l9-row-meta,
.l9-row-closed {
    color: var(--l9-text-muted);
    font-size: 0.92rem;
    line-height: 1.35;
}

.l9-btn-small {
    min-height: 38px;
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
}

.l9-muted-panel {
    opacity: 0.92;
}

.l9-warning-box {
    background: rgba(212,166,74,0.12);
    border: 1px solid rgba(212,166,74,0.36);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 18px;
    color: var(--l9-text);
    font-weight: 650;
    line-height: 1.45;
}

.l9-breadcrumb {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 16px !important;
}

.l9-breadcrumb-link {
    color: var(--l9-text-muted);
    text-decoration: none;
}

.l9-breadcrumb-link:hover {
    color: var(--l9-text);
}

.l9-breadcrumb .breadcrumb-item.active .l9-breadcrumb-text {
    color: var(--l9-text);
}

.l9-breadcrumb .breadcrumb-item:not(.active) .l9-breadcrumb-text {
    color: var(--l9-text-muted);
}

.l9-breadcrumb-inner {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.l9-breadcrumb-icon svg {
    width: 13px;
    height: 13px;
}

/* PAUSE FLOW — sectioned, chip-driven duration picker */

.l9-pause-section {
    margin-top: 28px;
}

    .l9-pause-section:first-of-type {
        margin-top: 20px;
    }

.l9-pause-section-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--l9-text);
    margin: 0 0 12px 0;
}

.l9-pause-subfield-label {
    color: var(--l9-text-muted);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.l9-pause-paid-through {
    color: var(--l9-text-muted);
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.l9-bonus-hero {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(200, 168, 75, 0.07);
    border: 1px solid rgba(200, 168, 75, 0.25);
    border-radius: 8px;
    padding: 12px 16px;
}

.l9-bonus-hero-days {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--l9-accent);
    white-space: nowrap;
    line-height: 1;
    padding-top: 2px;
}

.l9-bonus-hero-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.l9-bonus-hero-text {
    font-size: 0.875rem;
    color: var(--l9-text-muted);
    line-height: 1.45;
}

.l9-bonus-hero-detail {
    margin: 0;
}

.l9-bonus-hero-detail-toggle {
    font-size: 0.78rem;
    color: var(--l9-accent);
    cursor: pointer;
    list-style: none;
    display: inline;
    user-select: none;
}

.l9-bonus-hero-detail-toggle::-webkit-details-marker {
    display: none;
}

.l9-bonus-hero-detail-body {
    font-size: 0.8rem;
    color: var(--l9-text-muted);
    margin: 4px 0 0;
    line-height: 1.45;
}

.l9-pause-summary-bonus-warn {
    display: block;
    font-size: 0.82rem;
    color: var(--l9-accent);
    font-weight: 400;
    margin-top: 4px;
    opacity: 0.85;
}

.l9-pause-bonus-separator {
    width: 100%;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--l9-accent);
    margin: 10px 0 4px;
}

    .l9-pause-quickpick.is-bonus {
        border-color: var(--l9-accent);
        color: var(--l9-accent);
    }

    .l9-pause-quickpick.is-bonus:hover,
    .l9-pause-quickpick.is-bonus:focus {
        background: rgba(200, 168, 75, 0.1);
        outline: none;
    }

    .l9-pause-quickpick.is-bonus.is-selected {
        background: var(--l9-accent);
        color: #111;
    }


/* ============================================================
   IMPERSONATION BANNER
   Amber sticky bar shown at the top of every page while a
   coach or admin is viewing the portal as a member.
   ============================================================ */

.l9-impersonation-banner {
    position: sticky;
    top: 0;
    z-index: 1060;
    background: #92400e;
    color: #fff;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
}

.l9-impersonation-banner-text {
    flex: 1;
}

.l9-impersonation-banner-text strong {
    font-weight: 700;
}

.l9-impersonation-banner-exit {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    text-decoration: none;
}

.l9-impersonation-banner-exit:hover,
.l9-impersonation-banner-exit:focus {
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    color: #fff;
}


/* ============================================================
   CRM PAGE (crm.aspx)
   Staff member search and impersonation entry point.
   ============================================================ */

.l9-crm-search-card {
    background: var(--l9-surface);
    border: 1px solid var(--l9-border);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
}

.l9-crm-search-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--l9-text-muted);
    margin-bottom: 10px;
}

.l9-crm-result-list {
    margin-bottom: 8px;
}

.l9-crm-result-item {
    background: var(--l9-surface);
    border: 1px solid var(--l9-border);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.l9-crm-result-info {
    flex: 1;
    min-width: 0;
}

.l9-crm-result-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--l9-text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.l9-crm-result-meta {
    font-size: 0.82rem;
    color: var(--l9-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.l9-crm-result-action {
    flex-shrink: 0;
}

.l9-crm-confirm-card {
    background: var(--l9-surface);
    border: 2px solid #92400e;
    border-radius: 10px;
    padding: 28px 24px;
    margin-bottom: 24px;
}

.l9-crm-confirm-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #92400e;
    margin-bottom: 12px;
}

.l9-crm-confirm-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--l9-text);
    margin-bottom: 2px;
}

.l9-crm-confirm-details {
    margin-bottom: 16px;
}

.l9-crm-confirm-email {
    font-size: 0.88rem;
    color: var(--l9-text-muted);
    margin-bottom: 0;
}

.l9-crm-confirm-detail {
    font-size: 0.88rem;
    color: var(--l9-text-muted);
    margin-top: 3px;
}

.l9-crm-confirm-warning {
    font-size: 0.83rem;
    color: var(--l9-text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ========================================================= */
/* PATTERN: coming-soon stub pages                           */
/* PURPOSE                                                   */
/* Shared layout for timetable.aspx, season.aspx,            */
/* programs.aspx and any future authenticated stub page.     */
/* ========================================================= */

.coming-soon-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 24px 40px;
    min-height: 40vh;
}

.coming-soon-icon {
    width: 52px;
    height: 52px;
    color: var(--l9-accent);
    margin-bottom: 20px;
    opacity: 0.75;
}

.coming-soon-title {
    font-family: var(--l9-font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--l9-text);
    margin-bottom: 8px;
}

.coming-soon-body {
    font-size: 0.95rem;
    color: var(--l9-text-muted);
    max-width: 340px;
    line-height: 1.55;
    margin-bottom: 28px;
}

/* ========================================================= */
/* CONTROL: l9-bottomnav                                     */
/* PURPOSE                                                   */
/* Fixed bottom navigation bar for authenticated users.      */
/* Mobile only — hidden at 768px+. Mirrors the Glide app     */
/* bottom tab bar: icon above label, active item in gold.    */
/* Items are defined in L9_Main.master.vb > BindBottomNav(). */
/* ========================================================= */

.l9-bottomnav {
    /* Hidden on desktop — flex only on mobile */
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--l9-bg);
    border-top: 1px solid var(--l9-border);
    /* Respect iOS notch / home indicator area */
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (max-width: 767.98px) {
    .l9-bottomnav {
        display: flex;
        flex-direction: row;
        align-items: stretch;
    }

    /* Push page content up so the last line of text clears the nav bar */
    .l9-main {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }
}

.l9-bottomnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 4px;
    text-decoration: none;
    color: var(--l9-text-muted);
    /* Minimum touch target height */
    min-height: 56px;
    min-width: 0;
    transition: color 0.15s ease;
}

.l9-bottomnav-item:hover,
.l9-bottomnav-item:focus {
    color: var(--l9-text);
    text-decoration: none;
}

.l9-bottomnav-item.l9-bottomnav-active {
    color: var(--l9-accent);
}

.l9-bottomnav-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.l9-bottomnav-label {
    font-family: var(--l9-font-body);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.l9-crm-empty {
    text-align: center;
    color: var(--l9-text-muted);
    font-size: 0.9rem;
    padding: 32px 0;
}

.l9-crm-result-count {
    font-size: 0.8rem;
    color: var(--l9-text-muted);
    margin-bottom: 12px;
}

.l9-crm-no-account {
    font-size: 0.78rem;
    color: var(--l9-text-muted);
    font-style: italic;
    white-space: nowrap;
}

.l9-crm-section-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-bottom: 8px;
    margin-top: 4px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--l9-border);
}

.l9-crm-section-title {
    font-family: var(--l9-font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--l9-text-muted);
}

.l9-crm-section-count {
    font-size: 0.75rem;
    color: var(--l9-text-muted);
    opacity: 0.6;
}

.l9-crm-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 2px 7px;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 7px;
    line-height: 1.6;
    white-space: nowrap;
}

.l9-crm-badge--active    { background: rgba(63, 166, 107, 0.15); color: #4ade80; }
.l9-crm-badge--trial     { background: rgba(212, 166, 74, 0.15);  color: var(--l9-accent); }
.l9-crm-badge--paused    { background: rgba(245, 158, 11, 0.15);  color: #f59e0b; }
.l9-crm-badge--pastdue   { background: rgba(201, 75, 75, 0.15);   color: var(--l9-danger); }
.l9-crm-badge--cancels   { background: rgba(249, 115, 22, 0.12);  color: #fb923c; }
.l9-crm-badge--cancelled { background: rgba(184, 184, 184, 0.08); color: var(--l9-text-muted); }
.l9-crm-badge--contact   { background: rgba(184, 184, 184, 0.06); color: var(--l9-text-muted); }

    .l9-pause-quickpick.is-bonus.is-selected .l9-pause-quickpick-suffix {
        color: rgba(17, 17, 17, 0.75);
    }

.l9-pause-view-toggle {
    display: inline-flex;
    border: 1px solid #444;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}

.l9-pause-view-btn {
    background: transparent;
    border: none;
    border-right: 1px solid #444;
    padding: 6px 18px;
    font-size: 0.875rem;
    color: var(--l9-text-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

    .l9-pause-view-btn:last-child {
        border-right: none;
    }

    .l9-pause-view-btn.is-active {
        background: var(--l9-accent);
        color: #111;
        font-weight: 600;
    }

    .l9-pause-view-btn:not(.is-active):hover {
        background: rgba(255, 255, 255, 0.06);
        color: var(--l9-text);
    }

.l9-pause-quickpick-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.l9-pause-quickpick-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.l9-pause-quickpick {
    flex: 1 1 auto;
    min-width: 90px;
    padding: 10px 14px;
    background: transparent;
    color: var(--l9-text);
    border: 1px solid #555;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
    white-space: nowrap;
}

    .l9-pause-quickpick:hover,
    .l9-pause-quickpick:focus {
        border-color: var(--l9-accent);
        outline: none;
    }

    .l9-pause-quickpick.is-selected {
        background: var(--l9-accent);
        border-color: var(--l9-accent);
        color: #111;
    }

.l9-pause-quickpick-suffix {
    color: var(--l9-text-muted);
    font-weight: 400;
    font-size: 0.8rem;
}

.l9-pause-quickpick.is-selected .l9-pause-quickpick-suffix {
    color: rgba(17, 17, 17, 0.75);
}

.l9-pause-calendar-wrap {
    margin-bottom: 8px;
}

.l9-pause-mondays-note {
    font-size: 0.85rem;
    color: var(--l9-text-muted);
    margin: 4px 0 0 0;
    font-style: italic;
}

.l9-pause-summary {
    color: var(--l9-text-muted);
    font-size: 1rem;
    min-height: 1.5rem;
    margin-top: 20px;
}

    .l9-pause-summary.is-active {
        color: var(--l9-text);
        font-weight: 600;
    }

.l9-pause-summary-meta {
    color: var(--l9-text-muted);
    font-weight: 400;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-left: 8px;
}

.l9-pause-back-to-presets {
    margin-top: 14px;
    text-align: center;
}

    .l9-pause-back-to-presets .l9-btn-link {
        font-size: 0.85rem;
        font-weight: 400;
        text-transform: none;
        letter-spacing: 0;
        color: var(--l9-text-muted);
    }

        .l9-pause-back-to-presets .l9-btn-link:hover,
        .l9-pause-back-to-presets .l9-btn-link:focus {
            color: var(--l9-text);
        }

@media (min-width: 640px) {
    .l9-pause-chip-group {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .l9-pause-chip {
        flex: 1 1 calc(50% - 5px);
        min-width: 0;
    }
}

/* DATE RANGE SELECTOR — inline month chevrons, locked-from box */

.l9-daterange-display.is-locked {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: transparent;
    border: 1px solid #333;
    color: var(--l9-text-muted);
    cursor: default;
    padding: 14px 18px;
    border-radius: var(--l9-radius-button);
}

.l9-daterange-month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.l9-daterange-month-title {
    flex: 1;
    text-align: center;
    font-weight: 700;
    color: var(--l9-text);
}

.l9-daterange-nav {
    background: transparent;
    border: 1px solid #444;
    color: var(--l9-text);
    font-size: 1.2rem;
    line-height: 1;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: color .15s ease, background .15s ease, border-color .15s ease;
}

    .l9-daterange-nav:hover,
    .l9-daterange-nav:focus {
        color: var(--l9-accent);
        border-color: var(--l9-accent);
        background: rgba(255, 255, 255, 0.04);
        outline: none;
    }

.l9-cancel-row {
    margin-top: 24px;
    text-align: center;
}

    .l9-cancel-row .l9-btn-link {
        font-size: 0.9rem;
        font-weight: 400;
        text-transform: none;
        letter-spacing: 0;
        color: var(--l9-text-muted);
        opacity: 0.85;
    }

        .l9-cancel-row .l9-btn-link:hover,
        .l9-cancel-row .l9-btn-link:focus {
            color: var(--l9-text);
            opacity: 1;
        }

.l9-error-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e0a0a;
    border: 1px solid #7a2020;
    color: #f08080;
    border-radius: 10px;
    padding: 14px 18px;
    max-width: 440px;
    width: calc(100% - 48px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.5);
}

.l9-error-toast-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.l9-error-toast-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.65;
    flex-shrink: 0;
}

    .l9-error-toast-close:hover {
        opacity: 1;
    }

.l9-back-link {
    display: block;
    width: fit-content;
    color: var(--l9-text-muted);
    margin-bottom: 18px;
    font-weight: 700;
}

.l9-back-link:hover,
.l9-back-link:focus {
    color: var(--l9-text);
}

.l9-location-card,
.l9-support-form-card {
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 20px;
    padding: 20px;
}

.l9-location-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,255,255,0.10);
    margin-bottom: 18px;
}

.l9-success-panel {
    border-color: rgba(87, 190, 124, 0.42);
}

.l9-form-checkline {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.l9-form-checkline input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    background-color: #181818;
    border: 1px solid #666666;
    border-radius: 5px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.l9-form-checkline input[type="checkbox"]:checked {
    background-color: var(--l9-accent);
    border-color: var(--l9-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath fill='%23111111' d='M6.2 11.4 2.7 7.9l1.4-1.4 2.1 2.1 5.7-5.7 1.4 1.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.l9-form-checkline label {
    line-height: 1.45;
}

@media (max-width: 991.98px) {
    .l9-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .l9-page-heading {
        align-items: stretch;
    }

    .l9-page-heading-actions,
    .l9-action-row,
    .l9-contact-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .l9-summary-grid {
        grid-template-columns: 1fr;
    }

    .l9-card-topline,
    .l9-membership-row {
        align-items: stretch;
        flex-direction: column;
    }
}

/* ---- Copy text control ---- */
.l9-copytext-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.l9-copytext-value {
    word-break: break-all;
}

.l9-copy-btn {
    background: none;
    border: 1px solid var(--l9-border, rgba(255,255,255,.18));
    border-radius: 4px;
    color: var(--l9-text-muted, #aaa);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 6px;
    transition: color .15s, border-color .15s;
    flex-shrink: 0;
    line-height: 1;
}

.l9-copy-btn:hover,
.l9-copy-btn:focus {
    color: var(--l9-gold, #c9a84c);
    border-color: var(--l9-gold, #c9a84c);
    outline: none;
}

.l9-copy-btn.is-copied {
    color: #6bcb77;
    border-color: #6bcb77;
}

.l9-support-ref {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.78rem;
    word-break: break-all;
    font-weight: 600;
}

/* ---- Paid through bar ---- */
.l9-paid-through-bar {
    border-top: 1px solid var(--l9-border, rgba(255,255,255,.1));
    padding: 18px 0 4px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.l9-paid-through-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--l9-text-muted, #aaa);
    text-transform: uppercase;
    white-space: nowrap;
}

.l9-paid-through-date {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--l9-text, #fff);
}

/* ---- Billing portal section ---- */
.l9-billing-portal-section {
    border-top: 1px solid var(--l9-border, rgba(255,255,255,.1));
    padding: 20px 0 8px;
    margin-bottom: 4px;
}

.l9-billing-portal-section .l9-eyebrow {
    margin-bottom: 6px;
}

.l9-billing-portal-section p {
    color: var(--l9-text-muted, #aaa);
    font-size: .88rem;
    margin-bottom: 12px;
}

/* ---- Activity log ---- */
.l9-action-log-list {
    display: flex;
    flex-direction: column;
}

.l9-action-log-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--l9-border, rgba(255,255,255,.07));
}

.l9-action-log-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.l9-action-log-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--l9-gold, #c9a84c);
    margin-top: 5px;
    flex-shrink: 0;
}

.l9-action-log-dot.is-failed {
    background: #e05252;
}

.l9-action-log-dot.is-pending {
    background: #888;
}

.l9-action-log-body {
    flex: 1;
}

.l9-action-log-title {
    font-weight: 600;
    font-size: .9rem;
    color: var(--l9-text, #fff);
}

.l9-action-log-meta {
    font-size: .8rem;
    color: var(--l9-text-muted, #aaa);
    margin-top: 2px;
}

/* ========================================================= */
/* CONTROL: layout_betanotice                                */
/* PURPOSE                                                   */
/* Slim beta notice bar + Bootstrap modal. Drop the control  */
/* on any page to mark it as beta. Bar sits at top of page   */
/* content. Modal has copy + optional video embed.           */
/* ========================================================= */

/* ---- Notice bar ---- */

.l9-beta-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    background: rgba(212, 166, 74, 0.07);
    border-bottom: 1px solid rgba(212, 166, 74, 0.18);
    margin-bottom: 16px;
}

.l9-beta-bar-badge {
    font-family: var(--l9-font-heading);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--l9-accent);
    background: rgba(212, 166, 74, 0.12);
    border: 1px solid rgba(212, 166, 74, 0.3);
    border-radius: 3px;
    padding: 2px 6px;
    flex-shrink: 0;
}

.l9-beta-bar-text {
    font-size: 0.8rem;
    color: var(--l9-text-muted);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.l9-beta-bar-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--l9-accent);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

.l9-beta-bar-link:hover { opacity: 0.75; }

.l9-beta-bar-arrow {
    width: 13px;
    height: 13px;
}

/* ---- Modal ---- */

.l9-beta-modal-content {
    background: var(--l9-surface);
    border: 1px solid var(--l9-border);
    border-radius: var(--l9-radius-card);
    color: var(--l9-text);
}

.l9-beta-modal-header {
    border-bottom: 1px solid var(--l9-border);
    padding: 16px 20px;
    align-items: center;
}

.l9-beta-modal-title-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.l9-beta-modal-badge {
    font-family: var(--l9-font-heading);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--l9-accent);
    background: rgba(212, 166, 74, 0.12);
    border: 1px solid rgba(212, 166, 74, 0.3);
    border-radius: 3px;
    padding: 2px 6px;
}

.l9-beta-modal-title {
    font-family: var(--l9-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--l9-text);
    margin: 0;
}

.l9-beta-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.l9-beta-modal-footer {
    border-top: 1px solid var(--l9-border);
    padding: 14px 20px;
    justify-content: flex-start;
}

/* ---- Video embed (when VideoUrl is set) ---- */

.l9-beta-video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.l9-beta-video-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ---- Video placeholder (when no VideoUrl) ---- */

.l9-beta-video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--l9-bg-soft);
    border: 1px dashed var(--l9-border);
    border-radius: 8px;
    padding: 32px 16px;
    color: var(--l9-text-muted);
}

.l9-beta-placeholder-icon {
    width: 36px;
    height: 36px;
    opacity: 0.4;
}

.l9-beta-placeholder-label {
    font-size: 0.82rem;
    opacity: 0.6;
}

/* ---- Copy block ---- */

.l9-beta-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.l9-beta-copy p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--l9-text-muted);
    margin: 0;
}

.l9-beta-copy-sign {
    color: var(--l9-text) !important;
    padding-top: 4px;
}

/* ---- Feedback form (replaces "Got it" footer) ---- */

.l9-beta-feedback {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.l9-beta-feedback-textarea {
    width: 100%;
    background: var(--l9-bg);
    border: 1px solid var(--l9-border);
    border-radius: 8px;
    color: var(--l9-text);
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 10px 12px;
    resize: none;
    outline: none;
    transition: border-color 0.15s;
    font-family: var(--l9-font-body, inherit);
}

.l9-beta-feedback-textarea::placeholder {
    color: var(--l9-text-muted);
    opacity: 0.7;
}

.l9-beta-feedback-textarea:focus {
    border-color: var(--l9-accent);
}

.l9-beta-feedback-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Inline text-style skip button — no pill, no border */
.l9-beta-skip-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.83rem;
    color: var(--l9-text-muted);
    cursor: pointer;
    transition: color 0.15s;
}

.l9-beta-skip-btn:hover {
    color: var(--l9-text);
}

/* Brief toast shown after feedback is sent */
.l9-beta-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--l9-surface);
    color: var(--l9-text);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    z-index: 9999;
    border: 1px solid var(--l9-border);
    white-space: nowrap;
    pointer-events: none;
    animation: l9FadeOut 0.4s ease 2.6s forwards;
}

@keyframes l9FadeOut {
    to { opacity: 0; transform: translateX(-50%) translateY(8px); }
}

/* ============================================================ */
/* TIMETABLE TILE CSS — compact mobile-first layout             */
/* Added 2026-05-30. Applies to all pages using list_timetable. */
/* ============================================================ */

/* Hide mode toggle when ShowModeToggle = False */
.list_timetable.l9-hide-mode-toggle .l9-mode-toggle { display: none; }

/* Date strip: horizontal scroll, no scrollbar */
.list_timetable .l9-date-strip { flex-wrap: nowrap; overflow-x: auto; overflow-y: visible; padding-bottom: 6px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; align-items: center; }
.list_timetable .l9-date-strip::-webkit-scrollbar { display: none; }

/* Date chips: compact so 7+ visible on phone */
.list_timetable .l9-date-chip { min-width: 44px; min-height: 54px; padding: 6px 5px; border-radius: 10px; }
.list_timetable .l9-date-chip-top    { font-size: 0.58rem; }
.list_timetable .l9-date-chip-bottom { font-size: 1.08rem; }

/* Weekend chips */
.list_timetable .l9-date-chip.is-weekend { background: rgba(212,166,74,0.07); border-color: rgba(212,166,74,0.22); }
.list_timetable .l9-date-chip.is-weekend.is-active { background: rgb(212,166,74); border-color: rgb(212,166,74); }

/* Tile: 4-column grid — time | image | content | chevron */
.list_timetable .l9-agenda-item { padding: 8px 10px; gap: 8px; display: grid; grid-template-columns: 52px 48px 1fr auto; align-items: stretch; }

/* Time column */
.list_timetable .l9-agenda-time      { grid-column: 1; grid-row: 1; align-self: center; gap: 2px; }
.list_timetable .l9-agenda-time-main { font-size: 0.78rem; }
.list_timetable .l9-agenda-time-sub  { font-size: 0.62rem; opacity: 0.6; }
.list_timetable .l9-agenda-time-sub::before { content: '\2013 '; }

/* Class image: column 2, 48x48 rounded */
.list_timetable .l9-agenda-img       { display: flex; grid-column: 2; grid-row: 1; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,0.06); flex-shrink: 0; align-self: center; }
.list_timetable .l9-agenda-img img   { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Main content: column 3 */
.list_timetable .l9-agenda-main      { grid-column: 3; grid-row: 1; }
.list_timetable .l9-agenda-title     { font-size: 0.88rem; margin-bottom: 2px; }
.list_timetable .l9-agenda-meta      { font-size: 0.72rem; gap: 4px; }

/* Chevron replacing Book label: column 4 */
.list_timetable .l9-agenda-action      { font-size: 0; width: 14px; align-self: center; grid-column: 4; grid-row: 1; }
.list_timetable .l9-agenda-action::after { content: '\203A'; font-size: 1.1rem; font-weight: 300; color: rgba(255,255,255,0.18); display: block; text-align: center; }

/* Location group heading: hide when single-location scoped */
.list_timetable .l9-timetable-scoped .l9-day-location-title { display: none; }

/* Fill badge pill: replaced by pulsing dot */
.list_timetable .l9-agenda-fill-badge { display: none; }

/* Bullet separator: hide when dot is used */
.list_timetable .l9-timetable-scoped .l9-space-sep { display: none; }

/* Pulsing fill status dot */
@keyframes l9-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.7); } }
.list_timetable .l9-space-text::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 4px; vertical-align: middle; animation: l9-pulse 2s ease-in-out infinite; }

/* Fill status dot colours */
.list_timetable .l9-space-text.fill-closed::before   { background: #c02020; }
.list_timetable .l9-space-text.fill-last::before     { background: #e03030; }
.list_timetable .l9-space-text.fill-almost::before   { background: #e06530; }
.list_timetable .l9-space-text.fill-fast::before     { background: #e09820; }
.list_timetable .l9-space-text.fill-busy::before     { background: #4096e0; }
.list_timetable .l9-space-text.fill-taking::before   { background: #d4a64a; }
.list_timetable .l9-space-text.fill-intimate::before { background: #30b888; }

/* Day-list gap */
.list_timetable .l9-day-agenda { gap: 7px; }
.list_timetable .l9-day-list-header { margin-bottom: 8px; }

/* ============================================================ */
/* Date strip scroll fix -- forces nowrap and scroll on all breakpoints */
.list_timetable .l9-date-strip { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.list_timetable .l9-date-strip::-webkit-scrollbar { display: none; }
.list_timetable .l9-date-chip { flex: 0 0 auto !important; }
.list_timetable .l9-timetable-toolbar-left { overflow: hidden; position: relative; }

/* Date strip scroll buttons */
.list_timetable .l9-date-strip-wrap { display: flex; align-items: center; gap: 6px; overflow: hidden; }
.list_timetable .l9-date-scroll-btn {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
    background: rgba(212,166,74,0.15); border: 1px solid rgba(212,166,74,0.5);
    color: #d4a64a; font-size: 1.4rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.15s; flex-shrink: 0;
}
.list_timetable .l9-date-scroll-btn:hover { background: rgba(212,166,74,0.3); }
.list_timetable .l9-date-strip { flex: 1 1 0; min-width: 0; }

/* ============================================================
   ADMIN LAYOUT
   Full-width header (3 zones) + sidebar (240px) + scrollable main.
   Mobile: sidebar slides in from left over an overlay.
   ============================================================ */

.l9-admin-shell { display: flex; flex-direction: column; min-height: 100vh; }

/* ---- Full-width header: left (brand) | scope | right (user/app) ---- */
.l9-admin-header {
    position: fixed; top: 0; left: 0; right: 0;
    height: 56px; z-index: 300;
    background: var(--l9-bg-soft);
    border-bottom: 1px solid var(--l9-border);
    display: flex; align-items: center;
    padding: 0 20px 0 0;
}
.l9-admin-header-left { display: flex; align-items: center; width: 240px; flex-shrink: 0; padding-left: 16px; gap: 10px; }
.l9-admin-header-brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
.l9-admin-header-logo { width: 28px; height: 28px; object-fit: contain; border-radius: 8px; flex-shrink: 0; }
.l9-admin-header-label { font-size: 0.67rem; font-weight: 700; color: rgba(184,184,184,0.6); letter-spacing: 0.14em; text-transform: uppercase; }

.l9-admin-header-scope { flex: 1 1 auto; display: flex; align-items: center; padding-left: 24px; min-width: 0; }
.l9-admin-scope-chip {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 0.8rem; color: var(--l9-text-muted);
    background: var(--l9-surface); border: 1px solid var(--l9-border);
    padding: 5px 12px; border-radius: 8px;
    max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.l9-admin-scope-chip svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--l9-accent); }

.l9-admin-header-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.l9-admin-user { font-size: 0.85rem; color: var(--l9-text-muted); }
.l9-admin-app-btn { min-height: 36px !important; padding: 0 14px !important; font-size: 0.8rem !important; letter-spacing: 0.04em !important; }

.l9-admin-hamburger { display: none; background: none; border: none; color: var(--l9-text-muted); cursor: pointer; padding: 4px; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 6px; }
.l9-admin-hamburger:hover { background: rgba(255,255,255,0.06); color: var(--l9-text); }

/* ---- Body ---- */
.l9-admin-layout { display: flex; flex: 1; padding-top: 56px; min-height: calc(100vh - 56px); }

.l9-admin-sidebar {
    position: fixed; top: 56px; left: 0;
    width: 240px; height: calc(100vh - 56px);
    background: var(--l9-bg);
    border-right: 1px solid var(--l9-border);
    display: flex; flex-direction: column;
    overflow-y: auto; overflow-x: hidden;
    z-index: 200; transition: transform 0.22s ease;
}
.l9-admin-sidebar-open { transform: translateX(0) !important; box-shadow: 4px 0 24px rgba(0,0,0,0.4); }

.l9-admin-nav { flex: 1; padding: 14px 8px 20px 8px; overflow-y: auto; }
.l9-admin-nav-section { margin-bottom: 20px; }
.l9-admin-nav-section-title { padding: 2px 10px 6px 10px; font-size: 0.67rem; font-weight: 700; color: rgba(184,184,184,0.45); letter-spacing: 0.14em; text-transform: uppercase; user-select: none; }
.l9-admin-nav-link { display: block; padding: 7px 10px 7px 16px; border-radius: 8px; font-size: 0.85rem; color: var(--l9-text-muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background 0.1s, color 0.1s; }
.l9-admin-nav-link:hover { background: rgba(255,255,255,0.05); color: var(--l9-text); }
.l9-admin-nav-active { background: rgba(212,166,74,0.12) !important; color: var(--l9-accent) !important; font-weight: 600 !important; }

.l9-admin-main { flex: 1 1 0; margin-left: 240px; min-width: 0; display: flex; flex-direction: column; }

.l9-admin-breadcrumb-bar { background: var(--l9-bg); border-bottom: 1px solid rgba(255,255,255,0.04); padding: 0 24px; flex-shrink: 0; min-height: 36px; display: flex; align-items: center; }
.l9-admin-breadcrumb-bar .l9-breadcrumb { margin: 0; padding: 0; background: none; font-size: 0.78rem; }
.l9-admin-breadcrumb-bar .breadcrumb-item { color: var(--l9-text-muted); }
.l9-admin-breadcrumb-bar .breadcrumb-item.active { color: var(--l9-text); font-weight: 500; }
.l9-admin-breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.18); content: "/"; }
.l9-admin-breadcrumb-bar .l9-breadcrumb-link { color: var(--l9-text-muted); }
.l9-admin-breadcrumb-bar .l9-breadcrumb-link:hover { color: var(--l9-text); }

.l9-admin-content { flex: 1; padding: 24px; min-width: 0; }

.l9-admin-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 190; }
.l9-admin-overlay-visible { display: block; }

@media (max-width: 991.98px) {
    .l9-admin-header-left { width: auto; }
    .l9-admin-header-scope { display: none; }
    .l9-admin-sidebar { transform: translateX(-100%); }
    .l9-admin-main { margin-left: 0; }
    .l9-admin-hamburger { display: flex; }
    .l9-admin-content { padding: 16px; }
    .l9-admin-breadcrumb-bar { padding: 0 16px; }
}

/* ============================================================
   ADMIN PAGE STRUCTURE
   Standard zones for CRUA admin pages (ADMIN_PLAYBOOK Section 5).
   ============================================================ */

.l9-admin-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.l9-admin-page-title { font-family: var(--l9-font-heading); font-size: 1.35rem; font-weight: 600; color: var(--l9-text); margin: 0; line-height: 1.2; }
.l9-admin-page-subtitle { font-size: 0.85rem; color: var(--l9-text-muted); margin: 3px 0 0 0; }
.l9-admin-page-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.l9-admin-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.l9-admin-table-wrap { background: var(--l9-surface); border: 1px solid var(--l9-border); border-radius: 12px; overflow: hidden; }

.l9-admin-detail-grid { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
@media (max-width: 767.98px) { .l9-admin-detail-grid { grid-template-columns: 1fr; } }
.l9-admin-meta-panel { background: var(--l9-surface); border: 1px solid var(--l9-border); border-radius: 12px; padding: 18px; }

.l9-admin-form-section { background: var(--l9-surface); border: 1px solid var(--l9-border); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.l9-admin-form-section-title { font-size: 0.75rem; font-weight: 700; color: var(--l9-text-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--l9-border); }
.l9-admin-form-actions { display: flex; align-items: center; gap: 10px; padding-top: 4px; }

.l9-admin-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.l9-admin-badge-active   { background: rgba(63,166,107,0.15);  color: var(--l9-success); }
.l9-admin-badge-inactive { background: rgba(255,255,255,0.06); color: var(--l9-text-muted); }
.l9-admin-badge-warning  { background: rgba(212,166,74,0.15);  color: var(--l9-accent); }
.l9-admin-badge-danger   { background: rgba(201,75,75,0.15);   color: var(--l9-danger); }

/* ---- Admin home page ---- */
.l9-admin-home-heading { font-family: var(--l9-font-heading); font-size: 1.4rem; font-weight: 600; margin-bottom: 6px; }
.l9-admin-home-sub { font-size: 0.9rem; color: var(--l9-text-muted); margin-bottom: 24px; }
.l9-admin-home-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.l9-admin-home-card { display: block; background: var(--l9-surface); border: 1px solid var(--l9-border); border-radius: 12px; padding: 18px 20px; transition: border-color 0.15s, background 0.15s; }
.l9-admin-home-card:hover { border-color: rgba(212,166,74,0.4); background: var(--l9-surface-2); }
.l9-admin-home-card-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; color: var(--l9-text); }
.l9-admin-home-card-desc { font-size: 0.82rem; color: var(--l9-text-muted); line-height: 1.5; }
/* ===== Booking modal tracing footnote + layout polish (2026-05-31) ===== */
.l9-booking-modal-shell { max-width: 440px; }
.l9-booking-class-summary { display:flex; flex-direction:column; gap:2px; padding:10px 0 4px; }
.l9-booking-class-title { font-size:1.05rem; font-weight:700; color:var(--l9-text,#fff); }
.l9-booking-class-dt { font-size:0.8rem; }
.l9-booking-panel { padding-top:8px; }
.l9-booking-panel .l9-btn { min-height:44px; }
/* Tracing footnote: small but legible, monospace, clearly visible for support screenshots */
.l9-booking-tracing { margin-top:16px; padding:10px 12px; border-top:1px solid var(--l9-border,#2a2a2a); font-family:'SFMono-Regular',Consolas,'Liberation Mono',monospace; font-size:0.58rem; line-height:1.45; color:var(--l9-text-muted,#8a8a8a); background:rgba(255,255,255,0.02); border-radius:6px; word-break:break-word; }
.l9-booking-tracing > div { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Booked pill -- green, top-right of a booked tile (R9) */
.list_timetable .l9-agenda-item { position: relative; }
.list_timetable .l9-agenda-booked-pill {
    position: absolute; top: 6px; right: 6px;
    background: #3fa66b; color: #fff; font-size: 0.6rem; font-weight: 700;
    letter-spacing: 0.04em; padding: 3px 8px; border-radius: 999px;
    display: inline-flex; align-items: center; gap: 3px; line-height: 1; z-index: 2;
}
/* Hide the quiet chevron when the tile is booked (pill takes its place) */
.list_timetable .l9-agenda-item:has(.l9-agenda-booked-pill) .l9-agenda-action::after { content: ''; }

/* ===== Booking modal batch checklist (compact, 2026-05-31) ===== */
.l9-batch-head { display:flex; align-items:center; gap:6px; font-size:1.05rem; font-weight:700; color:var(--l9-text,#fff); }
.l9-batch-sub { font-size:0.8rem; color:var(--l9-text-muted,#8a8a8a); margin:2px 0 10px; }
.l9-batch-prompt { font-size:0.8rem; color:var(--l9-text,#ddd); margin-bottom:8px; }
.l9-batch-slot-list { display:flex; flex-direction:column; gap:4px; margin-bottom:14px; max-height:46vh; overflow-y:auto; }
.l9-batch-slot-row { display:flex; align-items:center; gap:10px; padding:8px 10px; border:1px solid var(--l9-border,#2a2a2a); border-radius:8px; cursor:pointer; background:rgba(255,255,255,0.02); }
.l9-batch-slot-row.is-booked { opacity:0.75; cursor:default; }
.l9-batch-chk { width:18px; height:18px; flex:0 0 auto; accent-color:#d4a64a; }
.l9-batch-slot-info { display:flex; flex-direction:column; flex:1 1 auto; min-width:0; }
.l9-batch-slot-day { font-size:0.85rem; font-weight:600; color:var(--l9-text,#fff); }
.l9-batch-slot-time { font-size:0.72rem; color:var(--l9-text-muted,#8a8a8a); }
.l9-batch-slot-badge { font-size:0.62rem; font-weight:700; color:#3fa66b; background:rgba(63,166,107,0.15); padding:2px 8px; border-radius:999px; flex:0 0 auto; }
.l9-booking-panel .l9-btn-primary { margin-bottom:6px; }

/* ===== QuickBookingList control (2026-06-01) ===== */
.l9-qbl { display:flex; flex-direction:column; gap:6px; margin-bottom:14px; max-height:46vh; overflow-y:auto; }
.l9-qbl-row { display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid var(--l9-border,#2a2a2a); border-radius:8px; background:rgba(255,255,255,0.02); }
.l9-qbl-row.is-booked { background:rgba(63,166,107,0.06); border-color:rgba(63,166,107,0.30); }
.l9-qbl-thumb { flex:0 0 auto; width:54px; height:54px; border-radius:12px; overflow:hidden; background:rgba(255,255,255,0.05); }
.l9-qbl-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.l9-qbl-thumb-empty { background:linear-gradient(135deg, rgba(212,166,74,0.20), rgba(212,166,74,0.04)); }
.l9-qbl-info { flex:1 1 auto; min-width:0; }
.l9-qbl-title { font-size:0.9rem; font-weight:700; color:var(--l9-text,#fff); }
.l9-qbl-meta { font-size:0.72rem; color:var(--l9-text-muted,#8a8a8a); margin-top:2px; }
.l9-qbl-badge { font-size:0.62rem; font-weight:700; color:#3fa66b; background:rgba(63,166,107,0.15); padding:3px 9px; border-radius:999px; flex:0 0 auto; }
.l9-qbl-toggle { flex:0 0 auto; min-height:40px; min-width:84px; border-radius:8px; font-size:0.82rem; font-weight:700; cursor:pointer; border:1px solid transparent; }
.l9-qbl-toggle.l9-qbl-book { background:var(--l9-accent,#d4a64a); color:#111; }
.l9-qbl-toggle.l9-qbl-book:hover { opacity:0.9; }
.l9-qbl-toggle.l9-qbl-cancel { background:transparent; color:var(--l9-text-muted,#8a8a8a); border-color:var(--l9-border,#2a2a2a); font-weight:600; min-width:auto; padding:0 14px; }
.l9-qbl-toggle.l9-qbl-cancel:hover { color:#e06565; border-color:rgba(224,101,101,0.5); }

/* Batch panel headline: class title + Cancel beside it */
.l9-batch-headline { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:2px; }
.l9-batch-title { font-size:1.05rem; font-weight:700; color:var(--l9-text,#fff); }
.l9-batch-when { font-size:0.8rem; color:var(--l9-text-muted,#8a8a8a); margin-top:2px; }
.l9-batch-cancel { flex:0 0 auto; width:auto; padding:0 2px; font-size:0.78rem; color:#e06565; }
.l9-batch-prompt { font-size:0.8rem; color:var(--l9-text,#ddd); margin:12px 0 8px; }
/* Nav v2 states: coming-soon and context-disabled items */
.l9-admin-scope-chip { text-decoration: none; }
.l9-admin-scope-chip:hover { border-color: rgba(212,166,74,0.5); color: var(--l9-text); }
.l9-admin-nav-soon, .l9-admin-nav-disabled { opacity: 0.45; cursor: default; display: flex; align-items: center; justify-content: space-between; }
.l9-admin-nav-soon:hover, .l9-admin-nav-disabled:hover { background: transparent; color: var(--l9-text-muted); }
.l9-admin-nav-tag { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(255,255,255,0.08); color: var(--l9-text-muted); padding: 1px 6px; border-radius: 5px; margin-left: 8px; }

/* Menu v3: sidebar account context + studio accordion */
.l9-admin-acct { padding: 12px 16px; border-bottom: 1px solid var(--l9-border); }
.l9-admin-acct-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(184,184,184,0.45); margin-bottom: 5px; }
.l9-admin-acct-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.92rem; font-weight: 600; color: var(--l9-text); text-decoration: none; }
.l9-admin-acct-name:hover { color: var(--l9-accent); }
.l9-admin-acct-switch { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--l9-accent); border: 1px solid rgba(212,166,74,0.35); border-radius: 5px; padding: 1px 6px; flex-shrink: 0; }
.l9-admin-nav-studio { margin-bottom: 2px; }
.l9-admin-nav-studio > summary { list-style: none; cursor: pointer; padding: 7px 10px 7px 14px; border-radius: 8px; font-size: 0.85rem; color: var(--l9-text); font-weight: 600; display: flex; align-items: center; }
.l9-admin-nav-studio > summary::-webkit-details-marker { display: none; }
.l9-admin-nav-studio > summary::before { content: '\203A'; margin-right: 8px; transition: transform .15s; display: inline-block; color: var(--l9-text-muted); }
.l9-admin-nav-studio[open] > summary::before { transform: rotate(90deg); }
.l9-admin-nav-studio > summary:hover { background: rgba(255,255,255,0.05); }
.l9-admin-nav-studio .l9-admin-nav-link { padding-left: 32px; }
