@import url('css/mcg-theme-tokens.css');

/*
 * Shared shell for every interpreter-facing page.
 *
 * The interpreter experience used to be three unrelated pages — a jobs board,
 * a profile, and a live-call dashboard — each with its own inline styles and
 * its own idea of navigation. The dashboard linked nowhere at all. This file
 * plus partials/interpreter-nav.html give them one persistent nav and one set
 * of design tokens, so they read as a single product.
 *
 * Deliberately additive: it namespaces everything under .iterp-* and only
 * offsets the page body, so the existing inline styles on each page keep
 * working untouched.
 */

:root {
    /* Tokens match the jobs page palette so nothing shifts jarringly between
       destinations. Kept here so future pages inherit rather than re-invent. */
    --iterp-bg: #071119;
    --iterp-surface: rgba(255, 255, 255, 0.075);
    --iterp-surface-strong: rgba(255, 255, 255, 0.12);
    --iterp-line: rgba(255, 255, 255, 0.14);
    --iterp-text: #f6fbff;
    /* Lifted from the old #9fb2bf, which sat near the WCAG AA floor on these
       panels — thin contrast is the wrong compromise for an access company. */
    --iterp-muted: #b6c6d2;
    --iterp-blue: #6fc7ff;
    --iterp-green: #63d6a4;
    --iterp-amber: #ffc76f;
    --iterp-red: #ff8d8d;
    --iterp-nav-w: 244px;
}

/* ---------- Skip link + screen-reader-only ---------- */

/* First focusable thing on every page. Invisible until it has focus, then it
   sits over the nav so keyboard and switch users can jump past 20 links. */
.iterp-skip {
    background: var(--tp-ac);
    border-radius: 8px;
    color: var(--tp-onac);
    font-weight: 700;
    left: 12px;
    padding: 10px 14px;
    position: fixed;
    text-decoration: none;
    top: -80px;
    z-index: 1200;
}

.iterp-skip:focus { top: 12px; }

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

/* ---------- MalkaTerp palette (web redesign, approved 2026-10-29) ----------
   One family with MalkaVRI v2 and the native MalkaTerp redesign. Dark is the
   default and Light inverts it. The appearance control sets data-theme; the
   tenant sets data-tenant (the signed-in agency on the console, the host's
   brand elsewhere).
   - Malka, dark: navy-black, orange main buttons with navy text.
   - Malka, light: light grey, the same orange, navy text.
   - Maple, dark: near-black, white main buttons, Maple red for the brand.
   - Maple, light: white, black main buttons, the darker Maple red.
   --tp-brt is the brand colour as text or a focus ring on the background. */
:root {
    --tp-bg: #0A0A1A;
    --tp-sf: #17192C;
    --tp-sf2: #22253A;
    --tp-tx: #F4F4F7;
    --tp-mu: #A6A9BA;
    --tp-ac: #F47D22;
    --tp-onac: #0D1A38;
    --tp-ln: #2B2E45;
    --tp-logo: #FFFFFF;
    --tp-brand: #F47D22;
    --tp-brt: #F47D22;
    --tp-ok: #8FD14F;
    --tp-wa: #F4B740;
    --tp-bad: #FF6B6B;
    --tp-cam: #2A2C3A;
    --tp-camfg: #5A5D70;
    --tp-vri: #8F87F0;
    --tp-st: #06070F;
    --tp-stx: #F4F4F7;
    --tp-smu: #B9BCCB;
    --tp-veil: rgba(6, 7, 15, 0.66);
    --tp-end: #D23B3B;
    --tp-bar: 58px;
    /* Notices (notifications mockups, 2026-11-02). */
    --tp-nsf: #272A43;
    --tp-nbd: rgba(255, 255, 255, 0.08);
    --tp-nsh: 0 10px 28px rgba(0, 0, 0, 0.45);
    --tp-inft: rgba(255, 255, 255, 0.08);
    --tp-badt: rgba(255, 107, 107, 0.16);
    --tp-okt: rgba(143, 209, 79, 0.16);
    --tp-wat: rgba(244, 183, 64, 0.15);
    --tp-rail: 78px;
    --tp-tabs: 64px;
}

:root[data-theme="light"] {
    --tp-bg: #F7F7FA;
    --tp-sf: #FFFFFF;
    --tp-sf2: #E9EBF1;
    --tp-tx: #0D1A38;
    --tp-mu: #5B6078;
    --tp-ln: #DDE0E8;
    --tp-logo: #0D1A38;
    --tp-brt: #A84A00;
    --tp-ok: #2E7D32;
    --tp-wa: #9A6100;
    --tp-bad: #C62828;
    --tp-cam: #D9DCE6;
    --tp-camfg: #8E93A8;
    --tp-vri: #534AB7;
    --tp-nsf: #FFFFFF;
    --tp-nbd: #DDE0E8;
    --tp-nsh: 0 8px 24px rgba(13, 26, 56, 0.16);
    --tp-inft: #EEF0F5;
    --tp-badt: #FDECEC;
    --tp-okt: #E8F3E8;
    --tp-wat: #FFF3D6;
}

:root[data-tenant="maple"] {
    --tp-bg: #0B0B0B;
    --tp-sf: #1B1B1B;
    --tp-sf2: #2A2A2A;
    --tp-tx: #F5F5F5;
    --tp-mu: #B3B3B3;
    --tp-ac: #FFFFFF;
    --tp-onac: #0B0B0B;
    --tp-ln: #303030;
    --tp-logo: #FFFFFF;
    /* whitelabel/maple.json: primary #E00000 (dark), primaryDark #A90000 (light). */
    --tp-brand: #E00000;
    --tp-brt: #FF7A7D;
    --tp-nsf: #2B2B2B;
}

:root[data-tenant="maple"][data-theme="light"] {
    --tp-bg: #FFFFFF;
    --tp-sf: #F3F3F3;
    --tp-sf2: #E4E4E4;
    --tp-tx: #0B0B0B;
    --tp-mu: #5E5E5E;
    --tp-ac: #0B0B0B;
    --tp-onac: #FFFFFF;
    --tp-ln: #E0E0E0;
    --tp-logo: #0B0B0B;
    --tp-brand: #A90000;
    --tp-brt: #A90000;
    --tp-nsf: #FFFFFF;
    --tp-nbd: #E0E0E0;
}

/* The console and the month page draw every older part through these
   names, so the older markup (settings, agreements, dialogs) follows the
   palette too. The Jobs page maps its own (Jobs redesign, below). */
:root.provider-queue-page,
:root.provider-schedule-page {
    color-scheme: dark;
    --color-surface-bg: var(--tp-bg);
    --color-surface-1: var(--tp-sf);
    --color-surface-2: var(--tp-sf2);
    --color-text-1: var(--tp-tx);
    --color-text-2: var(--tp-mu);
    --color-text-3: var(--tp-mu);
    --color-border: var(--tp-ln);
    --color-control-border: var(--tp-mu);
    --color-field: var(--tp-sf);
    --color-row-hover: var(--tp-sf2);
    --color-row-selected: var(--tp-sf2);
    --color-hover: var(--tp-sf2);
    --color-hover-strong: var(--tp-sf2);
    --color-focus: var(--tp-brt);
    --color-action-primary: var(--tp-ac);
    --color-action-primary-hover: var(--tp-ac);
    --color-action-primary-text: var(--tp-onac);
    --color-media-surface: var(--tp-st);
    --color-overlay: rgba(6, 7, 15, 0.78);
    --status-success: var(--tp-ok);
    --status-success-text: var(--tp-ok);
    --status-warning: var(--tp-wa);
    --status-warning-text: var(--tp-wa);
    --status-danger: var(--tp-bad);
    --status-danger-text: var(--tp-bad);
    --iterp-bg: var(--tp-bg);
    --iterp-surface: var(--tp-sf);
    --iterp-surface-strong: var(--tp-sf2);
    --iterp-line: var(--tp-ln);
    --iterp-text: var(--tp-tx);
    --iterp-muted: var(--tp-mu);
    --iterp-blue: var(--tp-brand);
    --iterp-green: var(--tp-ok);
    --iterp-amber: var(--tp-wa);
    --iterp-red: var(--tp-bad);
}

:root.provider-queue-page[data-theme="light"],
:root.provider-schedule-page[data-theme="light"] { color-scheme: light; }

/* Month schedule (Jobs clarity, 2026-11-01): each entry names its status
   in the tone of the shared table (vrs-status-tokens.js). The left rule
   repeats the word in the same tone, so "Assigned" is the status blue on
   every tenant, never the brand colour. The page's own rules are in its
   <head>; these win on specificity. */
:root.provider-schedule-page .cal-entry.tone-orange { --cal-tone: var(--status-warning); --cal-tone-text: var(--status-warning-text); }
:root.provider-schedule-page .cal-entry.tone-blue { --cal-tone: var(--status-info); --cal-tone-text: var(--status-info-text); }
:root.provider-schedule-page .cal-entry.tone-purple { --cal-tone: var(--status-purple); --cal-tone-text: var(--status-purple-text); }
:root.provider-schedule-page .cal-entry.tone-green { --cal-tone: var(--status-success); --cal-tone-text: var(--status-success-text); }
:root.provider-schedule-page .cal-entry.tone-indigo { --cal-tone: var(--status-indigo); --cal-tone-text: var(--status-indigo-text); }
:root.provider-schedule-page .cal-entry.tone-grey { --cal-tone: var(--status-neutral); --cal-tone-text: var(--status-neutral-text); }
:root.provider-schedule-page .cal-entry.tone-red { --cal-tone: var(--status-danger); --cal-tone-text: var(--status-danger-text); }
:root.provider-schedule-page .cal-grid .cal-entry[class*="tone-"] { border-left-color: var(--cal-tone, var(--iterp-muted)); }
:root.provider-schedule-page .cal-entry__time { font-variant-numeric: tabular-nums; }
:root.provider-schedule-page .cal-entry__status { color: var(--cal-tone-text, var(--iterp-muted)); display: block; font-size: 11px; font-weight: 500; }

/* Interpreters without Jobs access never see the jobs board, so its
   destinations disappear from the nav rather than leading to a "no access"
   notice. The profile page sets the body class once it knows the profile. */
body.iterp-no-jobs [data-iterp-nav^="/interpreter-jobs.html"] { display: none; }
.iterp-nav .iterp-nav__link--jobs-request { display: none; }
body.iterp-no-jobs .iterp-nav .iterp-nav__link--jobs-request { display: flex; }

/* ---------- Layout offset ---------- */

body.iterp-has-nav {
    padding: var(--tp-bar) 0 0 var(--tp-rail);
}

/* The jobs page reuses one document for its signed-out login screen
   (body.auth-mode). Navigation to destinations that all require a session
   would be dead weight there, so hide the shell until sign-in succeeds. */
body.auth-mode .iterp-nav,
body.auth-mode .iterp-bar,
body.auth-mode .iterp-nav__toggle {
    display: none;
}

body.auth-mode.iterp-has-nav {
    padding: 0;
}

/* ---------- Header bar: the logo, then the account avatar ---------- */

.iterp-bar {
    align-items: center;
    background: var(--tp-bg);
    border-bottom: 0.5px solid var(--tp-ln);
    box-sizing: border-box;
    color: var(--tp-tx);
    display: flex;
    gap: 12px;
    height: var(--tp-bar);
    left: 0;
    padding: 0 16px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 950;
}

.iterp-bar__brand {
    align-items: center;
    border-radius: 8px;
    color: var(--tp-tx);
    display: flex;
    flex: none;
    min-height: 44px;
    text-decoration: none;
}

.iterp-bar__brand:focus-visible,
.iterp-nav__link:focus-visible {
    outline: 3px solid var(--tp-brt);
    outline-offset: 2px;
}

.iterp-bar__end {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-left: auto;
}

/* The logo is a mask, so its colour follows the theme: the Malka script
   logo, or the Maple leaf (in Maple red) and the word MAPLE. Another
   tenant's own logo shows as an image. */
.iterp-mark { display: none; }

.iterp-bar__brand[data-iterp-mark="malka"] .iterp-mark--malka {
    -webkit-mask: url(/images/brand/malka-mask.png) no-repeat left center / contain;
    background: var(--tp-logo);
    display: block;
    height: 36px;
    mask: url(/images/brand/malka-mask.png) no-repeat left center / contain;
    width: 76px;
}

.iterp-bar__brand[data-iterp-mark="maple"] .iterp-mark--maple {
    align-items: center;
    display: flex;
    gap: 6px;
}

.iterp-mark__leaf {
    -webkit-mask: url(/images/brand/maple-leaf-mask.png) no-repeat center / contain;
    background: var(--tp-brand);
    height: 28px;
    mask: url(/images/brand/maple-leaf-mask.png) no-repeat center / contain;
    width: 30px;
}

.iterp-mark__word {
    -webkit-mask: url(/images/brand/maple-word-mask.png) no-repeat left center / contain;
    background: var(--tp-logo);
    height: 13px;
    mask: url(/images/brand/maple-word-mask.png) no-repeat left center / contain;
    width: 84px;
}

/* A fixed height, because some wordmarks have a viewBox but no intrinsic
   size. Wordmarks run from about 2:1 to 4.5:1. */
.iterp-nav__logo {
    display: none;
    height: 34px;
    max-width: 160px;
    object-fit: contain;
    width: auto;
}

.iterp-bar__brand[data-iterp-mark="image"] .iterp-nav__logo { display: block; }

.iterp-nav__logo:not([src]) { visibility: hidden; }

/* ---------- The areas: a rail at 640 px and wider ---------- */

.iterp-icon {
    fill: none;
    flex: none;
    height: 20px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 20px;
}

.iterp-nav {
    background: var(--tp-bg);
    border-right: 0.5px solid var(--tp-ln);
    bottom: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    left: 0;
    overflow-y: auto;
    padding: 8px 0;
    position: fixed;
    top: var(--tp-bar);
    width: var(--tp-rail);
    z-index: 900;
}

.iterp-nav__link {
    align-items: center;
    box-sizing: border-box;
    color: var(--tp-mu);
    display: flex;
    flex-direction: column;
    font-size: 11px;
    gap: 3px;
    justify-content: center;
    line-height: 1.2;
    min-height: 56px;
    padding: 9px 4px;
    position: relative;
    text-align: center;
    text-decoration: none;
}

.iterp-nav__link .iterp-icon { height: 22px; width: 22px; }

.iterp-nav__link:hover { background: var(--tp-sf); color: var(--tp-tx); }

.iterp-nav__link[aria-current="page"] { color: var(--tp-tx); font-weight: 500; }

.iterp-nav__link[aria-current="page"] .iterp-icon { stroke: var(--tp-brand); }

.iterp-nav__link[aria-current="page"]::before {
    background: var(--tp-brand);
    border-radius: 2px;
    bottom: 9px;
    content: "";
    left: 0;
    position: absolute;
    top: 9px;
    width: 3px;
}

/* Count badge on Jobs: what waits for an answer. Hidden until given a
   value, so an empty badge never renders as a stray dot. */
.iterp-nav__badge {
    background: var(--tp-bad);
    border-radius: 9px;
    box-sizing: border-box;
    color: var(--tp-bg);
    font-size: 11px;
    font-weight: 500;
    height: 17px;
    left: 44px;
    line-height: 17px;
    min-width: 17px;
    padding: 0 4px;
    position: absolute;
    text-align: center;
    top: 4px;
}

.iterp-nav__badge:empty { display: none; }

/* ---------- Phone width: bottom tabs, as on the native app ---------- */

@media (max-width: 639.98px) {
    body.iterp-has-nav {
        padding: var(--tp-bar) 0 calc(var(--tp-tabs) + env(safe-area-inset-bottom, 0px)) 0;
    }

    .iterp-nav {
        border-right: 0;
        border-top: 0.5px solid var(--tp-ln);
        flex-direction: row;
        height: calc(var(--tp-tabs) + env(safe-area-inset-bottom, 0px));
        overflow: visible;
        padding: 4px 0 env(safe-area-inset-bottom, 0px);
        right: 0;
        top: auto;
        width: auto;
    }

    .iterp-nav__link { flex: 1 1 0; min-width: 0; }

    /* History opens from Pay at this width (the native app keeps it there). */
    .iterp-nav__link--wide { display: none; }

    .iterp-nav__link[aria-current="page"]::before { display: none; }

    .iterp-nav__badge { left: calc(50% + 4px); top: 2px; }
}

/* ---------- The account menu (interpreter-nav.js) ---------- */

.iterp-acct { position: relative; }

.iterp-acct[hidden] { display: none; }

.iterp-acct__btn {
    align-items: center;
    background: var(--tp-sf2);
    border: 0;
    border-radius: 50%;
    color: var(--tp-tx);
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    height: 44px;
    justify-content: center;
    padding: 0;
    position: relative;
    width: 44px;
}

.iterp-acct__btn:focus-visible { outline: 3px solid var(--tp-brt); outline-offset: 2px; }

.iterp-acct__dot {
    background: var(--tp-wa);
    border: 2px solid var(--tp-bg);
    border-radius: 50%;
    height: 10px;
    position: absolute;
    right: 1px;
    top: 1px;
    width: 10px;
}

.iterp-acct__menu {
    background: var(--tp-bg);
    border: 0.5px solid var(--tp-ln);
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
    color: var(--tp-tx);
    padding: 12px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 300px;
    z-index: 1000;
}

.iterp-acct__menu[hidden],
.iterp-acct__scrim { display: none; }

.iterp-acct__grab { display: none; }

.iterp-acct__who { align-items: center; display: flex; gap: 12px; margin-bottom: 12px; }

.iterp-acct__avatar {
    align-items: center;
    background: var(--tp-sf2);
    border-radius: 50%;
    display: flex;
    flex: none;
    font-size: 15px;
    font-weight: 500;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.iterp-acct__who-text { min-width: 0; }

.iterp-acct__name { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.iterp-acct__public { color: var(--tp-mu); font-size: 12px; }

.iterp-acct__list { background: var(--tp-sf); border-radius: 14px; overflow: hidden; }

.iterp-acct__row {
    align-items: center;
    background: none;
    border: 0;
    border-bottom: 0.5px solid var(--tp-ln);
    box-sizing: border-box;
    color: var(--tp-tx);
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 14px;
    gap: 10px;
    min-height: 46px;
    padding: 8px 14px;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.iterp-acct__row:last-child { border-bottom: 0; }

.iterp-acct__row:hover,
.iterp-acct__row:focus-visible { background: var(--tp-sf2); outline: none; }

.iterp-acct__label { flex: 1; min-width: 0; }

.iterp-acct__val { color: var(--tp-mu); font-size: 13px; white-space: nowrap; }

.iterp-acct__chev { color: var(--tp-mu); }

.iterp-acct__row--bad { color: var(--tp-bad); }

@media (max-width: 639.98px) {
    /* A bottom sheet over a dimmed page. */
    .iterp-acct__scrim:not([hidden]) {
        background: rgba(0, 0, 0, 0.5);
        display: block;
        inset: 0;
        position: fixed;
        z-index: 990;
    }

    .iterp-acct__menu {
        border-radius: 22px 22px 0 0;
        bottom: 0;
        left: 0;
        padding: 8px 16px calc(20px + env(safe-area-inset-bottom, 0px));
        position: fixed;
        right: 0;
        top: auto;
        width: auto;
    }

    .iterp-acct__grab {
        background: var(--tp-sf2);
        border-radius: 3px;
        display: block;
        height: 5px;
        margin: 0 auto 12px;
        width: 36px;
    }
}

/* The console page clears every margin and padding under its body
   (body.provider-queue-page *, below). The shell keeps its own spacing. */
body.iterp-has-nav .iterp-skip { padding: 10px 14px; }
body.iterp-has-nav .iterp-bar { padding: 0 16px; }
body.iterp-has-nav .iterp-nav { padding: 8px 0; }
body.iterp-has-nav .iterp-nav__link { padding: 9px 4px; }
body.iterp-has-nav .iterp-nav__badge { padding: 0 4px; }
body.iterp-has-nav .iterp-acct__menu { padding: 12px; }
body.iterp-has-nav .iterp-acct__who { margin-bottom: 12px; }
body.iterp-has-nav .iterp-acct__row { padding: 8px 14px; }

@media (max-width: 639.98px) {
    body.iterp-has-nav .iterp-nav { padding: 4px 0 env(safe-area-inset-bottom, 0px); }
    body.iterp-has-nav .iterp-acct__menu { padding: 8px 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
    body.iterp-has-nav .iterp-acct__grab { margin: 0 auto 12px; }
}

/* The Jobs page has its own account menu in its top bar; it sits in the
   header bar's row, at the end edge, so each page has one header. */
body.provider-jobs-page.iterp-has-nav:not(.auth-mode):not(.manager-mode) .topbar {
    align-items: center;
    flex-direction: row;
    height: var(--tp-bar);
    justify-content: flex-end;
    left: 200px;
    margin: 0;
    max-width: none;
    min-height: 0;
    padding: 0;
    pointer-events: none;
    position: fixed;
    right: 16px;
    top: 0;
    z-index: 960;
}

body.provider-jobs-page.iterp-has-nav:not(.auth-mode):not(.manager-mode) .topbar > * { pointer-events: auto; }

body.provider-jobs-page.manager-mode .iterp-bar { display: none; }

body.provider-jobs-page.manager-mode.iterp-has-nav { padding: 0; }

@media (max-width: 639.98px) {
    body.provider-jobs-page.iterp-has-nav:not(.auth-mode):not(.manager-mode) .topbar { left: 140px; }
}

/* Respect users who ask for less motion: nothing on any interpreter page
   animates. */
@media (prefers-reduced-motion: reduce) {
    body.iterp-has-nav *,
    body.iterp-has-nav *::before,
    body.iterp-has-nav *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* Existing interpreter dialogs, extracted from the profile. */
.agreement-dialog .call-request-eyebrow,
.agreement-dialog .agreement-body,
.agreement-dialog .agreement-md-heading,
.agreement-dialog .agreement-md-quote,
.agreement-dialog .agreement-version-line,
.agreement-dialog .agreement-history summary,
.agreement-dialog .agreement-history-row,
.agreement-dialog .agreement-confirm-row,
.agreement-dialog .agreement-change-note { color: inherit; }

.call-request-overlay {
    align-items: center;
    background: var(--color-overlay);
    backdrop-filter: blur(8px);
    color: var(--color-text-1);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 9999;
}

.call-request-dialog {
    background: var(--color-surface-1);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 24px 64px var(--color-shadow);
    display: grid;
    gap: 16px;
    max-width: 560px;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px;
    width: min(100%, 560px);
}

.call-request-dialog.inbound-hearing {
    background: var(--color-surface-1);
    border-color: var(--status-warning);
    box-shadow: 0 24px 64px var(--color-shadow);
}

.call-request-dialog.inbound-hearing .call-request-eyebrow {
    color: var(--status-warning-text);
}

.call-request-eyebrow {
    color: var(--color-text-2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.call-request-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.15;
}

.call-request-summary {
    color: var(--color-text-2);
    font-size: 16px;
    line-height: 1.5;
}

/* A Demo-account offer: said before Accept, because the call is not payable. */
.call-request-demo {
    border: 1px solid var(--status-warning);
    border-radius: 8px;
    color: var(--status-warning-text);
    font-weight: 600;
    line-height: 1.4;
    padding: 10px 12px;
}

.call-request-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.call-request-detail {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 16px;
}

.call-request-label {
    color: var(--color-text-3);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.call-request-value {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.call-request-actions {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
    margin-top: 4px;
}

.call-request-btn {
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    min-height: 56px;
    padding: 16px;
    transition: background-color 0.16s ease;
}

.call-request-btn:hover {
    transform: none;
}

.call-request-btn:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
}

.call-request-btn.accept {
    background: var(--color-action-primary);
    box-shadow: none;
    color: var(--color-action-primary-text);
}

.call-request-btn.decline {
    background: var(--color-surface-2);
    border: 1px solid var(--color-control-border);
    color: var(--color-text-1);
}

.call-request-btn.accept[disabled],
.call-request-btn.decline[disabled] {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.call-request-shortcuts {
    color: var(--color-text-2);
    font-size: 12px;
    text-align: center;
    line-height: 1.5;
}

/* IV001 Rev 1 — session-handoff ("Signed in elsewhere") dialog: a centred,
   readable notice. Scoped to the superseded overlay so the live-offer dialog
   keeps its own layout. Foreground/background stay on the shared theme tokens
   (near-white on dark, near-black on light) rather than one hardcoded colour. */
#vrs-superseded-overlay .call-request-dialog {
    padding: 32px 28px;
    text-align: center;
}

#vrs-superseded-overlay .call-request-title {
    color: var(--color-text-1);
    overflow-wrap: anywhere;
}

#vrs-superseded-overlay .call-request-summary {
    color: var(--color-text-2);
    max-width: 42ch;
    overflow-wrap: anywhere;
}

#vrs-superseded-overlay .call-request-actions {
    grid-template-columns: minmax(0, 1fr);
}

#vrs-superseded-overlay .call-request-btn.accept {
    justify-self: center;
    max-width: 320px;
    width: 100%;
}

@media (max-width: 479.98px) {
    #vrs-superseded-overlay .call-request-dialog {
        padding: 24px 20px;
    }
}

@media (max-width: 479.98px) {

    .call-request-dialog {
        border-radius: 16px;
        padding: 16px;
    }

    .call-request-grid,
    .call-request-actions {
        grid-template-columns: 1fr;
    }
}

.call-request-detail--wide { grid-column: 1 / -1; }

.call-request-btn.accept:hover:not([disabled]) { background: var(--color-action-primary-hover); }

.call-request-btn.decline:hover:not([disabled]) { background: var(--color-hover-strong); }

/* The live-offer overlay: one 32 px line to decide on, a dominant Accept
   and, for a timed offer, its remaining window draining along Accept. */
#vrs-accept-overlay .call-request-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

#vrs-accept-overlay .call-request-grid:empty {
    display: none;
}

#vrs-accept-overlay .call-request-actions {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

#vrs-accept-overlay .call-request-btn.accept {
    font-size: 18px;
    min-height: 64px;
    overflow: hidden;
    position: relative;
}

