/* Modern master page (_LayoutModern.cshtml). Tokens below are shared with the pages built on it: the page stylesheets
   use them instead of literal colors, so the dark set further down restyles every page. The side menu keeps its own
   dark colors in both modes. */
:root {
    color-scheme: light;
    --brand: #F58002;
    --brand-2: #F68D1C;
    --brand-soft: #FFF7ED;
    --brand-line: #FED7AA;
    --brand-ink: #9A3412;
    --ink: #0F172A;
    --ink-2: #334155;
    --ink-3: #475569;
    --muted: #64748B;
    --faint: #94A3B8;
    --line: #E2E8F0;
    --line-2: #EEF2F6;
    --line-3: #CBD5E1;
    --surface: #FFFFFF;
    --canvas: #F1F5F9;
    --well: #F8FAFC;
    --well-2: #F1F5F9;
    --side: #111827;
    --side-2: #1F2937;
    --danger: #DC2626;
    --danger-ink: #B91C1C;
    --danger-soft: #FEE2E2;
    --danger-line: #FECACA;
    --ok: #16A34A;
    --ok-ink: #15803D;
    --ok-soft: #DCFCE7;
    --ok-line: #BBF7D0;
    --warn-soft: #FEF3C7;
    --veil: rgba(241, 245, 249, .72);
    --chip-base: #FFFFFF;
    --ink-fill: #0F172A;
    --on-ink-fill: #FFFFFF;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
    --side-w: 240px;
    --side-w-mini: 72px;
}

/* Dark mode (layout.theme preference, toggled from the user menu). Only the content changes; the menu is the same. */
html[data-theme="dark"] {
    color-scheme: dark;
    --brand-soft: rgba(245, 128, 2, .16);
    --brand-line: rgba(245, 128, 2, .42);
    --brand-ink: #FDBA74;
    --ink: #F1F5F9;
    --ink-2: #CBD5E1;
    --ink-3: #B4C0D1;
    --muted: #94A3B8;
    --faint: #6B7A90;
    --line: #334155;
    --line-2: #2A3749;
    --line-3: #475569;
    --surface: #1E293B;
    --canvas: #0F172A;
    --well: #243044;
    --well-2: #2A3950;
    --danger: #F87171;
    --danger-ink: #FCA5A5;
    --danger-soft: rgba(220, 38, 38, .2);
    --danger-line: rgba(220, 38, 38, .45);
    --ok: #4ADE80;
    --ok-ink: #86EFAC;
    --ok-soft: rgba(22, 163, 74, .2);
    --ok-line: rgba(22, 163, 74, .45);
    --warn-soft: rgba(234, 179, 8, .2);
    --veil: rgba(15, 23, 42, .7);
    --chip-base: #1E293B;
    --ink-fill: #F1F5F9;
    --on-ink-fill: #0F172A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 1px 3px rgba(0, 0, 0, .4);
}

/* a hairline so the menu and the dark canvas don't merge */
html[data-theme="dark"] .lm-side { border-right: 1px solid #1F2937; }
html[data-theme="dark"] .lm-pop { box-shadow: 0 18px 45px rgba(0, 0, 0, .55); }
html[data-theme="dark"] .lm-pop-role, html[data-theme="dark"] .lm-role-item.on, html[data-theme="dark"] .lm-theme-item.on { color: var(--brand-ink) !important; }
html[data-theme="dark"] .lm-pop-item-out:hover { background: var(--danger-soft); color: var(--danger-ink) !important; }
html[data-theme="dark"] .lm-pop-item-out:hover > i:first-child { color: var(--danger-ink); }

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

.lm-body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    display: grid;
    grid-template-columns: var(--side-w) minmax(0, 1fr);
    overflow: hidden;
    transition: grid-template-columns .2s ease;
}

.lm-body.lm-mini { grid-template-columns: var(--side-w-mini) minmax(0, 1fr); }

.lm-body a { color: inherit; text-decoration: none; }
.lm-body button { font: inherit; color: inherit; cursor: pointer; }
.lm-body img { max-width: 100%; }

