/* ===========================================================================
   LitePages Panel - single design system
   ---------------------------------------------------------------------------
   One stylesheet for the whole panel. Replaces the previous four stacked
   layers (lp-ui, lp-dashboard, lp-pages, lp-v2) and the separate lp-auth
   layer. Presentation only: no markup, route or behaviour is defined here.

   Design: bright Google-Console register. White chrome and white cards on a
   pale blue-grey canvas, a Google-blue interactive accent (#1a73e8) for
   links, focus, active navigation and selection, and a warm yellow brand
   accent (#fbbc04) for primary actions, card rules and brand moments.
   Light-blue tints (#e8f0fe) carry selection and hover, Google-grey text
   ramp (#202124 / #3c4043 / #5f6368), 8-16px corners, pill navigation.

   WHY THIS FILE IS THE ONLY ONE
   The four earlier layers each defined their own tokens for the same idea
   (brand, canvas, radius, header height) and cascaded over one another, so
   three palettes were live at once and the last layer silently won. Here
   there is one token set and one load.

   TARGETING
   These rules target the real Pages-theme markup: .header, .menu-bar,
   .page-container, .page-content-wrapper, .brand, .dropdown-menu, .panel,
   .card, .no-border, .addw, .borderd, .list-view, .fs-*. An earlier attempt
   designed a .lp-rail / .lp-topbar shell that exists in no template; that
   dead code is gone.

   THE rem TRAP -- READ BEFORE ADDING ANY rem VALUE
   The Pages theme sets `html { font-size: 62.5% }`, so 1rem is 10px, not
   16px. Every rem here renders at 62.5% of its apparent size. Absolute px
   is used throughout. Do not reintroduce rem.

   Bump the ?lp= token in the <link> tag whenever this file changes, or
   browsers keep serving the cached copy.
   =========================================================================== */

/* ---------------------------------------------------------------- tokens -- */

:root {
/* ---- brand -------------------------------------------------------
       Two accents, one job each. Google blue carries every interactive
       affordance (links, focus, active nav, selection, info); yellow
       carries brand and primary-action weight (CTAs, card rules,
       badges, decorative bars). Everything else is a neutral or a soft
       status tint. */
    --lp-primary:         #1a73e8;
    --lp-primary-600:     #1765cc;
    --lp-primary-700:     #1558b0;
    --lp-primary-soft:    #e8f0fe;
    --lp-primary-line:    #c2dbfc;

    --lp-yellow:          #fbbc04;
    --lp-yellow-600:      #f9ab00;
    --lp-yellow-700:      #c98a00;
    --lp-yellow-soft:     #fef7e0;
    --lp-yellow-line:     #fce8b2;
    --lp-yellow-ink:      #3d2c00;

    --lp-accent:          #5f6368;
    --lp-accent-soft:     #f1f3f4;

    /* ---- surfaces ---------------------------------------------------- */
    --lp-canvas:          #f4f7fc;
    --lp-surface:         #ffffff;
    --lp-surface-alt:     #f8fafd;
    --lp-surface-sunk:    #f1f3f4;
    --lp-header:          #ffffff;

    /* ---- sidebar (white Google drawer, light-blue selection) --------- */
    --lp-side:            #ffffff;
    --lp-side-2:          #f1f3f4;
    --lp-side-3:          #e8f0fe;
    --lp-side-line:       #e8eaed;
    --lp-side-line-2:     #dadce0;
    --lp-side-text:       #3c4043;
    --lp-side-dim:        #80868b;
    --lp-side-active:     #1a73e8;
    --lp-side-ink:        #202124;

    /* ---- text (Google grey ramp) -------------------------------------- */
    --lp-ink:             #202124;
    --lp-body:            #3c4043;
    --lp-muted:           #5f6368;
    --lp-faint:           #80868b;

    /* ---- lines ------------------------------------------------------- */
    --lp-line:            #e8eaed;
    --lp-line-2:          #dadce0;
    --lp-line-3:          #bdc1c6;

    /* ---- status (soft tints) ------------------------------------------ */
    --lp-success:         #188038;
    --lp-success-ink:     #137333;
    --lp-success-soft:    #e6f4ea;
    --lp-warning:         #f9ab00;
    --lp-warning-ink:     #b06000;
    --lp-warning-soft:    #fef7e0;
    --lp-danger:          #d93025;
    --lp-danger-ink:      #c5221f;
    --lp-danger-soft:     #fce8e6;
    --lp-info:            #1a73e8;
    --lp-info-soft:       #e8f0fe;

    /* ---- type -------------------------------------------------------- */
    --lp-font: "Google Sans", "Roboto", -apple-system, BlinkMacSystemFont,
               "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --lp-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
                    "Liberation Mono", monospace;

    --lp-fs-11: 11.5px;
    --lp-fs-12: 12.5px;
    --lp-fs-13: 13px;
    --lp-fs-14: 14px;
    --lp-fs-16: 16px;
    --lp-fs-18: 18px;
    --lp-fs-22: 22px;
    --lp-fs-28: 28px;

    /* ---- space (4px scale) -------------------------------------------- */
    --lp-s-1: 4px;
    --lp-s-2: 8px;
    --lp-s-3: 12px;
    --lp-s-4: 16px;
    --lp-s-5: 20px;
    --lp-s-6: 24px;
    --lp-s-7: 26px;
    --lp-s-8: 32px;
    --lp-s-10: 40px;

    /* ---- shape -------------------------------------------------------
       Google rhythm: 8px controls, 10-12px cards, 16px shells, full
       pills for navigation rows and chips.                                 */
    --lp-r-sm: 8px;
    --lp-r:    10px;
    --lp-r-md: 12px;
    --lp-r-lg: 16px;
    --lp-r-pill: 999px;

    --lp-sh-1: 0 1px 2px rgba(60, 64, 67, .10);
    --lp-sh-2: 0 1px 3px rgba(60, 64, 67, .12), 0 1px 2px rgba(60, 64, 67, .06);
    --lp-sh-3: 0 4px 12px rgba(60, 64, 67, .13);
    --lp-sh-4: 0 14px 44px rgba(60, 64, 67, .22);
    --lp-ring: 0 0 0 3px rgba(26, 115, 232, .22);

    /* ---- metrics ----------------------------------------------------- */
    /* Rail width, matching the Google drawer's 256px. --lp-side-mini-w is
       the icon-only width the burger collapses it to. */
    --lp-side-w: 256px;
    --lp-side-mini-w: 64px;
    --lp-topbar-h: 64px;

    /* Sidebar runs on its own type scale so the rail can get compact without
       dragging the whole application's font sizes down with it. */
    --lp-side-fs: 14px;
    --lp-side-fs-sub: 13px;
    --lp-side-fs-label: 11px;
    --lp-side-fs-brand: 15px;
    --lp-side-row: 38px;
    --lp-z-header: 50;
    --lp-z-side: 45;
    --lp-z-dropdown: 65;
    --lp-z-modal: 80;
    --lp-z-drawer: 70;
    --lp-btn-primary-bg: #0b57d0;
    --lp-btn-primary-bg-hover: #0a4eb8;
    --lp-btn-primary-text: #ffd54f;
    --lp-canvas: #eef4fe;
    --lp-accent-yellow: #ffd54f;
    --lp-topbar-bg: var(--lp-header);
    --lp-topbar-border: var(--lp-line);
    --lp-card-bg: var(--lp-surface);
    --lp-card-border: var(--lp-line);
    --lp-input-bg: #fff;
    --lp-input-border: var(--lp-line-2);
}

/* Light explicit (default) */
:root,
[data-theme="light"] {
    --lp-canvas: #eef4fe;
    --lp-surface: #fff;
    --lp-surface-alt: #f8f9fa;
    --lp-header: #fff;
    --lp-topbar-bg: #fff;
    --lp-topbar-border: var(--lp-line);
    --lp-card-bg: #fff;
    --lp-card-border: var(--lp-line);
    --lp-input-bg: #fff;
    --lp-input-border: var(--lp-line-2);
    --lp-side: #fff;
    --lp-side-2: #f1f5f9;
    --lp-side-3: #eef4fe;
    --lp-side-line: #e5e7eb;
    --lp-side-line-2: #e5e7eb;
}

/* Dark theme */
[data-theme="dark"] {
    --lp-canvas: #0f141b;
    --lp-bg: #0f141b;
    --lp-surface: #141b24;
    --lp-surface-alt: #1a2430;
    --lp-surface-sunk: #101823;
    --lp-header: #141b24;
    --lp-topbar-bg: #141b24;
    --lp-topbar-border: #2a3a4f;
    --lp-card-bg: #141b24;
    --lp-card-border: #2a3a4f;
    --lp-ink: #f2f4f7;
    --lp-body: #d1d5db;
    --lp-muted: #9aa4b2;
    --lp-line: #2a3a4f;
    --lp-line-2: #334155;
    --lp-line-3: #3b4d63;
    --lp-side: #0f172a;
    --lp-side-2: #162033;
    --lp-side-3: #1f3052;
    --lp-side-ink: #f2f4f7;
    --lp-side-text: #c7d2e3;
    --lp-side-active: #ffffff;
    --lp-side-line: #24344d;
    --lp-side-line-2: #2f466b;
    --lp-primary-soft: rgba(77, 155, 255, .18);
    --lp-primary-line: rgba(77, 155, 255, .45);
    --lp-btn-primary-bg: #1a73e8;
    --lp-btn-primary-bg-hover: #1765cc;
    --lp-btn-primary-text: #ffffff;
    --lp-accent-yellow: #fbbc04;
    --lp-input-bg: #141b24;
    --lp-input-border: #3b4d63;
    --lp-sh-1: 0 1px 2px rgba(0,0,0,.40), 0 1px 3px -1px rgba(0,0,0,.40);
    --lp-sh-2: 0 1px 3px rgba(0,0,0,.45), 0 4px 8px -2px rgba(0,0,0,.40);
    --lp-sh-3: 0 10px 40px -10px rgba(0,0,0,.60), 0 2px 8px rgba(0,0,0,.50);
}

/* System preference fallback */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]):not([data-theme="dark"]) {
        --lp-canvas: #0f141b;
        --lp-bg: #0f141b;
        --lp-surface: #141b24;
        --lp-surface-alt: #1a2430;
        --lp-surface-sunk: #101823;
        --lp-header: #141b24;
        --lp-topbar-bg: #141b24;
        --lp-topbar-border: #2a3a4f;
        --lp-card-bg: #141b24;
        --lp-card-border: #2a3a4f;
        --lp-ink: #f2f4f7;
        --lp-body: #d1d5db;
        --lp-muted: #9aa4b2;
        --lp-line: #2a3a4f;
        --lp-line-2: #334155;
        --lp-line-3: #3b4d63;
        --lp-side: #0f172a;
        --lp-side-2: #162033;
        --lp-side-3: #1f3052;
        --lp-side-ink: #f2f4f7;
        --lp-side-text: #c7d2e3;
        --lp-side-active: #ffffff;
        --lp-side-line: #24344d;
        --lp-side-line-2: #2f466b;
        --lp-primary-soft: rgba(77, 155, 255, .18);
        --lp-primary-line: rgba(77, 155, 255, .45);
        --lp-btn-primary-bg: #4d9bff;
        --lp-btn-primary-bg-hover: #5fa3ff;
        --lp-btn-primary-text: #0f141b;
        --lp-accent-yellow: #fbbc04;
        --lp-input-bg: #141b24;
        --lp-input-border: #3b4d63;
        --lp-sh-3: 0 10px 40px -10px rgba(0,0,0,.60), 0 2px 8px rgba(0,0,0,.50);
    }
}
}

/* ------------------------------------------------------------ foundation -- */

html.lp, body.lp-dash {
    background: var(--lp-canvas);
}

