/*
 * Web glass theme: makes the signed-in web pages look like the EcoGuard app
 * (mobile-app/src/theme/glass.css + design.css).
 *
 * Loaded LAST in <head> for the company admin, manning agency and crew shells (src/web/partials/_header.tsx).
 * Public pages (landing, sign-in, register) have their own design and are not touched.
 *
 *   - soft colour wash behind every page, frosted top bar
 *   - white translucent cards with 18px corners, hairline edge and a soft shadow
 *   - pill buttons, 12px rounded inputs, rounded table cards with sentence-case headers
 *   - one system font, weights 400 and 500 only
 *   - rounded sidebar items with a filled active pill
 *
 * References (Mobbin, web): Deel "People" (wash, table in a rounded card, pill search/filters, pill primary),
 * Calendly "Contacts" (content on a calm canvas beside the sidebar), Cloudflare "Account home" (rounded card grid).
 *
 * Special grids keep their geometry: anything inside .ui-keep, rest-hour matrices, calendars, timelines,
 * gantt charts, heat maps and wage matrices are excluded the same way ui-system.css excludes them.
 * Opt-out for a single element: add class "wg-keep".
 */

/* ───────────────────────── 1. Tokens ───────────────────────── */
html body:is(.admin-app, .agency-manning-app, .crew-app) {
    --wg-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Inter", sans-serif;
    --wg-wash:
        radial-gradient(120% 55% at 0% 0%, rgb(47 99 232 / 17%) 0%, transparent 60%),
        radial-gradient(90% 45% at 100% 6%, rgb(15 148 136 / 12%) 0%, transparent 60%),
        radial-gradient(80% 50% at 60% 100%, rgb(139 92 246 / 11%) 0%, transparent 65%),
        #f7f8fb;
    --wg-card: rgb(255 255 255 / 74%);
    --wg-card-solid: #ffffff;
    --wg-card-line: rgb(255 255 255 / 85%);
    --wg-edge: rgb(17 19 24 / 7%);
    --wg-chrome: rgb(255 255 255 / 66%);
    --wg-blur: blur(22px) saturate(180%);
    --wg-shadow: 0 1px 0 rgb(255 255 255 / 60%) inset, 0 8px 24px rgb(17 19 24 / 5%);
    --wg-shadow-pop: 0 16px 40px rgb(17 19 24 / 14%);
    --wg-text: #111318;
    --wg-text-2: #3d424e;
    --wg-muted: #737885;
    --wg-line: #d4d8df; /* was #e7e9ed — darker so borders read clearly (owner, 29 Nov 2026) */
    --wg-input-line: #c6cbd3;
    --wg-fill: rgb(118 118 128 / 10%);
    --wg-fill-hover: rgb(118 118 128 / 16%);
    --wg-blue: #2f63e8;
    --wg-blue-soft: rgb(47 99 232 / 10%);
    --wg-r-card: 18px;
    --wg-r-input: 12px;
    --wg-spring: cubic-bezier(0.2, 0.9, 0.25, 1.15);

    /* the existing systems read these */
    --font: var(--wg-font);
    --font-support: var(--wg-font);
    --ui-radius: 12px;
    --ui-radius-lg: var(--wg-r-card);
    --ui-bg: transparent;
    --ui-bg-subtle: rgb(255 255 255 / 55%);
    --ui-border: var(--wg-line);
    --ui-divider: rgb(17 19 24 / 6%);
    --ui-th-bg: transparent;
    --ui-th-text: var(--wg-muted);
    --ui-row-hover: rgb(47 99 232 / 4%);
    --ui-shadow: 0 0 0 1px var(--wg-edge), var(--wg-shadow);
    --ui-shadow-pop: var(--wg-shadow-pop);
    --ui-control-h: 36px;
    --ui-control-h-sm: 30px;
    --radius: var(--wg-r-card);
    --page-bg: transparent;
}
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app, .crew-app) {
    --wg-wash:
        radial-gradient(120% 55% at 0% 0%, rgb(61 107 245 / 20%) 0%, transparent 60%),
        radial-gradient(90% 45% at 100% 6%, rgb(20 184 166 / 12%) 0%, transparent 60%),
        radial-gradient(80% 50% at 60% 100%, rgb(139 92 246 / 12%) 0%, transparent 65%),
        #0e0f12;
    --wg-card: rgb(30 31 36 / 66%);
    --wg-card-solid: #18191d;
    --wg-card-line: rgb(255 255 255 / 14%);
    --wg-edge: rgb(0 0 0 / 40%);
    --wg-chrome: rgb(24 25 29 / 62%);
    --wg-shadow: 0 1px 0 rgb(255 255 255 / 5%) inset, 0 10px 28px rgb(0 0 0 / 35%);
    --wg-shadow-pop: 0 18px 44px rgb(0 0 0 / 55%);
    --wg-text: #eceef2;
    --wg-text-2: #c4c9d2;
    --wg-muted: #9aa0ab;
    --wg-line: rgb(255 255 255 / 15%);
    --wg-input-line: rgb(255 255 255 / 20%);
    --wg-fill: rgb(255 255 255 / 7%);
    --wg-fill-hover: rgb(255 255 255 / 11%);
    --wg-blue: #6d93ff;
    --wg-blue-soft: rgb(109 147 255 / 16%);
    --ui-bg-subtle: rgb(255 255 255 / 4%);
    --ui-divider: rgb(255 255 255 / 6%);
    --ui-row-hover: rgb(255 255 255 / 4%);
}

/* ───────────────────────── 2. Canvas: one font, the wash behind everything ───────────────────────── */
html:has(> body:is(.admin-app, .agency-manning-app, .crew-app)) { background: #ffffff; }
html[data-theme="dark"]:has(> body:is(.admin-app, .agency-manning-app, .crew-app)) { background: #0e0f12; }
html body:is(.admin-app, .agency-manning-app, .crew-app) {
    font-family: var(--wg-font);
    -webkit-font-smoothing: antialiased;
    background: transparent !important;
}
html body:is(.admin-app, .agency-manning-app, .crew-app)::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--wg-wash);
    pointer-events: none;
}
html body:is(.admin-app, .agency-manning-app, .crew-app) :is(button, input, select, textarea) { font-family: inherit; }
/* One typeface everywhere, as the app forces in glass.css; icon fonts (Font Awesome etc.) and code keep theirs. */
html body:is(.admin-app, .agency-manning-app, .crew-app) *:not(i, .fa, [class^="fa"], [class*=" fa"], [class*="icon"], [class*="material"], [class*="glyph"], code, pre, kbd, samp, .mono, svg, svg *) {
    font-family: var(--wg-font) !important;
}
html body:is(.admin-app, .agency-manning-app, .crew-app) :is(main.container, main.container-full, .crew-dash-main, .crew-dash-root):not(#wg-none) {
    background: transparent !important;
}

/* Weights: regular 400 and medium 500 only, as in the app. Icons (Font Awesome needs 900) are left alone. */
html body:is(.admin-app, .agency-manning-app, .crew-app) :is(h1, h2, h3, h4, h5, h6, strong, b, th, dt, legend, summary, label, button, .btn,
    [class*="title"], [class*="-value"], [class*="-label"], [class*="-name"], [class*="-num"], [class*="-head"], [class*="badge"], [class*="pill"], [class*="chip"],
    [class*="-btn"], .admin-nav-leaf, .admin-nav-sub, .admin-nav-section-label):not(i, .fa, [class*="fa-"], svg, svg *, .wg-keep) {
    font-weight: 500 !important;
}

/* form values read as regular text, like the app's fields */
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is(select, input:not([type="submit"]):not([type="button"]), textarea):not(.wg-keep) { font-weight: 400 !important; }

/* ───────────────────────── 3. Top bar: frosted glass the page scrolls under ───────────────────────── */
/* The blur sits on a ::before layer, never on the header itself: backdrop-filter on the header would make it the
   containing block of the fixed sidebar inside it and push the sidebar off the left edge. */