/* dialog host used by samplitPopup.js: must not take a cell of the body grid */
.lm-body > #commonDialog { position: absolute; top: 0; left: 0; width: 0; height: 0; }

/* ---------- Sidebar ---------- */
.lm-side {
    background: var(--side);
    color: #CBD5E1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #374151 transparent;
}

.lm-brand { display: flex; align-items: center; justify-content: center; height: 60px; flex: none; }
.lm-brand-mini { display: none; }

.lm-user {
    margin: 4px 12px 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--side-2);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: none;
}

.lm-user:hover { background: #273244; }
.lm-user img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.lm-user span { min-width: 0; }
.lm-user b { display: block; color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-user small { display: block; color: #94A3B8; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lm-nav-label { padding: 10px 20px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; color: #64748B; }

.lm-nav, .lm-nav ul { list-style: none; margin: 0; padding: 0; }
.lm-nav { padding: 0 10px; }
.lm-nav > li { margin-bottom: 2px; }

.lm-nav > li > a,
.lm-nav > li > button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #CBD5E1;
    font-size: 13.5px;
    text-align: left;
    white-space: nowrap;
}

.lm-nav > li > a > i:first-child,
.lm-nav > li > button > i:first-child { width: 18px; text-align: center; font-size: 14px; flex: none; }

.lm-nav > li > a:hover,
.lm-nav > li > button:hover { background: var(--side-2); color: #fff; }

.lm-nav > li.on > a {
    background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand) 100%);
    color: #fff;
    font-weight: 600;
}

.lm-chev { margin-left: auto; font-size: 12px; opacity: .55; transition: transform .18s ease; }
.lm-tree.open .lm-chev { transform: rotate(90deg); }

.lm-tree > ul { display: none; padding: 2px 0 6px 12px; margin-left: 20px; border-left: 1px solid #2B3648; }
.lm-tree.open > ul { display: block; }

.lm-tree > ul a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: #94A3B8;
    white-space: nowrap;
}

.lm-tree > ul a i { width: 15px; text-align: center; font-size: 12px; }
.lm-tree > ul a:hover { background: var(--side-2); color: #fff; }

.lm-side-foot { margin-top: auto; padding: 14px 12px 14px; flex: none; }

.lm-bug {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border-radius: 10px;
    color: #94A3B8;
    font-size: 13px;
    white-space: nowrap;
}

.lm-bug i { width: 18px; text-align: center; font-size: 15px; }
.lm-bug:hover { background: var(--side-2); color: var(--brand-2); }
.lm-version { padding: 8px 12px 0; font-size: 11px; color: #64748B; white-space: nowrap; }

/* Collapsed to an icon rail */
.lm-mini .lm-hide-mini,
.lm-mini .lm-nav span,
.lm-mini .lm-chev { display: none; }

.lm-mini .lm-brand-full { display: none; }
.lm-mini .lm-brand-mini { display: block; }
.lm-mini .lm-user { justify-content: center; padding: 8px; }
.lm-mini .lm-nav > li > a,
.lm-mini .lm-nav > li > button,
.lm-mini .lm-bug { justify-content: center; padding: 11px 0; }
.lm-mini .lm-tree > ul { display: none !important; }

/* ---------- Main ---------- */
.lm-main { display: flex; flex-direction: column; height: 100vh; min-width: 0; }

.lm-top {
    height: 60px;
    flex: none;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 24px 0 16px;
    position: relative;
    z-index: 30;
}

.lm-icon-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--ink-2);
    font-size: 16px;
}

.lm-icon-btn:hover { background: var(--well); border-color: var(--line); }

.lm-crumbs { font-size: 13px; color: var(--muted); white-space: nowrap; }
.lm-crumbs span { margin: 0 4px; color: var(--faint); }
.lm-crumbs b { color: var(--ink); font-weight: 600; }

.lm-usermenu { margin-left: auto; position: relative; }

.lm-usermenu-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 42px;
    padding: 0 10px 0 4px;
    border: 1px solid transparent;
    border-radius: 99px;
    background: transparent;
}

