
/* magic_render type='input_search' — Select2 picker styled to read as
   a text input with a chevron. White box, 1px #d1d5db border, 6px
   radius, 32px tall, vertically-aligned to the same baseline as a
   neighbouring .form-control so the two box bottoms / tops line up.

   IMPORTANT: every border / background / padding declaration uses
   !important. The legacy global ExactEstate/static/css/main.css
   ships rules with !important that strip top/left/right borders
   from every .select2-selection--single site-wide. Without !important
   the widget renders as a Material-Design underline, not a box. */
.input-search-wrap {
    width: 100%;
    margin: 0;
    /* Vertical baseline cue — match .form-control line height so the
       Select2 container sits on the same baseline as a sibling input. */
    line-height: 32px;
}
.input-search-wrap .select2-container {
    width: 100% !important;
    max-width: 100%;
    /* top-align inside the cell so the widget sits at the same y
       coordinate as a neighbouring text input (those use top-align
       via .form-control's display: block flow). */
    vertical-align: top !important;
    display: inline-block;
    margin: 0 !important;
}
.input-search-wrap .select2-container--default .select2-selection--single,
.input-search-wrap .select2-container .select2-selection.select2-selection--single,
.input-search-wrap .select2-container--default.select2-container--open .select2-selection--single,
.input-search-wrap .select2-container--default.select2-container--focus .select2-selection--single {
    height: 32px !important;
    min-height: 32px !important;
    box-sizing: border-box !important;
    border-top:    1px solid #d1d5db !important;
    border-right:  1px solid #d1d5db !important;
    border-bottom: 1px solid #d1d5db !important;
    border-left:   1px solid #d1d5db !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    color: #1f2937 !important;
    transition: border-color .15s ease, box-shadow .15s ease !important;
}
.input-search-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px !important;
    /* leave 24px on the right for the chevron so the visible text
       never collides with the arrow. */
    padding: 0 28px 0 8px !important;
    font-size: 0.875rem !important;
    color: #1f2937 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Re-show the chevron — keep it visually subtle so the field still
   reads as input-like, but operators can see it's a picker. */
.input-search-wrap .select2-container--default .select2-selection--single .select2-selection__arrow,
.input-search-wrap .select2-container .select2-selection.select2-selection--single .select2-selection__arrow {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    right: 4px !important;
    height: 30px !important;
    width: 20px !important;
}
.input-search-wrap .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #6b7280 transparent transparent transparent !important;
}
.input-search-wrap .select2-container--default.select2-container--focus .select2-selection--single,
.input-search-wrap .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--ee-indigo) !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.15) !important;
}
/* =============================================================================
   15. AGENT-FIRST SUPPORT INTAKE
   =============================================================================
   ONE SCRIPT, ONE APP (owner 2026-10-10): "Live support", "Ask about a
   feature" and "My tickets" are views of the ExactOps Agent Studio app
   (templates/includes/eeva_agent.html loads it), which ships its own studio
   stylesheet. The ~500 lines that styled EE's own live-support modal — the
   capture strip, chips, context list, inline preview, the assistant panel,
   the embed's parts, the annotation surface and the conversation — went with
   that modal (templates/includes/eeva_embed_intake.html, deleted).

   What stays is what a page still draws: the feature-request page's
   no-property fallback form (support_tickets/feature_requests.html) shows
   EEva's answer in .ee-agent-panel (header, body, verdict row) with the
   thinking skeleton inside it. The panel is collapsed until its JS adds
   .show, so the "EEva is checking…" skeleton never sits open on a form
   nobody has submitted yet; it owns its scroll so a long answer cannot push
   Submit off the bottom of the modal.
   ============================================================================= */
.ee-agent-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin: 0;
    border-radius: var(--ee-radius-md);
    transition: max-height 0.28s ease, opacity 0.2s ease, margin 0.2s ease;
}
.ee-agent-panel.show {
    max-height: 42vh;
    opacity: 1;
    margin: 0 0 var(--ee-space-3);
    overflow-y: auto;
    border: 1px solid var(--ee-border-light);
    background: var(--ee-bg-card);
}
.ee-agent-panel-header {
    position: sticky; top: 0; z-index: 1;
    display: flex; align-items: center; gap: var(--ee-space-2);
    padding: var(--ee-space-2) var(--ee-space-3);
    background: var(--ee-indigo-bg);
    border-bottom: 1px solid var(--ee-border-light);
    font-size: var(--ee-text-xs); font-weight: 700;
    color: var(--ee-indigo);
}
.ee-agent-panel-body {
    padding: var(--ee-space-3);
    font-size: var(--ee-text-sm);
    line-height: 1.55;
    color: var(--ee-text-primary);
}
.ee-agent-panel-body p { margin: 0 0 var(--ee-space-2); }
.ee-agent-panel-body p:last-child { margin-bottom: 0; }
.ee-agent-panel-body a { color: var(--ee-indigo); text-decoration: underline; }
.ee-agent-verdict {
    display: flex; flex-wrap: wrap; align-items: center; gap: var(--ee-space-2);
    padding: var(--ee-space-2) var(--ee-space-3);
    border-top: 1px dashed var(--ee-border-light);
}
.ee-agent-verdict-label {
    font-size: var(--ee-text-xs); font-weight: 600;
    color: var(--ee-text-secondary);
}
.ee-agent-thinking { display: grid; gap: 8px; }
.ee-agent-thinking span {
    display: block; height: 10px; border-radius: 4px;
    background: linear-gradient(90deg, #eceef4 25%, #f6f7fb 37%, #eceef4 63%);
    background-size: 400% 100%;
    animation: eeAgentShimmer 1.3s ease infinite;
}
.ee-agent-thinking span:nth-child(2) { width: 88%; }
.ee-agent-thinking span:nth-child(3) { width: 64%; }
@keyframes eeAgentShimmer {
    0%   { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* =============================================================================
   16. SPARKLINES  --  the EE line chart for widget cards
   =============================================================================
   Ported from ExactOperator's `.ops-sparkline`
   (/root/ExactOperator src/exactoperator/web/app.css:2199-2257). EO's chrome is
   dark and its plate uses `background: rgba(255,255,255,0.03)` with a
   `rgba(255,255,255,0.07)` hairline -- both are INVISIBLE here, because an EE
   widget card is a white body under a coloured header. So the ground is
   inverted onto --ee-bg-page and the hairline onto --ee-border-light, and the
   strokes come from the solid ee_tokens hues rather than EO's --accent set.

   Geometry (180x56 viewBox, 5px pad) is computed server-side by
   apps/home/templates/home/utils.py :: build_sparkline, so this file only ever
   styles what is already drawn.
   ============================================================================= */

.ee-sparkline {
    width: 100%;
    height: 56px;
    border-radius: 10px;
    background: var(--ee-bg-page);
    border: 1px solid var(--ee-border-light);
    padding: 4px;
    box-sizing: border-box;
    overflow: hidden;
}

.ee-sparkline svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* stroke-width is in USER units and preserveAspectRatio="none" stretches x far
   more than y on a wide card, so a plain 2.4 renders as a hairline once the
   180-unit box is painted across ~300px. vector-effect keeps the drawn width
   in DEVICE pixels, which is the only way this line stays legible at both the
   small-widget and full-bleed sizes. */
.ee-sparkline-line {
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.ee-sparkline-area { opacity: 0.18; stroke: none; }

.ee-sparkline.indigo  .ee-sparkline-line { stroke: var(--ee-indigo); }
.ee-sparkline.indigo  .ee-sparkline-area { fill: var(--ee-indigo); }
.ee-sparkline.success .ee-sparkline-line { stroke: var(--ee-success-dark); }
.ee-sparkline.success .ee-sparkline-area { fill: var(--ee-success); }
.ee-sparkline.warning .ee-sparkline-line { stroke: var(--ee-warning-dark); }
.ee-sparkline.warning .ee-sparkline-area { fill: var(--ee-warning); }
.ee-sparkline.danger  .ee-sparkline-line { stroke: var(--ee-danger-dark); }
.ee-sparkline.danger  .ee-sparkline-area { fill: var(--ee-danger); }
.ee-sparkline.info    .ee-sparkline-line { stroke: var(--ee-info-dark); }
.ee-sparkline.info    .ee-sparkline-area { fill: var(--ee-info); }
.ee-sparkline.teal    .ee-sparkline-line { stroke: var(--ee-teal-dark); }
.ee-sparkline.teal    .ee-sparkline-area { fill: var(--ee-teal); }
/* templatetags/chart_tags.py TONES names `accent` (its default) and `warm`; they
   had no rule here, so the Compliance Hub recert pipeline (tone="warm") drew
   with the browser's default black fill. They alias the token hues above. */
.ee-sparkline.accent  .ee-sparkline-line { stroke: var(--ee-indigo); }
.ee-sparkline.accent  .ee-sparkline-area { fill: var(--ee-indigo); }
.ee-sparkline.warm    .ee-sparkline-line { stroke: var(--ee-warning-dark); }
.ee-sparkline.warm    .ee-sparkline-area { fill: var(--ee-warning); }
/* The one-line caption under a card sparkline (Compliance Hub). */
.ee-metric-caption { margin-top: var(--ee-space-1); font-size: var(--ee-text-xs); color: var(--ee-text-muted); line-height: 1.4; }

/* An all-zero or absent series renders THIS, never a flat line pinned to the
   baseline -- a baseline line reads as "the value is zero every month", which
   is a different and usually false claim from "no data yet". */
.ee-sparkline.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ee-text-muted);
    font-size: var(--ee-text-xs);
    letter-spacing: 0.3px;
}

/* The caption strip under a sparkline: first and last bucket label plus the
   peak, so the line has an x-axis and a y-scale without a full axis chrome. */
.ee-sparkline-caption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--ee-space-2);
    margin-top: 6px;
    font-size: var(--ee-text-xs);
    color: var(--ee-text-muted);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.ee-sparkline-caption strong {
    color: var(--ee-text-secondary);
    font-weight: 600;
}

/* -----------------------------------------------------------------------------
   Draw-on animation.

   MEASURED, and the reason this is 1000 and not a normalised 100: Chromium does
   not honour the SVG2 `pathLength` attribute on <polyline> -- only on <path>.
   With pathLength="100" the dasharray was therefore read in USER UNITS against
   a polyline roughly 170 units long, so the dash covered ~59% of it and every
   chart rendered as a line that stopped short with its area fill running on
   past the end. Caught by looking at the plate, not by reading the CSS.

   1000 is unconditionally longer than any polyline this 180x56 viewBox can
   hold, so a single dash of 1000 covers the whole path at offset 0 whatever the
   series length, with no per-series measurement and no JS.

   fill-mode both leaves the finished line painted, and the whole thing is over
   in 900ms -- well inside the 3.5s settle a capture waits, which is what keeps
   a screenshot from catching a half-drawn line.
   -------------------------------------------------------------------------- */
@keyframes ee-sparkline-draw {
    from { stroke-dashoffset: 1000; }
    to   { stroke-dashoffset: 0; }
}

@keyframes ee-sparkline-fill {
    from { opacity: 0; }
    to   { opacity: 0.18; }
}

.ee-sparkline-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 0;
    animation: ee-sparkline-draw 900ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.ee-sparkline-area {
    animation: ee-sparkline-fill 700ms ease-out 350ms both;
}

/* An animation with no reduced-motion branch is an accessibility defect.
   Both elements land on their FINAL state instantly here -- the chart is still
   fully drawn, it simply does not move. */
@media (prefers-reduced-motion: reduce) {
    .ee-sparkline-line,
    .ee-sparkline-area {
        animation: none !important;
        stroke-dashoffset: 0 !important;
    }
    .ee-sparkline-area { opacity: 0.18 !important; }
}

/* -----------------------------------------------------------------------------
   Widget mini-table -- the other half of "every widget carries a graph or a
   table". A counter with no breakdown is the thing this section exists to
   replace, so any widget with rows rather than a series renders this.
   -------------------------------------------------------------------------- */
.ee-widget-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--ee-text-sm);
    table-layout: fixed;
}

.ee-widget-table th {
    text-align: left;
    font-size: var(--ee-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--ee-text-muted);
    padding: 4px 8px 6px 0;
    border-bottom: 1px solid var(--ee-border-light);
    white-space: nowrap;
}

.ee-widget-table td {
    padding: 6px 8px 6px 0;
    border-bottom: 1px solid var(--ee-border-light);
    color: var(--ee-text-primary);
    /* A truncated label is better than a label that wraps a row to two lines
       and shoves the card's last row out of the visible box. */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ee-widget-table tr:last-child td { border-bottom: none; }
.ee-widget-table td.ee-widget-table-num,
.ee-widget-table th.ee-widget-table-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    padding-right: 0;
    white-space: nowrap;
}

/* .ee-widget-list-table: a dashboard widget's list of rows (Tasks List) that scrolls
   inside its card under a sticky header. .ee-table-stack turns each row into a card on
   a phone; .ee-widget-list-table__clip keeps a long cell to one line on wider screens. */
.ee-widget-list-scroll { max-height: 18.75rem; overflow-y: auto; }
.ee-widget-list-table { width: 100%; }
.ee-widget-list-table thead { position: sticky; top: 0; z-index: 1; background: var(--ee-bg-hover); }
.table.ee-widget-list-table th {
    padding: var(--ee-space-2) var(--ee-space-3);
    font-size: var(--ee-text-sm);
    font-weight: 600;
    color: var(--ee-text-secondary);
    border-bottom: 2px solid var(--ee-border-light);
}
.table.ee-widget-list-table td {
    padding: var(--ee-space-2) var(--ee-space-3);
    font-size: var(--ee-text-base);
    color: var(--ee-text-muted);
    border-bottom: 1px solid var(--ee-border-light);
}
.ee-widget-list-table tbody tr { cursor: pointer; }
.ee-widget-list-table td.ee-widget-list-table__lead { color: var(--ee-text-primary); }
.ee-widget-list-table td.ee-widget-list-table__sub { color: var(--ee-text-secondary); }
@media (min-width: 576px) {
    .ee-widget-list-table td.ee-widget-list-table__clip {
        max-width: 15.625rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
}

/* Resident workflow dashboard cards */
.ee-widget-item-icon--move-outs { background: var(--ee-warning); }
.ee-widget-item-icon--insurance { background: var(--ee-indigo); }

.ee-workflow-widget__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ee-space-3);
    background: linear-gradient(135deg, var(--ee-indigo) 0%, var(--ee-indigo-dark) 100%);
}

.ee-workflow-widget__title {
    margin: 0;
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
}

.ee-workflow-widget__body {
    padding: 0;
    justify-content: flex-start;
}

/* The dashboard host applies a more-specific generic card-body rule. Keep the
   workflow tabs and rows full-bleed when the widget is mounted in its real grid. */