body.lp-dash {
    color: var(--lp-body);
    font-family: var(--lp-font);
    font-size: var(--lp-fs-14);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* One focus treatment for everything keyboard-reachable. */
body.lp-dash a:focus-visible,
body.lp-dash button:focus-visible,
body.lp-dash input:focus-visible,
body.lp-dash select:focus-visible,
body.lp-dash textarea:focus-visible,
body.lp-dash summary:focus-visible,
body.lp-dash [tabindex]:focus-visible {
    outline: 2px solid var(--lp-primary);
    outline-offset: 2px;
    border-radius: var(--lp-r-sm);
}
body.lp-dash a:focus:not(:focus-visible),
body.lp-dash button:focus:not(:focus-visible) {
    outline: none;
}

h1, h2, h3, h4, h5, h6,
body.lp-dash .title,
body.lp-dash .heading {
    color: var(--lp-ink);
    font-family: var(--lp-font);
    font-weight: 600;
    letter-spacing: -.011em;
}

body.lp-dash p { color: var(--lp-body); }

/* Legacy headings were authored with inline greys; grey on white is 3.9:1. */
body.lp-dash h1 { font-size: var(--lp-fs-28); line-height: 1.25; }
body.lp-dash h2 { font-size: var(--lp-fs-22); line-height: 1.3; }
body.lp-dash h3 { font-size: var(--lp-fs-18); line-height: 1.35; }
body.lp-dash h4,
body.lp-dash h5 { font-size: var(--lp-fs-16); line-height: 1.4; }

body.lp-dash a { color: var(--lp-primary); }
body.lp-dash a:hover,
body.lp-dash a:focus { color: var(--lp-primary-700); }

/* The theme's own .fs-* scale is hard-set with !important. */
body.lp-dash .fs-11 { font-size: var(--lp-fs-11) !important; }
body.lp-dash .fs-12 { font-size: var(--lp-fs-12) !important; }
body.lp-dash .fs-13 { font-size: var(--lp-fs-13) !important; }
body.lp-dash .fs-14 { font-size: var(--lp-fs-14) !important; }
body.lp-dash .fs-16 { font-size: var(--lp-fs-16) !important; }
body.lp-dash .fs-18 { font-size: var(--lp-fs-18) !important; }
body.lp-dash .fs-20 { font-size: 18px !important; }
body.lp-dash .fs-24 { font-size: 22px !important; }
body.lp-dash .fs-28 { font-size: var(--lp-fs-28) !important; }
body.lp-dash .fs-30 { font-size: var(--lp-fs-28) !important; }
body.lp-dash .fs-40 { font-size: 30px !important; }

/* Small text utilities the theme paints green or grey. */
body.lp-dash .text-muted,
body.lp-dash .hint-text,
body.lp-dash .small-text { color: var(--lp-muted) !important; }
body.lp-dash .text-grey,
body.lp-dash .text-color { color: var(--lp-body) !important; }
body.lp-dash .text-dark { color: var(--lp-ink) !important; }
body.lp-dash .text-success { color: var(--lp-success-ink) !important; }
body.lp-dash .text-danger  { color: var(--lp-danger-ink) !important; }
body.lp-dash .text-warning { color: var(--lp-warning-ink) !important; }
body.lp-dash .text-info    { color: var(--lp-info) !important; }
body.lp-dash .text-white   { color: #fff !important; }

body.lp-dash code,
body.lp-dash pre { font-family: var(--lp-font-mono); }

body.lp-dash hr { border-color: var(--lp-line); }

/* Slimmer, on-brand scrollbars for the scrollable regions the shell uses. */
body.lp-dash ::-webkit-scrollbar { width: 10px; height: 10px; }
body.lp-dash ::-webkit-scrollbar-track { background: transparent; }
body.lp-dash ::-webkit-scrollbar-thumb {
    background: var(--lp-line-3);
    border: 3px solid transparent;
    border-radius: var(--lp-r-pill);
    background-clip: content-box;
}
body.lp-dash ::-webkit-scrollbar-thumb:hover { background-color: var(--lp-faint); }

/* ================================================================= shell ==
   The four shell bases all used a horizontal .menu-bar holding 10-28 links,
   which overflowed and was collapsed by the theme's data-hide-extra-li. The
   shell is now a fixed left sidebar plus a white top bar.

   Structure emitted by the base templates:

     <input type="checkbox" id="lp-nav-toggle" class="lp-nav-toggle">
     <div class="lp-shell">
       <aside class="lp-side"> ... </aside>
       <div class="lp-main">
         <header class="lp-top"> ... </header>
         <div class="lp-content"> {% block content %} </div>
       </div>
     </div>
     <label for="lp-nav-toggle" class="lp-scrim"></label>

   The checkbox drives the mobile drawer with pure CSS: no JavaScript, so no
   event handler is touched and nothing can break.
   ========================================================================= */

.lp-nav-toggle {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.lp-app { min-height: 100vh; }

/* ------------------------------------------------------------- sidebar ---
   cPanel-style rail with three states, all driven by the #lp-nav-toggle
   checkbox the shells already carry - no JavaScript, no handler, no id
   changed:

     >=992px   unchecked = full rail (232px)   checked = icon-only mini rail
     <=991px   unchecked = closed             checked = open overlay drawer

   The single burger in the top bar collapses the rail on desktop and opens it
   on a phone. The rules for the mini rail live at the end of this file. */

.lp-side {
    position: fixed;
    /* Below the full-width header, so the two never sit on top of each other. */
    top: var(--lp-topbar-h); left: 0; bottom: 0;
    z-index: var(--lp-z-side);
    width: var(--lp-side-w);
    display: flex;
    flex-direction: column;
    background: var(--lp-side);
    color: var(--lp-side-text);
    border-right: 1px solid var(--lp-side-line);
    box-shadow: 1px 0 2px rgba(31, 41, 55, .03);
    /* The theme animates .sidebar; this element is new, so own the motion.
       Both axes animate: `transform` for the mobile drawer's slide-in,
       `width` for the desktop collapse to the mini rail. */
    transition: transform .22s cubic-bezier(.22, 1, .36, 1),
                width .22s cubic-bezier(.22, 1, .36, 1);
}

/* Scrim only ever belongs to the mobile overlay drawer; see the width rules at
   the end of this file, where it fades in when the drawer is open. */
.lp-scrim {
    position: fixed;
    inset: var(--lp-topbar-h) 0 0 0;
    z-index: calc(var(--lp-z-side) - 1);
    background: rgba(32, 33, 36, .48);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

/* The trigger reads as pressed while the rail is docked. */
.lp-nav-toggle:not(:checked) ~ .lp-app .lp-top-burger {
    background: var(--lp-surface-sunk);
    color: var(--lp-ink);
}

.lp-side-brand {
    position: relative;
    display: flex;
    align-items: center;
    min-height: var(--lp-topbar-h);
    padding: 0 var(--lp-s-5);
    border-bottom: 1px solid var(--lp-side-line);
    flex: 0 0 auto;
}
/* The one brand moment on the rail: a yellow-into-blue rule under the
   logo, echoing the rule across the top of every card. */
body.lp-dash .lp-side-brand::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 3px;
    background: linear-gradient(90deg, var(--lp-yellow) 0%,
                var(--lp-yellow-600) 34%, var(--lp-primary) 100%);
}
body.lp-dash .lp-side-brand a,
body.lp-dash .lp-side .lp-side-brand .brand {
    display: block;
    line-height: 1;
    color: var(--lp-side-ink);
    font-weight: 600;
    font-size: var(--lp-fs-16);
    letter-spacing: -.015em;
}
/* Keep both theme marks the same small size regardless of their source
   dimensions (LogoLogin vs LogoURL). Applies to light and dark. */
body.lp-dash .lp-side-brand img { max-height: 20px; width: auto; max-width: 140px; object-fit: contain; }

/* Two brand marks: the coloured login logo on the light rail, the (often
   white) LogoURL on the dark rail. Exactly one is shown, so a white tenant
   logo never disappears into the white rail. */
.lp-side-brand .lp-logo-dark { display: none; }
[data-theme="dark"] .lp-side-brand .lp-logo-light { display: none; }
[data-theme="dark"] .lp-side-brand .lp-logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .lp-side-brand .lp-logo-light { display: none; }
    :root:not([data-theme="light"]) .lp-side-brand .lp-logo-dark { display: block; }
}

/* The theme paints .brand green with !important inside .bg-primary. */
body.lp-dash .lp-side .brand,
body.lp-dash .lp-side .brand:hover,
body.lp-dash .lp-side .brand:focus {
    color: var(--lp-side-ink) !important;
    background: transparent !important;
}

.lp-side-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: var(--lp-s-2) 0 var(--lp-s-4);
    /* The brief flagged the default scrollbar as part of "wide and loose".
       Hide the chunky Chrome/Firefox bar and leave a thin, quiet one that only
       shows on hover, so a short menu shows nothing at all. */
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color .15s ease;
}
.lp-side-nav:hover { scrollbar-color: var(--lp-side-line-2) transparent; }
.lp-side-nav::-webkit-scrollbar { width: 6px; }
.lp-side-nav::-webkit-scrollbar-track { background: transparent; }
.lp-side-nav::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
    transition: background-color .15s ease;
}
.lp-side-nav:hover::-webkit-scrollbar-thumb { background: var(--lp-side-line-2); }
.lp-side-nav:hover::-webkit-scrollbar-thumb:hover { background: var(--lp-side-dim); }

/* Section label above a group of links. Google drawer register: a small
   grey uppercase caption that groups the pills without boxing them. */
body.lp-dash .lp-side .lp-nav-label {
    padding: var(--lp-s-4) var(--lp-s-5) var(--lp-s-2);
    color: var(--lp-muted);
    font-size: var(--lp-side-fs-label);
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.lp-nav-label:first-child { padding-top: var(--lp-s-2); }

/* Direct link. Full-width pill rows, the way Google draws its drawer:
   hover washes grey, the active row washes light blue and turns blue. */
body.lp-dash .lp-side .lp-nav-link {
    display: flex;
    align-items: center;
    gap: var(--lp-s-3);
    margin: 2px var(--lp-s-3);
    padding: 0 var(--lp-s-3);
    min-height: var(--lp-side-row);
    border-radius: var(--lp-r-pill);
    color: var(--lp-side-text);
    font-size: var(--lp-side-fs);
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color .14s ease, color .14s ease;
}
body.lp-dash .lp-side .lp-nav-link:hover,
body.lp-dash .lp-side .lp-nav-link:focus {
    background: var(--lp-side-2);
    color: var(--lp-side-ink);
}
/* Active state: light-blue pill plus blue ink and a heavier weight, so
   "where am I" is readable without relying on colour weight alone. */
body.lp-dash .lp-side .lp-nav-link.is-active,
body.lp-dash .lp-side .lp-nav-link[aria-current="page"] {
    background: var(--lp-side-3);
    color: var(--lp-side-active);
    font-weight: 600;
    box-shadow: none;
    position: relative;
}
body.lp-dash .lp-side .lp-nav-link.is-active::before,
body.lp-dash .lp-side .lp-nav-link[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    border-radius: 0 2px 2px 0;
    background: var(--lp-accent-yellow);
}

/* Collapsible group. <details>/<summary> needs no JavaScript. */
.lp-nav-group { margin: 2px var(--lp-s-3); }
body.lp-dash .lp-side .lp-nav-group > summary {
    display: flex;
    align-items: center;
    gap: var(--lp-s-3);
    padding: 0 var(--lp-s-3);
    min-height: var(--lp-side-row);
    border-radius: var(--lp-r-pill);
    color: var(--lp-side-text);
    font-size: var(--lp-side-fs);
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background-color .14s ease, color .14s ease;
}
body.lp-dash .lp-side .lp-nav-group > summary::-webkit-details-marker { display: none; }
body.lp-dash .lp-side .lp-nav-group > summary:hover { background: var(--lp-side-2); color: var(--lp-side-ink); }
body.lp-dash .lp-side .lp-nav-group[open] > summary { color: var(--lp-side-ink); }

/* Chevron, rotated when the group is open. */
body.lp-dash .lp-side .lp-nav-group > summary::after {
    content: "";
    margin-left: auto;
    flex: 0 0 auto;
    width: 7px; height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .2s cubic-bezier(.22, 1, .36, 1);
    opacity: .6;
}
body.lp-dash .lp-side .lp-nav-group > summary:hover::after { opacity: 1; }
body.lp-dash .lp-side .lp-nav-group[open] > summary::after {
    transform: rotate(-135deg) translate(-1px, -1px);
    opacity: 1;
}

body.lp-dash .lp-side .lp-nav-group-body {
    padding: 1px 0 var(--lp-s-1);
    /* Every browser that can animate <details> content gets a real height
       transition, so the group opens and closes smoothly rather than popping.
       Declared as an enhancement: where ::details-content is unsupported the
       panel still opens instantly and nothing is lost. */
    overflow: hidden;
}
@supports selector(::details-content) {
    .lp-nav-group::details-content {
        block-size: 0;
        overflow: hidden;
        transition: block-size .22s cubic-bezier(.22, 1, .36, 1),
                    content-visibility .22s allow-discrete;
    }
    .lp-nav-group[open]::details-content { block-size: auto; }
}

/* Fallback open animation for engines without ::details-content. */
@supports not selector(::details-content) {
    body.lp-dash .lp-side .lp-nav-group[open] > .lp-nav-group-body {
        animation: lp-group-in .18s ease both;
    }
}
@keyframes lp-group-in {
    from { opacity: 0; transform: translateY(-3px); }
    to   { opacity: 1; transform: none; }
}

/* Nested link inside a group: indented, lighter, same pill language. */
body.lp-dash .lp-side .lp-nav-sub {
    display: block;
    margin: 1px 0;
    padding: 0 var(--lp-s-3) 0 var(--lp-s-8);
    min-height: 32px;
    line-height: 32px;
    border-left: 0;
    border-radius: var(--lp-r-pill);
    color: var(--lp-side-text);
    font-size: var(--lp-side-fs-sub);
    text-decoration: none;
    transition: background-color .14s ease, color .14s ease;
}
body.lp-dash .lp-side .lp-nav-sub:hover,
body.lp-dash .lp-side .lp-nav-sub:focus {
    background: var(--lp-side-2);
    color: var(--lp-side-ink);
}
body.lp-dash .lp-side .lp-nav-sub.is-active,
body.lp-dash .lp-side .lp-nav-sub[aria-current="page"] {
    background: var(--lp-side-3);
    border-left-color: transparent;
    color: var(--lp-side-active);
    font-weight: 600;
}

/* ================================================== icon system (ROOT CAUSE) ==
   Broken icons came from two independent faults, both now closed here and in
   the templates:

   1. A ligature font with no ligature. These elements carry no glyph of
      their own; the mark is produced by the font substituting the inner
      text ("caret-down") for a glyph. modern.css supplies the font and
      .pg-icon binds it, but eight of the names the templates asked for
      are not ligatures this font contains (see codepoints.txt), so the
      browser had nothing to substitute and drew the words themselves
      beside the label. Those names were renamed in the templates to
      ligatures that do exist. font-family is deliberately NOT set here:
      assigning any family other than "pages-icon" strips the ligature and
      leaks the literal text again.

   2. Class-form icons with no rule. <i class="pg-icon pg-alert-info"></i>
      is empty; it relies on a stylesheet emitting the glyph. modern.css
      defines no rule for those names, so nothing was drawn at all. They
      are bound to their PUA codepoints below, the same mechanism
      modern.css uses for its own icons.

   Codepoints are read from the shipped pages-icon.woff, not guessed.
   ========================================================================= */

.lp-side .pg-icon,
.lp-side [class^="pg-"]:before { font-size: 15px; }

/* Class-form icons that modern.css never defined. */
.pg-icon.pg-alert-info::before,
.pg-icon[class~="pg-alert-info"]::before {
    content: "\e91f";
}
.pg-icon.pg-external-link::before,
.pg-icon[class~="pg-external-link"]::before {
    content: "\e9ac";
}

/* The theme's :before glyphs share this family; keep them on the font. */
.pg-icon[class^="pg-"]::before,
.pg-icon[class*=" pg-"]::before {
    font-family: "pages-icon";
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    speak: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Empty class-form marks (<i class="pg-close"></i> and friends) that carry no
   text and no theme rule, so they drew nothing at all. Scoped to the i element
   so the .pg-inbox list container used elsewhere is left alone. */
i.pg-close::before,
i.pg-inbox::before,
i.pg-spam::before,
i.pg-sent::before,
i.pg-folder::before {
    font-family: "pages-icon";
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    speak: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
i.pg-close::before  { content: "\e966"; }
i.pg-inbox::before  { content: "\e99e"; }
i.pg-spam::before   { content: "\e99c"; }
i.pg-sent::before   { content: "\e99b"; }
i.pg-folder::before { content: "\e907"; }

/* Sidebar footer: the sign-out control and any secondary action. */
.lp-side-foot {
    flex: 0 0 auto;
    padding: var(--lp-s-3);
    border-top: 1px solid var(--lp-side-line);
}
body.lp-dash .lp-side-foot .btn {
    width: 100%;
    justify-content: center;
    height: 36px;
    background: transparent;
    border: 1px solid var(--lp-side-line-2);
    border-radius: var(--lp-r-pill);
    color: var(--lp-side-text);
    font-weight: 500;
}
body.lp-dash .lp-side-foot .btn:hover,
body.lp-dash .lp-side-foot .btn:focus {
    background: var(--lp-side-3);
    border-color: var(--lp-primary-line);
    color: var(--lp-primary-700);
}

/* Dark-mode switch in the sidebar footer: label + state text + a small pill
   track. Built on the same wash/hover register as .lp-nav-link so it reads as
   just another row in the drawer. aria-checked drives the track/knob. */
.lp-theme-switch {
    display: flex;
    align-items: center;
    gap: var(--lp-s-3);
    width: 100%;
    min-height: var(--lp-side-row);
    padding: 0 var(--lp-s-3);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--lp-r-pill);
    color: var(--lp-side-text);
    font-family: inherit;
    font-size: var(--lp-side-fs);
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background-color .14s ease, color .14s ease;
}
.lp-theme-switch:hover,
.lp-theme-switch:focus {
    background: var(--lp-side-2);
    color: var(--lp-side-ink);
    outline: none;
}
.lp-theme-switch-text { flex: 1 1 auto; }
.lp-theme-switch-state {
    color: var(--lp-muted);
    font-size: var(--lp-side-fs-sub);
    font-weight: 600;
}
.lp-theme-switch-track {
    flex: 0 0 auto;
    position: relative;
    width: 34px;
    height: 18px;
    border-radius: var(--lp-r-pill);
    background: var(--lp-side-line-2);
    transition: background-color .16s ease;
}
.lp-theme-switch-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .30);
    transition: transform .16s ease;
}
.lp-theme-switch[aria-checked="true"] .lp-theme-switch-track { background: var(--lp-primary); }
.lp-theme-switch[aria-checked="true"] .lp-theme-switch-knob { transform: translateX(16px); }