.lm-usermenu-btn:hover,
.lm-usermenu.open .lm-usermenu-btn { background: var(--well); border-color: var(--line); }
.lm-usermenu-btn img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.lm-usermenu-name { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lm-usermenu-btn i { font-size: 10px; color: var(--faint); transition: transform .18s ease; }
.lm-usermenu.open .lm-usermenu-btn i { transform: rotate(180deg); }

.lm-pop {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 300px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px) scale(.98);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
}

.lm-usermenu.open .lm-pop { opacity: 1; transform: none; pointer-events: auto; }

/* quiet header: who is signed in and as what; the orange stays on the primary actions of the pages */
.lm-pop-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 16px 14px;
    background: var(--well);
    border-bottom: 1px solid var(--line);
}

.lm-pop-head img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); flex: none; }
.lm-pop-head > div { min-width: 0; }
.lm-pop-head b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-pop-head small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-pop-role { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; height: 22px; padding: 0 8px; border-radius: 99px; background: var(--brand-soft); border: 1px solid var(--brand-line); color: #9A3412; font-size: 11.5px; font-weight: 700; font-style: normal; }
.lm-pop-role i { font-size: 10px; }

.lm-pop-sec { padding: 8px; }
.lm-pop-sec + .lm-pop-sec { border-top: 1px solid var(--line-2); }
.lm-pop-label { display: block; padding: 4px 8px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }

/* one row per role, the current one ticked; clicking another signs the user into that role */
.lm-roles { display: flex; flex-direction: column; gap: 2px; }
.lm-role-item, .lm-pop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2) !important;
    text-align: left;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .12s ease, color .12s ease;
}
.lm-role-item:hover, .lm-pop-item:hover { background: var(--well); color: var(--ink) !important; }
.lm-role-item span, .lm-pop-item span { flex: 1; }
.lm-role-item i { font-size: 11px; color: var(--brand); opacity: 0; transform: scale(.6); transition: opacity .15s ease, transform .15s ease; }
.lm-role-item.on { background: var(--brand-soft); color: #9A3412 !important; font-weight: 600; }
.lm-role-item.on i { opacity: 1; transform: none; }
.lm-role-item:disabled { opacity: .6; cursor: default; }
.lm-pop-item > i:first-child { width: 18px; text-align: center; color: var(--muted); font-size: 13px; }

/* Appearance: two tiles, Light and Dark, the current one ticked (saved as the layout.theme preference) */
.lm-themes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lm-theme-item {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2) !important;
    text-align: left;
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease;
}
.lm-theme-item:hover { background: var(--well); }
.lm-theme-item > i:first-child { width: 16px; text-align: center; font-size: 13px; color: var(--muted); }
.lm-theme-item span { flex: 1; }
.lm-theme-item .fa-check { font-size: 11px; color: var(--brand); opacity: 0; transform: scale(.6); transition: opacity .15s ease, transform .15s ease; }
.lm-theme-item.on { background: var(--brand-soft); border-color: var(--brand-line); color: #9A3412 !important; font-weight: 600; }
.lm-theme-item.on > i:first-child { color: var(--brand); }
.lm-theme-item.on .fa-check { opacity: 1; transform: none; }
.lm-pop-go { font-size: 10px; color: var(--faint); transition: transform .15s ease; }
.lm-pop-item:hover .lm-pop-go { transform: translateX(3px); }
.lm-pop-item-out:hover { background: #FEF2F2; color: #B91C1C !important; }
.lm-pop-item-out:hover > i:first-child { color: #B91C1C; }

.lm-btn {
    flex: 1;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    font-weight: 600;
    font-size: 13px;
    color: var(--ink-2) !important;
}

.lm-btn:hover { background: var(--well); }

.lm-content { flex: 1; min-height: 0; overflow: auto; position: relative; }

/* ---------- Loading veil ----------
   Pages built on this layout still carry the classic spinner markup (.cssload-loader-scheduler with the stars gif).
   Here it becomes a light veil over the content area with a ring spinner; the pages keep toggling it by id. */
.lm-body .cssload-loader-scheduler {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    background: var(--veil);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 1;
    z-index: 40;
    animation: lm-veil-in .18s ease-out;
}

.lm-body .cssload-loader {
    position: absolute;
    left: 50%;
    top: 38%;
    width: 46px;
    height: 46px;
    margin: 0;
    border-radius: 50%;
    perspective: none;
    border: 3px solid var(--brand-line);
    border-top-color: var(--brand);
    animation: lm-spin .8s linear infinite;
}

.lm-body .cssload-loader img { display: none; }

.lm-body .cssload-loader-text,
.lm-body .cssload-loader-text-creatingevent,
.lm-body .cssload-loader-text-processingrequest {
    position: absolute;
    left: 50%;
    top: 38%;
    margin: 0;
    transform: translate(-50%, 38px);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
    white-space: nowrap;
}

@keyframes lm-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes lm-veil-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .lm-body .cssload-loader { animation-duration: 1.6s; }
    .lm-body .cssload-loader-scheduler { animation: none; }
}

.lm-scrim { display: none; }

/* ---------- Phones and small tablets: the menu slides over the page ---------- */
@media (max-width: 900px) {
    .lm-body, .lm-body.lm-mini { grid-template-columns: minmax(0, 1fr); overflow: auto; }

    .lm-side {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: var(--side-w);
        z-index: 60;
        transform: translateX(-100%);
        transition: transform .22s ease;
    }

    .lm-body.lm-open .lm-side { transform: none; box-shadow: 20px 0 50px rgba(15, 23, 42, .35); }
    .lm-body.lm-open .lm-scrim { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 59; }

    /* the rail only exists on wide screens */
    .lm-mini .lm-hide-mini { display: revert; }
    .lm-mini .lm-nav span { display: inline; }
    .lm-mini .lm-chev { display: inline-block; }
    .lm-mini .lm-brand-full { display: block; }
    .lm-mini .lm-brand-mini { display: none; }
    .lm-mini .lm-user { justify-content: flex-start; padding: 10px 12px; }
    .lm-mini .lm-nav > li > a,
    .lm-mini .lm-nav > li > button,
    .lm-mini .lm-bug { justify-content: flex-start; padding: 9px 12px; }
    .lm-mini .lm-tree.open > ul { display: block !important; }

    .lm-main { height: auto; min-height: 100vh; }
    .lm-top { padding: 0 12px 0 8px; position: sticky; top: 0; }
    .lm-usermenu-name { display: none; }
    .lm-content { overflow: visible; overflow-x: clip; }   /* the page scrolls as one; nothing inside may widen it (a phone would zoom the whole page out) */
}

/* ---------- Submenu item that is the current page ----------
   Same filled orange pill as a selected top-level item, so "where am I" reads the same at both levels. */
.lm-tree > ul li.on > a,
.lm-tree > ul li.on > a:hover {
    background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand) 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(245, 128, 2, .28);
}

.lm-tree > ul li.on > a i { color: #fff; }

/* the group that holds the current page reads as open, not selected */
.lm-tree.has-on > button { color: #fff; }
.lm-tree.has-on > button > i:first-child { color: var(--brand-2); }

/* on the icon rail the parent carries the highlight, since the children are hidden */
.lm-mini .lm-tree.has-on > button {
    background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand) 100%);
    color: #fff;
}
/* on the orange rail block the icon must be white, otherwise it disappears into the fill */
.lm-mini .lm-tree.has-on > button > i:first-child { color: #fff; }

/* ---------- Today's event counters (top bar) ----------
   Sits right before the user menu, as one quiet group: "30 today" then the statuses that have events. No arrow of its
   own (the user menu already has one); the whole group is a link to the dashboard. */
.lm-stats {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 6px 0 4px;
    border-radius: 12px;
    color: var(--ink-2) !important;
    font-size: 12.5px;
    transition: background .15s;
}

.lm-stats:hover { background: var(--well); }

/* the scripts of the partial sit between the two, so a general sibling selector */
.lm-stats ~ .lm-usermenu { margin-left: 4px; padding-left: 12px; border-left: 1px solid var(--line); }

.lm-stats-today { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 8px; border-radius: 99px; background: var(--ink-fill); color: var(--on-ink-fill); white-space: nowrap; }
.lm-stats-today i { color: var(--brand-2); font-size: 11px; }
.lm-stats-today b { font-size: 13px; }
.lm-stats-today span { opacity: .8; }

.lm-stats-chips { display: inline-flex; align-items: center; gap: 4px; }

.lm-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    padding: 0 9px 0 7px;
    border-radius: 99px;
    background: color-mix(in srgb, var(--c) 10%, var(--chip-base));
    color: var(--c);
    font-size: 12px;
    white-space: nowrap;
}

.lm-chip i { font-size: 10px; }
.lm-chip b { font-size: 13px; }
.lm-chip span { opacity: .85; }
.lm-chip.attn { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent); font-weight: 600; }
.lm-chip.changed { animation: lm-chip-pop .6s ease; }
@keyframes lm-chip-pop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