.ee-dashboard-grid .ee-workflow-widget > .ee-workflow-widget__body {
    padding: 0;
    justify-content: flex-start;
    overflow: hidden;
}

.ee-workflow-tabs {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid var(--ee-border-light);
    scrollbar-width: thin;
}

.ee-workflow-tab {
    display: inline-flex;
    flex: 1 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 8px 10px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--ee-text-muted);
    font-size: var(--ee-text-sm);
    font-weight: 600;
    cursor: pointer;
}

.ee-workflow-tab:hover { background: var(--ee-bg-hover); color: var(--ee-text-primary); }
.ee-workflow-tab:focus-visible { outline: 2px solid var(--ee-indigo); outline-offset: -2px; }
.ee-workflow-tab.is-active { border-bottom-color: var(--ee-indigo); color: var(--ee-indigo); }
.ee-workflow-tab.is-active:is([data-workflow-tab="overdue"], [data-workflow-tab="expired"], [data-workflow-tab="missing"]) {
    border-bottom-color: var(--ee-danger);
    color: var(--ee-danger-dark);
}
.ee-workflow-tab.is-active:is([data-workflow-tab="overdue"], [data-workflow-tab="expired"], [data-workflow-tab="missing"]) .ee-workflow-tab__count {
    background: var(--ee-danger-bg);
}
.ee-workflow-tab__count {
    min-width: 20px;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--ee-bg-hover);
    color: currentColor;
    font-variant-numeric: tabular-nums;
}

.ee-workflow-panel {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
}
.ee-workflow-panel[hidden] { display: none; }
.ee-workflow-list { margin: 0; padding: 0; list-style: none; }
.ee-workflow-row {
    border-bottom: 1px solid var(--ee-border-light);
}
.ee-workflow-row__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ee-space-3);
    padding: 11px 14px;
    color: var(--ee-text-primary);
    text-decoration: none;
    transition: background-color var(--ee-transition-fast), box-shadow var(--ee-transition-fast);
}
.ee-workflow-row__link:hover {
    background: var(--ee-bg-hover);
    color: var(--ee-indigo);
    text-decoration: none;
}
.ee-workflow-row__link:focus-visible {
    background: var(--ee-indigo-bg);
    box-shadow: inset 0 0 0 2px var(--ee-indigo);
    outline: none;
}
.ee-workflow-row__identity { min-width: 0; }
.ee-workflow-row__name,
.ee-workflow-row__meta,
.ee-workflow-row__date small { display: block; }
.ee-workflow-row__name { overflow: hidden; font-size: var(--ee-text-sm); font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.ee-workflow-row__meta { overflow: hidden; color: var(--ee-text-muted); font-size: var(--ee-text-xs); text-overflow: ellipsis; white-space: nowrap; }
.ee-workflow-row__date { flex: 0 0 auto; text-align: right; font-size: var(--ee-text-xs); }
.ee-workflow-row__date strong { color: var(--ee-text-secondary); font-weight: 600; }
.ee-workflow-row__date small { color: var(--ee-text-muted); }
.ee-workflow-empty { padding: 48px 20px; color: var(--ee-text-muted); text-align: center; }
.ee-workflow-empty i { margin-bottom: 8px; color: var(--ee-success); font-size: 1.5rem; }
.ee-workflow-empty p { margin: 0; font-size: var(--ee-text-sm); }
.ee-workflow-widget__footer-link {
    display: block;
    margin-top: auto;
    padding: 9px 14px;
    color: var(--ee-indigo);
    font-size: var(--ee-text-xs);
    font-weight: 650;
    text-align: right;
}
.ee-workflow-widget__footer-link:focus-visible {
    outline: 2px solid var(--ee-indigo);
    outline-offset: -2px;
}
.ee-workflow-widget .ee-widget-view-btn:focus-visible {
    background: rgba(255, 255, 255, .35);
    outline: 2px solid rgba(255, 255, 255, .8);
    outline-offset: 1px;
}

@media (max-width: 575.98px) {
    .ee-workflow-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow-x: visible;
    }
    .ee-workflow-tab {
        min-width: 0;
        min-height: 44px;
        font-size: var(--ee-text-base);
    }
    .ee-workflow-tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .ee-workflow-row__link { align-items: flex-start; }
    .ee-workflow-row__date strong { max-width: 92px; }
    .ee-workflow-widget .ee-widget-customize-btn,
    .ee-workflow-widget .ee-widget-view-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
}

/* Custom Report Builder filters fit the available panel width. */
#report-builder-page #filter-list .filter-content { flex-wrap: wrap; }
#report-builder-page #filter-list .filter-field-select { flex: 1 1 240px; min-width: 0; }
#report-builder-page #filter-list .filter-op-select { flex: 1 1 180px; min-width: 0; }
#report-builder-page #filter-list .filter-value-wrapper {
    flex: 1 1 180px;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--ee-space-2);
}
#report-builder-page #filter-list .filter-content .filter-input {
    min-width: 0;
    max-width: 100%;
}
#report-builder-page #filter-list .filter-content .select2-container {
    width: 100% !important; /* Select2 sets an inline width. */
    min-width: 0 !important; /* Overrides the legacy field-selector minimum. */
    max-width: 100%;
    height: auto;
}
#report-builder-page #filter-list .select2-selection--multiple {
    height: auto;
    min-height: 34px;
}
#report-builder-page #filter-list .select2-selection--multiple .select2-selection__rendered {
    white-space: normal;
    line-height: normal;
}
#report-builder-page #filter-list .select2-selection__choice {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}
#report-builder-page #filter-list .select2-search--inline,
#report-builder-page #filter-list .select2-search__field {
    max-width: 100%;
    min-width: 0;
}
@media (max-width: 768px) {
    #report-builder-page #filter-list .filter-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: var(--ee-space-2);
    }
    #report-builder-page #filter-list .filter-content {
        grid-column: 1 / -1;
        grid-row: 2;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }
    #report-builder-page #filter-list .filter-row .filter-remove-btn {
        grid-column: 2;
        grid-row: 1;
        width: 44px;
        height: 44px;
        margin: 0;
        justify-content: center;
    }
}


/* =============================================================================
   TOP APP BAR — STRUCTURE AND NEUTRAL FLOOR ONLY
   (templates/includes/ee_toolbar.html; owner 2026-11-07: "SSOT in PG and
   logic in code, and style editable without a deploy ... no EE-side copies of
   styles").
   This block holds what makes the bar WORK: places, order, folding, the two
   breakpoints, panels anchored under it, 44px targets, focus, and a plain
   neutral paint from the app's global tokens so the bar is whole when ExactOps
   is down. The LOOK is the EEva shell's `host_toolbar_css` for every element
   marked [data-eo-host-toolbar], written by the server as it renders
   (utils/frontend/host_toolbar.py) and refreshed by ExactOps' loader: it sets
   the --eo-tb-* variables (the `toolbar` row's token map) that the rules below
   paint with, each falling back to the app token named beside it. The SIZES
   are the `ui_layout` row `toolbar`, written by the server and re-applied by
   the include's script; the values below are their floor, written once, here.
   ============================================================================= */
:root {
    --ee-toolbar-height: 4rem;
    --ee-toolbar-height-compact: 3.5rem;
    --ee-toolbar-control: 2.75rem;
    --ee-toolbar-search-min: 14rem;
    --ee-toolbar-search-max: 36rem;
    --ee-toolbar-context-min: 8rem;
    --ee-toolbar-context-max: 18rem;
    --ee-toolbar-panel-width: 20rem;
    --ee-toolbar-launcher-slot: 2.75rem;
    --ee-toolbar-chip-max: 16rem;
    --ee-toolbar-chip-max-compact: 12rem;
    --ee-z-toolbar: 1055;
    --ee-z-toolbar-under-nav: 1035;
}
body:has(#top-nav.ee-appbar) { --ee-shell-header-height: var(--ee-toolbar-height); }
#top-nav.ee-appbar {
    /* on screen while the page scrolls (owner 2026-11-08: the bar is sticky);
       same place and size as before, the viewport its frame */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--ee-z-toolbar);
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: var(--ee-toolbar-height);
    margin: 0;
    padding: 0 var(--ee-space-4);
    background: var(--eo-tb-surface, var(--ee-bg-card));
    border-bottom: 1px solid var(--eo-tb-line, var(--ee-border-light));
    color: var(--eo-tb-ink, var(--ee-text-primary));
    font-family: var(--ee-font-family);
}
@media (min-width: 992px) {
    body.fixed-sn #top-nav.ee-appbar { left: var(--sidenav-width, 270px); }
    body.fixed-sn.sidenav-slim #top-nav.ee-appbar { left: var(--sidenav-slim-width, 60px); }
    body.ee-angular-shell--side #top-nav.ee-appbar { left: var(--ee-shell-sidenav-width, 270px); }
    body.ee-angular-shell--side.ee-angular-shell--collapsed #top-nav.ee-appbar { left: var(--ee-shell-sidenav-collapsed-width, 74px); }
    body.ee-angular-shell--top #top-nav.ee-appbar { left: 0; }
}
/* Above Bootstrap modals, so EEva's launcher stays reachable; an open phone or
   tablet side navigation still covers it. */
body.sidebar-open #top-nav.ee-appbar,
body:has(.ee-shell-sidenav--mobile-open) #top-nav.ee-appbar { z-index: var(--ee-z-toolbar-under-nav); }
/* ...so an open Bootstrap modal starts BELOW the bar: its title and close are
   never under it (photos of 873c71478e0, modal_1440 / modal_390). */
body:has(#top-nav.ee-appbar) .modal {
    top: var(--ee-shell-header-height);
    bottom: 0;
    height: auto;
}
body:has(#top-nav.ee-appbar) #hamburger-menu { display: none !important; }

#top-nav.ee-appbar .ee-appbar__inner,
#top-nav.ee-appbar .ee-appbar__list {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
}
/* The list carries Bootstrap's .navbar-nav (a COLUMN): the bar is a row, or
   every item stacks over the page (photos of 5db1c848748, more_1440). */
#top-nav.ee-appbar .ee-appbar__list {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: var(--ee-space-2);
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}
#top-nav.ee-appbar .ee-appbar__list > li {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    order: 0;
    margin: 0;
    padding: 0;
}
.ee-appbar [hidden],
.ee-appbar-overlay [hidden],
#top-nav.ee-appbar .ee-appbar__list > li[hidden] { display: none !important; }

/* ---- Places (left: menu, context, search; right: actions .. account) ------ */
#top-nav.ee-appbar .ee-appbar__list > li.ee-appbar__item--menu { order: -30; }
/* ExactEstate's mark at the bar's start; its ink is the bar's paint (rows). */
#top-nav.ee-appbar .ee-appbar__list > li.ee-appbar__item--brand { order: -28; }
#top-nav.ee-appbar .ee-appbar__list > li.ee-appbar__item--context {
    order: -25;
    flex: 0 1 auto;
    min-width: 0;
    max-width: var(--ee-toolbar-context-max);
}
#top-nav.ee-appbar .ee-appbar__list > li.ee-appbar__item--search {
    order: -20;
    /* Reserve a basis before sharing space with the context/property. A zero
       basis lets their text consume the whole row before search can grow. */
    flex: 1000 1 var(--ee-toolbar-search-min);
    min-width: 7.5rem;
    max-width: var(--ee-toolbar-search-max);
}
#top-nav.ee-appbar .ee-appbar__list > li.ee-appbar__spacer { order: -10; flex: 1 1 0; min-width: 0; }
/* The two groups (owner 2026-11-09): menu, mark, context and EEva's door on the
   left; Actions, utilities, the icon controls, property, More and account on
   the right. The push takes the room between, also when the bar's paint row
   hides .ee-appbar__spacer. */
#top-nav.ee-appbar .ee-appbar__list > li.ee-appbar__push { order: -5; flex: 1 1 0; min-width: 0; margin: 0; }
#top-nav.ee-appbar .ee-appbar__list > li.ee-appbar__item--actions { order: 10; }
#top-nav.ee-appbar .ee-appbar__list > li[data-ee-appbar-tool] { order: 12; }
#top-nav.ee-appbar .ee-appbar__list > li.ee-appbar__item--more { order: 65; }
/* an icon control the row has no room for: listed in More instead */
#top-nav.ee-appbar .ee-appbar__list > li.ee-appbar__item--folded { display: none !important; }
/* EEva's slot (EO's mount point, design section 6). The owner's EE toolbar
   target (2026-11-08) has ONE field, ExactEstate's own "Ask EEva or search"
   door, which opens ExactOps' centred widget (EEva.open; Ctrl K is the
   loader's while it holds a launcher): the slot stays in place for the
   contract and is not drawn, so the bar never shows two doors. */
#top-nav.ee-appbar .ee-appbar__list > li.ee-appbar__eeva {
    order: -20;
    /* never narrower than the launcher mounted in it: a shrunk slot let the
       launcher spill over the right group's first control (Actions) */
    flex: 0 0 auto;
    max-width: var(--ee-toolbar-search-max);
    justify-content: center;
    min-width: var(--ee-toolbar-launcher-slot);
    min-height: var(--ee-toolbar-control);
    border: 0;
    background: none;
    box-shadow: none;
}
#top-nav.ee-appbar .ee-appbar__list > li.ee-appbar__eeva { display: none; }
/* A populated EO launcher is a full field, not a 44px icon. Keep its
   intrinsic width in the flex calculation so page actions fold before the
   centred launcher can spill over the brand or its neighbours. */
#top-nav.ee-appbar .ee-appbar__list > li.ee-appbar__eeva:not(:empty) { flex-shrink: 0; }
/* Two dividers: before the icon group, before the property. */
#top-nav.ee-appbar .ee-appbar__list > li.ee-appbar__sep {
    order: 15;
    width: 2px;
    height: 1.875rem;
    border-radius: 2px;
    background: currentColor;
    opacity: .25;
}
#top-nav.ee-appbar .ee-appbar__list > li.ee-appbar__sep--context { order: 55; }
#top-nav.ee-appbar .ee-appbar__list > li.ee-appbar__item--notifications { order: 20; }
#top-nav.ee-appbar .ee-appbar__list > li.ee-appbar__item--help { order: 30; }
#top-nav.ee-appbar .ee-appbar__list > li.ee-appbar__item--favorites { order: 40; }
#top-nav.ee-appbar .ee-appbar__list > li.ee-appbar__item--permissions { order: 50; }
#top-nav.ee-appbar .ee-appbar__list > li.ee-appbar__item--property { order: 60; flex: 0 1 auto; min-width: 0; }
#top-nav.ee-appbar .ee-appbar__list > li.ee-appbar__item--account { order: 70; }