#vrs-accept-overlay .offer-drain {
    background: var(--color-action-primary-text);
    bottom: 0;
    height: 6px;
    left: 0;
    opacity: 0.85;
    pointer-events: none;
    position: absolute;
    transform: scaleX(var(--offer-remaining, 1));
    transform-origin: left center;
    transition: transform 0.5s linear;
    width: 100%;
}

@media (max-width: 479.98px) {
    #vrs-accept-overlay .call-request-actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) { .call-request-btn, #vrs-accept-overlay .offer-drain { transition: none; } }

/* Interpreting in the client's own Zoom/Meet/Teams/Webex meeting
   (interpreter-external-meeting.js). Not modal: the interpreter works in the
   meeting's tab and comes back here only to report progress. */
.external-meeting-panel {
    bottom: 24px;
    position: fixed;
    right: 24px;
    width: min(calc(100% - 48px), 440px);
    z-index: 9000;
}

.external-meeting-steps,
.external-meeting-end {
    display: grid;
    gap: 12px;
}

.external-meeting-steps a.call-request-btn {
    align-items: center;
    display: flex;
    justify-content: center;
    text-decoration: none;
}


/* Provider page styles moved out of HTML. Each section is scoped so the three
 * legacy URLs share this asset without sharing generic selectors. */

/* ---------- Queue workspace (scoped external CSS) ---------- */

body.provider-queue-page * { margin: 0; padding: 0; box-sizing: border-box; }

        body.provider-queue-page :focus-visible {
            outline: 3px solid var(--color-focus);
            outline-offset: 3px;
        }

        body.provider-queue-page {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: var(--color-surface-bg);
            min-height: 100vh;
            color: var(--color-text-1);
            overflow-y: auto;
        }

        /* Header */
        body.provider-queue-page .profile-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 16px 32px;
            background: var(--color-surface-1);
            color: var(--color-text-1);
            border-bottom: 1px solid var(--color-border);
        }

        body.provider-queue-page .profile-header-left {
            display: flex;
            align-items: baseline;
            gap: 12px;
            flex: 1 1 auto;
            min-width: 0;
        }

        body.provider-queue-page .profile-header-logo {
            max-width: 120px;
            height: auto;
        }

        body.provider-queue-page .profile-header-title {
            font-size: 20px;
            font-weight: 300;
            margin: 0;
            opacity: 0.8;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* Header shows the logo alone, matching the client portal. The heading
           stays in the document for anyone navigating by headings; clipped
           rather than display:none so it stays in the accessibility tree. */
        body.provider-queue-page .profile-header-title--visually-hidden {
            border: 0;
            clip-path: inset(50%);
            height: 1px;
            overflow: hidden;
            padding: 0;
            position: absolute;
            white-space: nowrap;
            width: 1px;
        }

        body.provider-queue-page .profile-header-right {
            display: flex;
            align-items: center;
            flex: 1 1 auto;
            flex-wrap: nowrap;
            gap: 16px;
            justify-content: flex-end;
            min-width: 0;
        }

        body.provider-queue-page .profile-user-name {
            flex: 0 1 auto;
            font-size: 14px;
            min-width: 0;
            max-width: min(220px, 28vw);
            color: var(--color-text-2);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        body.provider-queue-page .profile-nav-btn {
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 6px;
            color: #fff;
            cursor: pointer;
            flex: 0 0 auto;
            font-size: 14px;
            font-weight: 700;
            padding: 8px 14px;
            text-decoration: none;
            white-space: nowrap;
        }

        body.provider-queue-page .profile-nav-btn:hover {
            background: rgba(255,255,255,0.18);
        }

        /* Stats bar */
        body.provider-queue-page .stats-bar {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
            max-width: 1100px;
            margin: 24px auto;
            padding: 0 24px;
        }

        body.provider-queue-page .stat-card {
            background: rgba(255,255,255,0.06);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 12px;
            padding: 20px;
            text-align: center;
        }

        body.provider-queue-page .stat-value {
            font-size: 32px;
            font-weight: 700;
            color: #7eb8da;
            margin-bottom: 4px;
        }

        body.provider-queue-page .stat-label {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
            opacity: 0.5;
        }

        /* Main grid */
        body.provider-queue-page .profile-main {
            max-width: 1180px;
            margin: 0 auto;
            padding: 24px 24px 40px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        /* Card */
        body.provider-queue-page .card {
            background: var(--color-surface-1);
            color: var(--color-text-1);
            border: 1px solid var(--color-border);
            border-radius: 12px;
            padding: 24px;
        }

        body.provider-queue-page .card-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 16px;
            color: rgba(255,255,255,0.9);
        }

        body.provider-queue-page .profile-hero {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
            grid-template-areas: "preview summary";
            gap: 18px;
            align-items: start;
        }

        body.provider-queue-page .profile-stack {
            grid-area: summary;
            display: grid;
            gap: 20px;
            position: sticky;
            top: 20px;
        }

        body.provider-queue-page .self-preview-card {
            grid-area: preview;
            display: grid;
            gap: 12px;
            min-width: 0;
        }

        body.provider-queue-page .self-preview-frame {
            align-items: center;
            background: var(--color-surface-2);
            border: 1px solid var(--color-border);
            border-radius: 10px;
            display: flex;
            height: clamp(320px, 52vh, 560px);
            justify-content: center;
            min-height: 0;
            overflow: hidden;
            position: relative;
            width: 100%;
        }

        body.provider-queue-page .self-preview-frame video {
            height: 100%;
            object-fit: cover;
            transform: scaleX(-1);
            width: 100%;
        }

        body.provider-queue-page .self-device-panel {
            background: rgba(10,14,24,0.82);
            border: 1px solid rgba(255,255,255,0.18);
            border-radius: 10px;
            bottom: 12px;
            box-shadow: 0 12px 32px rgba(0,0,0,0.28);
            display: grid;
            gap: 8px;
            opacity: 0;
            padding: 10px;
            pointer-events: none;
            position: absolute;
            right: 12px;
            transform: translateY(6px);
            transition: opacity 0.18s ease, transform 0.18s ease;
            width: min(280px, calc(100% - 24px));
            z-index: 3;
        }

        body.provider-queue-page .self-preview-frame:hover .self-device-panel,body.provider-queue-page
        .self-preview-frame:focus-within .self-device-panel {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
        }

        body.provider-queue-page .self-device-row {
            display: grid;
            gap: 4px;
        }

        body.provider-queue-page .self-device-label {
            color: rgba(255,255,255,0.74);
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
        }

        body.provider-queue-page .self-device-select {
            background: rgba(255,255,255,0.92);
            border: 0;
            border-radius: 8px;
            color: #111827;
            font: inherit;
            font-size: 13px;
            min-height: 44px;
            min-width: 0;
            padding: 8px 9px;
            width: 100%;
        }

        body.provider-queue-page .self-device-select option,body.provider-queue-page
        .settings-select option {
            background: #fff;
            color: #111827;
        }

        body.provider-queue-page .self-preview-placeholder {
            color: var(--color-text-2);
            font-size: 14px;
            line-height: 1.4;
            padding: 18px;
            text-align: center;
        }

        body.provider-queue-page .self-preview-status {
            color: var(--color-text-3);
            font-size: 12px;
            line-height: 1.4;
        }

        body.provider-queue-page .self-preview-actions {
            display: flex;
            gap: 8px;
        }

        body.provider-queue-page .self-preview-actions .settings-btn {
            flex: 1;
        }

        body.provider-queue-page .profile-summary-top {
            display: grid;
            gap: 16px;
            margin-bottom: 18px;
        }

        body.provider-queue-page .profile-name {
            font-size: 30px;
            font-weight: 600;
            overflow-wrap: anywhere;
            letter-spacing: 0;
            margin-bottom: 6px;
        }

        body.provider-queue-page .profile-subtitle {
            color: var(--color-text-2);
            font-size: 14px;
            line-height: 1.5;
        }

        body.provider-queue-page .service-chip-row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: flex-start;
        }

        body.provider-queue-page .service-chip {
            align-items: center;
            background: var(--status-info-soft);
            border: 1px solid var(--color-border);
            border-radius: 999px;
            color: var(--status-info-text);
            display: inline-flex;
            font-size: 12px;
            font-weight: 600;
            line-height: 16px;
            min-height: 30px;
            padding: 7px 11px;
            text-transform: uppercase;
        }

        body.provider-queue-page .readiness-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            margin-bottom: 18px;
        }

        body.provider-queue-page .readiness-item {
            background: var(--color-surface-2);
            border: 1px solid var(--color-border);
            border-radius: 8px;
            padding: 12px;
        }

        body.provider-queue-page .readiness-value {
            color: var(--color-text-1);
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 3px;
        }

        body.provider-queue-page .readiness-label {
            color: var(--color-text-3);
            font-size: 12px;
            font-weight: 600;
            line-height: 16px;
            text-transform: uppercase;
        }

        body.provider-queue-page .readiness-note {
            color: var(--color-text-2);
            font-size: 13px;
            line-height: 1.5;
            margin-top: 12px;
        }

        body.provider-queue-page .profile-tabs {
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 10px;
            display: grid;
            /* auto-fit rather than a fixed count: the tab list grew from 6 to
               8 (credentials, agreements) and should absorb another without a
               lonely wrapped cell. */
            grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
            overflow: hidden;
        }

        body.provider-queue-page .tab-badge {
            background: #f59e0b;
            border-radius: 999px;
            color: #1a1a1a;
            display: inline-block;
            font-size: 11px;
            line-height: 18px;
            margin-left: 4px;
            min-width: 18px;
            padding: 0 5px;
        }

        body.provider-queue-page .agreement-row {
            align-items: center;
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 10px;
            display: flex;
            gap: 12px;
            justify-content: space-between;
            padding: 12px;
        }

        body.provider-queue-page .onboarding-archive .agreement-title,body.provider-queue-page
        .onboarding-archive .agreement-meta { color: inherit; overflow-wrap: anywhere; }
        body.provider-queue-page .onboarding-archive .agreement-row { flex-wrap: wrap; }
        body.provider-queue-page .onboarding-archive .agreement-row > div { flex: 1 1 140px; min-width: 0; }
        body.provider-queue-page.theme-light .onboarding-archive .agreement-row { background: #fff; border-color: rgba(20,34,49,0.18); }

        body.provider-queue-page .agreement-row.pending {
            border-color: rgba(245,158,11,0.55);
        }

        body.provider-queue-page .agreement-title {
            color: #fff;
            font-size: 14px;
            font-weight: 700;
        }

        body.provider-queue-page .agreement-meta {
            color: rgba(255,255,255,0.58);
            font-size: 12px;
            margin-top: 2px;
        }

        body.provider-queue-page .agreement-summary {
            color: rgba(255,255,255,0.72);
            font-size: 13px;
            margin-top: 6px;
        }

        body.provider-queue-page .agreement-dialog {
            max-height: calc(100vh - 48px);
            max-height: calc(100dvh - 48px);
            overflow-y: auto;
            overscroll-behavior: contain;
            width: min(680px, 94vw);
        }

        body.provider-queue-page .agreement-version-line {
            color: rgba(255,255,255,0.5);
            font-size: 12px;
            margin-bottom: 10px;
        }

        body.provider-queue-page .agreement-body {
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 8px;
            color: rgba(255,255,255,0.85);
            max-height: 46vh;
            overflow-y: auto;
            padding: 14px 16px;
        }

        body.provider-queue-page .agreement-md-heading { color: #fff; }
        body.provider-queue-page .agreement-md-quote {
            border-left: 3px solid rgba(245,158,11,0.7);
            color: rgba(255,255,255,0.7);
            font-style: italic;
            margin: 10px 0;
            padding-left: 10px;
        }
        body.provider-queue-page .agreement-md-list { padding-left: 22px; }
        body.provider-queue-page .agreement-md-paragraph { margin: 8px 0; }

        body.provider-queue-page .agreement-change-note {
            background: rgba(245,158,11,0.12);
            border-radius: 6px;
            color: #fde7b0;
            font-size: 13px;
            margin-bottom: 10px;
            padding: 8px 10px;
        }

        body.provider-queue-page .agreement-history { margin-top: 12px; }
        body.provider-queue-page .agreement-history summary {
            color: rgba(255,255,255,0.66);
            cursor: pointer;
            font-size: 13px;
        }
        body.provider-queue-page .agreement-history-row {
            color: rgba(255,255,255,0.66);
            display: flex;
            gap: 10px;
            font-size: 13px;
            padding: 6px 0;
        }

        body.provider-queue-page .agreement-confirm-row {
            min-height: 44px;
            align-items: center;
            color: rgba(255,255,255,0.86);
            display: flex;
            font-size: 14px;
            gap: 8px;
        }

        body.provider-queue-page .agreement-gate-list { display: grid; gap: 10px; margin: 14px 0; }

        /* Onboarding takeover */
        body.provider-queue-page .agreement-confirm-row input { flex: 0 0 20px; height: 20px; width: 20px; }
        body.provider-queue-page .agreement-dialog .settings-input { font-size: 16px; }
        body.provider-queue-page.theme-light #vrs-agreement-overlay { color: #142231; }
        body.provider-queue-page.theme-light .agreement-dialog { background: #fff; border-color: rgba(20,34,49,0.24); }
        body.provider-queue-page.theme-light .agreement-body { background: #f5f5f5; border-color: rgba(20,34,49,0.24); }

        body.provider-queue-page .onboard-wrap [hidden] { display: none !important; }
        body.provider-queue-page .onboard-wrap { display: grid; gap: 22px; margin: 0 auto; max-width: 1080px; padding: 28px 24px 48px; }
        html.provider-queue-page.onboarding-active, html.provider-queue-page.onboarding-active body { height: auto; overflow-y: auto; }
        body.provider-queue-page .ob-head { align-items: center; display: flex; gap: 18px; }
        body.provider-queue-page .ob-head-copy { min-width: 0; overflow-wrap: anywhere; }
        body.provider-queue-page .ob-logo { max-height: 44px; max-width: 140px; }
        body.provider-queue-page .ob-title,body.provider-queue-page  .ob-pane-title { color: inherit; }
        body.provider-queue-page .ob-title { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
        body.provider-queue-page .ob-sub { color: inherit; font-size: 14px; margin-bottom: 12px; }
        body.provider-queue-page .ob-progress { background: rgba(127,127,127,0.2); border-radius: 999px; height: 8px; max-width: 460px; overflow: hidden; }
        body.provider-queue-page .ob-progress-fill { background: var(--tp-ac); height: 100%; transition: width 240ms ease; }
        @media (prefers-reduced-motion: reduce) { body.provider-queue-page .ob-progress-fill { transition: none; } }
        body.provider-queue-page .ob-body { align-items: start; display: grid; gap: 20px; grid-template-columns: minmax(210px, 260px) minmax(0, 1fr); }
        @media (max-width: 760px) { body.provider-queue-page .ob-body { grid-template-columns: minmax(0, 1fr); } }
        body.provider-queue-page .ob-rail { display: grid; gap: 6px; }
        body.provider-queue-page .ob-rail-step {
            align-items: center; background: transparent;
            border: 1px solid rgba(127,127,127,0.45); border-radius: 9px;
            color: inherit; cursor: pointer; display: flex;
            font-size: 13.5px; gap: 10px; padding: 10px 12px; text-align: left;
        }
        body.provider-queue-page .ob-rail-step.current { background: rgba(37,99,235,0.16); border-color: #3b82f6; color: inherit; font-weight: 700; }
        body.provider-queue-page .ob-rail-step.done .ob-rail-dot { background: var(--iterp-green); border-color: var(--iterp-green); color: var(--iterp-bg); }
        body.provider-queue-page .ob-rail-dot {
            border: 1px solid currentColor; border-radius: 999px; flex: 0 0 20px;
            display: inline-block; height: 20px; line-height: 19px; text-align: center; width: 20px;
        }
        body.provider-queue-page .ob-card { padding: 26px; }
        body.provider-queue-page .ob-pane-title { font-size: 18px; margin-bottom: 8px; }
        body.provider-queue-page .ob-two-col { display: grid; gap: 0 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
        body.provider-queue-page .ob-todo { display: grid; gap: 8px; list-style: none; padding: 0; }
        body.provider-queue-page .ob-linklike {
            background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.5);
            border-radius: 8px; color: inherit; cursor: pointer; font-size: 14px;
            padding: 10px 12px; text-align: left; width: 100%;
        }
        @media (max-width: 480px) {
            body.provider-queue-page .onboard-wrap { padding: 20px 12px 36px; }
            body.provider-queue-page .ob-head { align-items: flex-start; flex-direction: column; gap: 12px; }
            body.provider-queue-page .ob-logo { margin-left: 52px; }
            body.provider-queue-page .ob-card { padding: 20px; }
            body.provider-queue-page .ob-two-col { grid-template-columns: minmax(0, 1fr); }
        }
        body.provider-queue-page .ob-done { border-color: rgba(63,191,127,0.45); }

        body.provider-queue-page .profile-tab {
            background: transparent;
            border: 0;
            color: rgba(255,255,255,0.58);
            cursor: pointer;
            font-size: 13px;
            font-weight: 700;
            min-height: 42px;
            padding: 10px 8px;
        }

        body.provider-queue-page .profile-tab.active {
            background: rgba(255,255,255,0.12);
            color: #fff;
        }

        body.provider-queue-page .profile-tab:hover:not(.active) {
            color: rgba(255,255,255,0.86);
        }

        body.provider-queue-page .tab-panel {
            min-height: 250px;
        }

        body.provider-queue-page .tab-grid {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            gap: 16px;
        }

        body.provider-queue-page .assignment-state {
            align-items: center;
            display: flex;
            gap: 12px;
            justify-content: space-between;
            padding: 12px 0;
        }

        body.provider-queue-page .assignment-title {
            font-size: 18px;
            font-weight: 700;
        }

        body.provider-queue-page .assignment-copy {
            color: rgba(255,255,255,0.62);
            font-size: 13px;
            line-height: 1.5;
            margin-top: 4px;
        }

        body.provider-queue-page .call-item {
            border-bottom: 1px solid rgba(255,255,255,0.06);
            display: flex;
            gap: 12px;
            justify-content: space-between;
            padding: 12px 0;
        }

        body.provider-queue-page .call-item:last-child {
            border-bottom: 0;
        }

        body.provider-queue-page .call-name {
            font-weight: 700;
            margin-bottom: 4px;
        }

        body.provider-queue-page .call-meta {
            color: rgba(255,255,255,0.58);
            font-size: 13px;
            line-height: 1.45;
        }

        body.provider-queue-page .call-duration {
            color: #7eb8da;
            font-weight: 700;
            white-space: nowrap;
        }

        /* Schedule */
        body.provider-queue-page .schedule-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 4px;
            margin-bottom: 16px;
        }

        body.provider-queue-page .schedule-day {
            text-align: center;
            font-size: 11px;
            opacity: 0.5;
            padding: 4px 0;
            text-transform: uppercase;
        }

        body.provider-queue-page .schedule-cell {
            text-align: center;
            padding: 8px 4px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 500;
            background: rgba(255,255,255,0.04);
        }

        body.provider-queue-page .schedule-cell.has-hours {
            background: rgba(126,184,218,0.15);
            color: #7eb8da;
        }

        body.provider-queue-page .schedule-cell.today {
            border: 1px solid rgba(126,184,218,0.3);
        }

        body.provider-queue-page .shift-item {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            font-size: 14px;
        }

        body.provider-queue-page .shift-item:last-child {
            border-bottom: none;
        }

        body.provider-queue-page .shift-date {
            opacity: 0.6;
        }

        body.provider-queue-page .shift-hours {
            color: #7eb8da;
            font-weight: 500;
        }

        body.provider-queue-page .shift-status {
            font-size: 12px;
            opacity: 0.5;
        }

        body.provider-queue-page .metric-grid {
            display: grid;
            gap: 12px;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            margin-bottom: 18px;
        }

        body.provider-queue-page .metric-card {
            background: rgba(255,255,255,0.045);
            border: 1px solid rgba(255,255,255,0.075);
            border-radius: 10px;
            padding: 14px;
        }

        body.provider-queue-page .metric-value {
            color: #7eb8da;
            font-size: 24px;
            font-weight: 800;
            line-height: 1.15;
        }

        body.provider-queue-page .metric-label {
            color: rgba(255,255,255,0.56);
            font-size: 11px;
            font-weight: 750;
            letter-spacing: 0.05em;
            margin-top: 5px;
            text-transform: uppercase;
        }

        body.provider-queue-page .analytics-feed {
            display: grid;
            gap: 9px;
            max-height: 280px;
            overflow: auto;
        }

        body.provider-queue-page .analytics-event {
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 9px;
            display: flex;
            gap: 10px;
            justify-content: space-between;
            padding: 10px 12px;
        }

        body.provider-queue-page .analytics-event-title {
            font-size: 13px;
            font-weight: 700;
            line-height: 1.3;
        }

        body.provider-queue-page .analytics-event-meta {
            color: rgba(255,255,255,0.52);
            font-size: 12px;
            white-space: nowrap;
        }

        body.provider-queue-page .schedule-form {
            display: grid;
            gap: 12px;
        }

        body.provider-queue-page .schedule-form-grid {
            display: grid;
            gap: 10px;
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        body.provider-queue-page .schedule-field {
            display: grid;
            gap: 6px;
        }

        body.provider-queue-page .schedule-field label {
            color: rgba(255,255,255,0.62);
            font-size: 12px;
            font-weight: 750;
            text-transform: uppercase;
        }

        body.provider-queue-page .schedule-input {
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.16);
            border-radius: 8px;
            color: inherit;
            font: inherit;
            min-height: 40px;
            padding: 9px 10px;
        }

        body.provider-queue-page .schedule-input option {
            background: #fff;
            color: #111827;
        }

        body.provider-queue-page .schedule-summary {
            display: grid;
            gap: 10px;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            margin-bottom: 18px;
        }

        /* Earnings */
        body.provider-queue-page .earnings-total {
            font-size: 36px;
            font-weight: 700;
            color: #c9d6df;
            margin: 8px 0 4px;
        }

        body.provider-queue-page .earnings-period {
            font-size: 13px;
            opacity: 0.5;
            margin-bottom: 20px;
        }

        body.provider-queue-page .earnings-item {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            font-size: 14px;
        }

        body.provider-queue-page .earnings-item:last-child {
            border-bottom: none;
        }

        body.provider-queue-page .earnings-range {
            opacity: 0.6;
        }

        body.provider-queue-page .earnings-amount {
            color: #c9d6df;
            font-weight: 500;
        }

        /* Analytics visuals */
        body.provider-queue-page .viz-hero {
            align-items: center;
            display: grid;
            gap: 18px;
            grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
            margin-bottom: 18px;
        }

        body.provider-queue-page .viz-ring-wrap { text-align: center; }
        body.provider-queue-page .viz-ring { max-width: 130px; }
        body.provider-queue-page .viz-ring-value { fill: var(--tp-tx); font-size: 20px; font-variant-numeric: tabular-nums; font-weight: 600; }
        body.provider-queue-page .viz-ring-sub { fill: var(--tp-mu); font-size: 8px; }
        body.provider-queue-page .viz-ring-label { font-size: 13px; font-weight: 700; margin-top: 4px; opacity: 0.8; }

        body.provider-queue-page .viz-split-wrap { text-align: center; }
        body.provider-queue-page .viz-split-bar {
            border-radius: 999px;
            display: flex;
            height: 18px;
            margin: 28px 8px 10px;
            overflow: hidden;
        }
        body.provider-queue-page .viz-split-vrs { background: #5f9ec4; }
        body.provider-queue-page .viz-split-vri { background: #a678e8; }
        body.provider-queue-page .viz-split-legend { display: flex; font-size: 12px; gap: 14px; justify-content: center; }
        body.provider-queue-page .viz-dot { border-radius: 50%; display: inline-block; height: 8px; margin-right: 5px; width: 8px; }
        body.provider-queue-page .viz-dot.vrs { background: #5f9ec4; }
        body.provider-queue-page .viz-dot.vri { background: #a678e8; }

        body.provider-queue-page .viz-bars {
            align-items: flex-end;
            display: flex;
            gap: 8px;
            height: 110px;
            margin-bottom: 16px;
            padding: 0 4px;
        }
        body.provider-queue-page .viz-bar-col { display: flex; flex: 1; flex-direction: column; height: 100%; justify-content: flex-end; }
        body.provider-queue-page .viz-bar { background: var(--tp-ac); border-radius: 6px 6px 2px 2px; }
        body.provider-queue-page .viz-bar-label { font-size: 11px; margin-top: 4px; opacity: 0.6; text-align: center; }

        body.provider-queue-page .viz-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
        body.provider-queue-page .viz-chip {
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.14);
            border-radius: 999px;
            font-size: 12px;
            font-weight: 600;
            padding: 5px 12px;
        }

        /* Today timeline (Assignments) */
        body.provider-queue-page .day-timeline {
            display: grid;
            gap: 2px;
            grid-template-columns: repeat(24, 1fr);
            margin-bottom: 8px;
        }
        body.provider-queue-page .day-timeline-hour {
            background: rgba(255,255,255,0.06);
            border-radius: 3px;
            height: 22px;
        }
        body.provider-queue-page .day-timeline-hour.painted-vrs { background: #5f9ec4; }
        body.provider-queue-page .day-timeline-hour.painted-vri { background: #a678e8; }
        body.provider-queue-page .day-timeline-hour.painted-pto { background: #58bd7d; }
        body.provider-queue-page .day-timeline-hour.now { outline: 2px solid #ffc65c; outline-offset: 1px; }
        body.provider-queue-page .day-timeline-axis {
            display: flex;
            justify-content: space-between;
            font-size: 10px;
            opacity: 0.55;
            margin-bottom: 6px;
        }
        body.provider-queue-page .day-timeline-legend {
            display: flex;
            flex-wrap: wrap;
            gap: 14px;
            font-size: 12px;
            opacity: 0.85;
            margin-bottom: 10px;
        }
        body.provider-queue-page .day-timeline-legend span { display: inline-flex; align-items: center; gap: 5px; }
        body.provider-queue-page .legend-swatch {
            background: rgba(255,255,255,0.1);
            border-radius: 3px;
            display: inline-block;
            height: 10px;
            width: 10px;
        }
        body.provider-queue-page .legend-swatch.painted-vrs { background: #5f9ec4; }
        body.provider-queue-page .legend-swatch.painted-vri { background: #a678e8; }
        body.provider-queue-page .legend-swatch.painted-pto { background: #58bd7d; }
        body.provider-queue-page .legend-swatch.now-swatch { outline: 2px solid #ffc65c; outline-offset: 1px; background: transparent; }

        /* Set-your-hours nudge */
        body.provider-queue-page .nudge-banner {
            align-items: center;
            background: rgba(255, 176, 32, 0.12);
            border: 1px solid rgba(255, 176, 32, 0.45);
            border-radius: 12px;
            display: flex;
            flex-wrap: wrap;
            font-size: 14px;
            font-weight: 600;
            gap: 12px;
            justify-content: space-between;
            margin-bottom: 14px;
            padding: 12px 16px;
        }

        /* Settings: skill chips */
        body.provider-queue-page .skill-chips { display: flex; flex-wrap: wrap; gap: 8px; }
        body.provider-queue-page .skill-chip {
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.18);
            border-radius: 999px;
            color: #fff;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            padding: 6px 14px;
        }
        body.provider-queue-page .skill-chip.active {
            background: rgba(126,184,218,0.3);
            border-color: #7eb8da;
        }

        /* Grouped call history */
        body.provider-queue-page .history-group {
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 12px;
            margin-bottom: 10px;
            padding: 4px 14px;
        }
        body.provider-queue-page .history-group summary {
            align-items: center;
            cursor: pointer;
            display: flex;
            font-weight: 700;
            justify-content: space-between;
            padding: 10px 0;
        }
        body.provider-queue-page .history-group-meta { font-size: 12px; font-weight: 600; opacity: 0.6; }

        /* Painted week schedule */
        body.provider-queue-page .paint-toolbar {
            align-items: center;
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            justify-content: space-between;
            margin-bottom: 14px;
        }

        body.provider-queue-page .paint-week-nav {
            align-items: center;
            display: flex;
            gap: 8px;
        }

        body.provider-queue-page .paint-week-label {
            font-size: 14px;
            font-weight: 700;
        }

        body.provider-queue-page .paint-status-chip {
            border: 1px solid rgba(255,255,255,0.25);
            border-radius: 999px;
            font-size: 11px;
            font-weight: 700;
            padding: 3px 10px;
            text-transform: uppercase;
        }

        body.provider-queue-page .paint-status-chip.approved { border-color: rgba(74,222,128,0.6); color: #7ae2a8; }
        body.provider-queue-page .paint-status-chip.submitted { border-color: rgba(255,196,92,0.6); color: #ffc65c; }
        body.provider-queue-page .paint-status-chip.adjusted { border-color: rgba(126,184,218,0.7); color: #7eb8da; }
        body.provider-queue-page .paint-status-chip.draft { opacity: 0.6; }

        body.provider-queue-page .paint-brushes {
            display: flex;
            gap: 6px;
        }

        body.provider-queue-page .paint-brush {
            background: rgba(255,255,255,0.06);
            border: 2px solid transparent;
            border-radius: 10px;
            color: #fff;
            cursor: pointer;
            font-size: 13px;
            font-weight: 700;
            min-height: 44px;
            padding: 8px 14px;
        }

        body.provider-queue-page .paint-brush:disabled { cursor: not-allowed; opacity: 0.3; }
        body.provider-queue-page .paint-brush.brush-vrs { background: rgba(126,184,218,0.25); }
        body.provider-queue-page .paint-brush.brush-vri { background: rgba(186,140,255,0.25); }
        body.provider-queue-page .paint-brush.brush-pto { background: rgba(120,220,150,0.22); }
        body.provider-queue-page .paint-brush.active { border-color: #fff; }

        body.provider-queue-page .paint-grid {
            display: grid;
            gap: 2px;
            grid-template-columns: 44px repeat(7, 1fr);
            margin-bottom: 14px;
            touch-action: none;
            user-select: none;
        }

        body.provider-queue-page .paint-day-head {
            font-size: 12px;
            font-weight: 700;
            opacity: 0.8;
            padding: 4px 0;
            text-align: center;
        }

        body.provider-queue-page .paint-day-head span { opacity: 0.6; }

        body.provider-queue-page .paint-hour-label {
            font-size: 10px;
            opacity: 0.5;
            padding-right: 6px;
            text-align: right;
        }

        body.provider-queue-page .paint-cell {
            background: rgba(255,255,255,0.05);
            border-radius: 3px;
            cursor: crosshair;
            min-height: 14px;
        }

        body.provider-queue-page .paint-cell:hover { background: rgba(255,255,255,0.16); }
        body.provider-queue-page .paint-cell.is-skipped {
            background: repeating-linear-gradient(45deg, transparent 0 3px, rgba(255,255,255,0.12) 3px 5px);
            cursor: not-allowed;
        }
        body.provider-queue-page .paint-cell.is-repeated { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45); }

        body.provider-queue-page .paint-zone {
            align-items: center;
            display: flex;
            flex-wrap: wrap;
            font-size: 13px;
            gap: 8px 16px;
            margin: 0 0 12px;
        }

        body.provider-queue-page .paint-zone select { margin-left: 6px; min-height: 32px; }
        body.provider-queue-page .paint-cell.painted-vrs { background: #5f9ec4; }
        body.provider-queue-page .paint-cell.painted-vri { background: #a678e8; }
        body.provider-queue-page .paint-cell.painted-pto { background: #58bd7d; }

        body.provider-queue-page .shift-status.ok { color: #7ae2a8; }
        body.provider-queue-page .shift-status.warn { color: #ffc65c; }

        /* Join Queue button */
        body.provider-queue-page .join-queue-section {
            grid-column: 1 / -1;
        }

        body.provider-queue-page .join-queue-btn {
            width: 100%;
            min-height: 48px;
            padding: 16px;
            background: var(--color-action-primary);
            border: 1px solid transparent;
            border-radius: 6px;
            color: var(--color-action-primary-text);
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            line-height: 22px;
            /* Keep text and background paired when the theme or call state changes. */
            transition: none;
        }

        body.provider-queue-page .join-queue-btn:hover {
            background: var(--color-action-primary-hover);
        }

        body.provider-queue-page .join-queue-btn.pause {
            background: var(--color-surface-2);
            border-color: var(--color-control-border);
            color: var(--color-text-1);
        }

        body.provider-queue-page .join-queue-btn.pause:hover {
            background: var(--color-row-hover);
        }

        body.provider-queue-page .availability-state {
            align-items: center;
            display: flex;
            flex-wrap: wrap;
            font-size: 22px;
            font-weight: 700;
            gap: 8px;
            margin: 4px 0 12px;
        }

        body.provider-queue-page .availability-state-detail {
            color: var(--color-text-2);
            font-size: 18px;
            font-variant-numeric: tabular-nums;
            font-weight: 600;
        }

        body.provider-queue-page .availability-state-detail:empty {
            display: none;
        }

        body.provider-queue-page .today-line {
            color: var(--color-text-2);
            font-size: 14px;
            line-height: 20px;
            margin: 12px 0 0;
        }

        body.provider-queue-page .today-line-part {
            white-space: nowrap;
        }

        body.provider-queue-page .today-line-label {
            color: var(--color-text-1);
            font-weight: 600;
            margin-right: 4px;
        }

        body.provider-queue-page .availability-state::before {
            background: var(--color-text-3);
            border-radius: 50%;
            content: '';
            height: 10px;
            width: 10px;
        }

        body.provider-queue-page .availability-state--available::before {
            background: var(--status-success-text, #7ae2a8);
        }

        body.provider-queue-page .availability-state--break::before {
            background: var(--status-warning-text, #ffc65c);
        }

        /* Post-call wrap-up: one summary line, one status, the choices that matter now. */
        body.provider-queue-page .wrap-up {
            border: 1px solid var(--color-control-border);
            border-radius: 8px;
            margin: 0 0 12px;
            padding: 14px 16px;
        }

        body.provider-queue-page .wrap-up--breather {
            border-color: var(--color-action-primary);
        }

        body.provider-queue-page .wrap-up-summary {
            color: var(--color-text-2);
            font-size: 14px;
            line-height: 20px;
        }

        body.provider-queue-page .wrap-up-status {
            color: var(--color-text-1);
            font-size: 22px;
            font-variant-numeric: tabular-nums;
            font-weight: 700;
            line-height: 30px;
            margin-top: 4px;
        }

        body.provider-queue-page .wrap-up .settings-actions {
            margin-top: 10px;
        }

        body.provider-queue-page .wrap-up-waiting {
            color: var(--color-text-1);
            font-size: 16px;
            font-weight: 700;
            line-height: 22px;
            margin-top: 6px;
        }

        body.provider-queue-page .wrap-up .wrap-up-take-now {
            margin-top: 12px;
            overflow: hidden;
            position: relative;
        }

        /* The waiting-client countdown, draining along Take it now (the
           offer's Accept drains the same way). */
        body.provider-queue-page .wrap-up-drain {
            background: var(--color-action-primary-text);
            bottom: 0;
            height: 6px;
            left: 0;
            opacity: 0.85;
            pointer-events: none;
            position: absolute;
            transform: scaleX(var(--wrap-up-remaining, 1));
            transform-origin: left center;
            transition: transform 1s linear;
            width: 100%;
        }

        @media (prefers-reduced-motion: reduce) { body.provider-queue-page .wrap-up-drain { transition: none; } }

        body.provider-queue-page .profile-nav-link {
            align-items: center;
            background: none;
            border: none;
            color: var(--color-text-2);
            display: inline-flex;
            min-height: 44px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            padding: 6px 10px;
            text-decoration: none;
            transition: none;
        }

        body.provider-queue-page .profile-nav-link:hover {
            color: var(--color-text-1);
            text-decoration: underline;
        }

        body.provider-queue-page .empty-state {
            text-align: center;
            padding: 32px 16px;
            opacity: 0.4;
            font-size: 14px;
        }

        body.provider-queue-page .loading {
            text-align: center;
            padding: 40px;
            opacity: 0.5;
        }

        body.provider-queue-page .auth-redirect {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            flex-direction: column;
            gap: 16px;
        }

        body.provider-queue-page .auth-redirect p { opacity: 0.7; }

        body.provider-queue-page.theme-light .stat-card {
            background: #fff;
            border-color: rgba(20,34,49,0.12);
            color: #142231;
        }

        body.provider-queue-page.theme-light .card-title,
        body.provider-queue-page.theme-light .empty-state {
            color: #142231;
        }

        body.provider-queue-page.theme-light .settings-input,
        body.provider-queue-page.theme-light .settings-select {
            color: rgba(20, 34, 49, 0.75);
        }

        body.provider-queue-page.theme-light .sign-out-link:hover {
            color: #142231;
        }

        body.provider-queue-page .settings-grid {
            display: grid;
            gap: 14px;
        }

        body.provider-queue-page .settings-columns {
            display: grid;
            gap: 18px;
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        body.provider-queue-page .settings-group {
            display: grid;
            gap: 13px;
        }

        body.provider-queue-page .settings-group-title {
            color: rgba(255,255,255,0.82);
            font-size: 13px;
            font-weight: 750;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        body.provider-queue-page .settings-row {
            display: grid;
            gap: 6px;
        }

        body.provider-queue-page .settings-label {
            font-size: 12px;
            font-weight: 700;
            opacity: 0.62;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        body.provider-queue-page .settings-input,body.provider-queue-page
        .settings-select {
            width: 100%;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: 8px;
            color: #fff;
            font-size: 14px;
            padding: 10px 12px;
        }

        body.provider-queue-page .settings-input:focus,body.provider-queue-page
        .settings-select:focus {
            border-color: #7eb8da;
            outline: none;
        }

        body.provider-queue-page .settings-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 4px;
        }

        body.provider-queue-page .settings-btn {
            background: #7eb8da;
            border: none;
            border-radius: 8px;
            color: #0f1724;
            cursor: pointer;
            font-size: 14px;
            font-weight: 700;
            min-height: 44px;
            padding: 10px 16px;
        }

        body.provider-queue-page .settings-btn.secondary {
            background: rgba(255,255,255,0.12);
            border: 1px solid rgba(255,255,255,0.18);
            color: #fff;
        }

        body.provider-queue-page .settings-toggle {
            align-items: center;
            color: rgba(255,255,255,0.78);
            display: flex;
            font-size: 14px;
            gap: 9px;
            line-height: 1.4;
        }

        body.provider-queue-page .settings-toggle input {
            accent-color: #7eb8da;
        }

        body.provider-queue-page.theme-light .settings-btn.secondary {
            background: rgba(20,34,49,0.06);
            border-color: rgba(20,34,49,0.14);
            color: #142231;
        }

        body.provider-queue-page.theme-maple .profile-header-logo {
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 8px 22px rgba(69, 0, 0, 0.2);
            height: 54px;
            max-width: 230px;
            object-fit: contain;
            padding: 8px 12px;
            width: auto;
        }

        body.provider-queue-page.theme-maple .stat-card {
            background: #fff;
            border: 1px solid rgba(0,0,0,0.1);
            box-shadow: 0 8px 28px rgba(0,0,0,0.08);
            color: #111;
        }

        body.provider-queue-page.theme-maple .card-title,
        body.provider-queue-page.theme-maple .empty-state,
        body.provider-queue-page.theme-maple .stat-label,
        body.provider-queue-page.theme-maple .settings-label,
        body.provider-queue-page.theme-maple .settings-group-title {
            color: #333;
        }

        body.provider-queue-page.theme-maple .stat-value,
        body.provider-queue-page.theme-maple .earnings-total,
        body.provider-queue-page.theme-maple .earnings-amount,
        body.provider-queue-page.theme-maple .shift-hours,
        body.provider-queue-page.theme-maple .call-duration {
            color: #e00000;
        }

        body.provider-queue-page.theme-maple .assignment-copy,
        body.provider-queue-page.theme-maple .call-meta,
        body.provider-queue-page.theme-maple .settings-toggle {
            color: #555;
        }

        body.provider-queue-page.theme-maple .profile-tab {
            color: #555;
        }

        body.provider-queue-page.theme-maple .profile-tab.active {
            background: #e00000;
            color: #fff;
        }

        body.provider-queue-page.theme-maple .profile-tabs {
            background: #fff;
            border-color: rgba(0,0,0,0.1);
        }

        body.provider-queue-page.theme-maple .settings-btn {
            background: #e00000;
            color: #fff;
        }

        body.provider-queue-page.theme-maple .settings-btn:hover {
            background: #b40000;
        }

        body.provider-queue-page.theme-maple .settings-btn.secondary {
            background: rgba(255,255,255,0.14);
            border-color: rgba(255,255,255,0.4);
            color: #fff;
        }

        body.provider-queue-page.theme-maple .settings-input,
        body.provider-queue-page.theme-maple .settings-select {
            background: #fff;
            border-color: rgba(0,0,0,0.18);
            color: #111;
        }

        body.provider-queue-page.theme-maple:not(.theme-light) .stat-card {
            background: rgba(34,0,0,0.8);
            border-color: rgba(255,255,255,0.16);
            box-shadow: 0 24px 70px rgba(0,0,0,0.32);
            color: #fff;
        }

        body.provider-queue-page.theme-maple:not(.theme-light) .card-title,
        body.provider-queue-page.theme-maple:not(.theme-light) .empty-state,
        body.provider-queue-page.theme-maple:not(.theme-light) .stat-label,
        body.provider-queue-page.theme-maple:not(.theme-light) .settings-label,
        body.provider-queue-page.theme-maple:not(.theme-light) .settings-group-title,
        body.provider-queue-page.theme-maple:not(.theme-light) .assignment-copy,
        body.provider-queue-page.theme-maple:not(.theme-light) .call-meta,
        body.provider-queue-page.theme-maple:not(.theme-light) .settings-toggle,
        body.provider-queue-page.theme-maple:not(.theme-light) .profile-tab {
            color: rgba(255,255,255,0.82);
        }

        body.provider-queue-page.theme-maple:not(.theme-light) .stat-value,
        body.provider-queue-page.theme-maple:not(.theme-light) .earnings-total,
        body.provider-queue-page.theme-maple:not(.theme-light) .earnings-amount,
        body.provider-queue-page.theme-maple:not(.theme-light) .shift-hours,
        body.provider-queue-page.theme-maple:not(.theme-light) .call-duration {
            color: #ffb3b3;
        }

        body.provider-queue-page.theme-maple:not(.theme-light) .profile-tabs {
            background: rgba(255,255,255,0.08);
            border-color: rgba(255,255,255,0.16);
        }

        body.provider-queue-page.theme-maple:not(.theme-light) .profile-tab.active,
        body.provider-queue-page.theme-maple:not(.theme-light) .settings-btn {
            background: #e00000;
            color: #fff;
        }

        body.provider-queue-page.theme-maple:not(.theme-light) .settings-btn:hover {
            background: #b40000;
        }

        body.provider-queue-page.theme-maple:not(.theme-light) .settings-btn.secondary {
            background: rgba(255,255,255,0.1);
            border-color: rgba(255,255,255,0.24);
            color: #fff;
        }

        body.provider-queue-page.theme-maple:not(.theme-light) .settings-btn.secondary:hover {
            background: rgba(255,255,255,0.16);
            border-color: rgba(255,255,255,0.52);
        }

        body.provider-queue-page.theme-maple:not(.theme-light) .settings-input,
        body.provider-queue-page.theme-maple:not(.theme-light) .settings-select {
            background: rgba(255,255,255,0.1);
            border-color: rgba(255,255,255,0.22);
            color: #fff;
        }

        body.provider-queue-page.theme-maple:not(.theme-light) .settings-input:focus,
        body.provider-queue-page.theme-maple:not(.theme-light) .settings-select:focus {
            border-color: #ffb3b3;
        }

        body.provider-queue-page.theme-light .assignment-copy,
        body.provider-queue-page.theme-light .call-meta,
        body.provider-queue-page.theme-light .settings-toggle {
            color: rgba(20,34,49,0.68);
        }

        body.provider-queue-page.theme-light .metric-value { color: #285e7c; }
        body.provider-queue-page.theme-light .metric-label { color: #4b5967; }
        body.provider-queue-page.theme-light .paint-brush { color: #142231; }
        body.provider-queue-page.theme-light .paint-brush.active { border-color: #285e7c; }

        body.provider-queue-page.theme-light .settings-label,
        body.provider-queue-page.theme-light .stat-label {
            opacity: 1;
        }

        body.provider-queue-page.theme-light .profile-tab {
            color: rgba(20,34,49,0.75);
        }

        body.provider-queue-page.theme-light .profile-tab.active {
            background: rgba(20,34,49,0.1);
            color: #142231;
        }

        body.provider-queue-page.theme-light .profile-tabs {
            background: rgba(255,255,255,0.72);
            border-color: rgba(20,34,49,0.12);
        }

        body.provider-queue-page .settings-status {
            border-radius: 8px;
            font-size: 13px;
            margin-top: 10px;
            padding: 9px 11px;
        }

        body.provider-queue-page .settings-status.success {
            background: rgba(76,175,80,0.16);
            color: #66bb6a;
        }

        body.provider-queue-page .settings-status.error {
            background: rgba(244,67,54,0.16);
            color: #ef5350;
        }

        body.provider-queue-page:not(.theme-light) .settings-label,
        body.provider-queue-page:not(.theme-light) .settings-group-title {
            opacity: 1;
        }

        body.provider-queue-page:not(.theme-light) .settings-status.success {
            color: #b0edbe;
        }

        body.provider-queue-page:not(.theme-light) .settings-status.error {
            color: #ffb4ab;
        }

        body.provider-queue-page.theme-light .settings-group-title {
            color: inherit;
        }

        body.provider-queue-page.theme-light .settings-input,
        body.provider-queue-page.theme-light .settings-select {
            background: #fff;
            border: 1px solid rgba(20,34,49,0.24);
            color: #142231;
        }

        body.provider-queue-page.theme-light .settings-btn.secondary {
            background: #f5f5f5;
            border-color: #b8b8b8;
            color: #222;
        }

        body.provider-queue-page.theme-light .settings-btn.secondary:hover {
            background: #e8e8e8;
            color: #222;
        }

        body.provider-queue-page.theme-light .iterp-nav__toggle {
            background: #fff;
            border-color: #b8b8b8;
            color: #142231;
        }

        body.provider-queue-page .settings-btn:disabled {
            opacity: 0.65;
            cursor: wait;
        }

        body.provider-queue-page.theme-light .settings-status.success,
        body.provider-queue-page.theme-light .paint-status-chip.approved {
            color: #17683e;
        }

        body.provider-queue-page.theme-light .settings-status.error {
            color: #9e2020;
        }

        body.provider-queue-page.theme-light .paint-status-chip.submitted {
            color: #805000;
        }

        body.provider-queue-page .settings-input:focus-visible,body.provider-queue-page
        .settings-select:focus-visible {
            outline: 3px solid var(--color-focus);
            outline-offset: 3px;
        }

        /* Settings → Tutorial: the topics, then one step card at a time. */
        body.provider-queue-page .settings-tutorial-topics {
            display: grid;
            gap: 8px;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        body.provider-queue-page .settings-tutorial-topic {
            align-items: center;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: 8px;
            color: #fff;
            cursor: pointer;
            display: flex;
            font: inherit;
            font-size: 14px;
            font-weight: 650;
            justify-content: space-between;
            min-height: 44px;
            padding: 8px 12px;
            text-align: left;
            width: 100%;
        }

        body.provider-queue-page .settings-tutorial-topic::after {
            content: '›';
            font-size: 18px;
            opacity: 0.7;
        }

        body.provider-queue-page .settings-tutorial-topic:hover {
            background: rgba(255,255,255,0.1);
        }

        body.provider-queue-page .settings-tutorial-card {
            display: grid;
            gap: 12px;
            max-width: 560px;
        }

        body.provider-queue-page .settings-tutorial-head {
            align-items: center;
            display: flex;
            gap: 12px;
            justify-content: space-between;
        }

        body.provider-queue-page .settings-tutorial-back {
            background: none;
            border: 0;
            border-radius: 8px;
            color: inherit;
            cursor: pointer;
            font: inherit;
            font-size: 14px;
            min-height: 44px;
            opacity: 0.82;
            padding: 0 8px 0 0;
        }

        body.provider-queue-page .settings-tutorial-progress {
            font-size: 13px;
            font-variant-numeric: tabular-nums;
            opacity: 0.82;
        }

        body.provider-queue-page .settings-tutorial-step {
            display: grid;
            gap: 6px;
        }

        body.provider-queue-page .settings-tutorial-title {
            font-size: 18px;
            font-weight: 700;
            margin: 0;
        }

        /* Focus lands on the step title so it is read; it is not a control. */
        body.provider-queue-page .settings-tutorial-title:focus {
            outline: none;
        }

        body.provider-queue-page .settings-tutorial-text {
            font-size: 15px;
            line-height: 1.55;
            margin: 0;
        }

        body.provider-queue-page .settings-tutorial-topic:focus-visible,body.provider-queue-page
        .settings-tutorial-back:focus-visible {
            outline: 3px solid var(--color-focus);
            outline-offset: 3px;
        }

        body.provider-queue-page.theme-light .settings-tutorial-topic {
            background: #fff;
            border-color: rgba(20,34,49,0.24);
            color: #142231;
        }

        body.provider-queue-page.theme-light .settings-tutorial-topic:hover {
            background: #f5f5f5;
        }

        /* Responsive */
        @media (max-width: 1023.98px) {
            body.provider-queue-page .profile-hero,body.provider-queue-page
            .tab-grid,body.provider-queue-page
            .settings-columns {
                grid-template-columns: 1fr;
            }

            body.provider-queue-page .profile-hero {
                grid-template-areas: "summary" "preview";
            }

            body.provider-queue-page .profile-stack {
                position: static;
            }

            body.provider-queue-page .profile-header-left {
                padding-left: 56px;
            }

            body.provider-queue-page .profile-header {
                align-items: flex-start;
                flex-wrap: wrap;
            }

            body.provider-queue-page .profile-header-left,body.provider-queue-page
            .profile-header-right {
                width: 100%;
            }

            body.provider-queue-page .profile-header-right {
                flex-wrap: wrap;
                justify-content: flex-start;
            }
        }

        @media (max-width: 768px) {
            body.provider-queue-page .stats-bar {
                grid-template-columns: repeat(2, 1fr);
            }

            body.provider-queue-page .readiness-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            body.provider-queue-page .metric-grid,body.provider-queue-page
            .schedule-summary {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            body.provider-queue-page .profile-tabs {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            body.provider-queue-page .profile-main {
                padding: 16px 16px 28px;
            }

            body.provider-queue-page .profile-stack {
                position: static;
            }

            body.provider-queue-page .self-preview-frame {
                height: clamp(300px, 54vh, 500px);
            }

            body.provider-queue-page .profile-header {
                padding: 12px 16px;
                flex-wrap: wrap;
                gap: 8px;
            }

        }

        @media (max-width: 480px) {
            body.provider-queue-page .stats-bar {
                grid-template-columns: 1fr 1fr;
            }

            body.provider-queue-page .profile-summary-top,body.provider-queue-page
            .assignment-state,body.provider-queue-page
            .call-item {
                align-items: stretch;
                flex-direction: column;
            }

            body.provider-queue-page .metric-grid,body.provider-queue-page
            .schedule-form-grid,body.provider-queue-page
            .schedule-summary {
                grid-template-columns: 1fr;
            }

            body.provider-queue-page .service-chip-row {
                justify-content: flex-start;
            }

            body.provider-queue-page .stat-value {
                font-size: 24px;
            }
        }

        body.provider-queue-page .incoming-request-card { margin-bottom: 16px; }
        body.provider-queue-page .incoming-countdown,body.provider-queue-page
        .call-request-countdown {
            color: var(--iterp-amber, #ffc76f);
            font-size: 13px;
            font-weight: 700;
            margin-top: 6px;
        }
        body.provider-queue-page .call-request-countdown:empty,body.provider-queue-page
        .incoming-countdown:empty { display: none; }
        /* Answer automatically, on the offer: counting down, or why it waits. */
        body.provider-queue-page .call-request-auto-note {
            color: var(--color-text-2);
            font-size: 14px;
            font-weight: 600;
            line-height: 1.4;
        }
        /* "Answer myself": stops the countdown, keeps the offer open. */
        body.provider-queue-page .call-request-auto-stop {
            background: none;
            border: 0;
            color: inherit;
            cursor: pointer;
            font: inherit;
            margin-left: 8px;
            min-height: 24px;
            padding: 0 2px;
            text-decoration: underline;
        }
        /* Under Go available / Pause: only while the browser holds the offer
           sound or automatic answering (or its notification prompt is open). */
        body.provider-queue-page .offer-attention-hint {
            align-items: center;
            color: var(--color-text-2);
            display: flex;
            flex-wrap: wrap;
            font-size: 14px;
            gap: 8px 12px;
            line-height: 20px;
            margin: 12px 0 0;
        }
        body.provider-queue-page .offer-attention-hint[hidden],body.provider-queue-page
        .offer-attention-hint [hidden],body.provider-queue-page
        [data-offer-sound-unlock][hidden] { display: none; }
        body.provider-queue-page .readiness-grid--compact { grid-template-columns: minmax(0, 1fr); }

/* ---------- Captioning workspace (scoped external CSS) ---------- */

/*
         * The captioner workspace is a sibling of the interpreter profile, not
         * a separate product.
         *
         * It used to carry its own amber/brown identity from the captioner tab
         * of the sign-in page, with no logo anywhere and a "hero" card where
         * every other staff surface has a branded header bar. Two staff who
         * work the same calls saw two different applications.
         *
         * The palette below is the interpreter profile's, and the header is the
         * same .profile-header structure, so the two read as one product. The
         * amber accent is kept as the *accent* only — it is how a captioner
         * knows which portal they are in, and it matches the captioner tab they
         * signed in through.
         */
        :root.provider-captioning-page {
            color-scheme: dark;
            --bg: linear-gradient(135deg, #0f1724 0%, #1a2332 50%, #252f3f 100%);
            --card: rgba(255, 255, 255, 0.05);
            --border: rgba(255, 255, 255, 0.1);
            --text: #fff;
            --muted: rgba(255, 255, 255, 0.72);
            --accent: #f2b94b;
            --accent-ink: #2a1a08;
            --good: #59c98a;
            --bad: #ff8d73;
        }

        body.provider-captioning-page * {
            box-sizing: border-box;
            min-width: 0;
        }

        body.provider-captioning-page {
            margin: 0;
            min-height: 100vh;
            font-family: "Inter", "Segoe UI", sans-serif;
            background: var(--bg);
            color: var(--text);
        }

        body.provider-captioning-page .page {
            max-width: 1120px;
            margin: 0 auto;
            padding: 40px 20px 56px;
        }

        body.provider-captioning-page .shell {
            display: grid;
            gap: 20px;
        }

        body.provider-captioning-page .card {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 24px;
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            box-shadow: 0 10px 35px rgba(0, 0, 0, 0.22);
            overflow-wrap: anywhere;
        }

        /* Same structure and metrics as interpreter-profile.html, so the two
           staff surfaces share a header rather than resembling one. */
        body.provider-captioning-page .profile-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 16px 32px;
            background: rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        body.provider-captioning-page .profile-header-left {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1 1 auto;
            min-width: 0;
        }

        body.provider-captioning-page .profile-header-logo {
            max-width: 120px;
            height: auto;
        }

        /* The portal name stays in the document for anyone navigating by
           headings but off the screen, matching the client and interpreter
           headers — the page below already says which workspace this is. */
        body.provider-captioning-page .profile-header-title {
            border: 0;
            clip-path: inset(50%);
            height: 1px;
            margin: 0;
            overflow: hidden;
            padding: 0;
            position: absolute;
            white-space: nowrap;
            width: 1px;
        }

        body.provider-captioning-page .profile-header-right {
            display: flex;
            align-items: center;
            flex: 1 1 auto;
            flex-wrap: nowrap;
            gap: 16px;
            justify-content: flex-end;
            min-width: 0;
        }

        body.provider-captioning-page .profile-user-name {
            flex: 0 1 auto;
            font-size: 14px;
            min-width: 0;
            max-width: min(220px, 28vw);
            opacity: 0.7;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        body.provider-captioning-page .profile-nav-link {
            background: none;
            border: none;
            color: rgba(232, 236, 255, 0.72);
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            padding: 6px 10px;
            text-decoration: none;
            transition: color 0.2s ease;
        }

        body.provider-captioning-page .profile-nav-link:hover {
            color: #fff;
            text-decoration: underline;
        }

        body.provider-captioning-page .sign-out-link {
            color: rgba(255, 138, 128, 0.85);
        }

        body.provider-captioning-page .sign-out-link:hover {
            color: #ff8a80;
        }

        body.provider-captioning-page .hero {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 16px;
            align-items: flex-start;
        }

        body.provider-captioning-page .eyebrow {
            margin: 0 0 10px;
            color: var(--accent);
            text-transform: uppercase;
            letter-spacing: 0.12em;
            font-size: 12px;
            font-weight: 700;
        }

        /* The hero heading is an h2 now: the page's h1 is the portal name in
           the header bar, so the outline runs h1 → h2 rather than starting at
           the hero and leaving the header unlabelled. */
        body.provider-captioning-page .hero h2 {
            margin: 0 0 10px;
            font-size: clamp(24px, 3.4vw, 34px);
            line-height: 1.1;
            overflow-wrap: anywhere;
        }

        body.provider-captioning-page p {
            margin: 0;
            color: var(--muted);
            line-height: 1.55;
            overflow-wrap: anywhere;
        }

        body.provider-captioning-page .pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border-radius: 999px;
            padding: 10px 14px;
            background: rgba(242, 185, 75, 0.14);
            color: var(--accent);
            font-size: 13px;
            font-weight: 700;
            line-height: 1.25;
            max-width: 100%;
            text-align: center;
        }

        body.provider-captioning-page .pill.offline {
            background: rgba(255, 141, 115, 0.14);
            color: var(--bad);
        }

        body.provider-captioning-page .grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 16px;
        }

        body.provider-captioning-page .metric {
            padding: 18px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        body.provider-captioning-page .metric strong,body.provider-captioning-page
        .section-title {
            display: block;
            margin-bottom: 8px;
            color: var(--text);
            font-size: 15px;
        }

        body.provider-captioning-page .stack {
            display: grid;
            gap: 12px;
        }

        body.provider-captioning-page .join-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 10px;
        }

        body.provider-captioning-page .field-label {
            display: grid;
            gap: 6px;
            font-size: 13px;
            font-weight: 600;
            color: var(--text);
        }

        body.provider-captioning-page .input {
            min-width: 0;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.14);
            background: rgba(255, 255, 255, 0.06);
            color: var(--text);
            padding: 12px 14px;
            font: inherit;
        }

        body.provider-captioning-page .helper {
            font-size: 13px;
            color: var(--muted);
        }

        body.provider-captioning-page .notice {
            font-size: 13px;
            line-height: 1.45;
            min-height: 18px;
            color: var(--muted);
        }

        body.provider-captioning-page .notice.good { color: var(--good); }
        body.provider-captioning-page .notice.bad { color: var(--bad); }

        body.provider-captioning-page button,body.provider-captioning-page
        a.button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            appearance: none;
            border: none;
            border-radius: 8px;
            padding: 12px 16px;
            font: inherit;
            font-weight: 700;
            cursor: pointer;
            text-decoration: none;
            text-align: center;
        }

        body.provider-captioning-page button:disabled {
            cursor: not-allowed;
            opacity: 0.55;
        }

        body.provider-captioning-page .primary {
            background: var(--accent);
            color: var(--accent-ink);
        }

        body.provider-captioning-page .secondary {
            background: rgba(255, 255, 255, 0.07);
            color: var(--text);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        body.provider-captioning-page .small {
            padding: 8px 12px;
            font-size: 13px;
        }

        body.provider-captioning-page .identity {
            display: grid;
            gap: 6px;
        }

        body.provider-captioning-page .identity span {
            color: var(--muted);
            font-size: 14px;
        }

        body.provider-captioning-page .room-list,body.provider-captioning-page
        .session-list {
            display: grid;
            gap: 10px;
            margin: 0;
            padding: 0;
            list-style: none;
        }

        body.provider-captioning-page .room-item,body.provider-captioning-page
        .session-item {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 10px;
            align-items: center;
            padding: 12px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        body.provider-captioning-page .room-meta,body.provider-captioning-page
        .session-meta {
            display: grid;
            gap: 3px;
        }

        body.provider-captioning-page .room-title,body.provider-captioning-page
        .session-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--text);
        }

        body.provider-captioning-page .room-sub,body.provider-captioning-page
        .session-sub {
            font-size: 12px;
            color: var(--muted);
        }

        body.provider-captioning-page .empty {
            color: var(--muted);
            font-size: 13px;
            padding: 8px 0;
        }

        body.provider-captioning-page .card-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 12px;
        }

        body.provider-captioning-page .card-head .section-title {
            margin-bottom: 0;
        }

        body.provider-captioning-page .history-head,body.provider-captioning-page
        .history-actions {
            flex-wrap: wrap;
        }

        body.provider-captioning-page .history-actions {
            display: flex;
            gap: 8px;
        }

        body.provider-captioning-page .history-actions .small {
            min-height: 44px;
            white-space: nowrap;
        }

        @media (max-width: 720px) {
            body.provider-captioning-page .profile-header {
                flex-wrap: wrap;
                padding: 12px 16px;
            }

            body.provider-captioning-page .profile-header-left,body.provider-captioning-page
            .profile-header-right {
                width: 100%;
            }

            body.provider-captioning-page .profile-header-right {
                justify-content: space-between;
            }

            body.provider-captioning-page .hero {
                grid-template-columns: 1fr;
            }

            body.provider-captioning-page .pill {
                justify-self: start;
            }

            body.provider-captioning-page .join-row {
                grid-template-columns: 1fr;
            }
        }

        body.provider-captioning-page :focus-visible { outline: 3px solid #7eb8da; outline-offset: 2px; }
        @media (prefers-reduced-motion: reduce) {
            body.provider-captioning-page *,body.provider-captioning-page  *::before,body.provider-captioning-page  *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
        }

/* ---------- Jobs workspace (scoped external CSS) ---------- */

:root.provider-jobs-page {
            color-scheme: dark;
            --bg: #071119;
            --panel: rgba(255, 255, 255, 0.075);
            --panel-strong: rgba(255, 255, 255, 0.12);
            --line: rgba(255, 255, 255, 0.14);
            --muted: #9fb2bf;
            --text: #f6fbff;
            --blue: var(--tp-brt);
            --green: #63d6a4;
            --amber: #ffc76f;
            --red: #ff8d8d;
            --ink: #061018;
            --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
            --accent: #4a9eff;
        }

        body.provider-jobs-page * { box-sizing: border-box; }

        body.provider-jobs-page {
            margin: 0;
            min-height: 100vh;
            /* Everything after the first comma is the fallback, commas included,
               so the two default layers survive when no tenant palette is set. */
            background: var(--body-background,
                radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--blue) 16%, transparent), transparent 28rem),
                linear-gradient(145deg, #071119 0%, #102431 48%, #10191f 100%));
            color: var(--text);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }

        body.provider-jobs-page :focus-visible {
            outline: 3px solid var(--tp-brt);
            outline-offset: 3px;
        }

        body.provider-jobs-page button,body.provider-jobs-page  input,body.provider-jobs-page  textarea,body.provider-jobs-page  select { font: inherit; }
        body.provider-jobs-page button { border: 0; }

        body.provider-jobs-page .app-shell { min-height: 100vh; padding: 0 24px 24px; }

        body.provider-jobs-page.auth-mode .app-shell { padding-top: 0; }

        /* Managers get the full width: the shared nav (and its skip link and
           mobile toggle) only lists interpreter destinations. */
        body.provider-jobs-page.manager-mode .iterp-nav,
        body.provider-jobs-page.manager-mode .iterp-nav__toggle,
        body.provider-jobs-page.manager-mode .iterp-skip { display: none; }
        body.provider-jobs-page.manager-mode.iterp-has-nav { padding-left: 0; }
        body.provider-jobs-page.manager-mode .app-shell { padding-top: 0; }

        body.provider-jobs-page .topbar {
            align-items: center;
            display: flex;
            gap: 16px;
            justify-content: flex-end;
            margin: 0 auto 28px;
            max-width: 1240px;
            min-height: 66px;
            padding: 14px 0;
        }

        body.provider-jobs-page.auth-mode .topbar {
            margin-bottom: 0;
            min-height: 0;
            padding: 0;
        }

        body.provider-jobs-page h1 {
            color: rgba(255, 255, 255, 0.82);
            font-size: 20px;
            font-weight: 300;
            line-height: 1.1;
            margin: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        body.provider-jobs-page .top-actions {
            align-items: center;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: flex-end;
        }

        body.provider-jobs-page .account-menu { position: relative; }

        body.provider-jobs-page .account-menu__button {
            align-items: center;
            background: var(--panel-strong);
            border: 1px solid var(--line);
            border-radius: 999px;
            color: var(--text);
            cursor: pointer;
            display: inline-flex;
            font-weight: 750;
            gap: 8px;
            height: 44px;
            list-style: none;
            max-width: 220px;
            padding: 0 14px 0 16px;
        }

        body.provider-jobs-page .account-menu__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        body.provider-jobs-page .account-menu__button::after { color: var(--muted); content: '▾'; font-size: 12px; }

        body.provider-jobs-page .account-menu__button::-webkit-details-marker { display: none; }
        body.provider-jobs-page .account-menu__button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
        body.provider-jobs-page .account-menu[open] .account-menu__button { background: rgba(255, 255, 255, 0.2); }

        body.provider-jobs-page .account-menu__panel {
            background: #0d1a26;
            border: 1px solid var(--line);
            border-radius: 12px;
            box-shadow: var(--shadow);
            display: grid;
            gap: 2px;
            min-width: 220px;
            padding: 8px;
            position: absolute;
            right: 0;
            top: calc(100% + 8px);
            z-index: 30;
        }

        body.provider-jobs-page .account-menu__who {
            border-bottom: 1px solid var(--line);
            display: grid;
            gap: 2px;
            margin-bottom: 4px;
            padding: 6px 10px 10px;
        }

        body.provider-jobs-page .account-menu__who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        body.provider-jobs-page .account-menu__who span { color: var(--muted); font-size: 13px; }

        body.provider-jobs-page .account-menu__item {
            appearance: none;
            background: transparent;
            border: 0;
            border-radius: 8px;
            color: var(--text);
            cursor: pointer;
            font: inherit;
            min-height: 44px;
            padding: 0 10px;
            text-align: left;
        }

        body.provider-jobs-page .account-menu__item:hover,body.provider-jobs-page  .account-menu__item:focus-visible { background: var(--panel-strong); outline: none; }

        body.provider-jobs-page .profile-chip,body.provider-jobs-page  .ghost-link,body.provider-jobs-page  .primary-btn,body.provider-jobs-page  .quiet-btn,body.provider-jobs-page  .danger-btn {
            align-items: center;
            border-radius: 10px;
            display: inline-flex;
            font-weight: 750;
            justify-content: center;
            min-height: 40px;
            padding: 0 14px;
            text-decoration: none;
            white-space: nowrap;
        }

        body.provider-jobs-page .profile-chip {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid var(--line);
            color: var(--text);
            max-width: 260px;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        body.provider-jobs-page .ghost-link,body.provider-jobs-page  .quiet-btn {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid var(--line);
            color: var(--text);
            cursor: pointer;
            min-height: 44px;
        }

        body.provider-jobs-page .primary-btn {
            background: var(--green);
            color: var(--ink);
            cursor: pointer;
            min-height: 44px;
        }

        body.provider-jobs-page .danger-btn {
            background: rgba(255, 141, 141, 0.16);
            border: 1px solid rgba(255, 141, 141, 0.4);
            color: #ffd4d4;
            cursor: pointer;
        }

        body.provider-jobs-page .primary-btn:disabled,body.provider-jobs-page  .quiet-btn:disabled,body.provider-jobs-page  .danger-btn:disabled {
            cursor: not-allowed;
            opacity: 0.55;
        }

        /* Fields in the palette, light and dark: the border is the muted text
           colour at 60%, so a field shows on its card (WCAG 1.4.11). */
        body.provider-jobs-page .field input,body.provider-jobs-page  .field select,body.provider-jobs-page  .field textarea {
            background: var(--jx-bg);
            border: 1px solid color-mix(in srgb, var(--jx-mu) 60%, transparent);
            border-radius: 8px;
            color: var(--text);
            padding: 11px 14px;
            transition: border-color 0.15s ease, background 0.15s ease;
            width: 100%;
        }

        body.provider-jobs-page .field input:focus,body.provider-jobs-page  .field select:focus,body.provider-jobs-page  .field textarea:focus {
            background: var(--jx-bg);
            border-color: var(--accent);
            outline: none;
        }

        body.provider-jobs-page .field select option,body.provider-jobs-page  .filter-bar select option {
            background: var(--jx-sf);
            color: var(--jx-tx);
        }

        body.provider-jobs-page .login-meta {
            align-items: center;
            color: var(--muted);
            display: flex;
            font-size: 13px;
            gap: 10px;
            justify-content: space-between;
        }

        body.provider-jobs-page .login-meta label {
            align-items: center;
            display: inline-flex;
            gap: 8px;
            font-weight: 650;
            margin: 0;
        }

        /* ---- Shared app panels ---- */
        body.provider-jobs-page .layout {
            display: grid;
            gap: 18px;
            grid-template-columns: minmax(0, 1fr);
            margin: 0 auto;
            max-width: 1240px;
        }

        body.provider-jobs-page .layout.two-col {
            grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
        }

        /* Deduplicated label:value rows for the job detail — denser and more
           legible than boxed mini-tiles at any panel width. */
        body.provider-jobs-page .detail-rows { display: flex; flex-direction: column; }
        body.provider-jobs-page .detail-row {
            border-bottom: 1px solid var(--line);
            display: flex;
            gap: 16px;
            justify-content: space-between;
            padding: 9px 0;
        }
        body.provider-jobs-page .detail-row:last-child { border-bottom: none; }
        body.provider-jobs-page .detail-row-label {
            color: var(--muted);
            flex: 0 0 120px;
            font-size: 13px;
            font-weight: 400;
            padding-top: 1px;
        }
        body.provider-jobs-page .detail-row-value { flex: 1; font-size: 14px; font-weight: 500; text-align: right; }
        body.provider-jobs-page .detail-row-value .panel-subtitle { text-align: right; }

        body.provider-jobs-page .panel {
            background: var(--panel);
            border: 1px solid var(--line);
            border-radius: 12px;
            box-shadow: var(--shadow);
            overflow: hidden;
        }

        body.provider-jobs-page .panel-header {
            align-items: center;
            border-bottom: 1px solid var(--line);
            display: flex;
            gap: 14px;
            justify-content: space-between;
            padding: 16px 18px;
        }

        body.provider-jobs-page .panel-title { font-size: 17px; font-weight: 780; margin: 0; }
        body.provider-jobs-page .panel-subtitle { color: var(--muted); font-size: 13px; margin-top: 4px; }
        body.provider-jobs-page .content-pad { padding: 16px 18px 18px; }
        body.provider-jobs-page .manager-detail-status {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px 12px;
            padding: 12px 18px;
            border-bottom: 1px solid var(--line);
            color: var(--muted);
            line-height: 1.5;
            overflow-wrap: anywhere;
        }
        body.provider-jobs-page .manager-detail-status:empty { display: none; }
        body.provider-jobs-page .manager-detail-status[data-state="error"] { color: var(--red); }
        body.provider-jobs-page .manager-detail-status button { min-height: 44px; }
        body.provider-jobs-page .job-edit-recovery { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; background: var(--bg); }
        body.provider-jobs-page #mgrEditForm [hidden],body.provider-jobs-page  .manager-detail-status[hidden],body.provider-jobs-page  .job-edit-recovery[hidden],body.provider-jobs-page  .job-edit-review[hidden],body.provider-jobs-page  .job-edit-discard[hidden] { display: none; }
        body.provider-jobs-page .job-edit-recovery h2 { font-size: 17px; margin: 0 0 6px; }
        body.provider-jobs-page .job-release-notices { margin-top: 20px; }
        body.provider-jobs-page .job-release-notices h3 { margin: 0 0 8px; font-size: 18px; }
        body.provider-jobs-page .job-release-notices ul { list-style: none; padding: 0; display: grid; gap: 12px; }
        body.provider-jobs-page .job-release-notice { padding: 16px; border: 1px solid var(--line); border-radius: 12px; overflow-wrap: anywhere; }
        body.provider-jobs-page .job-release-notice p { margin: 8px 0; }
        body.provider-jobs-page .job-release-notice-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
        body.provider-jobs-page .job-release-notice button { min-height: 44px; margin-top: 8px; white-space: normal; }
        body.provider-jobs-page .job-release-notice button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
        body.provider-jobs-page .job-release-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); box-sizing: border-box; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(var(--panel), var(--panel)), var(--bg); color: var(--text); overflow: auto; }
        body.provider-jobs-page .job-release-dialog::backdrop { background: rgba(0, 0, 0, 0.48); }
        body.provider-jobs-page .job-release-dialog form { display: grid; gap: 16px; }
        body.provider-jobs-page .job-release-dialog h2,body.provider-jobs-page  .job-release-dialog p { margin: 0; overflow-wrap: anywhere; }
        body.provider-jobs-page .job-release-dialog h2 { font-size: 22px; line-height: 1.3; }
        body.provider-jobs-page .job-release-dialog textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 96px; }
        body.provider-jobs-page .job-release-dialog :is(button, textarea):focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
        body.provider-jobs-page .job-release-actions { display: flex; flex-wrap: wrap; gap: 12px; }
        body.provider-jobs-page .job-release-actions button { flex: 1 1 180px; min-height: 44px; }
        @media (max-width: 479px) { body.provider-jobs-page .job-release-dialog { padding: 16px; width: calc(100vw - 24px); } }
        body.provider-jobs-page .job-edit-recovery-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; }
        body.provider-jobs-page .job-edit-section { border-top: 1px solid var(--line); padding: 16px 0; }
        body.provider-jobs-page .job-edit-section summary { font-size: 16px; font-weight: 650; cursor: pointer; min-height: 32px; }
        body.provider-jobs-page .job-edit-section[open] summary { margin-bottom: 14px; }
        body.provider-jobs-page .job-edit-section .detail-grid { gap: 14px; }
        body.provider-jobs-page .job-edit-section .field { min-width: 0; }
        body.provider-jobs-page .panel:has(#mgrEditForm) { overflow: visible; }
        body.provider-jobs-page .job-edit-wide { grid-column: 1 / -1; }
        body.provider-jobs-page .job-edit-section textarea { min-height: 80px; resize: vertical; }
        body.provider-jobs-page .job-edit-status { line-height: 1.6; margin: 0 0 16px; }
        body.provider-jobs-page .job-edit-status[data-error="true"] { color: var(--red); }
        body.provider-jobs-page .job-edit-actions { position: sticky; top: 0; z-index: 2; background: linear-gradient(var(--panel), var(--panel)), var(--bg); padding: 12px; border-radius: 8px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
        body.provider-jobs-page .job-edit-actions button,body.provider-jobs-page  .job-edit-review button,body.provider-jobs-page  .job-edit-discard button { min-height: 44px; }
        body.provider-jobs-page .job-edit-review,body.provider-jobs-page  .job-edit-discard { padding: 16px; margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
        body.provider-jobs-page .job-edit-review h3 { font-size: 18px; margin-top: 0; }
        body.provider-jobs-page .job-edit-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
        body.provider-jobs-page .job-edit-comparison h4 { grid-column: 1 / -1; margin: 0; font-size: 14px; }
        body.provider-jobs-page .job-edit-comparison p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
        body.provider-jobs-page .job-edit-comparison label { display: flex; align-items: center; gap: 8px; min-height: 44px; }
        body.provider-jobs-page .job-edit-comparison .job-edit-choice { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 20px; }
        @media (max-width: 479px) { body.provider-jobs-page .job-edit-comparison { grid-template-columns: 1fr; } }
        body.provider-jobs-page .manager-answer-form { padding: 12px 0 16px; }
        body.provider-jobs-page .manager-answer-form textarea { min-height: 96px; resize: vertical; }
        body.provider-jobs-page .manager-answer-form button { min-height: 44px; }
        body.provider-jobs-page .offer-row button { min-height: 44px; }
        body.provider-jobs-page .manager-withdrawal-review { border-inline-start: 3px solid var(--border); padding: 8px 12px; margin-top: 8px; }
        body.provider-jobs-page .manager-withdrawal-review p { overflow-wrap: anywhere; }
        body.provider-jobs-page .manager-withdrawal-review .card-actions { display: flex; flex-wrap: wrap; gap: 8px; }




        body.provider-jobs-page .metric-row {
            display: grid;
            gap: 12px;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            margin-bottom: 16px;
        }

        body.provider-jobs-page .jobs-viewnav {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--line);
            border-radius: 12px;
            display: flex;
            gap: 4px;
            margin-bottom: 16px;
            overflow-x: auto;
            padding: 4px;
        }

        body.provider-jobs-page .jobs-viewnav button {
            align-items: center;
            appearance: none;
            background: transparent;
            border: 0;
            border-radius: 8px;
            color: var(--muted);
            cursor: pointer;
            display: inline-flex;
            flex: 0 0 auto;
            font: inherit;
            font-weight: 700;
            gap: 6px;
            min-height: 44px;
            padding: 8px 14px;
        }

        body.provider-jobs-page .jobs-viewnav button:hover { color: var(--text); }
        body.provider-jobs-page .jobs-viewnav button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
        body.provider-jobs-page .jobs-viewnav button.active { background: var(--panel-strong); color: var(--text); }

        body.provider-jobs-page .jobs-viewnav__count {
            background: var(--amber);
            border-radius: 999px;
            color: var(--ink);
            font-size: 12px;
            line-height: 1.6;
            min-width: 20px;
            padding: 0 7px;
            text-align: center;
        }

        body.provider-jobs-page .jobs-viewnav__count:empty { display: none; }

        body.provider-jobs-page .metric {
            appearance: none;
            background: var(--panel);
            border: 1px solid var(--line);
            border-radius: 10px;
            color: inherit;
            cursor: pointer;
            font: inherit;
            padding: 14px;
            text-align: left;
            width: 100%;
        }

        body.provider-jobs-page .metric:hover,body.provider-jobs-page  .metric:focus-visible {
            background: var(--panel-strong);
            border-color: var(--blue);
            outline: none;
        }

        body.provider-jobs-page .metric-value {
            color: var(--text);
            font-size: 28px;
            font-variant-numeric: tabular-nums;
            font-weight: 600;
            line-height: 1;
        }

        body.provider-jobs-page .metric-label {
            color: var(--muted);
            font-size: 11px;
            font-weight: 720;
            margin-top: 6px;
            text-transform: uppercase;
        }

        body.provider-jobs-page .segment.interpreter-nav {
            grid-template-columns: repeat(5, minmax(0, 1fr));
            margin-bottom: 16px;
        }

        /* The jobs shell always keeps its sidebar column; the detail rail
           appears as a third column only while a job or invoice is open
           (see .jobs-shell rules below). */

        body.provider-jobs-page .view-stack {
            display: grid;
            gap: 14px;
        }

        body.provider-jobs-page .today-section {
            display: grid;
            gap: 10px;
        }

        body.provider-jobs-page .section-heading {
            align-items: end;
            display: flex;
            gap: 10px;
            justify-content: space-between;
        }

        body.provider-jobs-page .section-heading h3 {
            font-size: 14px;
            font-weight: 800;
            margin: 0;
        }

        body.provider-jobs-page .section-heading span {
            color: var(--muted);
            font-size: 12px;
        }

        body.provider-jobs-page .mission-card {
            background:
                linear-gradient(135deg, rgba(99, 214, 164, 0.16), color-mix(in srgb, var(--blue) 8%, transparent));
            border: 1px solid rgba(99, 214, 164, 0.3);
            border-radius: 12px;
            cursor: pointer;
            padding: 18px;
        }

        body.provider-jobs-page .mission-card.empty {
            background: rgba(255, 255, 255, 0.05);
            border-color: var(--line);
            cursor: default;
        }

        body.provider-jobs-page .mission-kicker {
            color: #9dffc8;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.04em;
            margin-bottom: 8px;
            text-transform: uppercase;
        }

        body.provider-jobs-page .mission-title {
            font-size: 24px;
            font-weight: 820;
            line-height: 1.1;
            margin: 0;
        }

        body.provider-jobs-page .mission-meta {
            color: rgba(255, 255, 255, 0.82);
            display: grid;
            gap: 6px;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            margin-top: 14px;
        }

        body.provider-jobs-page .mission-meta strong {
            color: var(--text);
            display: block;
            font-size: 12px;
            letter-spacing: 0.04em;
            margin-bottom: 2px;
            text-transform: uppercase;
        }

        body.provider-jobs-page .mission-meta span {
            color: var(--muted);
            display: block;
            font-size: 13px;
        }

        body.provider-jobs-page .mini-list {
            display: grid;
            gap: 8px;
        }

        body.provider-jobs-page .mini-assignment {
            align-items: center;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--line);
            border-radius: 10px;
            cursor: pointer;
            display: grid;
            gap: 10px;
            grid-template-columns: minmax(0, 1fr) auto;
            padding: 12px;
        }

        body.provider-jobs-page .mini-assignment:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: color-mix(in srgb, var(--blue) 34%, transparent);
        }

        body.provider-jobs-page .mini-title {
            font-size: 14px;
            font-weight: 780;
            margin: 0 0 4px;
        }

        body.provider-jobs-page .mini-meta {
            color: var(--muted);
            display: flex;
            flex-wrap: wrap;
            font-size: 12px;
            gap: 6px 10px;
        }

        body.provider-jobs-page .signal-row {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 9px;
        }

        body.provider-jobs-page .signal-chip {
            background: var(--panel-strong);
            border: 1px solid var(--line);
            border-radius: 999px;
            color: var(--muted);
            font-size: 12px;
            font-weight: 500;
            padding: 4px 8px;
        }

        body.provider-jobs-page .signal-chip.good {
            background: color-mix(in srgb, var(--green) 14%, transparent);
            border-color: color-mix(in srgb, var(--green) 30%, transparent);
            color: var(--green);
        }

        body.provider-jobs-page .signal-chip.warn {
            background: color-mix(in srgb, var(--amber) 14%, transparent);
            border-color: color-mix(in srgb, var(--amber) 30%, transparent);
            color: var(--amber);
        }

        body.provider-jobs-page .schedule-toolbar {
            align-items: end;
            display: flex;
            gap: 14px;
            justify-content: space-between;
            margin-bottom: 14px;
        }

        body.provider-jobs-page .schedule-range {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            margin: 0;
            max-width: 280px;
            width: 100%;
        }

        body.provider-jobs-page .schedule-summary {
            color: var(--muted);
            font-size: 12px;
            line-height: 1.4;
        }

        body.provider-jobs-page .schedule-day {
            display: grid;
            gap: 8px;
        }

        body.provider-jobs-page .schedule-day + .schedule-day { margin-top: 16px; }

        body.provider-jobs-page .schedule-day-heading {
            align-items: baseline;
            border-bottom: 1px solid var(--line);
            display: flex;
            gap: 8px;
            justify-content: space-between;
            padding: 0 2px 8px;
        }

        body.provider-jobs-page .schedule-day-heading strong { font-size: 13px; }
        body.provider-jobs-page .schedule-day-heading span { color: var(--muted); font-size: 12px; }

        body.provider-jobs-page .ledger-list {
            display: grid;
            gap: 8px;
        }

        body.provider-jobs-page .ledger-row {
            align-items: center;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--line);
            border-radius: 10px;
            cursor: pointer;
            display: grid;
            gap: 12px;
            grid-template-columns: 118px minmax(0, 1fr) auto;
            padding: 12px;
            transition: border-color 0.15s ease, background 0.15s ease;
        }

        body.provider-jobs-page .ledger-row:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: color-mix(in srgb, var(--blue) 34%, transparent);
        }

        body.provider-jobs-page .ledger-date {
            color: var(--text);
            font-size: 13px;
            font-weight: 800;
            line-height: 1.25;
        }

        body.provider-jobs-page .ledger-date span {
            color: var(--muted);
            display: block;
            font-size: 12px;
            font-weight: 650;
            margin-top: 2px;
        }

        body.provider-jobs-page .ledger-title-line {
            align-items: center;
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
        }

        body.provider-jobs-page .ledger-title {
            font-size: 14px;
            font-weight: 780;
        }

        body.provider-jobs-page .ledger-meta {
            color: var(--muted);
            display: flex;
            flex-wrap: wrap;
            font-size: 12px;
            gap: 6px 10px;
            margin-top: 5px;
        }

        body.provider-jobs-page .segment {
            background: rgba(0, 0, 0, 0.18);
            border: 1px solid var(--line);
            border-radius: 10px;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            margin-bottom: 14px;
            padding: 4px;
        }

        body.provider-jobs-page .segment.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
        body.provider-jobs-page .segment.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
        body.provider-jobs-page .segment.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }

        body.provider-jobs-page .segment button {
            background: transparent;
            border-radius: 8px;
            color: var(--muted);
            cursor: pointer;
            font-weight: 750;
            min-height: 38px;
        }

        body.provider-jobs-page .segment.manager-nav {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
        }

        body.provider-jobs-page .segment.manager-nav button {
            flex: 1 0 90px;
            font-size: 14px;
            min-height: 44px;
            padding: 8px 10px;
        }

        body.provider-jobs-page .segment button.active {
            background: rgba(255, 255, 255, 0.12);
            color: var(--text);
        }

        body.provider-jobs-page .filter-bar {
            align-items: end;
            display: grid;
            gap: 10px;
            grid-template-columns: minmax(0, 1fr) auto auto;
            margin-bottom: 14px;
        }

        /* Dispatch shows what needs attention now; the rest is one click away. */
        body.provider-jobs-page #managerShell.detail-closed { grid-template-columns: minmax(0, 1fr); }
        body.provider-jobs-page #managerShell.detail-closed #mgrDetailPanel { display: none; }
        /* Beside an open job the list is narrower: the glance takes two lines. */
        body.provider-jobs-page #managerShell:not(.detail-closed) .job-row__glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }

        body.provider-jobs-page div.metric { cursor: default; }
        body.provider-jobs-page div.metric:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--line); }

        body.provider-jobs-page .segment-more,body.provider-jobs-page  .filter-more { position: relative; }
        body.provider-jobs-page .segment-more > summary,body.provider-jobs-page  .filter-more > summary { cursor: pointer; list-style: none; }
        body.provider-jobs-page .segment-more > summary::-webkit-details-marker,body.provider-jobs-page
        .filter-more > summary::-webkit-details-marker { display: none; }
        body.provider-jobs-page .segment-more > summary:focus-visible,body.provider-jobs-page
        .filter-more > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

        body.provider-jobs-page .segment-more { flex: 1 0 90px; }
        body.provider-jobs-page .segment-more > summary {
            align-items: center;
            border-radius: 8px;
            color: var(--muted);
            display: flex;
            font-weight: 750;
            justify-content: center;
            min-height: 38px;
        }
        body.provider-jobs-page .segment-more > summary::after { content: '▾'; margin-left: 6px; }
        body.provider-jobs-page .segment-more:has(button.active) > summary,body.provider-jobs-page  .segment-more[open] > summary { background: rgba(255, 255, 255, 0.12); color: var(--text); }

        body.provider-jobs-page .segment-more__menu,body.provider-jobs-page  .filter-more__fields {
            background: #0d1a26;
            border: 1px solid var(--line);
            border-radius: 12px;
            box-shadow: var(--shadow);
            position: absolute;
            top: calc(100% + 6px);
            z-index: 20;
        }
        body.provider-jobs-page .segment-more__menu { display: grid; gap: 2px; min-width: 180px; padding: 6px; right: 0; }
        body.provider-jobs-page .segment-more__menu button { min-height: 40px; padding: 0 12px; text-align: left; }

        body.provider-jobs-page .filter-more > summary {
            align-items: center;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid var(--line);
            border-radius: 10px;
            display: inline-flex;
            font-weight: 750;
            gap: 6px;
            min-height: 40px;
            padding: 0 14px;
        }
        body.provider-jobs-page .filter-more__count { background: var(--amber); border-radius: 999px; color: var(--ink); font-size: 12px; padding: 0 7px; }
        body.provider-jobs-page .filter-more__count:empty { display: none; }
        body.provider-jobs-page .filter-more__fields { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(150px, 1fr)); left: 0; padding: 12px; width: min(420px, 86vw); }

        body.provider-jobs-page .filter-bar .field { margin: 0; }
        body.provider-jobs-page .filter-bar input,body.provider-jobs-page  .filter-bar select {
            width: 100%;
        }

        body.provider-jobs-page .density-toggle {
            display: inline-flex;
            gap: 6px;
        }

        /* ---- Which side of Jobs (topbar) ---- */
        body.provider-jobs-page .topbar { justify-content: space-between; }
        body.provider-jobs-page .topbar .top-actions { margin-left: auto; }
        body.provider-jobs-page .jobs-side__label { color: var(--text); font-size: 18px; font-weight: 780; }
        body.provider-jobs-page .jobs-side__switch {
            background: rgba(0, 0, 0, 0.18);
            border: 1px solid var(--line);
            border-radius: 999px;
            display: inline-flex;
            gap: 2px;
            padding: 3px;
        }
        body.provider-jobs-page .jobs-side__switch button {
            background: transparent;
            border-radius: 999px;
            color: var(--muted);
            cursor: pointer;
            font-weight: 750;
            min-height: 38px;
            padding: 0 16px;
        }
        body.provider-jobs-page .jobs-side__switch button[aria-pressed="true"] { background: var(--panel-strong); color: var(--text); }

        /* ---- Superadmin's read-only interpreter view ---- */
        body.provider-jobs-page.interpreter-preview .iterp-nav,
        body.provider-jobs-page.interpreter-preview .iterp-nav__toggle,
        body.provider-jobs-page.interpreter-preview .iterp-skip { display: none; }
        body.provider-jobs-page.interpreter-preview.iterp-has-nav { padding-left: 0; }
        body.provider-jobs-page .preview-bar {
            align-items: end;
            border-bottom: 1px solid var(--line);
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            justify-content: space-between;
            margin-bottom: 14px;
            padding-bottom: 12px;
        }
        body.provider-jobs-page .preview-bar__pick { display: grid; gap: 4px; min-width: min(360px, 100%); }
        body.provider-jobs-page .preview-bar__pick select { min-height: 40px; }
        body.provider-jobs-page .preview-bar__mode {
            border: 1px solid rgba(255, 199, 111, 0.4);
            border-radius: 999px;
            color: var(--amber);
            font-size: 12px;
            font-weight: 780;
            padding: 5px 12px;
        }
        /* Nothing on their screens acts: moving around them is all there is. */
        body.provider-jobs-page.interpreter-preview #interpreterShell [data-action]:not([data-action="select-job"]):not([data-action^="show-more"]):not([data-action="copy-text"]):not([data-action="open-filter"]),
        body.provider-jobs-page.interpreter-preview #interpreterShell form,
        body.provider-jobs-page.interpreter-preview #interpreterShell .calendar-subscribe,
        body.provider-jobs-page.interpreter-preview #invoicePanel { display: none !important; }

        /* ---- Jobs: Overview and status tabs ---- */
        body.provider-jobs-page .board-tabs {
            border-bottom: 1px solid var(--line);
            display: flex;
            gap: 4px;
            margin-bottom: 14px;
            overflow-x: auto;
            scrollbar-width: thin;
        }
        body.provider-jobs-page .board-tabs button {
            align-items: center;
            background: transparent;
            border-bottom: 3px solid transparent;
            color: var(--muted);
            cursor: pointer;
            display: inline-flex;
            flex: 0 0 auto;
            font-weight: 750;
            gap: 8px;
            min-height: 44px;
            padding: 0 12px;
        }
        body.provider-jobs-page .board-tabs button.active { border-bottom-color: var(--blue); color: var(--text); }
        body.provider-jobs-page .board-tabs__count {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 999px;
            color: var(--text);
            font-size: 12px;
            min-width: 24px;
            padding: 1px 8px;
            text-align: center;
        }
        body.provider-jobs-page .board-tabs__count:empty { display: none; }
        body.provider-jobs-page .board-tabs__count[data-zero] { background: transparent; color: var(--muted); }

        /* Full-width rows: heading, then one at-a-glance line whose columns
           line up row to row on wide screens and stack on narrow ones. */
        body.provider-jobs-page .job-rows { display: grid; gap: 8px; }
        body.provider-jobs-page .job-row {
            background: rgba(255, 255, 255, 0.045);
            border: 1px solid var(--line);
            border-radius: 12px;
        }
        body.provider-jobs-page .job-row.selected { background: color-mix(in srgb, var(--blue) 8%, transparent); border-color: color-mix(in srgb, var(--blue) 45%, transparent); }
        body.provider-jobs-page .job-row__summary {
            align-items: center;
            display: grid;
            gap: 12px;
            grid-template-columns: minmax(0, 1fr) auto;
            padding: 10px 12px 10px 4px;
        }
        body.provider-jobs-page .job-row__toggle {
            background: transparent;
            border-radius: 10px;
            color: inherit;
            cursor: pointer;
            display: grid;
            gap: 6px;
            min-width: 0;
            padding: 6px 10px;
            text-align: left;
        }
        body.provider-jobs-page .job-row__toggle:hover { background: rgba(255, 255, 255, 0.04); }
        body.provider-jobs-page .job-row__heading {
            align-items: center;
            display: flex;
            flex-wrap: wrap;
            gap: 6px 10px;
            min-width: 0;
        }
        body.provider-jobs-page .job-row__title { font-size: 15px; font-weight: 780; overflow-wrap: anywhere; }
        body.provider-jobs-page .job-row__number { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
        body.provider-jobs-page .job-row__heading::after { color: var(--muted); content: '▾'; font-size: 16px; line-height: 1; margin-left: auto; }
        body.provider-jobs-page .job-row.expanded .job-row__heading::after { content: '▴'; }
        body.provider-jobs-page .job-row__heading .badge,
        body.provider-jobs-page .job-row__heading .signal-chip { line-height: 1.2; white-space: nowrap; }
        body.provider-jobs-page .job-row__glance {
            align-items: center;
            color: var(--muted);
            display: grid;
            font-size: 13px;
            gap: 4px 16px;
            grid-template-columns: minmax(210px, 1.2fr) minmax(0, 1fr) minmax(120px, 0.7fr) 150px;
        }
        body.provider-jobs-page .glance { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        body.provider-jobs-page .glance--when { color: var(--text); font-variant-numeric: tabular-nums; }
        body.provider-jobs-page .glance--status { text-align: right; }
        body.provider-jobs-page .job-row__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
        body.provider-jobs-page .job-row__more { border-top: 1px solid var(--line); padding: 12px 14px 14px; }
        body.provider-jobs-page .row-facts {
            display: grid;
            gap: 12px 20px;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            margin: 0;
        }
        body.provider-jobs-page .row-facts dt { color: var(--muted); font-size: 11px; font-weight: 780; letter-spacing: 0.04em; margin-bottom: 4px; text-transform: uppercase; }
        body.provider-jobs-page .row-facts dd { display: grid; font-size: 13px; gap: 3px; margin: 0; overflow-wrap: anywhere; }
        body.provider-jobs-page .row-facts__key { color: var(--muted); }
        body.provider-jobs-page .job-row__more-actions { display: flex; gap: 8px; margin-top: 12px; }
        body.provider-jobs-page .list-window-more { align-items: center; display: flex; gap: 12px; justify-content: center; padding: 8px 0; }
        body.provider-jobs-page .list-window-count { color: var(--muted); font-size: 13px; }

        /* Autofill: its buttons show only when there is a match to use. */
        body.provider-jobs-page #mgrSmartBox .command-row:not(:has(button:enabled)) { display: none; }

        /* Job detail: the next step, Edit, and everything else under More. */
        body.provider-jobs-page .detail-actions { align-items: center; flex-wrap: wrap; }
        body.provider-jobs-page .action-more { position: relative; }
        body.provider-jobs-page .action-more > summary,body.provider-jobs-page  .detail-more > summary { cursor: pointer; list-style: none; }
        body.provider-jobs-page .action-more > summary::-webkit-details-marker,body.provider-jobs-page  .detail-more > summary::-webkit-details-marker { display: none; }
        body.provider-jobs-page .action-more > summary {
            align-items: center;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid var(--line);
            border-radius: 10px;
            display: inline-flex;
            font-weight: 700;
            min-height: 40px;
            padding: 0 14px;
        }
        body.provider-jobs-page .action-more > summary::after { content: '▾'; margin-left: 6px; }
        body.provider-jobs-page .action-more__menu {
            background: #0d1a26;
            border: 1px solid var(--line);
            border-radius: 12px;
            box-shadow: var(--shadow);
            display: grid;
            gap: 2px;
            left: 0;
            min-width: 230px;
            padding: 6px;
            position: absolute;
            top: calc(100% + 6px);
            z-index: 20;
        }
        body.provider-jobs-page .action-more__menu > * { justify-content: flex-start; text-align: left; width: 100%; }
        body.provider-jobs-page .detail-more > summary { color: var(--muted); font-weight: 700; padding: 6px 0; }
        body.provider-jobs-page .detail-more > summary::before { content: '▸ '; }
        body.provider-jobs-page .detail-more[open] > summary::before { content: '▾ '; }

        /* To do (the Overview): one list of what needs the manager, each row
           with its one next step, then the days ahead. */
        body.provider-jobs-page .overview { display: grid; gap: 16px; grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); }
        @media (max-width: 1100px) { body.provider-jobs-page .overview { grid-template-columns: minmax(0, 1fr); } }
        /* With a job open beside it, the list has half the width: one column. */
        body.provider-jobs-page #managerShell:not(.detail-closed) .overview { grid-template-columns: minmax(0, 1fr); }
        body.provider-jobs-page .todo,body.provider-jobs-page  .upcoming {
            align-content: start;
            background: rgba(255, 255, 255, 0.045);
            border: 1px solid var(--line);
            border-radius: 12px;
            display: grid;
            gap: 8px;
            min-width: 0;
            padding: 12px;
        }
        body.provider-jobs-page .todo__head { align-items: baseline; display: flex; gap: 10px; }
        body.provider-jobs-page .todo__head h3 { font-size: 15px; font-weight: 780; margin: 0; }
        body.provider-jobs-page .todo__count { font-size: 15px; font-variant-numeric: tabular-nums; font-weight: 780; }
        body.provider-jobs-page .todo__count[data-zero] { color: var(--muted); font-weight: 500; }
        body.provider-jobs-page .todo-stat {
            background: transparent;
            border-radius: 6px;
            color: var(--muted);
            cursor: pointer;
            font-size: 13px;
            margin-left: auto;
            padding: 2px 6px;
        }
        body.provider-jobs-page .todo-stat:hover { color: var(--text); }
        body.provider-jobs-page .todo-list { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
        body.provider-jobs-page .todo-row {
            align-items: center;
            border-top: 1px solid var(--line);
            display: grid;
            gap: 4px 12px;
            grid-template-columns: minmax(0, 1fr) auto auto;
            padding-top: 6px;
        }
        body.provider-jobs-page .todo-row:first-child { border-top: 0; padding-top: 0; }
        body.provider-jobs-page .todo-row__main {
            background: transparent;
            border-radius: 8px;
            color: inherit;
            cursor: pointer;
            display: grid;
            font-size: 13px;
            gap: 2px;
            min-width: 0;
            padding: 6px;
            text-align: left;
        }
        body.provider-jobs-page .todo-row__main:hover { background: rgba(255, 255, 255, 0.05); }
        body.provider-jobs-page .todo-row__when { color: var(--muted); font-variant-numeric: tabular-nums; }
        body.provider-jobs-page .todo-row__when:empty,body.provider-jobs-page  .todo-row__meta:empty { display: none; }
        body.provider-jobs-page .todo-row__title { font-size: 14px; font-weight: 740; overflow-wrap: anywhere; }
        body.provider-jobs-page .todo-row__meta { color: var(--muted); overflow-wrap: anywhere; }
        body.provider-jobs-page .todo-row__why { color: var(--amber, #f5c26b); font-size: 13px; font-weight: 700; white-space: nowrap; }
        body.provider-jobs-page .todo-row__action .primary-btn { white-space: nowrap; }
        @media (max-width: 640px) {
            body.provider-jobs-page .todo-row { grid-template-columns: minmax(0, 1fr) auto; }
            body.provider-jobs-page .todo-row__why { grid-column: 1; padding-left: 6px; }
            body.provider-jobs-page .todo-row__action { grid-column: 2; grid-row: 1 / span 2; }
        }
        body.provider-jobs-page .upcoming-days { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
        body.provider-jobs-page .upcoming-day h4 { color: var(--muted); font-size: 12px; font-weight: 780; letter-spacing: 0.04em; margin: 0 0 2px 6px; text-transform: uppercase; }
        body.provider-jobs-page .overview-list { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
        body.provider-jobs-page .overview-item {
            align-items: center;
            background: transparent;
            border-radius: 8px;
            color: inherit;
            cursor: pointer;
            display: grid;
            font-size: 13px;
            gap: 2px 10px;
            grid-template-areas: "when title status" "when meta status";
            grid-template-columns: 88px minmax(0, 1fr) auto;
            padding: 6px;
            text-align: left;
            width: 100%;
        }
        body.provider-jobs-page .overview-item:hover { background: rgba(255, 255, 255, 0.05); }
        body.provider-jobs-page .overview-item__when { color: var(--muted); font-variant-numeric: tabular-nums; grid-area: when; white-space: nowrap; }
        body.provider-jobs-page .overview-item__title { align-items: center; display: flex; font-weight: 720; gap: 6px; grid-area: title; min-width: 0; }
        body.provider-jobs-page .overview-item__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        body.provider-jobs-page .overview-item__title .signal-chip { flex-shrink: 0; }
        body.provider-jobs-page .overview-item__meta { color: var(--muted); grid-area: meta; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        body.provider-jobs-page .overview-item__status { grid-area: status; }

        /* The Week grid's columns (the status board is rows now), scrolling
           sideways rather than wrapping a day onto a second row. */
        body.provider-jobs-page .kanban {
            display: grid;
            gap: 12px;
            grid-auto-columns: minmax(220px, 1fr);
            grid-auto-flow: column;
            overflow-x: auto;
            padding-bottom: 4px;
        }

        /* The week keeps all seven days on one row at every width. */
        body.provider-jobs-page .kanban.kanban-week {
            grid-auto-flow: row;
            grid-template-columns: repeat(7, minmax(120px, 1fr));
        }

        body.provider-jobs-page .kanban-col {
            background: rgba(0, 0, 0, 0.16);
            border: 1px solid var(--line);
            border-radius: 12px;
            min-height: 180px;
            padding: 10px;
        }

        body.provider-jobs-page .kanban-col-header {
            align-items: center;
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
        }

        body.provider-jobs-page .kanban-col-title {
            font-size: 12px;
            font-weight: 780;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        body.provider-jobs-page .kanban-count {
            background: rgba(255, 255, 255, 0.08);
            border-radius: 999px;
            color: var(--muted);
            font-size: 11px;
            font-weight: 750;
            padding: 2px 8px;
        }

        /* Rendered as native <button>s so keyboard activation comes free;
           these resets keep them looking like cards, not buttons. */
        body.provider-jobs-page .kanban-card {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid var(--line);
            border-radius: 10px;
            color: inherit;
            cursor: pointer;
            display: block;
            font: inherit;
            margin-bottom: 8px;
            padding: 10px;
            text-align: left;
            width: 100%;
        }

        body.provider-jobs-page .kanban-card.selected,body.provider-jobs-page  tr.selected {
            border-color: color-mix(in srgb, var(--blue) 45%, transparent);
            background: color-mix(in srgb, var(--blue) 10%, transparent);
        }

        body.provider-jobs-page .kanban-card strong { display: block; font-size: 13px; }
        body.provider-jobs-page .kanban-card .meta {
            color: var(--muted);
            font-size: 12px;
            margin-top: 4px;
        }

        body.provider-jobs-page .profile-stat-grid {
            display: grid;
            gap: 10px;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            margin-bottom: 14px;
        }

        body.provider-jobs-page .smart-box {
            background: var(--panel);
            border-radius: 14px;
            margin-bottom: 8px;
            padding: 12px 14px;
        }

        body.provider-jobs-page .smart-hint {
            color: var(--muted);
            font-size: 13px;
            line-height: 1.4;
            margin-bottom: 10px;
        }

        body.provider-jobs-page .suggest-list { display: grid; gap: 8px; }

        body.provider-jobs-page .suggest-item {
            align-items: center;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--line);
            border-radius: 10px;
            cursor: pointer;
            display: flex;
            gap: 10px;
            justify-content: space-between;
            padding: 10px 12px;
            text-align: left;
            width: 100%;
        }

        body.provider-jobs-page .suggest-item:hover,body.provider-jobs-page  .suggest-item.active {
            background: color-mix(in srgb, var(--blue) 12%, transparent);
            border-color: color-mix(in srgb, var(--blue) 40%, transparent);
        }

        body.provider-jobs-page .suggest-item strong { display: block; font-size: 14px; }
        body.provider-jobs-page .suggest-item span {
            color: var(--muted);
            display: block;
            font-size: 12px;
            margin-top: 2px;
        }

        body.provider-jobs-page .affinity-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 10px;
        }

        body.provider-jobs-page .affinity-chip {
            background: rgba(99, 214, 164, 0.14);
            border: 1px solid rgba(99, 214, 164, 0.35);
            border-radius: 999px;
            color: #9dffc8;
            font-size: 11px;
            font-weight: 750;
            padding: 4px 9px;
            text-transform: capitalize;
        }

        /* Open jobs: the sort and filter row (2 or more open jobs). */
        body.provider-jobs-page .open-controls {
            align-items: center;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        body.provider-jobs-page .open-controls select {
            background: var(--panel);
            border: 1px solid var(--line);
            border-radius: 8px;
            color: var(--text);
            cursor: pointer;
            font-weight: 750;
            min-height: 44px;
            padding: 0 12px;
        }

        body.provider-jobs-page .open-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        body.provider-jobs-page .open-filter {
            background: transparent;
            border: 1px solid var(--line);
            border-radius: 999px;
            color: var(--muted);
            cursor: pointer;
            font-weight: 750;
            min-height: 44px;
            min-width: 44px;
            padding: 0 16px;
        }

        body.provider-jobs-page .open-filter[aria-pressed="true"] {
            background: var(--panel-strong);
            border-color: var(--accent);
            color: var(--text);
        }

        body.provider-jobs-page .list { display: grid; gap: 12px; }

        body.provider-jobs-page .job-card,body.provider-jobs-page  .mgr-card {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--line);
            border-radius: 12px;
            cursor: pointer;
            padding: 14px;
            transition: border-color 0.15s ease, background 0.15s ease;
        }

        body.provider-jobs-page .job-card:hover,body.provider-jobs-page  .mgr-card:hover,body.provider-jobs-page  .job-card.is-featured {
            background: rgba(255, 255, 255, 0.08);
            border-color: color-mix(in srgb, var(--blue) 35%, transparent);
        }

        body.provider-jobs-page .job-topline {
            align-items: flex-start;
            display: flex;
            gap: 10px;
            justify-content: space-between;
        }

        body.provider-jobs-page .job-title { font-size: 16px; font-weight: 760; margin: 0; }
        body.provider-jobs-page .job-title-action {
            background: none;
            border: 0;
            color: inherit;
            cursor: pointer;
            font: inherit;
            padding: 0;
            text-align: left;
        }
        body.provider-jobs-page .job-title-action:hover { text-decoration: underline; }
        body.provider-jobs-page .job-title-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
        /* Grey is the fallback for a status the shared table has never heard
           of. A known status gets its tone from .status-tone-* below, so an
           interpreter sees the same colour for "completed" that an admin does.
           See docs/status-colour-sop.md. */
        body.provider-jobs-page .badge {
            background: var(--status-neutral-soft);
            border: 0;
            border-radius: 8px;
            color: var(--status-neutral-text);
            font-size: 12px;
            font-weight: 500;
            padding: 3px 8px;
            white-space: nowrap;
        }

        /* Same seven tones as the admin dashboard (css/mcg-theme-tokens.css),
           so light and dark each get their own: orange is the warning tone,
           blue the info tone, as in admin-shell.css. A Jobs row pill
           (.jx-pill, statusPill) takes the same tones. The status text is
           always rendered inside the badge — colour reinforces, never replaces. */
        body.provider-jobs-page .jx-pill.status-tone-orange,
        body.provider-jobs-page .badge.status-tone-orange { background: var(--status-warning-soft); color: var(--status-warning-text); }
        body.provider-jobs-page .jx-pill.status-tone-blue,
        body.provider-jobs-page .badge.status-tone-blue { background: var(--status-info-soft); color: var(--status-info-text); }
        body.provider-jobs-page .jx-pill.status-tone-purple,
        body.provider-jobs-page .badge.status-tone-purple { background: var(--status-purple-soft); color: var(--status-purple-text); }
        body.provider-jobs-page .jx-pill.status-tone-green,
        body.provider-jobs-page .badge.status-tone-green { background: var(--status-success-soft); color: var(--status-success-text); }
        body.provider-jobs-page .jx-pill.status-tone-indigo,
        body.provider-jobs-page .badge.status-tone-indigo { background: var(--status-indigo-soft); color: var(--status-indigo-text); }
        body.provider-jobs-page .jx-pill.status-tone-grey,
        body.provider-jobs-page .badge.status-tone-grey { background: var(--status-neutral-soft); color: var(--status-neutral-text); }
        body.provider-jobs-page .jx-pill.status-tone-red,
        body.provider-jobs-page .badge.status-tone-red { background: var(--status-danger-soft); color: var(--status-danger-text); }

        body.provider-jobs-page .job-meta {
            color: var(--muted);
            display: flex;
            flex-wrap: wrap;
            font-size: 13px;
            gap: 8px 12px;
            margin-top: 10px;
        }

        /* Small print that must survive being small print: readable weight, a
           left rule so it reads as a standing condition rather than one job's
           note, and no colour so low it becomes decoration. */
        /* Sits at the end of a long list: says how much is on screen, and offers
           the rest. Centred so it reads as a boundary rather than another row. */
        body.provider-jobs-page .list-window-more {
            align-items: center;
            display: flex;
            gap: 12px;
            justify-content: center;
            padding: 14px 8px;
        }

        body.provider-jobs-page .list-window-count {
            color: var(--muted);
            font-size: 12.5px;
        }

        body.provider-jobs-page td .list-window-more { padding: 4px 0; }

        body.provider-jobs-page .calendar-subscribe {
            border-top: 1px solid var(--line);
            margin-top: 14px;
            padding-top: 14px;
        }

        body.provider-jobs-page .calendar-subscribe input {
            font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
            font-size: 12px;
            margin: 8px 0;
            width: 100%;
        }

        body.provider-jobs-page .legal-note {
            border-left: 2px solid rgba(255, 255, 255, 0.18);
            color: rgba(255, 255, 255, 0.72);
            font-size: 12.5px;
            line-height: 1.5;
            /* A grid item in .list — the container's gap is the spacing. */
            margin: 0;
            padding: 2px 0 2px 10px;
        }

        body.provider-jobs-page .job-notes {
            color: rgba(255, 255, 255, 0.82);
            font-size: 13px;
            line-height: 1.45;
            margin: 10px 0 0;
        }

        body.provider-jobs-page .job-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 12px;
        }

        /* The mode as a word in a neutral pill, like a row pill: the word
           carries it, so no colour per mode. */
        body.provider-jobs-page .service-pill {
            background: var(--panel-strong);
            border: 0;
            border-radius: 8px;
            color: var(--text);
            font-size: 12px;
            font-weight: 500;
            padding: 3px 8px;
        }

        body.provider-jobs-page .notice {
            background: color-mix(in srgb, var(--blue) 10%, transparent);
            border: 1px solid color-mix(in srgb, var(--blue) 28%, transparent);
            border-radius: 10px;
            margin-bottom: 14px;
            padding: 12px 14px;
        }

        body.provider-jobs-page .empty-state {
            color: var(--muted);
            font-size: 14px;
            line-height: 1.45;
            padding: 22px 8px;
            text-align: center;
        }

        body.provider-jobs-page .detail-grid {
            display: grid;
            gap: 10px 12px;
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        body.provider-jobs-page .detail-item {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--line);
            border-radius: 10px;
            padding: 12px;
        }

        body.provider-jobs-page .detail-label {
            color: var(--muted);
            font-size: 13px;
            font-weight: 400;
        }

        body.provider-jobs-page .detail-value { font-size: 14px; font-weight: 500; margin-top: 4px; }

        body.provider-jobs-page .detail-section {
            background: rgba(255, 255, 255, 0.045);
            border: 1px solid var(--line);
            border-radius: 12px;
            margin-bottom: 12px;
            padding: 14px;
        }

        body.provider-jobs-page .detail-section h3 {
            font-size: 15px;
            font-weight: 600;
            margin: 0 0 10px;
        }

        body.provider-jobs-page .detail-summary {
            margin-bottom: 12px;
        }

        body.provider-jobs-page .profile-grid {
            display: grid;
            gap: 12px;
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        body.provider-jobs-page .form-grid {
            display: grid;
            gap: 12px;
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        body.provider-jobs-page .field.wide,body.provider-jobs-page  .form-grid .wide { grid-column: 1 / -1; }

        /* Dispatch is a typing job: the section a coordinator needs for the
           common booking stays open, everything else folds away until the
           assignment actually carries it. */
        body.provider-jobs-page .form-section {
            border: 1px solid var(--line);
            border-radius: 12px;
            grid-column: 1 / -1;
            padding: 0;
        }
        body.provider-jobs-page .form-section > summary {
            cursor: pointer;
            font-size: 13px;
            font-weight: 700;
            list-style: none;
            padding: 10px 12px;
            user-select: none;
        }
        body.provider-jobs-page .form-section > summary::-webkit-details-marker { display: none; }
        body.provider-jobs-page .form-section > summary::before {
            content: '▸';
            display: inline-block;
            margin-right: 8px;
            transition: transform 120ms ease;
        }
        body.provider-jobs-page .form-section[open] > summary::before { transform: rotate(90deg); }
        body.provider-jobs-page .form-section > summary .section-hint {
            color: var(--muted);
            font-weight: 500;
            margin-left: 8px;
        }
        body.provider-jobs-page .form-section .section-body {
            border-top: 1px solid var(--line);
            display: grid;
            gap: 12px;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            padding: 12px;
        }
        body.provider-jobs-page .form-section .section-body .wide { grid-column: 1 / -1; }

        body.provider-jobs-page .chip-row {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 6px;
        }
        body.provider-jobs-page .chip {
            align-items: center;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid var(--line);
            border-radius: 999px;
            display: inline-flex;
            font-size: 12px;
            gap: 6px;
            padding: 3px 10px;
        }
        body.provider-jobs-page .chip button {
            background: none;
            border: 0;
            color: var(--muted);
            cursor: pointer;
            font-size: 13px;
            line-height: 1;
            padding: 0;
        }
        body.provider-jobs-page .chip.suggestion { cursor: pointer; opacity: 0.75; }
        body.provider-jobs-page .chip.suggestion:hover { opacity: 1; }
        /* Advisory TypeSafe judgments: triage on client requests, intent on inbound texts. */
        body.provider-jobs-page .chip-warn { border-color: rgba(250, 204, 21, 0.6); background: rgba(250, 204, 21, 0.12); }
        body.provider-jobs-page .chip-danger { border-color: rgba(248, 113, 113, 0.7); background: rgba(248, 113, 113, 0.14); }

        body.provider-jobs-page .repeater-row {
            align-items: end;
            display: grid;
            gap: 8px;
            grid-column: 1 / -1;
            grid-template-columns: 1.4fr 1fr 1fr 1.6fr auto;
        }
        body.provider-jobs-page .rate-preview {
            color: var(--muted);
            font-size: 12px;
            grid-column: 1 / -1;
        }
        body.provider-jobs-page .roster-row {
            align-items: center;
            border: 1px solid var(--line);
            border-radius: 10px;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: space-between;
            margin-bottom: 8px;
            padding: 8px 10px;
        }
        body.provider-jobs-page .slot-empty {
            border-style: dashed;
            color: var(--muted);
        }

        @media (max-width: 720px) {
            body.provider-jobs-page .form-section .section-body { grid-template-columns: 1fr; }
            body.provider-jobs-page .repeater-row { grid-template-columns: 1fr; }
        }
        body.provider-jobs-page .field label {
            color: var(--muted);
            display: block;
            font-size: 12px;
            font-weight: 700;
            margin-bottom: 6px;
        }
        body.provider-jobs-page .field label .field-hint { font-weight: 400; }
        body.provider-jobs-page textarea { min-height: 84px; resize: vertical; }

        body.provider-jobs-page .command-row {
            align-items: center;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: space-between;
            margin-top: 12px;
        }

        body.provider-jobs-page .table-wrap { overflow: auto; }
        body.provider-jobs-page table {
            border-collapse: collapse;
            width: 100%;
        }
        body.provider-jobs-page th,body.provider-jobs-page  td {
            border-bottom: 1px solid var(--line);
            font-size: 13px;
            padding: 10px 8px;
            text-align: left;
            vertical-align: top;
        }
        body.provider-jobs-page th { color: var(--muted); font-size: 11px; text-transform: uppercase; }
        body.provider-jobs-page tr.selected { background: color-mix(in srgb, var(--blue) 8%, transparent); }

        body.provider-jobs-page .hidden { display: none !important; }

        @media (max-width: 960px) {
            body.provider-jobs-page .layout.two-col,body.provider-jobs-page  .form-grid,body.provider-jobs-page  .detail-grid,body.provider-jobs-page  .mission-meta,body.provider-jobs-page  .profile-grid { grid-template-columns: 1fr; }
            body.provider-jobs-page .segment,body.provider-jobs-page  .segment.four,body.provider-jobs-page  .segment.five,body.provider-jobs-page  .segment.six { grid-template-columns: 1fr 1fr; }
            body.provider-jobs-page .interpreter-nav { grid-template-columns: 1fr 1fr; }
            body.provider-jobs-page .filter-bar { grid-template-columns: 1fr; }
            body.provider-jobs-page .topbar { align-items: stretch; flex-direction: column; }
            /* One account button: keep it at the right, clear of the ☰ nav
               toggle, so its right-anchored menu opens on screen. */
            body.provider-jobs-page .top-actions { justify-content: flex-end; }
        }

        @media (max-width: 720px) {
            body.provider-jobs-page .app-shell { padding: 0 12px 16px; }
            body.provider-jobs-page .topbar { margin-bottom: 12px; }
            body.provider-jobs-page .metric { padding: 10px; }
            body.provider-jobs-page .metric-value { font-size: 22px; }
            /* Rows stack: heading, each glance on its own line, then the action. */
            body.provider-jobs-page .job-row__summary { grid-template-columns: 1fr; padding: 8px 8px 10px; }
            body.provider-jobs-page .job-row__glance { grid-template-columns: 1fr; }
            body.provider-jobs-page .glance { white-space: normal; }
            body.provider-jobs-page .glance--status { text-align: left; }
            body.provider-jobs-page .job-row__actions { justify-content: flex-start; padding: 0 10px; }
            body.provider-jobs-page .jobs-side__switch { display: flex; }
            body.provider-jobs-page .jobs-side__switch button { flex: 1 1 0; }
            body.provider-jobs-page:not(.auth-mode) #interpreterShell .content-pad { padding-bottom: 92px; }
            body.provider-jobs-page:not(.auth-mode) #interpreterShell .interpreter-nav {
                backdrop-filter: blur(18px);
                background: rgba(8, 20, 30, 0.92);
                bottom: 12px;
                box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
                grid-template-columns: repeat(5, minmax(0, 1fr));
                left: 12px;
                margin: 0;
                position: fixed;
                right: 12px;
                z-index: 30;
            }

            body.provider-jobs-page:not(.auth-mode) #interpreterShell .interpreter-nav button {
                font-size: 12px;
                min-height: 46px;
                padding: 0 4px;
            }

            body.provider-jobs-page .ledger-row {
                align-items: stretch;
                grid-template-columns: 1fr;
            }

            body.provider-jobs-page .ledger-row .job-actions {
                margin-top: 0;
            }

            body.provider-jobs-page .schedule-toolbar {
                align-items: stretch;
                flex-direction: column;
            }

            body.provider-jobs-page .schedule-range { max-width: none; }
        }

        /* ── Jobs app shell: sidebar + content + detail rail ─────────── */
        body.provider-jobs-page .jobs-shell {
            display: grid;
            gap: 20px;
            grid-template-columns: minmax(0, 1fr);
            align-items: start;
            margin: 0 auto;
            max-width: 1440px;
            padding: 18px 22px 40px;
            width: 100%;
        }

        /* List + detail rail. The board's own sidebar column is gone (the
           shared interpreter nav replaced it), so only two tracks remain. */
        body.provider-jobs-page .jobs-shell.detail-open {
            grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
        }

        body.provider-jobs-page .jobs-sync-status {
            color: var(--muted);
            font-size: 12px;
            margin-bottom: 10px;
        }

        body.provider-jobs-page .jobs-sidebar {
            background: var(--panel);
            border: 1px solid var(--line);
            border-radius: 16px;
            display: flex;
            flex-direction: column;
            gap: 18px;
            padding: 18px 14px;
            position: sticky;
            top: 14px;
        }

        body.provider-jobs-page .jobs-brand {
            align-items: center;
            display: flex;
            gap: 10px;
            padding: 2px 8px;
        }

        body.provider-jobs-page .jobs-brand img { height: 34px; max-width: 132px; object-fit: contain; width: auto; }
        body.provider-jobs-page .jobs-brand-name { font-size: 15px; font-weight: 800; }
        body.provider-jobs-page .jobs-brand-sub { color: var(--muted); font-size: 11px; }

        body.provider-jobs-page .jobs-nav { display: flex; flex-direction: column; gap: 4px; }

        body.provider-jobs-page .jobs-nav button {
            align-items: center;
            background: none;
            border: none;
            border-radius: 10px;
            color: var(--muted);
            cursor: pointer;
            display: flex;
            font-size: 14px;
            font-weight: 600;
            gap: 10px;
            padding: 10px 12px;
            text-align: left;
            transition: background 0.15s ease, color 0.15s ease;
            width: 100%;
        }

        body.provider-jobs-page .jobs-nav button:hover { background: var(--panel-strong); color: var(--text); }

        body.provider-jobs-page .jobs-nav button.active {
            background: var(--accent);
            color: var(--ink);
        }

        body.provider-jobs-page .jobs-nav-icon { font-size: 15px; width: 18px; }

        body.provider-jobs-page .jobs-sidebar-foot { border-top: 1px solid var(--line); margin-top: auto; padding: 12px 8px 2px; }
        body.provider-jobs-page .jobs-foot-link { color: var(--muted); font-size: 13px; text-decoration: none; }
        body.provider-jobs-page .jobs-foot-link:hover { color: var(--text); text-decoration: underline; }

        body.provider-jobs-page .jobs-main {
            background: var(--panel);
            border: 1px solid var(--line);
            border-radius: 16px;
            min-width: 0;
            padding: 22px;
        }

        @media (max-width: 980px) {
            body.provider-jobs-page .jobs-shell,body.provider-jobs-page
            .jobs-shell.detail-open { grid-template-columns: 1fr; }

            /* One column: the job detail opens as a bottom sheet over the
               list instead of landing below it. It stays under the status
               toast (z-index 20) so action results remain visible, and
               Close / Escape dismiss it. */
            body.provider-jobs-page .jobs-shell.detail-open #jobDetailPanel:not(.hidden) {
                background: linear-gradient(var(--panel-strong), var(--panel-strong)), var(--bg);
                border-radius: 16px 16px 0 0;
                bottom: 0;
                left: 0;
                max-height: 85vh;
                max-height: 85dvh;
                overflow-y: auto;
                overscroll-behavior: contain;
                padding-bottom: env(safe-area-inset-bottom, 0px);
                position: fixed;
                right: 0;
                z-index: 15;
            }

            body.provider-jobs-page .jobs-sidebar { position: static; }

            body.provider-jobs-page .jobs-nav { display: grid; gap: 6px; grid-template-columns: repeat(3, 1fr); }
            body.provider-jobs-page .jobs-nav button { justify-content: center; padding: 9px 6px; }
            body.provider-jobs-page .jobs-nav-icon { display: none; }
            body.provider-jobs-page .jobs-sidebar-foot { display: none; }
        }

/* ---------- Jobs redesign (2026-10-29): one family with MalkaVRI v2 and Malka Terp ----------
   Tokens by brand and mode. Malka dark: navy-black, orange main buttons with
   navy text. Malka light: light grey, the same orange. Maple dark: near-black,
   white main buttons, Maple red for the brand. Maple light: white, black main
   buttons. The appearance control (System, Light, Dark) sets data-theme; the
   tenant runtime sets data-tenant. The older variable names follow the tokens,
   so every existing part of the page changes with them. */
:root.provider-jobs-page {
    color-scheme: dark;
    --jx-bg: #0A0A1A; --jx-sf: #17192C; --jx-sf2: #22253A; --jx-tx: #F4F4F7; --jx-mu: #A6A9BA;
    --jx-ac: #F47D22; --jx-onac: #0D1A38; --jx-ln: #2B2E45; --jx-brand: #F47D22;
    --jx-ok: #8FD14F; --jx-wa: #F4B740; --jx-bad: #FF6B6B;
}
:root.provider-jobs-page[data-theme="light"] {
    color-scheme: light;
    --jx-bg: #F7F7FA; --jx-sf: #FFFFFF; --jx-sf2: #E9EBF1; --jx-tx: #0D1A38; --jx-mu: #5B6078;
    --jx-ln: #DDE0E8; --jx-ok: #2E7D32; --jx-wa: #9A6100; --jx-bad: #C62828;
}
:root.provider-jobs-page[data-tenant="maple"] {
    --jx-bg: #0B0B0B; --jx-sf: #1B1B1B; --jx-sf2: #2A2A2A; --jx-tx: #F5F5F5; --jx-mu: #B3B3B3;
    --jx-ac: #FFFFFF; --jx-onac: #0B0B0B; --jx-ln: #303030; --jx-brand: #E00000;
}
:root.provider-jobs-page[data-tenant="maple"][data-theme="light"] {
    --jx-bg: #FFFFFF; --jx-sf: #F3F3F3; --jx-sf2: #E4E4E4; --jx-tx: #0B0B0B; --jx-mu: #5E5E5E;
    --jx-ac: #0B0B0B; --jx-onac: #FFFFFF; --jx-ln: #E0E0E0; --jx-brand: #A90000;
}
:root.provider-jobs-page {
    --bg: var(--jx-bg); --panel: var(--jx-sf); --panel-strong: var(--jx-sf2); --line: var(--jx-ln);
    --muted: var(--jx-mu); --text: var(--jx-tx); --accent: var(--jx-ac); --accent-strong: var(--jx-ac);
    --green: var(--jx-ok); --amber: var(--jx-wa); --red: var(--jx-bad); --ink: var(--jx-onac);
    --body-background: var(--jx-bg); --shadow: none;
    --iterp-bg: var(--jx-bg); --iterp-surface: var(--jx-sf); --iterp-surface-strong: var(--jx-sf2);
    --iterp-line: var(--jx-ln); --iterp-text: var(--jx-tx); --iterp-muted: var(--jx-mu);
}
body.provider-jobs-page { background: var(--jx-bg); color: var(--jx-tx); }
body.provider-jobs-page h1, body.provider-jobs-page h2, body.provider-jobs-page h3 { color: var(--jx-tx); }
body.provider-jobs-page .primary-btn { background: var(--jx-ac); border-radius: 10px; color: var(--jx-onac); font-weight: 500; }
body.provider-jobs-page .ghost-link, body.provider-jobs-page .quiet-btn { background: var(--jx-sf2); border: 0; border-radius: 10px; color: var(--jx-tx); }
body.provider-jobs-page .danger-btn { background: var(--jx-sf2); border: 0; border-radius: 10px; color: var(--jx-bad); }
body.provider-jobs-page .panel { background: var(--jx-sf); border: 0; border-radius: 14px; }
body.provider-jobs-page .iterp-nav__link--primary, body.provider-jobs-page .iterp-nav__link[aria-current] { color: var(--jx-tx); }
body.provider-jobs-page .iterp-nav__link[aria-current] { border-left-color: var(--jx-brand); }

/* Lanes: For you · Booked · Past, then Filters (counted) and Pay. */
body.provider-jobs-page .jx-lanes { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
body.provider-jobs-page .jx-lanes .jobs-viewnav { background: var(--jx-sf2); border: 0; border-radius: 10px; flex: 1 1 280px; margin: 0; padding: 3px; }
body.provider-jobs-page .jx-lanes .jobs-viewnav button { flex: 1 1 0; justify-content: center; min-height: 44px; }
body.provider-jobs-page .jx-lanes .jobs-viewnav button.active { background: var(--jx-bg); color: var(--jx-tx); font-weight: 500; }
body.provider-jobs-page .jx-lanes .jobs-viewnav__count { background: transparent; color: var(--jx-mu); padding: 0 2px; }
body.provider-jobs-page .jx-filters-btn,
body.provider-jobs-page .jx-pay-link { background: var(--jx-sf2); border: 0; border-radius: 10px; color: var(--jx-tx); cursor: pointer; min-height: 44px; padding: 0 14px; }
body.provider-jobs-page .jx-pay-link.active { box-shadow: inset 0 -2px 0 var(--jx-brand); }
body.provider-jobs-page .jx-filters-btn.jx-off { display: none; }
body.provider-jobs-page .jx-filters-count:not(:empty) { background: var(--jx-ac); border-radius: 9px; color: var(--jx-onac); margin-left: 4px; padding: 0 7px; }
body.provider-jobs-page .open-controls.jx-collapsed { display: none; }

/* Sections, cards and rows. */
body.provider-jobs-page .section-heading { align-items: center; display: flex; gap: 8px; }
body.provider-jobs-page .section-heading h3 { font-size: 15px; font-weight: 500; margin: 16px 2px 8px; }
body.provider-jobs-page .section-heading > span { color: var(--jx-mu); font-size: 13px; }
body.provider-jobs-page .jx-count:not(:empty) { background: var(--jx-wa); border-radius: 11px; color: var(--jx-bg); font-size: 12px; font-weight: 500; min-width: 22px; padding: 2px 7px; text-align: center; }
body.provider-jobs-page .jx-card, body.provider-jobs-page #openJobsList, body.provider-jobs-page #activityList,
body.provider-jobs-page #todayView:not(:empty) { background: var(--jx-sf); border-radius: 14px; overflow: hidden; }
body.provider-jobs-page #todayView:not(:empty) { margin-top: 8px; }
body.provider-jobs-page .jx-row { align-items: center; border-bottom: 1px solid var(--jx-ln); color: var(--jx-tx); cursor: pointer; display: flex; gap: 10px; min-height: 52px; padding: 8px 14px; text-decoration: none; }
body.provider-jobs-page .jx-row:last-child { border-bottom: 0; }
body.provider-jobs-page .jx-row:focus-visible { outline: 3px solid var(--jx-brand); outline-offset: -3px; }
body.provider-jobs-page .jx-t { flex: 1; min-width: 0; }
/* Jobs clarity (2026-11-01): the lines wrap at phone width, so no fact is
   cut off. The deciding facts (.jx-key: time, pay) are primary text; the
   rest is muted. */
body.provider-jobs-page .jx-t > b, body.provider-jobs-page .jx-t > span { display: block; overflow-wrap: anywhere; }
body.provider-jobs-page .jx-t > b { font-weight: 500; }
body.provider-jobs-page .jx-t > span { color: var(--jx-mu); font-size: 13px; line-height: 1.35; margin-top: 2px; }
body.provider-jobs-page .jx-t > .jx-key { color: var(--jx-tx); font-size: 14px; font-variant-numeric: tabular-nums; }
body.provider-jobs-page .jx-t > .jx-pay { font-weight: 500; }
body.provider-jobs-page .jx-acts { display: flex; flex: none; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 50%; }
body.provider-jobs-page .jx-db { flex: none; line-height: 1.15; text-align: center; width: 44px; }
body.provider-jobs-page .jx-db span { color: var(--jx-mu); display: block; font-size: 11px; }
body.provider-jobs-page .jx-db b { display: block; font-size: 17px; font-weight: 500; }
body.provider-jobs-page .jx-ic { align-items: center; background: var(--jx-sf2); border-radius: 10px; display: flex; flex: none; font-weight: 500; height: 32px; justify-content: center; width: 32px; }
body.provider-jobs-page .jx-ic.warn { color: var(--jx-wa); }
body.provider-jobs-page .jx-pill { align-items: center; background: var(--jx-sf2); border-radius: 8px; display: inline-flex; flex: none; font-size: 12px; gap: 4px; padding: 3px 8px; white-space: nowrap; }
body.provider-jobs-page .jx-pill.warn { background: color-mix(in srgb, var(--jx-wa) 20%, transparent); color: var(--jx-wa); }
body.provider-jobs-page .jx-pill.ok { background: color-mix(in srgb, var(--jx-ok) 18%, transparent); color: var(--jx-ok); }
body.provider-jobs-page .jx-pill.bad { background: color-mix(in srgb, var(--jx-bad) 18%, transparent); color: var(--jx-bad); }
body.provider-jobs-page .jx-ch { flex: none; min-height: 44px; padding: 0 12px; white-space: nowrap; }
body.provider-jobs-page .jx-mo { flex: none; font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
body.provider-jobs-page .jx-chev { color: var(--jx-mu); flex: none; font-size: 18px; }
body.provider-jobs-page .jx-month { color: var(--jx-mu); font-size: 13px; padding: 12px 14px 4px; }
body.provider-jobs-page .jx-cap { color: var(--jx-mu); font-size: 12px; }

/* An offer: answer-by, what, when, pay; Decline and Accept. */
body.provider-jobs-page .jx-offer { align-items: flex-end; background: var(--jx-sf); border-radius: 14px; display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; padding: 12px 14px; }
body.provider-jobs-page .jx-offer-title { background: none; border: 0; color: var(--jx-tx); cursor: pointer; display: block; font-size: 16px; font-weight: 500; margin: 6px 0 2px; padding: 0; text-align: left; }
body.provider-jobs-page .jx-two { display: flex; flex: 0 1 240px; gap: 8px; }
body.provider-jobs-page .jx-two > * { flex: 1; }

/* Pay: the hero holds what is approved and not paid, and the payout state. */
body.provider-jobs-page .jx-hero { align-items: center; background: var(--jx-sf); border-radius: 14px; display: flex; flex-wrap: wrap; gap: 16px; padding: 14px 16px; }
body.provider-jobs-page .jx-amt { font-size: 28px; font-variant-numeric: tabular-nums; font-weight: 500; }
body.provider-jobs-page .jx-po { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
body.provider-jobs-page .jx-link { cursor: pointer; }

/* Job detail: facts, collapsed rows, and the action bar. */
body.provider-jobs-page .jx-facts { display: grid; gap: 4px; margin-bottom: 10px; }
body.provider-jobs-page .jx-fact { align-items: center; display: flex; gap: 8px; min-height: 36px; }
body.provider-jobs-page .jx-fk { color: var(--jx-mu); flex: none; font-size: 13px; width: 52px; }
body.provider-jobs-page .jx-expanders { margin-top: 8px; }
body.provider-jobs-page .jx-x { border-bottom: 1px solid var(--jx-ln); }
body.provider-jobs-page .jx-x:last-child { border-bottom: 0; }
body.provider-jobs-page .jx-x > summary { align-items: center; cursor: pointer; display: flex; gap: 8px; justify-content: space-between; list-style: none; min-height: 48px; padding: 0 14px; }
body.provider-jobs-page .jx-x > summary::-webkit-details-marker { display: none; }
body.provider-jobs-page .jx-x > summary::after { color: var(--jx-mu); content: '⌄'; }
body.provider-jobs-page .jx-x[open] > summary::after { content: '⌃'; }
body.provider-jobs-page .jx-xp { background: var(--jx-sf2); padding: 10px 14px; }
body.provider-jobs-page .jx-action-bar { background: var(--jx-sf); border-top: 1px solid var(--jx-ln); bottom: 0; display: grid; gap: 6px; padding: 10px 16px 12px; position: sticky; text-align: center; }
body.provider-jobs-page .jx-action-bar .primary-btn,
body.provider-jobs-page .jx-action-bar .quiet-btn { min-height: 50px; width: 100%; }

/* The one-step invoice. */
body.provider-jobs-page .jx-invoice { display: grid; gap: 0; }
body.provider-jobs-page .jx-irow { align-items: center; border-bottom: 1px solid var(--jx-ln); display: flex; flex-wrap: wrap; gap: 10px; min-height: 52px; padding: 6px 0; }
body.provider-jobs-page .jx-ik { color: var(--jx-mu); flex: 0 0 120px; font-size: 13px; }
body.provider-jobs-page .jx-iv { flex: 1; }
body.provider-jobs-page .jx-irow input[type="number"] { max-width: 110px; min-height: 44px; }
body.provider-jobs-page .jx-irow input[type="text"], body.provider-jobs-page .jx-irow textarea { flex: 1; min-height: 44px; }
body.provider-jobs-page .jx-receipt { align-items: center; display: inline-flex; padding: 0 12px; }
body.provider-jobs-page .jx-total { align-items: baseline; display: flex; justify-content: space-between; padding: 12px 4px 4px; }
body.provider-jobs-page .jx-total b { font-size: 24px; font-variant-numeric: tabular-nums; font-weight: 500; }
body.provider-jobs-page .jx-wide { margin-top: 8px; min-height: 50px; width: 100%; }
body.provider-jobs-page .jx-center { text-align: center; }

@media (max-width: 980px) {
    /* At phone width the job detail is its own page, with the action at the bottom. */
    body.provider-jobs-page .jobs-shell.detail-open #jobDetailPanel:not(.hidden) {
        background: var(--jx-bg); border-radius: 0; inset: 0; max-height: none; top: 0;
    }
    body.provider-jobs-page .jx-two { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    body.provider-jobs-page .jx-row, body.provider-jobs-page .jx-x { transition: none; }
}

/* Manager side of the Jobs redesign: the inline answer that replaced prompt(),
   the lanes, and the counts. */
body.provider-jobs-page .mgr-ask { align-items: center; background: var(--jx-sf2); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; padding: 8px 10px; }
body.provider-jobs-page .mgr-ask label { color: var(--jx-mu); font-size: 13px; }
body.provider-jobs-page .mgr-ask input { flex: 1 1 160px; min-height: 44px; }
body.provider-jobs-page .board-tabs button { min-height: 44px; }
body.provider-jobs-page .board-tabs button.active { box-shadow: inset 0 -2px 0 var(--jx-brand); color: var(--jx-tx); }
body.provider-jobs-page .manager-nav button[aria-current] { box-shadow: inset 0 -2px 0 var(--jx-brand); }
body.provider-jobs-page .manager-nav .jx-count:empty, body.provider-jobs-page .board-tabs__count:empty { display: none; }

/* ---------- MalkaTerp web console redesign (approved 2026-10-29) ----------
   Home: the camera first with the state as a pill on it, one control under
   it (Paused | Available | Break) or the wrap-up card, then only what needs
   you, Today and Call a client. Schedule: the week grid. Pay: the next
   payout first. The palette is --tp-* (top of this file). The older parts
   that stay (settings, agreements, history) follow it through the mapped
   names, with the overrides at the end of this block. */

body.provider-queue-page { background: var(--tp-bg); color: var(--tp-tx); }

body.provider-queue-page .tp-sr {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

body.provider-queue-page .tp-main {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 auto;
    max-width: 760px;
    padding: 14px 20px 32px;
}

body.provider-queue-page .tp-main--schedule,
body.provider-queue-page .tp-main--history,
body.provider-queue-page .tp-main--analytics,
body.provider-queue-page .tp-main--settings,
body.provider-queue-page .tp-main--credentials,
body.provider-queue-page .tp-main--agreements { max-width: 1040px; }

:root.provider-queue-page body.provider-queue-page .tab-panel.tp-panel {
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

body.provider-queue-page .tp-panel:focus { outline: none; }

body.provider-queue-page .tp-titlerow { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; min-height: 44px; }

body.provider-queue-page .tp-titlerow--end { justify-content: flex-end; }

body.provider-queue-page .tp-title { flex: 1; font-size: 20px; font-weight: 500; line-height: 1.2; margin: 0; }

body.provider-queue-page .tp-cap { color: var(--tp-mu); font-size: 12px; }

body.provider-queue-page .tp-val { color: var(--tp-mu); font-size: 13px; text-align: end; white-space: nowrap; }

body.provider-queue-page .tp-line { color: var(--tp-mu); font-size: 14px; line-height: 1.4; }

body.provider-queue-page .tp-line--bad { color: var(--tp-bad); }

body.provider-queue-page .tp-saving { color: var(--tp-mu); font-size: 13px; }

body.provider-queue-page .tp-link {
    background: none;
    border: 0;
    color: var(--tp-brt);
    cursor: pointer;
    font: inherit;
    min-height: 44px;
    padding: 0 4px;
    text-decoration: underline;
}

/* Buttons: one primary per screen, the quiet second kind, and a small one. */
body.provider-queue-page .tp-btn,
body.provider-queue-page .tp-btn2 {
    align-items: center;
    border-radius: 14px;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-weight: 500;
    gap: 8px;
    justify-content: center;
    min-height: 50px;
    overflow: hidden;
    padding: 0 18px;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
}

:root.provider-queue-page body.provider-queue-page .tp-btn {
    background: var(--tp-ac);
    border: 0;
    color: var(--tp-onac);
    font-size: 16px;
    width: auto;
}

:root.provider-queue-page body.provider-queue-page .tp-btn2 {
    background: var(--tp-sf);
    border: 1px solid var(--tp-ln);
    color: var(--tp-tx);
    font-size: 15px;
}

body.provider-queue-page .tp-btn--sm { border-radius: 12px; font-size: 14px; min-height: 44px; padding: 0 14px; }

body.provider-queue-page .tp-btn:disabled,
body.provider-queue-page .tp-btn2:disabled { cursor: default; opacity: 0.6; }

body.provider-queue-page .tp-btn:hover:not(:disabled),
body.provider-queue-page .tp-btn2:hover:not(:disabled) { filter: brightness(1.08); }

body.provider-queue-page .tp-two { display: flex; gap: 8px; margin-top: 8px; }

body.provider-queue-page .tp-two > * { flex: 1 1 0; min-width: 0; }

body.provider-queue-page .tp-two:empty { display: none; }

body.provider-queue-page .tp-two--wide { margin-top: 4px; }

body.provider-queue-page .tp-icon-btn {
    align-items: center;
    background: none;
    border: 0;
    border-radius: 12px;
    color: var(--tp-tx);
    cursor: pointer;
    display: flex;
    flex: none;
    height: 44px;
    justify-content: center;
    width: 44px;
}

body.provider-queue-page .tp-icon-btn:hover { background: var(--tp-sf); }

/* Segmented control: one choice of a few, one tap each. */
body.provider-queue-page .tp-seg {
    background: var(--tp-sf2);
    border-radius: 10px;
    box-sizing: border-box;
    display: flex;
    padding: 3px;
}

body.provider-queue-page .tp-seg__opt {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--tp-mu);
    cursor: pointer;
    display: flex;
    flex: 1 1 0;
    font: inherit;
    font-size: 13px;
    gap: 6px;
    justify-content: center;
    min-height: 40px;
    min-width: 0;
    padding: 0 10px;
    text-decoration: none;
    white-space: nowrap;
}

body.provider-queue-page .tp-seg__opt[aria-pressed="true"],
body.provider-queue-page .tp-seg__opt[aria-checked="true"],
body.provider-queue-page .tp-seg__opt[aria-current="page"] { background: var(--tp-bg); color: var(--tp-tx); cursor: default; font-weight: 500; }

body.provider-queue-page .tp-seg__opt:disabled { cursor: not-allowed; opacity: 0.35; }

body.provider-queue-page .tp-seg--big .tp-seg__opt { font-size: 15px; min-height: 48px; }

body.provider-queue-page .tp-seg--fit { flex: none; }

body.provider-queue-page .tp-seg--fit .tp-seg__opt { flex: none; min-width: 72px; }

body.provider-queue-page .tp-spin { animation: tp-spin 1s linear infinite; }

@keyframes tp-spin { to { transform: rotate(360deg); } }

/* ---------- Home ---------- */

body.provider-queue-page .tp-home { display: flex; flex-direction: column; gap: 12px; }

/* The self view: the whole frame at 16:9, never cropped at the hands. */
body.provider-queue-page .tp-cam {
    align-items: center;
    aspect-ratio: 16 / 9;
    background: var(--tp-cam);
    border-radius: 16px;
    color: var(--tp-camfg);
    display: flex;
    justify-content: center;
    overflow: visible;
    position: relative;
}

body.provider-queue-page .tp-cam video {
    background: var(--tp-st);
    border-radius: 16px;
    height: 100%;
    inset: 0;
    object-fit: contain;
    position: absolute;
    transform: scaleX(-1);
    width: 100%;
}

body.provider-queue-page .tp-cam__ph {
    align-items: center;
    display: flex;
    flex-direction: column;
    font-size: 13px;
    gap: 6px;
}

body.provider-queue-page .tp-cam__person { height: 96px; stroke-width: 1.5; width: 96px; }

body.provider-queue-page .tp-pill {
    align-items: center;
    background: var(--tp-veil);
    border-radius: 16px;
    color: var(--tp-stx);
    display: flex;
    font-size: 13px;
    gap: 6px;
    left: 12px;
    max-width: calc(100% - 84px);
    min-height: 32px;
    padding: 0 12px;
    position: absolute;
    top: 12px;
}

body.provider-queue-page .tp-pill [role="status"] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

body.provider-queue-page .tp-pill .availability-state-detail { font-variant-numeric: tabular-nums; white-space: nowrap; }

body.provider-queue-page .tp-pill .availability-state-detail:empty { display: none; }

body.provider-queue-page .tp-dot { border-radius: 50%; flex: none; height: 8px; width: 8px; }

body.provider-queue-page .tp-dot--ok { background: var(--tp-ok); }

body.provider-queue-page .tp-dot--wait { background: var(--tp-wa); }

body.provider-queue-page .tp-dot--off { background: var(--tp-smu); }

body.provider-queue-page .tp-cam__btn {
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    border: 0;
    border-radius: 50%;
    bottom: 12px;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    height: 44px;
    justify-content: center;
    list-style: none;
    position: absolute;
    right: 12px;
    width: 44px;
}

body.provider-queue-page .tp-cam__btn::-webkit-details-marker { display: none; }

body.provider-queue-page .tp-cam__btn:focus-visible { outline: 3px solid var(--tp-brt); outline-offset: 2px; }

body.provider-queue-page .tp-devices { position: absolute; right: 12px; top: 12px; z-index: 2; }

body.provider-queue-page .tp-devices > .tp-cam__btn--top { bottom: auto; position: relative; right: auto; }

:root.provider-queue-page body.provider-queue-page .tp-devices .self-device-panel {
    background: var(--tp-bg);
    border: 0.5px solid var(--tp-ln);
    border-radius: 14px;
    bottom: auto;
    opacity: 1;
    pointer-events: auto;
    right: 0;
    top: 52px;
    transform: none;
    width: 280px;
}

:root.provider-queue-page body.provider-queue-page .tp-devices .self-device-label { color: var(--tp-mu); font-weight: 500; text-transform: none; }

:root.provider-queue-page body.provider-queue-page .tp-devices .self-device-select {
    background: var(--tp-sf);
    border: 1px solid var(--tp-ln);
    color: var(--tp-tx);
}

/* What needs you: one row each, with its one action. */
body.provider-queue-page .tp-needs { display: flex; flex-direction: column; gap: 8px; }

body.provider-queue-page .tp-nd {
    align-items: center;
    background: var(--tp-sf);
    border-radius: 14px;
    display: flex;
    gap: 10px;
    min-height: 56px;
    padding: 6px 6px 6px 14px;
}

body.provider-queue-page .tp-nd__icon { color: var(--tp-wa); height: 18px; width: 18px; }

body.provider-queue-page .tp-nd__text { flex: 1; min-width: 0; }

:root.provider-queue-page body.provider-queue-page .offer-attention-hint {
    background: var(--tp-sf);
    border-radius: 14px;
    color: var(--tp-tx);
    margin: 0;
    padding: 6px 6px 6px 14px;
}

:root.provider-queue-page body.provider-queue-page .offer-attention-hint .settings-btn { margin-left: auto; }

body.provider-queue-page .tp-card {
    background: var(--tp-sf);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
}

body.provider-queue-page .tp-today { font-size: 14px; }

body.provider-queue-page .tp-call { display: flex; gap: 10px; }

:root.provider-queue-page body.provider-queue-page .tp-field {
    background: var(--tp-sf);
    border: 1px solid var(--tp-ln);
    border-radius: 14px;
    box-sizing: border-box;
    color: var(--tp-tx);
    flex: 1;
    font: inherit;
    font-size: 15px;
    min-height: 50px;
    min-width: 0;
    padding: 0 14px;
    width: 100%;
}

body.provider-queue-page .tp-field::placeholder { color: var(--tp-mu); }

/* The wrap-up card: the breather's way back drains along its button. */
body.provider-queue-page .tp-wrap {
    background: var(--tp-sf);
    border: 0;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 12px;
}

:root.provider-queue-page body.provider-queue-page .tp-wrap .wrap-up-take-now { margin-top: 0; min-height: 50px; padding: 0 18px; width: 100%; }

:root.provider-queue-page body.provider-queue-page .tp-wrap .wrap-up-take-now > span:not(.wrap-up-drain) { position: relative; }

:root.provider-queue-page body.provider-queue-page .tp-wrap .wrap-up-drain {
    background: rgba(0, 0, 0, 0.14);
    bottom: 0;
    height: auto;
    left: auto;
    opacity: 1;
    position: absolute;
    right: 0;
    top: 0;
    transform: scaleX(var(--wrap-up-remaining, 0));
    transform-origin: right center;
    transition: transform 1s linear;
    width: 100%;
}

body.provider-queue-page .tp-wrap .wrap-up-seconds { font-variant-numeric: tabular-nums; }

body.provider-queue-page .tp-wrap .wrap-up-waiting { color: var(--tp-wa); font-size: 14px; font-weight: 500; }

body.provider-queue-page .tp-wrap .wrap-up-status,
body.provider-queue-page .tp-wrap .wrap-up-summary { color: var(--tp-tx); font-size: 14px; }

body.provider-queue-page .tp-wrap .tp-two { margin-top: 0; }

/* ---------- Schedule: the week grid ---------- */

body.provider-queue-page .tp-weeknav { align-items: center; display: flex; gap: 10px; }

body.provider-queue-page .tp-weeknav__text { flex: 1; min-width: 0; text-align: center; }

body.provider-queue-page .tp-weeknav__name { font-weight: 500; }

body.provider-queue-page .tp-seg--brushes { max-width: 360px; }

body.provider-queue-page .tp-grid {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow-x: auto;
    padding-bottom: 2px;
    touch-action: none;
    user-select: none;
}

body.provider-queue-page .tp-grid__row {
    display: grid;
    gap: 3px;
    grid-template-columns: 52px repeat(24, minmax(18px, 1fr));
    min-width: 560px;
}

body.provider-queue-page .tp-grid__head { grid-template-columns: 52px repeat(12, minmax(39px, 2fr)); }

:root.provider-queue-page body.provider-queue-page .tp-grid .paint-hour-label {
    color: var(--tp-mu);
    font-size: 11px;
    opacity: 1;
    padding: 0;
    text-align: left;
}

:root.provider-queue-page body.provider-queue-page .tp-grid .paint-day-head {
    align-items: center;
    color: var(--tp-mu);
    display: flex;
    font-size: 12px;
    font-weight: 400;
    gap: 4px;
    opacity: 1;
    padding: 0;
    text-align: left;
}

:root.provider-queue-page body.provider-queue-page .tp-grid .paint-cell {
    background: var(--tp-sf);
    border-radius: 5px;
    height: 26px;
    min-height: 26px;
}

:root.provider-queue-page body.provider-queue-page .tp-grid .paint-cell:hover { background: var(--tp-sf2); }

:root.provider-queue-page body.provider-queue-page .tp-grid .paint-cell:focus-visible { outline: 2px solid var(--tp-tx); outline-offset: 1px; }

:root.provider-queue-page body.provider-queue-page .paint-cell.painted-vrs,
:root.provider-queue-page body.provider-queue-page .tp-swatch.painted-vrs { background: var(--tp-brand); }

:root.provider-queue-page body.provider-queue-page .paint-cell.painted-vri,
:root.provider-queue-page body.provider-queue-page .tp-swatch.painted-vri { background: var(--tp-vri); }

:root.provider-queue-page body.provider-queue-page .paint-cell.painted-pto,
:root.provider-queue-page body.provider-queue-page .tp-swatch.painted-pto { background: var(--tp-mu); opacity: 0.55; }

:root.provider-queue-page body.provider-queue-page .tp-grid .paint-cell.is-skipped {
    background: repeating-linear-gradient(45deg, transparent 0 3px, var(--tp-sf2) 3px 5px);
}

:root.provider-queue-page body.provider-queue-page .tp-grid[aria-readonly="true"] .paint-cell { cursor: default; }

body.provider-queue-page .tp-legend { align-items: center; color: var(--tp-mu); display: flex; font-size: 12px; gap: 14px; }

body.provider-queue-page .tp-swatch { border-radius: 3px; display: inline-block; height: 10px; margin-inline-end: 5px; vertical-align: -1px; width: 10px; }

/* A choice with a default stays one line until it is opened. */
body.provider-queue-page .tp-more { background: var(--tp-sf); border-radius: 14px; }

body.provider-queue-page .tp-more > summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    list-style: none;
    min-height: 46px;
    padding: 0 14px;
}

body.provider-queue-page .tp-more > summary::-webkit-details-marker { display: none; }

body.provider-queue-page .tp-more > summary::after { color: var(--tp-mu); content: '⌄'; }

body.provider-queue-page .tp-more[open] > summary::after { content: '⌃'; }

body.provider-queue-page .tp-more > summary > span:first-child { flex: 1; }

body.provider-queue-page .tp-more__body { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 14px; }

:root.provider-queue-page body.provider-queue-page .paint-zone select {
    background: var(--tp-bg);
    border: 1px solid var(--tp-ln);
    border-radius: 10px;
    color: var(--tp-tx);
    font: inherit;
    min-height: 44px;
    padding: 0 10px;
}

/* ---------- Pay: the next payout first ---------- */

body.provider-queue-page .tp-pay-top { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

body.provider-queue-page .tp-pay-top--one { grid-template-columns: minmax(0, 1fr); }

body.provider-queue-page .tp-hero { padding: 14px; }

body.provider-queue-page .tp-big { font-size: 32px; font-variant-numeric: tabular-nums; font-weight: 500; line-height: 1.1; margin: 2px 0; }

body.provider-queue-page .tp-hero__date { font-size: 18px; font-weight: 500; }

body.provider-queue-page .tp-gh { color: var(--tp-mu); font-size: 12px; margin: 4px 2px -6px; }

body.provider-queue-page .tp-grp { background: var(--tp-sf); border-radius: 14px; overflow: hidden; }

body.provider-queue-page .tp-row {
    align-items: center;
    background: none;
    border: 0;
    border-bottom: 0.5px solid var(--tp-ln);
    box-sizing: border-box;
    color: var(--tp-tx);
    display: flex;
    font: inherit;
    font-size: 14px;
    gap: 10px;
    min-height: 46px;
    padding: 8px 14px;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

body.provider-queue-page .tp-grp .tp-row:last-child { border-bottom: 0; }

body.provider-queue-page .tp-row__label { flex: 1; min-width: 0; }

body.provider-queue-page .tp-row--link { cursor: pointer; }

body.provider-queue-page .tp-row--link:hover { background: var(--tp-sf2); }

body.provider-queue-page .tp-chev { color: var(--tp-mu); }

/* ---------- The older parts, in the family ---------- */

:root.provider-queue-page body.provider-queue-page .tp-tabs.profile-tabs {
    background: var(--tp-sf2);
    border: 0;
    border-radius: 10px;
    display: flex;
    gap: 0;
    padding: 3px;
}

:root.provider-queue-page body.provider-queue-page .tp-tabs .profile-tab {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--tp-mu);
    display: flex;
    flex: 1 1 0;
    font-size: 13px;
    justify-content: center;
    min-height: 40px;
    text-decoration: none;
}

:root.provider-queue-page body.provider-queue-page .tp-tabs .profile-tab.active { background: var(--tp-bg); color: var(--tp-tx); font-weight: 500; }

:root.provider-queue-page body.provider-queue-page .card {
    background: var(--tp-sf);
    border: 0;
    border-radius: 14px;
    color: var(--tp-tx);
    padding: 14px;
}

:root.provider-queue-page body.provider-queue-page .card-title { color: var(--tp-tx); font-size: 15px; font-weight: 500; margin: 8px 0; }

:root.provider-queue-page body.provider-queue-page .settings-columns { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

:root.provider-queue-page body.provider-queue-page .settings-group {
    align-content: start;
    background: var(--tp-sf);
    border: 0;
    border-radius: 14px;
    color: var(--tp-tx);
    gap: 12px;
    padding: 14px;
}

:root.provider-queue-page body.provider-queue-page .settings-group-title {
    color: var(--tp-tx);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

:root.provider-queue-page body.provider-queue-page .settings-label,
:root.provider-queue-page body.provider-queue-page .settings-toggle { color: var(--tp-tx); font-size: 14px; font-weight: 400; }

:root.provider-queue-page body.provider-queue-page .help-text,
:root.provider-queue-page body.provider-queue-page .empty-state,
:root.provider-queue-page body.provider-queue-page .call-meta,
:root.provider-queue-page body.provider-queue-page .agreement-meta { color: var(--tp-mu); }

:root.provider-queue-page body.provider-queue-page .settings-input,
:root.provider-queue-page body.provider-queue-page .settings-select {
    background: var(--tp-bg);
    border: 1px solid var(--tp-ln);
    border-radius: 10px;
    color: var(--tp-tx);
    min-height: 44px;
}

:root.provider-queue-page body.provider-queue-page .settings-input[readonly] { background: transparent; border-color: transparent; padding-left: 0; }

:root.provider-queue-page body.provider-queue-page .settings-btn {
    background: var(--tp-ac);
    border: 0;
    border-radius: 12px;
    color: var(--tp-onac);
    font-weight: 500;
    min-height: 44px;
}

:root.provider-queue-page body.provider-queue-page .settings-btn.secondary {
    background: var(--tp-sf2);
    border: 0;
    color: var(--tp-tx);
}

:root.provider-queue-page body.provider-queue-page .settings-status.success { color: var(--tp-ok); }

:root.provider-queue-page body.provider-queue-page .settings-status.error { color: var(--tp-bad); }

body.provider-queue-page .tp-fieldset { border: 0; display: grid; gap: 10px; margin: 0; min-width: 0; padding: 0; }

:root.provider-queue-page body.provider-queue-page .skill-chip,
:root.provider-queue-page body.provider-queue-page .paint-status-chip {
    background: var(--tp-sf2);
    border: 0;
    border-radius: 8px;
    color: var(--tp-tx);
    font-size: 12px;
    margin-left: 6px;
    padding: 3px 8px;
}

:root.provider-queue-page body.provider-queue-page .skill-chip.active,
:root.provider-queue-page body.provider-queue-page .paint-status-chip.approved { color: var(--tp-ok); }

:root.provider-queue-page body.provider-queue-page .agreement-row,
:root.provider-queue-page body.provider-queue-page .call-item,
:root.provider-queue-page body.provider-queue-page .shift-item,
:root.provider-queue-page body.provider-queue-page .analytics-event { border-color: var(--tp-ln); }

:root.provider-queue-page body.provider-queue-page .history-group {
    background: var(--tp-sf);
    border: 0;
    border-radius: 14px;
    padding: 0 14px;
}

:root.provider-queue-page body.provider-queue-page .history-group summary { min-height: 46px; }

:root.provider-queue-page body.provider-queue-page .shift-status.ok { color: var(--tp-ok); }

:root.provider-queue-page body.provider-queue-page .shift-status.warn { color: var(--tp-wa); }

:root.provider-queue-page body.provider-queue-page .viz-chip { background: var(--tp-sf); border: 0; color: var(--tp-tx); }

/* ---------- The offer takes the whole page ---------- */

:root.provider-queue-page #vrs-accept-overlay.tp-offer {
    backdrop-filter: none;
    background: rgba(6, 7, 15, 0.94);
    color: var(--tp-stx);
    padding: 24px 16px;
}

:root.provider-queue-page #vrs-accept-overlay .tp-offer__card {
    align-items: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--tp-stx);
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 520px;
    padding: 16px 8px;
    text-align: center;
}

:root.provider-queue-page #vrs-accept-overlay .call-request-btn { padding: 0 16px; position: relative; }

:root.provider-queue-page #vrs-accept-overlay .call-request-eyebrow {
    color: var(--tp-smu);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

:root.provider-queue-page #vrs-accept-overlay .call-request-title { color: var(--tp-stx); font-size: 30px; font-weight: 500; }

#vrs-accept-overlay .tp-tags { display: flex; gap: 6px; justify-content: center; }

#vrs-accept-overlay .tp-tag {
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    display: flex;
    font-size: 13px;
    min-height: 30px;
    padding: 0 12px;
}

#vrs-accept-overlay .tp-offer__facts,
#vrs-accept-overlay .call-request-summary { color: var(--tp-smu); font-size: 14px; }

:root.provider-queue-page #vrs-accept-overlay .call-request-grid { display: flex; flex-direction: column; gap: 8px; width: 100%; }

:root.provider-queue-page #vrs-accept-overlay .call-request-detail {
    background: rgba(255, 255, 255, 0.08);
    border: 0;
    border-radius: 12px;
    color: var(--tp-stx);
    padding: 10px 14px;
}

:root.provider-queue-page #vrs-accept-overlay .call-request-label { color: var(--tp-smu); letter-spacing: 0; text-transform: none; }

#vrs-accept-overlay .tp-offer__clock { margin: 6px 0 4px; }

#vrs-accept-overlay .tp-offer__count { font-size: 44px; font-variant-numeric: tabular-nums; font-weight: 500; line-height: 1; }

#vrs-accept-overlay .tp-offer__caption { color: var(--tp-smu); font-size: 12px; margin-top: 4px; min-height: 16px; }

:root.provider-queue-page #vrs-accept-overlay .call-request-actions {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    width: min(100%, 420px);
}

:root.provider-queue-page #vrs-accept-overlay .call-request-btn { border-radius: 16px; font-weight: 500; min-height: 56px; }

:root.provider-queue-page #vrs-accept-overlay .call-request-btn.decline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--tp-stx);
}

:root.provider-queue-page #vrs-accept-overlay .call-request-btn.accept {
    background: var(--tp-ac);
    color: var(--tp-onac);
    font-size: 17px;
}

/* The shade over Accept is the time left; it shrinks toward the end edge. */
:root.provider-queue-page #vrs-accept-overlay .offer-drain {
    background: rgba(0, 0, 0, 0.14);
    height: auto;
    left: auto;
    opacity: 1;
    right: 0;
    top: 0;
    transform-origin: right center;
}

#vrs-accept-overlay .tp-offer__next {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--tp-smu);
    display: flex;
    font-size: 13px;
    margin-top: 8px;
    min-height: 40px;
    padding: 0 14px;
}

:root.provider-queue-page #vrs-accept-overlay .call-request-auto-note { color: var(--tp-smu); }

@media (max-width: 479.98px) {
    :root.provider-queue-page #vrs-accept-overlay .call-request-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
}

/* The session-handoff dialog (Devin's PR #199, IV001 Rev 1), in the family:
   sentence case, the palette, one primary button. */
:root.provider-queue-page #vrs-superseded-overlay .call-request-dialog { border: 0; border-radius: 16px; justify-items: center; max-width: 460px; }

:root.provider-queue-page #vrs-superseded-overlay .call-request-eyebrow { color: var(--tp-mu); font-weight: 400; letter-spacing: 0; text-transform: none; }

:root.provider-queue-page #vrs-superseded-overlay .call-request-title { font-size: 24px; font-weight: 500; }

#vrs-superseded-overlay .call-request-summary { margin-inline: auto; }

:root.provider-queue-page #vrs-superseded-overlay .call-request-btn.accept { border-radius: 14px; font-weight: 500; min-height: 50px; }

/* Phone width: the camera keeps 16:9 and the Pay cards stack. */
@media (max-width: 639.98px) {
    body.provider-queue-page .tp-main { padding: 12px 16px 24px; }

    body.provider-queue-page .tp-pay-top { grid-template-columns: minmax(0, 1fr); }

    body.provider-queue-page .tp-call { flex-direction: column; }
}

/* On the Jobs page the shared nav's Home is not louder than the other areas. */
body.provider-jobs-page .iterp-nav .iterp-nav__link--primary:not([aria-current]) { color: var(--tp-mu); }

@media (prefers-reduced-motion: reduce) {
    body.provider-queue-page .tp-spin { animation: none; }
    :root.provider-queue-page body.provider-queue-page .tp-wrap .wrap-up-drain,
    :root.provider-queue-page #vrs-accept-overlay .offer-drain { transition: none; }
}

/* ---------- Notices (shared/notice-host.js; mockups 2026-11-02) ----------
   One notice at a time, bottom centre, 16 px up, at most 420 px wide; above
   the bottom tabs on a narrow window. Errors stay until the person acts. */
.mn-notice-host {
    align-items: center;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    inset-inline: 0;
    padding-inline: 16px;
    pointer-events: none;
    position: fixed;
    z-index: 300;
}

.mn-notice {
    align-items: center;
    animation: mn-notice-in var(--mn-enter, 200ms) ease-out both;
    background: var(--tp-nsf);
    border: 0.5px solid var(--tp-nbd);
    border-radius: 16px;
    box-shadow: var(--tp-nsh);
    box-sizing: border-box;
    color: var(--tp-tx);
    display: flex;
    font-size: 14px;
    gap: 10px;
    line-height: 1.3;
    max-width: 420px;
    min-height: 52px;
    padding: 4px 4px 4px 10px;
    pointer-events: auto;
    width: 100%;
}

.mn-notice.is-leaving { animation: mn-notice-out 150ms ease-in both; }

.mn-notice__icon {
    align-items: center;
    background: var(--tp-inft);
    border-radius: 50%;
    color: var(--tp-mu);
    display: flex;
    flex: none;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.mn-notice--error .mn-notice__icon { background: var(--tp-badt); color: var(--tp-bad); }
.mn-notice--success .mn-notice__icon { background: var(--tp-okt); color: var(--tp-ok); }

.mn-notice__text { flex: 1 1 auto; min-width: 0; padding: 6px 0; white-space: pre-line; }
.mn-notice:not(:has(button)) { padding-inline-end: 14px; }

.mn-notice__action,
.mn-notice__close {
    border: 0;
    cursor: pointer;
    flex: none;
    font: inherit;
    min-height: 44px;
}

.mn-notice__action {
    background: var(--tp-ac);
    border-radius: 12px;
    color: var(--tp-onac);
    font-weight: 500;
    padding: 0 14px;
    white-space: nowrap;
}

.mn-notice__action--quiet { background: transparent; color: var(--tp-brt); }

.mn-notice__close {
    align-items: center;
    background: transparent;
    border-radius: 12px;
    color: var(--tp-mu);
    display: flex;
    justify-content: center;
    min-width: 44px;
}

.mn-notice__action:focus-visible,
.mn-notice__close:focus-visible {
    outline: 2px solid var(--tp-brt);
    outline-offset: 2px;
}

/* A state that is true now: in flow under the header, no close button. */
.mn-banner {
    align-items: center;
    background: var(--tp-wat);
    box-sizing: border-box;
    color: var(--tp-tx);
    display: flex;
    font-size: 13px;
    font-weight: 500;
    gap: 8px;
    min-height: 36px;
    padding: 6px 16px;
}

.mn-banner .mn-notice__icon { background: transparent; color: var(--tp-wa); height: 18px; width: 18px; }

@keyframes mn-notice-in {
    from { opacity: 0; transform: translateY(var(--mn-slide, 12px)); }
    to { opacity: 1; transform: none; }
}

@keyframes mn-notice-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes mn-notice-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .mn-notice { animation-duration: 150ms; animation-name: mn-notice-fade; }
}

@media (max-width: 639.98px) {
    .mn-notice-host { bottom: calc(var(--tp-tabs) + 12px + env(safe-area-inset-bottom, 0px)); padding-inline: 12px; }
}