/* -------------------------------------------------------------- top bar --
   One 60px strip across the FULL width of the page, including the area the
   rail occupies and the right-hand account cluster.

   It reaches the full width without the shells being edited: .lp-top is
   `position: fixed`, which takes it out of the flow of .lp-main regardless of
   where it sits in the markup, and .lp-main carries the matching
   padding-top. The rail starts below the bar so the two never overlap. */
.lp-top {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: var(--lp-z-header);
    display: flex;
    align-items: center;
    gap: var(--lp-s-3);
    height: var(--lp-topbar-h);
    padding: 0 var(--lp-s-5);
    background: var(--lp-topbar-bg);
    border-bottom: 1px solid var(--lp-topbar-border);
    box-shadow: var(--lp-sh-1);
    /* Allow Bootstrap dropdowns inside top bar to overflow (clipped before) */
    overflow: visible;
    box-sizing: border-box;
}
.lp-top .dropdown-menu {
    z-index: var(--lp-z-dropdown, 65);
    top: calc(100% + 6px);
    right: 0;
    left: auto;
}

/* The bar's own brand mark: the same yellow-into-blue rule that runs under
   the rail logo and across the top of every card, drawn edge to edge. */
.lp-top::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lp-yellow) 0%,
                var(--lp-yellow-600) 20%, var(--lp-primary) 62%,
                #8ab4f8 100%);
    pointer-events: none;
}

/* The title is an <h1>, and `body.lp-dash h1` (0,1,1) out-specified
   `.lp-top-title` (0,1,0), so the app-bar title was rendering at the 28px
   page-heading size and eating 262px of a 1440px bar. Matching the heading
   rule's specificity and coming later puts it back to a bar-sized label.
   A short yellow bar sits in front of it: the top bar's one brand mark. */
body.lp-dash .lp-top .lp-top-title {
    position: relative;
    flex: 0 1 auto;
    min-width: 0;
    padding-left: 14px;
    font-size: var(--lp-fs-18);
    font-weight: 500;
    line-height: 1.2;
    color: var(--lp-ink);
    margin: 0;
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.lp-dash .lp-top .lp-top-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--lp-yellow) 0%,
                var(--lp-yellow-600) 100%);
}
.lp-top-spacer { flex: 1 1 auto; min-width: var(--lp-s-4); }

/* The notification bell and the account menu were wrapped in Bootstrap's
   `d-lg-inline-block d-none` and `d-lg-block`, so both simply did not exist
   below 992px - no bell, no way to reach the account menu on a tablet or a
   phone. They are app-bar furniture and stay visible at every width; the
   existing width rules at the end of this file still drop the user NAME
   rather than the control itself. */
body.lp-dash .lp-top .dropdown.d-lg-inline-block.d-none,
body.lp-dash .lp-top .dropdown.d-lg-block {
    display: block !important;
}

/* Drawer trigger. Visible at every width: it collapses the rail to the mini
   state on desktop and opens the overlay drawer on mobile. */
/* Scoped through body.lp-dash .lp-top to out-specify the theme's own
   `label` rule, which sets display:block and margin-bottom:6px. That 6px was
   half of a 3px vertical offset: the button sat above the title's centre line.
   Both properties are pinned here rather than trusting the cascade. */
body.lp-dash .lp-top .lp-top-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin: 0;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    /* line-height:0 stops the inline glyph from contributing to the label's
       content box, which is what threw the centring off. */
    line-height: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: var(--lp-side-text);
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color .14s ease, color .14s ease;
}
body.lp-dash .lp-top .lp-top-burger:hover,
body.lp-dash .lp-top .lp-top-burger:focus-visible {
    background: var(--lp-side-3);
    color: var(--lp-primary-700);
}
/* The label's icon must keep the ligature font; setting a family here would
   strip the glyph and print "menu" beside the bars. */
body.lp-dash .lp-top .lp-top-burger .pg-icon {
    display: block;
    margin: 0;
    font-family: "pages-icon";
    font-size: 15px;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    text-transform: none;
    speak: none;
    -webkit-font-smoothing: antialiased;
}

/* Account menu trigger in the top bar: a soft grey pill that fills in on
   hover, with the avatar ringed in the brand yellow. */
body.lp-dash .lp-top-user {
    display: inline-flex;
    align-items: center;
    gap: var(--lp-s-2);
    height: 44px;
    padding: 0 var(--lp-s-3) 0 var(--lp-s-2);
    border: 1px solid transparent;
    border-radius: var(--lp-r-pill);
    background: var(--lp-side-2);
    color: var(--lp-body);
    font-family: var(--lp-font);
    font-size: var(--lp-fs-13);
    font-weight: 500;
    cursor: pointer;
    transition: background-color .14s ease, border-color .14s ease,
                box-shadow .14s ease;
}
body.lp-dash .lp-top-user:hover,
body.lp-dash .lp-top-user:focus {
    background: var(--lp-surface);
    border-color: var(--lp-line-2);
    color: var(--lp-ink);
}
body.lp-dash .lp-top-user .thumbnail-wrapper,
body.lp-dash .lp-top-user img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px var(--lp-yellow);
}
body.lp-dash .lp-top-user .pg-icon { font-size: 12px; opacity: .6; }

/* Icon-only control in the top bar (notifications, quickview). */
body.lp-dash .lp-top-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: var(--lp-muted);
    text-decoration: none;
    transition: background-color .14s ease, color .14s ease;
}
body.lp-dash .lp-top-icon:hover,
body.lp-dash .lp-top-icon:focus {
    background: var(--lp-side-3);
    border-color: transparent;
    color: var(--lp-primary-700);
}
/* The theme's unread bubble on the bell. */
body.lp-dash .lp-top-icon .bubble {
    display: block;
    position: absolute;
    top: 8px; right: 8px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--lp-yellow-600);
    border: 2px solid var(--lp-header);
}

/* The user name is the first thing to go when the bar gets tight. */
@media (max-width: 575px) {
    body.lp-dash .lp-top-user-name { display: none; }
}

/* ===========================================================================
   Superseded inline resource navigation (SimpleBase, SimpleBaseHover)

   These two bases each carried a second, inline Pages-theme accordion in the
   page body. The same routes now live in the sidebar, so the accordion is
   hidden -- not deleted -- so its five onclick handlers
   (callporjects, showdropdown, showdockerdropdown, showdropdown_backups,
   showdropdown_account) and the #dropdown-container-* blocks they toggle are
   still present in the markup if the sidebar is ever rolled back.

   .secondary-sidebar occurs only in these two templates, so this rule cannot
   reach any other page.
   =========================================================================== */
body.lp-dash .secondary-sidebar { display: none !important; }

/* --------------------------------------------------------------- layout -- */

.lp-main {
    /* Offset by the fixed rail, and padded down by the fixed header. */
    margin-left: var(--lp-side-w);
    padding-top: var(--lp-topbar-h);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.lp-content {
    flex: 1 1 auto;
    padding: var(--lp-s-6);
    max-width: 1560px;
    width: 100%;
}

/* The theme centres content in a fixed 1700px/1450px column, which leaves a
   wide dead gutter on large screens. The shell owns its own frame instead. */
.lp-content .container,
.lp-content .container-fluid {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
}
.lp-content .container-fixed-lg { max-width: none; }

/* =============================================================== buttons ==
   Visual presentation only. Nothing here changes what a button does.
   ========================================================================= */

/* Primary ----------------------------------------------------------
   The primary action is the warm brand accent: a yellow pill with dark
   ink, so it reads as the one thing to press on a white card. */
body.lp-dash .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--lp-s-2);
    height: 40px;
    padding: 0 var(--lp-s-5);
    border: 1px solid transparent;
    border-radius: var(--lp-r-sm);
    background: var(--lp-yellow);
    border-color: var(--lp-yellow);
    color: var(--lp-yellow-ink);
    font-family: var(--lp-font);
    font-size: var(--lp-fs-14);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    transition: background-color .14s ease, border-color .14s ease,
                box-shadow .14s ease, transform .14s ease;
}

body.lp-dash .btn:hover,
body.lp-dash .btn:focus,
body.lp-dash .btn:active {
    background: var(--lp-yellow-600);
    border-color: var(--lp-yellow-600);
    color: var(--lp-yellow-ink);
    box-shadow: var(--lp-sh-2);
}
body.lp-dash .btn:active { transform: translateY(1px); }

/* Primary ---------------------------------------------------------- */
body.lp-dash .btn-primary {
    background: var(--lp-btn-primary-bg);
    border-color: var(--lp-btn-primary-bg);
    color: var(--lp-btn-primary-text);
    font-weight: 600;
}
body.lp-dash .btn-primary:hover,
body.lp-dash .btn-primary:focus {
    background: var(--lp-btn-primary-bg-hover);
    border-color: var(--lp-btn-primary-bg-hover);
    color: var(--lp-btn-primary-text);
    box-shadow: var(--lp-sh-2);
}
body.lp-dash .btn-primary:focus-visible {
    outline: 2px solid var(--lp-accent-yellow);
    outline-offset: 2px;
}

/* Secondary / default --------------------------------------------- */
body.lp-dash .btn-default,
body.lp-dash .btn:not([class*="btn-"]):not(.btn-primary):not(.btn-info):not(.btn-warning):not(.btn-success):not(.btn-danger):not(.btn-link):not(.btn-ghost) {
    background: var(--lp-surface);
    border-color: var(--lp-line-2);
    color: var(--lp-body);
}
body.lp-dash .btn-default:hover,
body.lp-dash .btn-default:focus,
body.lp-dash .btn:not([class*="btn-"]):not(.btn-primary):not(.btn-info):not(.btn-warning):not(.btn-success):not(.btn-danger):not(.btn-link):not(.btn-ghost):hover,
body.lp-dash .btn:not([class*="btn-"]):not(.btn-primary):not(.btn-info):not(.btn-warning):not(.btn-success):not(.btn-danger):not(.btn-link):not(.btn-ghost):focus {
    background: var(--lp-surface-alt);
    border-color: var(--lp-line-3);
    color: var(--lp-ink);
}

/* Tertiary / ghost -------------------------------------------------- */
body.lp-dash .btn-link,
body.lp-dash .btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--lp-primary);
    font-weight: 500;
}
body.lp-dash .btn-link:hover,
body.lp-dash .btn-link:focus,
body.lp-dash .btn-ghost:hover,
body.lp-dash .btn-ghost:focus {
    background: var(--lp-primary-soft);
    color: var(--lp-primary-700);
}