.ee-appbar__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.ee-appbar__context {
    display: block;
    min-width: 0;
    overflow: hidden;
    font-weight: var(--ee-font-weight-semibold);
    line-height: var(--ee-toolbar-control);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- Controls: 44px targets, one focus ring ------------------------------- */
.ee-appbar__icon-btn,
#top-nav.ee-appbar .ee-appbar__icon-btn,
.ee-appbar__account {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ee-space-1);
    min-width: var(--ee-toolbar-control);
    height: var(--ee-toolbar-control);
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}
.ee-appbar__icon-btn:hover,
.ee-appbar__icon-btn[aria-expanded="true"] { background: var(--eo-tb-wash, var(--ee-bg-hover)); }
.ee-appbar__icon-btn:focus-visible,
.ee-appbar__chip:focus-visible,
.ee-appbar__account:focus-visible,
#top-nav.ee-appbar .ee-appbar__list > li > a:focus-visible,
#top-nav.ee-appbar .ee-appbar__list > li > button:focus-visible,
.ee-appbar-overlay .nav-modal-item:focus-visible {
    outline: 2px solid var(--eo-tb-accent, var(--ee-indigo));
    outline-offset: 2px;
}
/* THE COUNT BADGE (universal icon rule, component redesign round 16): a green
   pill carrying the count of unseen items, a 2px ring in the bar's surface,
   hidden at 0 (the include draws it [hidden] without a count). Never red. */
.ee-appbar__dot {
    position: absolute;
    top: -0.375rem;
    right: -0.375rem;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3125rem;
    border-radius: var(--ee-radius-full);
    background: var(--ee-lx-new, var(--ee-success));
    box-shadow: 0 0 0 2px var(--eo-tb-surface, var(--ee-bg-card)), 0 3px 8px -2px rgba(39, 128, 63, 0.55);
    color: var(--ee-text-inverse);
    font-size: 0.6875rem;
    font-weight: var(--ee-font-weight-bold, 700);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    pointer-events: none;
}
.ee-appbar__dot:empty { display: none; }
.ee-appbar__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--ee-toolbar-control);
    height: var(--ee-toolbar-control);
    border: 1px solid var(--eo-tb-edge, var(--ee-border-default));
    border-radius: var(--ee-radius-full);
    font-weight: var(--ee-font-weight-semibold);
}

/* The search door: a button drawn as a field. */
#top-nav.ee-appbar .ee-appbar__search {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    height: var(--ee-toolbar-control);
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: text;
}
/* THE ONE ASK FIELD (owner rounds 24 + 27, 2026-11-08): search icon | a visible 2px
   pipe | EEva swaying in her own lane | words. The four x positions are custom
   properties so the bar's paint row (ExactOps ui_css ee-host-toolbar) and a phone
   reuse one geometry; the words start after the lane (or after the pipe, no face). */
#top-nav.ee-appbar .ee-appbar__search {
    --ee-find-ico-x: 1rem;
    --ee-find-bar-x: 3.125rem;
    --ee-find-lane-x: 3.875rem;
    --ee-find-lane-w: 3.625rem;
    --ee-find-text-start: 4rem;
}
#top-nav.ee-appbar .ee-appbar__search--lane { --ee-find-text-start: calc(var(--ee-find-lane-x) + var(--ee-find-lane-w) + 0.625rem); }
/* the words clear the lane whatever the bar's paint row says (geometry is the markup's) */
#top-nav.ee-appbar .ee-appbar__search.ee-appbar__search--lane .ee-appbar__search-input { padding-left: var(--ee-find-text-start); }
#top-nav.ee-appbar .ee-appbar__search-link { display: none; }
#top-nav.ee-appbar .ee-appbar__search-icon { position: absolute; left: var(--ee-find-ico-x); display: flex; pointer-events: none; }
#top-nav.ee-appbar .ee-appbar__search-input {
    /* block, not flex: ellipsis applies only to a block container's own line; a
       flex item's text runs into the padding the Ctrl K hint sits on */
    display: block;
    line-height: calc(var(--ee-toolbar-control) - 2px);
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    /* after the icon, the pipe and EEva's lane */
    padding: 0 var(--ee-space-16) 0 var(--ee-find-text-start);
    overflow: hidden;
    border: 1px solid var(--eo-tb-edge, var(--ee-border-default));
    border-radius: var(--eo-tb-ctl-radius, var(--ee-radius-md));
    color: var(--eo-tb-placeholder, var(--ee-text-muted));
    text-overflow: ellipsis;
    white-space: nowrap;
}
#top-nav.ee-appbar .ee-appbar__kbd {
    position: absolute;
    right: var(--ee-space-3);
    padding: 0 var(--ee-space-1);
    border: 1px solid var(--eo-tb-line, var(--ee-border-default));
    border-radius: var(--ee-radius-sm);
    background: transparent;
    color: var(--eo-tb-muted, var(--ee-text-muted));
    font-size: var(--ee-text-xs);
    box-shadow: none;
    pointer-events: none;
}
/* A field too narrow for its placeholder and the key beside it (the include's
   fitKey): the key goes, and its room goes back to the words. */
#top-nav.ee-appbar .ee-appbar__search--tight .ee-appbar__kbd { display: none; }
#top-nav.ee-appbar .ee-appbar__search--tight .ee-appbar__search-input { padding-right: var(--ee-space-3); }

/* The property chip. */
.ee-appbar__chip {
    display: inline-flex;
    align-items: center;
    gap: var(--ee-space-2);
    min-width: var(--ee-toolbar-control);
    max-width: var(--ee-toolbar-chip-max);
    height: var(--ee-toolbar-control);
    margin: 0;
    padding: 0 var(--ee-space-3);
    border: 1px solid var(--eo-tb-edge, var(--ee-border-default));
    border-radius: var(--eo-tb-chip-radius, var(--ee-radius-md));
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
/* The mark: a link home, as tall as a control. */
#top-nav.ee-appbar .ee-appbar__brand {
    display: inline-flex;
    align-items: center;
    height: var(--ee-toolbar-control);
    padding: 0 var(--ee-space-2);
    border-radius: var(--eo-tb-ctl-radius, var(--ee-radius-md));
}
#top-nav.ee-appbar .ee-appbar__mark { display: block; width: auto; height: 2.25rem; }
/* the mark in the bar's ink until the bar's paint gives its gradient */
.ee-appbar__mark-from,
.ee-appbar__mark-to { stop-color: currentColor; }
.ee-appbar__find-ico { display: block; width: var(--ee-lx-in-ico, 1.25rem); height: var(--ee-lx-in-ico, 1.25rem); }
/* EEva's lane (round 24): she floats free (no tile), a faint shadow (round 25), and
   sways 28px across her lane and back (round 27; 12px on a phone). Still for
   reduced motion. */
#top-nav.ee-appbar .ee-appbar__lane {
    position: absolute;
    left: var(--ee-find-lane-x);
    top: 50%;
    width: var(--ee-find-lane-w);
    height: 1.875rem;
    margin-top: -0.9375rem;
    pointer-events: none;
}
.ee-appbar__face {
    position: absolute;
    left: 0;
    top: 50%;
    display: block;
    width: 1.75rem;
    height: 1.75rem;
    margin-top: -0.875rem;
    filter: drop-shadow(0 3px 5px rgba(10, 30, 90, 0.10));
    animation: ee-find-sway 3.2s ease-in-out infinite;
}
.ee-appbar__face img { display: block; width: 100%; height: 100%; object-fit: contain; }
@keyframes ee-find-sway {
    0%, 100% { transform: translateX(0) rotate(-4deg); }
    50% { transform: translateX(1.75rem) rotate(4deg); }
}
@keyframes ee-find-sway-sm {
    0%, 100% { transform: translateX(0) rotate(-4deg); }
    50% { transform: translateX(0.75rem) rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) { .ee-appbar__face { animation: none; } }
/* the field's words turn (script part 5b): a short fade, none for reduced motion */
#top-nav.ee-appbar .ee-appbar__search-input { transition: color 0.2s ease, opacity 0.22s ease; }
#top-nav.ee-appbar .ee-appbar__search-input.is-turning { opacity: 0; }
@media (prefers-reduced-motion: reduce) { #top-nav.ee-appbar .ee-appbar__search-input { transition: none; } }
/* the pipe (round 27): 2px, the action colour at .55, visible at every width */
#top-nav.ee-appbar .ee-appbar__search-bar {
    position: absolute;
    left: var(--ee-find-bar-x);
    top: 50%;
    width: 2px;
    height: 1.5rem;
    margin-top: -0.75rem;
    border-radius: 2px;
    /* EO's ee-host-toolbar row repaints the pipe; this is the EO-down paint */
    background: var(--ee-lx-action, currentColor);
    opacity: 0.55;
    pointer-events: none;
}
.ee-appbar__chip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ee-appbar__chip-text--inactive { text-decoration: line-through; }
.ee-appbar__chevron { font-size: var(--ee-text-xs); }
/* A crowded row (the include's fold steps, after Actions): the property picker
   keeps its place as a square; a screen reader still reads its name. */
#top-nav.ee-appbar .ee-appbar__list > li.ee-appbar__item--property.ee-appbar__item--compact { flex-shrink: 0; }
#top-nav.ee-appbar .ee-appbar__item--property.ee-appbar__item--compact .ee-appbar__chip {
    justify-content: center;
    width: var(--ee-toolbar-control);
    padding: 0;
    gap: 0;
}
#top-nav.ee-appbar .ee-appbar__item--property.ee-appbar__item--compact .ee-appbar__chip-text {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}
#top-nav.ee-appbar .ee-appbar__item--property.ee-appbar__item--compact .ee-appbar__chevron { display: none; }

/* Page actions on the bar: a page's block links, route actions, utilities. */
#top-nav.ee-appbar .ee-appbar__list > li:not(.ee-appbar__own) > a,
#top-nav.ee-appbar .ee-appbar__list > li:not(.ee-appbar__own) > button {
    display: inline-flex;
    align-items: center;
    gap: var(--ee-space-2);
    height: var(--ee-toolbar-control);
    margin: 0 !important;
    padding: 0 var(--ee-space-3) !important;
    border: 1px solid var(--eo-tb-edge, var(--ee-border-default));
    border-radius: var(--eo-tb-ctl-radius, var(--ee-radius-md));
    background: transparent !important;
    color: inherit !important;
    font: inherit;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}
#top-nav.ee-appbar .ee-appbar__list > li:not(.ee-appbar__own) i,
#top-nav.ee-appbar .ee-appbar__list > li:not(.ee-appbar__own) .navigation_top_link_text { color: inherit !important; }
#top-nav.ee-appbar .ee-appbar__list > li:not(.ee-appbar__own) .navigation_top_link_text {
    max-width: 18ch;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* A page's icons carry the legacy .dynamic_link class, which main.css hides
   below 500px: in the bar and the More panel the icon always shows. */
/* Heatmap is an icon control: its label is read, not drawn. */
#top-nav.ee-appbar .ee-appbar__list > li > .hm-nav-circle {
    justify-content: center;
    width: var(--ee-toolbar-control);
    padding: 0 !important;
}
#top-nav.ee-appbar .ee-appbar__list > li > .hm-nav-circle .navigation_top_link_text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
#top-nav.ee-appbar i.dynamic_link,
.ee-appbar-actions i.dynamic_link { display: inline-block; }

/* Actions: the page's links, one click away; the bar's call to action, in the
   CTA paint of the bar's rows (--eo-tb-cta, the one green of its group). */
.ee-appbar__actions-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--ee-space-2);
    height: var(--ee-toolbar-control);
    margin: 0;
    padding: 0 var(--ee-space-3);
    border: 0;
    border-radius: var(--eo-tb-ctl-radius, var(--ee-radius-md));
    background: var(--eo-tb-cta, var(--ee-success));
    color: var(--eo-tb-on-cta, var(--ee-text-inverse));
    font: inherit;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}
.ee-appbar__actions-btn:hover { filter: brightness(1.08); }
.ee-appbar__actions-btn:focus-visible { outline: 2px solid var(--eo-tb-cta, var(--ee-success)); outline-offset: 2px; }
#top-nav.ee-appbar .ee-appbar__actions-btn i { color: inherit; }
/* A crowded row (the script's fold steps): Actions keeps its place as a square,
   its words read (name, title), its count a corner badge. */
.ee-appbar__item--compact .ee-appbar__actions-btn { justify-content: center; width: var(--ee-toolbar-control); padding: 0; }
.ee-appbar__item--compact .ee-appbar__actions-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}
.ee-appbar__item--compact .ee-appbar__actions-count {
    position: absolute; top: -0.375rem; right: -0.375rem; min-width: 1.25rem; height: 1.25rem;
    background: var(--eo-tb-surface, var(--ee-bg-card)); color: var(--eo-tb-cta, var(--ee-success));
    box-shadow: 0 0 0 2px var(--eo-tb-cta, var(--ee-success));
}
.ee-appbar__actions-count {
    display: inline-grid;
    place-items: center;
    min-width: 1.375rem;
    height: 1.375rem;
    padding: 0 var(--ee-space-1);
    border-radius: 999px;
    background: color-mix(in srgb, currentColor 22%, transparent);
    font-size: var(--ee-text-xs);
    font-weight: 700;
    line-height: 1;
}