@media (max-width: 1400px) { .lm-chip span { display: none; } .lm-chip { padding: 0 8px 0 7px; } }
@media (max-width: 1100px) { .lm-stats-today span { display: none; } }
@media (max-width: 900px) { .lm-stats-chips { display: none; } .lm-stats { padding: 0 4px; } .lm-stats ~ .lm-usermenu { border: 0; padding-left: 0; } }

/* ---------- Pages built with the apl-* design system, inside this layout ---------- */
/* Flat header like the dashboard instead of the orange banner, and no double canvas */
.lm-body .apl-scope { background: transparent; min-height: 0; padding: 20px 24px 28px; }

.lm-body .apl-header {
    margin: 0 0 16px;
    padding: 0 0 14px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--line);
}

.lm-body .apl-header-title { color: var(--ink); }
.lm-body .apl-header-icon { background: var(--brand-soft); color: var(--brand); }
.lm-body .apl-header-text { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.lm-body .apl-header-sub { color: var(--muted); font-size: 13px; }

.lm-body .apl-header-btn {
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink-2) !important;
    font-weight: 600;
    font-size: 13px;
}

.lm-body .apl-header-btn:hover { background: var(--well); }
.lm-body .apl-header-btn:first-child:not(:only-child), .lm-body .apl-header-btn.apl-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand) 100%);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(245, 128, 2, .28);
}