/* Status ------------------------------------------------------------ */
body.lp-dash .btn-success {
    background: var(--lp-success);
    border-color: var(--lp-success);
    color: #fff;
}
body.lp-dash .btn-success:hover,
body.lp-dash .btn-success:focus { background: var(--lp-success-ink); color: #fff; }

body.lp-dash .btn-danger {
    background: var(--lp-danger);
    border-color: var(--lp-danger);
    color: #fff;
}
body.lp-dash .btn-danger:hover,
body.lp-dash .btn-danger:focus { background: var(--lp-danger-ink); color: #fff; }

body.lp-dash .btn-warning {
    background: var(--lp-warning);
    border-color: var(--lp-warning);
    color: #1f1f1f;
}
body.lp-dash .btn-warning:hover,
body.lp-dash .btn-warning:focus {
    background: var(--lp-yellow-600);
    border-color: var(--lp-yellow-600);
    color: #1f1f1f;
}

body.lp-dash .btn-info {
    background: var(--lp-btn-primary-bg);
    border-color: var(--lp-btn-primary-bg);
    color: #fff;
}
body.lp-dash .btn-info:hover,
body.lp-dash .btn-info:focus {
    background: var(--lp-btn-primary-bg-hover);
    border-color: var(--lp-btn-primary-bg-hover);
    color: #fff;
}

/* Ghost danger, for destructive list actions. */
body.lp-dash .btn-danger-ghost {
    background: transparent;
    border-color: var(--lp-line-2);
    color: var(--lp-danger-ink);
}
body.lp-dash .btn-danger-ghost:hover,
body.lp-dash .btn-danger-ghost:focus {
    background: var(--lp-danger-soft);
    border-color: var(--lp-danger);
    color: var(--lp-danger-ink);
}

/* Icon buttons -------------------------------------------------------- */
body.lp-dash .btn-icon,
body.lp-dash .btn-icon-link {
    width: 40px;
    padding: 0;
    background: var(--lp-surface);
    border-color: var(--lp-line-2);
    color: var(--lp-muted);
}
body.lp-dash .btn-icon:hover,
body.lp-dash .btn-icon:focus,
body.lp-dash .btn-icon-link:hover,
body.lp-dash .btn-icon-link:focus {
    background: var(--lp-surface-alt);
    border-color: var(--lp-line-3);
    color: var(--lp-ink);
}

/* Sizes --------------------------------------------------------------- */
body.lp-dash .btn-xs,
body.lp-dash .btn-sm { height: 32px; padding: 0 var(--lp-s-3); font-size: var(--lp-fs-12); }
body.lp-dash .btn-lg { height: 48px; padding: 0 var(--lp-s-6); font-size: var(--lp-fs-16); }
body.lp-dash .btn-block { width: 100%; }

/* Disabled ------------------------------------------------------------ */
body.lp-dash .btn:disabled,
body.lp-dash .btn.disabled,
body.lp-dash .btn[disabled] {
    background: var(--lp-surface-sunk);
    border-color: var(--lp-line);
    color: var(--lp-faint);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading: the theme shows .loading on the click handler. The spinner is
   dark on the yellow and white buttons, white on the dark status buttons. */
body.lp-dash .btn.loading { color: transparent !important; position: relative; }
body.lp-dash .btn.loading::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 16px; height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(61, 44, 0, .28);
    border-top-color: var(--lp-yellow-ink);
    border-radius: 50%;
    animation: lp-spin .7s linear infinite;
}
body.lp-dash .btn-default.loading::after,
body.lp-dash .btn:not([class*="btn-"]).loading::after {
    border-color: rgba(60, 64, 67, .25);
    border-top-color: var(--lp-body);
}
body.lp-dash .btn-success.loading::after,
body.lp-dash .btn-danger.loading::after,
body.lp-dash .btn-info.loading::after {
    border-color: rgba(255, 255, 255, .45);
    border-top-color: #fff;
}
@keyframes lp-spin { to { transform: rotate(360deg); } }

body.lp-dash .btn-group { display: inline-flex; gap: 0; }
body.lp-dash .btn-group .btn { border-radius: 0; }
body.lp-dash .btn-group .btn:first-child {
    border-radius: var(--lp-r) 0 0 var(--lp-r);
}
body.lp-dash .btn-group .btn:last-child {
    border-radius: 0 var(--lp-r) var(--lp-r) 0;
}

/* Anchor-styled buttons used as pagination controls and card affordances. */
body.lp-dash a.btn:visited { color: inherit; }
body.lp-dash .btn.btn-link:visited { color: var(--lp-primary); }

/* ================================================================ forms ==
   Field geometry and validation colour only. Names, ids, validation and
   submission behaviour are untouched.
   ========================================================================= */

body.lp-dash .form-control,
body.lp-dash input[type="text"],
body.lp-dash input[type="email"],
body.lp-dash input[type="password"],
body.lp-dash input[type="number"],
body.lp-dash input[type="tel"],
body.lp-dash input[type="url"],
body.lp-dash input[type="search"],
body.lp-dash input[type="date"],
body.lp-dash select,
body.lp-dash textarea {
    display: block;
    width: 100%;
    height: 44px;
    padding: 10px var(--lp-s-3);
    border: 1px solid var(--lp-line-2);
    border-radius: var(--lp-r);
    background: var(--lp-input-bg);
    color: var(--lp-ink);
    border-color: var(--lp-input-border);
    font-family: var(--lp-font);
    font-size: var(--lp-fs-14);
    line-height: 1.4;
    box-shadow: none;
    transition: border-color .14s ease, box-shadow .14s ease;
    -webkit-appearance: none;
    appearance: none;
}
body.lp-dash textarea { height: auto; min-height: 110px; resize: vertical; }

body.lp-dash .form-control:focus,
body.lp-dash input:focus,
body.lp-dash select:focus,
body.lp-dash textarea:focus {
    border-color: var(--lp-primary);
    box-shadow: var(--lp-ring);
    outline: none;
}
body.lp-dash .form-control::placeholder,
body.lp-dash input::placeholder,
body.lp-dash textarea::placeholder { color: var(--lp-faint); }

body.lp-dash .form-control:disabled,
body.lp-dash input:disabled,
body.lp-dash select:disabled,
body.lp-dash textarea:disabled {
    background: var(--lp-surface-sunk);
    color: var(--lp-faint);
    cursor: not-allowed;
}
body.lp-dash .form-control[readonly] { background: var(--lp-surface-alt); }

/* Selects keep a chevron; -webkit-appearance:none removed the native one. */
body.lp-dash select {
    padding-right: 34px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1.4 1.7 6 6.3l4.6-4.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

/* Labels -------------------------------------------------------------- */
body.lp-dash label,
body.lp-dash .control-label {
    display: block;
    margin-bottom: 6px;
    color: var(--lp-body);
    font-size: var(--lp-fs-13);
    font-weight: 600;
}

/* Prefix / suffix input groups ---------------------------------------- */
body.lp-dash .input-group { display: flex; width: 100%; }
body.lp-dash .input-group .form-control { border-radius: 0; }
body.lp-dash .input-group .form-control:first-child {
    border-top-left-radius: var(--lp-r);
    border-bottom-left-radius: var(--lp-r);
}
body.lp-dash .input-group .form-control:last-child {
    border-top-right-radius: var(--lp-r);
    border-bottom-right-radius: var(--lp-r);
}
body.lp-dash .input-group-addon {
    display: flex;
    align-items: center;
    padding: 0 var(--lp-s-3);
    background: var(--lp-surface-sunk);
    border: 1px solid var(--lp-line-2);
    color: var(--lp-muted);
    font-size: var(--lp-fs-13);
    white-space: nowrap;
}

/* Checkboxes and radios ------------------------------------------------ */
body.lp-dash input[type="checkbox"],
body.lp-dash input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0 8px 0 0;
    padding: 0;
    border: 1px solid var(--lp-line-3);
    border-radius: 4px;
    background: var(--lp-surface);
    vertical-align: middle;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    flex: 0 0 auto;
}
body.lp-dash input[type="radio"] { border-radius: 50%; }
body.lp-dash input[type="checkbox"]:checked,
body.lp-dash input[type="radio"]:checked {
    background-color: var(--lp-primary);
    border-color: var(--lp-primary);
}
body.lp-dash input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M1.5 5.2 4.4 8.1 10.5 1.9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}
body.lp-dash input[type="radio"]:checked {
    box-shadow: inset 0 0 0 3px var(--lp-surface);
}
body.lp-dash input[type="checkbox"]:focus-visible,
body.lp-dash input[type="radio"]:focus-visible {
    box-shadow: var(--lp-ring);
    border-color: var(--lp-primary);
}
body.lp-dash .checkbox,
body.lp-dash .radio { display: flex; align-items: center; margin-bottom: var(--lp-s-2); }
body.lp-dash .checkbox label,
body.lp-dash .radio label { margin: 0; font-weight: 500; cursor: pointer; }

/* Switches: a checkbox rendered as a track. */
body.lp-dash .lp-switch { display: inline-flex; align-items: center; gap: var(--lp-s-3); cursor: pointer; }
body.lp-dash .lp-switch input[type="checkbox"] {
    position: relative;
    width: 40px; height: 22px;
    border-radius: var(--lp-r-pill);
    border: 1px solid var(--lp-line-3);
    background: var(--lp-surface-sunk);
    transition: background-color .16s ease, border-color .16s ease;
}
body.lp-dash .lp-switch input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 2px; left: 2px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--lp-surface);
    box-shadow: var(--lp-sh-1);
    transition: transform .16s cubic-bezier(.22, 1, .36, 1);
}
body.lp-dash .lp-switch input[type="checkbox"]:checked {
    background: var(--lp-primary);
    border-color: var(--lp-primary);
}
body.lp-dash .lp-switch input[type="checkbox"]:checked::after {
    transform: translateX(18px);
}

/* Select2 inherits the legacy look on several forms. */
body.lp-dash .select2-container .select2-selection--single {
    height: 44px;
    border: 1px solid var(--lp-line-2);
    border-radius: var(--lp-r);
    background: var(--lp-surface);
}
body.lp-dash .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 42px;
    padding-left: var(--lp-s-3);
    color: var(--lp-ink);
    font-size: var(--lp-fs-14);
}
body.lp-dash .select2-container--focus .select2-selection--single {
    border-color: var(--lp-primary);
    box-shadow: var(--lp-ring);
}
body.lp-dash .select2-dropdown {
    border-color: var(--lp-line-2);
    border-radius: var(--lp-r);
    box-shadow: var(--lp-sh-3);
}
body.lp-dash .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--lp-primary);
}

/* Validation ------------------------------------------------------------ */
body.lp-dash .has-error .form-control,
body.lp-dash .form-control.error,
body.lp-dash .ng-invalid.ng-touched + .form-control,
body.lp-dash input.ng-invalid.ng-touched {
    border-color: var(--lp-danger);
}
body.lp-dash .has-success .form-control { border-color: var(--lp-success); }
body.lp-dash .help-block { color: var(--lp-muted); font-size: var(--lp-fs-12); }
body.lp-dash .has-error .help-block { color: var(--lp-danger-ink); }
body.lp-dash .error,
body.lp-dash .text-danger { color: var(--lp-danger-ink) !important; }

/* ============================================================== surfaces ==
   Cards, panels, feature tiles, empty states.
   ========================================================================= */

body.lp-dash .card,
body.lp-dash .panel {
    background: var(--lp-card-bg);
    border: 1px solid var(--lp-card-border);
    border-radius: var(--lp-r-lg);
    box-shadow: var(--lp-sh-1);
    margin-bottom: var(--lp-s-5);
    overflow: hidden;
}

/* The brand rule across the top edge, carried over from the auth card:
   yellow running into blue, so every card carries the two accents. */
body.lp-dash .card::before,
body.lp-dash .panel::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--lp-yellow) 0%,
                var(--lp-yellow-600) 26%, var(--lp-primary) 100%);
    margin: -1px -1px 0;
}

body.lp-dash .card-header,
body.lp-dash .panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--lp-s-3);
    padding: var(--lp-s-4) var(--lp-s-5);
    background: var(--lp-surface);
    border-bottom: 1px solid var(--lp-line);
    color: var(--lp-ink);
    font-size: var(--lp-fs-16);
    font-weight: 600;
}
body.lp-dash .card-body,
body.lp-dash .panel-body { padding: var(--lp-s-5); }

/* The theme sets .no-border with !important, so match it rather than fight. */
body.lp-dash .no-border,
body.lp-dash .card.no-border,
body.lp-dash .panel.no-border {
    border: 0 !important;
    box-shadow: var(--lp-sh-1);
}

/* A card that links somewhere lifts on hover. Pure affordance. */
body.lp-dash a.card,
body.lp-dash a.panel {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: box-shadow .16s ease, transform .16s ease;
}
body.lp-dash a.card:hover,
body.lp-dash a.card:focus,
body.lp-dash a.panel:hover,
body.lp-dash a.panel:focus {
    box-shadow: var(--lp-sh-3);
    transform: translateY(-2px);
}

/* The theme's .page-content-wrapper has no padding of its own. */
body.lp-dash .page-content-wrapper { padding: 0; }

/* Feature tiles: icon + label + value. */
body.lp-dash .tile,
body.lp-dash .info-box {
    display: flex;
    align-items: center;
    gap: var(--lp-s-4);
    padding: var(--lp-s-4) var(--lp-s-5);
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-r-lg);
    box-shadow: var(--lp-sh-1);
    margin-bottom: var(--lp-s-4);
}
body.lp-dash .tile-icon,
body.lp-dash .info-box-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    flex: 0 0 auto;
    border-radius: var(--lp-r-md);
    background: var(--lp-primary-soft);
    color: var(--lp-primary);
    font-size: 20px;
}
body.lp-dash .tile-label {
    color: var(--lp-muted);
    font-size: var(--lp-fs-12);
    font-weight: 500;
    margin: 0;
}
body.lp-dash .tile-value {
    color: var(--lp-ink);
    font-size: var(--lp-fs-22);
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

/* The "add a tile" affordance the app draws with its own classes. */
body.lp-dash .addw,
body.lp-dash .borderd {
    background: var(--lp-surface);
    border: 1px dashed var(--lp-line-2);
    border-radius: var(--lp-r-lg);
    color: var(--lp-muted);
    text-align: center;
    transition: border-color .14s ease, background-color .14s ease;
}
body.lp-dash .addw:hover,
body.lp-dash .borderd:hover {
    border-color: var(--lp-primary);
    background: var(--lp-primary-soft);
}

/* Empty states: these pages are frequently empty on first run, and a bare
   table header with no explanation reads as a failure. */
body.lp-dash .lp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--lp-s-3);
    padding: var(--lp-s-10) var(--lp-s-6);
    text-align: center;
    color: var(--lp-muted);
}
body.lp-dash .lp-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--lp-surface-sunk);
    color: var(--lp-faint);
    font-size: 26px;
}
body.lp-dash .lp-empty-title {
    color: var(--lp-ink);
    font-size: var(--lp-fs-16);
    font-weight: 600;
}
body.lp-dash .lp-empty-text { max-width: 42ch; font-size: var(--lp-fs-13); }