/* ---- Menu panels (ee overlays anchored under the bar) --------------------- */
.confirm-modal-overlay.ee-appbar-overlay {
    justify-content: flex-end;
    align-items: flex-start;
    padding: calc(var(--ee-shell-header-height, var(--ee-toolbar-height)) + var(--ee-space-1)) var(--ee-space-3) var(--ee-space-3);
}
.ee-appbar-panel {
    max-width: var(--ee-toolbar-panel-width);
    max-height: calc(100vh - var(--ee-toolbar-height) - var(--ee-space-6));
}
.ee-modal-dialog-header.ee-appbar-panel__header { flex-direction: column; align-items: stretch; gap: var(--ee-space-1); }
.ee-appbar-panel__row { display: flex; align-items: center; justify-content: space-between; gap: var(--ee-space-2); }
.ee-appbar-panel__count { display: inline-flex; align-items: center; justify-content: center; min-width: var(--ee-space-6); }
.ee-modal-dialog-body.ee-appbar-panel__body { padding: var(--ee-space-2); }
.ee-appbar-panel__search { position: relative; display: flex; align-items: center; padding: var(--ee-space-2) var(--ee-space-3); }
.ee-appbar-panel__search > .fa-search { position: absolute; left: var(--ee-space-6); pointer-events: none; }
.ee-appbar-panel__search-input {
    width: 100%;
    height: var(--ee-toolbar-control);
    padding: 0 var(--ee-space-8);
    border: 1px solid var(--eo-tb-edge, var(--ee-border-default));
    border-radius: var(--eo-tb-ctl-radius, var(--ee-radius-md));
}
.ee-appbar-panel__search-clear {
    position: absolute;
    right: var(--ee-space-5);
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.ee-modal-dialog-footer.ee-appbar-panel__footer { justify-content: space-between; align-items: center; flex-wrap: nowrap; }
/* beats .top-nav-modal .nav-modal-item's margin by specificity, not !important */
.ee-appbar-overlay .nav-modal-item.ee-appbar-panel__grow { flex: 1 1 auto; margin: 0; }
.ee-appbar-panel__eyebrow { display: flex; align-items: center; gap: var(--ee-space-2); padding: var(--ee-space-1) var(--ee-space-3); font-size: var(--ee-text-xs); }
.ee-appbar-panel__empty { padding: var(--ee-space-6) var(--ee-space-4); text-align: center; }
.ee-appbar-panel__perms { margin: 0; padding: 0; list-style: none; }
.ee-appbar-panel__perms li { display: flex; align-items: center; gap: var(--ee-space-2); padding: var(--ee-space-2) var(--ee-space-1); }
.ee-appbar-panel__perm { min-width: 0; overflow-wrap: anywhere; }
.ee-appbar-overlay button.nav-modal-item {
    display: flex;
    width: 100%;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.ee-appbar-overlay .nav-modal-item { min-height: var(--ee-toolbar-control); }
.top-nav-modal .ee-nav-modal-note { display: flex; align-items: flex-start; gap: var(--ee-space-3); margin: 0; padding: var(--ee-space-3) var(--ee-space-4); }

/* Page actions folded into the More panel: full-width rows with their labels. */
.ee-appbar-actions { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.ee-appbar-actions > li { display: block; margin: 0; padding: 0; }
.ee-appbar-actions > li > a,
.ee-appbar-actions > li > button {
    display: flex !important;
    align-items: center;
    gap: var(--ee-space-3);
    width: 100% !important;
    height: auto !important;
    min-height: var(--ee-toolbar-control);
    margin: 0 !important;
    padding: var(--ee-space-2) var(--ee-space-3) !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font: inherit;
    text-align: left;
    text-decoration: none;
}
.ee-appbar-actions > li i { width: var(--ee-icon-size-md); color: inherit !important; text-align: center; }
.ee-appbar-actions > li .navigation_top_link_text {
    position: static;
    display: inline;
    width: auto;
    height: auto;
    clip: auto;
    color: inherit !important;
}

/* ---- Desktop beside the side menu: page actions show their icons only. --- */
@media (min-width: 992px) and (max-width: 1279.98px) {
    #top-nav.ee-appbar .ee-appbar__list > li:not(.ee-appbar__own) > a,
    #top-nav.ee-appbar .ee-appbar__list > li:not(.ee-appbar__own) > button {
        justify-content: center;
        width: var(--ee-toolbar-control);
        padding: 0 !important;
    }
    #top-nav.ee-appbar .ee-appbar__list > li:not(.ee-appbar__own) .navigation_top_link_text { display: none; }
}
/* ---- Tablet (up to 991px): compact bar, menu button, search as an icon. -- */
@media (max-width: 991.98px) {
    body:has(#top-nav.ee-appbar) { --ee-shell-header-height: var(--ee-toolbar-height-compact); }
    #top-nav.ee-appbar { height: var(--ee-toolbar-height-compact); padding: 0 var(--ee-space-2); }
    #top-nav.ee-appbar .ee-appbar__list { gap: var(--ee-space-1); }
    #top-nav.ee-appbar .ee-appbar__list > li.ee-appbar__item--search { flex: 1 1 auto; }
    .ee-appbar__chip { max-width: var(--ee-toolbar-chip-max-compact); }
}
/* ---- Phone (up to 640px): Help, Favorites, Permissions in the account panel. */
@media (max-width: 640px) {
    #top-nav.ee-appbar .ee-appbar__list > li.ee-appbar__item--roomy,
    #top-nav.ee-appbar .ee-appbar__list > li.ee-appbar__item--brand,
    #top-nav.ee-appbar .ee-appbar__list > li.ee-appbar__item--context,
    #top-nav.ee-appbar .ee-appbar__list > li.ee-appbar__spacer { display: none; }
    /* The chip fills the room its item grows into, still ending in an ellipsis;
       its chevron goes like the account's, and EEva's slot gives its width up
       while nothing is mounted in it, so the name keeps that room. */
    #top-nav.ee-appbar .ee-appbar__list > li.ee-appbar__eeva:empty { display: none; }
    #top-nav.ee-appbar .ee-appbar__list > li.ee-appbar__item--property { order: -15; flex: 1 1 auto; }
    .ee-appbar__chip { width: 100%; max-width: 100%; padding: 0 var(--ee-space-2); }
    .ee-appbar__chip .ee-appbar__chevron,
    .ee-appbar__account .ee-appbar__chevron { display: none; }
    .confirm-modal-overlay.ee-appbar-overlay { padding-left: var(--ee-space-2); padding-right: var(--ee-space-2); }
    .ee-appbar-panel { max-width: 100%; }
    /* the ask field stays (round 27): its words and shortcut fold away; the
       icon, the pipe and EEva in a shorter lane remain */
    #top-nav.ee-appbar .ee-appbar__search { --ee-find-lane-w: 2.75rem; }
    #top-nav.ee-appbar .ee-appbar__search-input { color: transparent; padding-right: 0; }
    #top-nav.ee-appbar .ee-appbar__kbd { display: none; }
    .ee-appbar__face { animation-name: ee-find-sway-sm; }
}
@media (max-width: 340px) {
    .ee-appbar__chip { padding: 0; justify-content: center; }
    .ee-appbar__chip .ee-appbar__chip-text { display: none; }
}
@media print { #top-nav.ee-appbar { display: none !important; } }


/* =============================================================================
   17. LAYERED LOOK — ExactEstate theme (owner 2026-11-08)
   The component redesign (FANOUT-20261108/eeva-components.html, ExactEstate theme)
   on ExactEstate's own elements: buttons, cards and stat tiles, tables, tabs,
   modals and drawers, forms, the stepper and the toast. "The shading and angles
   and layered geometry are our base": every surface is a contact shadow + an
   ambient shadow + a top highlight on a hairline tinted to the theme.
   Colour: ExactEstate's MDB indigo (main.css .background-pattern #4253bc /
   #3f51b5 / #3b4ba9; #3949ab / #303f9f / #283593), never #7986cb, no purple.
   Every value is a --ee-lx-* token (ee_tokens.json, "LAYERED LOOK").
   SCOPE: staff pages only (templates/base/base.html marks its <body>
   data-ee-surface="staff") and light only (.ee-dark keeps the rules above).
   Customer pages — resident portal, booking, e-sign, /m/, public setup — keep
   their look until the owner OKs them separately.
   Contrast (measured per token pair, see ee_tokens.json comments): body text
   >= 4.5:1 and icons / large text >= 3:1 on their real background.
   ============================================================================= */

/* ---- 17.1 Buttons: lit from above, hover lifts 1px, press sinks ----------- */
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-indigo,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-primary,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-indigo,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-primary,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-danger,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-danger {
    position: relative;
    border-radius: 12px;
    border-color: transparent !important;
    font-weight: 600;
    letter-spacing: -0.005em;
    text-transform: none;
    transition: transform 0.16s var(--ee-lx-ease), box-shadow 0.16s var(--ee-lx-ease), background 0.16s var(--ee-lx-ease);
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-indigo:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-primary:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-indigo:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-primary:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-danger:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-danger:hover:not(:disabled) { transform: translateY(-1px); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn:active:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-indigo:active:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-danger:active:not(:disabled) { transform: translateY(0); }

/* primary: the indigo gradient (white 6.57:1 or more on every stop) */
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-indigo,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-indigo-invert,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-info,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-indigo,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-primary {
    background: var(--ee-lx-primary) !important;
    color: var(--ee-text-inverse) !important;
    box-shadow: var(--ee-lx-glow), inset 0 0 0 1px var(--ee-lx-action-deep), inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(0, 0, 0, 0.12) !important;
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-indigo:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-indigo-invert:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-info:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-indigo:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-primary:hover:not(:disabled) {
    background: var(--ee-lx-primary) !important;
    color: var(--ee-text-inverse) !important;
    box-shadow: 0 12px 26px -8px rgba(63, 81, 181, 0.65), inset 0 0 0 1px var(--ee-lx-action-deep), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* secondary: a real raised button, never flat white */
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-outline-indigo,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-outline-secondary,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-outline-info,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-outline-teal,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-outline-success,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-outline-warning,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-light,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-gray,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-indigo,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-primary {
    background: var(--ee-lx-secondary) !important;
    color: var(--ee-lx-action-deep) !important;
    box-shadow: var(--ee-lx-e2), inset 0 0 0 1px var(--ee-lx-hair-strong), inset 0 1px 0 #ffffff, inset 0 -2px 0 var(--ee-lx-hair) !important;
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-outline-teal { color: #0f766e !important; }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-outline-success { color: var(--ee-lx-green-ink) !important; }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-outline-warning { color: var(--ee-lx-amber-ink) !important; }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-outline-indigo:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-outline-secondary:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-outline-info:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-outline-teal:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-outline-success:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-outline-warning:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-light:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-gray:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-indigo:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-primary:hover:not(:disabled) {
    background: var(--ee-lx-secondary) !important;
    color: var(--ee-lx-action-deep) !important;
    box-shadow: var(--ee-lx-e3), inset 0 0 0 1px var(--ee-lx-action-hi), inset 0 1px 0 #ffffff !important;
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-outline-indigo:hover:not(:disabled) i,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-outline-indigo:hover:not(:disabled) span { color: var(--ee-lx-action-deep) !important; }

/* quiet: Cancel and "Not now" are real buttons (tinted), never bare text */
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-cancel,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-ghost {
    background: var(--ee-lx-quiet) !important;
    color: var(--ee-lx-action-deep) !important;
    box-shadow: var(--ee-lx-e1), inset 0 0 0 1px var(--ee-lx-tint-line), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-cancel:hover,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-ghost:hover:not(:disabled) {
    background: var(--ee-lx-quiet) !important;
    color: var(--ee-lx-action-deep) !important;
    box-shadow: var(--ee-lx-e2), inset 0 0 0 1px var(--ee-lx-action-hi), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* go: the ONE main step of an action group is green */
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-success,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-success-dark,
body[data-ee-surface="staff"]:not(.ee-dark) .btn-ee-emerald {
    background: var(--ee-lx-go) !important;
    color: var(--ee-text-inverse) !important;
    box-shadow: var(--ee-lx-glow-go), inset 0 0 0 1px var(--ee-lx-go-edge), inset 0 1px 0 rgba(255, 255, 255, 0.26), inset 0 -1px 0 rgba(0, 0, 0, 0.12) !important;
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-success:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-success-dark:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn-ee-emerald:hover {
    background: var(--ee-lx-go) !important;
    color: var(--ee-text-inverse) !important;
    box-shadow: 0 12px 26px -8px rgba(32, 122, 60, 0.6), inset 0 0 0 1px var(--ee-lx-go-edge), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* danger (white 4.54:1 or more) and its soft outline twin */
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-danger,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-delete,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-danger,
body[data-ee-surface="staff"]:not(.ee-dark) .btn-ee-danger {
    background: var(--ee-lx-danger) !important;
    color: var(--ee-text-inverse) !important;
    box-shadow: 0 8px 20px -6px rgba(180, 35, 24, 0.5), inset 0 0 0 1px var(--ee-lx-danger-ink), inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-danger:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-delete:hover,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-danger:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn-ee-danger:hover { background: var(--ee-lx-danger) !important; color: var(--ee-text-inverse) !important; }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-outline-danger,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-danger {
    background: var(--ee-lx-danger-soft) !important;
    color: var(--ee-lx-danger-ink) !important;
    box-shadow: var(--ee-lx-e2), inset 0 0 0 1px rgba(180, 35, 24, 0.32), inset 0 1px 0 #ffffff !important;
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-outline-danger:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-danger:hover:not(:disabled) {
    background: var(--ee-lx-danger-soft) !important;
    color: var(--ee-lx-danger-ink) !important;
    box-shadow: var(--ee-lx-e3), inset 0 0 0 1px var(--ee-lx-danger-ink), inset 0 1px 0 #ffffff !important;
}

/* warning: amber with dark ink (white on amber is 2.23:1) */
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-warning,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-staff-back {
    background: var(--ee-lx-amber-tile) !important;
    color: var(--ee-lx-amber-glyph) !important;
    box-shadow: 0 8px 20px -6px rgba(243, 154, 11, 0.5), inset 0 0 0 1px rgba(138, 80, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-warning i,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-staff-back i,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-warning:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-staff-back:hover:not(:disabled) { color: var(--ee-lx-amber-glyph) !important; background: var(--ee-lx-amber-tile) !important; }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-warning i,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-staff-back i { background: none !important; }

/* teal keeps its family, darkened until white reads (4.86:1 at the middle stop) */
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-teal {
    background: linear-gradient(180deg, #13998d 0%, #0f7f77 55%, #0b6b64 100%) !important;
    color: var(--ee-text-inverse) !important;
    box-shadow: 0 8px 20px -6px rgba(15, 127, 119, 0.5), inset 0 0 0 1px #0b6b64, inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-teal:hover:not(:disabled) { background: linear-gradient(180deg, #13998d 0%, #0f7f77 55%, #0b6b64 100%) !important; }

/* glass: buttons that sit on the indigo band (hero, headers) are frosted */
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-outline-white {
    background: var(--ee-lx-glass) !important;
    color: var(--ee-text-inverse) !important;
    box-shadow: var(--ee-lx-glass-shadow), inset 0 0 0 1px var(--ee-lx-glass-edge) !important;
    -webkit-backdrop-filter: blur(12px) saturate(1.5);
    backdrop-filter: blur(12px) saturate(1.5);
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-outline-white:hover:not(:disabled) { background: var(--ee-lx-glass-hover) !important; color: var(--ee-text-inverse) !important; }

/* square icon buttons never shrink */
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-icon {
    flex-shrink: 0;
    border-radius: 12px;
    border-color: var(--ee-lx-hair-2);
    background: var(--ee-lx-secondary);
    color: var(--ee-lx-action-deep);
    box-shadow: var(--ee-lx-e1), var(--ee-lx-hi);
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-icon:hover { background: var(--ee-lx-primary); border-color: var(--ee-lx-action-deep); color: var(--ee-text-inverse); box-shadow: var(--ee-lx-glow); }

body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn:focus-visible,
body[data-ee-surface="staff"]:not(.ee-dark) .btn:focus-visible { outline: none; box-shadow: var(--ee-lx-ring) !important; }

/* ---- 17.2 Hero: the indigo band with a soft light at top left ------------- */
body[data-ee-surface="staff"]:not(.ee-dark) .ee-hero.ee-bg-indigo,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-hero {
    background: var(--ee-lx-band) !important;
    border: 0;
    border-radius: 20px;
    box-shadow: var(--ee-lx-e3), inset 0 1px 0 rgba(255, 255, 255, 0.10), inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-hero::after {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: 1px;
    padding: 0;
    border-radius: 0;
    background: var(--ee-lx-band-edge);
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-hero-pill-community,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-hero-pill-program {
    background: var(--ee-lx-glass);
    border-color: var(--ee-lx-glass-edge);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ---- 17.3 Cards: white on the canvas, the edge comes from the shadow ------ */
body[data-ee-surface="staff"]:not(.ee-dark) .ee-card:not(.ee-hero):not([class*="bg-"]):not([style*="background"]) {
    border: 1px solid var(--ee-lx-hair);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    box-shadow: var(--ee-lx-e2), var(--ee-lx-hi);
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-card.ee-card-elevated:not(.ee-hero):not([class*="bg-"]):not([style*="background"]) { box-shadow: var(--ee-lx-e3), var(--ee-lx-hi); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-card-header-indigo,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-card-header-info,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-help-header {
    position: relative;
    background: var(--ee-lx-band);
    color: var(--ee-text-inverse);
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-card-header-indigo::after,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-card-header-info::after,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-help-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--ee-lx-band-edge);
    pointer-events: none;
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-card-header-info .ee-card-title { color: var(--ee-text-inverse); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-card-header-teal { background: linear-gradient(180deg, #13998d 0%, #0f7f77 55%, #0b6b64 100%); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-card-header-success { background: var(--ee-lx-go); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-card-header-danger { background: var(--ee-lx-danger); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-card-header-warning { background: var(--ee-lx-amber-tile); color: var(--ee-lx-amber-glyph); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-card-header-warning .ee-card-title { color: var(--ee-lx-amber-glyph); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-card-footer {
    background: var(--ee-lx-surface-2);
    border-top: 1px solid var(--ee-lx-hair);
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-info-card,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-help-card {
    border: 1px solid var(--ee-lx-hair);
    border-radius: 18px;
    box-shadow: var(--ee-lx-e2), var(--ee-lx-hi);
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-info-card::before { border-radius: 18px 18px 0 0; background: linear-gradient(90deg, var(--ee-lx-action-hi), var(--ee-lx-action-deep)); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-info-card-icon,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-help-icon {
    border-radius: 10px;
    background: var(--ee-lx-blue-tile);
    color: var(--ee-text-inverse);
    box-shadow: 0 6px 12px -6px rgba(48, 63, 159, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-help-header .ee-help-icon { background: var(--ee-lx-glass); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 0 0 1px var(--ee-lx-glass-edge); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-help-item {
    border-color: var(--ee-lx-hair);
    background: linear-gradient(180deg, var(--ee-lx-surface-2), var(--ee-lx-surface-3));
}

/* ---- 17.4 Stat tiles: icon tile, tone top border, tone wash, tone number -- */
body[data-ee-surface="staff"]:not(.ee-dark) .ee-status-card {
    --lx-tone-hi: var(--ee-lx-action-hi);
    --lx-tone: var(--ee-lx-action-lo);
    --lx-tone-tile: var(--ee-lx-blue-tile);
    --lx-tone-glyph: var(--ee-text-inverse);
    --lx-tone-ink: var(--ee-lx-action-deep);
    --lx-tone-wash: var(--ee-lx-blue-wash);
    --lx-tone-base: var(--ee-lx-blue-base);
    border: 1px solid var(--ee-lx-hair);
    border-radius: 18px;
    background: radial-gradient(150px 95px at 100% 0%, var(--lx-tone-wash), transparent 72%), linear-gradient(180deg, #ffffff 0%, var(--lx-tone-base) 100%) !important;
    box-shadow: var(--ee-lx-e2), var(--ee-lx-hi);
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-status-card::before { height: 3px; background: linear-gradient(90deg, var(--lx-tone-hi), var(--lx-tone)) !important; }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-status-card:hover { transform: translateY(-3px); box-shadow: var(--ee-lx-e3), var(--ee-lx-hi); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-status-card.active { box-shadow: 0 0 0 3px var(--lx-tone-wash), var(--ee-lx-e2), var(--ee-lx-hi); border-color: var(--lx-tone); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-status-card-success,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-status-card-approved {
    --lx-tone-hi: var(--ee-lx-green-hi);
    --lx-tone: var(--ee-lx-green);
    --lx-tone-tile: var(--ee-lx-green-tile);
    --lx-tone-ink: var(--ee-lx-green-ink);
    --lx-tone-wash: var(--ee-lx-green-wash);
    --lx-tone-base: var(--ee-lx-green-base);
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-status-card-pending,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-status-card-warning {
    --lx-tone-hi: var(--ee-lx-amber-hi);
    --lx-tone: var(--ee-lx-amber);
    --lx-tone-tile: var(--ee-lx-amber-tile);
    --lx-tone-glyph: var(--ee-lx-amber-glyph);
    --lx-tone-ink: var(--ee-lx-amber-ink);
    --lx-tone-wash: var(--ee-lx-amber-wash);
    --lx-tone-base: var(--ee-lx-amber-base);
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-status-card-danger,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-status-card-denied {
    --lx-tone-hi: var(--ee-lx-red-hi);
    --lx-tone: var(--ee-lx-red);
    --lx-tone-tile: var(--ee-lx-red-tile);
    --lx-tone-ink: var(--ee-lx-red-ink);
    --lx-tone-wash: var(--ee-lx-red-wash);
    --lx-tone-base: var(--ee-lx-red-base);
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-status-card-icon {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: var(--lx-tone-tile) !important;
    color: var(--lx-tone-glyph);
    box-shadow: 0 8px 16px -6px var(--lx-tone-wash), 0 6px 14px -6px rgba(26, 35, 126, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-status-card-icon i { color: inherit; }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-status-card-label { color: var(--ee-lx-ink-quiet); letter-spacing: 0.08em; }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-status-card-count,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-status-card-value { color: var(--lx-tone-ink); }

body[data-ee-surface="staff"]:not(.ee-dark) .ee-stat-card {
    border: 1px solid var(--ee-lx-hair);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, var(--ee-lx-surface-2) 100%);
    box-shadow: var(--ee-lx-e2), var(--ee-lx-hi);
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-stat-card:hover { box-shadow: var(--ee-lx-e3), var(--ee-lx-hi); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-stat-card.active { border-color: var(--ee-lx-action); background: linear-gradient(180deg, var(--ee-lx-tint-2), var(--ee-lx-tint)); box-shadow: 0 0 0 3px var(--ee-lx-blue-wash), var(--ee-lx-e2); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-stat-icon { border-radius: 12px; color: var(--ee-text-inverse); border: 1px solid rgba(255, 255, 255, 0.35); box-shadow: 0 6px 12px -6px rgba(26, 35, 126, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-stat-icon.indigo,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-stat-icon.info { background: var(--ee-lx-blue-tile); color: var(--ee-text-inverse); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-stat-icon.teal { background: linear-gradient(160deg, #13998d, #0b6b64); color: var(--ee-text-inverse); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-stat-icon.success { background: var(--ee-lx-green-tile); color: var(--ee-text-inverse); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-stat-icon.warning { background: var(--ee-lx-amber-tile); color: var(--ee-lx-amber-glyph); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-stat-icon.danger { background: var(--ee-lx-red-tile); color: var(--ee-text-inverse); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-stat-value { color: var(--ee-lx-action-deep); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-stat-value-success { color: var(--ee-lx-green-ink); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-stat-value-warning { color: var(--ee-lx-amber-ink); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-stat-value-danger { color: var(--ee-lx-red-ink); }

/* ---- 17.5 Tables: a lit header, zebra rows, hairlines, tabular numbers ---- */
body[data-ee-surface="staff"]:not(.ee-dark) .ee-table-wrapper {
    border: 1px solid var(--ee-lx-hair);
    border-radius: 18px;
    background: var(--ee-lx-surface);
    box-shadow: var(--ee-lx-e2);
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-table th {
    color: var(--ee-lx-action-deep);
    background: linear-gradient(180deg, var(--ee-lx-surface-2), var(--ee-lx-surface-3));
    border-bottom: 1px solid var(--ee-lx-hair-2);
    letter-spacing: 0.06em;
    font-weight: 700;
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-table-wrapper .ee-table th:first-child { border-radius: 17px 0 0 0; }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-table-wrapper .ee-table th:last-child { border-radius: 0 17px 0 0; }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-table td { border-bottom: 1px solid var(--ee-lx-hair); font-variant-numeric: tabular-nums; }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-table tbody tr:nth-child(even) { background-color: var(--ee-lx-surface-2); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-table tbody tr:hover,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-table-striped tbody tr:nth-child(odd):hover { background-color: var(--ee-lx-tint-2); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-table-striped tbody tr:nth-child(odd) { background-color: transparent; }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-table tbody tr.selected,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-table tbody tr[aria-current="true"] {
    background: linear-gradient(180deg, var(--ee-lx-tint-2), var(--ee-lx-tint));
    box-shadow: inset 3px 0 0 var(--ee-lx-action);
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-table-footer td { background: linear-gradient(180deg, var(--ee-lx-surface-2), var(--ee-lx-surface-3)); color: var(--ee-lx-action-deep); }
@media (max-width: 575.98px) {
    body[data-ee-surface="staff"]:not(.ee-dark) .ee-table-stack tr {
        border: 1px solid var(--ee-lx-hair);
        border-radius: 14px;
        box-shadow: var(--ee-lx-e1), var(--ee-lx-hi);
    }
    body[data-ee-surface="staff"]:not(.ee-dark) .ee-table-stack td[data-label]::before { color: var(--ee-lx-ink-quiet); }
}

/* ---- 17.6 Tabs: a quiet | (1px, the middle 40%) between every pair; the row scrolls, never wraps */
body[data-ee-surface="staff"]:not(.ee-dark) .ee-tabs,
body[data-ee-surface="staff"]:not(.ee-dark) .boarding-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    background: transparent;
    border-bottom: 1px solid var(--ee-lx-hair-2);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
    padding-inline: 6px;
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-tabs::-webkit-scrollbar,
body[data-ee-surface="staff"]:not(.ee-dark) .boarding-tabs::-webkit-scrollbar { display: none; }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-tabs > .ee-tab,
body[data-ee-surface="staff"]:not(.ee-dark) .boarding-tabs > .nav-item {
    position: relative;
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-tabs .ee-tab,
body[data-ee-surface="staff"]:not(.ee-dark) .boarding-tabs .nav-link {
    color: var(--ee-lx-ink-quiet);
    font-weight: 600;
    border-bottom: 0;
    margin-bottom: 0;
    box-shadow: inset 0 -3px 0 transparent;
    transition: color 0.18s var(--ee-lx-ease), box-shadow 0.18s var(--ee-lx-ease), background 0.18s var(--ee-lx-ease);
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-tabs .ee-tab:hover,
body[data-ee-surface="staff"]:not(.ee-dark) .boarding-tabs .nav-link:hover { color: var(--ee-lx-action-deep); background: var(--ee-lx-tint-2); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-tabs .ee-tab.active,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-tabs .ee-tab.ee-tab-active,
body[data-ee-surface="staff"]:not(.ee-dark) .boarding-tabs .nav-link.active {
    color: var(--ee-lx-action-deep);
    background: transparent;
    box-shadow: inset 0 -3px 0 var(--ee-lx-action);
}
body[data-ee-surface="staff"]:not(.ee-dark) .boarding-tabs .nav-link.tab-has-error { color: var(--ee-lx-danger-ink); box-shadow: inset 0 -3px 0 var(--ee-lx-danger-ink); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-tabs > .ee-tab + .ee-tab::before,
body[data-ee-surface="staff"]:not(.ee-dark) .boarding-tabs > .nav-item + .nav-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 30%;
    bottom: 30%;
    width: 1px;
    background: var(--ee-lx-hair-strong);
    pointer-events: none;
}
/* segmented: the selected option lifts out of a recessed track */
body[data-ee-surface="staff"]:not(.ee-dark) .ee-tabs.ee-tabs-pills {
    gap: 4px;
    max-width: 100%;
    padding: 5px;
    border: 1px solid var(--ee-lx-hair);
    border-radius: 16px;
    background: var(--ee-lx-surface-3);
    box-shadow: inset 0 1px 2px rgba(26, 35, 126, 0.06);
    -webkit-mask-image: none;
    mask-image: none;
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-tabs-pills > .ee-tab + .ee-tab::before { left: -3px; }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-tabs.ee-tabs-pills .ee-tab { border-radius: 12px; box-shadow: none; }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-tabs.ee-tabs-pills .ee-tab.active {
    background: #ffffff;
    color: var(--ee-lx-action-deep);
    box-shadow: var(--ee-lx-e2), var(--ee-lx-hi);
}

/* ---- 17.7 Modals and drawers: the band header, glass close, floating ------ */
body[data-ee-surface="staff"]:not(.ee-dark) .ee-modal .modal-content,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-item-modal .modal-content,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-modal-dialog,
body[data-ee-surface="staff"]:not(.ee-dark) .confirm-modal,
body[data-ee-surface="staff"]:not(.ee-dark) .confirm-modal-dialog {
    border-radius: 22px;
    box-shadow: var(--ee-lx-e4);
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-modal-header:not(.ee-modal-header-success):not(.ee-modal-header-warning):not(.ee-modal-header-danger):not(.ee-modal-header-info):not(.ee-modal-header-teal),
body[data-ee-surface="staff"]:not(.ee-dark) .ee-modal-dialog-header,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-item-modal-header.ee-status-default,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-item-modal-header.ee-status-open,
body[data-ee-surface="staff"]:not(.ee-dark) .confirm-modal-header:not(.teal):not(.danger):not(.warning),
body[data-ee-surface="staff"]:not(.ee-dark) .ee-drawer-header {
    position: relative;
    background: var(--ee-lx-band);
    color: var(--ee-text-inverse);
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-modal-header::after,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-modal-dialog-header::after,
body[data-ee-surface="staff"]:not(.ee-dark) .confirm-modal-header::after,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-drawer-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--ee-lx-band-edge);
    pointer-events: none;
}
body[data-ee-surface="staff"]:not(.ee-dark) .confirm-modal-header.danger { background: var(--ee-lx-danger); }
body[data-ee-surface="staff"]:not(.ee-dark) .confirm-modal-header.teal { background: linear-gradient(180deg, #13998d 0%, #0f7f77 55%, #0b6b64 100%); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-modal-btn-close,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-modal-dialog-header .ee-btn-close,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-modal-dialog-header .ee-btn-close.ee-btn-close-muted,
body[data-ee-surface="staff"]:not(.ee-dark) .confirm-modal-header .confirm-modal-close,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-drawer-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid var(--ee-lx-glass-edge);
    background: var(--ee-lx-glass);
    color: var(--ee-text-inverse);
    box-shadow: var(--ee-lx-glass-shadow);
    -webkit-backdrop-filter: blur(12px) saturate(1.5);
    backdrop-filter: blur(12px) saturate(1.5);
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-modal-btn-close:hover,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-modal-dialog-header .ee-btn-close:hover,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-modal-dialog-header .ee-btn-close.ee-btn-close-muted:hover,
body[data-ee-surface="staff"]:not(.ee-dark) .confirm-modal-header .confirm-modal-close:hover,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-drawer-close:hover { background: var(--ee-lx-glass-hover); color: var(--ee-text-inverse); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-modal-body { background: var(--ee-lx-surface-2); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-modal-footer,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-modal-dialog-footer,
body[data-ee-surface="staff"]:not(.ee-dark) .confirm-modal-footer {
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid var(--ee-lx-hair);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
body[data-ee-surface="staff"]:not(.ee-dark) .confirm-modal-overlay,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-drawer-overlay { background: var(--ee-lx-scrim); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }

/* the drawer floats 12px in from the edge with rounded corners */
body[data-ee-surface="staff"]:not(.ee-dark) .ee-drawer {
    top: 12px;
    bottom: 12px;
    left: 12px;
    width: calc(85% - 12px);
    border-radius: 22px;
    background: var(--ee-lx-surface-2);
    box-shadow: var(--ee-lx-e4);
    transform: translateX(calc(-100% - 24px));
    transition: transform 0.3s var(--ee-lx-ease);
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-drawer-overlay.show .ee-drawer { transform: translateX(0); }

/* a scrolling body keeps its scrollbar visible (thin, indigo-tinted, gutter
   reserved) and shows soft shades only where there is more to scroll */
body[data-ee-surface="staff"]:not(.ee-dark) .ee-drawer-body,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-modal-dialog-body,
body[data-ee-surface="staff"]:not(.ee-dark) .confirm-modal-body {
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--ee-lx-scroll-thumb) transparent;
    background:
        linear-gradient(var(--lx-scroll-bg, var(--ee-lx-surface)) 30%, transparent) center top / 100% 28px no-repeat local,
        linear-gradient(transparent, var(--lx-scroll-bg, var(--ee-lx-surface)) 70%) center bottom / 100% 28px no-repeat local,
        radial-gradient(farthest-side at 50% 0, var(--ee-lx-scroll-shade), transparent) center top / 100% 12px no-repeat scroll,
        radial-gradient(farthest-side at 50% 100%, var(--ee-lx-scroll-shade), transparent) center bottom / 100% 12px no-repeat scroll,
        var(--lx-scroll-bg, var(--ee-lx-surface));
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-drawer-body { --lx-scroll-bg: var(--ee-lx-surface-2); }
/* the body's own ee-p-4 padding (the base drawer rule above zeroes it by order) */
body[data-ee-surface="staff"]:not(.ee-dark) .ee-drawer-body.ee-p-4 { padding: var(--ee-space-4); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-drawer-body::-webkit-scrollbar,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-modal-dialog-body::-webkit-scrollbar,
body[data-ee-surface="staff"]:not(.ee-dark) .confirm-modal-body::-webkit-scrollbar { width: 10px; }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-drawer-body::-webkit-scrollbar-track,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-modal-dialog-body::-webkit-scrollbar-track,
body[data-ee-surface="staff"]:not(.ee-dark) .confirm-modal-body::-webkit-scrollbar-track { background: var(--ee-lx-scroll-track); border-radius: 8px; }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-drawer-body::-webkit-scrollbar-thumb,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-modal-dialog-body::-webkit-scrollbar-thumb,
body[data-ee-surface="staff"]:not(.ee-dark) .confirm-modal-body::-webkit-scrollbar-thumb {
    background: var(--ee-lx-scroll-thumb);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 8px;
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-drawer-body::-webkit-scrollbar-thumb:hover,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-modal-dialog-body::-webkit-scrollbar-thumb:hover,
body[data-ee-surface="staff"]:not(.ee-dark) .confirm-modal-body::-webkit-scrollbar-thumb:hover { background-color: var(--ee-lx-scroll-thumb-hover); }

/* ---- 17.8 Forms: fields sit slightly inset; focus is a soft indigo ring ---- */
body[data-ee-surface="staff"]:not(.ee-dark) .ee-input,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-select,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-textarea,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-form-control {
    border: 1px solid var(--ee-lx-hair-2);
    border-radius: 12px;
    background-color: var(--ee-lx-surface);
    box-shadow: inset 0 1px 2px rgba(26, 35, 126, 0.05), var(--ee-lx-hi);
    transition: border-color 0.15s, box-shadow 0.15s;
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-input:hover,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-select:hover,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-textarea:hover,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-form-control:hover { border-color: var(--ee-lx-hair-strong); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-input:focus,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-select:focus,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-textarea:focus,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-form-control:focus {
    border-color: var(--ee-lx-action-hi);
    box-shadow: var(--ee-lx-ring), inset 0 1px 2px rgba(26, 35, 126, 0.04);
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-input::placeholder,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-textarea::placeholder { color: var(--ee-text-muted); }
body[data-ee-surface="staff"]:not(.ee-dark) .md-form input:not([type]):focus:not([readonly]),
body[data-ee-surface="staff"]:not(.ee-dark) .md-form input[type]:focus:not([readonly]),
body[data-ee-surface="staff"]:not(.ee-dark) .md-form textarea.md-textarea:focus:not([readonly]) {
    border-bottom-color: var(--ee-lx-action) !important;
    box-shadow: 0 1px 0 0 var(--ee-lx-action) !important;
}
body[data-ee-surface="staff"]:not(.ee-dark) .md-form input:focus:not([readonly]) + label,
body[data-ee-surface="staff"]:not(.ee-dark) .md-form textarea:focus:not([readonly]) + label { color: var(--ee-lx-action) !important; }
body[data-ee-surface="staff"]:not(.ee-dark) .select2-container--open > .selection > .select2-selection.select2-selection--single,
body[data-ee-surface="staff"]:not(.ee-dark) .select2-container--open > .selection > .select2-selection.select2-selection--multiple {
    border-bottom-color: var(--ee-lx-action) !important;
    box-shadow: 0 1px 0 0 var(--ee-lx-action) !important;
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-toggle input:checked + .ee-toggle-slider { background: var(--ee-lx-primary); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15); }

/* ---- 17.9 The stepper: a recessed track; the current step lifts out ------- */
body[data-ee-surface="staff"]:not(.ee-dark) .wiz-stepper:not(.wiz-stepper--on-band) {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    gap: 4px;
    padding: 6px;
    border: 1px solid var(--ee-lx-hair);
    border-radius: 18px;
    background: var(--ee-lx-surface-3);
    box-shadow: inset 0 1px 2px rgba(26, 35, 126, 0.06), var(--ee-lx-hi);
}
body[data-ee-surface="staff"]:not(.ee-dark) .wiz-stepper::-webkit-scrollbar { display: none; }
body[data-ee-surface="staff"]:not(.ee-dark) .wiz-stepper:not(.wiz-stepper--on-band) .wiz-step {
    flex: 0 0 auto;
    min-height: 44px;
    white-space: nowrap;
    scroll-snap-align: start;
    padding: 6px 14px 6px 8px;
    border-radius: 13px;
    font-size: var(--ee-text-sm);
    font-weight: 600;
    color: var(--ee-lx-ink-quiet);
}
body[data-ee-surface="staff"]:not(.ee-dark) .wiz-stepper:not(.wiz-stepper--on-band) .wiz-step.active {
    background: #ffffff;
    color: var(--ee-lx-action-deep);
    box-shadow: var(--ee-lx-e2), var(--ee-lx-hi);
}
body[data-ee-surface="staff"]:not(.ee-dark) .wiz-stepper:not(.wiz-stepper--on-band) .wiz-step.completed { color: var(--ee-lx-green-ink); }
body[data-ee-surface="staff"]:not(.ee-dark) .wiz-stepper:not(.wiz-stepper--on-band) .wiz-step.reachable:hover,
body[data-ee-surface="staff"]:not(.ee-dark) .wiz-stepper:not(.wiz-stepper--on-band) .wiz-step.completed:hover { background: rgba(255, 255, 255, 0.6); opacity: 1; }
body[data-ee-surface="staff"]:not(.ee-dark) .wiz-step-num {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border: 1px solid var(--ee-lx-hair-2);
    background: linear-gradient(180deg, #ffffff, var(--ee-lx-surface-3));
    color: var(--ee-lx-ink-quiet);
    box-shadow: var(--ee-lx-e1), var(--ee-lx-hi);
    font-size: 0.75rem;
}
body[data-ee-surface="staff"]:not(.ee-dark) .wiz-step.active .wiz-step-num {
    border-color: var(--ee-lx-action-deep);
    background: var(--ee-lx-primary);
    color: var(--ee-text-inverse);
    box-shadow: var(--ee-lx-glow), 0 0 0 3px var(--ee-lx-blue-wash), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
/* done = green with a white ring (owner: badges green with a white ring) */
body[data-ee-surface="staff"]:not(.ee-dark) .wiz-step.completed .wiz-step-num {
    border: 2px solid #ffffff;
    background: var(--ee-lx-go);
    color: var(--ee-text-inverse);
    box-shadow: var(--ee-lx-glow-go);
}
body[data-ee-surface="staff"]:not(.ee-dark) .wiz-stepper:not(.wiz-stepper--on-band) .wiz-step-connector {
    display: block;
    flex: 0 0 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ee-lx-hair-strong);
}
body[data-ee-surface="staff"]:not(.ee-dark) .wiz-stepper .wiz-step.completed + .wiz-step-connector { background: linear-gradient(90deg, var(--ee-lx-green), var(--ee-lx-green-hi)); }
/* on the band: frosted glass steps */
body[data-ee-surface="staff"]:not(.ee-dark) .wiz-stepper--on-band .wiz-step { border-radius: 999px; }
body[data-ee-surface="staff"]:not(.ee-dark) .wiz-stepper--on-band .wiz-step.active {
    background: var(--ee-lx-glass);
    box-shadow: var(--ee-lx-glass-shadow), inset 0 0 0 1px var(--ee-lx-glass-edge);
}
body[data-ee-surface="staff"]:not(.ee-dark) .wiz-stepper--on-band .wiz-step-num { background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.6); color: var(--ee-text-inverse); box-shadow: none; }
body[data-ee-surface="staff"]:not(.ee-dark) .wiz-stepper--on-band .wiz-step.active .wiz-step-num { background: #ffffff; border-color: #ffffff; color: var(--ee-lx-action-deep); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22); }
body[data-ee-surface="staff"]:not(.ee-dark) .wiz-stepper--on-band .wiz-step.completed .wiz-step-num { border: 2px solid #ffffff; background: var(--ee-lx-go); color: var(--ee-text-inverse); box-shadow: var(--ee-lx-glow-go); }
body[data-ee-surface="staff"]:not(.ee-dark) .wiz-section-num { box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.35), inset 0 -1px 0 var(--ee-lx-hair-2); color: var(--ee-lx-action-deep); }

/* ---- 17.10 Toast (component redesign v18, round 15) ----------------------
   HEADER ROW: the tone disc · the title · the X, on one centre line (the X sits in
   the row). A frosted hairline, indented under the title. BODY ROW: the message
   (indented under the title), then the actions Undo · Preview, both plain glass.
   A toast with no title carries its message in the header row (.ee-toast--solo)
   and draws no hairline or body until it has actions. Narrow: the body stacks and
   the actions are an equal pair. */
body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast {
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px !important;
    max-width: 580px !important;
    padding: 12px 12px 14px 14px !important;
    border-radius: 18px !important;
    border: 0 !important;
    color: var(--ee-text-inverse) !important;
    background: var(--ee-lx-toast) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--ee-lx-e4), inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}
body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast.ee-toast--solo { padding-bottom: 12px !important; }
body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast .ee-toast-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast [data-notify="icon"] {
    display: grid !important;
    place-items: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 0.85rem !important;
    color: var(--ee-text-inverse);
    background: var(--ee-lx-blue-tile);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast.alert-success [data-notify="icon"] { background: var(--ee-lx-go); box-shadow: var(--ee-lx-glow-go); }
body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast.alert-danger [data-notify="icon"] { background: var(--ee-lx-red-tile); }
body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast.alert-warning [data-notify="icon"] { background: var(--ee-lx-amber-tile); color: var(--ee-lx-amber-glyph); }
/* plain glyphs inside the disc (the circled variants would draw a ring in a ring) */
body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast [data-notify="icon"].fa-check-circle::before { content: "\f00c"; }
body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast [data-notify="icon"].fa-info-circle::before { content: "\f129"; }
body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast [data-notify="icon"].fa-exclamation-triangle::before { content: "\f12a"; }
body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast [data-notify="icon"].fa-times-circle::before { content: "\f00d"; }
body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast .ee-toast-title {
    flex: 1;
    min-width: 0;
    font-size: 14.5px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--ee-text-inverse) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* a message alone in the header may take two lines; it is never cut */
body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast.ee-toast--solo .ee-toast-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}
/* the X: in the header row, a 28px round glass button */
body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast .close {
    position: static !important;
    transform: none !important;
    flex-shrink: 0;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: grid !important;
    place-items: center;
    opacity: 1 !important;
    font-size: 0.75rem !important;
    color: var(--ee-text-inverse) !important;
    border: 1px solid rgba(255, 255, 255, 0.34) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 10px -6px rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast .close:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.12)) !important; }
body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast .close:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
/* the frosted hairline, indented under the title (30px disc + 12px gap) */
body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast .ee-toast-hr {
    display: block;
    height: 1px;
    margin-left: 42px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.34), rgba(197, 202, 233, 0.24) 70%, transparent);
}
body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast .ee-toast-body {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding-left: 42px;
}
/* a solo toast draws no hairline or body until it carries actions */
body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast.ee-toast--solo:not(.ee-toast--guided):not(:has(.ee-toast-acts:not(:empty))) .ee-toast-hr,
body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast.ee-toast--solo:not(.ee-toast--guided):not(:has(.ee-toast-acts:not(:empty))) .ee-toast-body { display: none; }
/* a guided error (apps/utils/error_guidance.py): the fix fills the body row's first line,
   "Go to <screen>" and Ask EEva follow as the row's actions */
body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast.ee-toast--guided .ee-toast-body { flex-wrap: wrap; }
body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast.ee-toast--guided .ee-toast-fix { flex-basis: 100%; }
body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast .ee-toast-meta {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--ee-lx-on-band-quiet) !important;
    overflow-wrap: anywhere;
}
body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast .ee-toast-acts:not(:empty) {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
/* Undo and Preview: 32px plain glass buttons (neither is tinted) */
body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast .ee-toast-acts > a,
body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast .ee-toast-acts > button {
    height: 32px;
    padding: 0 13px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    color: var(--ee-text-inverse) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)) !important;
    border: 1px solid rgba(255, 255, 255, 0.34) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 10px -6px rgba(0, 0, 0, 0.5) !important;
}
body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast .ee-toast-acts > a:hover,
body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast .ee-toast-acts > button:hover { filter: brightness(1.12); }
@media (max-width: 576px) {
    body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast .ee-toast-body { flex-direction: column; align-items: stretch; gap: 12px; padding-left: 0; }
    body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast .ee-toast-hr { margin-left: 0; }
    body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast .ee-toast-acts:not(:empty) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-left: 0; }
}
@media (max-width: 340px) {
    body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast { padding: 12px 10px !important; }
    body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast .ee-toast-head { gap: 8px; }
    body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast [data-notify="icon"] { width: 26px; height: 26px; font-size: 0.75rem !important; }
    body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast .ee-toast-title { font-size: 12.5px; }
    body[data-ee-surface="staff"]:not(.ee-dark) [data-notify="container"].ee-toast .close { width: 24px !important; height: 24px !important; }
}

/* ---- 17.10b Error guidance under a field error ---------------------------
   (templates/includes/error_guidance.html): the fix one size down in the secondary
   text colour, then "Go to <screen>" and Ask EEva as links in the action colour. */
.ee-error-guidance {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
    margin: 2px 0 4px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--ee-text-secondary, #475569);
}
.ee-error-guidance-go,
.ee-error-guidance-ask {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    color: var(--ee-indigo, #3f51b5);
    text-decoration: underline;
    cursor: pointer;
}
.ee-error-guidance-ask[hidden] { display: none; }

/* ---- 17.11 Input icons: ONE rule (SSOT) ----------------------------------
   Every leading field icon is --ee-lx-in-ico (20px) in the theme's action colour
   (--ee-lx-in-ico-c, EE #3f51b5); no component sizes or tints its own. */
body[data-ee-surface="staff"]:not(.ee-dark) .ee-search-input i,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-search-wrap .ee-search-icon,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-search-wrapper .ee-search-icon,
body[data-ee-surface="staff"]:not(.ee-dark) .light-search .light-search-icon,
body[data-ee-surface="staff"]:not(.ee-dark) .modal-options-search .search-icon,
body[data-ee-surface="staff"]:not(.ee-dark) .md-form .prefix,
body[data-ee-surface="staff"]:not(.ee-dark) .md-form .prefix.active,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-input-group-prepend i,
body[data-ee-surface="staff"]:not(.ee-dark) #top-nav.ee-appbar .ee-appbar__search-icon {
    font-size: var(--ee-lx-in-ico) !important;
    line-height: 1;
    color: var(--ee-lx-in-ico-c) !important;
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-search-input svg,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-search-wrap .ee-search-icon svg,
body[data-ee-surface="staff"]:not(.ee-dark) #top-nav.ee-appbar .ee-appbar__search-icon svg {
    width: var(--ee-lx-in-ico) !important;
    height: var(--ee-lx-in-ico) !important;
}

/* ---- 17.12 THE count badge: one everywhere (round 16) --------------------
   A green badge (#43b864 -> #27803f) with a 2px white ring that carries the
   COUNT of unseen items and is hidden at 0. The sparkle is EEva / AI only, so
   the badge has no glyph. Markup: <span class="ee-new-mark" aria-label="3 new">3</span>,
   a corner badge on a positioned control with .ee-new-mark--corner. With no count
   (one unread item, e.g. a notice card) it is a plain green dot; "0" hides it.
   The page's "new here" pings (Help, the action menu, a header's options) wear
   the dot too, still and without the pulse (staff pages; the first selector is
   unscoped, a new name, so no customer page changes). */
.ee-new-mark,
body[data-ee-surface="staff"]:not(.ee-dark) .help-highlight::after,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-action-dropdown-toggle.action-highlight::after,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-header-options.action-highlight::after {
    content: "";
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    box-sizing: border-box;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 0;
    border-radius: 999px;
    font-family: var(--ee-font-family);
    font-weight: 800;
    font-style: normal;
    font-size: 10.5px;
    font-variant-numeric: tabular-nums;
    line-height: 18px;
    letter-spacing: 0;
    color: var(--ee-text-inverse);
    background: var(--ee-lx-new);
    box-shadow: var(--ee-lx-new-glow);
    animation: none;
    vertical-align: middle;
}
/* no count: a 10px dot; "0": hidden */
.ee-new-mark:empty,
body[data-ee-surface="staff"]:not(.ee-dark) .help-highlight::after,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-action-dropdown-toggle.action-highlight::after,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-header-options.action-highlight::after { min-width: 10px; width: 10px; height: 10px; padding: 0; }
.ee-new-mark[data-count="0"] { display: none; }
.ee-new-mark--corner,
body[data-ee-surface="staff"]:not(.ee-dark) .help-highlight::after,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-action-dropdown-toggle.action-highlight::after,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-header-options.action-highlight::after {
    position: absolute;
    top: -7px;
    right: -7px;
    pointer-events: none;
}
.ee-new-mark--corner:empty,
body[data-ee-surface="staff"]:not(.ee-dark) .help-highlight::after,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-action-dropdown-toggle.action-highlight::after,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-header-options.action-highlight::after { top: -3px; right: -3px; }
body[data-ee-surface="staff"]:not(.ee-dark) .help-highlight,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-action-dropdown-toggle.action-highlight,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn-header-options.action-highlight { animation: none; }

/* ---- 17.13 Drawer words: title 18 > summary 16 > context line as an eyebrow -- */
body[data-ee-surface="staff"]:not(.ee-dark) .ee-drawer-header h4,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-drawer-header h5,
body[data-ee-surface="staff"]:not(.ee-dark) .ee-drawer-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-drawer-summary { margin: 0 0 var(--ee-space-3); font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ee-lx-ink); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-drawer-eyebrow {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ee-lx-ink-quiet);
    margin-bottom: 4px;
}

/* ---- 17.14 Bootstrap / MDB primitives on staff pages (lane X7, owner 2026-11-08:
   "wire our DB saved components in every place ... all cards, layouts and colors
   for every single element and every drawer on each hub, tabs and subtabs. Lists,
   wizards ... reports hub with rendered reports").
   The hubs still draw most surfaces with Bootstrap 4 + MDB classes, not .ee-*:
   .card (196 staff templates), .table (446; every DataTable list through
   includes/datatables/datatable_clientside_multiple.html and every rendered
   report through reports/includes/universal_table_for_report.html), .modal-content
   (125), .list-group (119), .ee-panel (31), .nav-tabs, .pagination. This block
   wires them to the same --ee-lx-* tokens as 17.1-17.13, so no page needs a
   one-off. Explicit colour stays the page's: anything carrying a bg-* / MDB colour
   class or an inline background is skipped. */

/* Cards: layered, rounded, hairline; a quiet lit header when the page gives none. */
body[data-ee-surface="staff"]:not(.ee-dark) .card:not([class*="bg-"]):not([style*="background"]):not(.card-cascade):not(.ee-hero):not(.ee-card):not(.widget_card) {
    border: 1px solid var(--ee-lx-hair);
    border-radius: 16px;
    background-color: var(--ee-lx-surface);
    box-shadow: var(--ee-lx-e2);
}
body[data-ee-surface="staff"]:not(.ee-dark) .card:not(.card-cascade):not(.ee-card) > .card-header:first-child { border-radius: 15px 15px 0 0; }
body[data-ee-surface="staff"]:not(.ee-dark) .card:not(.card-cascade):not(.ee-card) > .card-footer:last-child { border-radius: 0 0 15px 15px; }
/* A neutral gradient must not cover explicit header colours: background-color
   !important does not suppress a background image. MDB's palette shades
   (users/property_permissions.html alternates `indigo` / `cyan darken-3` under
   white words) and MDB's .white-text count as explicit too: without them the
   cyan header went white words on this near-white gradient (C1 2026-11-17). */
body[data-ee-surface="staff"]:not(.ee-dark) .card:not(.card-cascade):not(.ee-card) > .card-header:not(.indigo):not([class*="ee-card-header-"]):not([class*="bg-"]):not([class*="-color"]):not([class*="text-white"]):not([class*="white-text"]):not([class*="darken-"]):not([class*="lighten-"]):not([class*="accent-"]):not([style*="background"]) {
    background: linear-gradient(180deg, var(--ee-lx-surface) 0%, var(--ee-lx-surface-2) 100%);
    border-bottom: 1px solid var(--ee-lx-hair);
    color: var(--ee-lx-ink);
    font-weight: 600;
}
body[data-ee-surface="staff"]:not(.ee-dark) .card:not(.card-cascade):not(.ee-card) > .card-footer:not([class*="bg-"]):not([style*="background"]) {
    background: var(--ee-lx-surface-2);
    border-top: 1px solid var(--ee-lx-hair);
}

/* Home widgets keep the dashboard shell's accent top rule (ee_dashboard.html); they take the layered depth. */
body[data-ee-surface="staff"]:not(.ee-dark) .ee-dashboard-grid .card.widget_card { border-radius: 16px; box-shadow: var(--ee-lx-e2); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-dashboard-grid .card.widget_card:hover { box-shadow: var(--ee-lx-e3); }

/* Tables: a lit header, tinted zebra, hairlines, tabular figures, a totals row. */
body[data-ee-surface="staff"]:not(.ee-dark) table.table:not(.ee-table) > thead:not([class]) > tr > th:not([class*="bg-"]):not([style*="background"]),
body[data-ee-surface="staff"]:not(.ee-dark) .dataTables_scrollHead table.table:not(.ee-table) > thead > tr > th:not([class*="bg-"]):not([style*="background"]) {
    background: linear-gradient(180deg, var(--ee-lx-surface) 0%, var(--ee-lx-tint-2) 100%);
    border-top: 0;
    border-bottom: 1px solid var(--ee-lx-hair-strong);
    color: var(--ee-lx-ink);
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
}
body[data-ee-surface="staff"]:not(.ee-dark) table.table:not(.ee-table) > thead:not([class]) > tr > th:first-child { border-top-left-radius: 10px; }
body[data-ee-surface="staff"]:not(.ee-dark) table.table:not(.ee-table) > thead:not([class]) > tr > th:last-child { border-top-right-radius: 10px; }
body[data-ee-surface="staff"]:not(.ee-dark) table.table:not(.ee-table) > tbody > tr > td,
body[data-ee-surface="staff"]:not(.ee-dark) table.table:not(.ee-table) > tbody > tr > th {
    border-top-color: var(--ee-lx-hair);
    font-variant-numeric: tabular-nums;
}
body[data-ee-surface="staff"]:not(.ee-dark) table.table-striped:not(.ee-table) > tbody > tr:nth-of-type(odd):not([class*="table-"]):not([class*="bg-"]):not([style*="background"]) { background-color: var(--ee-lx-surface-2); }
body[data-ee-surface="staff"]:not(.ee-dark) table.table-striped:not(.ee-table) > tbody > tr:nth-of-type(even):not([class*="table-"]):not([class*="bg-"]):not([style*="background"]) { background-color: var(--ee-lx-surface); }
/* No grey panels on a staff page (owner 2026-11-06 "Gray is poor use colors for cards"; C15
   photos 15_*, 08_compliance_*, 06_*_50059): the empty state, the breadcrumb bar and the
   collapsible help bar take the layered look's chip fill. Dark mode keeps --ee-indigo-bg. */
body[data-ee-surface="staff"]:not(.ee-dark) .ee-empty-state,
body[data-ee-surface="staff"]:not(.ee-dark) ol.breadcrumb,
body[data-ee-surface="staff"]:not(.ee-dark) .help-section-header.ee-bg-indigo-light { background-color: var(--ee-lx-tint) !important; color: var(--ee-lx-ink); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-empty-state-icon { background: var(--ee-lx-surface); color: var(--ee-lx-action-deep); }
body[data-ee-surface="staff"]:not(.ee-dark) table.table:not(.ee-table) > tbody > tr[data-href]:hover,
body[data-ee-surface="staff"]:not(.ee-dark) table.table:not(.ee-table) > tbody > tr.clickable_row:hover,
body[data-ee-surface="staff"]:not(.ee-dark) table.table-hover:not(.ee-table) > tbody > tr:hover { background-color: var(--ee-lx-tint); }
body[data-ee-surface="staff"]:not(.ee-dark) table.table:not(.ee-table) > tfoot > tr > td,
body[data-ee-surface="staff"]:not(.ee-dark) table.table:not(.ee-table) > tfoot > tr > th {
    border-top: 2px solid var(--ee-lx-hair-strong);
    background: var(--ee-lx-tint-2);
    color: var(--ee-lx-ink);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Phones: a table that does not fit scrolls sideways inside its own scroller
   (.table-responsive, the DataTables scroll body); its cells never squeeze into
   two-line words (the responsive law). A datatable stays a grid on a phone only when
   it opts out of the phone cards (dt-no-cards, datatable_export_styles.html); a card
   wraps its values, else one long value made the page 8,246 px wide. */
@media (max-width: 575.98px) {
    body[data-ee-surface="staff"]:not(.ee-dark) .table-responsive > table.table:not(.ee-table-stack) > tbody > tr > td,
    body[data-ee-surface="staff"]:not(.ee-dark) .dataTables_scrollBody > table.table:is(.dt-no-cards, .dt-no-cards *) > tbody > tr > td { white-space: nowrap; }
    body[data-ee-surface="staff"]:not(.ee-dark) .table-responsive { scroll-snap-type: x proximity; scrollbar-width: thin; }
}

/* Tabulator grids (TIC review, bank setup, budgets: 9 templates): the same lit header and zebra. */
body[data-ee-surface="staff"]:not(.ee-dark) .tabulator { border-color: var(--ee-lx-hair-2); border-radius: 12px; background-color: var(--ee-lx-surface); }
body[data-ee-surface="staff"]:not(.ee-dark) .tabulator .tabulator-header {
    border-bottom: 1px solid var(--ee-lx-hair-strong);
    background: linear-gradient(180deg, var(--ee-lx-surface) 0%, var(--ee-lx-tint-2) 100%);
    color: var(--ee-lx-ink);
}
body[data-ee-surface="staff"]:not(.ee-dark) .tabulator .tabulator-header .tabulator-col { border-right-color: var(--ee-lx-hair); background: transparent; }
body[data-ee-surface="staff"]:not(.ee-dark) .tabulator .tabulator-header .tabulator-col .tabulator-col-title { font-weight: 700; }
body[data-ee-surface="staff"]:not(.ee-dark) .tabulator-row { border-bottom-color: var(--ee-lx-hair); font-variant-numeric: tabular-nums; }
body[data-ee-surface="staff"]:not(.ee-dark) .tabulator-row.tabulator-row-even { background-color: var(--ee-lx-surface-2); }
body[data-ee-surface="staff"]:not(.ee-dark) .tabulator-row.tabulator-selectable:hover { background-color: var(--ee-lx-tint); }
body[data-ee-surface="staff"]:not(.ee-dark) .tabulator-row.tabulator-selected { background-color: var(--ee-lx-tint); box-shadow: inset 3px 0 0 var(--ee-lx-action); }
body[data-ee-surface="staff"]:not(.ee-dark) .tabulator-row .tabulator-cell { border-right-color: var(--ee-lx-hair); }

/* Pagination (DataTables, Bootstrap): indigo, raised, rounded; never MDB blue. */
body[data-ee-surface="staff"]:not(.ee-dark) .pagination .page-item .page-link {
    margin: 0 2px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ee-lx-action-deep);
    font-weight: 600;
    box-shadow: none;
}
body[data-ee-surface="staff"]:not(.ee-dark) .pagination .page-item .page-link:hover { background: var(--ee-lx-tint); }
body[data-ee-surface="staff"]:not(.ee-dark) .pagination .page-item.active .page-link {
    background: var(--ee-lx-primary);
    color: var(--ee-text-inverse);
    box-shadow: var(--ee-lx-glow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
body[data-ee-surface="staff"]:not(.ee-dark) .pagination .page-item.disabled .page-link { background: transparent; color: var(--ee-lx-ink-quiet); opacity: 0.7; }

/* Lists: hairline rows; the selected row rises onto a white tile with an indigo
   edge (never a solid MDB-blue bar); timestamps ink, 600 (round 14). A filled row
   (.list-group-item-*-soft, universal_elements/modal_options_styles.html: white
   words on green / indigo / amber / red, e.g. the application Actions panel's
   Management and Compliance processing rows) keeps its own paint: these rules
   outrank that variant, so without the :not() its words turned ink on indigo
   (meeting 2026-11-17 18:25:07 "needs to be changed to all white"). */
body[data-ee-surface="staff"]:not(.ee-dark) .list-group-item:not([class*="-soft"]) { border-color: var(--ee-lx-hair); color: var(--ee-lx-ink); }
body[data-ee-surface="staff"]:not(.ee-dark) .list-group-item.d-flex { column-gap: var(--ee-space-3); }
body[data-ee-surface="staff"]:not(.ee-dark) .list-group-item-action:not([class*="-soft"]):hover,
body[data-ee-surface="staff"]:not(.ee-dark) a.list-group-item:not([class*="-soft"]):hover { background-color: var(--ee-lx-tint-2); }
body[data-ee-surface="staff"]:not(.ee-dark) .list-group-item.active {
    z-index: 2;
    border-color: var(--ee-lx-hair-2);
    background: var(--ee-lx-surface);
    color: var(--ee-lx-action-deep);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--ee-lx-action), var(--ee-lx-e2);
}
/* The row's own words only: a filled -soft row's <small> keeps the row's white,
   and a button inside a row (white on indigo / green / red) keeps its own icon and
   <small>, so these skip `.btn *`: they outrank every button variant (C1
   2026-11-17: a leading icon went indigo on indigo, 1.0:1). */
body[data-ee-surface="staff"]:not(.ee-dark) .list-group-item:not([class*="-soft"]) small:not([class*="text-"]):not([class*="-text"]):not(.btn *),
body[data-ee-surface="staff"]:not(.ee-dark) .list-group-item .text-muted { color: var(--ee-lx-ink) !important; font-weight: 600; }
body[data-ee-surface="staff"]:not(.ee-dark) .list-group-item.active small:not(.btn *) { color: var(--ee-lx-action-deep) !important; font-weight: 700; }
body[data-ee-surface="staff"]:not(.ee-dark) .list-group-item:not([class*="-soft"]) i:first-child:not([class*="text-"]):not([class*="-text"]):not([style*="color"]):not(.btn *) { color: var(--ee-lx-action); }

/* Tabs (Bootstrap .nav-tabs; MDB's coloured .md-tabs and W5's .boarding-tabs keep
   their own): underline tabs, a quiet | between every pair, an indigo bar under the
   selected one; a row that does not fit scrolls sideways, never wraps. */
body[data-ee-surface="staff"]:not(.ee-dark) .nav-tabs:not(.md-tabs):not(.boarding-tabs) {
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    border-bottom: 1px solid var(--ee-lx-hair-2);
}
body[data-ee-surface="staff"]:not(.ee-dark) .nav-tabs:not(.md-tabs):not(.boarding-tabs) > .nav-item { position: relative; flex-shrink: 0; margin-bottom: 0; scroll-snap-align: start; }
body[data-ee-surface="staff"]:not(.ee-dark) .nav-tabs:not(.md-tabs):not(.boarding-tabs) > .nav-item + .nav-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 30%;
    bottom: 30%;
    width: 1px;
    background: var(--ee-lx-hair-strong);
}
body[data-ee-surface="staff"]:not(.ee-dark) .nav-tabs:not(.md-tabs):not(.boarding-tabs) .nav-link:not([class*="bg-"]) {
    position: relative;
    margin: 0;
    padding: 10px 18px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ee-lx-ink-quiet);
    font-weight: 600;
    white-space: nowrap;
}
body[data-ee-surface="staff"]:not(.ee-dark) .nav-tabs:not(.md-tabs):not(.boarding-tabs) .nav-link:not([class*="bg-"]):hover { color: var(--ee-lx-action-deep); background: transparent; }
body[data-ee-surface="staff"]:not(.ee-dark) .nav-tabs:not(.md-tabs):not(.boarding-tabs) .nav-link.active:not([class*="bg-"]) { color: var(--ee-lx-action-deep); background: transparent; }
body[data-ee-surface="staff"]:not(.ee-dark) .nav-tabs:not(.md-tabs):not(.boarding-tabs) .nav-link.active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, var(--ee-lx-action-hi), var(--ee-lx-action-deep));
}

/* Bootstrap modals (125 staff templates): float with the layered shadow and
   rounded corners; the header keeps its colour (the :where(.modal-header)
   standard above, or the page's own), its close becomes the glass square; a
   frosted footer; a visible thin scrollbar on a long body. */
body[data-ee-surface="staff"]:not(.ee-dark) .modal-content:not([class*="bg-"]):not([style*="background"]) {
    border: 0;
    border-radius: 18px;
    box-shadow: var(--ee-lx-e4);
}
body[data-ee-surface="staff"]:not(.ee-dark) .modal-content > .modal-header:first-child { border-radius: 18px 18px 0 0; border-bottom: 0; }
body[data-ee-surface="staff"]:not(.ee-dark) .modal-header .modal-title { min-width: 0; font-weight: 700; letter-spacing: -0.01em; }
body[data-ee-surface="staff"]:not(.ee-dark) .modal-content > .modal-footer:last-child {
    border-top: 1px solid var(--ee-lx-hair);
    border-radius: 0 0 18px 18px;
    background: var(--ee-lx-surface-2);
}
body[data-ee-surface="staff"]:not(.ee-dark) .modal-header > .close {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    margin: 0 0 0 auto;
    padding: 0;
    border: 1px solid var(--ee-lx-glass-edge);
    border-radius: 12px;
    background: var(--ee-lx-glass);
    box-shadow: var(--ee-lx-glass-shadow);
    opacity: 1;
    text-shadow: none;
    font-size: 1.375rem;
    line-height: 1;
}
body[data-ee-surface="staff"]:not(.ee-dark) .modal-header > .close:hover { background: var(--ee-lx-glass-hover); opacity: 1; }
body[data-ee-surface="staff"]:not(.ee-dark) .modal-body { scrollbar-width: thin; scrollbar-color: var(--ee-lx-scroll-thumb) transparent; }
body[data-ee-surface="staff"]:not(.ee-dark) .modal-body::-webkit-scrollbar { width: 10px; }
body[data-ee-surface="staff"]:not(.ee-dark) .modal-body::-webkit-scrollbar-track { background: var(--ee-lx-scroll-track); border-radius: 8px; }
body[data-ee-surface="staff"]:not(.ee-dark) .modal-body::-webkit-scrollbar-thumb { background: var(--ee-lx-scroll-thumb); border: 2px solid transparent; background-clip: padding-box; border-radius: 8px; }

/* MDB's .btn-secondary is PURPLE (#a6c): on staff pages it is the quiet button. */
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-secondary {
    border-color: transparent !important;
    border-radius: 12px;
    background: var(--ee-lx-quiet) !important;
    color: var(--ee-lx-action-deep) !important;
    font-weight: 600;
    text-transform: none;
    box-shadow: inset 0 0 0 1px var(--ee-lx-hair-2), var(--ee-lx-e1) !important;
}
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-secondary:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--ee-lx-hair-strong), var(--ee-lx-e2) !important; }

/* Panels (.ee-panel, resident / unit / admin action cards): the layered card, the band header. */
body[data-ee-surface="staff"]:not(.ee-dark) .ee-panel {
    border: 1px solid var(--ee-lx-hair);
    border-radius: 16px;
    box-shadow: var(--ee-lx-e2);
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-panel-header:not([class*="ee-panel-header-"]):not([class*="teal"]):not([style*="background"]) { position: relative; background: var(--ee-lx-band); }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-panel-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--ee-lx-band-edge);
    pointer-events: none;
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-panel-header { position: relative; }
body[data-ee-surface="staff"]:not(.ee-dark) .ee-panel-icon {
    width: 32px;
    height: 32px;
    border: 1px solid var(--ee-lx-glass-edge);
    border-radius: 10px;
    background: var(--ee-lx-glass);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
    font-size: 0.875rem;
}
body[data-ee-surface="staff"]:not(.ee-dark) .ee-panel-collapse-btn {
    border: 1px solid var(--ee-lx-glass-edge);
    border-radius: 10px;
    background: var(--ee-lx-glass);
    box-shadow: var(--ee-lx-glass-shadow);
}

/* ---- 17.15 Every other Bootstrap / MDB button colour (lane EE-GAP, owner 2026-11-08:
   "every staff page uses the shared layered look"). 17.1 paints .btn-indigo /
   -primary / -outline-indigo / -outline-primary / -danger / -outline-danger and
   17.14 .btn-secondary; staff pages still carry ~260 buttons in other MDB colours
   (mdb-color, dark, elegant, grey, unique, cyan, deep-purple ...). They take the
   SAME three looks, so no page needs its own: a solid dark / brand colour is the
   indigo primary, an outline or light colour is the raised secondary, success is
   the one green, warning is amber. Purple and grey stop existing on staff pages.
   scripts/qa/ee_ui_gap_audit_20261108.py reads the .btn.btn-* names below. */
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-dark,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-elegant,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-mdb-color,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-unique,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-blue,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-info,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-default,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-cyan-4,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-deep-purple,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-mdb-color,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-dark,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-grey,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-secondary,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-unique,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-elegant,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-default,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-info,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-light,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-deep-purple,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-blue,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-light,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-white,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-gray,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-grey,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-success,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-success,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-green,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-dark-green,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-warning,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-warning {
    position: relative;
    border-radius: 12px;
    border-color: transparent !important;
    font-weight: 600;
    letter-spacing: -0.005em;
    text-transform: none;
    transition: transform 0.16s var(--ee-lx-ease), box-shadow 0.16s var(--ee-lx-ease), background 0.16s var(--ee-lx-ease);
}
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-dark:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-elegant:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-mdb-color:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-unique:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-blue:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-info:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-default:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-cyan-4:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-deep-purple:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-mdb-color:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-dark:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-grey:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-secondary:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-unique:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-elegant:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-default:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-info:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-light:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-deep-purple:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-blue:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-light:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-white:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-gray:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-grey:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-success:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-success:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-green:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-dark-green:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-warning:hover:not(:disabled),
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-warning:hover:not(:disabled) { transform: translateY(-1px); }
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-dark,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-elegant,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-mdb-color,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-unique,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-blue,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-info,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-default,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-cyan-4,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-deep-purple {
    background: var(--ee-lx-primary) !important;
    color: var(--ee-text-inverse) !important;
    box-shadow: var(--ee-lx-glow), inset 0 0 0 1px var(--ee-lx-action-deep), inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(0, 0, 0, 0.12) !important;
}
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-mdb-color,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-dark,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-grey,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-secondary,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-unique,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-elegant,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-default,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-info,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-light,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-deep-purple,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-blue,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-light,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-white,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-gray,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-grey,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-success,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-green,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-dark-green,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-warning {
    background: var(--ee-lx-secondary) !important;
    color: var(--ee-lx-action-deep) !important;
    box-shadow: var(--ee-lx-e2), inset 0 0 0 1px var(--ee-lx-hair-strong), inset 0 1px 0 #ffffff, inset 0 -2px 0 var(--ee-lx-hair) !important;
}
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-success,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-green,
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-dark-green { color: var(--ee-lx-green-ink) !important; }
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-outline-warning { color: var(--ee-lx-amber-ink) !important; }
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-success {
    background: var(--ee-lx-go) !important;
    color: var(--ee-text-inverse) !important;
    box-shadow: var(--ee-lx-glow-go), inset 0 0 0 1px var(--ee-lx-go-edge), inset 0 1px 0 rgba(255, 255, 255, 0.26), inset 0 -1px 0 rgba(0, 0, 0, 0.12) !important;
}
body[data-ee-surface="staff"]:not(.ee-dark) .btn.btn-warning {
    background: var(--ee-lx-amber-tile) !important;
    color: var(--ee-lx-amber-glyph) !important;
    box-shadow: 0 8px 20px -6px rgba(243, 154, 11, 0.5), inset 0 0 0 1px rgba(138, 80, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

@media (prefers-reduced-motion: reduce) {
    body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn,
    body[data-ee-surface="staff"]:not(.ee-dark) .ee-status-card,
    body[data-ee-surface="staff"]:not(.ee-dark) .ee-drawer { transition: none; }
    body[data-ee-surface="staff"]:not(.ee-dark) .ee-btn:hover:not(:disabled),
    body[data-ee-surface="staff"]:not(.ee-dark) .ee-status-card:hover { transform: none; }
}