.lm-body .apl-header-chip { background: var(--well); border: 1px solid var(--line); color: var(--muted); }
.lm-body .apl-card { margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

@media (max-width: 900px) {
    .lm-body .apl-scope { padding: 16px; }
    .lm-body .apl-header { flex-direction: column; align-items: flex-start; }
}

/* the navigation bar: grows across the top while the next page loads */
.lm-navbar { position: fixed; left: 0; top: 0; height: 3px; width: 0; z-index: 3000; background: linear-gradient(90deg, var(--brand-2, #f68d1c), var(--brand, #f58002)); box-shadow: 0 0 10px rgba(245, 128, 2, .55); opacity: 0; pointer-events: none; }
.lm-navbar.on { opacity: 1; animation: lmNavGrow 9s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes lmNavGrow { 0% { width: 0; } 15% { width: 35%; } 50% { width: 70%; } 100% { width: 92%; } }
.lm-navpill { position: fixed; top: 14px; left: 50%; transform: translate(-50%, -28px); z-index: 3001; display: flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 999px; background: var(--surface, #fff); color: var(--ink, #1f2937); border: 1px solid var(--line, #e5e7eb); box-shadow: 0 10px 28px rgba(0, 0, 0, .16); font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.lm-navpill.on { opacity: 1; transform: translate(-50%, 0); }
.lm-navpill i { color: var(--brand, #f58002); font-size: 15px; }