/* =============================================================== tables ==
   Column spacing, row height, borders and hover. Table data and behaviour
   are untouched.
   ========================================================================= */

body.lp-dash .table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

body.lp-dash .table > thead > tr > th {
    padding: var(--lp-s-3) var(--lp-s-4);
    background: var(--lp-primary-soft);
    border-bottom: 1px solid var(--lp-primary-line);
    border-top: 0;
    color: var(--lp-primary-700);
    font-size: var(--lp-fs-11);
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}

body.lp-dash .table > tbody > tr > td {
    padding: var(--lp-s-4);
    border-top: 0;
    border-bottom: 1px solid var(--lp-line);
    color: var(--lp-body);
    font-size: var(--lp-fs-14);
    vertical-align: middle;
}
body.lp-dash .table > tbody > tr:first-child > td { border-top: 0; }
body.lp-dash .table > tbody > tr:hover > td { background: var(--lp-surface-alt); }

/* Table inside a card should not double the border. */
body.lp-dash .card .table > tbody > tr:last-child > td,
body.lp-dash .panel .table > tbody > tr:last-child > td { border-bottom: 0; }

/* Some tables carried near-white inline header colours (#fff0ff). */
body.lp-dash .table th { background-image: none !important; }
body.lp-dash .table-striped > tbody > tr:nth-of-type(odd) { background: transparent; }

/* Legacy list views: the theme's repeated-record component. */
body.lp-dash .list-view {
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-r-lg);
    box-shadow: var(--lp-sh-1);
}
body.lp-dash .list-view-item {
    padding: var(--lp-s-4);
    border-bottom: 1px solid var(--lp-line);
    color: var(--lp-body);
}
body.lp-dash .list-view-item:last-child { border-bottom: 0; }
body.lp-dash .list-view-item:hover { background: var(--lp-surface-alt); }

/* Legacy pagination: modern.css defines none, several templates rely on it. */
body.lp-dash .pagination {
    display: flex;
    gap: 4px;
    margin: var(--lp-s-5) 0 0;
    padding: 0;
    list-style: none;
}
body.lp-dash .pagination > li > a,
body.lp-dash .pagination > li > span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-r);
    background: var(--lp-surface);
    color: var(--lp-body);
    font-size: var(--lp-fs-13);
    font-weight: 500;
    text-decoration: none;
}
body.lp-dash .pagination > li > a:hover,
body.lp-dash .pagination > li > a:focus {
    background: var(--lp-surface-alt);
    border-color: var(--lp-line-3);
    color: var(--lp-ink);
}
body.lp-dash .pagination > .active > a,
body.lp-dash .pagination > .active > span {
    background: var(--lp-primary);
    border-color: var(--lp-primary);
    color: #fff;
}
body.lp-dash .pagination > .disabled > a,
body.lp-dash .pagination > .disabled > span {
    color: var(--lp-faint);
    background: var(--lp-surface-sunk);
}

/* ============================================ alerts, labels and badges == */

body.lp-dash .alert {
    display: flex;
    align-items: flex-start;
    gap: var(--lp-s-3);
    padding: var(--lp-s-4);
    border: 1px solid transparent;
    border-radius: var(--lp-r-md);
    font-size: var(--lp-fs-14);
    margin-bottom: var(--lp-s-4);
}
body.lp-dash .alert-success {
    background: var(--lp-success-soft);
    border-color: #a8dab5;
    color: var(--lp-success-ink);
}
body.lp-dash .alert-info {
    background: var(--lp-info-soft);
    border-color: #c2dbfc;
    color: var(--lp-info);
}
body.lp-dash .alert-warning,
body.lp-dash .alert-warn {
    background: var(--lp-warning-soft);
    border-color: #fce8b2;
    color: var(--lp-warning-ink);
}
body.lp-dash .alert-danger {
    background: var(--lp-danger-soft);
    border-color: #f2b8b5;
    color: var(--lp-danger-ink);
}
body.lp-dash .alert a { color: inherit; text-decoration: underline; }

/* Status badges. */
body.lp-dash .badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--lp-r-pill);
    background: var(--lp-surface-sunk);
    color: var(--lp-muted);
    font-size: var(--lp-fs-11);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .01em;
}
body.lp-dash .badge-success { background: var(--lp-success-soft); color: var(--lp-success-ink); }
body.lp-dash .badge-danger  { background: var(--lp-danger-soft);  color: var(--lp-danger-ink); }
body.lp-dash .badge-warning { background: var(--lp-warning-soft); color: var(--lp-warning-ink); }
body.lp-dash .badge-info    { background: var(--lp-info-soft);    color: var(--lp-info); }
body.lp-dash .badge-primary { background: var(--lp-primary-soft); color: var(--lp-primary-700); }
body.lp-dash .badge-default { background: var(--lp-surface-sunk); color: var(--lp-muted); }

/* Dot indicators, used for server and service state. */
body.lp-dash .lp-dot {
    display: inline-block;
    width: 8px; height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--lp-faint);
    vertical-align: middle;
}
body.lp-dash .lp-dot.is-up,
body.lp-dash .lp-dot-success { background: var(--lp-success); }
body.lp-dash .lp-dot.is-down,
body.lp-dash .lp-dot-danger  { background: var(--lp-danger); }
body.lp-dash .lp-dot.is-warn,
body.lp-dash .lp-dot-warning { background: var(--lp-warning); }
body.lp-dash .lp-dot.is-idle,
body.lp-dash .lp-dot-info    { background: var(--lp-info); }

/* ============================================================ dropdowns ==
   ========================================================================= */

body.lp-dash .dropdown-menu {
    padding: var(--lp-s-2);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-r-md);
    background: var(--lp-card-bg);
    box-shadow: var(--lp-sh-3);
    font-size: var(--lp-fs-14);
}
body.lp-dash .dropdown-menu > li > a {
    display: block;
    padding: 8px var(--lp-s-3);
    border-radius: var(--lp-r-sm);
    color: var(--lp-body);
    text-decoration: none;
}
body.lp-dash .dropdown-menu > li > a:hover,
body.lp-dash .dropdown-menu > li > a:focus {
    background: var(--lp-surface-alt);
    color: var(--lp-ink);
}
body.lp-dash .dropdown-menu > .active > a {
    background: var(--lp-primary-soft);
    color: var(--lp-primary-700);
    font-weight: 500;
}
body.lp-dash .dropdown-divider {
    height: 1px;
    margin: var(--lp-s-2) 0;
    background: var(--lp-line);
    border: 0;
}
body.lp-dash .dropdown-header {
    padding: 6px var(--lp-s-3);
    color: var(--lp-faint);
    font-size: var(--lp-fs-11);
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* ================================================================= modal == */

body.lp-dash .modal-content {
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-r-lg);
    box-shadow: var(--lp-sh-4);
    overflow: hidden;
}
body.lp-dash .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--lp-s-3);
    padding: var(--lp-s-4) var(--lp-s-5);
    border-bottom: 1px solid var(--lp-line);
    background: var(--lp-surface);
}
body.lp-dash .modal-title {
    margin: 0;
    color: var(--lp-ink);
    font-size: var(--lp-fs-18);
    font-weight: 600;
}
body.lp-dash .modal-body { padding: var(--lp-s-5); color: var(--lp-body); }
body.lp-dash .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--lp-s-2);
    padding: var(--lp-s-4) var(--lp-s-5);
    border-top: 1px solid var(--lp-line);
    background: var(--lp-surface-alt);
}
body.lp-dash .modal-backdrop { background: rgba(32, 33, 36, .5); }

/* =========================================================== breadcrumb ==
   The Pages theme sets Montserrat on .breadcrumb and its .font-montserrat
   utilities. Neither reads as part of this product.
   ========================================================================= */

body.lp-dash .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin: 0 0 var(--lp-s-4);
    background: transparent;
    border-radius: 0;
    font-family: var(--lp-font);
    font-size: var(--lp-fs-13);
}
body.lp-dash .breadcrumb > li { color: var(--lp-muted); }
body.lp-dash .breadcrumb > li + li::before {
    content: "/";
    padding: 0 6px;
    color: var(--lp-line-3);
}
body.lp-dash .breadcrumb a { color: var(--lp-primary); text-decoration: none; }
body.lp-dash .breadcrumb a:hover { color: var(--lp-primary-700); text-decoration: underline; }
body.lp-dash .breadcrumb > .active { color: var(--lp-ink); font-weight: 500; }
body.lp-dash .font-montserrat,
body.lp-dash .breadcrumb { font-family: var(--lp-font) !important; }

/* =============================================================== misc ==== */

/* The theme paints avatars green; they sit in the header on every page. */
body.lp-dash .avatar,
body.lp-dash img.avatar { border-radius: 50%; object-fit: cover; }

/* The Pace loader flashes at the top of every page load, green by default. */
body.lp-dash .pace .pace-progress { background: var(--lp-primary); }
body.lp-dash .pace .pace-progress:after {
    color: var(--lp-primary);
    font-family: var(--lp-font);
}

/* Theme toggles and checkboxes that render as small squares. */
body.lp-dash .switch,
body.lp-dash .toggle-switch { display: inline-flex; align-items: center; gap: var(--lp-s-2); }

/* The Pages demo login hero put a white heading on a light band. */
body.lp-dash .bg-white + .text-white,
body.lp-dash .text-white.on-light { color: var(--lp-ink) !important; }

/* ---------------------------------------------------------------- misc --- */

/* Document-level overflow guard. The theme sets a fixed-width body. */
body.lp-dash { overflow-x: hidden; }

/* The Pages theme locks the document (`.horizontal-app-menu.fixed-header {
   overflow: hidden }`) and delegates scrolling to its own `.page-container`.
   The new shell has no `.page-container`, so tall pages (deploy website /
   server wizards, long lists) were clipped and could not scroll. Re-enable
   vertical scrolling on the document; `.lp-side` and `.lp-top` are fixed, so
   they stay put. Specificity (0,3,1) beats the theme's (0,2,0). */
body.lp-dash.horizontal-app-menu.fixed-header { overflow-y: auto; }

/* Utility the base templates use for a right-aligned action cluster.
   Named lp-action-row, not lp-actions: the auth pages already use .lp-actions
   for a vertical-margin wrapper and the two must not collide. */
.lp-action-row {
    display: flex;
    align-items: center;
    gap: var(--lp-s-2);
}

/* Grid for card rows; Bootstrap's .row is already in use, so this is scoped
   to the new shell and does not disturb existing column markup. */
.lp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--lp-s-4);
}
.lp-grid > .card,
.lp-grid > .panel { margin-bottom: 0; }

/* ========================================================== responsive ==
   Breakpoints follow Bootstrap 3's, because the existing column markup
   (col-md-*, d-lg-none, visible-xs-*) is built on them.
   ========================================================================= */

@media (max-width: 1199px) {
    .lp-top { padding: 0 var(--lp-s-5); }
    .lp-content { padding: var(--lp-s-5); }
}

@media (max-width: 991px) {
    .lp-top { padding: 0 var(--lp-s-4); }
    .lp-content { padding: var(--lp-s-5); }

    /* Below 992px the brief calls for an overlay drawer, which is a different
       state from the desktop mini rail, so it takes precedence:
         unchecked = closed            checked = open, overlaying the page
       Every rule here is more specific than the mini-rail block at the end of
       this file, so the rail is the full width, never the 60px mini. */
    .lp-side {
        width: var(--lp-side-w);
        transform: translateX(-100%);
        box-shadow: var(--lp-sh-4);
    }
    .lp-main { margin-left: 0; }

    body.lp-dash .lp-nav-toggle:checked ~ .lp-app .lp-side {
        width: var(--lp-side-w);
        transform: translateX(0);
    }
    /* The open drawer overlays the page here, so the offset stays off. */
    body.lp-dash .lp-nav-toggle:checked ~ .lp-app .lp-main { margin-left: 0; }


    body.lp-dash .lp-nav-toggle:checked ~ .lp-scrim {
        opacity: 1;
        visibility: visible;
    }

    /* Tables stay readable by scrolling rather than squashing. */
    .lp-content .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .lp-content .table-responsive > .table { min-width: 640px; }
}

@media (max-width: 767px) {
    .lp-top { padding: 0 var(--lp-s-4); gap: var(--lp-s-3); }
    .lp-content { padding: var(--lp-s-4); }
    .lp-top-title { font-size: var(--lp-fs-16); }
    .lp-grid { grid-template-columns: 1fr; }
    body.lp-dash .card-body,
    body.lp-dash .panel-body { padding: var(--lp-s-4); }
    body.lp-dash .btn { height: 38px; }
    /* Keep tap targets comfortable on touch. */
    body.lp-dash .btn-icon,
    body.lp-dash .btn-icon-link { width: 38px; }
}

@media (max-width: 479px) {
    .lp-top-title { font-size: var(--lp-fs-14); }
    .lp-content { padding: var(--lp-s-3); }
}

/* Phone landscape: the drawer is the only sane navigation. */
@media (max-height: 480px) and (orientation: landscape) {
    .lp-side { width: 240px; }
}

/* ====================================================== legacy shell ====
   The four bases each shipped their own horizontal .menu-bar and coloured
   .header. The sidebar replaces them, so the old chrome is removed rather
   than left to fight. Rules here only hide and reset; they add no layout.

   Nothing is deleted from the templates: the old nav markup stays in the
   files but is not rendered, so a revert is a one-line CSS change.
   ========================================================================= */

body.lp-dash .lp-v2-shell-off .header,
body.lp-dash .lp-v2-shell-off .menu-bar { display: none !important; }

/* Where a base still emits the theme header, neutralise its colour so the
   white top bar reads cleanly. */
body.lp-dash .header.bg-primary { background: var(--lp-header) !important; }
body.lp-dash .header.bg-primary .brand { color: var(--lp-ink) !important; }