html body:is(.admin-app, .agency-manning-app) header.admin-header:not(#wg-none),
html body.crew-app .crew-dash-toolbar:not(#wg-none) {
    background: var(--wg-chrome) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    border-bottom: 1px solid var(--wg-edge) !important;
    box-shadow: none !important;
}
html body:is(.admin-app, .agency-manning-app) header.admin-header:not(#wg-none) :is(.header-shell, nav) { background: transparent !important; }
html body.admin-layout-sidebar header.admin-header:not(#wg-none),
html body.crew-app .crew-dash-toolbar:not(#wg-none) {
    background: transparent !important;
    isolation: isolate;
}
html body.admin-layout-sidebar header.admin-header:not(#wg-none)::before,
html body.crew-app .crew-dash-toolbar:not(#wg-none)::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: var(--admin-header-height, 100%);
    min-height: 100%;
    z-index: -1;
    background: var(--wg-chrome);
    -webkit-backdrop-filter: var(--wg-blur);
    backdrop-filter: var(--wg-blur);
    pointer-events: none;
}
html body.crew-app .crew-dash-toolbar:not(#wg-none)::before { height: 100%; }
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) header.admin-header:not(#ui-none):not(#wg-none),
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) header.admin-header:not(#ui-none):not(#wg-none) .header-shell,
html[data-theme="dark"] body.crew-app .crew-dash-toolbar:not(#wg-none) {
    background: transparent !important;
    border-bottom-color: var(--wg-line) !important;
}
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app):not(.admin-layout-sidebar) header.admin-header:not(#ui-none):not(#wg-none) {
    background: var(--wg-chrome) !important;
}
/* top-bar buttons and the profile chip become soft round buttons */
html body:is(.admin-app, .agency-manning-app) header.admin-header :is(.admin-header-profile, .theme-toggle, .admin-sidebar-color-trigger, .admin-header-tools > a, .admin-header-tools > button) {
    border-radius: 999px !important;
}
html body:is(.admin-app, .agency-manning-app) header.admin-header .admin-header-profile-avatar { border-radius: 999px !important; }
html body:is(.admin-app, .agency-manning-app) :is(.admin-profile-menu, .admin-topnav-panel, .admin-sidebar-color-panel) {
    border-radius: 16px !important;
    border: 1px solid var(--wg-card-line) !important;
    box-shadow: 0 0 0 1px var(--wg-edge), var(--wg-shadow-pop) !important;
    overflow: hidden;
}

/* ───────────────────────── 4. Sidebar: rounded items, filled active pill ───────────────────────── */
/* Colours stay with the company brand / skin; only the shapes change. */
html body:is(.admin-app, .agency-manning-app, .crew-app) :is(.admin-nav-skin-open, .crew-dash-sidebar) :is(.admin-nav-leaf, .admin-nav-sub, .admin-nav-details > summary, .admin-sidebar-footer a):not(#wg-none) {
    border-radius: 12px !important;
    margin-left: 8px !important;
    margin-right: 8px !important;
    width: calc(100% - 16px) !important;
    transition: background-color 0.2s ease, transform 0.2s var(--wg-spring);
}
html body:is(.admin-app, .agency-manning-app, .crew-app) :is(.admin-nav-skin-open, .crew-dash-sidebar) :is(.admin-nav-leaf, .admin-nav-sub).active:not(#wg-none) {
    box-shadow: none !important;
}
html body:is(.admin-app, .agency-manning-app, .crew-app) :is(.admin-nav-skin-open, .crew-dash-sidebar) :is(.admin-nav-leaf, .admin-nav-sub):active { transform: scale(0.98); }
/* light skin: the rail is frosted glass on the wash, the active item a white raised pill */
html body.admin-layout-sidebar[data-sidebar-skin="light"]:not([data-company-brand-locked="1"]) .admin-nav-skin-open:not(#wg-none),
html body.admin-layout-sidebar[data-sidebar-skin="light"]:not([data-company-brand-locked="1"]) .admin-nav-skin-open:not(#wg-none) :is(.admin-sidebar-brand, .admin-sidebar-footer, .admin-nav-skin-scroll) {
    background: var(--wg-chrome) !important;
}
html body.admin-layout-sidebar[data-sidebar-skin="light"]:not([data-company-brand-locked="1"]) .admin-nav-skin-open:not(#wg-none) :is(.admin-sidebar-brand, .admin-sidebar-footer, .admin-nav-skin-scroll) {
    background: transparent !important;
}
html body.admin-layout-sidebar[data-sidebar-skin="light"]:not([data-company-brand-locked="1"]) .admin-nav-skin-open:not(#wg-none) {
    border-right: 1px solid var(--wg-edge) !important;
}
html body.admin-layout-sidebar[data-sidebar-skin="light"] .admin-nav-skin-open:not(#wg-none) :is(.admin-nav-leaf, .admin-nav-sub).active {
    background: var(--wg-card-solid) !important;
    box-shadow: 0 0 0 1px var(--wg-edge), 0 2px 8px rgb(17 19 24 / 6%) !important;
}
html[data-theme="dark"] body.admin-app .admin-nav-skin-open:not(#ui-none):not(#wg-none) :is(.admin-nav-leaf, .admin-nav-sub).active {
    box-shadow: none !important;
    background: rgb(255 255 255 / 10%) !important;
}
/* agency rail */
html body.agency-manning-app .agency-manning-rail :is(a, button) { border-radius: 12px; }

/* ───────────────────────── 5. Page titles ───────────────────────── */
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is(h1, .page-title):not(.ui-keep *, .wg-keep, .wg-keep *) {
    font-size: 26px !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em;
    color: var(--wg-text);
}
html body:is(.admin-app, .agency-manning-app, .crew-app) main h2:not(.ui-keep *, .wg-keep, .wg-keep *, [class*="kpi"], [class*="value"]) {
    letter-spacing: -0.01em;
}

/* ───────────────────────── 6. Cards and panels: frosted white, 18px corners ───────────────────────── */
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is(
    .card, .panel, .ui-card, .crew-card, .lms-card, .co-card, .ctp-card, .cld-card, .um-card, .prv-card, .sa-card, .pdd-card, .ld-card, .iv-card,
    .db-card, .csv-card, .vo-card, .vessel-section-card, .payroll-detail-card, .cpk-card, .ep-card, .ep-module-card, .ep-section,
    .cba-panel, .cm-panel, .vtm-panel, .ops-panel, .bp-panel, .filter-panel, .ui-kpi, .kpi-accent, .stat-card, .kpi-card,
    .cba-kpi, .cm-kpi, .fin-kpi, .ep-kpi, .ops-kpi, .sa-kpi, .bp-kpi, .ld-kpi, .compliance-kpi, .vd-stat, .ops-movement-stat, .empty-state, .crew-empty
):not(.ui-keep *, .wg-keep, .wg-keep *) {
    background-color: var(--wg-card) !important;
    border: 1px solid var(--wg-card-line) !important;
    border-radius: var(--wg-r-card) !important;
    box-shadow: 0 0 0 1px var(--wg-edge), var(--wg-shadow) !important;
}
/* cards inside cards stay flat so the page does not stack shadows */
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is(.card, .panel, .ui-card, .crew-card, .co-card, .ctp-card, .ep-card, .ep-section, .cm-panel, .cba-panel, .bp-panel)
    :is(.card, .panel, .ui-card, .crew-card, .co-card, .ctp-card, .ep-card, .cm-panel, .cba-panel, .bp-panel, .ui-kpi, .kpi-accent, .stat-card, .kpi-card):not(.ui-keep *, .wg-keep, .wg-keep *) {
    background-color: var(--wg-fill) !important;
    border-color: transparent !important;
    box-shadow: none !important;
    border-radius: 14px !important;
}
/* any other *-card or *-panel in the page: same corners, colours untouched (some are status-coloured) */
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is([class$="-card"], [class*="-card "], [class$="-panel"], [class*="-panel "]):not(table *, .ui-keep *, .wg-keep, .wg-keep *, [class*="calendar"] *, [class*="timeline"] *, [class*="gantt"] *, [class*="matrix"] *) {
    border-radius: var(--wg-r-card);
}
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is(.ui-kpi-value, .kpi-num, .kpi-accent__value) {
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
/* coloured icon squares, as on the app's lists */
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is(.kpi-accent__icon, [class$="-icon-tile"], .icon-tile) {
    border-radius: 12px !important;
}

/* ───────────────────────── 7. Buttons: pills with a small spring ───────────────────────── */
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is(
    button, .btn, input[type="submit"], input[type="button"], input[type="reset"], a[class*="btn"], [class*="-btn"], .button, :is(a, button, input):is(.primary, .secondary, .ghost)
):not(.ui-keep *, .wg-keep, .wg-keep *, [role="tab"], [role="option"], [role="menuitem"], td.primary, th.primary, tr, td, th, table, label, .rh-mx *, [class*="calendar"] *, [class*="timeline"] *, [class*="gantt"] *, [class*="matrix"] *, [class*="heatmap"] *, .ql-toolbar *, .flatpickr-calendar *, summary, [class$="-card"], [class*="-card "]) {
    /* a button that is a card (e.g. the crew-planning port cards) keeps card corners, not a pill (owner, 28 Nov 2026) */
    border-radius: 999px !important;
    font-weight: 500 !important;
    transition: transform 0.2s var(--wg-spring), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is(button, .btn, a[class*="btn"], [class*="-btn"], input[type="submit"]):active:not(:disabled, .ui-keep *, .wg-keep, td, tr) {
    transform: scale(0.96);
}
/* plain secondary buttons: soft grey fill instead of an outline box (Deel / app style) */
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is(.btn-secondary, .btn.secondary, .btn.ghost, [class*="-btn--secondary"], [class*="-btn--ghost"], [class*="-btn"].secondary, [class*="-btn"].ghost):not(.ui-keep *, .wg-keep, .wg-keep *) {
    background-color: var(--wg-fill) !important;
    border-color: transparent !important;
    color: var(--wg-text) !important;
    box-shadow: none !important;
}
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is(.btn-secondary, .btn.secondary, .btn.ghost, [class*="-btn--secondary"], [class*="-btn--ghost"], [class*="-btn"].secondary, [class*="-btn"].ghost):hover:not(:disabled, .ui-keep *, .wg-keep) {
    background-color: var(--wg-fill-hover) !important;
}
/* primary buttons keep the company brand colour, with a soft lift */
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is(.btn-primary, .btn.primary, [class*="-btn--primary"], [class*="-btn"].primary, button[type="submit"].primary):not(.ui-keep *, .wg-keep, .wg-keep *) {
    box-shadow: 0 6px 16px rgb(17 19 24 / 12%) !important;
}

/* ───────────────────────── 8. Inputs: 12px corners, soft focus ring ───────────────────────── */
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is(
    input:is([type="text"], [type="search"], [type="email"], [type="number"], [type="date"], [type="tel"], [type="url"], [type="password"], [type="month"], [type="time"], [type="datetime-local"], [type="file"], :not([type])),
    select, textarea
):not(.ui-keep *, .wg-keep, .wg-keep *, table.rhm-table *, .rh-mx *, [class*="matrix"] *, [class*="calendar"] *) {
    border-radius: var(--wg-r-input) !important;
    border-color: var(--wg-input-line);
    background-color: var(--wg-card-solid);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is(input, select, textarea):focus-visible:not(.ui-keep *, .wg-keep, [type="checkbox"], [type="radio"]) {
    outline: none !important;
    border-color: var(--wg-blue) !important;
    box-shadow: 0 0 0 4px var(--wg-blue-soft) !important;
}
/* search boxes are pills (Deel "Search by name") */
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is(input[type="search"], input[name="q"], input[name="search"], input[placeholder^="Search" i]):not(.ui-keep *, .wg-keep, td *) {
    border-radius: 999px !important;
}

/* ───────────────────────── 9. Tables: sentence-case headers, soft rows, rounded card around them ───────────────────────── */
html body:is(.admin-app, .agency-manning-app, .crew-app) main table:not(.ui-keep, .ui-keep table, .wg-keep, .rh-mx table, .rhb-table, .rhm-table, .rhf-table, .rh-calc-table, .lc-cal, .uhm-matrix, .mr-matrix, .tr-table--matrix, .vtm-comparison-matrix, .bp-cba-wage-table, .cba-wage-table, [class*="bvd"] table, .cp-reference-matrix, .cp-reference-heatmap, .cp-month-table, .cp-fleet-month-table, [class*="calendar"] table, [class*="gantt"], [class*="gantt"] table, [class*="timeline"], [class*="timeline"] table, [class*="heatmap"], table.meta, table.record, [class*="matrix"], [class*="matrix"] table, .ep-drm-table, .ep-drm-table table) {
    background: transparent !important;
}
html body:is(.admin-app, .agency-manning-app, .crew-app) main table:not(.ui-keep, .ui-keep table, .wg-keep, .rh-mx table, .rhb-table, .rhm-table, .rhf-table, .rh-calc-table, .lc-cal, .uhm-matrix, .mr-matrix, .tr-table--matrix, .vtm-comparison-matrix, .bp-cba-wage-table, .cba-wage-table, [class*="bvd"] table, .cp-reference-matrix, .cp-reference-heatmap, .cp-month-table, .cp-fleet-month-table, [class*="calendar"] table, [class*="gantt"], [class*="gantt"] table, [class*="timeline"], [class*="timeline"] table, [class*="heatmap"], table.meta, table.record, [class*="matrix"], [class*="matrix"] table, .ep-drm-table, .ep-drm-table table) :is(thead th, thead td) {
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 12px !important;
    color: var(--wg-muted) !important;
    background: transparent !important;
    border-bottom: 1px solid var(--wg-line) !important;
}
html body:is(.admin-app, .agency-manning-app, .crew-app) main table:not(.ui-keep, .ui-keep table, .wg-keep, [class*="matrix"], [class*="matrix"] table, [class*="calendar"] table, [class*="timeline"] table, [class*="gantt"] table, .rhb-table, .rhm-table, .rh-mx table, .lc-cal) > tbody > tr > td {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}
/* the scroll wrapper around a data table is the card */
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is(.ui-table-scroll, .table-wrap, .table-responsive, .admin-table-wrap, .crew-table-wrap, [class$="table-wrap"], [class*="-table-wrap "], [class$="table-scroll"]):not(.ui-keep *, .wg-keep, .wg-keep *, .card *, .panel *, [class$="-card"] *, [class$="-panel"] *, [class*="calendar"], [class*="matrix"], [class*="timeline"]) {
    background: var(--wg-card);
    border: 1px solid var(--wg-card-line);
    border-radius: var(--wg-r-card);
    box-shadow: 0 0 0 1px var(--wg-edge), var(--wg-shadow);
    padding: 4px 6px;
}

/* ───────────────────────── 10. Badges, chips, tabs ───────────────────────── */
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is(.badge, .status-badge, .ui-badge, .pill, .status-pill, .tag, .chip, [class$="-badge"], [class$="-pill"], [class$="-chip"]):not(.ui-keep *, .wg-keep, .wg-keep *, [class*="matrix"] *, [class*="calendar"] *) {
    border-radius: 999px !important;
    letter-spacing: 0;
    text-transform: none;
}
/* tab strips become a segmented control: grey pill track, white raised selected tab (the app's .seg) */
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs):not(.ui-keep *, .wg-keep, .wg-keep *) {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 2px !important;
    width: auto !important;
    max-width: 100%;
    overflow-x: auto;
    padding: 4px !important;
    background: var(--wg-fill) !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    scrollbar-width: none;
}
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs):not(.ui-keep *, .wg-keep, .wg-keep *) > :is(a, button, [role="tab"], [class$="-tab"]) {
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: var(--wg-text-2) !important;
    padding: 7px 14px !important;
    white-space: nowrap;
    box-shadow: none !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs):not(.ui-keep *, .wg-keep, .wg-keep *) > :is(a, button, [role="tab"], [class$="-tab"]):hover {
    color: var(--wg-text) !important;
}
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs):not(.ui-keep *, .wg-keep, .wg-keep *) > :is([aria-selected="true"], [aria-current="page"], .active, .is-active, .on) {
    background: var(--wg-card-solid) !important;
    color: var(--wg-text) !important;
    box-shadow: 0 0 0 1px var(--wg-edge), 0 2px 8px rgb(17 19 24 / 8%) !important;
}
/* stray tabs outside a known strip still get pill corners */
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is([role="tab"], .ui-tab, .emp-view-tab, .vessel-tab, .cp-modal-tab):not(.ui-keep *, .wg-keep, .wg-keep *) {
    border-radius: 999px !important;
}
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is(.pagination, .pager, [class$="-pager"], [class$="-pagination"]) :is(a, button, span):not(.wg-keep) {
    border-radius: 999px !important;
}

/* ───────────────────────── 11. Flash messages, modals, menus ───────────────────────── */
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is(.flash, .alert, .warn-box, .notice, .callout, [class$="-note"]):not(.ui-keep *, .wg-keep, .wg-keep *, td *) {
    border-radius: 14px !important;
}
html body:is(.admin-app, .agency-manning-app, .crew-app) :is(dialog, [role="dialog"], .modal-content, .modal-dialog, [class$="-modal"], [class*="-modal "], [class$="-modal-card"], [class$="-modal-box"], [class$="-drawer"]):not(.ui-keep *, .wg-keep, .admin-sidebar-color-panel, [class*="overlay"], [class*="backdrop"]) {
    border-radius: 22px;
}
html body:is(.admin-app, .agency-manning-app, .crew-app) :is([class$="-modal-overlay"], [class$="-backdrop"], .modal-backdrop, dialog::backdrop) {
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is(details[class*="menu"] > :not(summary), [class$="-menu"], [class$="-dropdown"], [role="menu"]):not(.ui-keep *, .wg-keep, .wg-keep *, nav, ul.nav-links) {
    border-radius: 14px;
}

/* ───────────────────────── 12. Crew portal shell ───────────────────────── */
html body.crew-app .crew-dash-sidebar:not(#wg-none) :is(a, button) { border-radius: 12px; }
html body.crew-app :is(.crew-tb-avail-btn, .crew-tb-avail-seg, .crew-toolbar-actions :is(a, button)) { border-radius: 999px !important; }

/* ───────────────────────── 13. Motion: sections rise in once ───────────────────────── */
@keyframes wg-rise { from { opacity: 0; transform: translateY(8px); } }
html body:is(.admin-app, .agency-manning-app, .crew-app) main.container > :is(section, .card, .panel, [class$="-card"], [class$="-panel"], [class$="-page"]):not(.wg-keep, [class*="modal"], [class*="overlay"]) {
    animation: wg-rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
@media (prefers-reduced-motion: reduce) {
    html body:is(.admin-app, .agency-manning-app, .crew-app) * { animation: none !important; transition: none !important; }
}

/* ───────────────────────── 14. Phone width ───────────────────────── */
@media (max-width: 768px) {
    html body:is(.admin-app, .agency-manning-app, .crew-app) {
        --wg-r-card: 16px;
    }
    html body:is(.admin-app, .agency-manning-app, .crew-app) main :is(h1, .page-title):not(.ui-keep *, .wg-keep) {
        font-size: 20px !important;
    }
}

/* ───────────────────────── 16. Over the older admin layer (ui-system.css §18, §21, §23) ─────────────────────────
 * That layer painted white flat surfaces, 4px coloured left bars on KPI tiles and black table header rows.
 * The app has none of these: tiles are frosted cards with a coloured number, headers are a soft grey strip.
 * Two :not(#…) lift these rules above ui-system's single :not(#ui-none). */
html body:is(.admin-app, .agency-manning-app) {
    --ui-tbl-head-bg: #e9effd;
    --ui-tbl-head-text: #1f3b7a;
    --ui-tbl-head-sep: transparent;
    --ui-tbl-col-sep: transparent;
    --ui-card-shadow: 0 0 0 1px var(--wg-edge), var(--wg-shadow);
}
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) {
    --ui-tbl-head-bg: #1b2336;
    --ui-tbl-head-text: #b9c8f0;
    --ui-tbl-head-sep: transparent;
    --ui-tbl-col-sep: transparent;
}
/* table header: rounded grey strip inside the card */
html body:is(.admin-app, .agency-manning-app) main table:not(.ui-keep, .ui-keep table, .wg-keep, [class*="matrix"], [class*="matrix"] table, [class*="calendar"] table, [class*="timeline"] table, [class*="gantt"] table, [class*="heatmap"], .rhb-table, .rhm-table, .rhf-table, .rh-mx table, .lc-cal, .cp-month-table, .cp-fleet-month-table, .bp-cba-wage-table, .cba-wage-table, .ep-drm-table, table.meta, table.record):not(#ui-none):not(#wg-none) {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}
html body:is(.admin-app, .agency-manning-app) main table:not(.ui-keep, .ui-keep table, .wg-keep, [class*="matrix"], [class*="matrix"] table, [class*="calendar"] table, [class*="timeline"] table, [class*="gantt"] table, [class*="heatmap"], .rhb-table, .rhm-table, .rhf-table, .rh-mx table, .lc-cal, .cp-month-table, .cp-fleet-month-table, .bp-cba-wage-table, .cba-wage-table, .ep-drm-table, table.meta, table.record):not(#ui-none):not(#wg-none) > thead > tr > :is(th, td) {
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 12px !important;
    border-bottom: 0 !important;
}
html body:is(.admin-app, .agency-manning-app) main table:not(.ui-keep, .ui-keep table, .wg-keep, [class*="matrix"], [class*="matrix"] table, [class*="calendar"] table, [class*="timeline"] table, [class*="gantt"] table, [class*="heatmap"], .rhb-table, .rhm-table, .rhf-table, .rh-mx table, .lc-cal, .cp-month-table, .cp-fleet-month-table, .bp-cba-wage-table, .cba-wage-table, .ep-drm-table, table.meta, table.record):not(#ui-none):not(#wg-none) > thead > tr:first-child > :is(th, td):first-child { border-radius: 12px 0 0 12px; }
html body:is(.admin-app, .agency-manning-app) main table:not(.ui-keep, .ui-keep table, .wg-keep, [class*="matrix"], [class*="matrix"] table, [class*="calendar"] table, [class*="timeline"] table, [class*="gantt"] table, [class*="heatmap"], .rhb-table, .rhm-table, .rhf-table, .rh-mx table, .lc-cal, .cp-month-table, .cp-fleet-month-table, .bp-cba-wage-table, .cba-wage-table, .ep-drm-table, table.meta, table.record):not(#ui-none):not(#wg-none) > thead > tr:first-child > :is(th, td):last-child { border-radius: 0 12px 12px 0; }
html body:is(.admin-app, .agency-manning-app) main table:not(.ui-keep, .ui-keep table, .wg-keep, [class*="matrix"], [class*="matrix"] table, [class*="calendar"] table, [class*="timeline"] table, [class*="gantt"] table, [class*="heatmap"], .rhb-table, .rhm-table, .rhf-table, .rh-mx table, .lc-cal, .cp-month-table, .cp-fleet-month-table, .bp-cba-wage-table, .cba-wage-table, .ep-drm-table, table.meta, table.record):not(#ui-none):not(#wg-none) > thead > tr:first-child > :is(th, td):only-child { border-radius: 12px; }
/* table title bar above a table: same grey strip, dark text */
html body:is(.admin-app, .agency-manning-app) .ui-tbl-title:not(#ui-none):not(#wg-none) { border-radius: 14px !important; margin-bottom: 6px !important; }
html body:is(.admin-app, .agency-manning-app) .ui-tbl-title:not(#ui-none):not(#wg-none) :is(p, small, [class*="muted"], [class*="-sub"], [class*="-meta"], [class*="-note"], [class*="-count"]):not([class*="btn"], [class*="badge"], [class*="pill"], [class*="chip"]) { color: var(--wg-muted) !important; }
html body:is(.admin-app, .agency-manning-app) .ui-tbl-title:not(#ui-none):not(#wg-none) a:not([class*="btn"], [class*="pill"], [class*="chip"], .ui-period__step) { color: var(--wg-blue) !important; }
html body:is(.admin-app, .agency-manning-app) .ui-tbl-after-title:not(#ui-none):not(#wg-none) { border-top-left-radius: var(--wg-r-card) !important; border-top-right-radius: var(--wg-r-card) !important; }
/* KPI tiles: frosted card, no coloured left bar; the colour stays on the number and the icon square */
html body:is(.admin-app, .agency-manning-app) main :is(.ui-kpi-auto, .ui-kpi, .kpi-accent):not(#ui-none):not(#wg-none) {
    background: var(--wg-card) !important;
    border: 1px solid var(--wg-card-line) !important;
    border-radius: var(--wg-r-card) !important;
    box-shadow: 0 0 0 1px var(--wg-edge), var(--wg-shadow) !important;
    padding: 14px 16px !important;
}
html body:is(.admin-app, .agency-manning-app) main :is(.ui-kpi-auto, .ui-kpi, .kpi-accent):not(#ui-none):not(#wg-none) :is(.ui-kpi-label, .kpi-accent__label, [class$="-label"]) {
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 12.5px !important;
    color: var(--wg-muted) !important;
}
html body:is(.admin-app, .agency-manning-app) main .ui-kpi-auto .ui-kpi-num:not(#ui-none):not(#wg-none) { font-weight: 500 !important; }
html body:is(.admin-app, .agency-manning-app) main :is(.ui-kpi-auto .ui-kpi-ico, .kpi-accent__icon):not(#ui-none):not(#wg-none) {
    border-radius: 12px !important;
    background: color-mix(in srgb, var(--kpi-c, var(--wg-blue)) 12%, transparent) !important;
}
/* white flat surfaces and intro banners become frosted cards */
html body:is(.admin-app, .agency-manning-app) main .ui-card-lift:not(#ui-none):not(#wg-none) {
    border-radius: var(--wg-r-card) !important;
    box-shadow: 0 0 0 1px var(--wg-edge), var(--wg-shadow) !important;
}
html body:is(.admin-app, .agency-manning-app) main :is(.ui-flat-white, .ui-intro):not(#ui-none):not(#wg-none) {
    background: var(--wg-card) !important;
    border: 1px solid var(--wg-card-line) !important;
    border-radius: var(--wg-r-card) !important;
    box-shadow: 0 0 0 1px var(--wg-edge), var(--wg-shadow) !important;
}
html body:is(.admin-app, .agency-manning-app) main .ui-sec-title:not(#ui-none):not(#wg-none) { padding-left: 0 !important; }
html body:is(.admin-app, .agency-manning-app) main .ui-sec-title:not(#ui-none):not(#wg-none)::before { display: none; }
html body:is(.admin-app, .agency-manning-app) .filter-panel { --fp-bg: var(--wg-card); --fp-border: var(--wg-card-line); }
/* links styled as buttons never underline */
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is(a.btn, a[class*="-btn"], a[class*="btn-"], a.button, a.primary, a.secondary, a.ghost) { text-decoration: none !important; }

/* ───────────────────────── 17. Page fixes found on the real pages ───────────────────────── */
/* Our Crew: Apply / Reset were a joined black box; now two separate pills (Deel filter bar) */
html body:is(.admin-app, .agency-manning-app) main .emp-filter-actions:not(#wg-none) {
    background: transparent !important;
    border: 0 !important;
    overflow: visible !important;
    gap: 8px;
}
html body:is(.admin-app, .agency-manning-app) main .emp-filter-actions:not(#wg-none) .emp-filter-actions__apply {
    background: #2563eb !important;
    color: #ffffff !important;
    border: 0 !important;
}
html body:is(.admin-app, .agency-manning-app) main .emp-filter-actions:not(#wg-none) :is(.emp-filter-actions__reset, .emp-btn.ghost) {
    background: var(--wg-fill) !important;
    color: var(--wg-text) !important;
    border: 0 !important;
}
/* Crew profile and crew planning: underline tab rows become the segmented pill strip */
html body:is(.admin-app, .agency-manning-app, .crew-app) main .employee-profile-page .ep-module-nav:not(#wg-none) {
    border-bottom: 0 !important;
    background: transparent !important;
}
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is(.ep-module-nav__inner, .cp-planning-view-tabs):not(#wg-none) {
    display: inline-flex !important;
    gap: 2px !important;
    padding: 4px !important;
    background: var(--wg-chrome) !important;
    -webkit-backdrop-filter: var(--wg-blur);
    backdrop-filter: var(--wg-blur);
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: 0 0 0 1px var(--wg-edge) !important;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is(.ep-module-nav__btn, .cp-planning-view-tab):not(#wg-none) {
    border: 0 !important;
    border-radius: 999px !important;
    margin: 0 !important;
    min-height: 34px !important;
    padding: 7px 14px !important;
    background: transparent !important;
    color: var(--wg-text-2) !important;
    box-shadow: none !important;
}
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is(.ep-module-nav__btn, .cp-planning-view-tab):is(.active, .is-active, [aria-selected="true"]):not(#wg-none) {
    background: var(--wg-card-solid) !important;
    color: var(--wg-text) !important;
    box-shadow: 0 0 0 1px var(--wg-edge), 0 2px 8px rgb(17 19 24 / 8%) !important;
}
html body:is(.admin-app, .agency-manning-app, .crew-app) main :is(.ep-module-nav__btn, .cp-planning-view-tab)::after { display: none !important; }
/* Dashboard tiles: frosted cards, sentence-case labels, no coloured left bar (colour stays on the number) */
html body.admin-app main .ops-kpis > .ops-kpi:not(#wg-none) {
    background: var(--wg-card) !important;
    border: 1px solid var(--wg-card-line) !important;
    border-radius: 16px !important;
    box-shadow: 0 0 0 1px var(--wg-edge), var(--wg-shadow) !important;
    padding: 10px 14px !important;
}
html body.admin-app main .ops-kpis > .ops-kpi:not(#wg-none) :is(label, .label) {
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 12.5px !important;
    color: var(--wg-muted) !important;
}
html body.admin-app main .ops-kpis > .ops-kpi:not(#wg-none) .value { font-size: 22px !important; letter-spacing: -0.02em; }
/* Settings cards: the coloured top line bent around the round corners; plain frosted card instead */
html body.admin-app main a.stg-card:not(#wg-none) {
    background: var(--wg-card) !important;
    border: 1px solid var(--wg-card-line) !important;
    box-shadow: 0 0 0 1px var(--wg-edge), var(--wg-shadow) !important;
}
html body.admin-app main a.stg-card:not(#wg-none):hover { box-shadow: 0 0 0 1px var(--wg-edge), 0 12px 28px rgb(17 19 24 / 9%) !important; }

/* ───────────────────────── 18. Table tops (owner, 27 Nov 2026): a tinted header strip that stays visible ─────────────────────────
 * The column header row is a soft blue strip with dark-blue medium labels, taller rows below it, a blue hover tint.
 * The header row sticks under the top bar while the page scrolls (ui-system.js marks tables .ui-sticky; tables inside
 * a sideways-scrolling wrapper follow the page with .ui-sticky-shift). A shadow under the strip shows rows sliding under. */
html body:is(.admin-app, .agency-manning-app) main table:not(.ui-keep, .ui-keep table, .wg-keep, [class*="matrix"], [class*="matrix"] table, [class*="calendar"] table, [class*="timeline"] table, [class*="gantt"] table, [class*="heatmap"], .rhb-table, .rhm-table, .rhf-table, .rh-mx table, .lc-cal, .cp-month-table, .cp-fleet-month-table, .bp-cba-wage-table, .cba-wage-table, .ep-drm-table, table.meta, table.record):not(#ui-none):not(#wg-none) > thead > tr > :is(th, td) {
    height: 44px !important;
    padding-top: 11px !important;
    padding-bottom: 11px !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    box-shadow: inset 0 0 0 9999px var(--ui-tbl-head-bg) !important;
}
html body:is(.admin-app, .agency-manning-app) main table:not(.ui-keep, .ui-keep table, .wg-keep, [class*="matrix"], [class*="matrix"] table, [class*="calendar"] table, [class*="timeline"] table, [class*="gantt"] table, [class*="heatmap"], .rhb-table, .rhm-table, .rhf-table, .rh-mx table, .lc-cal, .cp-month-table, .cp-fleet-month-table, .bp-cba-wage-table, .cba-wage-table, .ep-drm-table, table.meta, table.record):not(#ui-none):not(#wg-none) > tbody > tr > td {
    padding-top: 13px !important;
    padding-bottom: 13px !important;
    border-bottom: 1px solid var(--ui-divider) !important;
}
html body:is(.admin-app, .agency-manning-app) main table:not(.ui-keep, .ui-keep table, .wg-keep, [class*="matrix"], [class*="matrix"] table, [class*="calendar"] table, [class*="timeline"] table, [class*="gantt"] table, [class*="heatmap"], .rhb-table, .rhm-table, .rhf-table, .rh-mx table, .lc-cal):not(#ui-none):not(#wg-none) > tbody > tr:hover > td {
    background-color: rgb(47 99 232 / 6%) !important;
}
/* sticky header without the JS helper: any data table directly in a card or the page */
html body:is(.admin-app, .agency-manning-app) main table:not(.ui-sticky, .ui-no-sticky, .ui-keep, .ui-keep table, .wg-keep, [class*="matrix"], [class*="calendar"] table, [class*="timeline"] table, [class*="gantt"] table, .rhb-table, .rhm-table, .rh-mx table, .lc-cal, dialog table, [role="dialog"] table, [class*="modal"] table, [class*="drawer"] table):not(#wg-none) > thead > tr > th {
    position: sticky;
    top: var(--admin-header-height, 44px);
    z-index: 5;
}
/* …but inside a box that scrolls sideways a sticky offset counts from that box, not the page, so the top-bar offset
 * pushed the header down over the first row (agency Crew Pool, 28 Nov 2026). These wrappers always scroll sideways
 * (admin-modern-tables.css): offset 0 there. On the agency pages table-sticky-lite.js marks any such table
 * .wg-th-inner and moves its header with the page (--wg-th-shift); on the office pages ui-system.js does this. */
html body:is(.admin-app, .agency-manning-app) main :is(.emp-table-wrap, .contracts-table-wrap, .modern-table-wrap, .pc-table-wrap, .cba-table-wrap, .admin-table-wrap) > table:not(.ui-sticky):not(#wg-none):not(#wg-x) > thead > tr > th,
html body:is(.admin-app, .agency-manning-app) main table.wg-th-inner:not(.ui-sticky):not(#wg-none):not(#wg-x) > thead > tr > :is(th, td) {
    top: 0 !important;
}
html body.agency-manning-app main table.wg-th-inner:not(.ui-sticky):not(#wg-none):not(#wg-x) > thead > tr > :is(th, td) {
    transform: translate3d(0, var(--wg-th-shift, 0px), 0);
}
/* the table card gets a clear frame so the strip reads as its top */
html body:is(.admin-app, .agency-manning-app) main :is(.emp-table-wrap, .table-wrap, .admin-table-wrap, .crew-table-wrap, .modern-table-wrap, .ui-table-scroll):not(.wg-keep):not(#wg-none) {
    border-radius: 20px !important;
    background: var(--wg-card) !important;
    box-shadow: 0 0 0 1px var(--wg-edge), 0 12px 32px rgb(17 19 24 / 7%) !important;
    padding: 6px !important;
}

/* Sidebar: the current page is a filled blue pill with white text (the app's selected tab) */
html body.admin-layout-sidebar[data-sidebar-skin="light"] .admin-nav-skin-open:not(#wg-none) :is(.admin-nav-leaf, .admin-nav-sub).active,
html body.agency-manning-app .agency-manning-rail a.active:not(#wg-none) {
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgb(37 99 235 / 28%) !important;
}
html body.admin-layout-sidebar[data-sidebar-skin="light"] .admin-nav-skin-open:not(#wg-none) :is(.admin-nav-leaf, .admin-nav-sub).active :is(span, svg, .icon-chip, .icon-nav, i) {
    color: #ffffff !important;
    fill: none;
}
html body.admin-layout-sidebar[data-sidebar-skin="light"] .admin-nav-skin-open:not(#wg-none) :is(.admin-nav-leaf, .admin-nav-sub).active img { filter: brightness(0) invert(1); }
html[data-theme="dark"] body.admin-app .admin-nav-skin-open:not(#ui-none):not(#wg-none) :is(.admin-nav-leaf, .admin-nav-sub).active {
    background: #2f63e8 !important;
    color: #ffffff !important;
}
/* cards: a touch more lift so they read as floating panes on the wash */
html body:is(.admin-app, .agency-manning-app, .crew-app) {
    --wg-shadow: 0 1px 0 rgb(255 255 255 / 70%) inset, 0 10px 30px rgb(17 19 24 / 7%);
}

/* ───────────────────────── 19. Dashboard (home): same blocks in the same places, app-sized type ─────────────────────────
 * The dashboard used 9–11px text. The app reads at 13–15px with 26–28px numbers, so the type steps up and the
 * outer white box goes away: tiles and panels float on the wash as separate frosted cards. */
html body.admin-app main { font-size: 14px; }
html body.admin-app main .ops-overview:not(#wg-none) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}
html body.admin-app main .ops-kpis:not(#wg-none) { gap: 12px !important; padding: 0 0 12px !important; background: transparent !important; }
html body.admin-app main .ops-kpis > .ops-kpi:not(#wg-none) { padding: 14px 16px !important; border-radius: 20px !important; }
html body.admin-app main .ops-kpis > .ops-kpi:not(#wg-none) .label { font-size: 13px !important; line-height: 1.3 !important; }
html body.admin-app main .ops-kpis > .ops-kpi:not(#wg-none) .value { font-size: 28px !important; line-height: 1.15 !important; margin: 4px 0 2px !important; font-weight: 500 !important; }
html body.admin-app main .ops-kpis > .ops-kpi:not(#wg-none) .sub { font-size: 12px !important; color: var(--wg-muted) !important; text-transform: none !important; letter-spacing: 0 !important; }
html body.admin-app main .ops-grid:not(#wg-none) { gap: 12px !important; background: transparent !important; padding: 0 !important; }
html body.admin-app main .ops-panel:not(#wg-none) {
    background: var(--wg-card) !important;
    border: 1px solid var(--wg-card-line) !important;
    border-radius: 20px !important;
    box-shadow: 0 0 0 1px var(--wg-edge), var(--wg-shadow) !important;
}
html body.admin-app main .ops-panel-head:not(#wg-none) { padding: 14px 16px 10px !important; border-bottom: 0 !important; background: transparent !important; }
html body.admin-app main .ops-panel-head:not(#wg-none) h4 { font-size: 15px !important; letter-spacing: -0.01em; }
html body.admin-app main .ops-panel-head:not(#wg-none) p { font-size: 12.5px !important; color: var(--wg-muted) !important; }
html body.admin-app main .ops-panel-head:not(#wg-none) p a { font-size: 12.5px !important; }
html body.admin-app main .ops-bar-row > span:first-child { font-size: 13.5px !important; font-weight: 400 !important; }
html body.admin-app main .ops-bar-row :is(strong, b, .ops-row-count) { font-size: 14px !important; }
html body.admin-app main .ops-bars :is(.ops-bar, [class*="track"]) { height: 8px !important; border-radius: 999px !important; }
/* AI overview: summary counters as a soft tile row, findings as list rows */
html body.admin-app main .ops-smart-summary:not(#wg-none) { gap: 8px !important; padding: 0 12px 12px !important; border: 0 !important; background: transparent !important; }
html body.admin-app main .ops-smart-chip:not(#wg-none) {
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--wg-fill) !important;
    padding: 10px 8px !important;
}
html body.admin-app main .ops-smart-chip:not(#wg-none) strong { font-size: 20px !important; line-height: 1.2 !important; }
html body.admin-app main .ops-smart-chip:not(#wg-none) span { font-size: 12px !important; text-transform: none !important; letter-spacing: 0 !important; }
html body.admin-app main .ops-smart-finding:not(#wg-none) { padding: 12px 16px !important; }
html body.admin-app main .ops-smart-finding-kicker:not(#wg-none),
html body.admin-app main .ops-smart-finding-area:not(#wg-none) {
    font-size: 11.5px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    border-radius: 999px !important;
}
html body.admin-app main .ops-smart-finding-copy:not(#wg-none) strong,
html body.admin-app main .ops-smart-finding-text:not(#wg-none) { font-size: 14px !important; line-height: 1.4 !important; }
html body.admin-app main .ops-smart-finding-copy:not(#wg-none) small { font-size: 12.5px !important; color: var(--wg-muted) !important; }
html body.admin-app main :is(.ops-smart-why, .ops-smart-act):not(#wg-none) { font-size: 11.5px !important; border-radius: 999px !important; padding: 3px 10px !important; }
html body.admin-app main .ops-smart-finding-new:not(#wg-none) { font-size: 11px !important; text-transform: none !important; }
html body.admin-app main .ops-smart-more:not(#wg-none) { font-size: 12.5px !important; }
html body.admin-app main .ops-smart-empty:not(#wg-none) span { font-size: 12.5px !important; }
/* rank board under the panels */
html body.admin-app main .dash-rank-col:not(#wg-none) h5 { font-size: 13px !important; text-transform: none !important; letter-spacing: 0 !important; }
html body.admin-app main :is(.dash-rank-row, .dash-rank-foot, .dash-rank-total):not(#wg-none) { font-size: 13px !important; }
html body.admin-app main :is(.dash-rank-row span:first-child, .dash-rank-total):not(#wg-none) { font-size: 13px !important; }

/* ───────────────────────── 20. Floating glass panels (owner, 27 Nov 2026) ─────────────────────────
 * Dribbble "Glassmorphism Dashboard" (Leon Abramovic, dribbble.com/shots/25345989): the sidebar and the page sit as
 * rounded frosted panels over a soft colour backdrop. Behance "Yacht Crew Center CRM" (Ali Junaid,
 * behance.net/gallery/247186513): pastel tinted stat tiles with a coloured number. Every block keeps its place. */
html body.admin-app.admin-layout-sidebar {
    --wg-wash:
        radial-gradient(70% 60% at 0% 0%, rgb(47 99 232 / 26%) 0%, transparent 62%),
        radial-gradient(60% 55% at 100% 0%, rgb(20 184 166 / 18%) 0%, transparent 60%),
        radial-gradient(70% 60% at 85% 100%, rgb(139 92 246 / 18%) 0%, transparent 62%),
        radial-gradient(60% 50% at 10% 100%, rgb(245 158 11 / 12%) 0%, transparent 60%),
        #eef1f8;
}
/* top bar: no hard edge, it floats on the backdrop */
html body.admin-app.admin-layout-sidebar header.admin-header:not(#ui-none):not(#wg-none) { border-bottom: 0 !important; }
html body.admin-app.admin-layout-sidebar header.admin-header:not(#wg-none)::before { background: rgb(238 241 248 / 55%); }
html[data-theme="dark"] body.admin-app.admin-layout-sidebar header.admin-header:not(#wg-none)::before { background: rgb(14 15 18 / 55%); }
/* The page content sits straight on the moving backdrop: no extra box behind it (owner, 27 Nov 2026). */
html body.admin-app.admin-layout-sidebar main.container:not(#ui-none):not(#wg-none),
html body.admin-app.admin-layout-sidebar main.container-full:not(#ui-none):not(#wg-none) {
    background: transparent !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-bottom: 28px !important;
}
@media (max-width: 900px) {
    html body.admin-app.admin-layout-sidebar main.container:not(#ui-none):not(#wg-none),
    html body.admin-app.admin-layout-sidebar main.container-full:not(#ui-none):not(#wg-none) {
        padding-left: 12px !important; padding-right: 12px !important;
    }
}
/* the backdrop moves: four soft colour blobs drift slowly behind the glass (the Dribbble shot's flowing backdrop) */
@keyframes wg-drift {
    0%   { background-position: 0% 0%, 100% 0%, 85% 100%, 0% 100%; }
    50%  { background-position: 30% 20%, 70% 30%, 60% 70%, 25% 80%; }
    100% { background-position: 0% 0%, 100% 0%, 85% 100%, 0% 100%; }
}
html body.admin-app.admin-layout-sidebar::before {
    background:
        radial-gradient(closest-side, rgb(47 99 232 / 38%), transparent) 0% 0% / 70vw 70vh no-repeat,
        radial-gradient(closest-side, rgb(20 184 166 / 30%), transparent) 100% 0% / 60vw 60vh no-repeat,
        radial-gradient(closest-side, rgb(139 92 246 / 30%), transparent) 85% 100% / 70vw 70vh no-repeat,
        radial-gradient(closest-side, rgb(251 146 60 / 24%), transparent) 0% 100% / 60vw 60vh no-repeat,
        #eef1f8;
    animation: wg-drift 38s ease-in-out infinite;
}
html[data-theme="dark"] body.admin-app.admin-layout-sidebar::before {
    background:
        radial-gradient(closest-side, rgb(61 107 245 / 34%), transparent) 0% 0% / 70vw 70vh no-repeat,
        radial-gradient(closest-side, rgb(20 184 166 / 22%), transparent) 100% 0% / 60vw 60vh no-repeat,
        radial-gradient(closest-side, rgb(139 92 246 / 26%), transparent) 85% 100% / 70vw 70vh no-repeat,
        radial-gradient(closest-side, rgb(251 146 60 / 14%), transparent) 0% 100% / 60vw 60vh no-repeat,
        #0b0c10;
}
/* dashboard greeting: plain text, no card */
html body.admin-app main .db-greet:not(#wg-none) { margin: 6px 0 14px !important; font-size: 26px !important; line-height: 1.2 !important; letter-spacing: -0.02em; color: var(--wg-text); }
/* pastel stat tiles (dashboard and the KPI strips), the number in the tile's colour */
html body.admin-app main .ops-kpis > .ops-kpi:not(#wg-none) { border-color: rgb(255 255 255 / 90%) !important; }
html[data-theme="dark"] body.admin-app main .ops-kpis > .ops-kpi:nth-child(n):not(#ui-none):not(#wg-none) { background: var(--wg-card) !important; border-color: var(--wg-card-line) !important; }
html body.admin-app main :is(.ui-kpi-auto, .ui-kpi):not(#ui-none):not(#wg-none) {
    background: linear-gradient(160deg, color-mix(in srgb, var(--kpi-c, #2f63e8) 13%, white), color-mix(in srgb, var(--kpi-c, #2f63e8) 4%, white)) !important;
    border-color: rgb(255 255 255 / 90%) !important;
}
html[data-theme="dark"] body.admin-app main :is(.ui-kpi-auto, .ui-kpi):not(#ui-none):not(#wg-none) { background: var(--wg-card) !important; }
/* cards inside the page pane: brighter white so they lift off it */
html body.admin-app.admin-layout-sidebar { --wg-card: rgb(255 255 255 / 86%); }
html[data-theme="dark"] body.admin-app.admin-layout-sidebar { --wg-card: rgb(34 35 41 / 80%); }

/* ───────────────────────── 22. One filter bar everywhere + no whole-page boxes (owner, 27 Nov 2026) ─────────────────────────
 * Every list page filters through a GET form; each page had its own look (white box or none, UPPERCASE or normal labels,
 * 30–36px fields, black or blue Apply). They now share one: no box around the bar, small normal-case labels, 38px
 * rounded fields (search as a pill), Apply as a blue pill, Reset/Clear as a grey pill. Layout and fields are untouched. */
html body:is(.admin-app, .agency-manning-app) main form:is([method="get" i], :not([method])):not(.ui-keep *, .wg-keep, .wg-keep *, table *, dialog *, [role="dialog"] *, [class*="modal"] *, .period-picker *, .admin-header *):has(select, input[type="search"], input[type="text"], input[type="date"], input[type="month"]):not(#wg-none),
html body:is(.admin-app, .agency-manning-app) main form:is([method="get" i], :not([method])):not(.ui-keep *, .wg-keep, table *, dialog *, [role="dialog"] *, [class*="modal"] *, .period-picker *):has(select, input[type="search"], input[type="text"]) :is(.filter-grid, [class*="toolbar"], [class*="-fields"], [class*="filter-row"], [class*="-filters"]):not(#wg-none),
html body:is(.admin-app, .agency-manning-app) main :is(.filter-panel, .vs-filters, .vessel-filters, [class$="-filter-card"], [class$="-filters-card"], .dv-tools, .rhf-filter, .pa-filters, .lc-toolbar, .fin-filter-form, .ah-tb-form, .cpt-filters, .pc-filter, .emp-filters, .ui-filterbar):not(#ui-none):not(#wg-none) {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
/* the white box some pages draw around their filter form */
html body:is(.admin-app, .agency-manning-app) main :is(div, section):has(> form[method="get" i]:only-child):not(table *, .ui-keep *, .wg-keep, [class*="modal"], dialog *):not(#wg-none) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
html body:is(.admin-app, .agency-manning-app) main form[method="get" i]:not(.period-picker *, table *, [class*="modal"] *) label:not(:has(input[type="checkbox"], input[type="radio"])):not(#wg-none),
html body:is(.admin-app, .agency-manning-app) main form[method="get" i]:not(.period-picker *, table *, [class*="modal"] *) :is([class$="-label"], [class*="field-label"]):not(#wg-none) {
    font-size: 12px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: var(--wg-muted) !important;
    font-weight: 500 !important;
}
html body:is(.admin-app, .agency-manning-app) main form[method="get" i]:not(.period-picker *, table *, [class*="modal"] *) :is(select, input:is([type="search"], [type="text"], [type="date"], [type="month"], [type="number"], [type="email"], :not([type]))):not(#ui-none):not(#wg-none) {
    height: 38px !important;
    min-height: 38px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: 1px solid var(--wg-input-line) !important;
    border-radius: 12px !important;
    background-color: var(--wg-card-solid) !important;
    font-size: 13.5px !important;
    box-shadow: none !important;
}
html body:is(.admin-app, .agency-manning-app) main form[method="get" i]:not(.period-picker *, table *, [class*="modal"] *) input:is([type="search"], [name="q"], [name="search"], [placeholder^="Search" i], [placeholder*="name" i]):not(#ui-none):not(#wg-none) { border-radius: 999px !important; }
html body:is(.admin-app, .agency-manning-app) main form[method="get" i]:not(.period-picker *, table *, [class*="modal"] *) :is(button[type="submit"], button:not([type]), input[type="submit"]):not([class*="ghost"], [class*="secondary"], [class*="reset"], [class*="clear"], [class*="more"], [class*="toggle"], [aria-label], [class*="icon"], [class*="seg"], .ui-period__step):not(#ui-none):not(#wg-none) {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    box-shadow: 0 6px 14px rgb(37 99 235 / 22%) !important;
}
html body:is(.admin-app, .agency-manning-app) main form[method="get" i]:not(.period-picker *, table *, [class*="modal"] *) :is(a, button):is([class*="reset"], [class*="clear"], [class*="ghost"], [class*="secondary"]):not(#ui-none):not(#wg-none),
html body:is(.admin-app, .agency-manning-app) main form[method="get" i]:not(.period-picker *, table *, [class*="modal"] *) a:is([href$="?"], [class*="btn"]):not([class*="primary"]):not(#ui-none):not(#wg-none) {
    display: inline-flex !important;
    align-items: center;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--wg-fill) !important;
    color: var(--wg-text) !important;
    text-decoration: none !important;
    font-size: 13.5px !important;
    box-shadow: none !important;
}

/* whole-page wrapper boxes: the page sits straight on the background, its own cards stay */
html body.admin-app main :is(.payroll-shell, .contracts-shell, .trv-panel, .kpi-page, .msa-header, .acp-card, .cp-shell, .ops-overview):not(#ui-none):not(#wg-none) {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
}
html body.admin-app main :is(.payroll-shell, .contracts-shell, .trv-panel, .kpi-page, .acp-card, .cp-shell):not(#ui-none):not(#wg-none) { padding-left: 0 !important; padding-right: 0 !important; }
html body.admin-app main :is(.payroll-shell-head, .trv-panel-head):not(#wg-none) { background: transparent !important; border: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
html body.admin-app main .kpi-top:not(#wg-none) { background: transparent !important; border: 0 !important; box-shadow: none !important; }

/* ───────────────────────── 23. Page consistency pass (owner, 27 Nov 2026) ─────────────────────────
 * One page-title style, no description lines under titles, no stray header rules, no box inside a box, full width. */
/* every page title looks the same: 26px, medium, dark ink (some pages used 15px h2s or 21.6px bold divs) */
html body.admin-app main :is(h1, .acp-h1, .crq-h1, .fleet-head > h2, .payroll-shell-head > h2, .cpa-head > h2, .msa-header h2, .kpi-top h1, .fin-title, [class$="-page-title"]):not(.wg-keep, dialog *, [role="dialog"] *, [class*="modal"] *, .ep-hero *, table *, .db-greet):not(#ui-none):not(#wg-none) {
    font-size: 26px !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    letter-spacing: -0.02em !important;
    color: var(--wg-text) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    text-transform: none !important;
}
/* no description line under a page title (only some pages had one) */
html body.admin-app main :is(h1 + p, h1 + .muted, h1 + [class$="-sub"], .fin-sub, .cal-page-sub, .kpi-top-title > p, .um-head-text > p, h1 + [class$="-subtitle"], .ui-eyebrow, [class$="-eyebrow"], .ui-keep-subtitle, .aa-sub, .crq-sub, .cpt-sub, .pc-sub, .ctp-subtitle, .ctp-eyebrow, .compliance-toolbar-hint, .du-head-main > p, .bn-head-text > p, .dashnote-head p, .stg-head-text > p, .contracts-hero-main > p, .rh-hero > p):not(.wg-keep, dialog *, [role="dialog"] *, [class*="modal"] *, table *):not(#wg-none) {
    display: none !important;
}
/* stray rules under page headers */
html body.admin-app main :is(.ctp-header, .cp-topbar, .acp-card-hdr, .payroll-shell-head, .trv-panel-head, .fleet-head, .emp-head, .apx-head, .iv-head, .aa-head, .pa-head-row, .ncv-top, .compliance-toolbar, .bn-head, .dashnote-head, .stg-head):not(#wg-none) {
    border-bottom: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}
/* inner limits that kept some pages narrower than the rest */
html body.admin-app main :is(.acp-app, .crq, .dashnote-wrap, .crq-sub):not(#wg-none) { max-width: none !important; width: 100% !important; }
/* a scroll box or card inside a card is not drawn again */
html body.admin-app main :is(.ui-card-lift, .card, .panel, [class$="-card"], [class*="-card "], [class$="-panel"], [class*="-panel "], .cp-ov-attention, .cp-ov-heat) :is(.ui-table-scroll, .table-wrap, .admin-table-wrap, .crew-table-wrap, .modern-table-wrap, [class$="table-wrap"], [class*="table-wrap "]):not(#ui-none):not(#wg-none) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}
/* crew planning: the title row, the tab strip and the page section had their own white fills */
html body.admin-app main :is(.cp-brand, .cp-top-actions, .cp-topbar > div, .cp-planning-view, .cp-reference-overview):not(#ui-none):not(#wg-none) {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}
html body.admin-app main :is(.cp-ov-attention, .cp-ov-heat):not(#ui-none):not(#wg-none) {
    background: var(--wg-card) !important;
    border: 1px solid var(--wg-card-line) !important;
    border-radius: var(--wg-r-card) !important;
    box-shadow: 0 0 0 1px var(--wg-edge), var(--wg-shadow) !important;
    margin-bottom: 14px !important;
    overflow: hidden;
}
/* table title bars (crew planning schedule and others) use the same sidebar colour as the table tops */
html body.admin-app main .ui-tbl-title:not(#ui-none):not(#wg-none) { background: var(--ui-tbl-head-bg) !important; box-shadow: inset 0 0 0 9999px var(--ui-tbl-head-bg) !important; color: #ffffff !important; border-radius: 0 !important; margin-bottom: 0 !important; }
html body.admin-app main .ui-tbl-title:not(#ui-none):not(#wg-none) :is(h2, h3, h4, span, strong, small, p) { color: #ffffff !important; }
/* the crew planning roster header joins the other tables: soft blue strip instead of black */
html body.admin-app main :is(#cp-fleet-table, .cp-ov-table-wrap table, .cp-rank-table, .ccw-roster-table) > thead > tr > :is(th, td):not(#ui-none):not(#wg-none) {
    background: var(--ui-tbl-head-bg) !important;
    box-shadow: inset 0 0 0 9999px var(--ui-tbl-head-bg) !important;
    color: var(--ui-tbl-head-text) !important;
    border-color: transparent !important;
}
/* table header text always readable on the strip (some pages painted it white for their old black header) */
html body.admin-app main table:not(.ui-keep, .wg-keep, [class*="matrix"], [class*="calendar"] table, .rhb-table, .rhm-table, .lc-cal):not(#ui-none):not(#wg-none) > thead > tr > :is(th, td),
html body.admin-app main table:not(.ui-keep, .wg-keep, [class*="matrix"], [class*="calendar"] table, .rhb-table, .rhm-table, .lc-cal):not(#ui-none):not(#wg-none) > thead > tr > :is(th, td) :is(a, span, button:not([class*="btn"])) {
    color: var(--ui-tbl-head-text) !important;
}
/* vendor module: stage tags, month and filters in one row */
html body.admin-app main .tvb-filterrow:not(#wg-none) { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px !important; margin-bottom: 12px !important; }
html body.admin-app main .tvb-filterrow > .tvb-tabs:not(#wg-none) { display: inline-flex !important; flex-wrap: wrap; gap: 6px !important; margin: 0 !important; padding: 0 !important; background: transparent !important; }
html body.admin-app main .tvb-filterrow > .tvb-tabs .kpi-accent:not(#ui-none):not(#wg-none) {
    display: inline-flex !important; align-items: center; gap: 6px; min-height: 34px !important; padding: 0 12px !important;
    border-radius: 999px !important; background: var(--wg-card) !important; border: 1px solid var(--wg-card-line) !important;
    box-shadow: 0 0 0 1px var(--wg-edge) !important;
}
html body.admin-app main .tvb-filterrow > .tvb-tabs .kpi-accent.is-on:not(#ui-none):not(#wg-none) { background: #2563eb !important; color: #fff !important; }
html body.admin-app main .tvb-filterrow > .tvb-tabs .kpi-accent.is-on :is(span, b, small):not(#ui-none):not(#wg-none) { color: #fff !important; }
html body.admin-app main .tvb-filterrow > .tvb-tabs .kpi-accent__sub { display: none !important; }
html body.admin-app main .tvb-filterrow > .tvb-tabs :is(.kpi-accent__label, .kpi-accent__value):not(#wg-none) { font-size: 13px !important; line-height: 1 !important; margin: 0 !important; }
html body.admin-app main .tvb-filterrow .tvb-filters:not(#wg-none) { display: inline-flex !important; flex-wrap: wrap; gap: 8px !important; align-items: center; margin: 0 !important; }
/* certificate verification: Countries / History beside the search box */
html body.admin-app main .ncv-search-row:not(#wg-none) { flex-wrap: nowrap !important; align-items: center; }
html body.admin-app main .ncv-search-row .ncv-tabs:not(#wg-none) { margin: 0 !important; flex: none; }
/* status tag strips sit close to what follows (Learning dashboard and others had a tall gap) */
html body.admin-app main :is(.kpi-strip.kpi-compact, .ld-kpis-compact):not(.tvb-tabs):not(#wg-none) { margin-bottom: 12px !important; }
html body.admin-app main :is(.ld-grid, .ld-cards, .ld-row):not(#wg-none) { margin-top: 0 !important; gap: 12px !important; }

/* ───────────────────────── 24. Same width, same gaps, same tiles, same headings (owner, 27 Nov 2026) ───────────────────────── */
/* one side margin on every page: the page area has 24px; page wrappers add none of their own (most added 16–24px more) */
html body.admin-app.admin-layout-sidebar main.container:not(#ui-none):not(#wg-none),
html body.admin-app.admin-layout-sidebar main.container-full:not(#ui-none):not(#wg-none) { padding-left: 24px !important; padding-right: 24px !important; }
html body.admin-app main:is(.container, .container-full) > :is(.admin-db-wrap, .compliance-shell, .ncv-shell, .vessel-wrap, .ctp-page, .acp-app, .crq, .aa-wrap, .cal-shell, .lc-wrap, .emp-wrap, .cpt-wrap, .pc, .dv-wrap, .iv-page, .ah-page, .payroll-panel, .cpa, .pc-page, .bp, .fin-wrap, .du-page, .sd, .csl-wrap, .admin-travel, .bn-page, .stg-page, .cp-page, .kpi-page, .ld-page, .pa-page, .rh-page, .contracts-shell, .msa-page, .tvb, [class$="-wrap"], [class$="-page"], [class$="-shell"], [class$="-app"]):not(#ui-none):not(#wg-none) {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
}
@media (max-width: 900px) {
    html body.admin-app.admin-layout-sidebar main.container:not(#ui-none):not(#wg-none),
    html body.admin-app.admin-layout-sidebar main.container-full:not(#ui-none):not(#wg-none) { padding-left: 12px !important; padding-right: 12px !important; }
}
/* one gap between sections: 10px (compliance had 22px, the dashboard 14–20px) */
html body.admin-app main .admin-db-wrap:not(#wg-none) { --db-gap: 10px !important; }
html body.admin-app main .ops-kpis:not(#wg-none) { padding-bottom: 10px !important; gap: 10px !important; }
html body.admin-app main .ops-grid:not(#wg-none) { gap: 10px !important; }
html body.admin-app main .db-greet:not(#wg-none) { margin-bottom: 10px !important; }
html body.admin-app main :is(.compliance-page, .compliance-list-view):not(#wg-none) { gap: 10px !important; }
html body.admin-app main :is(.compliance-page, .compliance-list-view) > *:not(#wg-none) { margin-top: 0 !important; margin-bottom: 0 !important; }
html body.admin-app main :is(.ncv-top, .cp-topbar, .fleet-head, .emp-head, .apx-head, .iv-head, .aa-head):not(#wg-none) { margin-bottom: 10px !important; }
html body.admin-app main :is(.cp-ov-attention, .cp-ov-heat):not(#ui-none):not(#wg-none) { margin-bottom: 10px !important; }

/* one number tile everywhere: the dashboard's pastel tile (label 13px, number 28px, no coloured side or top bar) */
html body.admin-app main :is(.compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):not(.wg-keep):not(#ui-none):not(#wg-none) {
    border: 1px solid rgb(255 255 255 / 90%) !important;
    border-radius: 20px !important;
    box-shadow: 0 0 0 1px var(--wg-edge), var(--wg-shadow) !important;
    padding: 14px 16px !important;
}
html[data-theme="dark"] body.admin-app main :is(.compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(n):not(#ui-none):not(#wg-none) { background: var(--wg-card) !important; border-color: var(--wg-card-line) !important; }
html body.admin-app main :is(.compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto, .ops-kpi):not(#ui-none):not(#wg-none) :is(.label, .compliance-kpi-label, .aa-tile-l, .aa-tile-k, .kpi-label, .kpi-title, .ui-kpi-label, [class$="-label"], h3, h4) {
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: var(--wg-muted) !important;
}
html body.admin-app main :is(.compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto, .ops-kpi):not(#ui-none):not(#wg-none) :is(.value, .compliance-kpi-val, .aa-tile-v, .kpi-value, .ui-kpi-num, .ui-kpi-value) {
    font-size: 28px !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
}

html body.admin-app main :is(.compliance-kpi, .aa-tile, .kpi-card):is(*, .good, .warn, .critical):not(#ui-none):not(#wg-none) { border-left: 1px solid rgb(255 255 255 / 90%) !important; border-top-width: 1px !important; }
html body.admin-app main :is(.compliance-kpi, .aa-tile, .kpi-card)::before { display: none !important; }

/* Fleet List: one clear box per vessel */
html body.admin-app main .fleet-vessel-card:not(#ui-none):not(#wg-none) {
    background: var(--wg-card) !important;
    border: 1px solid var(--wg-card-line) !important;
    border-radius: 20px !important;
    box-shadow: 0 0 0 1px var(--wg-edge), 0 10px 28px rgb(17 19 24 / 7%) !important;
    padding: 14px 16px !important;
    overflow: hidden;
}
html body.admin-app main .fleet-vessel-card:not(#ui-none):not(#wg-none) :is([class*="coverage"], [class*="staff"], [class*="contacts"]):is(section, div[class*="-box"], div[class*="-panel"], div[class*="-card"]) {
    background: var(--wg-fill) !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 14px !important;
}
html body.admin-app main .fleet-card-grid:not(#wg-none) { gap: 12px !important; align-items: stretch; }

/* section headings inside cards: one size and weight on every page (pages used 11–18px, 500–800) */
html body.admin-app main :is(.ui-card-lift, .card, .panel, section, [class$="-card"], [class*="-card "], [class$="-panel"], [class*="-panel "]) :is(h2, h3, [class$="-card-title"], [class$="-panel-title"], [class$="-sec-title"], .ops-panel-head h4):not(.wg-keep, table *, [class*="kpi"] *, [class*="tile"] *, .ep-hero *):not(#wg-none) {
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    line-height: 1.3 !important;
}

/* ───────────────────────── 25. Plain background, glass on the content (owner, 27 Nov 2026) ─────────────────────────
 * The owner did not like the colour gradient behind the pages: the background is one calm plain colour now, and the
 * glass lives on the content itself — cards, tiles, tab strips and the selected tab get a frosted white fill with a
 * bright top edge, a faint blue sheen and a soft shadow. The page sits right next to the sidebar. */
html body:is(.admin-app, .agency-manning-app, .crew-app)::before,
html body.admin-app.admin-layout-sidebar::before {
    background: #f3f5f9 !important;
    animation: none !important;
}
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app, .crew-app)::before,
html[data-theme="dark"] body.admin-app.admin-layout-sidebar::before { background: #0e0f12 !important; }
html body.admin-app.admin-layout-sidebar header.admin-header:not(#wg-none)::before { background: rgb(243 245 249 / 78%) !important; }
html[data-theme="dark"] body.admin-app.admin-layout-sidebar header.admin-header:not(#wg-none)::before { background: rgb(14 15 18 / 78%) !important; }

/* page right beside the sidebar: one 20px margin, no extra gap */
html body.admin-app.admin-layout-sidebar main.container:not(#ui-none):not(#wg-none),
html body.admin-app.admin-layout-sidebar main.container-full:not(#ui-none):not(#wg-none) {
    margin-left: var(--admin-sidebar-width) !important;
    margin-right: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}
@media (max-width: 900px) {
    html body.admin-app.admin-layout-sidebar main.container:not(#ui-none):not(#wg-none),
    html body.admin-app.admin-layout-sidebar main.container-full:not(#ui-none):not(#wg-none) { margin-left: 0 !important; padding-left: 12px !important; padding-right: 12px !important; }
}

/* the glass surface */
html body:is(.admin-app, .agency-manning-app, .crew-app) {
    --wg-glass-fill: linear-gradient(180deg, rgb(255 255 255 / 96%) 0%, rgb(255 255 255 / 78%) 100%);
    --wg-glass-sheen: radial-gradient(120% 90% at 0% 0%, rgb(47 99 232 / 7%) 0%, transparent 55%), radial-gradient(90% 70% at 100% 0%, rgb(20 184 166 / 5%) 0%, transparent 55%);
    --wg-glass-shadow: inset 0 1px 0 rgb(255 255 255 / 100%), 0 0 0 1px rgb(17 19 24 / 6%), 0 10px 28px rgb(17 19 24 / 7%), 0 2px 6px rgb(17 19 24 / 4%);
    --wg-card: rgb(255 255 255 / 82%);
}
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app, .crew-app) {
    --wg-glass-fill: linear-gradient(180deg, rgb(40 42 50 / 92%) 0%, rgb(28 29 35 / 82%) 100%);
    --wg-glass-sheen: radial-gradient(120% 90% at 0% 0%, rgb(109 147 255 / 12%) 0%, transparent 55%);
    --wg-glass-shadow: inset 0 1px 0 rgb(255 255 255 / 8%), 0 0 0 1px rgb(0 0 0 / 40%), 0 12px 30px rgb(0 0 0 / 40%);
}
html body:is(.admin-app, .agency-manning-app) main :is(
    .card, .panel, .ui-card, .ui-card-lift, .crew-card, .co-card, .ctp-card, .ep-card, .ep-section, .cm-panel, .cba-panel, .bp-panel, .ops-panel,
    .emp-table-wrap, .table-wrap, .admin-table-wrap, .crew-table-wrap, .modern-table-wrap, .ui-table-scroll,
    .fleet-vessel-card, .cp-ov-attention, .cp-ov-heat, .ld-card, .tvb-card, .ncv-panel, .acp-card, .crq-card, .stg-card, .dvl-crewlist, .compliance-card, .lms-card, .db-card
):not(.ui-keep *, .wg-keep, .wg-keep *, :is(.card, .panel, .ui-card-lift, [class$="-card"], [class$="-panel"]) *):not(#ui-none):not(#wg-none) {
    background-color: transparent !important;
    background-image: var(--wg-glass-sheen), var(--wg-glass-fill) !important;
    border: 1px solid rgb(255 255 255 / 92%) !important;
    box-shadow: var(--wg-glass-shadow) !important;
}

/* tab strips: a frosted track; the selected tab is a raised glass pill with a blue edge; a press gives a small spring */
html body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs, .compliance-actions, [class$="-seg"], [class$="-toggle-group"]):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) {
    display: inline-flex !important;
    gap: 2px !important;
    padding: 4px !important;
    border: 1px solid rgb(255 255 255 / 90%) !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, rgb(255 255 255 / 70%), rgb(236 240 247 / 75%)) !important;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 100%), 0 0 0 1px rgb(17 19 24 / 6%), 0 4px 12px rgb(17 19 24 / 5%) !important;
}
html body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) > :is(a, button, [role="tab"], [class$="-tab"], [class*="__btn"]) {
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: var(--wg-text-2) !important;
    padding: 7px 14px !important;
    box-shadow: none !important;
    transition: background 0.25s ease, box-shadow 0.25s ease, color 0.2s ease, transform 0.2s var(--wg-spring) !important;
}
html body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) > :is(a, button, [role="tab"], [class$="-tab"], [class*="__btn"]):hover {
    background: rgb(255 255 255 / 60%) !important;
    color: var(--wg-text) !important;
}
html body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) > :is([aria-selected="true"], [aria-current="page"], .active, .is-active, .is-on, .on) {
    background: linear-gradient(180deg, #ffffff 0%, rgb(236 242 255 / 95%) 100%) !important;
    border-color: rgb(47 99 232 / 22%) !important;
    color: #1d3f9e !important;
    box-shadow: inset 0 1px 0 #ffffff, 0 6px 16px rgb(47 99 232 / 18%), 0 1px 2px rgb(17 19 24 / 8%) !important;
}
html body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) > :is(a, button, [role="tab"], [class$="-tab"], [class*="__btn"]):active { transform: scale(0.96); }
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs):not(#ui-none):not(#wg-none) {
    background: rgb(255 255 255 / 6%) !important; border-color: rgb(255 255 255 / 8%) !important; box-shadow: none !important;
}
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs):not(#ui-none):not(#wg-none) > :is([aria-selected="true"], [aria-current="page"], .active, .is-active, .is-on, .on) {
    background: linear-gradient(180deg, rgb(255 255 255 / 18%), rgb(255 255 255 / 8%)) !important; color: #fff !important; border-color: rgb(255 255 255 / 16%) !important;
}

/* sidebar: the current page is a glass pill on the brand colour */
html body.admin-layout-sidebar:not([data-sidebar-skin="light"]) .admin-nav-skin-open:not(#ui-none):not(#wg-none) :is(.admin-nav-leaf, .admin-nav-sub).active {
    background: linear-gradient(180deg, rgb(255 255 255 / 24%), rgb(255 255 255 / 10%)) !important;
    border: 1px solid rgb(255 255 255 / 22%) !important;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%), 0 6px 16px rgb(0 0 0 / 18%) !important;
    color: #ffffff !important;
}
html body.admin-layout-sidebar .admin-nav-skin-open:not(#ui-none):not(#wg-none) :is(.admin-nav-leaf, .admin-nav-sub):not(.active):hover {
    background: rgb(255 255 255 / 10%) !important;
}

/* icons inside the page read clearly: titles, row actions and small icon buttons */
html body.admin-app main h1 :is(svg, img):not(#wg-none) { width: 24px !important; height: 24px !important; flex: none; }
html body.admin-app main :is(.ncv-del, [class$="-del"], [class*="icon-btn"], [aria-label*="delete" i], [aria-label*="remove" i]):not(#wg-none) { color: #5b606b !important; opacity: 1 !important; }
html body.admin-app main :is(button, a) svg:not(#wg-none) { opacity: 1 !important; }

/* ───────────────────────── 26. White background, glass-screen content (owner, 27 Nov 2026) ─────────────────────────
 * White page; every card, panel and table reads as a pane of glass: a cool blue-tinted frosted fill, a bright white rim
 * with a thin blue outline, a diagonal light reflection across the pane and a soft blue shadow under it. */
html body:is(.admin-app, .agency-manning-app, .crew-app)::before,
html body.admin-app.admin-layout-sidebar::before { background: #ffffff !important; }
html:has(> body:is(.admin-app, .agency-manning-app, .crew-app)) { background: #ffffff; }
html body.admin-app.admin-layout-sidebar header.admin-header:not(#wg-none)::before { background: rgb(255 255 255 / 82%) !important; }
html body:is(.admin-app, .agency-manning-app, .crew-app) {
    --wg-glass-sheen: linear-gradient(115deg, rgb(255 255 255 / 0%) 28%, rgb(255 255 255 / 75%) 40%, rgb(255 255 255 / 0%) 52%);
    --wg-glass-fill: linear-gradient(160deg, rgb(230 239 255 / 88%) 0%, rgb(247 250 255 / 80%) 46%, rgb(236 243 255 / 86%) 100%);
    --wg-glass-shadow: inset 0 1px 0 #ffffff, inset 0 -1px 0 rgb(130 155 215 / 14%), 0 0 0 1px rgb(110 140 215 / 18%), 0 12px 32px rgb(40 70 150 / 10%), 0 2px 6px rgb(40 70 150 / 6%);
}
/* tab tracks and the selected tab: glass too */
html body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs, .compliance-actions, [class$="-seg"], [class$="-toggle-group"]):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) {
    background: linear-gradient(160deg, rgb(230 239 255 / 85%), rgb(246 249 255 / 80%)) !important;
    box-shadow: inset 0 1px 0 #ffffff, 0 0 0 1px rgb(110 140 215 / 18%), 0 6px 16px rgb(40 70 150 / 8%) !important;
}
html body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) > :is([aria-selected="true"], [aria-current="page"], .active, .is-active, .is-on, .on) {
    background: linear-gradient(115deg, rgb(255 255 255 / 0%) 25%, rgb(255 255 255 / 90%) 45%, rgb(255 255 255 / 0%) 65%), linear-gradient(180deg, #ffffff, rgb(225 236 255 / 95%)) !important;
}
/* number tiles keep their pastel colour and get the same reflection */
html body.admin-app main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):not(#ui-none):not(#wg-none) {
    box-shadow: inset 0 1px 0 #ffffff, 0 0 0 1px rgb(110 140 215 / 14%), 0 10px 26px rgb(40 70 150 / 9%) !important;
}
html body.admin-app main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):not(#ui-none):not(#wg-none) {
    position: relative;
    overflow: hidden;
}

/* ───────────────────────── 27. Travel: one header row (owner, 27 Nov 2026) ─────────────────────────
 * View switch · status chips · missing-ticket chip · month picker, all in one row (the Travel / Vendor module switch
 * is gone; the Vendor module has its own sidebar entry). */
html body.admin-app main .tvo-viewbar:not(#wg-none) { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px !important; margin: 0 0 12px !important; }
html body.admin-app main .tvo-viewbar > .kpi-strip:not(#wg-none) { display: inline-flex !important; flex-wrap: wrap; gap: 6px !important; margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
html body.admin-app main .tvo-viewbar > .kpi-strip .kpi-accent:not(#ui-none):not(#wg-none) {
    display: inline-flex !important; align-items: center; gap: 6px; min-height: 34px !important; padding: 0 12px !important;
    border-radius: 999px !important; border: 1px solid rgb(255 255 255 / 95%) !important;
    background: linear-gradient(160deg, rgb(230 239 255 / 88%), rgb(247 250 255 / 82%)) !important;
    box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgb(110 140 215 / 18%) !important;
}
html body.admin-app main .tvo-viewbar > .kpi-strip .kpi-accent.is-on:not(#ui-none):not(#wg-none) { background: #2563eb !important; }
html body.admin-app main .tvo-viewbar > .kpi-strip .kpi-accent.is-on :is(span, b):not(#ui-none):not(#wg-none) { color: #fff !important; }
html body.admin-app main .tvo-viewbar > .kpi-strip :is(.kpi-accent__label, .kpi-accent__value):not(#wg-none) { font-size: 13px !important; line-height: 1 !important; margin: 0 !important; }
html body.admin-app main .tvo-viewbar > .trv-viewbar-period:not(#wg-none) { margin-left: auto; display: inline-flex; align-items: center; }
html body.admin-app main .tvo-viewbar .tvo-chip-note:not(#wg-none) { display: none !important; }

/* ───────────────────────── 28. Neutral glass, sidebar-coloured table tops, full-width filters (owner, 27 Nov 2026) ─────────────────────────
 * Glass is clear, not blue: a white frosted pane with a crisp grey edge and a soft neutral shadow so it never melts into
 * the white page. Table title rows take the sidebar colour (and follow it when the company colour changes) and stay
 * pinned while scrolling. */
html body:is(.admin-app, .agency-manning-app, .crew-app) {
    --wg-glass-sheen: linear-gradient(115deg, rgb(255 255 255 / 0%) 30%, rgb(255 255 255 / 70%) 42%, rgb(255 255 255 / 0%) 54%);
    --wg-glass-fill: linear-gradient(180deg, rgb(255 255 255 / 96%) 0%, rgb(248 249 251 / 92%) 100%);
    --wg-glass-shadow: inset 0 1px 0 #ffffff, 0 0 0 1px rgb(17 19 24 / 9%), 0 1px 2px rgb(17 19 24 / 5%), 0 10px 28px rgb(17 19 24 / 8%);
    --wg-card-line: rgb(255 255 255 / 95%);
}
/* tab tracks: clear frosted grey; the selected tab a white raised pill */
html body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs, .compliance-actions, .pa-view-switch, [class$="-seg"], [class$="-toggle-group"]):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) {
    display: inline-flex !important;
    width: auto !important;
    background: linear-gradient(180deg, rgb(242 243 246 / 92%), rgb(233 235 239 / 90%)) !important;
    border: 1px solid rgb(255 255 255 / 90%) !important;
    box-shadow: inset 0 1px 2px rgb(17 19 24 / 6%), 0 0 0 1px rgb(17 19 24 / 6%) !important;
    padding: 4px !important;
    border-radius: 999px !important;
}
html body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs, .pa-view-switch):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) > :is(a, button) {
    border-radius: 999px !important; padding: 7px 14px !important; border: 1px solid transparent !important; background: transparent !important; color: var(--wg-text-2) !important; text-decoration: none !important;
}
html body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs, .pa-view-switch):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) > :is([aria-selected="true"], [aria-current="page"], .active, .is-active, .is-on, .on) {
    background: linear-gradient(115deg, rgb(255 255 255 / 0%) 25%, rgb(255 255 255 / 90%) 45%, rgb(255 255 255 / 0%) 65%), linear-gradient(180deg, #ffffff, #f7f8fa) !important;
    border-color: rgb(255 255 255 / 100%) !important;
    color: var(--wg-text) !important;
    box-shadow: inset 0 1px 0 #ffffff, 0 0 0 1px rgb(17 19 24 / 10%), 0 4px 12px rgb(17 19 24 / 12%) !important;
}
/* number tiles: a little more colour and a grey edge so they don't melt into the white */
html body.admin-app main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):not(#ui-none):not(#wg-none) {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 90%), 0 0 0 1px rgb(17 19 24 / 9%), 0 8px 22px rgb(17 19 24 / 7%) !important;
}

/* table title rows: the sidebar colour with white text; they follow the company colour when it changes */
html body:is(.admin-app, .agency-manning-app) {
    --ui-tbl-head-bg: var(--admin-sidebar-bg, #1e2a78);
    --ui-tbl-head-text: #ffffff;
}
html body:is(.admin-app, .agency-manning-app)[data-sidebar-skin="light"]:not([data-company-brand-locked="1"]) { --ui-tbl-head-bg: #1d4ed8; }
html body.admin-app main table:not(.ui-keep, .wg-keep, [class*="matrix"], [class*="calendar"] table, .rhb-table, .rhm-table, .lc-cal):not(#ui-none):not(#wg-none) > thead > tr > :is(th, td) :is(input[type="checkbox"]) { accent-color: #ffffff; }
html body.admin-app main table:not(.ui-keep, .wg-keep, [class*="matrix"], [class*="calendar"] table, .rhb-table, .rhm-table, .lc-cal):not(#ui-none):not(#wg-none) > thead > tr > :is(th, td) svg { color: #ffffff !important; }
/* a table inside its card runs edge to edge: the title row fills the top, the card's rounded corners clip it cleanly */
html body.admin-app main :is(.emp-table-wrap, .table-wrap, .admin-table-wrap, .crew-table-wrap, .modern-table-wrap, .ui-table-scroll, .tvb-table-wrap, [class$="table-wrap"]):not(#ui-none):not(#wg-none) {
    padding: 0 !important;
    overflow: auto !important;
    border-radius: 18px !important;
}
/* (title-row corners: see section 29) */
/* cards clip their own contents to their rounded corners (coloured rows no longer poke out of the curve) */
/* only on cards without pop-up menus inside, so row menus are never cut off */
html body.admin-app main :is(.fleet-vessel-card, .cp-ov-attention, .cp-ov-heat, .compliance-card):not(.ui-keep *, .wg-keep):not(#wg-none) { overflow: hidden; }

/* filters stretch across the full width: fields share the row, buttons keep their size */
html body.admin-app main :is(.pc-filters, .emp-filters, .cpt-filters, .ah-tb-form, .fin-filter-form, .pa-filters, .tvb-filters, .lc-toolbar-fields, .rhf-filter, .filter-grid):not(#wg-none) { width: 100% !important; }
html body.admin-app main .pc-filters:not(#wg-none) { display: flex !important; flex-wrap: wrap; gap: 8px !important; align-items: flex-end; }
html body.admin-app main .pc-filters:not(#wg-none) > label { flex: 1 1 150px; min-width: 0; }
html body.admin-app main .pc-filters:not(#wg-none) > label :is(select, input) { width: 100% !important; }
html body.admin-app main .pc-filters:not(#wg-none) > :is(details, button, a) { flex: none; }
/* port alerts: view switch first in the filter row; the line under the title goes */
html body.admin-app main .pa-filters:not(#wg-none) { display: flex !important; flex-wrap: wrap !important; align-items: flex-end; gap: 8px !important; overflow: visible !important; }
html body.admin-app main .pa-filters > label:not(#wg-none) { flex: 1 1 110px; min-width: 0; }
html body.admin-app main .pa-filters > .pa-filter-actions-wrap:not(#wg-none) { flex: none; display: inline-flex; align-items: flex-end; }
html body.admin-app main .pa-filters > label :is(select, input):not(#wg-none) { width: 100% !important; }
html body.admin-app main .pa-filters > .pa-view-switch:not(#wg-none) { flex: none; align-self: flex-end; margin: 0 !important; }
html body.admin-app main .pa-filter-panel:not(#wg-none) { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
html body.admin-app main .pa-head-sub:not(#wg-none) { display: none !important; }
html body.admin-app main .pa-filter-actions-label:not(#wg-none) { display: none !important; }
html body.admin-app main .pa-filter-actions:not(#wg-none) { display: inline-flex !important; gap: 8px !important; background: transparent !important; border: 0 !important; overflow: visible !important; }
html body.admin-app main .pa-filter-actions :is(button, a):not(#ui-none):not(#wg-none) { border-radius: 999px !important; height: 38px !important; padding: 0 16px !important; border: 0 !important; display: inline-flex; align-items: center; }
html body.admin-app main .pa-filter-actions button:not(#ui-none):not(#wg-none) { background: #2563eb !important; color: #fff !important; }
html body.admin-app main .pa-filter-actions .pa-btn-reset:not(#ui-none):not(#wg-none) { background: var(--wg-fill) !important; color: var(--wg-text) !important; }

/* ───────────────────────── 29. Simpler list pages (owner, 27 Nov 2026) ───────────────────────── */
/* tab strips: no grey track; plain labels, the selected one a white glass pill */
html body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs, .compliance-actions, .pa-view-switch, [class$="-seg"], [class$="-toggle-group"]):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    gap: 4px !important;
}
html body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs, .compliance-actions, .pa-view-switch):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) > :is(a, button):not(:is([aria-selected="true"], [aria-current="page"], .active, .is-active, .is-on, .on)):hover {
    background: rgb(17 19 24 / 5%) !important;
}
/* filter fields stand out on the white page */
html body:is(.admin-app, .agency-manning-app) main form[method="get" i]:not(.period-picker *, table *, [class*="modal"] *) :is(select, input:is([type="search"], [type="text"], [type="date"], [type="month"], [type="number"], [type="email"], :not([type]))):not(#ui-none):not(#wg-none),
html body:is(.admin-app, .agency-manning-app) main .emp-search-wrap:not(#wg-none) {
    border: 1px solid #cfd4dc !important;
    background-color: #ffffff !important;
    box-shadow: 0 1px 2px rgb(17 19 24 / 6%) !important;
}
html body:is(.admin-app, .agency-manning-app) main .emp-search-wrap:not(#wg-none) { border-radius: 999px !important; }
html body:is(.admin-app, .agency-manning-app) main .emp-search-wrap input:not(#ui-none):not(#wg-none) { border: 0 !important; box-shadow: none !important; }
/* blue title rows: rounded top corners on every table, wherever it sits (inside a padded panel or at the top of a card) */
html body.admin-app main table:not(#ui-none):not(#wg-none) > thead > tr > :is(th, td) { border-radius: 0 !important; }
html body.admin-app main table:not(.wg-keep, [class*="matrix"], [class*="calendar"] table, .rhb-table, .rhm-table, .rh-mx table, .lc-cal):not(#ui-none):not(#wg-none) > thead > tr:first-child > :is(th, td):first-child { border-top-left-radius: 12px !important; }
html body.admin-app main table:not(.wg-keep, [class*="matrix"], [class*="calendar"] table, .rhb-table, .rhm-table, .rh-mx table, .lc-cal):not(#ui-none):not(#wg-none) > thead > tr:first-child > :is(th, td):last-child { border-top-right-radius: 12px !important; }
html body.admin-app main table:not(.wg-keep, [class*="matrix"], [class*="calendar"] table, .rhb-table, .rhm-table, .rh-mx table, .lc-cal):not(#ui-none):not(#wg-none) { border-collapse: separate !important; border-spacing: 0 !important; }
/* Our Crew: the count and colour legend are a plain line above the table card */
html body.admin-app main .emp-table-panel:not(#ui-none):not(#wg-none) { background: transparent !important; background-image: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; overflow: visible !important; }
html body.admin-app main .emp-toolbar:not(#wg-none) { background: transparent !important; border: 0 !important; padding: 0 2px 8px !important; }
html body.admin-app main .emp-view-tabs-actions:not(#wg-none), html body.admin-app main .emp-head-actions:not(#wg-none) { display: inline-flex !important; align-items: center; gap: 8px; }
html body.admin-app main .emp-view-tabs-actions .emp-toolbar-actions:not(#wg-none), html body.admin-app main .emp-head-actions .emp-toolbar-actions:not(#wg-none) { display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important; }
/* Apply stays visible on every filter row (owner, 27 Nov 2026: "the apply button … is not visible"); dropdowns still apply
   as soon as a value is picked, Apply is there for the search box and for anyone who looks for it. */
/* Our Crew / New Profiles: the table's own card trims the blue title row at its rounded corners, like every other table */
html body.admin-app main .emp-card:not(#ui-none):not(#wg-none) {
    background-color: transparent !important;
    background-image: var(--wg-glass-sheen), var(--wg-glass-fill) !important;
    border: 1px solid rgb(255 255 255 / 95%) !important;
    border-radius: 18px !important;
    box-shadow: var(--wg-glass-shadow) !important;
    overflow: hidden !important;
}
html body.admin-app main .emp-card .emp-table-wrap:not(#ui-none):not(#wg-none) { border-radius: 0 !important; }
/* Crew Proposal: no info lines at the top */
html body.admin-app main :is(.acp-info, .acp-card-hdr .acp-card-note):not(#wg-none) { display: none !important; }
html body.admin-app main .acp-card-hdr:not(#wg-none):not(:has(> :not(.acp-card-note))) { display: none !important; }

/* ───────────────────────── 30. Clear edges (owner, 27 Nov 2026) ───────────────────────── */
/* light buttons and tabs (marked by ui-system.js) always show a grey edge */
html body:is(.admin-app, .agency-manning-app) main .wg-btn-light:not(#ui-none):not(#wg-none) {
    border: 1px solid rgb(17 19 24 / 18%) !important;
    box-shadow: 0 1px 2px rgb(17 19 24 / 6%) !important;
}
html body:is(.admin-app, .agency-manning-app) main .wg-btn-light:hover:not(#ui-none):not(#wg-none) { border-color: rgb(17 19 24 / 30%) !important; }
/* the selected tab is clearly marked: darker edge and a soft shadow */
html body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs, .compliance-actions, .pa-view-switch):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) > :is([aria-selected="true"], [aria-current="page"], .active, .is-active, .is-on, .on).wg-btn-light {
    border-color: rgb(17 19 24 / 40%) !important;
    box-shadow: 0 2px 8px rgb(17 19 24 / 12%) !important;
    color: var(--wg-text) !important;
}
html body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs, .compliance-actions, .pa-view-switch):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) > :not(:is([aria-selected="true"], [aria-current="page"], .active, .is-active, .is-on, .on)) {
    background: #ffffff !important;
    border: 1px solid rgb(17 19 24 / 18%) !important;
    box-shadow: 0 1px 2px rgb(17 19 24 / 6%) !important;
}
/* the selected tab is filled with the sidebar colour (same as the table title rows) */
html body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs, .compliance-actions, .pa-view-switch):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) > :is([aria-selected="true"], [aria-current="page"], .active, .is-active, .is-on, .on):is(*, .wg-btn-light) {
    background: var(--ui-tbl-head-bg) !important;
    background-image: none !important;
    border: 1px solid var(--ui-tbl-head-bg) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgb(17 19 24 / 18%) !important;
}
html body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs, .compliance-actions, .pa-view-switch):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) > :is([aria-selected="true"], [aria-current="page"], .active, .is-active, .is-on, .on) :is(span, b, strong, small, svg) { color: #ffffff !important; }
/* grey Clear / Reset pills: same visible edge as the other light buttons */
html body.admin-app main :is(.emp-filter-actions__reset, .emp-filters-reset, .pa-btn-reset, form[method="get" i] :is(a, button):is([class*="reset"], [class*="clear"])):not(#ui-none):not(#wg-none) {
    border: 1px solid rgb(17 19 24 / 18%) !important;
    background: #ffffff !important;
    box-shadow: 0 1px 2px rgb(17 19 24 / 6%) !important;
}
/* Apply: always the blue pill, same size as the fields */
html body.admin-app main form[method="get" i]:not(.period-picker *, table *, [class*="modal"] *) :is(.emp-filter-actions__apply, .pa-filter-actions button, button[type="submit"]:not([class*="ghost"], [class*="secondary"], [class*="reset"], [class*="clear"], [class*="more"], [aria-label], [class*="icon"])):not(#ui-none):not(#wg-none) {
    position: static !important; width: auto !important; height: 38px !important; min-height: 38px !important; margin: 0 !important; clip: auto !important; overflow: visible !important;
    padding: 0 18px !important; border: 0 !important; border-radius: 999px !important; background: #2563eb !important; color: #ffffff !important;
    box-shadow: 0 6px 14px rgb(37 99 235 / 22%) !important; display: inline-flex !important; align-items: center;
}
/* Fleet List: "Sort by" pills, the current sort filled */
html body.admin-app main .fleet-registry-sort:not(#wg-none) { display: inline-flex !important; align-items: center; flex-wrap: wrap; gap: 6px !important; }
html body.admin-app main .fleet-sort-label:not(#wg-none) { font-size: 13px !important; color: var(--wg-muted) !important; margin-right: 2px; text-transform: none !important; letter-spacing: 0 !important; }
html body.admin-app main .fleet-registry-sort .sort-link:not(#ui-none):not(#wg-none) {
    display: inline-flex !important; align-items: center; gap: 4px; height: 32px; padding: 0 12px !important; border-radius: 999px !important;
    border: 1px solid rgb(17 19 24 / 18%) !important; background: #ffffff !important; color: var(--wg-text) !important;
    font-size: 13px !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; text-decoration: none !important;
    box-shadow: 0 1px 2px rgb(17 19 24 / 6%) !important;
}
html body.admin-app main .fleet-registry-sort .sort-link .sort-ind { color: var(--wg-muted); font-size: 11px; }
html body.admin-app main .fleet-registry-sort .sort-link.is-on:not(#ui-none):not(#wg-none) { background: var(--ui-tbl-head-bg) !important; border-color: var(--ui-tbl-head-bg) !important; color: #ffffff !important; }
html body.admin-app main .fleet-registry-sort .sort-link.is-on .sort-ind { color: #ffffff; }
/* vessel cards: content runs top to bottom, no empty gap before the coverage box */
html body.admin-app main .fleet-vessel-card:not(#ui-none):not(#wg-none) { display: flex !important; flex-direction: column; justify-content: flex-start !important; }
html body.admin-app main .fleet-vessel-card > *:not(#wg-none) { margin-top: 0 !important; }
html body.admin-app main .fleet-vessel-card > * + *:not(#wg-none) { margin-top: 10px !important; }
html body.admin-app main .fleet-card-grid:not(#wg-none) { align-items: start !important; }
/* number tiles: a real visible border */
html body.admin-app main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):is(*, .good, .warn, .critical):not(#ui-none):not(#wg-none) {
    border: 1px solid rgb(17 19 24 / 13%) !important;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 90%), 0 6px 18px rgb(17 19 24 / 7%) !important;
}
/* glass cards: a clearer edge too */
html body:is(.admin-app, .agency-manning-app) { --wg-glass-shadow: inset 0 1px 0 #ffffff, 0 0 0 1px rgb(17 19 24 / 12%), 0 1px 2px rgb(17 19 24 / 5%), 0 10px 28px rgb(17 19 24 / 8%); }
/* a card holding a table trims the blue title row at its rounded corners (Crew Proposal, Crew Requirements and others) */
html body.admin-app main :is(.acp-card, .crq-card, .ui-card-lift, [class$="-card"], [class$="-panel"]):has(> :is([class*="table-wrap"], table):first-child, > [style*="display: none"] + :is([class*="table-wrap"], table), > .acp-card-hdr + .acp-table-wrap):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) {
    overflow: hidden !important;
    border-radius: 18px !important;
}
html body.admin-app main :is(.acp-card, .crq-card) :is(.acp-table-wrap, .crq-table-wrap):not(#ui-none):not(#wg-none) { border-radius: 0 !important; }

/* ───────────────────────── 31. Vendor module, Crew Requirements (owner, 27 Nov 2026) ───────────────────────── */
/* vendor filters: Stage, vessel and movement dropdowns, the search box and Search stretch across the row; month at the end */
html body.admin-app main .tvb-filterrow:not(#wg-none) { flex-wrap: nowrap !important; }
html body.admin-app main .tvb-filterrow .tvb-filters:not(#wg-none) { display: flex !important; flex: 1 1 auto; flex-wrap: nowrap !important; min-width: 0; order: 1; }
html body.admin-app main .tvb-filterrow > :not(.tvb-filters):not(#wg-none) { order: 2; flex: none; }
html body.admin-app main .tvb-filters select:not(#ui-none):not(#wg-none) { flex: 1 1 150px; min-width: 0; width: auto !important; }
html body.admin-app main .tvb-filters input[type="search"]:not(#ui-none):not(#wg-none) { flex: 2 1 240px; min-width: 0; width: auto !important; }
html body.admin-app main .tvb-filters .tvb-sr:not(#wg-none) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 1100px) { html body.admin-app main .tvb-filterrow:not(#wg-none), html body.admin-app main .tvb-filterrow .tvb-filters:not(#wg-none) { flex-wrap: wrap !important; } }
/* vendor table titles: white on the sidebar colour, readable */
html body.admin-app main .tvb-table > thead > tr > th:not(#ui-none):not(#wg-none) {
    background: var(--ui-tbl-head-bg) !important;
    box-shadow: inset 0 0 0 9999px var(--ui-tbl-head-bg) !important;
    color: #ffffff !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    opacity: 1 !important;
}
/* Crew Requirements: "New requirement" is a proper primary button; the empty line has room to breathe */
html body.admin-app main .crq-btn-primary:not(#ui-none):not(#wg-none) {
    display: inline-flex !important; align-items: center; gap: 6px; height: 40px !important; padding: 0 20px !important;
    border-radius: 999px !important; border: 0 !important; background: #2563eb !important; color: #ffffff !important;
    font-size: 14px !important; font-weight: 500 !important; text-decoration: none !important;
    box-shadow: 0 6px 16px rgb(37 99 235 / 25%) !important;
}
html body.admin-app main .crq-btn-primary::before { content: "+"; font-size: 17px; line-height: 1; }
html body.admin-app main .crq :is(.crq-empty, .crq-card-b, td[colspan]):not(#wg-none) { padding: 16px !important; }

/* New Profiles: tabs, search and filters on one line */
html body.admin-app main .emp-tabs-filters:not(#wg-none) { display: flex !important; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; }
html body.admin-app main .emp-tabs-filters > .emp-view-tabs:not(#ui-none):not(#wg-none) { flex: none; margin: 0 !important; }
html body.admin-app main .emp-tabs-filters > .emp-filters-panel:not(#wg-none) { flex: 1 1 640px; min-width: 0; margin: 0 !important; }
html body.admin-app main .emp-tabs-filters .emp-filters:not(#wg-none) { margin: 0 !important; }

/* ───────────────────────── 15. Print: plain paper ───────────────────────── */
@media print {
    html body:is(.admin-app, .agency-manning-app, .crew-app)::before, html body:is(.admin-app, .agency-manning-app, .crew-app)::after { display: none; }
    html body:is(.admin-app, .agency-manning-app, .crew-app) main * { box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

/* ───────────────────────── 32. One calm system (owner, 27 Nov 2026) ───────────────────────── */
/* Number cards — after Cloudflare "Account analytics", Lovable "Analytics" and Later "Custom analytics" (Mobbin):
 * white card, thin grey edge, small muted label, large dark number. No colour fills, no coloured numbers, no side bars. */
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):is(*, .good, .warn, .critical):nth-child(n):not(.wg-keep):not(#ui-none):not(#wg-none) {
    background: #ffffff !important;
    background-image: none !important;
    border: 1px solid #e3e5ea !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 2px rgb(17 19 24 / 4%) !important;
    padding: 16px 18px !important;
}
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(n):not(#ui-none):not(#wg-none) :is(.value, .compliance-kpi-val, .aa-tile-v, .kpi-value, .ui-kpi-num, .ui-kpi-value, .pc-stat-n, [class$="-num"], [class$="-val"]) {
    color: #111318 !important;
    font-size: 28px !important;
    font-weight: 500 !important;
    letter-spacing: -0.02em !important;
}
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(n):not(#ui-none):not(#wg-none) :is(.label, .compliance-kpi-label, .aa-tile-l, .aa-tile-k, .kpi-label, .kpi-title, .ui-kpi-label, [class$="-label"], .sub, .compliance-kpi-hint, [class$="-hint"]) {
    color: #6b7280 !important;
}
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat)::before,
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat)::after { display: none !important; }
/* the small number boxes inside cards (dashboard AI overview, compliance vessel cards) are plain too */
html body.admin-app main :is(.ops-smart-chip, .cvs-stat):not(#ui-none):not(#wg-none) { background: #ffffff !important; border: 1px solid #e3e5ea !important; }
html body.admin-app main :is(.ops-smart-chip strong, .cvs-stat-value):not(#ui-none):not(#wg-none) { color: #111318 !important; }
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):is(*, .good, .warn, .critical):nth-child(n):not(.wg-keep):not(#ui-none):not(#wg-none),
html[data-theme="dark"] body.admin-app main :is(.ops-smart-chip, .cvs-stat):not(#ui-none):not(#wg-none) {
    background: var(--wg-card) !important;
    border-color: var(--wg-card-line) !important;
    box-shadow: none !important;
}
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto, .ops-smart-chip, .cvs-stat):nth-child(n):not(#ui-none):not(#wg-none) :is(.value, .compliance-kpi-val, .aa-tile-v, .kpi-value, .ui-kpi-num, .ui-kpi-value, .pc-stat-n, [class$="-num"], [class$="-val"], strong, .cvs-stat-value) { color: var(--wg-text) !important; }
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(n):not(#ui-none):not(#wg-none) :is(.label, .compliance-kpi-label, .aa-tile-l, .aa-tile-k, .kpi-label, .kpi-title, .ui-kpi-label, [class$="-label"], .sub, .compliance-kpi-hint, [class$="-hint"]) { color: var(--wg-muted) !important; }

/* Section headings: plain text, no coloured bar on the left (Appraisals, Grievances, Finance, Vendor module, Settings, MSA) */
html body.admin-app main :is(.panel-accent, .apx-card-head, .tvb-card-head, .msa-vessel-card, .sd-panel__head > h2)::before { width: 0 !important; background: none !important; border: 0 !important; }
html body.admin-app main :is(.panel-accent, .apx-card-head, .tvb-card-head, .msa-vessel-card, .sd-panel__head > h2):not(#ui-none):not(#wg-none) { border-left: 0 !important; }
html body.admin-app main :is(.fin-section-head, .stg-cgroup-head):not(#ui-none):not(#wg-none) { border-left: 0 !important; padding-left: 0 !important; }
html body.admin-app main :is(.panel-accent, .apx-card-head, .tvb-card-head, .sd-panel__head > h2):not(#ui-none):not(#wg-none) { padding-left: 0 !important; }

/* Filter rows — after Sprig "Studies", OKX "Products", Contra "Projects" (Mobbin): one line of 38px fields,
 * labels that only repeat the field are hidden (ui-system.js), everything sits on one baseline. */
.wg-sr { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
html body.admin-app main form.wg-filters-plain:not(#ui-none):not(#wg-none) { align-items: flex-end; }
html body.admin-app main form.wg-filters-plain :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select):not(.period-picker *):not(#ui-none):not(#wg-none) {
    height: 38px !important;
    min-height: 38px !important;
    font-size: 13.5px !important;
}
html body.admin-app main form.wg-filters-plain :is(button, .btn, [class*="-btn"], a[class*="clear"], a[class*="reset"]):not(.period-picker *):not([class*="icon"]):not(#ui-none):not(#wg-none) {
    height: 38px !important;
    min-height: 38px !important;
}
html body.admin-app main form.wg-filters-plain label:not(#ui-none):not(#wg-none) { margin-bottom: 0 !important; }
html body.admin-app main form.wg-filters-plain :is(label, [class*="field"]):has(> .wg-sr:only-of-type) { gap: 0 !important; }

/* Sidebar — after Cloudflare and Sprig (Mobbin): 14px item text, 18px icons, 36px rows, roomier section labels */
html body:is(.admin-app, .agency-manning-app).admin-layout-sidebar .admin-nav-skin-open :is(.admin-nav-leaf, .admin-nav-sub, .admin-sidebar-footer a):not(#ui-none):not(#wg-none) {
    min-height: 36px !important;
    font-size: 13.5px !important;
    line-height: 20px !important;
    gap: 10px !important;
}
html body:is(.admin-app, .agency-manning-app).admin-layout-sidebar .admin-nav-skin-open :is(.admin-nav-leaf, .admin-nav-sub, .admin-sidebar-footer a):not(#ui-none):not(#wg-none) :is(svg, .icon-chip, .admin-sidebar-icon, img) {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    flex: 0 0 18px !important;
}
html body:is(.admin-app, .agency-manning-app).admin-layout-sidebar .admin-nav-skin-open :is(.admin-nav-leaf, .admin-nav-sub):not(#ui-none):not(#wg-none) .icon-chip svg { width: 18px !important; height: 18px !important; }
html body:is(.admin-app, .agency-manning-app).admin-layout-sidebar .admin-nav-skin-open :is(.admin-nav-section-label, .admin-nav-details > summary):not(#ui-none):not(#wg-none) {
    font-size: 12px !important;
    letter-spacing: 0.02em !important;
    padding-top: 14px !important;
}

/* Travel: the page title sits at the top like every other page */
html body.admin-app main .admin-travel > .trv-page-title:not(#wg-none) { margin: 0 0 12px !important; }

/* Dark mode: the light-only edges and white pills above get their dark twins */
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main .wg-btn-light:not(#ui-none):not(#wg-none) { border-color: rgb(255 255 255 / 16%) !important; box-shadow: none !important; }
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs, .compliance-actions, .pa-view-switch):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) > :not(:is([aria-selected="true"], [aria-current="page"], .active, .is-active, .is-on, .on)),
html[data-theme="dark"] body.admin-app main :is(.emp-filter-actions__reset, .emp-filters-reset, .pa-btn-reset, form[method="get" i] :is(a, button):is([class*="reset"], [class*="clear"])):not(#ui-none):not(#wg-none),
html[data-theme="dark"] body.admin-app main .fleet-registry-sort .sort-link:not(.is-on):not(#ui-none):not(#wg-none) {
    background: var(--wg-card-solid) !important;
    border-color: rgb(255 255 255 / 16%) !important;
    color: var(--wg-text) !important;
    box-shadow: none !important;
}
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea):not(.ui-keep *, .wg-keep *, [class*="calendar"] *):not(#ui-none):not(#wg-none) {
    background-color: var(--wg-card-solid) !important;
    color: var(--wg-text) !important;
    color-scheme: dark;
}
/* compliance vessel cards: the four counts stay as plain numbers, not more boxes */
html body.admin-app main .cvs-stat:not(#ui-none):not(#wg-none), html[data-theme="dark"] body.admin-app main .cvs-stat:not(#ui-none):not(#wg-none) { background: transparent !important; border: 0 !important; }
html body.admin-app main form.wg-filters-plain .wg-row-end:not(#ui-none):not(#wg-none), html body.admin-app main form.wg-filters-plain.wg-row-end:not(#ui-none):not(#wg-none) { align-items: end !important; }

/* ───────────────────────── 33. Light minimal look (owner, 27 Nov 2026) ─────────────────────────
 * After FacilityFlow (Behance 254898551): when the company palette colour is light (white), the sidebar is a white rail with
 * a hairline, plain grey items and a soft tinted pill for the open page. Tables, tabs and cards keep the clear look of 28–32.
 * tab, colour kept for meaning only. The company colour now shows as the sidebar's selected item and the primary buttons. */

/* Sidebar: white rail with a hairline, plain grey items, the open page a soft tinted pill in the company colour */
html:not([data-theme="dark"]) body.admin-layout-sidebar:is([data-sidebar-custom-tone="light"], [data-sidebar-skin="light"]) .admin-nav-skin-open:not(#ui-none):not(#wg-none),
html:not([data-theme="dark"]) body.admin-layout-sidebar:is([data-sidebar-custom-tone="light"], [data-sidebar-skin="light"]) .admin-nav-skin-open:not(#ui-none):not(#wg-none) :is(.admin-sidebar-brand, .admin-sidebar-footer, .admin-nav-skin-scroll) {
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
}
html:not([data-theme="dark"]) body.admin-layout-sidebar:is([data-sidebar-custom-tone="light"], [data-sidebar-skin="light"]) .admin-nav-skin-open:not(#ui-none):not(#wg-none) { border-right: 1px solid #eceef2 !important; }
html:not([data-theme="dark"]) body.admin-layout-sidebar:is([data-sidebar-custom-tone="light"], [data-sidebar-skin="light"]) .admin-nav-skin-open:not(#ui-none):not(#wg-none) :is(.admin-nav-leaf, .admin-nav-sub, .admin-sidebar-footer a, .admin-nav-details > summary) {
    color: #3b4150 !important;
}
html:not([data-theme="dark"]) body.admin-layout-sidebar:is([data-sidebar-custom-tone="light"], [data-sidebar-skin="light"]) .admin-nav-skin-open:not(#ui-none):not(#wg-none) :is(.admin-nav-leaf, .admin-nav-sub, .admin-sidebar-footer a) :is(svg, .icon-chip, .admin-sidebar-icon, i) {
    color: #6b7280 !important;
    background: transparent !important;
}
html:not([data-theme="dark"]) body.admin-layout-sidebar:is([data-sidebar-custom-tone="light"], [data-sidebar-skin="light"]) .admin-nav-skin-open:not(#ui-none):not(#wg-none) :is(.admin-nav-section-label, .admin-nav-details > summary, .admin-nav-group-label) { color: #9aa0ab !important; }
html:not([data-theme="dark"]) body.admin-layout-sidebar:is([data-sidebar-custom-tone="light"], [data-sidebar-skin="light"]) .admin-nav-skin-open:not(#ui-none):not(#wg-none) :is(.admin-nav-leaf, .admin-nav-sub):not(.active):hover { background: #f4f5f7 !important; }
html:not([data-theme="dark"]) body.admin-layout-sidebar:is([data-sidebar-custom-tone="light"], [data-sidebar-skin="light"]) .admin-nav-skin-open:not(#ui-none):not(#wg-none) :is(.admin-nav-leaf, .admin-nav-sub).active {
    background: color-mix(in srgb, var(--ui-primary, #2563eb) 10%, #ffffff) !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--ui-primary, #2563eb) !important;
}
html:not([data-theme="dark"]) body.admin-layout-sidebar:is([data-sidebar-custom-tone="light"], [data-sidebar-skin="light"]) .admin-nav-skin-open:not(#ui-none):not(#wg-none) :is(.admin-nav-leaf, .admin-nav-sub).active :is(span, svg, .icon-chip, .icon-nav, i) { color: var(--ui-primary, #2563eb) !important; }
html:not([data-theme="dark"]) body.admin-layout-sidebar:is([data-sidebar-custom-tone="light"], [data-sidebar-skin="light"]) .admin-nav-skin-open:not(#ui-none):not(#wg-none) :is(.admin-nav-leaf, .admin-nav-sub).active img { filter: none !important; }
html:not([data-theme="dark"]) body.admin-layout-sidebar:is([data-sidebar-custom-tone="light"], [data-sidebar-skin="light"]) .admin-nav-skin-open:not(#ui-none):not(#wg-none) .admin-sidebar-brand :is(img, .brand-logo) { filter: none !important; }
html:not([data-theme="dark"]) body.admin-layout-sidebar:is([data-sidebar-custom-tone="light"], [data-sidebar-skin="light"]) .admin-nav-skin-open:not(#ui-none):not(#wg-none) .admin-sidebar-brand :is(a, span, strong, button, svg) { color: #111318 !important; }


/* ───────────────────────── 34. Dashboard banner and highlight card (owner, 27 Nov 2026; after Synapse ERP on Behance) ───────────────────────── */
html body.admin-app main .db-hero:not(#wg-none) {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 112px;
    margin: 0 0 12px;
    padding: 22px 26px;
    border-radius: 20px;
    color: #ffffff;
    background:
        radial-gradient(120% 140% at 100% 0%, rgb(255 255 255 / 22%) 0%, rgb(255 255 255 / 0%) 45%),
        linear-gradient(115deg, var(--wg-accent) 0%, color-mix(in srgb, var(--wg-accent) 55%, #6a38d8) 100%);
}
/* two soft curved lines across the banner, like the reference */
html body.admin-app main .db-hero:not(#wg-none)::before,
html body.admin-app main .db-hero:not(#wg-none)::after {
    content: "";
    position: absolute;
    right: -8%;
    width: 70%;
    height: 220%;
    border-radius: 50%;
    border: 1.5px solid rgb(255 255 255 / 22%);
    pointer-events: none;
}
html body.admin-app main .db-hero:not(#wg-none)::before { top: -150%; }
html body.admin-app main .db-hero:not(#wg-none)::after { top: -138%; right: -14%; border-color: rgb(255 255 255 / 20%); }
html body.admin-app main .db-hero .db-greet:not(#wg-none) { margin: 0 !important; color: #ffffff !important; font-size: 28px !important; font-weight: 500 !important; }
html body.admin-app main .db-hero .db-hero-date:not(#wg-none) { margin: 4px 0 0 !important; color: rgb(255 255 255 / 80%) !important; font-size: 13.5px !important; display: block !important; }
html body.admin-app main .db-hero .db-hero-btn:not(#wg-none) {
    position: relative; z-index: 1; flex: none;
    display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 999px;
    background: #ffffff; color: color-mix(in srgb, var(--wg-accent) 85%, #000) !important; font-size: 13.5px; font-weight: 500; text-decoration: none !important;
    box-shadow: 0 6px 16px rgb(10 20 80 / 18%);
}
html body.admin-app main .db-hero .db-hero-btn:hover { background: #f1f4ff; }
@media (max-width: 700px) { html body.admin-app main .db-hero:not(#wg-none) { flex-direction: column; align-items: flex-start; } }

/* the first number card in each row is the highlight: solid blue gradient with white text (Synapse "Total Deals") */
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):first-child:is(*, .good, .warn, .critical):nth-child(n):not(.wg-keep):not(#ui-none):not(#wg-none) {
    background: linear-gradient(135deg, var(--wg-accent) 0%, color-mix(in srgb, var(--wg-accent) 70%, #6a38d8) 100%) !important;
    box-shadow: 0 10px 24px rgb(47 107 255 / 22%) !important;
}
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):first-child:nth-child(n):not(.wg-keep):not(#ui-none):not(#wg-none) :is(*, .value, .label, .sub, [class$="-label"], [class$="-hint"], [class$="-val"], [class$="-num"]) {
    color: #ffffff !important;
}
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):first-child:nth-child(n):not(.wg-keep):not(#ui-none):not(#wg-none) :is(.label, .sub, [class$="-label"], [class$="-hint"], small) { color: rgb(255 255 255 / 82%) !important; }
/* the sidebar is white now, so the normal (blue) logo shows instead of the white one meant for dark rails */
html:not([data-theme="dark"]) body:is(.admin-layout-sidebar, .crew-app)[data-sidebar-custom-tone="light"] .admin-sidebar-brand .brand-logo:not(#wg-none) { content: normal !important; }
html body.admin-app main .db-hero .db-greet + .db-hero-date:not(#ui-none):not(#wg-none) { display: block !important; visibility: visible !important; height: auto !important; margin: 4px 0 0 !important; color: rgb(255 255 255 / 80%) !important; font-size: 13.5px !important; }

/* banner and highlight card use the company colour from the palette; a very light palette colour falls back to blue */
html body:is(.admin-app, .agency-manning-app) { --wg-accent: var(--ui-primary, #2f6bff); }
html body:is(.admin-app, .agency-manning-app)[data-sidebar-custom-tone="light"], html body:is(.admin-app, .agency-manning-app)[data-sidebar-skin="light"] { --wg-accent: #2f6bff; }

/* ───────────────────────── 35. Clear boxes and coloured table titles (owner, 27 Nov 2026) ─────────────────────────
 * Owner: every box needs a clearly visible border, and table title rows stay in the sidebar colour.
 * With a light (white) palette colour the title rows and selected tabs use blue, so they never turn white. */
html body:is(.admin-app, .agency-manning-app)[data-sidebar-custom-tone="light"] { --ui-tbl-head-bg: #1d4ed8; --ui-tbl-head-text: #ffffff; }
/* the dashboard cards (nationality, AI overview, crew changes) get the same clear frame as every other card */
html body.admin-app main :is(.db-card, .ops-panel, .ops-card, .admin-db-wrap article, .admin-db-wrap section:not(.db-hero), .fleet-vessel-card, .pa-card, .pa-panel, .pa-map-card, [class^="pa-"][class$="-card"], .port-alerts-card):not(.wg-keep, .ui-keep *, .db-hero, .ops-kpis):not(#ui-none):not(#wg-none) {
    border: 1px solid rgb(17 19 24 / 13%) !important;
    border-radius: 18px !important;
    background-color: #ffffff;
}
html[data-theme="dark"] body.admin-app main :is(.db-card, .ops-panel, .ops-card, .admin-db-wrap article, .admin-db-wrap section:not(.db-hero), .fleet-vessel-card, .pa-card, .pa-panel, .pa-map-card, [class^="pa-"][class$="-card"], .port-alerts-card):not(.wg-keep, .ui-keep *, .db-hero, .ops-kpis):not(#ui-none):not(#wg-none) {
    border-color: rgb(255 255 255 / 12%) !important;
    background-color: var(--wg-card);
}
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):not(:first-child):is(*, .good, .warn, .critical):nth-child(n):not(.wg-keep):not(#ui-none):not(#wg-none) { border: 1px solid rgb(17 19 24 / 13%) !important; }
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):not(:first-child):is(*, .good, .warn, .critical):nth-child(n):not(.wg-keep):not(#ui-none):not(#wg-none) { border-color: rgb(255 255 255 / 12%) !important; }
html body.admin-app main :is(.fleet-crew-coverage, .fleet-coverage-attention, [class^="fleet-"][class$="-box"]):not(#ui-none):not(#wg-none) { border: 1px solid rgb(17 19 24 / 13%) !important; }
html[data-theme="dark"] body.admin-app main :is(.fleet-crew-coverage, .fleet-coverage-attention, [class^="fleet-"][class$="-box"]):not(#ui-none):not(#wg-none) { border-color: rgb(255 255 255 / 12%) !important; }
/* every card and panel shows its edge: the white glass rim is replaced by a clear grey line */
html body.admin-app main :is(.ui-card-lift, .ui-flat-white, .card, .panel, .ui-card, [class$="-card"], [class$="-panel"], [class*="-card "], [class*="-panel "]):not(.db-hero, .ops-kpis > .ops-kpi:first-child, .wg-keep, .ui-keep *, table *, dialog *, [role="dialog"] *, [class*="modal"] *, .admin-nav-skin-open *, [class*="dropdown"], [class*="menu"], [class*="popover"], [class*="tooltip"], .leaflet-container *, form, [class*="filter"], [class*="toolbar"], [class*="search"], [class*="tabs"]):nth-child(n):not(#ui-none):not(#wg-none) {
    border: 1px solid rgb(17 19 24 / 13%) !important;
}
html[data-theme="dark"] body.admin-app main :is(.ui-card-lift, .ui-flat-white, .card, .panel, .ui-card, [class$="-card"], [class$="-panel"], [class*="-card "], [class*="-panel "]):not(.db-hero, .ops-kpis > .ops-kpi:first-child, .wg-keep, .ui-keep *, table *, dialog *, [role="dialog"] *, [class*="modal"] *, .admin-nav-skin-open *, [class*="dropdown"], [class*="menu"], [class*="popover"], [class*="tooltip"], .leaflet-container *, form, [class*="filter"], [class*="toolbar"], [class*="search"], [class*="tabs"]):nth-child(n):not(#ui-none):not(#wg-none) {
    border-color: rgb(255 255 255 / 12%) !important;
}
/* Port Alerts: the inactive Map / Port directory button is white with a visible edge, like every other light button */
html body.admin-app main .pa-view-switch > :not(.is-active, .active, [aria-current="page"], [aria-selected="true"]):nth-child(n):not(#ui-none):not(#wg-none) {
    background: #ffffff !important;
    border: 1px solid rgb(17 19 24 / 18%) !important;
    color: var(--wg-text) !important;
}
html[data-theme="dark"] body.admin-app main .pa-view-switch > :not(.is-active, .active, [aria-current="page"], [aria-selected="true"]):nth-child(n):not(#ui-none):not(#wg-none) {
    background: var(--wg-card-solid) !important;
    border-color: rgb(255 255 255 / 16%) !important;
}

/* filter rows are never framed: no box or line around the fields */
html body.admin-app main :is(form[method="get" i], .filter-panel, [class*="filter-panel"], [class*="filterbar"], [class*="filter-bar"], [class$="-filters"], [class$="-toolbar"]):not(.ui-keep *, .wg-keep):nth-child(n):not(#ui-none):not(#wg-none) { border: 0 !important; box-shadow: none !important; background: transparent !important; }

/* ───────────────────────── 36. Sidebar icons: plain, one colour (owner, 27 Nov 2026) ─────────────────────────
 * Owner rejected coloured squares ("childish", "AI generated"): line icons with no background, all in the sidebar text
 * colour, one size and one stroke weight. Two-tone glyphs are flattened to the same single colour. */
html body:is(.admin-app, .agency-manning-app, .crew-app) .admin-nav-skin-open :is(.admin-nav-leaf, .admin-nav-sub, .admin-sidebar-footer a, a) .icon-chip.icon-chip.icon-chip:not(#ui-none):not(#wg-none) {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-height: none !important;
    flex: 0 0 20px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    color: inherit !important;
    opacity: 0.92;
}
html body:is(.admin-app, .agency-manning-app, .crew-app) .admin-nav-skin-open :is(.admin-nav-leaf, .admin-nav-sub, .admin-sidebar-footer a, a) .icon-chip.icon-chip.icon-chip:not(#ui-none):not(#wg-none) :is(svg, i) {
    width: 19px !important;
    height: 19px !important;
    min-width: 19px !important;
    max-height: none !important;
    flex: 0 0 19px !important;
    color: currentColor !important;
    background: none !important;
}
html body:is(.admin-app, .agency-manning-app, .crew-app) .admin-nav-skin-open :is(.admin-nav-leaf, .admin-nav-sub, .admin-sidebar-footer a, a) .icon-chip.icon-chip.icon-chip:not(#ui-none):not(#wg-none) svg :is(path, rect, circle, line, polyline, polygon, ellipse) {
    stroke: currentColor !important;
    stroke-width: 1.75 !important;
    fill: none !important;
    opacity: 1 !important;
}
html body .admin-nav-skin-open :is(.admin-nav-leaf, .admin-nav-sub).active .icon-chip.icon-chip.icon-chip:not(#ui-none):not(#wg-none) { opacity: 1; }

/* no box inside a box: a wrapper whose direct child is already a framed card loses its own frame, so two lines never
 * run side by side (Our Crew table panel, compliance vessel list and similar) */
html body.admin-app main :is(.ui-card-lift, .ui-flat-white, .card, .panel, .ui-card, [class$="-card"], [class$="-panel"], [class*="-card "], [class*="-panel "]):has(> :is(.ui-card-lift, .card, .ui-card, [class$="-card"], [class*="-card "], [class$="-table-wrap"], .table-wrap)):not(.db-hero, .wg-keep):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none) {
    border-color: transparent !important;
    box-shadow: none !important;
}
/* Our Crew: the count / colour legend line sits above the table card, with a little air */
html body.admin-app main .emp-table-panel:not(#ui-none):not(#wg-none) { background: transparent !important; }
html body.admin-app main .emp-table-panel > :not(.emp-card):not(#wg-none) { padding-left: 2px !important; margin-bottom: 8px !important; }
/* "More filters" / "Hide filters" fits its text on one line */
html body.admin-app main .emp-filters-more:not(#ui-none):not(#wg-none) {
    flex: none !important; width: auto !important; min-width: 0 !important; white-space: nowrap !important;
    display: inline-flex !important; align-items: center; gap: 6px; height: 38px !important; padding: 0 14px !important;
    border: 1px solid rgb(17 19 24 / 18%) !important; border-radius: 999px !important; background: #ffffff !important; color: var(--wg-text) !important;
    font-size: 13.5px !important; overflow: visible !important;
}
html body.admin-app main .emp-filters-more.has-active:not(#ui-none):not(#wg-none) { border-color: var(--ui-primary, #2563eb) !important; color: var(--ui-primary, #2563eb) !important; }
html[data-theme="dark"] body.admin-app main .emp-filters-more:not(#ui-none):not(#wg-none) { background: var(--wg-card-solid) !important; border-color: rgb(255 255 255 / 16%) !important; }
/* Fleet List: each vessel keeps its own clear box even though it holds smaller boxes inside */
html body.admin-app main .fleet-vessel-card.fleet-vessel-card:nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none) { border: 1px solid rgb(17 19 24 / 24%) !important; box-shadow: 0 1px 2px rgb(17 19 24 / 5%) !important; }
html[data-theme="dark"] body.admin-app main .fleet-vessel-card.fleet-vessel-card:nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none) { border-color: rgb(255 255 255 / 20%) !important; }

/* ───────────────────────── 37. Dashboard: no box around boxes, gradient used on a few cards (owner, 27 Nov 2026) ─────────────────────────
 * The big welcome banner is gone (plain "Hi, name"); its blue-violet gradient now marks the lead number card and the
 * AI overview. The wrappers that framed whole groups are removed, so each card stands on its own with a 10px gap,
 * and the parts inside the crew-changes card are split by thin lines instead of touching frames. */
html body.admin-app main .db-greet:not(#ui-none):not(#wg-none) { margin: 2px 0 12px !important; font-size: 26px !important; color: var(--wg-text) !important; }
html body.admin-app main :is(.ops-overview:not(.ops-rank-snapshot), .dbx):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none) {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
}
html body.admin-app main .ops-overview:not(.ops-rank-snapshot) > .ops-kpis:not(#wg-none) { padding: 0 0 10px !important; }
html body.admin-app main .dbx > .dbx-head:not(#wg-none) { padding: 4px 0 0 !important; }
/* inside the crew-changes card: calendar | agenda side by side, the route list under them, split by hairlines */
html body.admin-app main .dbx-card :is(.dbx-cal, .dbx-agenda, .dbx-next, .dbx-plan):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none) {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}
html body.admin-app main .dbx-card .dbx-plan:not(#ui-none):not(#wg-none) { border-top: 1px solid rgb(17 19 24 / 9%) !important; }
html body.admin-app main .dbx-card .dbx-agenda:nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none) { border-left: 1px solid rgb(17 19 24 / 9%) !important; }
html body.admin-app main .dbx-card .dbx-next:nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none) { border-top: 1px solid rgb(17 19 24 / 9%) !important; }
html[data-theme="dark"] body.admin-app main .dbx-card :is(.dbx-plan, .dbx-agenda, .dbx-next):not(#ui-none):not(#wg-none) { border-color: rgb(255 255 255 / 10%) !important; }
/* the AI overview: a soft tint of the same blue-violet, its five counts on white */
html body.admin-app main .ops-panel.ops-smart-scan:nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none) {
    background: linear-gradient(135deg, color-mix(in srgb, var(--wg-accent) 9%, #ffffff) 0%, color-mix(in srgb, #6a38d8 8%, #ffffff) 100%) !important;
    border-color: color-mix(in srgb, var(--wg-accent) 22%, #ffffff) !important;
}
html body.admin-app main .ops-smart-scan .ops-smart-chip:not(#ui-none):not(#wg-none) { background: #ffffff !important; border: 1px solid color-mix(in srgb, var(--wg-accent) 16%, #ffffff) !important; border-radius: 12px !important; }
html[data-theme="dark"] body.admin-app main .ops-panel.ops-smart-scan:nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none) {
    background: linear-gradient(135deg, color-mix(in srgb, var(--wg-accent) 16%, #15171c) 0%, color-mix(in srgb, #6a38d8 14%, #15171c) 100%) !important;
    border-color: rgb(255 255 255 / 12%) !important;
}
/* the crew-changes summary strip and the rank snapshot head pick up the same tint, lightly */
html body.admin-app main .dbx-card .dbx-rsum:not(#ui-none):not(#wg-none) { background: linear-gradient(90deg, color-mix(in srgb, var(--wg-accent) 8%, #ffffff), #ffffff 70%) !important; }
html[data-theme="dark"] body.admin-app main .dbx-card .dbx-rsum:not(#ui-none):not(#wg-none) { background: linear-gradient(90deg, color-mix(in srgb, var(--wg-accent) 16%, #15171c), transparent 70%) !important; }

/* sidebar group labels ("OPERATIONS" etc.): grow with their spacing instead of a fixed 19px, so the label never runs
 * into the first item under it */
html body:is(.admin-app, .agency-manning-app, .crew-app).admin-layout-sidebar .admin-nav-skin-open .admin-nav-section-label:not(#ui-none):not(#wg-none) {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 12px 12px 6px !important;
    margin: 6px 0 2px !important;
    line-height: 16px !important;
    overflow: visible !important;
}
html body:is(.admin-app, .agency-manning-app, .crew-app).admin-layout-sidebar .admin-nav-skin-open .admin-nav-section-label:first-child:not(#ui-none):not(#wg-none) { margin-top: 0 !important; padding-top: 8px !important; }
html body:is(.admin-app, .agency-manning-app, .crew-app).admin-layout-sidebar .admin-nav-skin-open :is(.admin-nav-section-label, .admin-nav-leaf, .admin-nav-sub, .admin-nav-details, .admin-nav-details > summary):not(#ui-none):not(#wg-none) { flex-shrink: 0 !important; }

/* ───────────────────────── 38. One box, not two (owner, 27 Nov 2026) ─────────────────────────
 * A card whose content is a table with a coloured title bar becomes that table: no inner padding, the title bar fills
 * the card's top edge and the card's corners clip it — one frame instead of a card around a second box. */
html body.admin-app main :is([class$="-card"], [class*="-card "], .ui-card-lift, .ui-flat-white, [class$="-panel"]):has(> .ui-tbl-title, > .compliance-section-head.ui-tbl-title):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none) {
    padding: 0 !important;
    overflow: hidden !important;
}
html body.admin-app main :is([class$="-card"], [class*="-card "], .ui-card-lift, .ui-flat-white, [class$="-panel"]) > .ui-tbl-title:not(#ui-none):not(#wg-none) { margin: 0 !important; border-radius: 0 !important; }
html body.admin-app main :is([class$="-card"], [class*="-card "], .ui-card-lift, .ui-flat-white, [class$="-panel"]) > .ui-tbl-title ~ :is(div, section):not(#ui-none):not(#wg-none) { margin-left: 0 !important; margin-right: 0 !important; border-left: 0 !important; border-right: 0 !important; border-bottom: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
html body.admin-app main :is([class$="-card"], [class*="-card "], .ui-card-lift, .ui-flat-white, [class$="-panel"]) > .ui-tbl-title ~ :is(div, section) table:not(#ui-none):not(#wg-none) > thead > tr > :is(th, td) { border-radius: 0 !important; }
/* Compliance: the "no planning issues" line is plain text inside its card, not a second box */
html body.admin-app main .compliance-empty-inline:nth-child(n):not(#ui-none):not(#wg-none) { border: 0 !important; background: transparent !important; padding: 4px 0 0 !important; box-shadow: none !important; }
/* Compliance cards view: each vessel is one box; its header is split from the counts by a line, not framed again */
html body.admin-app main .compliance-vessel-group .compliance-vessel-head:nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none) { border: 0 !important; border-bottom: 1px solid rgb(17 19 24 / 8%) !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; }
html body.admin-app main .compliance-vessel-group:nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none) { overflow: hidden; }
/* switches sitting on a coloured title bar (Table / Cards): white text, glassy unselected pill, white selected pill */
html body.admin-app main .ui-tbl-title :is([role="tablist"], [class*="toggle"], [class*="switch"], [class*="seg"]) > :is(a, button):not(:is([aria-selected="true"], [aria-pressed="true"], .active, .is-active, .is-on, .on)):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none) {
    background: rgb(255 255 255 / 20%) !important; border: 1px solid rgb(255 255 255 / 30%) !important; color: #ffffff !important; box-shadow: none !important;
}
html body.admin-app main .ui-tbl-title :is([role="tablist"], [class*="toggle"], [class*="switch"], [class*="seg"]) > :is(a, button):is([aria-selected="true"], [aria-pressed="true"], .active, .is-active, .is-on, .on):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none) {
    background: #ffffff !important; border: 1px solid #ffffff !important; color: var(--ui-tbl-head-bg) !important; box-shadow: none !important;
}
html body.admin-app main .ui-tbl-title :is([role="tablist"], [class*="toggle"], [class*="switch"], [class*="seg"]):not(#ui-none):not(#wg-none) { background: transparent !important; border: 0 !important; box-shadow: none !important; gap: 4px; }
/* wrappers that sat flush around another framed box (found by a page-by-page check): keep only the inner box */
html body.admin-app main :is(.ops-overview.ops-rank-snapshot, .fleet-panel--registry):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none) {
    border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important;
}
html body.admin-app main :is(.fin-ledger-card .fin-view-panel, .payroll-panel .period-picker-empty):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none) {
    border: 0 !important; box-shadow: none !important; background: transparent !important;
}

/* ───────────────────────── 39. Filters: one shape, one line (owner, 27 Nov 2026) ─────────────────────────
 * Every filter field (search, text, dates, dropdowns) is fully rounded like the buttons and tabs next to it; a field whose
 * label is hidden sits at the bottom of its slot, so all fields and buttons in a row share one bottom edge. */
html body:is(.admin-app, .agency-manning-app) main :is(form[method="get" i], form.wg-filters-plain, [class*="filter-bar"], [class*="filterbar"], [class*="filter-panel"], [class$="-filters"], [class$="-toolbar"], [class*="-filter-row"], [class$="-filterrow"]) :is(input:is([type="text"], [type="search"], [type="date"], [type="month"], [type="number"], [type="email"], [type="week"], :not([type])), select):not(.period-picker *, table *, dialog *, [role="dialog"] *, [class*="modal"] *, .ui-keep *, .wg-keep):nth-child(n):not(#ui-none):not(#wg-none) {
    border-radius: 999px !important;
    padding-left: 14px !important;
}
html body:is(.admin-app, .agency-manning-app) main :is(form[method="get" i], form.wg-filters-plain, [class*="filter-bar"], [class*="filterbar"], [class*="filter-panel"], [class$="-filters"], [class$="-toolbar"], [class*="-filter-row"], [class$="-filterrow"]) select:not(.period-picker *, table *, dialog *, .ui-keep *, .wg-keep):nth-child(n):not(#ui-none):not(#wg-none) { padding-right: 32px !important; }
/* a search box with a magnifier keeps room for the icon */
html body:is(.admin-app, .agency-manning-app) main :is([class*="search"]:has(> svg), [class*="search"]:has(> .icon)) > input:nth-child(n):not(#ui-none):not(#wg-none) { padding-left: 36px !important; }
/* label wrappers with hidden text: just the field, pinned to the bottom of the row */
html body.admin-app main form.wg-filters-plain label:has(> .wg-sr):not(#ui-none):not(#wg-none),
html body.admin-app main form.wg-filters-plain [class*="field"]:has(> .wg-sr):not(#ui-none):not(#wg-none) {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    gap: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    align-self: flex-end !important;
}
html body.admin-app main form.wg-filters-plain label:not(:has(> .wg-sr)):has(> :is(select, input)):not(#ui-none):not(#wg-none) { align-self: flex-end !important; margin-bottom: 0 !important; }
html body.admin-app main form.wg-filters-plain :is(.pa-filter-actions-wrap, [class*="actions"]):not(#ui-none):not(#wg-none) { align-self: flex-end !important; }
html body.admin-app main :is(.aa-custom, .kpi-filters, form:not([method])) :is(input:is([type="text"], [type="search"], [type="date"], [type="month"], [type="number"], :not([type])), select):not(.period-picker *, table *, dialog *, [role="dialog"] *, [class*="modal"] *, .ui-keep *, .wg-keep, textarea):nth-child(n):not(#ui-none):not(#wg-none) { border-radius: 999px !important; padding-left: 14px !important; }
/* small action rows: every control the same height */
html body.admin-app main form :is(.pc-btn.sm):not(#ui-none):not(#wg-none) { height: 34px !important; min-height: 34px !important; display: inline-flex !important; align-items: center; padding: 0 14px !important; border-radius: 999px !important; }
html body.admin-app main form:has(.pc-btn.sm) select:not(#ui-none):not(#wg-none) { height: 34px !important; min-height: 34px !important; border-radius: 999px !important; }
html body.admin-app main form:has(.pc-btn.sm):not(#ui-none):not(#wg-none) { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
html body.admin-app main form .rhf-btn:not(#ui-none):not(#wg-none) { height: 36px !important; min-height: 36px !important; border-radius: 999px !important; }
/* Settings: the List / Cards switch is as tall as the search box beside it */
html body.admin-app main .stg-toolbar:not(#ui-none):not(#wg-none) { align-items: center !important; }
html body.admin-app main .stg-toolbar .stg-toggle:not(#ui-none):not(#wg-none) { height: 36px !important; align-items: center; padding: 3px !important; border-radius: 999px !important; }
html body.admin-app main .stg-toolbar .stg-toggle-btn:not(#ui-none):not(#wg-none) { height: 30px !important; border-radius: 999px !important; }

/* ───────────────────────── 40. Page titles always sit on the page, never inside a box (owner, 27 Nov 2026) ───────────────────────── */
html body.admin-app main :is([class$="-panel"], [class*="-panel "], [class$="-card"], [class*="-card "], [class$="-shell"], [class$="-wrap"], .ui-card-lift, .ui-flat-white, section, article):has(h1):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none) {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
}
html body.admin-app main :is([class$="-panel"], [class*="-panel "], [class$="-card"], [class*="-card "], .ui-card-lift, .ui-flat-white):has(:is(.payroll-shell-head > h2, .cpa-head > h2, .msa-header h2, .fin-title, [class$="-page-title"])):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none) {
    border: 0 !important; background: transparent !important; box-shadow: none !important; padding-left: 0 !important; padding-right: 0 !important; padding-top: 0 !important;
}
html body.admin-app main .payroll-shell-head:not(#ui-none):not(#wg-none) { padding: 0 !important; margin-bottom: 10px !important; }
/* the title row: title at the top-left, buttons beside it start at the same top line */
html body.admin-app main :is([class$="-head"], [class$="-header"], [class*="-head "], [class$="-top"], [class$="-topbar"]):has(> h1, > div > h1, > .payroll-shell-head, > h2.fin-title):not(table *, .db-hero):not(#ui-none):not(#wg-none) { align-items: flex-start !important; }
/* Accounts: one page title on top; "Master statements" under it is a section heading */
html body.admin-app main .pc-page > .pc-page-title:not(#ui-none):not(#wg-none) { margin: 0 0 12px !important; }
html body.admin-app main .msa-header h2:not(#ui-none):not(#wg-none) { font-size: 17px !important; font-weight: 500 !important; margin: 0 !important; }
/* Contracts: "Per page" box wide enough to show its number */
html body.admin-app main form select:is([name="per_page"], [name="perPage"], [name="limit"], [name="pp"]):not(#ui-none):not(#wg-none) { min-width: 84px !important; width: auto !important; flex: none !important; }

/* ───────────────────────── 41. One type scale everywhere (owner, 27 Nov 2026) ─────────────────────────
 * Page title 26/500 · section and card headings 15/500 · body, filters, buttons and tabs 13.5 · descriptions and notes
 * 12.5/400 grey · small status chips 12.5. Every filter field is 38px tall. */
html body:is(.admin-app, .agency-manning-app) main :is(h2, h3, h4, [class$="-card-title"], [class$="-section-title"], [class$="-panel-title"], [class$="-head"] > :is(h2, h3, strong:first-child), .ui-tbl-title :is(h2, h3, h4)):not(h1, .ui-keep *, .wg-keep, table *, dialog *, [role="dialog"] *, [class*="modal"] *, .um-page *, .db-greet, .pc-page-title, .msa-header h2, [class*="kpi"] *, [class*="tile"] *, [class*="eyebrow"], .fleet-head > h2, .payroll-shell-head > h2, .cpa-head > h2, .fin-title, [class$="-page-title"]):not(#ui-none):not(#wg-none) {
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
html body:is(.admin-app, .agency-manning-app) main :is([class$="-sub"], [class$="-subtitle"], [class$="-desc"], [class$="-description"], [class$="-note"], [class$="-hint"], [class$="-help"], :is(h2, h3) + p, [class$="-head"] p, [class$="-header"] p):not(.ui-keep *, .wg-keep, table *, dialog *, [role="dialog"] *, [class*="modal"] *, .um-page *, button, a[class*="btn"], [class*="badge"], [class*="chip"], [class*="pill"], .db-hero *, .ops-kpis *, [class*="kpi"] .value):not(#ui-none):not(#wg-none) {
    font-size: 12.5px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
/* filters: every field 38px, 13.5px text */
html body:is(.admin-app, .agency-manning-app) main :is(form[method="get" i], form:not([method]), form.wg-filters-plain, [class*="filter"], [class*="toolbar"], .stg-search) :is(input:is([type="text"], [type="search"], [type="date"], [type="month"], [type="number"], [type="email"], :not([type])), select):not(.period-picker *, table *, dialog *, [role="dialog"] *, [class*="modal"] *, .ui-keep *, .wg-keep, textarea, [type="checkbox"], [type="radio"]):nth-child(n):not(#ui-none):not(#wg-none) {
    height: 38px !important;
    min-height: 38px !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    font-family: var(--wg-font) !important;
}
/* buttons, tabs and switches: 13.5px; small status chips 12.5px */
html body:is(.admin-app, .agency-manning-app) main :is(button, a[class*="btn"], a[class*="-button"], [role="tab"], nav[class$="-tabs"] > a, [class$="-tabs"] > a, [class$="-toggle"] > :is(a, button), [class*="switch"] > :is(a, button)):not(.ui-keep *, .wg-keep, table *, dialog *, [role="dialog"] *, [class*="modal"] *, .um-page *, [class*="cal"] *, [class*="cal-"], .leaflet-container *, [class*="icon"], [class*="prev"], [class*="next"], [class*="arrow"], [class*="close"], [class*="more-rows"], [aria-label*="previous" i], [aria-label*="next" i], [class*="chip"], [class*="pill"], [class*="badge"], .kpi-accent, [class*="dot"], [class*="step"], [class*="kebab"], [class*="menu-btn"], [class$="-dots"]):not(#ui-none):not(#wg-none) {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
html body:is(.admin-app, .agency-manning-app) main :is(.kpi-accent, [class*="-chip"]:not([class*="chips"]), [class$="-pill"]):not(.ui-keep *, .wg-keep, table *, .ops-smart-chip, [class*="cal"] *):not(#ui-none):not(#wg-none) { font-size: 12.5px !important; }
html body.admin-app main :is(.fleet-vessel-card .vessel-title, .aa-card-h > h2):not(#ui-none):not(#wg-none) { font-size: 15px !important; font-weight: 500 !important; }
html body:is(.admin-app, .agency-manning-app) main [class$="-meta"]:not(.ui-keep *, table *, [class*="badge"], [class*="chip"], [class*="pill"], dialog *):not(#ui-none):not(#wg-none) { font-size: 12.5px !important; font-weight: 400 !important; }
html body.admin-app main .pa-view-switch.pa-view-switch.pa-view-switch > :is(a, button):not(.is-active):not(.active):not([aria-current="page"]):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) {
    background: #ffffff !important; border: 1px solid rgb(17 19 24 / 18%) !important; color: var(--wg-text) !important; box-shadow: none !important; height: 38px !important;
}
html[data-theme="dark"] body.admin-app main .pa-view-switch.pa-view-switch.pa-view-switch > :is(a, button):not(.is-active):not(.active):not([aria-current="page"]):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) { background: var(--wg-card-solid) !important; border-color: rgb(255 255 255 / 16%) !important; }
html body.admin-app main .pa-view-switch.pa-view-switch > .is-active:not(#ui-none):not(#wg-none):not(#wg-x) { height: 38px !important; }
html body.admin-app main :is(.aa-custom, .kpi-filters) :is(input, select):not([type="checkbox"]):not([type="radio"]):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) { border-radius: 999px !important; padding-left: 14px !important; height: 38px !important; font-size: 13.5px !important; }

/* Compliance, Table view: "Vessels" is not written twice — the bar above the table loses its title and its navy fill and
 * becomes a light row with just the Table / Cards switch and the vessel count; the navy column header is the one label. */
html body.admin-app main .compliance-card--fleet:has(.compliance-vessel-list[data-crew-view="table"]) > .compliance-section-head:nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) {
    background: transparent !important;
    box-shadow: none !important;
    color: var(--wg-text) !important;
    justify-content: flex-end !important;
    padding: 10px 14px !important;
    min-height: 0 !important;
}
html body.admin-app main .compliance-card--fleet:has(.compliance-vessel-list[data-crew-view="table"]) > .compliance-section-head > div:first-child:not(.compliance-section-tools) { display: none !important; }
html body.admin-app main .compliance-card--fleet:has(.compliance-vessel-list[data-crew-view="table"]) > .compliance-section-head .compliance-view-toggle > button:not(.is-active):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) {
    background: #ffffff !important; border: 1px solid rgb(17 19 24 / 18%) !important; color: var(--wg-text) !important;
}
html body.admin-app main .compliance-card--fleet:has(.compliance-vessel-list[data-crew-view="table"]) > .compliance-section-head .compliance-view-toggle > button.is-active:nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) {
    background: var(--ui-tbl-head-bg) !important; border: 1px solid var(--ui-tbl-head-bg) !important; color: #ffffff !important;
}
html body.admin-app main .compliance-card--fleet:has(.compliance-vessel-list[data-crew-view="table"]) > .compliance-section-head .compliance-section-badge:nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) {
    background: transparent !important; border: 1px solid rgb(17 19 24 / 14%) !important; color: var(--wg-muted) !important;
}
html[data-theme="dark"] body.admin-app main .compliance-card--fleet:has(.compliance-vessel-list[data-crew-view="table"]) > .compliance-section-head .compliance-view-toggle > button:not(.is-active):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) { background: var(--wg-card-solid) !important; border-color: rgb(255 255 255 / 16%) !important; }
/* the table's title row keeps rounded top corners when it is the first coloured row in the card */
html body.admin-app main .compliance-card--fleet:has(.compliance-vessel-list[data-crew-view="table"]) .compliance-vessel-list:not(#wg-none) { padding: 0 !important; }

/* Compliance, Cards view: no full-width box around the vessel cards — a plain "Vessels" heading row, then the cards */
html body.admin-app main .compliance-card--fleet:has(.compliance-vessel-list[data-crew-view="cards"]):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) {
    border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; overflow: visible !important;
}
html body.admin-app main .compliance-card--fleet:has(.compliance-vessel-list[data-crew-view="cards"]) > .compliance-section-head:nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) {
    background: transparent !important; color: var(--wg-text) !important; padding: 4px 0 10px !important; box-shadow: none !important;
}
html body.admin-app main .compliance-card--fleet:has(.compliance-vessel-list[data-crew-view="cards"]) > .compliance-section-head :is(h2, h3, span, .compliance-card-title):not(#ui-none):not(#wg-none):not(#wg-x) { color: var(--wg-text) !important; }
html body.admin-app main .compliance-card--fleet:has(.compliance-vessel-list[data-crew-view="cards"]) > .compliance-section-head .compliance-view-toggle > button:not(.is-active):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) { background: #ffffff !important; border: 1px solid rgb(17 19 24 / 18%) !important; color: var(--wg-text) !important; }
html body.admin-app main .compliance-card--fleet:has(.compliance-vessel-list[data-crew-view="cards"]) > .compliance-section-head .compliance-view-toggle > button.is-active:nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) { background: var(--ui-tbl-head-bg) !important; border: 1px solid var(--ui-tbl-head-bg) !important; color: #ffffff !important; }
html body.admin-app main .compliance-card--fleet:has(.compliance-vessel-list[data-crew-view="cards"]) > .compliance-section-head .compliance-section-badge:not(#ui-none):not(#wg-none):not(#wg-x) { background: transparent !important; border: 1px solid rgb(17 19 24 / 14%) !important; color: var(--wg-muted) !important; }
html body.admin-app main .compliance-card--fleet .compliance-vessel-list[data-crew-view="cards"]:not(#wg-none) { padding: 0 !important; }
html[data-theme="dark"] body.admin-app main .compliance-card--fleet:has(.compliance-vessel-list[data-crew-view="cards"]) > .compliance-section-head .compliance-view-toggle > button:not(.is-active):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) { background: var(--wg-card-solid) !important; border-color: rgb(255 255 255 / 16%) !important; }

/* ───────────────────────── 42. Calendars in the Stratus style (owner, 27 Nov 2026; Behance "Stratus CRM") ─────────────────────────
 * Dashboard calendar: a dark rounded card; plain numbers (no boxes), busy days that touch run together as one soft grey
 * pill, today a white circle, the picked day coral, coloured dots under a day show what is due. */
html body.admin-app main .dbx .dbx-card .dbx-cal:nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) {
    --st-bg: #232328; --st-pill: #3a3a41; --st-text: #f4f4f6; --st-muted: #8d8f99; --st-coral: #f47c7c;
    background: var(--st-bg) !important;
    color: var(--st-text) !important;
    border-radius: 24px !important;
    margin: 12px !important;
    padding: 18px 20px 16px !important;
    box-shadow: 0 14px 34px rgb(17 19 24 / 22%) !important;
}
html body.admin-app main .dbx-cal .dbx-cal-month:not(#ui-none):not(#wg-none):not(#wg-x) { background: transparent !important; color: var(--st-text) !important; border: 0 !important; font-size: 16px !important; font-weight: 500 !important; height: 32px !important; padding: 0 6px !important; border-radius: 999px !important; }
html body.admin-app main .dbx-cal .dbx-cal-month option { color: #111318; }
html body.admin-app main .dbx-cal .dbx-cal-step:nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) { width: 32px !important; height: 32px !important; border-radius: 50% !important; background: var(--st-pill) !important; border: 0 !important; color: var(--st-text) !important; box-shadow: none !important; font-size: 16px !important; }
html body.admin-app main .dbx-cal .dbx-od-chip:nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) { background: rgb(244 124 124 / 16%) !important; border: 1px solid rgb(244 124 124 / 55%) !important; color: #ffb3b3 !important; height: 28px !important; }
html body.admin-app main .dbx-cal .dbx-cal-legend button:not(#ui-none):not(#wg-none):not(#wg-x) { background: transparent !important; border: 1px solid rgb(255 255 255 / 16%) !important; color: var(--st-text) !important; }
html body.admin-app main .dbx-cal .dbx-cal-legend b { color: var(--st-text) !important; }
html body.admin-app main .dbx-cal .dbx-cal-grid:not(#wg-none) { row-gap: 6px !important; margin-top: 8px; }
html body.admin-app main .dbx-cal .dbx-cal-wd:not(#wg-none) { color: var(--st-muted) !important; font-size: 12px !important; font-weight: 500 !important; padding-bottom: 8px !important; }
/* the day: number only, no frame */
html body.admin-app main .dbx .dbx-cal .dbx-cal-day:nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) {
    height: 40px !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important;
    color: var(--st-text) !important; justify-content: center !important; position: relative; gap: 0 !important;
}
html body.admin-app main .dbx-cal .dbx-cal-day.is-past:not(#wg-none) { color: var(--st-muted) !important; }
html body.admin-app main .dbx-cal .dbx-cal-num:not(#ui-none):not(#wg-none):not(#wg-x) { width: 34px !important; height: 34px !important; font-size: 13.5px !important; font-weight: 500 !important; position: relative; z-index: 1; }
/* busy days: a soft pill behind the number, joined across neighbouring busy days */
html body.admin-app main .dbx-cal .dbx-cal-day.has-items:not(#wg-none)::before {
    content: ""; position: absolute; top: 3px; bottom: 3px; left: 4px; right: 4px; background: var(--st-pill); border-radius: 999px; z-index: 0;
}
html body.admin-app main .dbx-cal .dbx-cal-day.has-items.join-l:not(#wg-none)::before { left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
html body.admin-app main .dbx-cal .dbx-cal-day.has-items.join-r:not(#wg-none)::before { right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
html body.admin-app main .dbx-cal .dbx-cal-day.is-past.has-items:not(#wg-none)::before { opacity: 0.55; }
/* today: white circle; picked: coral */
html body.admin-app main .dbx-cal .dbx-cal-day.is-today .dbx-cal-num:not(#ui-none):not(#wg-none):not(#wg-x) { background: #ffffff !important; color: #232328 !important; box-shadow: none !important; }
html body.admin-app main .dbx-cal .dbx-cal-day[aria-selected="true"] .dbx-cal-num:not(#ui-none):not(#wg-none):not(#wg-x) { background: var(--st-coral) !important; color: #ffffff !important; box-shadow: 0 6px 14px rgb(244 124 124 / 35%) !important; }
html body.admin-app main .dbx-cal .dbx-cal-day:not(:disabled):hover .dbx-cal-num:not(#ui-none):not(#wg-none):not(#wg-x) { background: rgb(255 255 255 / 12%); }
/* what is due: tiny dots tucked under the number */
html body.admin-app main .dbx-cal .dbx-cal-dots:not(#wg-none) { position: absolute; bottom: 4px; left: 0; right: 0; justify-content: center; z-index: 2; height: 4px; }
html body.admin-app main .dbx-cal .dbx-cal-err:not(#wg-none) { color: var(--st-muted) !important; }
/* Sign-off calendar (big month): the light version of the same style — no grid lines, soft rounded day tiles with the
 * number top-left, today a dark circle, the picked day coral, event chips as small rounded pills */
html body.admin-app main .cal-grid:not(.ui-keep *):not(#ui-none):not(#wg-none):not(#wg-x) { gap: 6px !important; border: 0 !important; background: transparent !important; }
html body.admin-app main .cal-grid .cal-day:nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) {
    border: 0 !important; border-radius: 16px !important; background: #f5f6f9 !important; box-shadow: none !important; padding: 8px !important; min-height: 84px;
}
html body.admin-app main .cal-grid .cal-day.outside-month:nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) { background: transparent !important; opacity: 0.5; }
html body.admin-app main .cal-grid .cal-day .cal-day-head:not(#ui-none):not(#wg-none):not(#wg-x) { border: 0 !important; background: transparent !important; padding: 0 !important; }
html body.admin-app main .cal-grid .cal-day .cal-day-num:not(#ui-none):not(#wg-none):not(#wg-x) { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 999px; font-size: 13.5px !important; font-weight: 500 !important; color: #232328 !important; }
html body.admin-app main .cal-grid .cal-day.is-today .cal-day-num:not(#ui-none):not(#wg-none):not(#wg-x) { background: #232328 !important; color: #ffffff !important; }
html body.admin-app main .cal-grid .cal-day.is-selected:nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) { background: rgb(244 124 124 / 12%) !important; box-shadow: inset 0 0 0 1.5px #f47c7c !important; }
html body.admin-app main .cal-grid .cal-day.is-selected .cal-day-num:not(#ui-none):not(#wg-none):not(#wg-x) { background: #f47c7c !important; color: #ffffff !important; }
html body.admin-app main .cal-grid .cal-day .cal-day-count:not(#ui-none):not(#wg-none):not(#wg-x) { background: #232328 !important; color: #ffffff !important; border-radius: 999px !important; font-size: 11px !important; min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 5px; }
html body.admin-app main .cal-grid .cal-event-chip:not(#ui-none):not(#wg-none):not(#wg-x) { border-radius: 10px !important; border: 0 !important; box-shadow: none !important; }
html body.admin-app main .cal-weekdays > *, html body.admin-app main .cal-grid-head > * { border: 0 !important; background: transparent !important; color: #8d8f99 !important; font-size: 12px !important; font-weight: 500 !important; text-transform: none !important; letter-spacing: 0 !important; }
html[data-theme="dark"] body.admin-app main .cal-grid .cal-day:nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) { background: #1c1d22 !important; }
html[data-theme="dark"] body.admin-app main .cal-grid .cal-day .cal-day-num:not(#ui-none):not(#wg-none):not(#wg-x) { color: #f4f4f6 !important; }
html[data-theme="dark"] body.admin-app main .cal-grid .cal-day.is-today .cal-day-num:not(#ui-none):not(#wg-none):not(#wg-x) { background: #ffffff !important; color: #232328 !important; }

/* ───────────────────────── 43. Two palettes from the owner's references (27 Nov 2026) ─────────────────────────
 * Light: soft grey canvas, white rounded cards, electric blue highlight with thin circle lines, orange second accent.
 * Dark: near-black canvas, charcoal rounded cards with a faint edge, warm accents (yellow highlight, orange-red, green),
 * striped empty tracks, round dark icon buttons. The sidebar keeps the company palette colour in both. */
html body:is(.admin-app, .agency-manning-app):not(#ui-none):not(#wg-none) {
    --wg-canvas: #ebecf2;
    --wg-accent-hi: #3b3ff2;
    --wg-accent-2: #f7802f;
    --wg-good: #12b76a;
}
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app):not(#ui-none):not(#wg-none) {
    --wg-canvas: #0b0b0c;
    --wg-accent-hi: #ffd23f;
    --wg-accent-2: #f0441c;
    --wg-good: #4cc98a;
    --wg-card: #161617;
    --wg-card-solid: #161617;
    --wg-card-line: rgb(255 255 255 / 8%);
    --wg-text: #f2f2f3;
    --wg-text-2: #c9c9cd;
    --wg-muted: #8c8c92;
    --wg-line: rgb(255 255 255 / 14%);
    --wg-input-line: rgb(255 255 255 / 18%);
    --wg-fill: rgb(255 255 255 / 6%);
    --ui-bg: #0b0b0c;
    --ui-bg-subtle: #121213;
    --ui-surface: #161617;
    --ui-border: rgb(255 255 255 / 14%);
    --ui-divider: rgb(255 255 255 / 6%);
    --ui-text: #f2f2f3;
    --ui-text-2: #c9c9cd;
    --ui-muted: #8c8c92;
    --ui-tbl-head-bg: #222224 !important;
    --ui-tbl-head-text: #f2f2f3 !important;
    --wg-hatch: repeating-linear-gradient(135deg, #1b1b1d 0 6px, #252527 6px 8px);
}
/* canvas */
html:has(> body:is(.admin-app, .agency-manning-app)) { background: var(--wg-canvas) !important; }
html body:is(.admin-app, .agency-manning-app)::before,
html body.admin-app.admin-layout-sidebar::before { background: var(--wg-canvas) !important; }
html body.admin-app.admin-layout-sidebar header.admin-header:not(#wg-none)::before { background: color-mix(in srgb, var(--wg-canvas) 86%, transparent) !important; }
html body:is(.admin-app, .agency-manning-app) main:not(#ui-none):not(#wg-none) { background: transparent !important; }

/* cards: white (light) / charcoal (dark), 22px corners, a faint edge */
html body.admin-app main :is(.ui-card-lift, .ui-flat-white, .card, .panel, .ui-card, [class$="-card"], [class*="-card "], [class$="-panel"], [class*="-panel "], [class$="-table-wrap"], .table-wrap):not(.db-hero, .ops-kpis > .ops-kpi:first-child, .wg-keep, .ui-keep *, table *, dialog *, [role="dialog"] *, [class*="modal"] *, .admin-nav-skin-open *, [class*="dropdown"], [class*="menu"], [class*="popover"], [class*="tooltip"], .leaflet-container *, form, [class*="filter"], [class*="toolbar"], [class*="search"], [class*="tabs"], .dbx-cal):nth-child(n):not(#ui-none):not(#wg-none) {
    background-color: var(--wg-card-solid) !important;
    border-radius: 22px !important;
}
html body.admin-app main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):not(:first-child):nth-child(n):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x) {
    background: var(--wg-card-solid) !important;
    border-radius: 22px !important;
}
html[data-theme="dark"] body.admin-app main :is(.ui-card-lift, .ui-flat-white, .card, .panel, .ui-card, [class$="-card"], [class*="-card "], [class$="-panel"], [class*="-panel "], [class$="-table-wrap"], .table-wrap):not(.db-hero, .wg-keep, .ui-keep *, table *, dialog *, .admin-nav-skin-open *, form, [class*="filter"], [class*="toolbar"], [class*="search"], [class*="tabs"], .dbx-cal):nth-child(n):not(#ui-none):not(#wg-none) {
    border-color: rgb(255 255 255 / 8%) !important;
    box-shadow: none !important;
}

/* the highlight card: electric blue with thin circle lines (light) / warm yellow with dark text (dark) */
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):first-child:is(*, .good, .warn, .critical):nth-child(n):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x) {
    background:
        radial-gradient(circle at 115% 120%, transparent 54%, rgb(255 255 255 / 28%) 54.4%, transparent 55%),
        radial-gradient(circle at -10% -40%, transparent 46%, rgb(255 255 255 / 22%) 46.4%, transparent 47%),
        var(--wg-accent-hi) !important;
    box-shadow: 0 14px 30px color-mix(in srgb, var(--wg-accent-hi) 30%, transparent) !important;
    border: 0 !important;
    border-radius: 22px !important;
}
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):first-child:nth-child(n):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x) :is(*, .value, .label, .sub, [class$="-label"], [class$="-hint"], [class$="-val"], [class$="-num"], small) {
    color: #141414 !important;
}
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):first-child:is(*, .good, .warn, .critical):nth-child(n):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x) {
    background:
        radial-gradient(circle at 115% 120%, transparent 54%, rgb(0 0 0 / 14%) 54.4%, transparent 55%),
        var(--wg-accent-hi) !important;
    box-shadow: none !important;
}
/* the AI overview tint follows the same accent */
html body.admin-app main .ops-panel.ops-smart-scan:nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) {
    background: linear-gradient(135deg, color-mix(in srgb, var(--wg-accent-hi) 8%, var(--wg-card-solid)) 0%, var(--wg-card-solid) 70%) !important;
}

/* dark: round dark icon buttons and pill fields like the reference */
html[data-theme="dark"] body.admin-app main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select):not(.ui-keep *, .wg-keep *, [class*="calendar"] *):not(#ui-none):not(#wg-none):not(#wg-x) {
    background-color: #1c1c1e !important;
    border-color: rgb(255 255 255 / 10%) !important;
}
html[data-theme="dark"] body.admin-app main .wg-btn-light:not(#ui-none):not(#wg-none):not(#wg-x) { background: #1f1f21 !important; border-color: rgb(255 255 255 / 10%) !important; color: #f2f2f3 !important; }
/* dark: empty progress tracks are striped */
html[data-theme="dark"] body.admin-app main :is([class*="bar-track"], [class*="-track"], [class*="progress"]:not(:has(*)), .ops-nat-bar, [class*="meter"]):not(#ui-none):not(#wg-none) { background-image: var(--wg-hatch) !important; background-color: transparent !important; }

/* light: status chips are outlined pills with a coloured dot, the second accent is orange */
html:not([data-theme="dark"]) body.admin-app main .kpi-accent:not(.is-on):not(#ui-none):not(#wg-none):not(#wg-x) { background: #ffffff !important; border: 1px solid rgb(17 19 24 / 12%) !important; }
/* dark: neutral charcoal cards — no blue sheen */
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app, .crew-app):not(#ui-none):not(#wg-none) { --wg-glass-sheen: none; --wg-glass-fill: #161617; }
html[data-theme="dark"] body.admin-app main :is(.ui-card-lift, .ui-flat-white, .card, .panel, .ui-card, [class$="-card"], [class*="-card "], [class$="-panel"], [class*="-panel "]):not(.wg-keep, .ui-keep *, .dbx-cal, .ops-smart-scan):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) { background-image: none !important; }
/* light: the highlight card is the company palette colour, so it always matches the sidebar */
html:not([data-theme="dark"]) body:is(.admin-app, .agency-manning-app):not(#ui-none):not(#wg-none):not(#wg-x) { --wg-accent-hi: var(--ui-primary, #3b3ff2); }
html:not([data-theme="dark"]) body:is(.admin-app, .agency-manning-app)[data-sidebar-custom-tone="light"]:not(#ui-none):not(#wg-none):not(#wg-x) { --wg-accent-hi: #3b3ff2; }

/* ───────────────────────── 44. Every number card coloured: shades of blue and grey (owner, 27 Nov 2026) ─────────────────────────
 * Cards in a row take, in turn: strong blue, pale blue, light grey, medium blue, blue-grey (dark mode: deeper shades).
 * The strong and medium blue cards carry the thin circle lines. */
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 1):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { background: #3b3ff2 !important; border: 0 !important; box-shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 8px 20px rgb(16 24 40 / 8%) !important; border-radius: 22px !important; }
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 1):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) :is(*, .value, .label, .sub, [class$="-label"], [class$="-hint"], [class$="-val"], [class$="-num"], small, a, span, strong, b) { color: #ffffff !important; }
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 1):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) :is(.label, .sub, [class$="-label"], [class$="-hint"], small) { color: rgb(255 255 255 / 80%) !important; }
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 2):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { background: #d9dcff !important; border: 0 !important; box-shadow: none !important; border-radius: 22px !important; }
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 2):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) :is(*, .value, .label, .sub, [class$="-label"], [class$="-hint"], [class$="-val"], [class$="-num"], small, a, span, strong, b) { color: #16186b !important; }
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 2):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) :is(.label, .sub, [class$="-label"], [class$="-hint"], small) { color: rgb(22 24 107 / 70%) !important; }
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 3):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { background: #d5d8e2 !important; border: 0 !important; box-shadow: none !important; border-radius: 22px !important; }
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 3):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) :is(*, .value, .label, .sub, [class$="-label"], [class$="-hint"], [class$="-val"], [class$="-num"], small, a, span, strong, b) { color: #15171c !important; }
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 3):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) :is(.label, .sub, [class$="-label"], [class$="-hint"], small) { color: rgb(21 23 28 / 62%) !important; }
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 4):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { background: #7d80f6 !important; border: 0 !important; box-shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 8px 20px rgb(16 24 40 / 8%) !important; border-radius: 22px !important; }
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 4):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) :is(*, .value, .label, .sub, [class$="-label"], [class$="-hint"], [class$="-val"], [class$="-num"], small, a, span, strong, b) { color: #ffffff !important; }
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 4):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) :is(.label, .sub, [class$="-label"], [class$="-hint"], small) { color: rgb(255 255 255 / 82%) !important; }
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 5):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { background: #cdd3e1 !important; border: 0 !important; box-shadow: none !important; border-radius: 22px !important; }
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 5):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) :is(*, .value, .label, .sub, [class$="-label"], [class$="-hint"], [class$="-val"], [class$="-num"], small, a, span, strong, b) { color: #16203a !important; }
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 5):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) :is(.label, .sub, [class$="-label"], [class$="-hint"], small) { color: rgb(22 32 58 / 66%) !important; }
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 1):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { background: #3b3ff2 !important; border: 0 !important; box-shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 8px 20px rgb(16 24 40 / 8%) !important; border-radius: 22px !important; }
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 1):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) :is(*, .value, .label, .sub, [class$="-label"], [class$="-hint"], [class$="-val"], [class$="-num"], small, a, span, strong, b) { color: #ffffff !important; }
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 1):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) :is(.label, .sub, [class$="-label"], [class$="-hint"], small) { color: rgb(255 255 255 / 80%) !important; }
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 2):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { background: #23255e !important; border: 0 !important; box-shadow: none !important; border-radius: 22px !important; }
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 2):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) :is(*, .value, .label, .sub, [class$="-label"], [class$="-hint"], [class$="-val"], [class$="-num"], small, a, span, strong, b) { color: #e4e5ff !important; }
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 2):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) :is(.label, .sub, [class$="-label"], [class$="-hint"], small) { color: rgb(228 229 255 / 70%) !important; }
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 3):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { background: #232326 !important; border: 0 !important; box-shadow: none !important; border-radius: 22px !important; }
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 3):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) :is(*, .value, .label, .sub, [class$="-label"], [class$="-hint"], [class$="-val"], [class$="-num"], small, a, span, strong, b) { color: #f2f2f3 !important; }
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 3):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) :is(.label, .sub, [class$="-label"], [class$="-hint"], small) { color: rgb(242 242 243 / 60%) !important; }
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 4):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { background: #5458ec !important; border: 0 !important; box-shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 8px 20px rgb(16 24 40 / 8%) !important; border-radius: 22px !important; }
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 4):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) :is(*, .value, .label, .sub, [class$="-label"], [class$="-hint"], [class$="-val"], [class$="-num"], small, a, span, strong, b) { color: #ffffff !important; }
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 4):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) :is(.label, .sub, [class$="-label"], [class$="-hint"], small) { color: rgb(255 255 255 / 82%) !important; }
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 5):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { background: #2c3140 !important; border: 0 !important; box-shadow: none !important; border-radius: 22px !important; }
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 5):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) :is(*, .value, .label, .sub, [class$="-label"], [class$="-hint"], [class$="-val"], [class$="-num"], small, a, span, strong, b) { color: #e8ebf2 !important; }
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(5n + 5):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) :is(.label, .sub, [class$="-label"], [class$="-hint"], small) { color: rgb(232 235 242 / 64%) !important; }

/* owner, 27 Nov 2026: light mode background is plain white again (cards keep their clear grey edge) */
html:not([data-theme="dark"]) body:is(.admin-app, .agency-manning-app):not(#ui-none):not(#wg-none):not(#wg-x) { --wg-canvas: #ffffff; }

/* dashboard: no line under the number cards */
html body.admin-app main .ops-kpis:nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) { border-bottom: 0 !important; box-shadow: none !important; }

/* ───────────────────────── 45. Calendars: white (light) / black (dark), blue highlights, red overdue (owner, 27 Nov 2026) ───────────────────────── */
html body.admin-app main .dbx .dbx-card .dbx-cal:nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) {
    --st-bg: #ffffff; --st-pill: #e3e5ff; --st-pill-past: #eef0f4; --st-text: #111318; --st-muted: #8b8f9a; --st-blue: var(--wg-accent-hi, #3b3ff2); --st-red: #e5484d;
    background: var(--st-bg) !important;
    color: var(--st-text) !important;
    border: 1px solid rgb(17 19 24 / 12%) !important;
    box-shadow: 0 8px 24px rgb(17 19 24 / 6%) !important;
}
html[data-theme="dark"] body.admin-app main .dbx .dbx-card .dbx-cal:nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) {
    --st-bg: #0e0e0f; --st-pill: #23255e; --st-pill-past: #1c1c1e; --st-text: #f2f2f3; --st-muted: #8c8c92; --st-blue: #5b5ff5; --st-red: #ff6b6b;
    border-color: rgb(255 255 255 / 9%) !important;
    box-shadow: none !important;
}
html body.admin-app main .dbx-cal .dbx-cal-step:nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { background: var(--st-pill-past) !important; color: var(--st-text) !important; }
html body.admin-app main .dbx-cal .dbx-cal-month:not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { color: var(--st-text) !important; }
html body.admin-app main .dbx-cal .dbx-cal-legend button:not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { border-color: rgb(128 128 140 / 25%) !important; color: var(--st-text) !important; }
html body.admin-app main .dbx-cal .dbx-cal-legend b:not(#wg-y) { color: var(--st-text) !important; }
html body.admin-app main .dbx-cal .dbx-od-chip:nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { background: color-mix(in srgb, var(--st-red) 12%, transparent) !important; border: 1px solid color-mix(in srgb, var(--st-red) 55%, transparent) !important; color: var(--st-red) !important; }
html body.admin-app main .dbx-cal .dbx-cal-day.has-items:not(#wg-none)::before { background: var(--st-pill) !important; opacity: 1 !important; }
html body.admin-app main .dbx-cal .dbx-cal-day.is-past.has-items:not(#wg-none)::before { background: var(--st-pill-past) !important; }
html body.admin-app main .dbx-cal .dbx-cal-day.is-today .dbx-cal-num:not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { background: transparent !important; color: var(--st-blue) !important; box-shadow: inset 0 0 0 2px var(--st-blue) !important; }
html body.admin-app main .dbx-cal .dbx-cal-day[aria-selected="true"] .dbx-cal-num:not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { background: var(--st-blue) !important; color: #ffffff !important; box-shadow: 0 6px 14px color-mix(in srgb, var(--st-blue) 35%, transparent) !important; }
html body.admin-app main .dbx-cal .dbx-cal-day:not(:disabled):hover .dbx-cal-num:not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { background: color-mix(in srgb, var(--st-blue) 14%, transparent); }

/* Sign-off calendar: white tiles with a faint edge (black tiles in dark), today a blue ring, the picked day solid blue */
html body.admin-app main .cal-grid .cal-day:nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { background: #ffffff !important; box-shadow: inset 0 0 0 1px rgb(17 19 24 / 9%) !important; }
html body.admin-app main .cal-grid .cal-day.outside-month:nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { background: transparent !important; box-shadow: none !important; }
html body.admin-app main .cal-grid .cal-day.is-today .cal-day-num:not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { background: transparent !important; color: var(--wg-accent-hi, #3b3ff2) !important; box-shadow: inset 0 0 0 2px var(--wg-accent-hi, #3b3ff2) !important; }
html body.admin-app main .cal-grid .cal-day.is-selected:nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { background: color-mix(in srgb, var(--wg-accent-hi, #3b3ff2) 8%, #ffffff) !important; box-shadow: inset 0 0 0 1.5px var(--wg-accent-hi, #3b3ff2) !important; }
html body.admin-app main .cal-grid .cal-day.is-selected .cal-day-num:not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { background: var(--wg-accent-hi, #3b3ff2) !important; color: #ffffff !important; box-shadow: none !important; }
html body.admin-app main .cal-grid .cal-day .cal-day-count:not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { background: var(--wg-accent-hi, #3b3ff2) !important; }
html[data-theme="dark"] body.admin-app main .cal-grid .cal-day:nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { background: #0e0e0f !important; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%) !important; }
html[data-theme="dark"] body.admin-app main .cal-grid .cal-day.is-selected:nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { background: #1a1b3a !important; box-shadow: inset 0 0 0 1.5px #5b5ff5 !important; }
html[data-theme="dark"] body.admin-app main .cal-grid .cal-day.is-today .cal-day-num:not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { color: #8f92ff !important; box-shadow: inset 0 0 0 2px #5b5ff5 !important; }
html[data-theme="dark"] body.admin-app main .cal-grid .cal-day.is-selected .cal-day-num:not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y),
html[data-theme="dark"] body.admin-app main .cal-grid .cal-day .cal-day-count:not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { background: #5b5ff5 !important; color: #ffffff !important; }

/* Crew profile header: a coloured card again (the "titles never in a box" rule had stripped it, leaving white text on
 * white). Palette colour with a soft gradient and the thin circle lines; white text; room around the avatar. */
html body.admin-app main .ep-hero:nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) {
    background:
        radial-gradient(circle at 105% 130%, transparent 52%, rgb(255 255 255 / 18%) 52.3%, transparent 52.8%),
        radial-gradient(circle at 92% -60%, transparent 44%, rgb(255 255 255 / 14%) 44.3%, transparent 44.8%),
        linear-gradient(120deg, var(--wg-accent-hi, #3b3ff2) 0%, color-mix(in srgb, var(--wg-accent-hi, #3b3ff2) 70%, #000) 100%) !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 24px !important;
    padding: 22px 26px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 14px 32px color-mix(in srgb, var(--wg-accent-hi, #3b3ff2) 22%, transparent) !important;
    overflow: visible !important;
}
html[data-theme="dark"] body.admin-app main .ep-hero:nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) {
    background:
        radial-gradient(circle at 105% 130%, transparent 52%, rgb(255 255 255 / 12%) 52.3%, transparent 52.8%),
        linear-gradient(120deg, #23255e 0%, #15163a 100%) !important;
    box-shadow: none !important;
    border: 1px solid rgb(255 255 255 / 8%) !important;
}
html body.admin-app main .ep-hero :is(h1, h2, .ep-hero-name, [class*="name"]):not(#ui-none):not(#wg-none):not(#wg-x) { color: #ffffff !important; -webkit-text-stroke: 0 !important; text-shadow: none !important; }
html body.admin-app main .ep-hero :is(p, span, small, dt, dd, div, a:not([class*="btn"])):not([class*="badge"]):not([class*="pill"]):not([class*="chip"]):not(#ui-none):not(#wg-none) { color: inherit; }
html body.admin-app main .ep-hero .ep-hero-avatar :is(.ep-hero-photo-frame):not(#wg-none) { box-shadow: 0 0 0 3px rgb(255 255 255 / 55%) !important; }
/* crew profile: the header and tabs sit inside the page margins; the profile sections stand alone (no box around
 * them); section headings without the green side bar */
html body.admin-app main .employee-profile-page > :is(.ep-hero, nav, [class*="tabs"], [class*="tab-bar"]):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { margin-left: 0 !important; margin-right: 0 !important; }
html body.admin-app main .ep-main:nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; }
html body.admin-app main .employee-profile-page :is(.ep-single-card-header, [class*="-card-header"], [class*="section-head"]) :is(h2, h3, h4)::before { display: none !important; content: none !important; }
html body.admin-app main .employee-profile-page :is(.ep-single-card-header, [class*="-card-header"], [class*="section-head"]) :is(h2, h3, h4):not(#ui-none):not(#wg-none) { padding-left: 0 !important; border-left: 0 !important; }
/* the tab panel around the profile sections (the box around the boxes) is frameless; each section keeps its own box */
html body.admin-app main .employee-profile-page > .ep-module-panel:has(.ep-main--profile-full):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) {
    border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important;
}
html body.admin-app main .ep-profile-module-head:not(#ui-none):not(#wg-none) { padding: 0 2px 8px !important; }
/* crew profile tabs: wrap onto a second line instead of running off the edge */
html body.admin-app main .ep-module-nav .ep-module-nav__inner:not(#ui-none):not(#wg-none):not(#wg-x) { flex-wrap: wrap !important; overflow: visible !important; row-gap: 8px !important; }
html body.admin-app main .ep-module-nav:not(#ui-none):not(#wg-none):not(#wg-x) { overflow: visible !important; margin-left: 0 !important; margin-right: 0 !important; max-width: 100% !important; }
html body.admin-app main .employee-profile-page > .ep-hero:nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { width: auto !important; max-width: 100% !important; box-sizing: border-box !important; }
html body.admin-app main .ep-module-nav .ep-module-nav__inner:not(#ui-none):not(#wg-none):not(#wg-x) { justify-content: flex-start !important; padding-left: 0 !important; }
html body.admin-app main .ep-module-nav:not(#ui-none):not(#wg-none):not(#wg-x) { background: transparent !important; box-shadow: none !important; padding: 0 !important; margin-bottom: 12px !important; }

/* Crew profile › Documents: tabs row inside the box with room, the column header row coloured like every table title
 * row, clear box edge */
html body.admin-app main .ep-module-card:nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { border: 1px solid rgb(17 19 24 / 13%) !important; border-radius: 22px !important; overflow: hidden !important; }
html[data-theme="dark"] body.admin-app main .ep-module-card:nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { border-color: rgb(255 255 255 / 9%) !important; }
html body.admin-app main .ep-drm-tabs__bar:not(#ui-none):not(#wg-none):not(#wg-x) { padding: 14px 16px !important; align-items: center !important; gap: 12px; flex-wrap: wrap; }
html body.admin-app main .ep-drm-tabs__summary-wrap:not(#ui-none):not(#wg-none):not(#wg-x) { margin-left: auto !important; align-items: center !important; gap: 8px; }
html body.admin-app main .ep-drm-table > thead > tr > :is(th, td):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) {
    background: var(--ui-tbl-head-bg) !important;
    box-shadow: inset 0 0 0 9999px var(--ui-tbl-head-bg) !important;
    color: var(--ui-tbl-head-text, #ffffff) !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    height: 42px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    border: 0 !important;
}
html body.admin-app main .ep-drm-table > thead > tr > :is(th, td) * { color: inherit !important; }
html body.admin-app main .ep-drm-table > tbody > tr > td:not(#ui-none):not(#wg-none):not(#wg-x) { vertical-align: middle !important; border-bottom: 1px solid rgb(17 19 24 / 7%) !important; }
html[data-theme="dark"] body.admin-app main .ep-drm-table > tbody > tr > td:not(#ui-none):not(#wg-none):not(#wg-x) { border-bottom-color: rgb(255 255 255 / 7%) !important; }
/* the category line ("Travel documents · 3 req · 3 pend") reads as a quiet group heading */
html body.admin-app main .ep-drm-cat-group > tr:first-child > :is(th, td):not(#ui-none):not(#wg-none):not(#wg-x) { background: color-mix(in srgb, var(--ui-tbl-head-bg) 6%, transparent) !important; }
html body.admin-app main .ep-drm-table > thead > tr > :is(th, td):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { vertical-align: middle !important; line-height: 1.2 !important; }
/* crew profile: titles and notes inside a module box keep 16px from its edge; the header facts wrap with a clear gap */
html body.admin-app main .ep-module-card > :is(h2, h3, h4, p, header, [class*="-head"]:not(table *)):not(.ui-tbl-title):not(#ui-none):not(#wg-none):not(#wg-x) { padding-left: 16px !important; padding-right: 16px !important; }
html body.admin-app main .ep-module-card > :is(h2, h3, h4, header, [class*="-head"]:not(table *)):first-child:not(.ui-tbl-title):not(#ui-none):not(#wg-none):not(#wg-x) { padding-top: 14px !important; }
html body.admin-app main .ep-hero .ep-hero-mini-grid:not(#ui-none):not(#wg-none):not(#wg-x) { row-gap: 12px !important; column-gap: 10px !important; flex-wrap: wrap !important; align-items: flex-start !important; }

/* ───────────────────────── 46. No decorative lines (owner, 27 Nov 2026) ─────────────────────────
 * Profile header: keep the blue, drop the circle lines, the line above the facts and the curved dividers between facts.
 * Everywhere: no glass sheen (faint diagonal streaks on panels and tabs); no box drawn around another box. */
html body:is(.admin-app, .agency-manning-app, .crew-app):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { --wg-glass-sheen: none; }
html body.admin-app main .ep-hero:nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) {
    background: linear-gradient(120deg, var(--wg-accent-hi, #3b3ff2) 0%, color-mix(in srgb, var(--wg-accent-hi, #3b3ff2) 72%, #000) 100%) !important;
}
html[data-theme="dark"] body.admin-app main .ep-hero:nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) {
    background: linear-gradient(120deg, #23255e 0%, #15163a 100%) !important;
}
html body.admin-app main .ep-hero :is(.ep-hero-mini-grid, .ep-hero-pill, .ep-hero-strip):not(#ui-none):not(#wg-none):not(#wg-x) { border: 0 !important; box-shadow: none !important; }
html body.admin-app main .ep-hero::before, html body.admin-app main .ep-hero::after, html body.admin-app main .ep-hero-shell::before, html body.admin-app main .ep-hero-shell::after { display: none !important; }
/* panels and tab panels: plain fill, no streaks */
html body.admin-app main :is(.ep-tab-panel, .ep-module-panel, .ep-single-card, .ui-card-lift, .ui-flat-white, [class$="-panel"], [class$="-card"]):not(.ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto, .db-hero, .ep-hero, .ops-smart-scan, .wg-keep, .ui-keep *):not(#ui-none):not(#wg-none):not(#wg-x) { background-image: none !important; }
/* crew profile: the summary card around the sections is frameless, so each section shows one edge only */
html body.admin-app main .ep-single-card.ep-profile-summary:nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) {
    border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important;
}
html body.admin-app main .ep-profile-summary-section:nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) { border: 1px solid rgb(17 19 24 / 13%) !important; border-radius: 22px !important; box-shadow: none !important; margin-bottom: 12px !important; }
html[data-theme="dark"] body.admin-app main .ep-profile-summary-section:nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) { border-color: rgb(255 255 255 / 9%) !important; }
/* tabs: the row itself has no fill or line behind it */
html body.admin-app main :is(.ep-module-nav, .ep-module-nav__inner, [role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs):not(#ui-none):not(#wg-none):not(#wg-x) { background: transparent !important; background-image: none !important; box-shadow: none !important; border: 0 !important; }

/* Crew profile › Documents: when a tab holds a single category, its heading row repeats the tab name — hidden */
html body.admin-app main .ep-drm-part--tabbed .ep-drm-cat-group:only-of-type > tr.ep-drm-cat-row { display: none !important; }

/* ───────────────────────── 47. Apple-style glass materials (owner, 27 Nov 2026: "glassy … Apple like feel") ─────────────────────────
 * Modelled on Apple's system materials: translucent surfaces with background blur and saturation, a bright inner top
 * highlight, a hairline edge and soft layered depth; pill controls with a lifted selected state. The page stays white and
 * there are no streaks or gradients behind content. */
html body:is(.admin-app, .agency-manning-app):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) {
    --ap-fill: rgb(255 255 255 / 78%);
    --ap-fill-strong: rgb(255 255 255 / 92%);
    --ap-blur: blur(28px) saturate(180%);
    --ap-edge: rgb(0 0 0 / 9%);
    --ap-hi: inset 0 1px 0 rgb(255 255 255 / 95%), inset 0 0 0 1px rgb(255 255 255 / 55%);
    --ap-depth: 0 1px 2px rgb(0 0 0 / 4%), 0 8px 28px rgb(0 0 0 / 6%);
    --ap-depth-lift: 0 2px 6px rgb(0 0 0 / 6%), 0 14px 36px rgb(0 0 0 / 9%);
}
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) {
    --ap-fill: rgb(28 28 30 / 72%);
    --ap-fill-strong: rgb(36 36 38 / 88%);
    --ap-edge: rgb(255 255 255 / 9%);
    --ap-hi: inset 0 1px 0 rgb(255 255 255 / 7%), inset 0 0 0 1px rgb(255 255 255 / 4%);
    --ap-depth: 0 1px 2px rgb(0 0 0 / 40%), 0 10px 30px rgb(0 0 0 / 35%);
    --ap-depth-lift: 0 2px 6px rgb(0 0 0 / 45%), 0 16px 40px rgb(0 0 0 / 45%);
}

/* cards and panels: frosted surface, hairline edge, inner highlight, soft depth */
html body.admin-app main :is(.ui-card-lift, .ui-flat-white, .card, .panel, .ui-card, [class$="-card"], [class*="-card "], [class$="-panel"], [class*="-panel "], [class$="-table-wrap"], .table-wrap, .ep-profile-summary-section, .ep-module-card):not(.db-hero, .ep-hero, .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto, .wg-keep, .ui-keep *, table *, dialog *, [role="dialog"] *, [class*="modal"] *, .admin-nav-skin-open *, [class*="dropdown"], [class*="menu"], [class*="popover"], [class*="tooltip"], .leaflet-container *, form, [class*="filter"], [class*="toolbar"], [class*="search"], [class*="tabs"], .dbx-cal, .ep-main, .ep-single-card.ep-profile-summary, .ops-smart-scan):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) {
    background-color: var(--ap-fill-strong) !important;
    border: 1px solid var(--ap-edge) !important;
    box-shadow: var(--ap-hi), var(--ap-depth) !important;
}
/* number cards: the same depth and inner highlight on their blue / grey shades */
html body.admin-app main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(n):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%), var(--ap-depth) !important;
}
/* light buttons, tabs and switches: translucent pills with a hairline and highlight; the selected one lifts */
html body:is(.admin-app, .agency-manning-app) main .wg-btn-light:not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y),
html body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs, .compliance-actions, .pa-view-switch, .ep-drm-tabs__nav):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) > :not(:is([aria-selected="true"], [aria-current="page"], .active, .is-active, .is-on, .on)):nth-child(n):not(#wg-x):not(#wg-y) {
    background: var(--ap-fill-strong) !important;
    border: 1px solid var(--ap-edge) !important;
    box-shadow: var(--ap-hi), 0 1px 2px rgb(0 0 0 / 5%) !important;
}
html body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs, .compliance-actions, .pa-view-switch, .ep-drm-tabs__nav):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) > :is([aria-selected="true"], [aria-current="page"], .active, .is-active, .is-on, .on):nth-child(n):not(#wg-x):not(#wg-y) {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%), 0 4px 14px color-mix(in srgb, var(--ui-tbl-head-bg) 30%, transparent) !important;
}
/* primary buttons: a gentle top-lit fill like Apple's filled buttons */
html body.admin-app main :is(.btn-primary, .btn.primary, [class*="-btn--primary"], [class*="-btn"].primary, .crq-btn-primary, .emp-filter-actions__apply, form[method="get" i] button[type="submit"]):not(.ui-keep *, .wg-keep *):not(#ui-none):not(#wg-none):not(#wg-x) {
    background-image: linear-gradient(180deg, rgb(255 255 255 / 16%), rgb(255 255 255 / 0%)) !important;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 28%), 0 6px 16px rgb(37 99 235 / 22%) !important;
}
/* table title rows: the sidebar colour, slightly translucent and frosted so rows show through when it sticks */
html body.admin-app main table:not(.ui-keep, .wg-keep, [class*="matrix"], [class*="calendar"] table, .rhb-table, .rhm-table, .lc-cal):not(#ui-none):not(#wg-none) > thead > tr > :is(th, td) {
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
}
/* header bar: Apple's frosted chrome */
html body.admin-app.admin-layout-sidebar header.admin-header:not(#wg-none)::before {
    background: color-mix(in srgb, var(--wg-canvas, #fff) 72%, transparent) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    box-shadow: 0 1px 0 var(--ap-edge) !important;
}
/* pop-overs, menus and dialogs: thick frosted material */
html body:is(.admin-app, .agency-manning-app) :is([class*="dropdown-menu"], [class*="popover"], .period-picker__menu, [role="menu"], [role="listbox"], .admin-profile-menu, dialog, [role="dialog"]:not(body)):not(.ui-keep *):not(#ui-none):not(#wg-none) {
    background-color: var(--ap-fill-strong) !important;
    -webkit-backdrop-filter: var(--ap-blur) !important;
    backdrop-filter: var(--ap-blur) !important;
    border: 1px solid var(--ap-edge) !important;
    box-shadow: var(--ap-hi), var(--ap-depth-lift) !important;
    border-radius: 16px !important;
}
/* fields: soft inset well with a hairline, Apple style */
html body.admin-app main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), select, textarea):not(.ui-keep *, .wg-keep *, [class*="calendar"] *, table *):not(#ui-none):not(#wg-none):not(#wg-x) {
    box-shadow: inset 0 1px 2px rgb(0 0 0 / 5%) !important;
}
html body.admin-app main :is(input, select, textarea):focus:not(#ui-none):not(#wg-none):not(#wg-x) {
    outline: none !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--ui-primary, #2563eb) 22%, transparent) !important;
    border-color: color-mix(in srgb, var(--ui-primary, #2563eb) 60%, transparent) !important;
}
/* dark: the selected tab is blue so it stands out from the charcoal pills */
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs, .compliance-actions, .pa-view-switch, .ep-drm-tabs__nav):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) > :is([aria-selected="true"], [aria-current="page"], .active, .is-active, .is-on, .on):nth-child(n):nth-child(n):not(#wg-x):not(#wg-y) {
    background: #5458ec !important; border-color: #5458ec !important; color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 20%), 0 4px 14px rgb(84 88 236 / 35%) !important;
}
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs, .compliance-actions, .pa-view-switch, .ep-drm-tabs__nav):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) > :is([aria-selected="true"], [aria-current="page"], .active, .is-active, .is-on, .on) * { color: #ffffff !important; }
/* tab rows: no fade or glow layer behind them */
html body.admin-app main :is(.ep-module-nav, .ep-module-nav__inner, .ep-drm-tabs__bar)::before,
html body.admin-app main :is(.ep-module-nav, .ep-module-nav__inner, .ep-drm-tabs__bar)::after { display: none !important; }
html body.admin-app main .ep-module-nav:not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { -webkit-mask-image: none !important; mask-image: none !important; }

/* ───────────────────────── 48. One edge per box, everywhere (owner, 27 Nov 2026; found by a page-by-page scan) ───────────────────────── */
/* a table wrapper inside a framed card: the card is the frame, the wrapper draws nothing */
html body.admin-app main :is([class$="-card"], [class*="-card "], [class$="-panel"], [class*="-panel "], .ui-card-lift, .ui-flat-white, .card, .panel) > :is([class$="table-wrap"], [class*="table-wrap "], .table-wrap, [class$="-grid-wrap"], .fin-view-panel, .empty-state, p.dbx-rsum):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-color: transparent !important;
}
html body.admin-app main .dbx-card > p.dbx-rsum:not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) { border-bottom: 1px solid rgb(17 19 24 / 8%) !important; }
html body.admin-app main .dbx-card > .dbx-more-rows:nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) { border: 0 !important; border-top: 1px solid rgb(17 19 24 / 8%) !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; }
/* wrappers that only hold cards (tab panels, table panels): no frame of their own */
html body.admin-app main :is(.ep-tab-panel, .ep-module-panel, .emp-table-panel, .emp-search-wrap, .cal-panel:has(> .cal-detail-card)):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z),
html body.admin-app main :is([class$="-panel"], [class*="-panel "]):has(> :is([class$="-card"], [class*="-card "], .ep-profile-summary-section, .ep-single-card)):not(.ep-hero):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
html body.admin-app main .ep-module-panel > .ep-module-card:nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) { border: 1px solid var(--ap-edge, rgb(0 0 0 / 9%)) !important; }
html[data-theme="dark"] body.admin-app main [class$="-card"] > :is([class$="table-wrap"], .table-wrap):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) { background-color: transparent !important; }
/* column titles that were white on white: Manning agency analysis gets the coloured title row; the relief
 * schedule's week labels are grey text */
html body.admin-app main table.aa-table > thead > tr > :is(th, td):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) {
    background: var(--ui-tbl-head-bg) !important; box-shadow: inset 0 0 0 9999px var(--ui-tbl-head-bg) !important; color: var(--ui-tbl-head-text, #fff) !important;
}
html body.admin-app main table.aa-table > thead > tr > :is(th, td) * { color: inherit !important; }
html body.admin-app main table.cp-reference-heatmap > thead > tr > :is(th, td):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { color: var(--wg-muted) !important; background: transparent !important; box-shadow: none !important; }
html body.admin-app main :is(.dbx-card > .dbx-more-rows, .cp-ov-attention > .cp-ov-table-wrap, .ep-module-card > .ep-drm-doc-table-wrap, .ep-module-card > .ep-drm-tabs, .cal-panel > .cal-grid-wrap):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z):not(#wg-z1):not(#wg-z2):not(#wg-z3) {
    border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background-color: transparent !important;
}
html body.admin-app main .dbx-card > .dbx-more-rows:nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z):not(#wg-z1):not(#wg-z2):not(#wg-z3):not(#wg-z4) { border-top: 1px solid rgb(17 19 24 / 8%) !important; }
html body.admin-app main .cal-panel > .cal-detail-card:nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z):not(#wg-z1):not(#wg-z2):not(#wg-z3) {
    border: 0 !important; border-top: 1px solid rgb(17 19 24 / 8%) !important; border-radius: 0 !important; box-shadow: none !important;
}
html body.admin-app main :is(.dbx-card .dbx-more-rows, .ep-module-card .ep-drm-doc-table-wrap, .cal-panel .cal-detail-card):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z):not(#wg-z1):not(#wg-z2):not(#wg-z3):not(#wg-z5) {
    border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
html body.admin-app main :is(.dbx-card .dbx-more-rows, .cal-panel .cal-detail-card):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z):not(#wg-z1):not(#wg-z2):not(#wg-z3):not(#wg-z5):not(#wg-z6) { border-top: 1px solid rgb(17 19 24 / 8%) !important; background: transparent !important; }

/* ───────────────────────── 49. Glass you can see (owner, 27 Nov 2026: "Apple like feel") ─────────────────────────
 * Cards: a bright top rim and a soft top-to-bottom light, like Apple's glass panels on a white desktop. Number cards:
 * a soft gloss over their colour. No diagonal streaks. */
html body.admin-app main :is(.ui-card-lift, .ui-flat-white, .card, .panel, .ui-card, [class$="-card"], [class*="-card "], [class$="-panel"], [class*="-panel "], .ep-profile-summary-section, .ep-module-card):not(.db-hero, .ep-hero, .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto, .wg-keep, .ui-keep *, table *, dialog *, [role="dialog"] *, [class*="modal"] *, .admin-nav-skin-open *, [class*="dropdown"], [class*="menu"], [class*="popover"], [class*="tooltip"], .leaflet-container *, form, [class*="filter"], [class*="toolbar"], [class*="search"], [class*="tabs"], .dbx-cal, .ep-main, .ep-single-card.ep-profile-summary, .ops-smart-scan, .ep-tab-panel, .ep-module-panel, .emp-table-panel, .cal-panel .cal-detail-card):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    background-image: linear-gradient(180deg, rgb(255 255 255 / 100%) 0%, rgb(247 248 252 / 100%) 100%) !important;
    box-shadow: inset 0 1px 0 #ffffff, inset 0 0 0 1px rgb(255 255 255 / 70%), 0 1px 2px rgb(16 24 40 / 5%), 0 12px 32px rgb(16 24 40 / 8%) !important;
}
html[data-theme="dark"] body.admin-app main :is(.ui-card-lift, .ui-flat-white, .card, .panel, .ui-card, [class$="-card"], [class*="-card "], [class$="-panel"], [class*="-panel "], .ep-profile-summary-section, .ep-module-card):not(.db-hero, .ep-hero, .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto, .wg-keep, .ui-keep *, table *, dialog *, .admin-nav-skin-open *, form, [class*="filter"], [class*="toolbar"], [class*="search"], [class*="tabs"], .dbx-cal, .ep-main, .ep-single-card.ep-profile-summary, .ops-smart-scan, .ep-tab-panel, .ep-module-panel, .emp-table-panel, .cal-panel .cal-detail-card):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    background-image: linear-gradient(180deg, rgb(255 255 255 / 5%) 0%, rgb(255 255 255 / 1%) 100%) !important;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%), 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px rgb(0 0 0 / 35%) !important;
}
/* number cards: soft gloss on the top half */
html body.admin-app main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(n):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    position: relative;
    overflow: hidden;
}
html body.admin-app main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):not(.wg-keep)::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 0 45% 0 !important;
    background: linear-gradient(180deg, rgb(255 255 255 / 26%) 0%, rgb(255 255 255 / 0%) 100%) !important;
    border-radius: inherit;
    pointer-events: none !important;
    z-index: 0 !important;
}
html body.admin-app main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):not(.wg-keep) > * { position: relative; z-index: 1; }
/* the profile header gets the same gloss */
html body.admin-app main .ep-hero:not(#wg-none) { position: relative; }
html body.admin-app main .ep-hero:not(#wg-none)::after { content: "" !important; display: block !important; position: absolute !important; inset: 0 0 50% 0 !important; border-radius: 24px 24px 0 0; background: linear-gradient(180deg, rgb(255 255 255 / 16%), rgb(255 255 255 / 0%)) !important; pointer-events: none !important; }
/* no coloured glow spilling onto neighbours: the profile header and highlight cards use a small neutral shadow */
html body.admin-app main .ep-hero:nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) { box-shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 8px 20px rgb(16 24 40 / 8%) !important; }
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):first-child:nth-child(n):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) { box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%), 0 1px 2px rgb(16 24 40 / 6%), 0 8px 20px rgb(16 24 40 / 8%) !important; }
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):first-child:is(*, .good, .warn, .critical):nth-child(n):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) { background-image: none !important; }

/* ───────────────────────── 50. Flat boxes in the sidebar colour; one gradient (owner, 27 Nov 2026) ─────────────────────────
 * "The color should be not gradient in the boxes … the same color as the side panel … only the other part will be the
 * gradient." Cards are one solid fill with a clear edge (no top rim, sheen or gloss). Number cards are the solid sidebar
 * colour; only the first (highlight) card in a row keeps a gradient of that colour. Dark mode: the sidebar, cards and number
 * cards share one charcoal, so the page no longer mixes black and navy. Replaces the gloss of §47/§49. */
html body:is(.admin-app, .agency-manning-app):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) {
    --wg-box: var(--admin-sidebar-bg, #3b3ff2);
    --wg-box-hi: linear-gradient(135deg, color-mix(in srgb, var(--wg-box) 60%, #ffffff) 0%, var(--wg-box) 60%, color-mix(in srgb, var(--wg-box) 80%, #000000) 100%);
    --ap-fill-strong: #ffffff;
    --ap-hi: 0 0 0 0 transparent;
    --ap-depth: 0 1px 2px rgb(16 24 40 / 5%), 0 4px 14px rgb(16 24 40 / 5%);
}
/* a white or pale sidebar (light company colour, or the default light skin when the company has no brand colour) would
 * make the number cards' numbers white on white: use the palette blue instead */
html body:is(.admin-app, .agency-manning-app):is([data-sidebar-custom-tone="light"], [data-sidebar-skin="light"]):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { --wg-box: #3b3ff2; }
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) {
    --wg-dark-box: #161617;
    --wg-box: var(--wg-dark-box);
    --wg-box-hi: linear-gradient(135deg, #6f72ff 0%, #4347f0 55%, #2b2fc4 100%);
    --ap-fill-strong: var(--wg-dark-box);
    --ap-fill: var(--wg-dark-box);
    --wg-glass-fill: var(--wg-dark-box);
    --ap-edge: rgb(255 255 255 / 10%);
    --ap-depth: 0 1px 2px rgb(0 0 0 / 35%);
}
/* dark sidebar: the same charcoal as the boxes */
html[data-theme="dark"] body.admin-app .admin-nav-skin-open:not(#ui-none):not(#wg-none),
html[data-theme="dark"] body.admin-app .admin-nav-skin-open:not(#ui-none):not(#wg-none) :is(.admin-sidebar-brand, .admin-sidebar-footer, .admin-nav-skin-scroll),
html[data-theme="dark"] body.admin-app .admin-nav-skin-closed:not(#ui-none):not(#wg-none) {
    background: #161617 !important;
    --admin-sidebar-bg: #161617;
    --admin-sidebar-bg-top: #161617;
}

/* cards and panels: one solid fill, a clear edge, soft depth — no gradient, rim or sheen */
html body.admin-app main :is(.ui-card-lift, .ui-flat-white, .card, .panel, .ui-card, [class$="-card"], [class*="-card "], [class$="-panel"], [class*="-panel "], [class$="-table-wrap"], .table-wrap, .ep-profile-summary-section, .ep-module-card):not(.db-hero, .ep-hero, .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto, .wg-keep, .ui-keep *, table *, dialog *, [role="dialog"] *, [class*="modal"] *, .admin-nav-skin-open *, [class*="dropdown"], [class*="menu"], [class*="popover"], [class*="tooltip"], .leaflet-container *, form, [class*="filter"], [class*="toolbar"], [class*="search"], [class*="tabs"], .dbx-cal, .ep-main, .ep-single-card.ep-profile-summary, .ops-smart-scan):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    background-image: none !important;
    box-shadow: var(--ap-depth) !important;
}

/* number cards: no gloss layer */
html body.admin-app main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):not(.wg-keep):nth-child(n)::after { content: none !important; display: none !important; }
/* number cards: the solid sidebar colour, white text */
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(n):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    background: var(--wg-box) !important;
    border: 1px solid transparent !important;
    box-shadow: var(--ap-depth) !important;
}
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(n):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) { border-color: var(--ap-edge) !important; }
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(n):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) :is(*, .value, .label, .sub, [class$="-label"], [class$="-hint"], [class$="-val"], [class$="-num"], small, a, span, strong, b) { color: #ffffff !important; }
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(n):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) :is(.label, .sub, [class$="-label"], [class$="-hint"], small) { color: rgb(255 255 255 / 74%) !important; }
/* the highlight card (first in a row): the one gradient */
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):first-child:nth-child(n):nth-child(n):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    background: var(--wg-box-hi) !important;
    border-color: transparent !important;
}
/* AI overview: a plain box like every other (its tinted gradient removed) */
html body.admin-app main .ops-panel.ops-smart-scan:nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    background-image: none !important;
    background-color: var(--ap-fill-strong) !important;
    border: 1px solid var(--ap-edge) !important;
    box-shadow: var(--ap-depth) !important;
}

/* ───────────────────────── 51. Liquid Glass on the chrome (owner, 27 Nov 2026: "liquid glass look in web and app") ─────────────────────────
 * Apple's Liquid Glass material is used only on the floating chrome — top bar, sidebar, tabs, pill buttons, filter pills,
 * menus, the sticky table title row and the floating buttons. Content boxes stay flat (§50). The material: translucent fill
 * with blur + saturation, a bright specular rim at the top and a fainter one at the bottom, a soft inner light, a gentle
 * shadow, full capsules. No streaks or lines. Blur is never put on an element that holds position:fixed children (the header
 * keeps it on ::before). */
html body:is(.admin-app, .agency-manning-app):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) {
    --lg-fill: rgb(255 255 255 / 58%);
    --lg-fill-strong: rgb(255 255 255 / 74%);
    --lg-blur: blur(22px) saturate(185%);
    --lg-edge: rgb(15 23 42 / 10%);
    --lg-rim: inset 0 1px 0 rgb(255 255 255 / 95%), inset 0 -1px 0 rgb(255 255 255 / 45%), inset 0 0 0 1px rgb(255 255 255 / 40%);
    --lg-light: inset 0 10px 18px -12px rgb(255 255 255 / 90%);
    --lg-shadow: 0 1px 2px rgb(15 23 42 / 6%), 0 6px 18px rgb(15 23 42 / 8%);
    --lg-tint-rim: inset 0 1px 0 rgb(255 255 255 / 42%), inset 0 -1px 0 rgb(255 255 255 / 14%), inset 0 0 0 1px rgb(255 255 255 / 14%);
    --lg-tint-light: inset 0 10px 18px -12px rgb(255 255 255 / 38%);
}
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) {
    --lg-fill: rgb(44 44 48 / 52%);
    --lg-fill-strong: rgb(36 36 40 / 72%);
    --lg-edge: rgb(255 255 255 / 10%);
    --lg-rim: inset 0 1px 0 rgb(255 255 255 / 16%), inset 0 -1px 0 rgb(255 255 255 / 5%), inset 0 0 0 1px rgb(255 255 255 / 6%);
    --lg-light: inset 0 10px 18px -12px rgb(255 255 255 / 10%);
    --lg-shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 22px rgb(0 0 0 / 35%);
}

/* top bar: clear glass over the page */
html body.admin-app.admin-layout-sidebar header.admin-header:not(#wg-none):not(#wg-x)::before {
    background: color-mix(in srgb, var(--wg-canvas, #ffffff) 62%, transparent) !important;
    -webkit-backdrop-filter: var(--lg-blur) !important;
    backdrop-filter: var(--lg-blur) !important;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%), 0 1px 0 var(--lg-edge), 0 6px 18px rgb(15 23 42 / 4%) !important;
}
html[data-theme="dark"] body.admin-app.admin-layout-sidebar header.admin-header:not(#wg-none):not(#wg-x)::before {
    background: rgb(11 11 12 / 62%) !important;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%), 0 1px 0 var(--lg-edge) !important;
}
/* header round buttons (palette, help, theme, avatar): small glass discs */
html body.admin-app header.admin-header :is(.theme-toggle, [class*="help"], [class*="palette"], [class*="color-btn"], .admin-profile-trigger, [aria-label="Choose company theme color"], [aria-label*="dark mode"], [aria-label*="light mode"]):is(button, a):not(#ui-none):not(#wg-none) {
    -webkit-backdrop-filter: var(--lg-blur);
    backdrop-filter: var(--lg-blur);
    box-shadow: var(--lg-rim), var(--lg-shadow) !important;
}

/* sidebar: keeps the company palette colour, finished as tinted glass (specular rim on the edge, soft light at the top) */
html body.admin-app .admin-nav-skin-open:not(#ui-none):not(#wg-none):not(#wg-x) {
    background-image: radial-gradient(140% 55% at 0% 0%, rgb(255 255 255 / 12%), rgb(255 255 255 / 0%) 70%) !important;
    box-shadow: inset -1px 0 0 rgb(255 255 255 / 16%), inset 0 1px 0 rgb(255 255 255 / 14%), 1px 0 0 rgb(15 23 42 / 6%), 8px 0 24px rgb(15 23 42 / 6%) !important;
}
html body.admin-app[data-sidebar-custom-tone="light"] .admin-nav-skin-open:not(#ui-none):not(#wg-none):not(#wg-x),
html body.admin-layout-sidebar[data-sidebar-skin="light"] .admin-nav-skin-open:not(#ui-none):not(#wg-none):not(#wg-x) {
    background-image: none !important;
    box-shadow: inset -1px 0 0 rgb(15 23 42 / 8%) !important;
}
html[data-theme="dark"] body.admin-app .admin-nav-skin-open:not(#ui-none):not(#wg-none):not(#wg-x) {
    background-image: radial-gradient(140% 55% at 0% 0%, rgb(255 255 255 / 4%), rgb(255 255 255 / 0%) 70%) !important;
    box-shadow: inset -1px 0 0 rgb(255 255 255 / 8%) !important;
}
/* sidebar selected item: a glass capsule */
html body:is(.admin-app, .agency-manning-app) .admin-nav-skin-open:not(#ui-none):not(#wg-none):not(#wg-x) :is(.admin-nav-leaf, .admin-nav-sub).active:nth-child(n) {
    background: rgb(255 255 255 / 16%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(170%);
    backdrop-filter: blur(12px) saturate(170%);
    box-shadow: var(--lg-tint-rim), var(--lg-tint-light), 0 4px 12px rgb(0 0 0 / 12%) !important;
    border-radius: 999px !important;
}
html body.admin-app[data-sidebar-custom-tone="light"] .admin-nav-skin-open:not(#ui-none):not(#wg-none):not(#wg-x) :is(.admin-nav-leaf, .admin-nav-sub).active:nth-child(n),
html body.admin-layout-sidebar[data-sidebar-skin="light"] .admin-nav-skin-open:not(#ui-none):not(#wg-none):not(#wg-x) :is(.admin-nav-leaf, .admin-nav-sub).active:nth-child(n) {
    background: rgb(59 63 242 / 10%) !important;
    box-shadow: var(--lg-rim), 0 2px 8px rgb(15 23 42 / 8%) !important;
}
html[data-theme="dark"] body.admin-app .admin-nav-skin-open:not(#ui-none):not(#wg-none):not(#wg-x) :is(.admin-nav-leaf, .admin-nav-sub).active:nth-child(n) {
    background: rgb(255 255 255 / 9%) !important;
    box-shadow: var(--lg-rim), var(--lg-light), 0 4px 12px rgb(0 0 0 / 30%) !important;
}

/* tabs, light pill buttons and filter pills: clear glass capsules */
html body:is(.admin-app, .agency-manning-app) main .wg-btn-light:nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z),
html body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs, .compliance-actions, .pa-view-switch, .ep-drm-tabs__nav):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) > :not(:is([aria-selected="true"], [aria-current="page"], .active, .is-active, .is-on, .on)):nth-child(n):nth-child(n):not(#wg-x):not(#wg-y):not(#wg-z),
html body:is(.admin-app, .agency-manning-app) main :is(form[method="get" i], form.wg-filters-plain, [class*="filter-bar"], [class*="filterbar"], [class*="filter-panel"], [class$="-filters"], [class$="-toolbar"], [class*="-filter-row"], [class$="-filterrow"]) :is(input:is([type="text"], [type="search"], [type="date"], [type="month"], [type="number"], [type="email"], [type="week"], :not([type])), select):not(.period-picker *, table *, dialog *, [role="dialog"] *, [class*="modal"] *, .ui-keep *, .wg-keep):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z):not(:focus) {
    background-color: var(--lg-fill-strong) !important;
    -webkit-backdrop-filter: var(--lg-blur);
    backdrop-filter: var(--lg-blur);
    border: 1px solid var(--lg-edge) !important;
    box-shadow: var(--lg-rim), var(--lg-light), 0 1px 2px rgb(15 23 42 / 5%) !important;
    border-radius: 999px !important;
}
/* the selected tab: glass tinted with the palette colour */
html body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs, .compliance-actions, .pa-view-switch, .ep-drm-tabs__nav):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) > :is([aria-selected="true"], [aria-current="page"], .active, .is-active, .is-on, .on):nth-child(n):nth-child(n):nth-child(n):not(#wg-x):not(#wg-y):not(#wg-z) {
    -webkit-backdrop-filter: var(--lg-blur);
    backdrop-filter: var(--lg-blur);
    box-shadow: var(--lg-tint-rim), var(--lg-tint-light), 0 4px 14px color-mix(in srgb, var(--ui-tbl-head-bg, #3b3ff2) 28%, transparent) !important;
    border-radius: 999px !important;
}
/* primary pill buttons: tinted glass (their colour stays, the rim and inner light are added) */
html body.admin-app main :is(.btn-primary, .btn.primary, [class*="-btn--primary"], [class*="-btn"].primary, .crq-btn-primary, .emp-filter-actions__apply, form[method="get" i] button[type="submit"]):not(.ui-keep *, .wg-keep *):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) {
    background-image: none !important;
    box-shadow: var(--lg-tint-rim), var(--lg-tint-light), 0 4px 14px rgb(37 99 235 / 20%) !important;
}

/* menus, dropdowns, pop-overs: thick glass */
html body:is(.admin-app, .agency-manning-app) :is([class*="dropdown-menu"], [class*="popover"], .period-picker__menu, [role="menu"], [role="listbox"], .admin-profile-menu, .admin-topbar-panel):not(.ui-keep *):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) {
    background-color: var(--lg-fill-strong) !important;
    -webkit-backdrop-filter: blur(30px) saturate(190%) !important;
    backdrop-filter: blur(30px) saturate(190%) !important;
    border: 1px solid var(--lg-edge) !important;
    box-shadow: var(--lg-rim), var(--lg-light), 0 2px 6px rgb(15 23 42 / 8%), 0 18px 40px rgb(15 23 42 / 14%) !important;
    border-radius: 18px !important;
}

/* sticky table title row: tinted glass, the specular rim along its top */
html body.admin-app main table:not(.ui-keep, .wg-keep, [class*="matrix"], [class*="calendar"] table, .rhb-table, .rhm-table, .lc-cal):not(#ui-none):not(#wg-none) > thead > tr:first-child > :is(th, td):not(#wg-x) {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 30%), inset 0 -1px 0 rgb(255 255 255 / 10%) !important;
}

/* floating buttons (report a bug, iSHIP Agent): glass discs tinted with their own colour */
html body .ibr-fab:not(#ui-none):not(#wg-none),
html body .aiw-fab:not(#ui-none):not(#wg-none) {
    -webkit-backdrop-filter: var(--lg-blur) !important;
    backdrop-filter: var(--lg-blur) !important;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 45%), inset 0 -1px 0 rgb(255 255 255 / 15%), inset 0 0 0 1px rgb(255 255 255 / 18%), inset 0 10px 18px -12px rgb(255 255 255 / 45%), 0 8px 24px rgb(15 23 42 / 22%) !important;
}
html body .ibr-fab:not(#ui-none):not(#wg-none) { background: rgb(51 65 85 / 62%) !important; }
html body .aiw-fab:not(#ui-none):not(#wg-none) { background: rgb(15 118 110 / 68%) !important; }
html[data-theme="dark"] body .ibr-fab:not(#ui-none):not(#wg-none):not(#wg-x) { background: rgb(120 130 150 / 42%) !important; color: #ffffff !important; }
html[data-theme="dark"] body .aiw-fab:not(#ui-none):not(#wg-none):not(#wg-x) { background: rgb(20 170 155 / 55%) !important; color: #ffffff !important; }
html[data-theme="dark"] body :is(.ibr-fab, .aiw-fab):not(#ui-none):not(#wg-none):not(#wg-x) :is(svg, i, span) { color: #ffffff !important; opacity: 1 !important; }
html body :is(.ibr-fab, .aiw-fab):not(#ui-none):not(#wg-none):not(#wg-x) :is(svg, svg *) { stroke: #ffffff !important; }
/* the last boxes that still carried a gradient (rest hours header, finance section heads): plain fill (§50) */
html body.admin-app main :is(.rh-hero, .fin-section-head):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { background-image: none !important; }
html[data-theme="dark"] body.admin-app main .rh-hero:nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y) { background-color: var(--wg-dark-box, #161617) !important; }

/* §50 Count badge inside a selected tab (marked by ui-system.js .wg-badge-on): a soft white pill on the tab colour,
   never white text on a pale badge (owner, 27 Nov 2026: "Vessel Planning 2" showed blank). */
html body:is(.admin-app, .agency-manning-app) main .wg-badge-on:nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    background: rgb(255 255 255 / 24%) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

/* §51 Crew Planning (owner screenshot, 27 Nov 2026): tabs line up with the title and the box, the search icon sits
   inside the search field so the field lines up with the group rows and the table, and the crew-change dates fit. */
html body.admin-app main .cp-planning-view-tabs:not(#ui-none):not(#wg-none):not(#wg-x) { margin-left: 0 !important; }
html body.admin-app main .cp-vessel-filterbar:not(#ui-none):not(#wg-none):not(#wg-x) { padding-left: 0 !important; }
html body.admin-app main .cp-vessel-search-wrap:not(#ui-none):not(#wg-none):not(#wg-x) { position: relative !important; }
html body.admin-app main .cp-vessel-search-wrap > svg:not(#ui-none):not(#wg-none):not(#wg-x) { position: absolute !important; left: 16px !important; top: 50% !important; transform: translateY(-50%) !important; margin: 0 !important; pointer-events: none; z-index: 1; color: var(--ui-text-3, #6b7280); }
html body.admin-app main .cp-vessel-search-wrap > .cp-vessel-search:nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) { padding-left: 40px !important; width: 100% !important; }
html body.admin-app main .cp-fleet-ops-table col.cp-fl-c-timing:not(#ui-none) { width: 104px !important; }
html body.admin-app main .cp-fleet-ops-table col.cp-fl-c-relief:not(#ui-none) { width: 17% !important; }

/* ───────────────────────── 52. Glossy, on a white page (owner, 27 Nov 2026: "I don't want in the background any type of
 * colour … the background should stay white … the sections should look glossy … the sidebar colour is nice, make it a
 * little gradient, but glossy"; the see-through sidebar was "completely faded") ─────────────────────────
 * Page: plain white (near-black in dark). Boxes: glossy white — a soft top-to-bottom light, a bright top edge, a hairline
 * border, no drop shadow. Sidebar: solid company palette colour, a gentle vertical gradient and a glossy top shine.
 * Number cards: the sidebar colour with the same gloss. */
html body:is(.admin-app, .agency-manning-app):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    --gl-box: linear-gradient(180deg, #ffffff 0%, #fbfcfe 55%, #f4f6fb 100%);
    --gl-box-in: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
    --gl-edge: rgb(15 23 42 / 9%);
    --gl-rim: inset 0 1px 0 #ffffff, inset 0 -1px 0 rgb(15 23 42 / 3%), inset 0 0 0 1px rgb(255 255 255 / 60%);
    --ap-depth: 0 0 0 0 transparent;
    --lg-shadow: 0 0 0 0 transparent;
    --wg-canvas: #ffffff;
}
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    --gl-box: linear-gradient(180deg, #1d1d20 0%, #18181a 55%, #141416 100%);
    --gl-box-in: linear-gradient(180deg, #202023 0%, #19191b 100%);
    --gl-edge: rgb(255 255 255 / 10%);
    --gl-rim: inset 0 1px 0 rgb(255 255 255 / 9%), inset 0 -1px 0 rgb(0 0 0 / 30%);
    --wg-canvas: #0b0b0c;
}
/* plain page */
html body:is(.admin-app, .agency-manning-app):not(#ui-none):not(#wg-none):not(#wg-x) { background: var(--wg-canvas) !important; }

/* boxes: glossy white, no drop shadow */
html body.admin-app main :is(.ui-card-lift, .ui-flat-white, .card, .panel, .ui-card, [class$="-card"], [class*="-card "], [class$="-panel"], [class*="-panel "], [class$="-table-wrap"], .table-wrap, .ep-profile-summary-section, .ep-module-card, .ops-panel):not(.db-hero, .ep-hero, .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto, .wg-keep, .ui-keep *, table *, dialog *, [role="dialog"] *, [class*="modal"] *, .admin-nav-skin-open *, [class*="dropdown"], [class*="menu"], [class*="popover"], [class*="tooltip"], .leaflet-container *, form, [class*="filter"], [class*="toolbar"], [class*="search"], [class*="tabs"], .ep-main, .ep-single-card.ep-profile-summary, .mn-panel):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    background-color: transparent !important;
    background-image: var(--gl-box) !important;
    border: 1px solid var(--gl-edge) !important;
    box-shadow: var(--gl-rim) !important;
}
/* a box inside a box: lighter, same edge */
html body.admin-app main :is(.ui-card-lift, .ui-flat-white, .card, .panel, .ui-card, [class$="-card"], [class$="-panel"], .ops-panel) :is(.ui-card-lift, .ui-flat-white, .card, .panel, .ui-card, [class$="-card"], [class*="-card "], [class$="-panel"], [class*="-panel "], [class$="-tile"], [class*="-tile "]):not(.ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto, .wg-keep, .ui-keep *, table *, dialog *, [class*="modal"] *, [class*="dropdown"], [class*="menu"], [class*="popover"], [class*="tooltip"], form, [class*="filter"], [class*="toolbar"], [class*="search"], [class*="tabs"]):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    background-color: transparent !important;
    background-image: var(--gl-box-in) !important;
    border: 1px solid var(--gl-edge) !important;
    box-shadow: var(--gl-rim) !important;
}
/* number cards: the sidebar colour, a little gradient, a glossy top shine */
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(n):nth-child(n):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    background:
        linear-gradient(180deg, rgb(255 255 255 / 22%) 0%, rgb(255 255 255 / 6%) 46%, rgb(255 255 255 / 0%) 47%),
        linear-gradient(180deg, color-mix(in srgb, var(--wg-box) 88%, #ffffff) 0%, var(--wg-box) 55%, color-mix(in srgb, var(--wg-box) 86%, #000000) 100%) !important;
    border: 1px solid rgb(255 255 255 / 22%) !important;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 45%), inset 0 -1px 0 rgb(0 0 0 / 12%) !important;
}
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):first-child:nth-child(n):nth-child(n):nth-child(n):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    background:
        linear-gradient(180deg, rgb(255 255 255 / 24%) 0%, rgb(255 255 255 / 6%) 46%, rgb(255 255 255 / 0%) 47%),
        var(--wg-box-hi) !important;
}

/* sidebar: the company palette colour, solid, a gentle top-to-bottom gradient and a glossy shine at the top */
html body.admin-app :is(.admin-nav-skin-open, .admin-nav-skin-closed):not(#ui-none):not(#wg-none):not(#wg-x) {
    background:
        linear-gradient(180deg, rgb(255 255 255 / 16%) 0%, rgb(255 255 255 / 4%) 22%, rgb(255 255 255 / 0%) 40%),
        linear-gradient(180deg, color-mix(in srgb, var(--admin-sidebar-bg, #3b3ff2) 90%, #ffffff) 0%, var(--admin-sidebar-bg, #3b3ff2) 45%, color-mix(in srgb, var(--admin-sidebar-bg, #3b3ff2) 82%, #000000) 100%) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: inset -1px 0 0 rgb(255 255 255 / 18%), inset 0 1px 0 rgb(255 255 255 / 25%) !important;
    border-right: 0 !important;
}
html body.admin-app .admin-nav-skin-open:not(#ui-none):not(#wg-none):not(#wg-x) :is(.admin-sidebar-brand, .admin-sidebar-footer, .admin-nav-skin-scroll) {
    background: transparent !important;
}
html body.admin-app[data-sidebar-custom-tone="light"] :is(.admin-nav-skin-open, .admin-nav-skin-closed):not(#ui-none):not(#wg-none):not(#wg-x) {
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%) !important;
    box-shadow: inset -1px 0 0 rgb(15 23 42 / 8%), inset 0 1px 0 #ffffff !important;
}
html[data-theme="dark"] body.admin-app :is(.admin-nav-skin-open, .admin-nav-skin-closed):not(#ui-none):not(#wg-none):not(#wg-x) {
    background: linear-gradient(180deg, rgb(255 255 255 / 5%) 0%, rgb(255 255 255 / 0%) 30%), linear-gradient(180deg, #1a1a1d 0%, #141416 100%) !important;
    box-shadow: inset -1px 0 0 rgb(255 255 255 / 8%) !important;
}
/* the selected sidebar item: a glossy capsule */
html body.admin-app .admin-nav-skin-open :is(a, button)[aria-current="page"]:not(#ui-none):not(#wg-none):not(#wg-x),
html body.admin-app .admin-nav-skin-open :is(a, button):is(.active, .is-active):not(#ui-none):not(#wg-none):not(#wg-x) {
    background: linear-gradient(180deg, rgb(255 255 255 / 30%) 0%, rgb(255 255 255 / 14%) 100%) !important;
    border: 1px solid rgb(255 255 255 / 38%) !important;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 55%) !important;
}
/* top bar: white, a hairline below, no shadow */
html body.admin-app.admin-layout-sidebar header.admin-header:not(#wg-none):not(#wg-x)::before {
    background: rgb(255 255 255 / 92%) !important;
    box-shadow: 0 1px 0 rgb(15 23 42 / 7%) !important;
}
html[data-theme="dark"] body.admin-app.admin-layout-sidebar header.admin-header:not(#wg-none):not(#wg-x)::before {
    background: rgb(11 11 12 / 92%) !important;
    box-shadow: 0 1px 0 rgb(255 255 255 / 8%) !important;
}
/* Maritime news: the headline grid is cards on the page, not a box around boxes */
html body.admin-app main .mn-panel:nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* ───────────────────────── 53. Liquid bevel (owner picked option C, 28 Nov 2026: "thick lit edges like Apple glass") ─────────────────────────
 * On the white page every glass piece has a thick edge lit from the top-left and shaded at the bottom-right, so boxes,
 * number cards, buttons, tabs and the selected sidebar item read as solid glass. No drop shadows, no colour behind. */
html body:is(.admin-app, .agency-manning-app):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    --gl-box: linear-gradient(150deg, #ffffff 0%, #f6f8fc 100%);
    --gl-box-in: linear-gradient(150deg, #ffffff 0%, #f8f9fd 100%);
    --gl-edge: rgb(15 23 42 / 7%);
    --gl-rim: inset 2px 2px 1px #ffffff, inset -2px -2px 3px rgb(15 23 42 / 5%), inset 0 0 0 1px rgb(255 255 255 / 70%);
    --gl-btn: linear-gradient(150deg, #ffffff 0%, #f0f2f7 100%);
    --gl-btn-rim: inset 1.5px 1.5px 1px #ffffff, inset -1.5px -1.5px 2px rgb(15 23 42 / 6%);
    --gl-btn-edge: rgb(15 23 42 / 9%);
    --gl-tint-rim: inset 2px 2px 1px rgb(255 255 255 / 55%), inset -2px -2px 3px rgb(0 0 0 / 25%), inset 0 10px 18px -10px rgb(255 255 255 / 35%);
}
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    --gl-box: linear-gradient(150deg, #1f1f23 0%, #151517 100%);
    --gl-box-in: linear-gradient(150deg, #222226 0%, #18181b 100%);
    --gl-edge: rgb(255 255 255 / 8%);
    --gl-rim: inset 2px 2px 1px rgb(255 255 255 / 9%), inset -2px -2px 3px rgb(0 0 0 / 40%);
    --gl-btn: linear-gradient(150deg, #2b2b30 0%, #1c1c1f 100%);
    --gl-btn-rim: inset 1.5px 1.5px 1px rgb(255 255 255 / 12%), inset -1.5px -1.5px 2px rgb(0 0 0 / 40%);
    --gl-btn-edge: rgb(255 255 255 / 10%);
}
/* number cards: the sidebar colour as a bevelled glass slab (no flat shine band) */
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(n):nth-child(n):nth-child(n):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    background: linear-gradient(160deg, color-mix(in srgb, var(--wg-box) 86%, #ffffff) 0%, var(--wg-box) 65%, color-mix(in srgb, var(--wg-box) 82%, #000000) 100%) !important;
    border: 0 !important;
    box-shadow: var(--gl-tint-rim) !important;
}
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):first-child:nth-child(n):nth-child(n):nth-child(n):nth-child(n):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    background: var(--wg-box-hi) !important;
}
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):not(:first-child):nth-child(n):nth-child(n):nth-child(n):nth-child(n):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    background: linear-gradient(160deg, #2a2a2f 0%, #1c1c20 100%) !important;
    box-shadow: inset 2px 2px 1px rgb(255 255 255 / 10%), inset -2px -2px 3px rgb(0 0 0 / 45%) !important;
}
/* light buttons, pills, filter fields and tabs that are not selected: bevelled white glass */
html body:is(.admin-app, .agency-manning-app) main .wg-btn-light:nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z),
html body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs, .compliance-actions, .pa-view-switch, .ep-drm-tabs__nav):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) > :not(:is([aria-selected="true"], [aria-current="page"], .active, .is-active, .is-on, .on)):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#wg-x):not(#wg-y):not(#wg-z) {
    background: var(--gl-btn) !important;
    border: 1px solid var(--gl-btn-edge) !important;
    box-shadow: var(--gl-btn-rim) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
/* the selected tab: the sidebar colour with the same lit edge */
html body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs, .compliance-actions, .pa-view-switch, .ep-drm-tabs__nav):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) > :is([aria-selected="true"], [aria-current="page"], .active, .is-active, .is-on, .on):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#wg-x):not(#wg-y):not(#wg-z) {
    background: linear-gradient(160deg, color-mix(in srgb, var(--ui-tbl-head-bg, var(--wg-box)) 86%, #ffffff) 0%, var(--ui-tbl-head-bg, var(--wg-box)) 70%) !important;
    border: 0 !important;
    box-shadow: inset 1.5px 1.5px 1px rgb(255 255 255 / 50%), inset -1.5px -1.5px 2px rgb(0 0 0 / 22%) !important;
}
/* sidebar: palette colour with a lit glass edge; the selected item a bevelled capsule */
html body.admin-app :is(.admin-nav-skin-open, .admin-nav-skin-closed):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) {
    background: linear-gradient(180deg, color-mix(in srgb, var(--admin-sidebar-bg, #3b3ff2) 90%, #ffffff) 0%, var(--admin-sidebar-bg, #3b3ff2) 60%, color-mix(in srgb, var(--admin-sidebar-bg, #3b3ff2) 82%, #000000) 100%) !important;
    box-shadow: inset -2px 0 2px rgb(255 255 255 / 22%), inset 2px 2px 3px rgb(255 255 255 / 16%) !important;
}
html body.admin-app[data-sidebar-custom-tone="light"] :is(.admin-nav-skin-open, .admin-nav-skin-closed):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) {
    background: linear-gradient(150deg, #ffffff 0%, #f4f6fb 100%) !important;
    box-shadow: inset -2px -2px 3px rgb(15 23 42 / 5%), inset 2px 2px 1px #ffffff, 1px 0 0 rgb(15 23 42 / 8%) !important;
}
html[data-theme="dark"] body.admin-app :is(.admin-nav-skin-open, .admin-nav-skin-closed):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) {
    background: linear-gradient(180deg, #1c1c20 0%, #121214 100%) !important;
    box-shadow: inset -2px 0 2px rgb(255 255 255 / 7%) !important;
}
html body.admin-app .admin-nav-skin-open :is(a, button):is([aria-current="page"], .active, .is-active):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) {
    background: linear-gradient(180deg, rgb(255 255 255 / 26%) 0%, rgb(255 255 255 / 12%) 100%) !important;
    border: 0 !important;
    box-shadow: inset 1.5px 1.5px 1px rgb(255 255 255 / 70%), inset -1.5px -1.5px 2px rgb(0 0 0 / 18%) !important;
}
html[data-theme="dark"] body.admin-app .admin-nav-skin-open :is(a, button):is([aria-current="page"], .active, .is-active):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) {
    background: linear-gradient(160deg, #3b3ff2 0%, #2b2fc4 100%) !important;
    box-shadow: inset 1.5px 1.5px 1px rgb(255 255 255 / 40%), inset -1.5px -1.5px 2px rgb(0 0 0 / 35%) !important;
}
/* dark: the selected tab stays blue (owner: "blue selected tab" in dark) */
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs, .compliance-actions, .pa-view-switch, .ep-drm-tabs__nav):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) > :is([aria-selected="true"], [aria-current="page"], .active, .is-active, .is-on, .on):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#wg-x):not(#wg-y):not(#wg-z) {
    background: linear-gradient(160deg, #6a6df5 0%, #4347f0 60%, #2f33c9 100%) !important;
    color: #ffffff !important;
    box-shadow: inset 1.5px 1.5px 1px rgb(255 255 255 / 40%), inset -1.5px -1.5px 2px rgb(0 0 0 / 30%) !important;
}
/* light mode: a thicker, clearer bevel so large boxes read like option C at full size */
html:not([data-theme="dark"]) body:is(.admin-app, .agency-manning-app):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    --gl-box: linear-gradient(150deg, #ffffff 0%, #fafbfe 40%, #edf0f7 100%);
    --gl-box-in: linear-gradient(150deg, #ffffff 0%, #f1f4f9 100%);
    --gl-edge: rgb(15 23 42 / 9%);
    --gl-rim: inset 3px 3px 2px #ffffff, inset -3px -3px 5px rgb(15 23 42 / 8%), inset 0 0 0 1px rgb(255 255 255 / 85%);
    --gl-btn: linear-gradient(150deg, #ffffff 0%, #eceff5 100%);
    --gl-btn-rim: inset 2px 2px 1px #ffffff, inset -2px -2px 3px rgb(15 23 42 / 10%);
    --gl-btn-edge: rgb(15 23 42 / 11%);
}
/* small tiles inside boxes (AI overview counters and the like): the same bevelled glass */
html body.admin-app main :is(.ops-smart-chip, [class*="-stat-chip"], [class*="-mini-stat"]):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    background: var(--gl-btn) !important;
    border: 1px solid var(--gl-btn-edge) !important;
    box-shadow: var(--gl-btn-rim) !important;
}

/* §54 One box (ui-system.js .wg-unbox / .wg-flat): a container of repeated cards has no frame of its own, and anything
   framed inside a box is flat content. */
html body.admin-app main .wg-unbox:nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    background: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
html body.admin-app main .wg-flat:nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    background: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}
/* flat items in a list keep a hairline between them */
html body.admin-app main .wg-flat.wg-sep:nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    border-top-color: var(--gl-edge, rgb(15 23 42 / 8%)) !important;
    border-radius: 0 !important;
}
/* Maritime news: the two boxes share one height */
html body.admin-app main .nws-share { align-items: stretch !important; }
/* Learning dashboard: wide tables scroll inside their box instead of being cut off */
html body.admin-app main .ld-card:has(table) { overflow: visible !important; }
html body.admin-app main .ld-card .ld-scroll { overflow-x: auto !important; }

/* ───────────────────────── 55. Minimal number cards (owner, 28 Nov 2026: "this dark boxes not nice, can we do something minimal") ─────────────────────────
 * Number cards are the same white bevelled glass as every box: the number in the palette blue, the label in grey,
 * no coloured fill. Dark mode: charcoal glass, a light-blue number. */
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    background: var(--gl-box) !important;
    border: 1px solid var(--gl-edge) !important;
    box-shadow: var(--gl-rim) !important;
}
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) :is(*, .value, .label, .sub, [class$="-label"], [class$="-hint"], [class$="-val"], [class$="-num"], small, a, span, strong, b) {
    color: var(--ui-text-2, #4b5563) !important;
}
html body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) :is(.value, [class$="-val"], [class$="-num"], [class$="-value"], strong, b, .ui-kpi-num, h2, h3) {
    color: var(--wg-box, #3b3ff2) !important;
}
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) :is(.value, [class$="-val"], [class$="-num"], [class$="-value"], strong, b, .ui-kpi-num, h2, h3) {
    color: #9ea1ff !important;
}
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is(.ops-kpis > .ops-kpi, .compliance-kpi, .aa-tile, .kpi-card, .pc-stat, .ui-kpi, .ui-kpi-auto):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):is(*, .good, .warn, .critical):not(.wg-keep):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    background: var(--gl-box) !important;
    box-shadow: var(--gl-rim) !important;
}

/* Promotions: the bulk actions sit above a full-width table, not beside it */
html body.admin-app main .pc > form:has(> .pc-wrap):not(#ui-none):not(#wg-none) { flex-direction: column !important; align-items: stretch !important; gap: 10px !important; }
html body.admin-app main .pc > form:has(> .pc-wrap) > .pc-inline:not(#ui-none):not(#wg-none) { order: -1; justify-content: flex-start !important; }
html body.admin-app main .pc > form:has(> .pc-wrap) > .pc-wrap:not(#ui-none):not(#wg-none) { width: 100% !important; }
html body.admin-app main .pc > form:has(> .pc-wrap) > .pc-wrap > table:not(#ui-none):not(#wg-none) { width: 100% !important; }

/* ───────────────────────── 56. Minimal and flat (owner, 28 Nov 2026: "make it minimal, no 3d") ─────────────────────────
 * Replaces the bevel and gloss of §52–§55: every box, number card, button and tab is a flat fill with one thin border;
 * the sidebar is the plain palette colour; the selected tab and sidebar item are flat. No inner light, no shading. */
html body:is(.admin-app, .agency-manning-app):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    --gl-box: linear-gradient(#ffffff, #ffffff);
    --gl-box-in: linear-gradient(#ffffff, #ffffff);
    --gl-edge: rgb(15 23 42 / 10%);
    --gl-rim: 0 0 0 0 transparent;
    --gl-btn: linear-gradient(#ffffff, #ffffff);
    --gl-btn-rim: 0 0 0 0 transparent;
    --gl-btn-edge: rgb(15 23 42 / 14%);
    --gl-tint-rim: 0 0 0 0 transparent;
}
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    --gl-box: linear-gradient(#161617, #161617);
    --gl-box-in: linear-gradient(#161617, #161617);
    --gl-edge: rgb(255 255 255 / 9%);
    --gl-btn: linear-gradient(#1c1c1e, #1c1c1e);
    --gl-btn-edge: rgb(255 255 255 / 12%);
}
/* sidebar: the plain palette colour */
html body.admin-app :is(.admin-nav-skin-open, .admin-nav-skin-closed):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) {
    background: var(--admin-sidebar-bg, #3b3ff2) !important;
    box-shadow: none !important;
}
html body.admin-app[data-sidebar-custom-tone="light"] :is(.admin-nav-skin-open, .admin-nav-skin-closed):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) {
    background: #ffffff !important;
    box-shadow: 1px 0 0 rgb(15 23 42 / 8%) !important;
}
html[data-theme="dark"] body.admin-app :is(.admin-nav-skin-open, .admin-nav-skin-closed):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) {
    background: #161617 !important;
    box-shadow: 1px 0 0 rgb(255 255 255 / 7%) !important;
}
html body.admin-app .admin-nav-skin-open :is(a, button):is([aria-current="page"], .active, .is-active):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) {
    background: rgb(255 255 255 / 16%) !important;
    border: 0 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] body.admin-app .admin-nav-skin-open :is(a, button):is([aria-current="page"], .active, .is-active):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) {
    background: #3b3ff2 !important;
}
/* selected tab: flat palette colour */
html body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs, .compliance-actions, .pa-view-switch, .ep-drm-tabs__nav):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) > :is([aria-selected="true"], [aria-current="page"], .active, .is-active, .is-on, .on):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#wg-x):not(#wg-y):not(#wg-z) {
    background: var(--ui-tbl-head-bg, var(--wg-box)) !important;
    box-shadow: none !important;
}
html[data-theme="dark"] body:is(.admin-app, .agency-manning-app) main :is([role="tablist"], nav[class$="-tabs"], .ui-tabs, .emp-view-tabs, .vessel-tabs, .cp-modal-tabs, .ep-module-nav__inner, .cp-planning-view-tabs, .ncv-tabs, .compliance-actions, .pa-view-switch, .ep-drm-tabs__nav):not(.ui-keep *, .wg-keep):not(#ui-none):not(#wg-none) > :is([aria-selected="true"], [aria-current="page"], .active, .is-active, .is-on, .on):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#wg-x):not(#wg-y):not(#wg-z) {
    background: #4347f0 !important;
}
/* primary buttons: flat too */
html body.admin-app main :is(.btn-primary, .btn.primary, [class*="-btn--primary"], [class*="-btn"].primary, .crq-btn-primary, .emp-filter-actions__apply, form[method="get" i] button[type="submit"]):not(.ui-keep *, .wg-keep *):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x) {
    box-shadow: none !important;
}

/* §57 No shadows anywhere on the page (owner, 28 Nov 2026: "no shadow"). Pop-up menus, dropdowns, tooltips and dialogs
   keep theirs so they stand above the page; keyboard focus rings stay. */
html body:is(.admin-app, .agency-manning-app) main *:not([class*="pop"], [class*="menu"], [class*="dropdown"], [class*="tooltip"], [class*="toast"], dialog, dialog *, [role="dialog"], [role="dialog"] *, [class*="modal"], [class*="modal"] *, .leaflet-container *, :focus, :focus-visible):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z):not(#wg-q) {
    box-shadow: none !important;
}
html body:is(.admin-app, .agency-manning-app) :is(.admin-nav-skin-open, .admin-nav-skin-closed, .admin-nav-skin-open *, header.admin-header, header.admin-header *):not([class*="pop"], [class*="menu"], [class*="dropdown"]):nth-child(n):nth-child(n):nth-child(n):not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    box-shadow: none !important;
}
html body.admin-app.admin-layout-sidebar header.admin-header:not(#wg-none):not(#wg-x)::before { box-shadow: 0 1px 0 rgb(15 23 42 / 8%) !important; }

/* §58 KPI dashboard header on the white page (sweep 28 Nov 2026): the "Period" label and the "KPI settings" link were
   white text on white, and the red target pill in the navy table heads was white on white. Controls line up on the left. */
html:not([data-theme="dark"]) body.admin-app main .kpi-top .kpi-period > span:nth-child(n):not(#wg-none):not(#wg-x) { color: var(--wg-muted, #64748b) !important; }
html:not([data-theme="dark"]) body.admin-app main .kpi-top .kpi-settings-link:nth-child(n):not(#wg-none):not(#wg-x) { color: var(--wg-blue, #2f63e8) !important; }
html body.admin-app main .kpi-target-pill:nth-child(n):not(#wg-none):not(#wg-x) { background: #fff !important; color: #b91c1c !important; border-color: #fecaca !important; }
html body.admin-app main .kpi-top:not(#wg-none) .kpi-top-controls:not(#wg-x) { align-items: flex-start !important; }
html body.admin-app main .kpi-top:not(#wg-none) :is(.kpi-period, .kpi-filters):not(#wg-x) { justify-content: flex-start !important; }

/* §59 Dark mode: status chips kept their light-mode dark text on the dark tinted chip (sweep 28 Nov 2026). Same hue,
   light shade, so they read on the dark chip. */
html[data-theme="dark"] body.admin-app main :is(.emp-contract-red, .ld-chip.low, .ld-chip.bad):nth-child(n):not(#wg-none):not(#wg-x) { color: #fca5a5 !important; }
html[data-theme="dark"] body.admin-app main :is(.emp-contract-green, .ld-chip.good, .ld-chip.high):nth-child(n):not(#wg-none):not(#wg-x) { color: #86efac !important; }
html[data-theme="dark"] body.admin-app main :is(.emp-contract-orange, .ld-chip.mid, .emp-new-hire):nth-child(n):not(#wg-none):not(#wg-x) { color: #fdba74 !important; }

/* Sidebar links: one pill shape for hover, focus and the selected page (owner, 29 Nov 2026: the hover was a rounded
 * rectangle while the selected item was a full pill). */
html body :is(.admin-sidebar, .admin-nav, aside, nav) :is(a.admin-nav-leaf, a.admin-nav-sub, .admin-nav-details > summary):nth-child(n):not(#wg-none):not(#wg-x),
html body :is(.admin-sidebar, .admin-nav, aside, nav) :is(a.admin-nav-leaf, a.admin-nav-sub, .admin-nav-details > summary):nth-child(n):is(:hover, :focus-visible, .active):not(#wg-none):not(#wg-x) {
    border-radius: 999px !important;
}

/* Dashboard calendar (owner, 1 Dec 2026: "round boxy design" not nice): busy days are separate soft square tiles with
 * small corners instead of capsules joined across the week; quiet days stay plain numbers. */
html body.admin-app main .dbx .dbx-cal .dbx-cal-day.has-items:nth-child(n):not(#wg-none):not(#wg-x)::before,
html body.admin-app main .dbx .dbx-cal .dbx-cal-day.has-items.join-l:nth-child(n):not(#wg-none):not(#wg-x)::before,
html body.admin-app main .dbx .dbx-cal .dbx-cal-day.has-items.join-r:nth-child(n):not(#wg-none):not(#wg-x)::before {
    top: 2px; bottom: 2px; left: 3px; right: 3px; border-radius: 10px;
}
html body.admin-app main .dbx .dbx-cal .dbx-cal-num:not(#ui-none):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) { border-radius: 9px !important; }

/* Pop-ups (owner, 1 Dec 2026: the L1/L2/L3 verification pop-up showed every line in its own rounded box): the menu and
 * pop-up glass is meant for the outer window only, but it matched any class containing "popover"/"dropdown-menu", so
 * the window's own parts (…-popover-title, …-popover-meta, …-popover-link) became boxes too. Parts stay plain. */
html body:is(.admin-app, .agency-manning-app) :is([class*="popover"], [class*="dropdown-menu"]) :is([class*="popover"], [class*="dropdown-menu"]):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

/* ───────────────────────── Responsive pass (owner, 1 Dec 2026: "responsive to every type of screen") ─────────────────────────
 * Checked every sidebar page at 360, 414, 768, 1024, 1280, 1920 and 2560 px wide. Nothing scrolled sideways, but on
 * phones and tablets some toolbars ran past the screen edge (they cannot wrap) and were silently cut off by <main>. */
/* toolbars, search rows and filter rows wrap onto a second line instead of running off the screen */
@media (max-width: 1100px) {
  html body:is(.admin-app, .agency-manning-app) main :is([class*="toolbar"], [class*="search-row"], [class*="filter-row"], [class*="-filters"], [class$="-actions"], [class*="-actions "], [class*="-controls"], [class$="-top"], [class*="-top "]):not(table *):not(#wg-none):not(#wg-x) {
    flex-wrap: wrap !important;
  }
  html body:is(.admin-app, .agency-manning-app) main :is([class*="search-row"], [class*="toolbar"]) input[type="search"]:not(#wg-none) { min-width: 160px !important; flex: 1 1 180px; }
}
/* a filter field (label + box) keeps its own width; the row wraps instead of squeezing the box out of its field */
html body:is(.admin-app, .agency-manning-app) main .filter-row > .filter-field:not(.filter-field--grow):not(#wg-none) { flex-shrink: 0; min-width: max-content; }
/* people initials (Fleet List cards) never break onto two lines */
html body.admin-app main .fleet-card-tab-rank:not(#wg-none) { flex: none; white-space: nowrap; }
/* very wide monitors: content stays at most 2040 px wide and centred instead of stretching edge to edge */
@media (min-width: 2300px) {
  html body.admin-layout-sidebar:not(.agency-manning-app) main:is(.container-full, .container):not(#wg-none):not(#wg-x) {
    padding-left: max(24px, calc((100vw - var(--admin-rail-w, 244px) - 2040px) / 2)) !important;
    padding-right: max(24px, calc((100vw - var(--admin-rail-w, 244px) - 2040px) / 2)) !important;
  }
}
/* the last few pixels: the dashboard "more rows" button and the period-picker label stay inside their box */
html body.admin-app main .dbx-more-rows:not(#wg-none), html body:is(.admin-app, .agency-manning-app) main .period-picker__lbl:not(#wg-none) { max-width: 100%; box-sizing: border-box; }

/* Settings › Mobile features "Apply to" (owner, 1 Dec 2026: label out of line, segment edges unclear): label centred on
 * the control; one clear outline with square segments, a divider and a filled active option. */
html body.admin-app main form.mf-scope:not(#wg-none):not(#wg-x) { align-items: center !important; }
html body.admin-app main .mf-seg:not(#wg-none):not(#wg-x) { border: 1px solid rgb(17 19 24 / 18%) !important; border-radius: 10px !important; overflow: hidden; padding: 0 !important; background: #fff !important; }
html body.admin-app main .mf-seg .mf-seg-btn:nth-child(n):not(#wg-none):not(#wg-x):not(#wg-y) { border-radius: 0 !important; border: 0 !important; height: 38px !important; box-shadow: none !important; background: transparent !important; }
html body.admin-app main .mf-seg .mf-seg-btn + .mf-seg-btn:nth-child(n):not(#wg-none):not(#wg-x):not(#wg-y) { border-left: 1px solid rgb(17 19 24 / 14%) !important; }
html body.admin-app main .mf-seg .mf-seg-btn.is-on:nth-child(n):not(#wg-none):not(#wg-x):not(#wg-y) { background: color-mix(in srgb, var(--wg-accent, #2f6bff) 10%, #fff) !important; color: var(--wg-accent, #2f6bff) !important; font-weight: 600 !important; }
html body.admin-app main .mf-seg .mf-seg-rank select:not(#wg-none):not(#wg-x):not(#wg-y) { border-radius: 8px !important; height: 30px !important; min-height: 30px !important; }
html[data-theme="dark"] body.admin-app main .mf-seg:not(#wg-none):not(#wg-x) { background: var(--wg-card-solid, #161617) !important; border-color: rgb(255 255 255 / 16%) !important; }
html[data-theme="dark"] body.admin-app main .mf-seg .mf-seg-btn + .mf-seg-btn:nth-child(n):not(#wg-none):not(#wg-x):not(#wg-y) { border-left-color: rgb(255 255 255 / 14%) !important; }
html[data-theme="dark"] body.admin-app main .mf-seg .mf-seg-btn.is-on:nth-child(n):not(#wg-none):not(#wg-x):not(#wg-y) { background: rgb(255 255 255 / 8%) !important; }
/* Users & access tabs (owner, 1 Dec 2026: "tabs boundaries"): the four tabs sit in one outlined bar instead of loose
 * faint pills, the active one filled. */
html body.admin-app main nav.um-tabs:not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z):not(#wg-z1):not(#wg-z2) { display: inline-flex !important; width: auto !important; gap: 2px !important; padding: 4px !important; border: 1px solid rgb(17 19 24 / 16%) !important; border-radius: 14px !important; background: #fff !important; }
html body.admin-app main nav.um-tabs .um-tab:nth-child(n):not(.is-active):not(#wg-none):not(#wg-x):not(#wg-y) { border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 10px !important; }
html body.admin-app main nav.um-tabs .um-tab:nth-child(n):not(.is-active):not(#wg-none):not(#wg-x):not(#wg-y):hover { background: rgb(17 19 24 / 5%) !important; }
html body.admin-app main nav.um-tabs .um-tab.is-active:nth-child(n):not(#wg-none):not(#wg-x):not(#wg-y) { border-radius: 10px !important; }
html[data-theme="dark"] body.admin-app main nav.um-tabs:not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z):not(#wg-z1):not(#wg-z2) { background: var(--wg-card-solid, #161617) !important; border-color: rgb(255 255 255 / 16%) !important; }
/* Accounts › MSA statements (owner, 1 Dec 2026): "Submitted statements — vessel" and the count sat on the card's very
 * edges; they now keep the card's inner padding. */
html body.admin-app main .msa-statements-head:not(#wg-none):not(#wg-x) { padding-left: 20px !important; padding-right: 20px !important; box-sizing: border-box; }
/* Settings › Port requirements header (owner, 1 Dec 2026): breadcrumb like the other Settings pages, buttons centred on
 * the title, and the "18 ports" count never clipped at the right edge. */
html body.admin-app main .prm-crumb:not(#wg-none) { font-size: 12px; color: var(--wg-muted, #6b7280); margin: 0 0 4px; }
html body.admin-app main .prm-crumb a:not(#wg-none) { color: var(--wg-accent, #2f6bff); text-decoration: none; }
html body.admin-app main .prm-head:not(#wg-none):not(#wg-x) { display: flex !important; align-items: center !important; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
html body.admin-app main .prm-actions:not(#wg-none):not(#wg-x) { display: flex !important; align-items: center !important; gap: 8px; flex-wrap: wrap; }
html body.admin-app main .prm-filter-submit:not(#wg-none):not(#wg-x) { min-width: max-content; display: flex; align-items: center; gap: 10px; }
html body.admin-app main .prm-count:not(#wg-none) { white-space: nowrap; }
/* Appraisal templates: the remove (×) buttons are small squares with the × in the exact centre (owner, 1 Dec 2026) */
html body.admin-app main button.atp-remove:nth-child(n):not(#wg-none):not(#wg-x):not(#wg-y) { display: inline-grid !important; place-items: center !important; padding: 0 !important; width: 28px !important; height: 28px !important; min-width: 28px !important; min-height: 28px !important; line-height: 1 !important; font-size: 15px !important; border-radius: 8px !important; }
/* Visa intelligence route bar: each field box is the only frame; the dropdown inside it has no second border */
html body.admin-app main form.v3-route select:nth-child(n):not(#wg-none):not(#wg-x):not(#wg-y):not(#wg-z):not(#wg-z1):not(#wg-z2):not(#wg-z3):not(#wg-z4) { border: 0 !important; background-color: transparent !important; box-shadow: none !important; padding-left: 0 !important; }
/* Interview › Final Feedback (owner, 1 Dec 2026: "COMMUNICATI / ON"): same fix as the agency portal (agency-fixes.css)
 * for office users: the three score labels stay on one line and the boxes line up at the bottom. */
html body.admin-app main .iv-form-grid:not(#wg-none) { align-items: stretch; gap: 8px; }
html body.admin-app main .iv-form-grid > label:not(#wg-none) { justify-content: space-between; letter-spacing: .02em; }
html body.admin-app main .iv-form-grid .iv-field-label:not(#wg-none) { font-size: 10.5px; letter-spacing: .02em; white-space: nowrap; overflow-wrap: normal; word-break: normal; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) { html body.admin-app main .iv-form-grid:not(#wg-none) { grid-template-columns: minmax(0, 1fr); } }

/* Tabler menu icons (owner, 2 Dec 2026: open-source icons): stroked outlines, never filled by solid-icon rules. */
html body svg.tb-icon:not(#tb0):not(#tb1):not(#tb2):not(#tb3):not(#tb4):not(#tb5):not(#tb6):not(#tb7):not(#tb8):not(#tb9),
html body svg.tb-icon:not(#tb0):not(#tb1):not(#tb2):not(#tb3):not(#tb4):not(#tb5):not(#tb6):not(#tb7):not(#tb8):not(#tb9) * {
  fill: none !important;
  stroke: currentColor !important;
}