/* The theme centres the app in a fixed column; the shell owns its frame. */
body.lp-dash .page-container { padding: 0 !important; }
body.lp-dash .page-content-wrapper { padding: 0 !important; }
body.lp-dash .container-fixed-lg { max-width: none !important; }
body.lp-dash .footer {
    padding: var(--lp-s-6) 0 !important;
    border-top: 1px solid var(--lp-line);
    background: var(--lp-surface);
    color: var(--lp-faint);
    font-size: var(--lp-fs-12);
}
body.lp-dash .footer a { color: var(--lp-muted); }

/* The theme's own horizontal-menu plugin expects .menu-bar > ul to be a
   flex row. Nothing uses it now, but reset it so a stray menu cannot
   inherit flex layout inside the new shell. */
body.lp-dash .lp-content .menu-bar > ul { display: block; }

/* ================================================ panel component set ===
   A compact vocabulary for panel pages: page frame, heading, stat, card
   grid, empty state, pager. Templates that adopt these classes pick up the
   new design with no logic change; templates not yet converted are handled
   by the legacy-theme layer below.

   Every name here is taken from the templates that use it. Nothing is
   invented, so a class can always be traced back to real markup.
   ========================================================================= */

/* ---- page frame ---------------------------------------------------------- */

.lp-pan {
    display: block;
    max-width: 1280px;
}

/* ---- breadcrumb --------------------------------------------------------- */

.lp-pan-crumbs { margin-bottom: var(--lp-s-4); }

.lp-pan-crumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--lp-s-2);
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--lp-fs-13);
}
.lp-pan-crumbs-list li {
    display: flex;
    align-items: center;
    gap: var(--lp-s-2);
    color: var(--lp-faint);
}
.lp-pan-crumbs-list li + li::before {
    content: "/";
    color: var(--lp-line-3);
}
.lp-pan-crumbs-list a {
    color: var(--lp-muted);
    text-decoration: none;
    transition: color .12s ease;
}
.lp-pan-crumbs-list a:hover,
.lp-pan-crumbs-list a:focus { color: var(--lp-primary); }

/* ---- page heading + stat ------------------------------------------------ */

.lp-pan-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--lp-s-4);
    margin-bottom: var(--lp-s-6);
}
.lp-pan-head-text { min-width: 0; }

/* The theme sizes bare h1/h2/h3 elements, so a single class on a heading
   is not reliably enough to win. These carry an extra element qualifier to
   sit above the theme's heading rules. */
body.lp-dash .lp-pan-title,
.lp-pan-title {
    margin: 0 0 4px;
    color: var(--lp-ink);
    font-size: var(--lp-fs-22);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.015em;
}
.lp-pan-sub {
    margin: 0;
    color: var(--lp-muted);
    font-size: var(--lp-fs-14);
    line-height: 1.5;
}

.lp-pan-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 0 0 auto;
    padding: var(--lp-s-2) var(--lp-s-4);
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-r-md);
}
.lp-pan-stat-num {
    color: var(--lp-ink);
    font-size: var(--lp-fs-28);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.02em;
}
.lp-pan-stat-label {
    color: var(--lp-faint);
    font-size: var(--lp-fs-11);
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
}

/* ---- card grid ---------------------------------------------------------- */

.lp-pan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: var(--lp-s-4);
    align-items: stretch;
}

.lp-pan-card {
    display: flex;
    flex-direction: column;
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-r-lg);
    box-shadow: var(--lp-sh-1);
    overflow: hidden;
    transition: box-shadow .16s ease, border-color .16s ease,
                transform .16s ease;
}
.lp-pan-card:hover {
    border-color: var(--lp-line-2);
    box-shadow: var(--lp-sh-3);
    transform: translateY(-1px);
}

.lp-pan-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--lp-s-3);
    padding: var(--lp-s-3) var(--lp-s-4);
    border-bottom: 1px solid var(--lp-line);
    background: var(--lp-surface-alt);
}

.lp-pan-manage {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--lp-primary);
    font-size: var(--lp-fs-13);
    font-weight: 600;
    text-decoration: none;
}
.lp-pan-manage:hover,
.lp-pan-manage:focus { color: var(--lp-primary-600); text-decoration: underline; }
.lp-pan-manage .fa { font-size: 11px; opacity: .8; }

.lp-pan-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: var(--lp-r-sm);
    color: var(--lp-faint);
    transition: background-color .12s ease, color .12s ease;
}
.lp-pan-refresh:hover,
.lp-pan-refresh:focus {
    background: var(--lp-primary-soft);
    color: var(--lp-primary);
}

.lp-pan-card-body {
    flex: 1 1 auto;
    padding: var(--lp-s-5) var(--lp-s-4);
    text-align: center;
}

.lp-pan-logo-link { display: inline-block; }
.lp-pan-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: var(--lp-s-3);
    background: var(--lp-surface-sunk);
    border-radius: var(--lp-r-md);
    overflow: hidden;
}
.lp-pan-logo img { max-width: 26px; max-height: 26px; }

.lp-pan-name-link { text-decoration: none; }
body.lp-dash .lp-pan-name,
.lp-pan-name {
    margin: 0 0 var(--lp-s-3);
    color: var(--lp-ink);
    font-size: var(--lp-fs-16);
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}
.lp-pan-name-link:hover .lp-pan-name { color: var(--lp-primary); }

.lp-pan-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--lp-s-2) var(--lp-s-4);
    color: var(--lp-muted);
    font-size: var(--lp-fs-13);
}
.lp-pan-owner,
.lp-pan-members {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.lp-pan-ico {
    flex: 0 0 auto;
    width: 14px;
    color: var(--lp-faint);
    font-size: var(--lp-fs-13);
}

.lp-pan-card-foot {
    padding: var(--lp-s-3) var(--lp-s-4);
    border-top: 1px solid var(--lp-line);
    background: var(--lp-surface-alt);
}

/* ---- "add" tile --------------------------------------------------------- */

.lp-pan-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--lp-s-3);
    padding: var(--lp-s-8) var(--lp-s-5);
    background: var(--lp-surface);
    border: 1px dashed var(--lp-line-2);
    border-radius: var(--lp-r-lg);
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease;
}
.lp-pan-add:hover,
.lp-pan-add:focus {
    background: var(--lp-primary-soft);
    border-color: var(--lp-primary-line);
}
.lp-pan-add-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--lp-primary);
    background: var(--lp-primary-soft);
    border-radius: var(--lp-r-md);
}
.lp-pan-add:hover .lp-pan-add-ico { background: #fff; }
.lp-pan-add-text {
    color: var(--lp-ink);
    font-size: var(--lp-fs-14);
    font-weight: 600;
}

/* ---- empty state -------------------------------------------------------- */

.lp-pan-empty {
    grid-column: 1 / -1;
    padding: var(--lp-s-10) var(--lp-s-6);
    text-align: center;
    background: var(--lp-surface);
    border: 1px dashed var(--lp-line-2);
    border-radius: var(--lp-r-lg);
}
body.lp-dash .lp-pan-empty-title,
.lp-pan-empty-title {
    margin: 0 0 6px;
    color: var(--lp-ink);
    font-size: var(--lp-fs-16);
    font-weight: 600;
}
.lp-pan-empty-text {
    margin: 0;
    color: var(--lp-muted);
    font-size: var(--lp-fs-14);
}

/* ---- pager + footer note ------------------------------------------------ */

.lp-pan-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--lp-s-3);
    margin-top: var(--lp-s-6);
}
.lp-pan-foot-note {
    margin: 0;
    color: var(--lp-faint);
    font-size: var(--lp-fs-13);
}

.lp-pan-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--lp-s-1);
    margin: 0;
    padding: 0;
    list-style: none;
}
.lp-pan-pager li > a,
.lp-pan-pager li > span,
.lp-pan-pager > li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 var(--lp-s-2);
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-r-sm);
    color: var(--lp-muted);
    font-size: var(--lp-fs-13);
    font-weight: 500;
    text-decoration: none;
    transition: background-color .12s ease, border-color .12s ease,
                color .12s ease;
}
.lp-pan-pager li > a:hover,
.lp-pan-pager li > a:focus {
    background: var(--lp-primary-soft);
    border-color: var(--lp-primary-line);
    color: var(--lp-primary);
}
.lp-pan-pager .is-current > span {
    background: var(--lp-primary);
    border-color: var(--lp-primary);
    color: #fff;
    font-weight: 600;
}
.lp-pan-pager .lp-pan-pager-off {
    background: var(--lp-surface-sunk);
    color: var(--lp-faint);
    cursor: not-allowed;
}

/* ---- the card grid collapses first; the stat follows the heading -------- */

@media (max-width: 767px) {
    .lp-pan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
    .lp-pan-head { align-items: flex-start; }
    .lp-pan-stat { align-items: flex-start; }
    .lp-pan-title { font-size: var(--lp-fs-18); }
}

/* ================================================ legacy theme layer ====
   The Pages theme (modern.css) draws these classes its own way and the
   un-converted templates still emit them. Restyling them here redraws
   those pages in one place, instead of editing 200+ templates that each
   carry Angular bindings and form wiring. Names, ids, data-* attributes
   and event handlers are untouched.
   ========================================================================= */

/* ---- rounded boxes the theme draws square ------------------------------ */

body.lp-dash .box_radius { border-radius: var(--lp-r-lg) !important; }
body.lp-dash .box_hover {
    transition: border-color .16s ease, box-shadow .16s ease;
}
body.lp-dash .box_hover:hover {
    border-color: var(--lp-primary-line) !important;
    box-shadow: var(--lp-sh-2) !important;
}
body.lp-dash .disable_hover,
body.lp-dash .disable_hover:hover {
    box-shadow: none !important;
    border-color: var(--lp-line) !important;
}

/* ---- the card surface ----------------------------------------------------
   This is the single highest-leverage rule in the file. 179 of the 224
   templates use `class="card card-transparent"`, and this rule was making
   that class literally invisible - transparent background, transparent
   border, no shadow. Every one of those pages rendered as loose rows of text
   on the canvas, which is what made the whole panel read as "only text".

   The name is a legacy holdover from the Pages theme, where it meant "card
   without a border" rather than "invisible". It is now a real surface card:
   white, hairline border, soft shadow, consistent radius. Pages that set
   their own background inline still win - nothing is overridden. */
body.lp-dash .card-transparent {
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-r);
    box-shadow: var(--lp-sh-1);
}

/* 201 of the templates still carry an inline `background-color: #f3f3f3` on
   the card itself. An inline style beats any stylesheet rule, so without
   !important these cards stay cold grey and the panel keeps looking flat.
   Scoped to the card only - the .content wrapper keeps its own background. */
body.lp-dash .card.card-transparent {
    background-color: var(--lp-surface) !important;
    border-color: var(--lp-line) !important;
}

body.lp-dash .card-transparent > .card-header {
    background: var(--lp-surface);
    border-bottom: 1px solid var(--lp-line);
    font-weight: 600;
    color: var(--lp-ink);
}

body.lp-dash .card-transparent > .card-body {
    color: var(--lp-body);
}

/* Nested panels sit on the sunk surface so a card inside a card still reads
   as two levels rather than one flat block. */
body.lp-dash .card .card-transparent,
body.lp-dash .card-transparent .card {
    box-shadow: none;
    background: var(--lp-surface-alt);
}

/* ---- media tiles -------------------------------------------------------- */

body.lp-dash .thumbnail-wrapper {
    border-radius: var(--lp-r-md);
    overflow: hidden;
    background: var(--lp-surface-sunk);
}
body.lp-dash .circular { border-radius: 50%; overflow: hidden; }
body.lp-dash .d48 {
    width: 48px;
    height: 48px;
    line-height: 48px;
}

/* ---- typography the theme sets in greys -------------------------------- */

body.lp-dash .bold { font-weight: 600; color: var(--lp-ink); }
body.lp-dash .semi-bold { font-weight: 600; color: var(--lp-body); }
body.lp-dash .v-align-middle { vertical-align: middle !important; }
body.lp-dash .font-arial {
    font-family: var(--lp-font);
    color: var(--lp-body);
}

/* ---- layout helpers the theme implements with borders ------------------ */

body.lp-dash .no-margin { margin: 0 !important; }
body.lp-dash .no-padding { padding: 0 !important; }
body.lp-dash .no-footer { padding-bottom: 0 !important; }

/* ---- the theme's main content wrapper ---------------------------------- */

body.lp-dash .content { padding: 0; }

/* ======================================================================
   Legacy inner-page skin
   ----------------------------------------------------------------------
   The "v2" pages (SimpleBase / ServerBaseNew / NewWebSiteBase) run inside
   the new shell but still carry the old Pages-theme body: a grey .content
   wash, .card / .form-group-default markup and a hardcoded palette
   (#161a69 purple, #ededf7 / #f3f3f3 / #e0e2e4 greys, #d7d7d7 hairlines,
   #424c54 text). These rules re-skin that markup with the same tokens the
   lp-* components use, so every internal page reads as one product.
   Scoped to the routed content column (.page-content-wrapper) so the shell
   chrome and the lp-* pages are never affected. !important is used only
   where a stylesheet rule must beat an inline style.
   ====================================================================== */

/* page canvas: drop the flat "bg-white" blocks */
body.lp-dash .page-content-wrapper .container-fixed-lg,
body.lp-dash .page-content-wrapper .bg-white,
body.lp-dash .page-content-wrapper .bg-master-lighter {
    background-color: transparent !important;
}

/* hardcoded brand purple used as text */
body.lp-dash .page-content-wrapper [style*="161a69" i] {
    color: var(--lp-ink) !important;
}
/* ...and as a solid bar behind white text */
body.lp-dash .page-content-wrapper [style*="background-color: #161a69" i],
body.lp-dash .page-content-wrapper [style*="background-color:#161a69" i] {
    background-color: var(--lp-primary) !important;
    color: #fff !important;
}

/* hardcoded lilac / grey tiles and callouts become themed surfaces */
body.lp-dash .page-content-wrapper [style*="ededf7" i],
body.lp-dash .page-content-wrapper [style*="e9e9f2" i],
body.lp-dash .page-content-wrapper [style*="e0e2e4" i] {
    background-color: var(--lp-surface-alt) !important;
}

/* the flat grey page wash -> the themed canvas */
body.lp-dash .page-content-wrapper [style*="f3f3f3" i],
body.lp-dash .page-content-wrapper .content {
    background-color: transparent !important;
}

/* hardcoded hairlines and body text */
body.lp-dash .page-content-wrapper [style*="d7d7d7" i] {
    border-color: var(--lp-line-2) !important;
}
body.lp-dash .page-content-wrapper [style*="424c54" i] {
    color: var(--lp-body) !important;
}

/* plain white inline surfaces follow the theme (light + dark) */
body.lp-dash .page-content-wrapper [style*="background-color: white" i],
body.lp-dash .page-content-wrapper [style*="background-color:white" i],
body.lp-dash .page-content-wrapper [style*="background-color: #fff" i],
body.lp-dash .page-content-wrapper [style*="background-color:#fff" i] {
    background-color: var(--lp-surface) !important;
}

/* headings + labels inside legacy content adopt the theme palette */
body.lp-dash .page-content-wrapper h1,
body.lp-dash .page-content-wrapper h2,
body.lp-dash .page-content-wrapper h3,
body.lp-dash .page-content-wrapper h4,
body.lp-dash .page-content-wrapper h5,
body.lp-dash .page-content-wrapper h6 {
    color: var(--lp-ink);
    font-weight: 600;
    letter-spacing: -.01em;
}
body.lp-dash .page-content-wrapper .hint-text {
    color: var(--lp-muted);
}

/* legacy form groups get the same surface treatment as modern fields */
body.lp-dash .page-content-wrapper .form-group {
    margin-bottom: 14px;
}
body.lp-dash .page-content-wrapper .form-group-default {
    background: var(--lp-surface);
    border: 1px solid var(--lp-line-2);
    border-radius: var(--lp-r-md);
}
body.lp-dash .page-content-wrapper .form-group-default > label,
body.lp-dash .page-content-wrapper .control-label {
    color: var(--lp-muted);
    font-weight: 600;
}

/* ---- close button on modals and dismissible alerts -------------------- */

body.lp-dash .close {
    padding: var(--lp-s-2);
    color: var(--lp-faint);
    font-size: 20px;
    line-height: 1;
    text-shadow: none;
    opacity: 1;
    transition: color .12s ease, background-color .12s ease;
}
body.lp-dash .close:hover,
body.lp-dash .close:focus {
    color: var(--lp-ink);
    background: var(--lp-surface-sunk);
    border-radius: var(--lp-r-sm);
}

/* ---- DataTables: wrapper, rows, sort indicators ------------------------ */

body.lp-dash .dataTables_wrapper { padding: 0; }

body.lp-dash table.dataTable {
    border-collapse: separate;
    border-spacing: 0;
}
body.lp-dash table.dataTable thead th {
    background: var(--lp-primary-soft);
    color: var(--lp-primary-700);
    border-bottom: 1px solid var(--lp-primary-line);
    font-size: var(--lp-fs-12);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}
body.lp-dash table.dataTable tbody tr {
    transition: background-color .12s ease;
}
body.lp-dash table.dataTable tbody tr:hover { background: var(--lp-surface-alt); }
body.lp-dash table.dataTable tbody tr.odd,
body.lp-dash table.dataTable tbody tr:nth-child(odd) {
    background: transparent;
}

/* The theme paints sort arrows with a background image; replace with the
   same indigo so the affordance stays legible on a light header. */
body.lp-dash table.dataTable thead th.sorting,
body.lp-dash table.dataTable thead th.sorting_asc,
body.lp-dash table.dataTable thead th.sorting_desc {
    cursor: pointer;
    position: relative;
    padding-right: 20px;
    background-image: none;
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 8px 10px;
}
body.lp-dash table.dataTable thead th.sorting_asc {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='10' viewBox='0 0 8 10'%3E%3Cpath fill='%231a73e8' d='M4 0 8 5H0z'/%3E%3C/svg%3E");
}
body.lp-dash table.dataTable thead th.sorting_desc {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='10' viewBox='0 0 8 10'%3E%3Cpath fill='%231a73e8' d='M4 10 0 5h8z'/%3E%3C/svg%3E");
}
body.lp-dash table.dataTable thead th.sorting {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='10' viewBox='0 0 8 10'%3E%3Cpath fill='%23bdc1c6' d='M4 0 8 5H0zM4 10 0 5h8z'/%3E%3C/svg%3E");
}
body.lp-dash table.dataTable thead th.sorting:hover { color: var(--lp-primary); }

/* ---- list rows: the theme's inbox / result lists ----------------------- */

body.lp-dash .pg-inbox > .pg-inbox-item,
body.lp-dash .result-name {
    transition: background-color .12s ease;
}
body.lp-dash .pg-inbox-item:hover { background: var(--lp-surface-alt); }

/* ---- modal chrome ------------------------------------------------------- */

body.lp-dash .modal-content-wrapper {
    background: transparent;
    box-shadow: var(--lp-sh-4);
}
body.lp-dash .modal-content {
    border: 0;
    border-radius: var(--lp-r-lg);
    box-shadow: none;
    overflow: hidden;
}
body.lp-dash .modal.fade .modal-dialog { transform: none; }

/* ---- loading state ------------------------------------------------------ */

body.lp-dash .LPLoader {
    border-color: var(--lp-primary) transparent var(--lp-primary) transparent !important;
}

/* ---- tabs --------------------------------------------------------------- */

body.lp-dash .tab-pane { outline: none; }

/* ---- dark surface becomes a soft slate, not near-black ----------------- */

body.lp-dash .bg-dark {
    background-color: var(--lp-ink) !important;
    color: #fff;
}

/* ---- icon tiles the theme paints pure white ---------------------------- */

body.lp-dash .white1 {
    background: var(--lp-surface-sunk);
    color: var(--lp-muted);
}
body.lp-dash .white_icon { color: var(--lp-muted); }

/* ---- button variants ---------------------------------------------------- */

body.lp-dash .btn-outline-primary {
    background: transparent;
    border-color: var(--lp-primary-line);
    color: var(--lp-primary);
}
body.lp-dash .btn-outline-primary:hover,
body.lp-dash .btn-outline-primary:focus {
    background: var(--lp-primary-soft);
    border-color: var(--lp-primary);
    color: var(--lp-primary-700);
}
body.lp-dash .btn-icon-left { font-weight: 600; }
body.lp-dash .btn-icon-left > .fa:first-child { margin-right: 6px; }

/* ---- checkboxes / radios ------------------------------------------------ */

body.lp-dash .form-check { margin-bottom: var(--lp-s-3); }

/* ---- soft-tinted status alerts ----------------------------------------- */

body.lp-dash .alert { border-width: 1px; border-radius: var(--lp-r-md); }
body.lp-dash .alert-success {
    background: var(--lp-success-soft);
    border-color: #a8dab5;
    color: var(--lp-success-ink);
}
body.lp-dash .alert-info {
    background: var(--lp-info-soft);
    border-color: var(--lp-primary-line);
    color: var(--lp-primary-700);
}
body.lp-dash .alert-danger {
    background: var(--lp-danger-soft);
    border-color: #f2b8b5;
    color: var(--lp-danger-ink);
}
body.lp-dash .alert-warning {
    background: var(--lp-warning-soft);
    border-color: #fce8b2;
    color: var(--lp-warning-ink);
}
body.lp-dash .pg-alert-info {
    background: var(--lp-info-soft);
    border-color: var(--lp-primary-line);
    border-radius: var(--lp-r-md);
    color: var(--lp-primary-700);
}

/* ---- progress bars ------------------------------------------------------ */

body.lp-dash .progress {
    height: 6px;
    background: var(--lp-surface-sunk);
    border-radius: var(--lp-r-pill);
    box-shadow: none;
}
body.lp-dash .progress.progress-small { height: 5px; }
body.lp-dash .progress-bar {
    background: var(--lp-primary);
    border-radius: var(--lp-r-pill);
}
body.lp-dash .progress-bar-success { background: var(--lp-success) !important; }

/* ============================================================== print ==== */

@media print {
    .lp-side,
    .lp-top,
    .lp-scrim,
    .lp-top-burger { display: none !important; }
    .lp-main { margin-left: 0; }
    body.lp-dash { background: #fff; }
    body.lp-dash .card,
    body.lp-dash .panel { box-shadow: none; border-color: #ccc; }
}

/* ================================================================ auth ==
   Login, registration and password reset, for the client, admin and
   agency portals. Folded in from the former lp-auth.css.

   Every size is absolute px, not rem, on purpose. The Pages theme sets
   `html { font-size: 62.5% }`, so 1rem equals 10px here and any rem
   value would render at 62.5% of its apparent size.

   The brand is now the panel blue, so the entry points and the panel
   read as one product. Scope stays `lp-` prefixed: these pages also
   load Bootstrap 3 and the modern theme. No ng-* binding, id, field
   name or JS hook is defined or changed here.
   ========================================================================= */

/* token block removed: folded into lp-panel tokens */

/* ------------------------------------------------------------------ base -- */

/* Bug C, part 1: the auth pages carried `class="lp-body lp-dash"`. This rule
   and `body.lp-dash` (line 146) have identical specificity, and this one comes
   later, so its `font-size: 16px` silently beat the 14px token base on every
   login, registration and password-reset page - the "everything is zoomed /
   oversized" symptom. Both selectors now resolve to the same token. */
body.lp-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 64px of vertical padding pushed the card low and read as oversized. */
    padding: 40px 24px;
    font-family: var(--lp-font);
    font-size: var(--lp-fs-14);
    line-height: 1.55;
    color: var(--lp-body);
    background-color: var(--lp-canvas);
    /* Yellow and light-blue wash across the top of every sign-in screen, so
       the entry points carry both accents before the card is read. */
    background-image:
        radial-gradient(1100px 460px at 50% -170px,
                        rgba(251, 188, 4, .30), transparent 62%),
        radial-gradient(900px 420px at 50% -220px,
                        rgba(26, 115, 232, .22), transparent 62%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv02" 1, "cv03" 1, "cv04" 1, "cv11" 1;
    text-rendering: optimizeLegibility;
}

body.lp-body ::selection {
    background: rgba(26, 115, 232, .18);
    color: var(--lp-ink);
}

.lp-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.lp-page {
    width: 100%;
    max-width: 464px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* tenant-injected branding, only rendered when the tenant has any */
.lp-brand-content {
    width: 100%;
    margin: 0 auto 24px;
    text-align: center;
}

.lp-brand-content img {
    max-width: 100%;
    height: auto;
}

/* ------------------------------------------------------------------ card -- */

.lp-card {
    position: relative;
    width: 100%;
    padding: 34px 40px 30px;
    background: var(--lp-card-bg);
    border: 1px solid var(--lp-card-border);
    border-radius: var(--lp-r-lg);
    box-shadow: var(--lp-sh-1);
}

/* The brand rule across the top edge - the one strong brand moment */
.lp-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 28px;
    right: 28px;
    height: 3px;
    background: linear-gradient(90deg, var(--lp-yellow) 0%,
                var(--lp-yellow-600) 30%, var(--lp-primary) 100%);
    border-radius: 0 0 3px 3px;
}

/* ------------------------------------------------------------------ head -- */

.lp-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin: 0 auto 18px;
}

.lp-logo img {
    max-width: 100%;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
}

#logo {
    display: block;
    margin: 0 auto;
}

.lp-eyebrow {
    display: block;
    width: fit-content;
    margin: 0 auto 10px;
    padding: 5px 12px;
    border: 1px solid var(--lp-yellow-line);
    border-radius: 999px;
    background: var(--lp-yellow-soft);
    color: var(--lp-yellow-ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.lp-title {
    margin: 0 0 6px;
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.03em;
    color: var(--lp-ink);
}

.lp-subtitle {
    margin: 0 auto 20px;
    max-width: 400px;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    color: var(--lp-muted);
    text-wrap: balance;
}

/* ---------------------------------------------------------------- fields -- */

.lp-field {
    margin-bottom: 15px;
}

.lp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}

.lp-field label {
    display: block;
    margin: 0 0 7px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -.005em;
    color: var(--lp-body);
}

.lp-control {
    position: relative;
    display: block;
}

.lp-control input,
.lp-control select {
    display: block;
    width: 100%;
    height: 52px;
    padding: 11px 16px;
    font-family: inherit;
    /* 16px minimum: anything smaller makes iOS Safari zoom on focus */
    font-size: 17px;
    font-variant-numeric: tabular-nums;
    color: var(--lp-ink);
    background: #fff;
    border: 1px solid var(--lp-line-2);
    border-radius: var(--lp-r-md);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    caret-color: var(--lp-primary);
    transition: border-color .15s cubic-bezier(.22, 1, .36, 1), box-shadow .15s cubic-bezier(.22, 1, .36, 1);
    -webkit-appearance: none;
    appearance: none;
}

.lp-control select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 17px;
}

.lp-control input::placeholder {
    color: var(--lp-faint);
    opacity: 1;
}

.lp-control input:hover,
.lp-control select:hover {
    border-color: #b6bdca;
}

/* stop the yellow Chrome/Safari autofill wash ruining the surfaces */
.lp-control input:-webkit-autofill,
.lp-control input:-webkit-autofill:hover,
.lp-control input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--lp-ink);
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    box-shadow: 0 0 0 1000px #fff inset;
    caret-color: var(--lp-primary);
    transition: background-color 9999s ease-in-out 0s;
}

.lp-control input:focus,
.lp-control select:focus {
    outline: none;
    border-color: var(--lp-primary);
    box-shadow: var(--lp-ring);
}

.lp-control input:focus-visible,
.lp-control select:focus-visible {
    outline: none;
}

.lp-hint {
    display: block;
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--lp-muted);
}

/* ------------------------------------------------------------- checkbox -- */

.lp-check {
    display: flex;
    align-items: flex-start;
    gap: 9.5px;
    margin: 0;
    line-height: 1.45;
}

.lp-check input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    border: 1px solid var(--lp-line-2);
    border-radius: 5px;
    background: #fff;
    accent-color: var(--lp-primary);
    cursor: pointer;
    transition: border-color .15s cubic-bezier(.22, 1, .36, 1), box-shadow .15s cubic-bezier(.22, 1, .36, 1);
}

.lp-check input[type="checkbox"]:hover {
    border-color: var(--lp-primary);
    box-shadow: var(--lp-ring);
}

.lp-check label {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--lp-muted);
    cursor: pointer;
}

.lp-check a {
    color: var(--lp-primary);
    font-weight: 600;
    text-decoration: none;
}

.lp-check a:hover {
    text-decoration: underline;
}

/* terms / privacy acceptance, boxed so it reads as its own step */
.lp-check-stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 16px;
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-r-md);
    background: var(--lp-canvas);
}

.lp-rowline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 4px 0 16px;
}

.lp-rowline a,
.lp-rowline a.normal {
    font-size: 14px;
    font-weight: 600;
    color: var(--lp-primary);
    text-decoration: none;
    white-space: nowrap;
}

.lp-rowline a:hover,
.lp-rowline a.normal:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------- actions -- */

.lp-actions {
    margin-bottom: 16px;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.005em;
    color: var(--lp-btn-primary-text);
    background: var(--lp-btn-primary-bg);
    border: 1px solid var(--lp-btn-primary-bg);
    border-radius: var(--lp-r-md);
    cursor: pointer;
    transition: background .15s cubic-bezier(.22, 1, .36, 1), border-color .15s cubic-bezier(.22, 1, .36, 1),
        transform .1s cubic-bezier(.22, 1, .36, 1), box-shadow .15s cubic-bezier(.22, 1, .36, 1);
}

.lp-btn:hover,
.lp-btn:focus {
    color: var(--lp-btn-primary-text);
    background: var(--lp-btn-primary-bg-hover);
    border-color: var(--lp-btn-primary-bg-hover);
    box-shadow: var(--lp-sh-2);
}

.lp-btn:active {
    transform: translateY(1px);
}

.lp-btn:focus-visible {
    outline: 2px solid var(--lp-accent-yellow);
    outline-offset: 2px;
}

.lp-btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

.lp-btn img {
    width: 16px;
    height: 16px;
    /* The primary button is yellow now, so a white glyph would vanish. */
    filter: brightness(0);
}

.lp-btn-ghost {
    color: var(--lp-primary);
    background: #fff;
    border-color: var(--lp-line-2);
}

.lp-btn-ghost:hover,
.lp-btn-ghost:focus {
    color: #fff;
    background: var(--lp-primary);
    border-color: var(--lp-primary);
}

/* ----------------------------------------------------------------- links -- */

.lp-links {
    margin: 18px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--lp-line);
    display: flex;
    flex-direction: column;
    gap: 9.5px;
    text-align: center;
}

.lp-links a,
.lp-links a.normal {
    font-size: 14px;
    font-weight: 600;
    color: var(--lp-primary);
    text-decoration: none;
}

.lp-links a:hover,
.lp-links a.normal:hover {
    text-decoration: underline;
}

.lp-muted {
    font-size: 14px;
    color: var(--lp-muted);
}

/* -------------------------------------------------- portal switcher pills -- */

.lp-portals {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 28px 0 0;
    padding: 0;
    text-align: center;
    font-size: 13.5px;
    color: var(--lp-faint);
}

.lp-portals > a {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--lp-line);
    border-radius: 999px;
    background: #fff;
    color: var(--lp-body);
    font-weight: 500;
    text-decoration: none;
    transition: border-color .15s cubic-bezier(.22, 1, .36, 1), color .15s cubic-bezier(.22, 1, .36, 1),
        background .15s cubic-bezier(.22, 1, .36, 1);
}

.lp-portals > a:hover {
    border-color: var(--lp-primary);
    background: var(--lp-primary-soft);
    color: var(--lp-primary);
    text-decoration: none;
}

.lp-portals-label {
    margin-right: 4px;
    color: var(--lp-muted);
}

.lp-portals-sep {
    margin: 0 2px;
    color: var(--lp-line-2);
}

/* ---------------------------------------------------------------- social -- */

.lp-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0 16px;
    color: var(--lp-muted);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.lp-divider::before,
.lp-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--lp-line);
}

.lp-social {
    display: flex;
    justify-content: center;
}

.lp-social > div {
    width: 100%;
    max-width: 368px;
}

/* ---------------------------------------------------------------- trust -- */

/* deliberately outside the card: the card holds only the form */
.lp-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 20px 0 0;
    font-size: 13px;
    color: var(--lp-muted);
}

.lp-trust .material-icons {
    font-size: 15px;
    color: var(--lp-success-ink);
}

/* --------------------------------------------------------------- notices -- */

.lp-alert {
    margin: 0 0 20px;
    padding: 12px 15px;
    border: 1px solid transparent;
    border-radius: var(--lp-r-md);
    font-size: 13.5px;
    line-height: 1.5;
}

.lp-alert-error {
    background: var(--lp-danger-soft);
    border-color: var(--lp-danger);
    color: var(--lp-danger-ink);
}

.lp-alert-ok {
    background: var(--lp-success-soft);
    border-color: var(--lp-success);
    color: var(--lp-success-ink);
}

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 640px) {
    body.lp-body {
        padding: 32px 16px calc(32px + env(safe-area-inset-bottom));
        align-items: flex-start;
    }

    .lp-card {
        padding: 32px 22px 28px;
        border-radius: 14px;
    }

    /* the brand rule follows the narrower card */
    .lp-card::before {
        left: 20px;
        right: 20px;
    }

    .lp-title {
        font-size: 24px;
    }

    .lp-row {
        grid-template-columns: 1fr;
    }

    .lp-rowline {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* comfortable thumb targets */
    .lp-portals > a {
        height: 36px;
    }
}

@media (max-width: 380px) {
    body.lp-body {
        padding: 24px 12px 32px;
    }

    .lp-card {
        padding: 28px 18px 24px;
    }

    .lp-subtitle {
        font-size: 13.5px;
    }
}

/* Short viewports (most laptops, and phones in landscape): reclaim the
   outer gutter and drop the decorative trust line so the sign-in form
   always fits on one screen. The trust line is reassurance, not function. */
@media (max-height: 899px) {
    body.lp-body {
        padding: 16px;
    }

    .lp-trust {
        display: none;
    }
}

@media (max-height: 899px) and (min-width: 641px) {
    body.lp-body {
        padding: 20px;
    }
}

/* ------------------------------------------- reduced motion & preferences -- */

@media (prefers-reduced-motion: reduce) {
    .lp-btn,
    .lp-control input,
    .lp-control select,
    .lp-check input[type="checkbox"],
    .lp-portals > a {
        transition: none !important;
    }
}

@media (prefers-contrast: more) {
    .lp-control input,
    .lp-control select {
        border-width: 2px;
        border-color: #667085;
    }

    .lp-field label,
    .lp-subtitle,
    .lp-muted,
    .lp-trust,
    .lp-portals {
        color: #344054;
    }

    .lp-card {
        border-color: #98a2b3;
    }
}

/* ================================================ bug B: Select Project ======
   The "Select Project" banner on the onboarding page was a full-width dark
   navy block (#161a69, 20px padding) carrying a white folder glyph and a 25px
   bold white label with a text shadow. It read as an unrelated app banner
   rather than the heading of the card below it.

   Replaced with a plain white card header: small title, subtle bottom border.
   The <select id="project" onchange="changeproject()"> below it is NOT touched -
   only the presentation of the heading above it changes.

   The banner carried its appearance as an inline style, so background, colour,
   padding and the shadow all need !important to win here. */
.lp-pick-head {
    background: var(--lp-surface) !important;
    border-bottom: 1px solid var(--lp-line);
    border-radius: var(--lp-r) var(--lp-r) 0 0 !important;
    padding: 14px 16px !important;
    align-items: center;
    gap: 10px;
}

/* Folder glyph: the source mark is a solid white path, so tint it to the
   accent instead of leaving a white blob on white. */
.lp-pick-head svg path,
.lp-pick-head svg polygon,
.lp-pick-head svg rect {
    fill: var(--lp-primary) !important;
}

.lp-pick-head label {
    color: var(--lp-ink) !important;
    font-size: var(--lp-fs-14) !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    letter-spacing: 0 !important;
    margin: 0 !important;
}

/* ============================================ sidebar: icons + mini rail =====
   An earlier pass hid every nav glyph (`display:none !important` on .pg-icon,
   .fa and svg) at a request to drop the sidebar icons. The brief now asks for a
   collapsible ICON-ONLY mini rail, which is impossible without icons, so the
   glyphs are rendered again.

   Nothing in the 7 shell templates was touched to do this: the markup always
   carried <i class="pg-icon">grid_alt</i> and the rest. Only the CSS that hid
   them is gone, so every label, href, <details>/<summary> disclosure and id is
   exactly as it was. The brand logo is likewise still shown. */

body.lp-dash .lp-side .lp-side-nav .pg-icon,
body.lp-dash .lp-side .lp-side-nav .fa,
body.lp-dash .lp-side .lp-side-nav [class^="fa-"],
body.lp-dash .lp-side .lp-side-nav svg {
    flex: 0 0 auto;
    width: 16px;
    font-size: 15px;
    line-height: 1;
    text-align: center;
    color: var(--lp-side-dim);
    transition: color .12s ease;
}

/* The label takes the remaining width and clips rather than pushing the row
   wider; every row is the same height whether or not it has a glyph. */
body.lp-dash .lp-side .lp-nav-link > span,
body.lp-dash .lp-side .lp-nav-group > summary > span {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.lp-dash .lp-side .lp-nav-link:hover .pg-icon,
body.lp-dash .lp-side .lp-nav-group > summary:hover .pg-icon { color: var(--lp-side-ink); }
body.lp-dash .lp-side .lp-nav-link.is-active .pg-icon,
body.lp-dash .lp-side .lp-nav-link[aria-current="page"] .pg-icon,
body.lp-dash .lp-side .lp-nav-group[open] > summary .pg-icon { color: var(--lp-side-active); }

@media (min-width: 992px) {
    /* ---- icon-only mini rail ---------------------------------------------------
       Driven by the same #lp-nav-toggle checkbox the drawer uses, so the burger is
       the only control and no markup or JavaScript is involved:

         >=992px   unchecked = full rail (232px)   checked = mini rail (60px)
         <=991px   unchecked = closed             checked = open overlay drawer

       The burger therefore collapses the rail on desktop and opens it on mobile,
       which is the behaviour the brief describes for a single toggle. */

    body.lp-dash .lp-nav-toggle:checked ~ .lp-app .lp-side { width: var(--lp-side-mini-w); }
    body.lp-dash .lp-nav-toggle:checked ~ .lp-app .lp-main { margin-left: var(--lp-side-mini-w); }

    /* Brand collapses to just the logo. */
    body.lp-dash .lp-nav-toggle:checked ~ .lp-app .lp-side-brand { padding: 0; justify-content: center; }
    body.lp-dash .lp-nav-toggle:checked ~ .lp-app .lp-side-brand .brand span,
    body.lp-dash .lp-nav-toggle:checked ~ .lp-app .lp-side-brand .brand { font-size: 0; }

    /* Everything textual goes away; the glyphs stay and centre in the 60px rail. */
    body.lp-dash .lp-nav-toggle:checked ~ .lp-app .lp-side .lp-nav-label,
    body.lp-dash .lp-nav-toggle:checked ~ .lp-app .lp-side .lp-nav-group-body,
    body.lp-dash .lp-nav-toggle:checked ~ .lp-app .lp-side .lp-nav-sub,
    body.lp-dash .lp-nav-toggle:checked ~ .lp-app .lp-side .lp-nav-link > span,
    body.lp-dash .lp-nav-toggle:checked ~ .lp-app .lp-side .lp-nav-group > summary > span,
    body.lp-dash .lp-nav-toggle:checked ~ .lp-app .lp-side .lp-nav-group > summary::after,
    body.lp-dash .lp-nav-toggle:checked ~ .lp-app .lp-side .lp-side-nav .nav-section-title {
        display: none !important;
    }

    /* A group whose body is hidden must not read as "open", so its chevron goes
       too and the summary simply behaves as a link row. */
    body.lp-dash .lp-nav-toggle:checked ~ .lp-app .lp-side .lp-nav-group[open] > summary::after { display: none; }

    body.lp-dash .lp-nav-toggle:checked ~ .lp-app .lp-side .lp-nav-link,
    body.lp-dash .lp-nav-toggle:checked ~ .lp-app .lp-side .lp-nav-group > summary {
        justify-content: center;
        gap: 0;
        margin: 1px var(--lp-s-2);
        padding: 0;
    }
    body.lp-dash .lp-nav-toggle:checked ~ .lp-app .lp-side .lp-nav-link:hover,
    body.lp-dash .lp-nav-toggle:checked ~ .lp-app .lp-side .lp-nav-group > summary:hover { background: var(--lp-side-2); }

    /* Keep the mini rail clear of the footer button, which is word-shaped. */
    body.lp-dash .lp-nav-toggle:checked ~ .lp-app .lp-side-foot { padding: var(--lp-s-2); }
    body.lp-dash .lp-nav-toggle:checked ~ .lp-app .lp-side-foot .btn {
        padding-left: 0; padding-right: 0;
        font-size: 0;
    }
    body.lp-dash .lp-nav-toggle:checked ~ .lp-app .lp-side-foot .btn .pg-icon { font-size: 15px; }
    body.lp-dash .lp-nav-toggle:checked ~ .lp-app .lp-side-foot .lp-theme-switch {
        justify-content: center;
        gap: 0;
        padding: 0;
    }
    body.lp-dash .lp-nav-toggle:checked ~ .lp-app .lp-side-foot .lp-theme-switch-text,
    body.lp-dash .lp-nav-toggle:checked ~ .lp-app .lp-side-foot .lp-theme-switch-state { display: none; }
}

/* Theme toggle */
.lp-theme-wrap .lp-top-user{padding:0 8px 0 10px;height:40px;}
.lp-theme-item[aria-current="true"]{background:var(--lp-primary-soft);color:var(--lp-primary-700);}
