/* WorxOrder Lite web styles (EP24-S02). Colours, sizes and spacing come only from the design
   tokens in css/tokens.css (made from design/tokens.json); no hex values or inline styles here. */

/* ── Base ── */
:root, .dxbl-theme-fluent-mode-light, .dxbl-theme-fluent-mode-dark {
    /* DevExpress Fluent takes our font and our neutral surfaces, borders and text, so its
       grids and editors match the rest of the page in light and dark mode. */
    --dxds-font-family-sans-serif: var(--wo-font);
    --dxds-color-surface-neutral-default-rest: var(--wo-surface);
    --dxds-color-surface-neutral-default-hovered: var(--wo-surface-2);
    --dxds-color-surface-neutral-subdued-rest: var(--wo-surface-2);
    --dxds-color-surface-neutral-subdued-hovered: var(--wo-border);
    --dxds-color-surface-neutral-deep-rest: var(--wo-bg);
    --dxds-color-content-neutral-default-rest: var(--wo-text);
    --dxds-color-content-neutral-default-hovered: var(--wo-text);
    --dxds-color-content-neutral-subdued-rest: var(--wo-text-muted);
    --dxds-color-content-neutral-deep-rest: var(--wo-text-subtle);
    --dxds-color-border-neutral-default-rest: var(--wo-border);
    --dxds-color-border-neutral-subdued-rest: var(--wo-border);
    --dxds-color-border-neutral-accessible-rest: var(--wo-border-strong);
}
/* DevExpress puts fixed white text on its primary buttons. In dark mode the brand fill is light,
   so the text takes the brand's own "on primary" colour, which is readable in both modes. */
:root .dxbl-btn {
    --dxbl-btn-primary-color: var(--wo-on-primary);
    --dxbl-btn-split-contained-primary-active-color: var(--wo-on-primary);
    --dxbl-btn-dropdown-contained-primary-active-color: var(--wo-on-primary);
    --dxbl-btn-group-contained-primary-active-color: var(--wo-on-primary);
}
html { background: var(--wo-bg); }
body {
    margin: 0;
    font-family: var(--wo-font);
    font-size: var(--wo-fs-body);
    line-height: var(--wo-lh-body);
    color: var(--wo-text);
    background: var(--wo-bg);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--wo-font-display); letter-spacing: -0.01em; }
h1 { font-size: var(--wo-fs-headline); line-height: var(--wo-lh-headline); font-weight: var(--wo-weight-semibold); margin: 0 0 var(--wo-space-4); }
h2 { font-size: var(--wo-fs-title); line-height: var(--wo-lh-title); font-weight: var(--wo-weight-semibold); margin: 0 0 var(--wo-space-3); }
h3 { font-size: var(--wo-fs-title-sm); line-height: var(--wo-lh-title-sm); font-weight: var(--wo-weight-semibold); margin: 0 0 var(--wo-space-2); }
h1:focus { outline: none; }
a { color: var(--wo-primary); text-underline-offset: 2px; }
a:hover { color: var(--wo-primary-hover); }
/* Every tickbox and radio button takes the brand colour, also one that a package draws (the form designer's "Our logo,
   top left" was the browser's own blue; owner 2026-11-27). Before, each page had to ask for it. */
input:is([type="checkbox"], [type="radio"]) { accent-color: var(--wo-primary); }
:focus-visible { outline: var(--wo-focus-width) solid var(--wo-primary); outline-offset: var(--wo-focus-offset); }
code, kbd, pre, .wo-mono { font-family: var(--wo-font-mono); }
.wo-mono { font-size: 0.95em; letter-spacing: 0; }
.wo-icon { width: 1.25em; height: 1.25em; flex: none; }
.wo-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Office screens ── */
/* Every office page uses the full width of the screen, with the menu wide or narrow (owner 2026-11-30; before, a
   page stopped at 1280 pixels unless the menu was narrow). Entry forms (.office-form, .wo-form-page) and pages of
   text keep their own width, so their lines stay easy to read. */
.office { max-width: none; }
.office-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--wo-space-4); flex-wrap: wrap; }
.office-search { display: flex; flex-direction: column; gap: var(--wo-space-1); max-width: 28rem; margin: var(--wo-space-4) 0; }
.office-search label { color: var(--wo-text-muted); font-weight: var(--wo-weight-medium); }
.office-section { margin-top: var(--wo-space-8); }
.office-filters { display: flex; gap: var(--wo-space-4); flex-wrap: wrap; align-items: flex-end; }
.office-filters .office-search { flex: 1 1 16rem; }
.office-actions { display: flex; gap: var(--wo-space-2); flex-wrap: wrap; margin-bottom: var(--wo-space-4); }
.office-history { list-style: none; padding: 0; margin: 0; }
.office-history li { padding: var(--wo-space-2) 0; border-bottom: 1px solid var(--wo-border); }
.office-note { color: var(--wo-text-muted); }
.office-form .dxbl-btn { margin-right: var(--wo-space-2); }
.field-error { color: var(--wo-error-fg); margin-top: var(--wo-space-1); font-size: var(--wo-fs-body-sm); line-height: var(--wo-lh-body-sm); }

/* ── Cards ── */
.wo-card {
    background: var(--wo-surface);
    border: 1px solid var(--wo-border);
    border-radius: var(--wo-radius-lg);
    box-shadow: var(--wo-shadow-1);
    padding: var(--wo-space-5);
}

/* ── Messages (inline; never only a toast) ── */
.office-message, .wo-message {
    display: flex; gap: var(--wo-space-3); align-items: flex-start;
    border-radius: var(--wo-radius-md);
    padding: var(--wo-space-3) var(--wo-space-4);
    border-left: 4px solid currentColor;
    background: var(--wo-success-bg); color: var(--wo-success-fg);
}
.wo-message p { margin: 0; color: var(--wo-text); }
.wo-message--info { background: var(--wo-info-bg); color: var(--wo-info-fg); }
.wo-message--warning { background: var(--wo-warning-bg); color: var(--wo-warning-fg); }
/* EP05-S02: the trial banner above every office page. */
.wo-trial-banner { margin-bottom: var(--wo-space-4); }
.wo-trial-banner a { color: inherit; font-weight: var(--wo-weight-semibold); }
.wo-message--error { background: var(--wo-error-bg); color: var(--wo-error-fg); }

/* ── Pills: status, priority, sync. Each has an icon or a word as well as a colour. ── */
.wo-pill {
    display: inline-flex; align-items: center; gap: var(--wo-space-1);
    border-radius: var(--wo-radius-pill);
    padding: 2px var(--wo-space-2);
    font-size: var(--wo-fs-caption); line-height: var(--wo-lh-caption);
    font-weight: var(--wo-weight-semibold);
    white-space: nowrap;
}
.wo-pill svg { width: 12px; height: 12px; flex: none; }
.wo-pill--new { color: var(--wo-status-new-fg); background: var(--wo-status-new-bg); }
.wo-pill--scheduled { color: var(--wo-status-scheduled-fg); background: var(--wo-status-scheduled-bg); }
.wo-pill--in-progress { color: var(--wo-status-in-progress-fg); background: var(--wo-status-in-progress-bg); }
.wo-pill--on-hold { color: var(--wo-status-on-hold-fg); background: var(--wo-status-on-hold-bg); }
.wo-pill--completed { color: var(--wo-status-completed-fg); background: var(--wo-status-completed-bg); }
.wo-pill--cancelled { color: var(--wo-status-cancelled-fg); background: var(--wo-status-cancelled-bg); }
/* The word in the text colour (blue words are links in a list); the dot has the priority's fixed colour (owner 2026-11-30). */
.wo-priority { display: inline-flex; align-items: center; gap: var(--wo-space-2); font-weight: var(--wo-weight-medium); color: var(--wo-text); }
.wo-priority::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wo-priority-dot, currentColor); }
.wo-priority--low { --wo-priority-dot: var(--wo-priority-low); }
.wo-priority--normal { --wo-priority-dot: var(--wo-priority-normal); }
.wo-priority--high { --wo-priority-dot: var(--wo-priority-high); font-weight: var(--wo-weight-semibold); }
.wo-sync { display: inline-flex; align-items: center; gap: var(--wo-space-1); font-weight: var(--wo-weight-medium); }
.wo-sync svg { width: 16px; height: 16px; }
.wo-sync--sent { color: var(--wo-sync-sent); }
.wo-sync--waiting { color: var(--wo-sync-waiting); }
.wo-sync--sending { color: var(--wo-sync-sending); }
.wo-sync--failed { color: var(--wo-sync-failed); }
.wo-sync--offline { color: var(--wo-sync-offline); }

/* ── Screen states: empty, loading, error, offline, conflict ── */
.wo-state {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--wo-space-2);
    padding: var(--wo-space-8) var(--wo-space-4);
    border: 1px dashed var(--wo-border-strong); border-radius: var(--wo-radius-lg);
    color: var(--wo-text-muted);
}
.wo-state svg { width: 32px; height: 32px; }
.wo-state strong { color: var(--wo-text); font-size: var(--wo-fs-title-sm); }
.wo-state--error { border-style: solid; border-color: var(--wo-error-fg); background: var(--wo-error-bg); }
.wo-state--offline { border-style: solid; border-color: var(--wo-sync-offline); }
.wo-state--conflict { border-style: solid; border-color: var(--wo-warning-fg); background: var(--wo-warning-bg); }
.wo-skeleton {
    height: var(--wo-lh-body); border-radius: var(--wo-radius-sm);
    background: linear-gradient(90deg, var(--wo-surface-2), var(--wo-border), var(--wo-surface-2));
    background-size: 200% 100%;
    animation: wo-shimmer 1.2s linear infinite;
}
@keyframes wo-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .wo-skeleton { animation: none; } }
.job-loading { align-items: stretch; }
.job-loading .wo-skeleton:nth-of-type(2) { width: 80%; }
.job-loading .wo-skeleton:nth-of-type(3) { width: 60%; }

/* ── Blazor error bar ── */
#blazor-error-ui {
    display: none; position: fixed; left: 0; bottom: 0; width: 100%; z-index: 1000; box-sizing: border-box;
    padding: var(--wo-space-3) var(--wo-space-5); background: var(--wo-error-bg); color: var(--wo-error-fg);
    box-shadow: var(--wo-shadow-2);
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: var(--wo-space-3); top: var(--wo-space-2); }

/* ── Design system page (/design) ── */
.ds-theme { display: flex; align-items: center; gap: var(--wo-space-2); flex-wrap: wrap; }
.ds-chip {
    font: inherit; cursor: pointer; min-height: var(--wo-target-control);
    padding: 0 var(--wo-space-3); border-radius: var(--wo-radius-pill);
    border: 1px solid var(--wo-border-strong); background: var(--wo-surface); color: var(--wo-text);
}
.ds-chip[aria-pressed="true"] { background: var(--wo-primary-soft); color: var(--wo-on-primary-soft); border-color: var(--wo-primary); }
.ds-row { display: flex; flex-wrap: wrap; gap: var(--wo-space-3); align-items: center; margin: var(--wo-space-3) 0; }
.ds-stack { display: grid; gap: var(--wo-space-3); }
.ds-grid { display: grid; gap: var(--wo-space-4); grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.ds-sub { margin-top: var(--wo-space-5); }
.ds-swatches { display: grid; gap: var(--wo-space-3); grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); margin-top: var(--wo-space-3); }
.ds-swatch { display: flex; align-items: center; gap: var(--wo-space-2); background: var(--wo-surface); border: 1px solid var(--wo-border); border-radius: var(--wo-radius-md); padding: var(--wo-space-2); }
.ds-swatch small { display: block; color: var(--wo-text-muted); }
.ds-chip-colour { width: 32px; height: 32px; flex: none; border-radius: var(--wo-radius-sm); border: 1px solid var(--wo-border); }
.ds-table { border-collapse: collapse; width: 100%; background: var(--wo-surface); }
.ds-table th, .ds-table td { text-align: left; padding: var(--wo-space-2) var(--wo-space-3); border-bottom: 1px solid var(--wo-border); }
.ds-table th { background: var(--wo-surface-2); color: var(--wo-text-muted); font-weight: var(--wo-weight-semibold); }
.ds-space { display: flex; align-items: center; gap: var(--wo-space-2); }
.ds-space-bar { display: inline-block; height: 12px; background: var(--wo-primary); border-radius: 2px; }
.ds-w60 { width: 60%; } .ds-w70 { width: 70%; } .ds-w80 { width: 80%; }
.ds-preview { display: grid; gap: var(--wo-space-4); grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); margin-top: var(--wo-space-4); }
.ds-preview-panel { border: 1px solid var(--wo-border); border-radius: var(--wo-radius-lg); overflow: hidden; background: var(--p-bg); color: var(--p-text); }
.ds-preview-bar { background: var(--p-primary); color: var(--p-on-primary); padding: var(--wo-space-3) var(--wo-space-4); font-weight: var(--wo-weight-semibold); }
.ds-preview-body { padding: var(--wo-space-4); display: grid; gap: var(--wo-space-3); }
.ds-preview-body a { color: var(--p-primary); }
.ds-preview-btn { font: inherit; font-weight: var(--wo-weight-semibold); border-radius: var(--wo-radius-md); padding: var(--wo-space-2) var(--wo-space-4); min-height: var(--wo-target-control); border: 1px solid transparent; }
.ds-preview-btn--primary { background: var(--p-primary); color: var(--p-on-primary); }
.ds-preview-btn--accent { background: transparent; color: var(--p-accent); border-color: var(--p-accent); }
.ds-preview-soft { background: var(--p-primary-soft); color: var(--p-on-primary-soft); border-radius: var(--wo-radius-pill); padding: 2px var(--wo-space-3); justify-self: start; }
.ds-inputs { display: flex; gap: var(--wo-space-4); flex-wrap: wrap; align-items: flex-end; }
.ds-inputs label { display: flex; flex-direction: column; gap: var(--wo-space-1); color: var(--wo-text-muted); }
.ds-inputs input[type="color"] { width: 48px; height: 32px; padding: 0; border: 1px solid var(--wo-border-strong); border-radius: var(--wo-radius-sm); background: var(--wo-surface); }
.ds-accent { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--wo-space-2); color: var(--wo-text-muted); min-height: 32px; }
.ds-accent-swatch, .branding-found-swatch { display: inline-block; width: 32px; height: 32px; border: 1px solid var(--wo-border-strong); border-radius: var(--wo-radius-sm); flex: none; }

/* ── Logo (Bluefin brand pack): light artwork, reversed artwork in dark mode or on dark surfaces ── */
.wo-logo { display: inline-flex; align-items: center; gap: var(--wo-space-2); }
.wo-logo-art { height: 44px; width: auto; display: block; }
.wo-logo-art--dark { display: none; }
:root[data-theme="dark"] .wo-logo-art--light, .wo-logo--on-dark .wo-logo-art--light { display: none; }
:root[data-theme="dark"] .wo-logo-art--dark, .wo-logo--on-dark .wo-logo-art--dark { display: block; }

/* ── Sign-in and account pages ── */
.account {
    max-width: 26rem; margin: var(--wo-space-12) auto; padding: var(--wo-space-8);
    background: var(--wo-surface); border: 1px solid var(--wo-border);
    border-radius: var(--wo-radius-xl); box-shadow: var(--wo-shadow-2);
}
.account.legal { max-width: 46rem; }
/* EP05-S01: the sign-up form. The address field shows the domain after it. */
.account.signup { max-width: 32rem; }
.account .signup-slug { display: flex; align-items: center; gap: var(--wo-space-2); }
.account .signup-slug input { flex: 1 1 auto; min-width: 0; }
.account .signup-domain { color: var(--wo-text-muted); white-space: nowrap; }
.account .signup-trades { display: flex; flex-direction: column; gap: var(--wo-space-1); margin: var(--wo-space-3) 0 0; padding: 0; border: 0; min-width: 0; }
.account .signup-trades legend { padding: 0; color: var(--wo-text-muted); font-weight: var(--wo-weight-medium); }
.account .signup-trades legend .office-note { font-weight: var(--wo-weight-regular); }
.account .signup-trades .account-check { margin-top: 0; min-height: 32px; }
.account select { min-height: 44px; padding: 0 var(--wo-space-3); border: 1px solid var(--wo-border-strong); border-radius: var(--wo-radius-md); background: var(--wo-surface); color: var(--wo-text); font: inherit; }
.account.legal h2 { margin-top: var(--wo-space-6); }
.account.legal ul, .account.legal ol { padding-left: var(--wo-space-6); }
.account.legal.pricing { max-width: 52rem; }
/* EP22-S05: the public pages (pricing, help, terms, privacy) and the links under each. */
.public-footer { display: flex; flex-wrap: wrap; gap: var(--wo-space-2) var(--wo-space-6); margin-top: var(--wo-space-8); padding-top: var(--wo-space-4); border-top: 1px solid var(--wo-border); }
.public-footer a { display: inline-flex; align-items: center; min-height: 24px; }
.pricing-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--wo-space-4); margin: var(--wo-space-4) 0; }
.pricing-cards .pricing-card { margin: 0; }
.pricing-card p { margin: var(--wo-space-1) 0; }
.pricing-currency { color: var(--wo-text-muted); font-weight: var(--wo-weight-medium); }
.pricing-figure strong { font-family: var(--wo-font-display); font-size: var(--wo-fs-display); line-height: var(--wo-lh-display); }
.pricing-table-wrap { overflow-x: auto; }
.pricing-table { width: 100%; border-collapse: collapse; }
.pricing-table th, .pricing-table td { padding: var(--wo-space-2) var(--wo-space-3); border-bottom: 1px solid var(--wo-border); text-align: left; }
.pricing-table thead th { color: var(--wo-text-muted); font-weight: var(--wo-weight-medium); }
.help-contents { columns: 2 14rem; padding-left: var(--wo-space-6); }
.help-contents li { break-inside: avoid; margin-bottom: var(--wo-space-1); }
.account-logo { display: inline-block; margin-bottom: var(--wo-space-6); text-decoration: none; }
/* EP15-S04: the workspace's own logo on its sign-in page, on a tile of the backdrop worked out at upload (--logo-bg),
   so it reads in the light and the dark theme; a light, see-through logo sits on the menu's dark. */
.account-own { display: block; margin-bottom: var(--wo-space-3); padding: var(--wo-space-3); background: var(--logo-bg, #FFFFFF); border: 1px solid var(--wo-border); border-radius: var(--wo-radius-md); overflow: hidden; }
.account-own img { display: block; max-width: 100%; max-height: 96px; margin: 0 auto; object-fit: contain; }
.account-own--dark { background: var(--wo-nav-bg); border-color: transparent; }
.account-logo--small { margin-bottom: var(--wo-space-4); }
.account-logo--small .wo-logo-art { height: 28px; }
.account form { display: flex; flex-direction: column; gap: var(--wo-space-2); margin: var(--wo-space-4) 0; }
.account label { color: var(--wo-text-muted); font-weight: var(--wo-weight-medium); margin-top: var(--wo-space-2); }
.account input:not([type="hidden"]):not([type="checkbox"]) {
    font: inherit; color: var(--wo-text); background: var(--wo-surface);
    min-height: var(--wo-target-control); padding: var(--wo-space-2) var(--wo-space-3);
    border: 1px solid var(--wo-border-strong); border-radius: var(--wo-radius-md);
}
.account button[type="submit"] {
    font: inherit; font-weight: var(--wo-weight-semibold); cursor: pointer;
    margin-top: var(--wo-space-4); min-height: 40px; padding: 0 var(--wo-space-4);
    color: var(--wo-on-primary); background: var(--wo-primary);
    border: 0; border-radius: var(--wo-radius-md);
}
.account button[type="submit"]:hover { background: var(--wo-primary-hover); }
/* EP12-S07: on a touch screen (a person who types the sign-up address on their phone) the account forms use larger
   text, so a phone browser does not zoom in on a field, and taller fields and buttons for a finger. */
@media (pointer: coarse) {
    .account input:not([type="hidden"]):not([type="checkbox"]), .account select, .account button[type="submit"] { font-size: var(--wo-fs-body-lg); min-height: 2.75rem; }
}
.account-message { color: var(--wo-success-fg); background: var(--wo-success-bg); padding: var(--wo-space-2) var(--wo-space-3); border-radius: var(--wo-radius-md); }

/* ── App frame (EP24-S03), after WorxOrder Enterprise ── */
*, *::before, *::after { box-sizing: border-box; }
.wo-app { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.wo-skip { position: absolute; left: -999px; top: var(--wo-space-2); z-index: 100; padding: var(--wo-space-2) var(--wo-space-3); background: var(--wo-surface); border-radius: var(--wo-radius-md); }
.wo-skip:focus { left: var(--wo-space-2); }

.wo-sidebar {
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    display: flex; flex-direction: column;
    padding: var(--wo-space-3) var(--wo-space-3) var(--wo-space-2);
    color: var(--wo-nav-text);
    background:
        radial-gradient(ellipse at top right, rgba(14, 95, 216, .22) 0%, transparent 55%),
        linear-gradient(180deg, var(--wo-nav-bg) 0%, #0F2240 100%);
}
.wo-sidebar-brand { display: block; padding: 0 var(--wo-space-2); text-decoration: none; }
.wo-sidebar-brand .wo-logo-art { height: 40px; }
.wo-sidebar-workspace { padding: var(--wo-space-2) var(--wo-space-2) 0; font-size: var(--wo-fs-body-sm); color: #9FB0C4; }
/* The workspace's own logo, below WorxOrder's (owner 2026-11-07): on a white tile, as the phone shows it; never stretched. */
.wo-sidebar-own { display: block; margin-top: 0; padding: 2px var(--wo-space-2); background: var(--logo-bg, #FFFFFF); border-radius: var(--wo-radius-md); overflow: hidden; }
.wo-sidebar-own img { display: block; max-width: 100%; max-height: 44px; margin: 0 auto; object-fit: contain; }
.wo-sidebar-own--bare { background: none; padding: 0 var(--wo-space-2); }
/* Under a workspace logo, WorxOrder Lite's own is smaller (owner 2026-11-07: the workspace logo is the most prominent). */
.wo-sidebar-brand--small { margin-top: var(--wo-space-2); }
.wo-sidebar-brand--small .wo-logo-art { height: 28px; }
/* Owner 2026-12-04: WorxOrder Lite's logo sits at the bottom of the menu, just above the line over Help and Support. */
.wo-sidebar-brand--foot { margin: var(--wo-space-2) 0; }
/* "Developed by bluefin" under the user (owner 2026-11-07, as Enterprise). #8A9BB0 reads 4.5:1 on the menu. */
.wo-devby { display: flex; align-items: center; justify-content: center; gap: 6px; padding: var(--wo-space-1) 0 0; font-size: var(--wo-fs-caption); color: #8A9BB0; text-decoration: none; }
.wo-devby img { width: 14px; height: 14px; opacity: .85; }
.wo-devby-word { font-family: var(--wo-font-display); font-size: var(--wo-fs-caption); font-weight: 700; color: #CBD5E1; }
.wo-devby:hover .wo-devby-word { color: #FFFFFF; }
/* A tighter menu (owner 2026-11-07: no scrolling if possible); 32 px rows are still well over the 24 px WCAG target. */
.wo-sidebar nav { margin-top: var(--wo-space-3); }
.wo-nav-section { margin-bottom: var(--wo-space-2); }
/* Owner 2026-12-03: under an open Finance group, Settings looked like part of it. A line sets it apart. */
.wo-nav-settings { margin-top: var(--wo-space-3); padding-top: var(--wo-space-3); border-top: 1px solid rgba(255, 255, 255, .16); }
.wo-nav-group > summary { list-style: none; display: flex; align-items: center; cursor: pointer; border-radius: var(--wo-radius-md); }
.wo-nav-group > summary::-webkit-details-marker { display: none; }
.wo-nav-group > summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform var(--wo-motion-fast); }
.wo-nav-group[open] > summary::after { transform: rotate(45deg); }
.wo-nav-group > summary:hover { color: #DCE6F0; }
.wo-nav-label {
    padding: var(--wo-space-1) var(--wo-space-3); font-size: var(--wo-fs-caption); font-weight: var(--wo-weight-semibold);
    text-transform: uppercase; letter-spacing: .06em; color: #8A9BB0;
}
.wo-nav-item {
    display: flex; align-items: center; gap: var(--wo-space-3); min-height: 32px;
    padding: var(--wo-space-1) var(--wo-space-3); margin-bottom: 1px; border-radius: var(--wo-radius-md);
    color: #C3CFDC; font-weight: var(--wo-weight-medium); text-decoration: none;
    transition: background var(--wo-motion-fast), color var(--wo-motion-fast);
}
.wo-nav-item .wo-icon { width: 18px; height: 18px; color: #8A9BB0; }
.wo-nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.wo-nav-item:hover .wo-icon { color: #DCE6F0; }
.wo-nav-item.active { background: rgba(14, 95, 216, .32); color: #fff; font-weight: var(--wo-weight-semibold); box-shadow: inset 3px 0 0 #4C90FF; }
.wo-nav-item.active .wo-icon { color: #fff; }
.wo-nav-item--soon, .wo-nav-item--soon:hover { color: #8A9BB0; background: none; cursor: default; }
.wo-nav-soon { margin-left: auto; font-size: var(--wo-fs-caption); border: 1px solid #3A4D66; border-radius: var(--wo-radius-pill); padding: 0 var(--wo-space-2); }
.wo-sidebar :is(a, button):focus-visible { outline-color: #8DB8FF; }

.wo-sidebar-footer { margin-top: auto; padding-top: var(--wo-space-2); border-top: 1px solid rgba(255, 255, 255, .08); }
.wo-user { display: flex; align-items: center; gap: var(--wo-space-3); padding: var(--wo-space-1) var(--wo-space-2); }
.wo-avatar {
    width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center;
    background: #0E5FD8; color: #fff; font-family: var(--wo-font-display); font-weight: var(--wo-weight-semibold);
}
.wo-user-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.wo-user-name { color: #fff; font-weight: var(--wo-weight-semibold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wo-user-role { color: #8A9BB0; font-size: var(--wo-fs-caption); }
.wo-user form { margin: 0; }

.wo-icon-btn {
    width: 36px; height: 36px; display: inline-grid; place-items: center; flex: none;
    border: 0; border-radius: var(--wo-radius-md); background: transparent; color: var(--wo-text-muted); cursor: pointer;
}
.wo-icon-btn .wo-icon { width: 20px; height: 20px; }
.wo-icon-btn:hover { background: var(--wo-surface-2); color: var(--wo-text); }
.wo-icon-btn--on-dark { color: #9FB0C4; }
.wo-icon-btn--on-dark:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.wo-main { min-width: 0; display: flex; flex-direction: column; }
.wo-topbar {
    position: sticky; top: 0; z-index: 20; height: 60px;
    display: flex; align-items: center; gap: var(--wo-space-3);
    padding: 0 var(--wo-space-6); background: var(--wo-surface); border-bottom: 1px solid var(--wo-border);
}
.wo-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: var(--wo-space-2); }
.wo-topbar-actions form { margin: 0; }
.wo-page { padding: var(--wo-space-8) var(--wo-space-8) var(--wo-space-12); outline: none; }
.wo-page > .office, .wo-page > main { margin: 0; padding: 0; }

.wo-btn {
    display: inline-flex; align-items: center; gap: var(--wo-space-2); min-height: var(--wo-target-control);
    padding: 0 var(--wo-space-4); border-radius: var(--wo-radius-md); border: 1px solid transparent;
    font: inherit; font-weight: var(--wo-weight-semibold); text-decoration: none; white-space: nowrap; cursor: pointer;
}
.wo-btn .wo-icon { width: 18px; height: 18px; }
.wo-btn--primary { background: var(--wo-primary); color: var(--wo-on-primary); }
.wo-btn--primary:hover { background: var(--wo-primary-hover); color: var(--wo-on-primary); }
.wo-btn--outline { background: var(--wo-surface); color: var(--wo-text); border-color: var(--wo-border-strong); }
.wo-btn--outline:hover { background: var(--wo-surface-2); color: var(--wo-text); }

/* Search */
.wo-search { position: relative; flex: 1; max-width: 460px; }
.wo-search > .wo-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--wo-text-subtle); pointer-events: none; }
.wo-search input {
    width: 100%; height: 38px; padding: 0 var(--wo-space-3) 0 38px; font: inherit; color: var(--wo-text);
    background: var(--wo-surface-2); border: 1px solid transparent; border-radius: var(--wo-radius-md);
}
.wo-search input::placeholder { color: var(--wo-text-subtle); }
.wo-search input:focus { outline: none; background: var(--wo-surface); border-color: var(--wo-primary); box-shadow: 0 0 0 3px var(--wo-primary-soft); }
.wo-search-panel {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; max-height: 70vh; overflow-y: auto;
    background: var(--wo-surface); border: 1px solid var(--wo-border); border-radius: var(--wo-radius-lg);
    box-shadow: var(--wo-shadow-3); padding: var(--wo-space-2);
}
.wo-search-panel ul { list-style: none; margin: 0; padding: 0; }
.wo-search-group { padding: var(--wo-space-2) var(--wo-space-3) var(--wo-space-1); font-size: var(--wo-fs-caption); font-weight: var(--wo-weight-semibold); text-transform: uppercase; letter-spacing: .05em; color: var(--wo-text-subtle); }
.wo-search-panel a { display: flex; flex-direction: column; padding: var(--wo-space-2) var(--wo-space-3); border-radius: var(--wo-radius-md); text-decoration: none; color: var(--wo-text); }
.wo-search-panel a:hover, .wo-search-panel a:focus-visible { background: var(--wo-primary-soft); color: var(--wo-on-primary-soft); }
.wo-search-title { font-weight: var(--wo-weight-semibold); }
.wo-search-detail { font-size: var(--wo-fs-body-sm); color: var(--wo-text-muted); }
.wo-search-empty { margin: 0; padding: var(--wo-space-3); color: var(--wo-text-muted); }

/* Small screens: the menu becomes a drawer */
.wo-scrim { display: none; }
@media (max-width: 960px) {
    .wo-app { grid-template-columns: minmax(0, 1fr); }
    .wo-sidebar { position: fixed; z-index: 50; left: 0; width: 272px; transform: translateX(-100%); transition: transform var(--wo-motion-normal) var(--wo-ease); }
    .wo-nav-open .wo-sidebar { transform: none; }
    .wo-nav-open .wo-scrim { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(6, 14, 25, .5); }
    .wo-topbar { padding: 0 var(--wo-space-3); }
    .wo-topbar-new { display: none; }
    .wo-page { padding: var(--wo-space-5) var(--wo-space-4) var(--wo-space-10); }
}

/* The narrow menu (owner 2026-11-26): icons only, so the page gets the width. The button in the top bar switches it, and
   the cookie "wo-menu" keeps the choice (MainLayout, shell.js). Wide screens only: a small screen has the drawer above.
   The words stay for screen readers, and each link's tooltip says them. The groups still fold: a group's heading is a
   line with its arrow. */
.wo-sidebar-mark { display: none; }
@media (min-width: 961px) {
    .wo-app--rail { grid-template-columns: 64px minmax(0, 1fr); }
    .wo-app--rail .wo-sidebar { padding-left: var(--wo-space-2); padding-right: var(--wo-space-2); }
    .wo-app--rail :is(.wo-nav-text, .wo-user-text, .wo-devby span) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .wo-app--rail :is(.wo-sidebar-workspace, .wo-nav-sub, div.wo-nav-label, .wo-sidebar-brand .wo-logo) { display: none; }
    .wo-app--rail .wo-sidebar-brand { padding: 0; }
    .wo-app--rail .wo-sidebar-mark { display: block; width: 32px; height: 32px; margin: 0 auto; }
    .wo-app--rail .wo-sidebar-brand--small .wo-sidebar-mark { width: 24px; height: 24px; }
    .wo-app--rail .wo-sidebar-own { padding: 2px; }
    .wo-app--rail .wo-nav-item { position: relative; justify-content: center; min-height: 36px; padding: 0; }
    .wo-app--rail .wo-nav-item .wo-icon { width: 20px; height: 20px; }
    .wo-app--rail .wo-nav-group > summary { justify-content: center; min-height: 24px; padding: 0; border-top: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
    .wo-app--rail .wo-nav-group > summary::after { margin-left: 0; }
    .wo-app--rail .wo-nav-help { grid-template-columns: minmax(0, 1fr); }
    .wo-app--rail .wo-nav-count { position: absolute; top: 2px; right: 2px; min-width: 16px; padding: 0 4px; line-height: 16px; }
    .wo-app--rail .wo-user { flex-direction: column; gap: var(--wo-space-1); padding: var(--wo-space-1) 0; }
}

/* ── Page patterns ── */
.wo-page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--wo-space-4); flex-wrap: wrap; margin-bottom: var(--wo-space-6); }
.wo-page-header h1 { margin: 0; font-size: 1.75rem; line-height: 2.25rem; letter-spacing: -0.02em; }
.wo-page-sub { margin: var(--wo-space-1) 0 0; color: var(--wo-text-muted); }
.wo-page-actions { display: flex; gap: var(--wo-space-2); flex-wrap: wrap; align-items: center; }
.wo-back { display: inline-flex; align-items: center; gap: var(--wo-space-1); margin-bottom: var(--wo-space-2); color: var(--wo-text-muted); text-decoration: none; font-weight: var(--wo-weight-medium); }
.wo-back:hover { color: var(--wo-primary); }
.wo-card h2 { font-size: var(--wo-fs-title-sm); line-height: var(--wo-lh-title-sm); margin-bottom: var(--wo-space-4); }
.wo-card + .wo-card { margin-top: var(--wo-space-5); }
.wo-card--flush { padding: 0; overflow: hidden; }
.wo-toolbar { display: flex; gap: var(--wo-space-3); flex-wrap: wrap; align-items: flex-end; margin-bottom: var(--wo-space-4); }
.wo-toolbar .office-search { margin: 0; flex: 1 1 18rem; }
.wo-chips { display: flex; gap: var(--wo-space-2); flex-wrap: wrap; margin-bottom: var(--wo-space-4); }
.wo-chip {
    display: inline-flex; align-items: center; gap: var(--wo-space-2); min-height: 32px; padding: 0 var(--wo-space-3);
    border-radius: var(--wo-radius-pill); border: 1px solid var(--wo-border-strong); background: var(--wo-surface);
    color: var(--wo-text); text-decoration: none; font-weight: var(--wo-weight-medium);
}
.wo-chip:hover { background: var(--wo-surface-2); color: var(--wo-text); }
/* The list in view: filled, so it is clear at once (owner's mockup 2026-11-30). */
.wo-chip[aria-current="page"], .wo-chip[aria-current="page"]:hover { background: var(--wo-primary); color: var(--wo-on-primary); border-color: var(--wo-primary); font-weight: var(--wo-weight-semibold); }
.wo-chip-count { padding: 0 var(--wo-space-2); border-radius: var(--wo-radius-pill); background: var(--wo-surface-2); color: var(--wo-text-muted); font-family: var(--wo-font-mono); font-size: var(--wo-fs-body-sm); font-weight: var(--wo-weight-bold); }
.wo-chip[aria-current="page"] .wo-chip-count { background: color-mix(in srgb, var(--wo-on-primary) 22%, transparent); color: var(--wo-on-primary); }
.wo-split { display: grid; gap: var(--wo-space-5); grid-template-columns: 320px minmax(0, 1fr); align-items: start; }
.wo-split > aside { position: sticky; top: 84px; }
/* Owner 2026-11-08: panels side by side line up at the top. The grid gap spaces them, so a card here never takes the stacked-card margin. */
.wo-split > .wo-card { margin-top: 0; }
@media (max-width: 1100px) { .wo-split { grid-template-columns: minmax(0, 1fr); } .wo-split > aside { position: static; } }
.wo-facts { margin: 0; display: grid; gap: var(--wo-space-3); }
.wo-facts div { display: grid; gap: 2px; }
.wo-facts dt { font-size: var(--wo-fs-caption); text-transform: uppercase; letter-spacing: .05em; color: var(--wo-text-subtle); font-weight: var(--wo-weight-semibold); }
/* The job's status leads the summary, a size up, so it is the first thing read (owner review 2026-10-29). */
.wo-facts-status { padding-bottom: var(--wo-space-3); border-bottom: 1px solid var(--wo-border); }
.wo-facts-status .wo-pill { font-size: var(--wo-fs-body); padding: var(--wo-space-1) var(--wo-space-3); }
.wo-facts-status .wo-pill svg { width: 16px; height: 16px; }
.wo-facts dd { margin: 0; }

/* ── Dashboard (EP24-S03) ── */
/* Owner 2026-11-07: all eight dashboard tiles fit one row on a large screen. */
.wo-tiles { display: grid; gap: var(--wo-space-3); grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); margin-bottom: var(--wo-space-5); }
.wo-tile {
    /* Owner 2026-11-07: label, number and note each share a row with the other tiles (subgrid), so the numbers line up. */
    position: relative; display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: var(--wo-space-1); align-content: start;
    min-width: 0; padding: var(--wo-space-4); border-radius: var(--wo-radius-lg);
    background: var(--wo-surface); border: 1px solid var(--wo-border); box-shadow: var(--wo-shadow-1);
    color: var(--wo-text); text-decoration: none; overflow: hidden;
    transition: transform var(--wo-motion-fast), box-shadow var(--wo-motion-fast);
}
.wo-tile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--tile, var(--wo-primary)); }
.wo-tile:hover { transform: translateY(-1px); box-shadow: var(--wo-shadow-2); color: var(--wo-text); }
.wo-tile-label { font-weight: var(--wo-weight-semibold); color: var(--wo-text-muted); }
.wo-tile-value { font-family: var(--wo-font-display); font-size: clamp(1.75rem, 2.2vw, 2.25rem); line-height: 1.1; font-weight: var(--wo-weight-semibold); letter-spacing: -0.02em; color: var(--tile-text, var(--wo-text)); }
.wo-tiles--compact .wo-tile { grid-row: span 2; }
/* The dashboard's tiles fill their rows evenly (designer's review 2026-12-02): all in one row on a wide page, else
   two rows of the same length; on a narrow page as many as fit. */
.wo-tiles--n7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 1188px) { .wo-tiles--n7 { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.wo-tiles--n8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 1312px) { .wo-tiles--n8 { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.wo-tiles--n9 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (min-width: 1436px) { .wo-tiles--n9 { grid-template-columns: repeat(9, minmax(0, 1fr)); } }
.wo-tiles--n10 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (min-width: 1560px) { .wo-tiles--n10 { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
.wo-tiles--n11 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (min-width: 1684px) { .wo-tiles--n11 { grid-template-columns: repeat(11, minmax(0, 1fr)); } }
.wo-tiles--n12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (min-width: 1808px) { .wo-tiles--n12 { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
@media (max-width: 900px) { .wo-tiles[class*="wo-tiles--n"] { grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); } }
.wo-tile-rule { font-size: var(--wo-fs-caption); line-height: var(--wo-lh-caption); color: var(--wo-text-subtle); }
.wo-tile--active { --tile: var(--wo-primary); }
.wo-tile--overdue { --tile: var(--wo-warning-fg); --tile-text: var(--wo-warning-fg); }
.wo-tile--today { --tile: var(--wo-status-scheduled-fg); }
.wo-tile--unscheduled { --tile: var(--wo-status-new-fg); }
.wo-tile--onhold { --tile: var(--wo-status-on-hold-fg); }
.wo-tile--completed { --tile: var(--wo-success-fg); }
.wo-tile--toinvoice { --tile: var(--wo-accent); }
.wo-tile--quotes { --tile: var(--wo-status-scheduled-fg); }
/* The Finance page's tiles (owner 2026-11-07). */
.wo-tile--draft { --tile: var(--wo-status-new-fg); }
.wo-tile--unpaid { --tile: var(--wo-primary); }
.wo-tile--paid { --tile: var(--wo-success-fg); }
.finance-owing { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--wo-space-2); }
.finance-owing li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--wo-space-3); align-items: baseline; padding-bottom: var(--wo-space-2); border-bottom: 1px solid var(--wo-border); }
.finance-owing li:last-child { border-bottom: 0; }
.finance-owing a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finance-owing-value { font-family: var(--wo-font-mono); font-size: var(--wo-fs-body-sm); }
.wo-card-more { margin: var(--wo-space-3) 0 0; font-size: var(--wo-fs-body-sm); }
/* EP25-S03: the customer's quote page. */
.account.public-quote { max-width: 48rem; }
.public-quote-head { margin-bottom: var(--wo-space-4); }
.public-quote-logo { display: block; max-height: 56px; max-width: 240px; object-fit: contain; }
.public-quote-workspace { font-family: var(--wo-font-display); font-weight: var(--wo-weight-semibold); font-size: var(--wo-fs-title-sm); margin: 0; }
.public-quote-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: var(--wo-space-3); margin: var(--wo-space-4) 0; }
.public-quote-facts dt { color: var(--wo-text-muted); font-size: var(--wo-fs-caption); font-weight: var(--wo-weight-semibold); }
.public-quote-facts dd { margin: 0; }
.public-quote-lines td.public-quote-desc { white-space: normal; }
.public-quote-totals { margin: var(--wo-space-3) 0 var(--wo-space-4) auto; max-width: 18rem; display: grid; gap: var(--wo-space-1); }
.public-quote-totals div { display: flex; justify-content: space-between; gap: var(--wo-space-4); }
.public-quote-totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.public-quote-total { font-weight: var(--wo-weight-semibold); font-size: var(--wo-fs-title-sm); border-top: 1px solid var(--wo-border); padding-top: var(--wo-space-2); }
.public-quote-notes { white-space: pre-line; }
.public-quote-message { padding: var(--wo-space-3) var(--wo-space-4); border-radius: var(--wo-radius-md); background: var(--wo-success-bg); color: var(--wo-success-fg); margin: var(--wo-space-3) 0; }
.public-quote-message p { margin: 0; }
.public-quote-message--warn { background: var(--wo-warning-bg); color: var(--wo-warning-fg); }
.public-quote-answer { margin-top: var(--wo-space-6); padding-top: var(--wo-space-4); border-top: 1px solid var(--wo-border); }
.public-quote-answer summary { cursor: pointer; font-weight: var(--wo-weight-semibold); }
.public-quote-check { display: flex; gap: var(--wo-space-2); align-items: center; color: var(--wo-text) !important; }
.public-quote-check input { width: 20px; height: 20px; }
.public-quote textarea { font: inherit; color: var(--wo-text); background: var(--wo-surface); padding: var(--wo-space-2) var(--wo-space-3); border: 1px solid var(--wo-border-strong); border-radius: var(--wo-radius-md); }
/* The page's logo is the one made for a white page (?on=light). On the dark page it sits on a white plate, so a dark logo can be read. */
/* EP30-S02: a support request's conversation, and the count of unread replies on the Support menu item. */
.support-turns { list-style: none; margin: var(--wo-space-3) 0 0; padding: 0; display: grid; gap: var(--wo-space-3); }
.support-turn { padding: var(--wo-space-3) var(--wo-space-4); border: 1px solid var(--wo-border); border-radius: var(--wo-radius-md); background: var(--wo-surface-2); }
.support-turn--bluefin { background: var(--wo-surface); border-left: 3px solid var(--wo-primary); }
.support-turn-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-2) var(--wo-space-3); margin: 0 0 var(--wo-space-2); color: var(--wo-text-muted); font-size: var(--wo-fs-body-sm); }
.support-turn-head strong { color: var(--wo-text); }
.support-turn-body { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.support-turn-body + .support-turn-body { margin-top: var(--wo-space-2); }
.support-answer { display: flex; flex-direction: column; gap: var(--wo-space-2); margin-top: var(--wo-space-5); padding-top: var(--wo-space-4); border-top: 1px solid var(--wo-border); }
.support-answer label { font-weight: var(--wo-weight-semibold); }
.support-answer textarea { width: 100%; font: inherit; color: var(--wo-text); background: var(--wo-surface); padding: var(--wo-space-2) var(--wo-space-3); border: 1px solid var(--wo-border-strong); border-radius: var(--wo-radius-md); }
.wo-nav-count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 10px; background: #fff; color: var(--wo-nav-bg); font-family: var(--wo-font-mono); font-size: var(--wo-fs-caption); font-weight: var(--wo-weight-semibold); line-height: 20px; text-align: center; }
/* EP32-S03: the workspace's public enquiry form, alone or in a frame on the firm's own website. */
.account.enquire { max-width: 34rem; }
.account.enquire.enquire--embed { max-width: none; margin: 0; padding: var(--wo-space-4); border: 0; border-radius: 0; box-shadow: none; }
.enquire textarea { font: inherit; color: var(--wo-text); background: var(--wo-surface); padding: var(--wo-space-2) var(--wo-space-3); border: 1px solid var(--wo-border-strong); border-radius: var(--wo-radius-md); }
.enquire-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquire-privacy { white-space: pre-line; margin: var(--wo-space-3) 0 0; }
.enquire-consent { color: var(--wo-text-muted); font-size: var(--wo-fs-caption); margin: var(--wo-space-3) 0 0; }
.enquiry-form-code { width: 100%; font-family: var(--wo-font-mono); font-size: var(--wo-fs-caption); color: var(--wo-text); background: var(--wo-surface-2); padding: var(--wo-space-2) var(--wo-space-3); border: 1px solid var(--wo-border); border-radius: var(--wo-radius-md); resize: vertical; }
.enquiry-form-settings form { display: flex; flex-direction: column; gap: var(--wo-space-3); align-items: flex-start; }
.enquiry-form-settings textarea[name] { width: 100%; max-width: 40rem; font: inherit; color: var(--wo-text); background: var(--wo-surface); padding: var(--wo-space-2) var(--wo-space-3); border: 1px solid var(--wo-border-strong); border-radius: var(--wo-radius-md); }
@media (pointer: coarse) { .enquire textarea { font-size: var(--wo-fs-body-lg); } }
[data-theme="dark"] .public-quote-logo { background: var(--logo-bg, #FFFFFF); padding: var(--wo-space-2) var(--wo-space-3); border-radius: var(--wo-radius-md); max-height: 72px; }
.public-quote-answer summary { display: flex; align-items: center; gap: var(--wo-space-2); min-height: 2.75rem; }
.public-quote-answer summary::before { content: "▸"; }
.public-quote-answer[open] summary::before { content: "▾"; }
@media (pointer: coarse) {
    .public-quote textarea { font-size: var(--wo-fs-body-lg); }
}
/* On a phone the four columns do not fit: the description had nine short lines and the Net column was cut off. Each line
   becomes a small block: the description on its own row, then quantity, unit price and net below it, each with its name. */
@media (max-width: 560px) {
    .public-quote-lines thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .public-quote-lines, .public-quote-lines tbody { display: block; }
    .public-quote-lines tr { display: grid; grid-template-columns: auto auto 1fr; gap: var(--wo-space-1) var(--wo-space-4); padding: var(--wo-space-3) 0; border-bottom: 1px solid var(--wo-border); }
    .public-quote-lines td { display: block; padding: 0; border: 0; text-align: left; white-space: nowrap; }
    .public-quote-lines td.public-quote-desc { grid-column: 1 / -1; white-space: normal; }
    .public-quote-lines td:last-child { text-align: right; }
    .public-quote-lines td[data-label]::before { content: attr(data-label); display: block; color: var(--wo-text-muted); font-size: var(--wo-fs-caption); font-weight: var(--wo-weight-semibold); }
    .public-quote-totals { max-width: none; }
}
.account button[type="submit"].public-quote-decline { background: var(--wo-surface); color: var(--wo-error-fg); border: 1px solid var(--wo-error-fg); }
.public-quote-foot { margin-top: var(--wo-space-6); color: var(--wo-text-subtle); font-size: var(--wo-fs-caption); }
/* EP25-S01: the "New quote" box on the quote list. */
.quote-new { margin-bottom: var(--wo-space-4); }
.quote-new-fields { display: flex; flex-wrap: wrap; gap: var(--wo-space-3); align-items: flex-end; margin-top: var(--wo-space-3); }
.quote-new-fields .wo-filter { min-width: 14rem; max-width: 22rem; }
/* A completed job with no issued invoice (owner 2026-11-07). */
.job-to-invoice { color: var(--wo-warning-fg); font-weight: var(--wo-weight-semibold); }

.wo-dash-grid { display: grid; gap: var(--wo-space-5); margin-bottom: var(--wo-space-5); }
.wo-dash-grid > .wo-card { margin: 0; min-width: 0; }
.wo-dash-grid--2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.wo-dash-grid--1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.wo-dash-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1200px) { .wo-dash-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .wo-dash-grid--2-1, .wo-dash-grid--1-2, .wo-dash-grid--3 { grid-template-columns: minmax(0, 1fr); } }

.wo-card-title { padding: var(--wo-space-5) var(--wo-space-5) 0; }
.wo-chart text { font-family: var(--wo-font) !important; }
.wo-chart-summary { margin: var(--wo-space-2) 0 0; font-size: var(--wo-fs-body-sm); color: var(--wo-text-muted); }
.wo-chart-tip { font-family: var(--wo-font); }
.wo-empty { display: flex; align-items: center; gap: var(--wo-space-3); padding: var(--wo-space-5) var(--wo-space-4); border-radius: var(--wo-radius-md); background: var(--wo-surface-2); color: var(--wo-text-muted); }
.wo-card--flush .wo-empty { margin: var(--wo-space-4) var(--wo-space-5) var(--wo-space-5); }
.wo-more { display: inline-flex; align-items: center; gap: var(--wo-space-1); margin-top: var(--wo-space-3); font-weight: var(--wo-weight-semibold); text-decoration: none; }
.wo-more .wo-icon { width: 16px; height: 16px; }
.wo-text-warning { color: var(--wo-warning-fg); }
/* Site hazards (owner 2026-12-03): loud warning chips, always with the word and, from 2026-12-04, the hazard's own icon; tick boxes on the site page that light up the same way. */
.wo-hazards { display: flex; flex-wrap: wrap; gap: var(--wo-space-2); margin: var(--wo-space-1) 0; }
.wo-hazard { display: inline-flex; align-items: center; gap: var(--wo-space-1); padding: 2px var(--wo-space-2); border-radius: var(--wo-radius-sm); background: var(--wo-warning-bg); color: var(--wo-warning-fg); font-weight: var(--wo-weight-semibold); font-size: var(--wo-fs-body-sm); }
.wo-hazard-label { display: inline-flex; align-items: center; gap: var(--wo-space-1); }
.wo-hazard-choices { display: flex; flex-wrap: wrap; gap: var(--wo-space-2); }
.wo-hazard-choice { padding: var(--wo-space-2) var(--wo-space-3); border: 1px solid var(--wo-border); border-radius: var(--wo-radius-sm); }
.wo-hazard-choice--on { background: var(--wo-warning-bg); color: var(--wo-warning-fg); border-color: var(--wo-warning-fg); }

.wo-rows { list-style: none; margin: 0; padding: 0; }
.wo-rows li { display: flex; justify-content: space-between; gap: var(--wo-space-3); padding: var(--wo-space-2) 0; border-bottom: 1px solid var(--wo-border); }
.wo-rows li:last-child { border-bottom: 0; }
.wo-rows a { color: var(--wo-text); text-decoration: none; font-weight: var(--wo-weight-medium); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wo-rows a:hover { color: var(--wo-primary); }
.wo-rows .wo-mono { color: var(--wo-primary); margin-right: var(--wo-space-1); }
.wo-rows-meta { flex: none; font-size: var(--wo-fs-body-sm); }

.wo-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--wo-space-3); }
.wo-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label value" "track track"; gap: var(--wo-space-1) var(--wo-space-3); }
.wo-bars-label { grid-area: label; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wo-bars-value { grid-area: value; font-family: var(--wo-font-mono); font-size: var(--wo-fs-body-sm); color: var(--wo-text-muted); }
.wo-bars-track { grid-area: track; height: 8px; border-radius: var(--wo-radius-pill); background: var(--wo-surface-2); overflow: hidden; }
.wo-bars-fill { display: block; height: 100%; border-radius: inherit; background: var(--wo-status-on-hold-fg); }
.wo-bars-fill--accent { background: var(--wo-primary); }
.wo-w-0 { width: 0%; }
.wo-w-5 { width: 5%; }
.wo-w-10 { width: 10%; }
.wo-w-15 { width: 15%; }
.wo-w-20 { width: 20%; }
.wo-w-25 { width: 25%; }
.wo-w-30 { width: 30%; }
.wo-w-35 { width: 35%; }
.wo-w-40 { width: 40%; }
.wo-w-45 { width: 45%; }
.wo-w-50 { width: 50%; }
.wo-w-55 { width: 55%; }
.wo-w-60 { width: 60%; }
.wo-w-65 { width: 65%; }
.wo-w-70 { width: 70%; }
.wo-w-75 { width: 75%; }
.wo-w-80 { width: 80%; }
.wo-w-85 { width: 85%; }
.wo-w-90 { width: 90%; }
.wo-w-95 { width: 95%; }
.wo-w-100 { width: 100%; }

.wo-table { width: 100%; border-collapse: collapse; }
.wo-table th, .wo-table td { text-align: left; padding: var(--wo-space-3) var(--wo-space-5); border-bottom: 1px solid var(--wo-border); white-space: nowrap; }
.wo-table th { margin-top: var(--wo-space-3); font-size: var(--wo-fs-caption); text-transform: uppercase; letter-spacing: .05em; color: var(--wo-text-subtle); font-weight: var(--wo-weight-semibold); }
.wo-table tbody tr:last-child td { border-bottom: 0; }
.wo-table tbody tr:hover { background: var(--wo-surface-2); }
.wo-card--flush .wo-table { margin-top: var(--wo-space-3); }
.wo-table-wrap { overflow-x: auto; }

/* ── Job page (EP24-S03) ── */
.wo-page-sub .wo-pill { vertical-align: middle; }
.wo-message + .wo-message, .wo-message + .wo-card, .wo-message + .wo-split, .wo-card + .wo-split { margin-top: var(--wo-space-4); }
.wo-card--attention { border-color: var(--wo-warning-fg); box-shadow: 0 0 0 3px var(--wo-warning-bg); margin-bottom: var(--wo-space-5); }
.wo-people { list-style: none; margin: var(--wo-space-1) 0 0; padding: 0; display: grid; gap: var(--wo-space-1); }
.wo-people li { display: flex; align-items: center; gap: var(--wo-space-2); }
.wo-people-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wo-avatar--sm { width: 26px; height: 26px; font-size: var(--wo-fs-caption); }
.wo-assign { display: flex; gap: var(--wo-space-2); margin-top: var(--wo-space-3); }
.wo-assign > :first-child { flex: 1; min-width: 0; }
.wo-timeline { list-style: none; margin: 0; padding: 0 0 0 var(--wo-space-5); border-left: 2px solid var(--wo-border); display: grid; gap: var(--wo-space-4); }
.wo-timeline li { position: relative; display: flex; flex-direction: column; gap: 2px; }
.wo-timeline li::before { content: ""; position: absolute; left: calc(-1 * var(--wo-space-5) - 6px); top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--wo-surface); border: 2px solid var(--wo-primary); }
.wo-timeline-what { font-weight: var(--wo-weight-medium); }
.wo-timeline-when { font-size: var(--wo-fs-body-sm); color: var(--wo-text-muted); }

/* ── Shared page look for the older screens (EP24-S03): titles, cards, settings forms and tables ── */
.office > h1, .settings > h1 { font-size: 1.75rem; line-height: 2.25rem; letter-spacing: -0.02em; margin-bottom: var(--wo-space-6); }
.office-heading { margin-bottom: var(--wo-space-5); }
.office-heading h1 { margin: 0; font-size: 1.75rem; line-height: 2.25rem; letter-spacing: -0.02em; }
.office-heading h2 { margin: 0; }
.office > .office-form, .office > .office-section > .dxbl-grid, .office > .dxbl-grid, .office > .office-section > .office-form {
    background: var(--wo-surface); border: 1px solid var(--wo-border); border-radius: var(--wo-radius-lg); box-shadow: var(--wo-shadow-1);
}
.office > .office-form, .office > .office-section > .office-form { padding: var(--wo-space-5); }
.office > .dxbl-grid, .office > .office-section > .dxbl-grid { overflow: hidden; }
.office > .office-search { max-width: 32rem; }

.settings { max-width: none; }
.settings > section, .settings > form {
    background: var(--wo-surface); border: 1px solid var(--wo-border); border-radius: var(--wo-radius-lg);
    box-shadow: var(--wo-shadow-1); padding: var(--wo-space-5); margin-bottom: var(--wo-space-5); overflow-x: auto;
}
.settings h2 { font-size: var(--wo-fs-title-sm); line-height: var(--wo-lh-title-sm); }
.settings form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--wo-space-2) var(--wo-space-3); }
.settings label { color: var(--wo-text-muted); font-weight: var(--wo-weight-medium); }
.settings input:not([type="hidden"]):not([type="checkbox"]), .settings select {
    font: inherit; color: var(--wo-text); background: var(--wo-surface); min-height: var(--wo-target-control);
    padding: var(--wo-space-1) var(--wo-space-3); border: 1px solid var(--wo-border-strong); border-radius: var(--wo-radius-md);
}
.settings button, .settings input[type="submit"] {
    font: inherit; font-weight: var(--wo-weight-semibold); cursor: pointer; min-height: var(--wo-target-control);
    padding: 0 var(--wo-space-4); border-radius: var(--wo-radius-md);
    color: var(--wo-on-primary); background: var(--wo-primary); border: 1px solid var(--wo-primary);
}
.settings button:hover { background: var(--wo-primary-hover); }
.settings table { width: 100%; border-collapse: collapse; }
.settings th, .settings td { text-align: left; padding: var(--wo-space-3); border-bottom: 1px solid var(--wo-border); vertical-align: middle; }
.settings th { font-size: var(--wo-fs-caption); text-transform: uppercase; letter-spacing: .05em; color: var(--wo-text-subtle); font-weight: var(--wo-weight-semibold); background: var(--wo-surface-2); }
.settings tbody tr:hover { background: var(--wo-surface-2); }
.settings-message { background: var(--wo-success-bg); color: var(--wo-success-fg); padding: var(--wo-space-3) var(--wo-space-4); border-radius: var(--wo-radius-md); border-left: 4px solid currentColor; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 480px) {
    .wo-tiles { gap: var(--wo-space-3); }
    .wo-tile { padding: var(--wo-space-3) var(--wo-space-4); }
    .wo-tile-rule { display: none; }
    .wo-page-header h1 { font-size: 1.5rem; line-height: 2rem; }
}

/* ── Job list filters (EP24-S05 test finding) ── */
.wo-filters { display: flex; flex-wrap: wrap; gap: var(--wo-space-3); align-items: flex-end; margin-bottom: var(--wo-space-4); }
.wo-filter { display: flex; flex-direction: column; gap: var(--wo-space-1); flex: 1 1 12rem; min-width: 0; max-width: 18rem; }
.wo-filter--date { flex-basis: 10rem; }
.wo-filter label { color: var(--wo-text-muted); font-weight: var(--wo-weight-medium); }
.wo-filter-clear { align-self: flex-end; }
a.wo-bars-label { color: var(--wo-text); text-decoration: none; font-weight: var(--wo-weight-medium); }
a.wo-bars-label:hover { color: var(--wo-primary); text-decoration: underline; }
.wo-card-hint { margin: calc(-1 * var(--wo-space-3)) 0 var(--wo-space-3); font-size: var(--wo-fs-body-sm); }

/* ── Diary (EP06-S04) ── */
.office--wide { max-width: none; }
.wo-diary { display: grid; gap: var(--wo-space-5); grid-template-columns: minmax(0, 1fr) 280px; align-items: start; margin-top: var(--wo-space-4); }
@media (max-width: 1100px) { .wo-diary { grid-template-columns: minmax(0, 1fr); } }
.wo-diary-main { min-width: 0; }
/* Both panels start at the same line (owner 2026-11-07): no card margin inside the diary grid. */
.wo-diary > .wo-card { margin: 0; }
.wo-diary-side { position: sticky; top: 84px; }
.wo-diary-side h2 { font-size: var(--wo-fs-title-sm); }
.wo-diary-key-h { margin-top: var(--wo-space-5); }
.wo-diary-key { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--wo-space-2); font-size: var(--wo-fs-body-sm); }
.wo-diary-key li { display: flex; align-items: center; gap: var(--wo-space-2); }
.wo-appt-swatch { width: 14px; height: 14px; border-radius: 4px; border-left: 4px solid; }
.wo-card-body { padding: var(--wo-space-5); }
.wo-day { font-size: var(--wo-fs-title-sm); margin: var(--wo-space-5) 0 var(--wo-space-2); }
.wo-chips--tight { margin: 0; }
.wo-chips button.wo-chip { font: inherit; cursor: pointer; }
.wo-chip[aria-pressed="true"] { background: var(--wo-primary-soft); color: var(--wo-on-primary-soft); border-color: var(--wo-primary); }
.wo-message-action { margin-left: auto; flex: none; }
.wo-scheduler { min-height: 640px; }
/* Appointments take the fixed status colours, never the brand: tint, strong left edge, readable text. */
.wo-scheduler .dxbl-apt-bg.wo-appt--new, .wo-appt-swatch.wo-appt--new { background: var(--wo-status-new-bg); border-left-color: var(--wo-status-new-fg); }
.wo-scheduler .dxbl-apt-bg.wo-appt--scheduled, .wo-appt-swatch.wo-appt--scheduled { background: var(--wo-status-scheduled-bg); border-left-color: var(--wo-status-scheduled-fg); }
.wo-scheduler .dxbl-apt-bg.wo-appt--in-progress, .wo-appt-swatch.wo-appt--in-progress { background: var(--wo-status-in-progress-bg); border-left-color: var(--wo-status-in-progress-fg); }
.wo-scheduler .dxbl-apt-bg.wo-appt--on-hold, .wo-appt-swatch.wo-appt--on-hold { background: var(--wo-status-on-hold-bg); border-left-color: var(--wo-status-on-hold-fg); }
.wo-scheduler .dxbl-apt-bg.wo-appt--completed, .wo-appt-swatch.wo-appt--completed { background: var(--wo-status-completed-bg); border-left-color: var(--wo-status-completed-fg); }
.wo-scheduler .dxbl-apt-bg.wo-appt--cancelled, .wo-appt-swatch.wo-appt--cancelled { background: var(--wo-status-cancelled-bg); border-left-color: var(--wo-status-cancelled-fg); }
.wo-scheduler .dxbl-apt-bg[class*="wo-appt--"] { border-left-width: 4px; border-left-style: solid; opacity: 1; }
/* The scheduler draws its own white strip ("free" time) over the left edge of an appointment. It hid the status
   colour, so the Key did not match (owner 2026-11-30). The strip is made clear; the long selector beats the
   scheduler's own rule. */
.office .wo-scheduler .dxbl-sc-apt .dxbl-apt-status-container .dxbl-apt-status { background: transparent; border-color: transparent; }
.wo-scheduler .dxbl-sc-apt.wo-appt-text, .wo-scheduler .dxbl-sc-apt.wo-appt-text * { color: var(--wo-text) !important; }
.wo-appt-tip-kbd { font-size: var(--wo-fs-caption); }
.wo-diary-bar { display: flex; align-items: center; gap: var(--wo-space-2); flex-wrap: wrap; padding: var(--wo-space-3) var(--wo-space-4); border-bottom: 1px solid var(--wo-border); }
.wo-diary-date { font-family: var(--wo-font-display); font-size: var(--wo-fs-title-sm); margin: 0 var(--wo-space-3); }
.wo-diary-bar .wo-chips { margin-left: auto; }
/* The day's jobs in a line above the grid, with the way to the first one. */
.wo-diary-day { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-3); margin: 0; padding: var(--wo-space-2) var(--wo-space-4); border-bottom: 1px solid var(--wo-border); color: var(--wo-text-muted); font-size: var(--wo-fs-body-sm); }
.wo-diary-day .wo-link-btn { min-height: 28px; }
.wo-scheduler .dxbl-scheduler-toolbar, .wo-scheduler .dxbl-toolbar { display: none; }

/* ── Diary operative picker (owner feedback, after WorxOrder Enterprise) ── */
.wo-diary-who { margin-bottom: var(--wo-space-2); }
.wo-diary-who-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--wo-space-2); }
.wo-diary-who-search { width: 100%; padding: var(--wo-space-2) var(--wo-space-3); border: 1px solid var(--wo-border); border-radius: var(--wo-radius-md); background: var(--wo-surface); color: var(--wo-text); font: inherit; }
.wo-diary-who-search:focus { outline: none; border-color: var(--wo-primary); box-shadow: 0 0 0 3px var(--wo-primary-soft); }
.wo-diary-who-actions { display: flex; gap: var(--wo-space-4); margin: var(--wo-space-2) 0; }
.wo-link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: var(--wo-fs-body-sm); color: var(--wo-primary); cursor: pointer; text-align: start; }
.wo-link-btn:hover { text-decoration: underline; }
/* A name in a grid cell that opens its row for editing: a button that reads as the link it was (a link with an empty
   address went to the dashboard). */
.wo-link-btn--cell { font-size: inherit; text-align: left; text-decoration: underline; text-underline-offset: 2px; }
.wo-diary-who-list { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; border-top: 1px solid var(--wo-border); }
.wo-diary-who-list label { display: flex; align-items: center; gap: var(--wo-space-2); min-height: 40px; cursor: pointer; }
.wo-diary-who-list input { width: 18px; height: 18px; accent-color: var(--wo-primary); flex: none; }
.wo-diary-who-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wo-diary-who-count { flex: none; min-width: 24px; padding: 0 var(--wo-space-2); border-radius: 999px; background: var(--wo-surface-2); font-size: var(--wo-fs-caption); text-align: center; color: var(--wo-text-muted); }

/* ── Diary: drag from "Not booked yet" (EP06-S04, owner request) ── */
.wo-diary-unbooked[draggable="true"] { cursor: grab; border-radius: var(--wo-radius-md); }
.wo-diary-unbooked[draggable="true"]:hover { background: var(--wo-surface-2); }
.wo-diary--dragging .wo-scheduler .dxbl-sc-apt { pointer-events: none; opacity: .6; }
.wo-scheduler .wo-drop-target { background: var(--wo-primary-soft) !important; outline: 2px solid var(--wo-primary); outline-offset: -2px; }

/* ── Diary job card: pinned to the window so it is never cut off (owner feedback) ── */
.wo-appt-card { position: fixed; right: var(--wo-space-5); bottom: var(--wo-space-5); z-index: 1100; width: min(340px, calc(100vw - 2 * var(--wo-space-4)));
    max-height: calc(100vh - 2 * var(--wo-space-5)); overflow-y: auto; display: grid; gap: var(--wo-space-2); box-shadow: var(--wo-shadow-3); }
.wo-appt-card p { margin: 0; }
.wo-appt-card .wo-btn { justify-self: start; }
.wo-appt-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--wo-space-2); }
.wo-appt-card-head h2 { margin: 0; font-size: var(--wo-fs-title-sm); }
@media (max-width: 600px) { .wo-appt-card { right: var(--wo-space-4); left: var(--wo-space-4); bottom: var(--wo-space-4); width: auto; } }

/* ── Clickable dashboard charts (owner feedback) ── */
.wo-chart--links svg path { cursor: pointer; }
.wo-chart-links { list-style: none; margin: var(--wo-space-2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--wo-space-1) var(--wo-space-4); font-size: var(--wo-fs-body-sm); }
.wo-chart-links a { color: var(--wo-text-muted); text-decoration: none; }
.wo-chart-links a:hover, .wo-chart-links a:focus-visible { color: var(--wo-primary); text-decoration: underline; }
.wo-chart-links strong { color: var(--wo-text); }

/* ── Customer import (EP06-S07) ── */
.wo-import-steps { margin: 0 0 var(--wo-space-3); padding-left: 1.25rem; display: grid; gap: var(--wo-space-2); }
.wo-import-pick { display: flex; align-items: center; gap: var(--wo-space-3); margin-top: var(--wo-space-4); }
.wo-import-pick label.wo-btn { cursor: pointer; }
.wo-import-pick:focus-within label.wo-btn { outline: 2px solid var(--wo-primary); outline-offset: 2px; }
.wo-import-sum { list-style: none; margin: 0 0 var(--wo-space-4); padding: 0; display: grid; gap: var(--wo-space-1); }
.wo-card-pad { padding: 0 var(--wo-space-5); }

/* Form rules (EP09-S01). */
.wo-rule-condition { width: 100%; }
.wo-rule-note { display: inline-flex; align-items: center; gap: var(--wo-space-1); margin-left: var(--wo-space-2); font-size: var(--wo-fs-body-sm); color: var(--wo-warning-fg); }
.wo-rule-note svg { width: 16px; height: 16px; }
/* Job types: the forms of a job type as the path the operative follows (owner's mockup, 2026-12-02): four steps
   side by side (one under the other on a narrow page), each a numbered list. */
.jt-forms-head { min-width: 0; }
.jt-forms-head .office-note { margin: var(--wo-space-1) 0 0; }
/* The form library: the forms that can be added, above the four steps when it is open (the Form library button, or
   Add form in a step). A form is dragged from it into a step (owner 2026-12-02); it is filtered by industry. */
.jt-pick { border: 1px solid var(--wo-border); border-radius: var(--wo-radius-lg); padding: var(--wo-space-3); background: var(--wo-surface-2); min-width: 0; margin-top: var(--wo-space-4); }
.jt-pick-head { display: flex; align-items: center; justify-content: space-between; gap: var(--wo-space-2); margin-bottom: var(--wo-space-2); }
.jt-pick h3 { margin: 0; font-size: var(--wo-fs-body); font-family: var(--wo-font-display); font-weight: var(--wo-weight-semibold); display: flex; align-items: center; gap: var(--wo-space-2); }
.jt-pick-filters { display: grid; gap: var(--wo-space-2); margin-bottom: var(--wo-space-3); }
.jt-pick-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-3); }
.jt-pick-row > .dxbl-text-edit { flex: 1 1 14rem; max-width: 24rem; }
.jt-pick-to { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-2); font-size: var(--wo-fs-body-sm); color: var(--wo-text-muted); }
.jt-pick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--wo-space-2); grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); max-height: 15rem; overflow-y: auto; }
.jt-pick-item { display: flex; align-items: center; gap: var(--wo-space-2); padding: var(--wo-space-2); border: 1px solid var(--wo-border); border-radius: var(--wo-radius-md); background: var(--wo-surface); cursor: grab; }
.jt-pick-item:hover { border-color: var(--wo-border-strong); }
.jt-pick-text { flex: 1 1 auto; min-width: 0; display: grid; }
.jt-pick-text .office-note { margin: 0; }
.jt-pick-add { flex: none; padding: 0 var(--wo-space-2); }
.jt-grip { flex: none; display: inline-flex; color: var(--wo-text-muted); cursor: grab; }
.jt-grip svg { width: 16px; height: 16px; }
.jt-form[draggable="true"] { cursor: grab; }
/* While a form is dragged: where it can go, and where it will land. */
.jt-dragging [data-drop] { outline: 1px dashed var(--wo-border-strong); outline-offset: -1px; }
.jt-dragging [data-drop].jt-drop { outline: 2px dashed var(--wo-primary); background: var(--wo-primary-soft); }
.jt-drop-before { box-shadow: 0 -3px 0 0 var(--wo-primary); }
.jt-steps { list-style: none; margin: var(--wo-space-4) 0 0; padding: 0; display: grid; gap: var(--wo-space-3); grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.jt-step { --jt-step-bg: var(--wo-surface-2); --jt-step-fg: var(--wo-text-muted); background: var(--jt-step-bg); border: 1px solid var(--wo-border); border-radius: var(--wo-radius-lg); padding: var(--wo-space-3); min-width: 0; display: flex; flex-direction: column; }
/* Each step has its own tint and icon (the owner's mockup); the words say the step too. */
.jt-step--start { --jt-step-bg: var(--wo-info-bg); --jt-step-fg: var(--wo-info-fg); }
.jt-step--during { --jt-step-bg: var(--wo-warning-bg); --jt-step-fg: var(--wo-warning-fg); }
.jt-step--complete { --jt-step-bg: var(--wo-success-bg); --jt-step-fg: var(--wo-success-fg); }
.jt-step--hold { --jt-step-bg: var(--wo-status-on-hold-bg); --jt-step-fg: var(--wo-status-on-hold-fg); }
.jt-step-head { display: flex; align-items: center; gap: var(--wo-space-2); }
.jt-step-head h3 { margin: 0 auto 0 0; font-size: var(--wo-fs-body); font-family: var(--wo-font-display); font-weight: var(--wo-weight-semibold); color: var(--wo-text); }
.jt-step-head .wo-count { background: var(--wo-surface); color: var(--wo-text); margin-left: 0; }
.jt-step-icon { flex: none; display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--wo-radius-md); background: var(--wo-surface); color: var(--jt-step-fg); }
.jt-step-icon svg { width: 20px; height: 20px; }
.jt-step > .office-note { margin: var(--wo-space-2) 0; color: var(--jt-step-fg); }
.jt-add { margin-top: var(--wo-space-2); display: flex; align-items: center; justify-content: center; gap: var(--wo-space-2); width: 100%; min-height: var(--wo-target-control); border: 1px dashed var(--wo-border-strong); border-radius: var(--wo-radius-md); background: transparent; color: var(--wo-primary); font: inherit; font-weight: var(--wo-weight-semibold); cursor: pointer; }
.jt-add:hover { background: var(--wo-surface); border-color: var(--wo-primary); }
.jt-add svg { width: 18px; height: 18px; }
/* A panel at the right side of the page (Components/Design/SidePanel.razor), for a short task that belongs to a
   list: the list stays where it is (owner 2026-12-02). Under the DevExpress drop-downs, above the page. */
.wo-side-shade { position: fixed; inset: 0; z-index: 900; background: color-mix(in srgb, var(--wo-text) 28%, transparent); }
.wo-side { position: fixed; top: 0; right: 0; bottom: 0; z-index: 901; width: min(460px, 100vw); display: flex; flex-direction: column; background: var(--wo-surface); border-left: 1px solid var(--wo-border); box-shadow: var(--wo-shadow-3); }
.wo-side-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--wo-space-3); padding: var(--wo-space-4) var(--wo-space-5); border-bottom: 1px solid var(--wo-border); }
.wo-side-head h2 { margin: 0; font-size: var(--wo-fs-title-sm); line-height: var(--wo-lh-title-sm); overflow-wrap: anywhere; }
.wo-side-head h2:focus { outline: none; }
.wo-side-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: var(--wo-space-4) var(--wo-space-5); display: grid; gap: var(--wo-space-3); align-content: start; }
.wo-side-body > p { margin: 0; }
.wo-side-body label:not(.jt-check) { display: block; margin-bottom: var(--wo-space-1); font-weight: var(--wo-weight-medium); }
.wo-side-actions { display: flex; flex-wrap: wrap; gap: var(--wo-space-2); padding: var(--wo-space-4) var(--wo-space-5); border-top: 1px solid var(--wo-border); }
.wo-side .jt-usedon { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
@media (prefers-reduced-motion: no-preference) {
    .wo-side { animation: wo-side-in 160ms ease-out; }
    @keyframes wo-side-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}
/* A list on the left and the chosen item on the right (owner 2026-12-02: nothing opens above a list). On a narrow
   page the list is shown first; the item takes its place when one is chosen, with a way back. */
.wo-md { display: grid; gap: var(--wo-space-5); grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
.wo-md-list { position: sticky; top: 84px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; gap: var(--wo-space-3); min-width: 0; }
.wo-md-list-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--wo-space-2); }
.wo-md-list-head h2, .wo-md-head h2 { margin: 0; font-size: var(--wo-fs-title-sm); line-height: var(--wo-lh-title-sm); display: flex; align-items: center; gap: var(--wo-space-2); }
.wo-md-head h2 svg { width: 20px; height: 20px; color: var(--wo-primary); flex: none; }
.wo-md-items { list-style: none; margin: 0 calc(-1 * var(--wo-space-2)); padding: 0; overflow-y: auto; min-height: 0; }
.wo-md-items > li + li { border-top: 1px solid var(--wo-border); }
.wo-md-item { display: flex; align-items: center; gap: var(--wo-space-2); width: 100%; min-height: var(--wo-target-control); padding: var(--wo-space-2) var(--wo-space-3); border: 0; border-left: 3px solid transparent; border-radius: var(--wo-radius-md); background: none; color: var(--wo-text); font: inherit; text-align: start; cursor: pointer; }
.wo-md-item:hover { background: var(--wo-surface-2); }
.wo-md-item[aria-current="true"] { background: var(--wo-primary-soft); color: var(--wo-on-primary-soft); border-left-color: var(--wo-primary); }
.wo-md-item-text { flex: 1 1 auto; min-width: 0; display: grid; }
.wo-md-item-title { font-weight: var(--wo-weight-semibold); overflow-wrap: anywhere; }
.wo-md-item-meta { font-size: var(--wo-fs-body-sm); color: var(--wo-text-muted); }
.wo-md-item[aria-current="true"] .wo-md-item-meta { color: inherit; }
.wo-md-item--off .wo-md-item-title { font-weight: var(--wo-weight-regular); color: var(--wo-text-muted); }
.wo-md-item .wo-count, .wo-md-item .jt-tag { flex: none; }
.wo-md-detail { min-width: 0; }
.wo-md-detail .wo-rule-note { margin-left: 0; }
.wo-md-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: var(--wo-space-3); margin-bottom: var(--wo-space-3); }
.wo-md-actions { display: flex; flex-wrap: wrap; gap: var(--wo-space-2); }
.wo-md-back { display: none; margin-bottom: var(--wo-space-3); min-height: var(--wo-target-control); font-size: var(--wo-fs-body); }
.wo-md-ask-title { margin: 0; font-size: var(--wo-fs-title-sm); line-height: var(--wo-lh-title-sm); }
@media (max-width: 1100px) {
    .wo-md { grid-template-columns: minmax(0, 1fr); }
    .wo-md-list { position: static; max-height: none; }
    .wo-md:not(.wo-md--open) > .wo-md-detail { display: none; }
    .wo-md--open > .wo-md-list { display: none; }
    .wo-md-back { display: inline-flex; align-items: center; }
}
.jt-empty { margin: var(--wo-space-3) 0 0; color: var(--wo-text-muted); font-size: var(--wo-fs-body-sm); }
.jt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--wo-space-2); }
.jt-form { background: var(--wo-surface); border: 1px solid var(--wo-border); border-radius: var(--wo-radius-md); padding: var(--wo-space-2) var(--wo-space-3); }
.jt-form--fixed { border-style: dashed; }
/* The name keeps room for itself: in a narrow step the buttons go to a line of their own under it. */
.jt-form-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-1) var(--wo-space-2); }
.jt-n { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--wo-primary-soft); color: var(--wo-primary); font-family: var(--wo-font-mono); font-size: var(--wo-fs-body-sm); font-weight: var(--wo-weight-semibold); }
.jt-title { flex: 1 1 8rem; min-width: 8rem; overflow-wrap: break-word; font-weight: var(--wo-weight-semibold); }
.jt-pick-text .jt-title { min-width: 0; }
.jt-move { flex: none; }
.jt-move:disabled { opacity: 0.35; cursor: default; }
.jt-tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-2); margin-top: var(--wo-space-2); }
.jt-tag { display: inline-flex; align-items: center; gap: var(--wo-space-1); padding: 0 var(--wo-space-2); border-radius: var(--wo-radius-sm); font-size: var(--wo-fs-body-sm); line-height: 1.6; }
.jt-tag svg { width: 14px; height: 14px; flex: none; }
.jt-tag--must { background: var(--wo-info-bg); color: var(--wo-info-fg); }
.jt-tag--opt { background: var(--wo-surface-2); color: var(--wo-text-muted); }
.jt-tag--every { background: var(--wo-status-on-hold-bg); color: var(--wo-status-on-hold-fg); }
.jt-tag--when { background: var(--wo-warning-bg); color: var(--wo-warning-fg); }
.jt-tag--need { background: var(--wo-error-bg); color: var(--wo-error-fg); }
.jt-check { display: inline-flex; align-items: center; gap: var(--wo-space-1); font-size: var(--wo-fs-body-sm); }
.jt-select { min-height: var(--wo-target-control); padding: 0 var(--wo-space-2); border: 1px solid var(--wo-border-strong); border-radius: var(--wo-radius-md); background: var(--wo-surface); color: var(--wo-text); font: inherit; font-size: var(--wo-fs-body-sm); max-width: 100%; }
.jt-path { display: flex; align-items: flex-start; gap: var(--wo-space-2); margin: var(--wo-space-4) 0 0; color: var(--wo-text-muted); }
.jt-path svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.jt-actions { display: flex; gap: var(--wo-space-2); margin-top: var(--wo-space-4); }
/* Forms: "Used on", the job types that use one form. */
.jt-usedon { display: grid; gap: var(--wo-space-5); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: var(--wo-space-3); }
.jt-usedon-types { border: 0; margin: 0; padding: 0; min-width: 0; }
.jt-usedon-types ul { list-style: none; margin: var(--wo-space-2) 0 0; padding: var(--wo-space-2) 0 0; border-top: 1px solid var(--wo-border); display: grid; gap: var(--wo-space-1); }
.jt-usedon .jt-check { font-size: var(--wo-fs-body); min-height: var(--wo-target-control); }
.jt-check--every { font-weight: var(--wo-weight-semibold); }
.jt-usedon-when { display: grid; gap: var(--wo-space-2); align-content: start; }
.jt-usedon-when > label[for] { color: var(--wo-text-muted); font-size: var(--wo-fs-body-sm); }
.jt-usedon-when .office-note { margin: 0; }
/* The Refresh button and the "Updated" time of a page that shows a change made somewhere else (owner 2026-12-02). */
.wo-refresh { display: inline-flex; align-items: center; gap: var(--wo-space-3); }
.wo-refresh-at { font-size: var(--wo-fs-body-sm); color: var(--wo-text-muted); white-space: nowrap; }
.wo-refresh-btn { display: inline-flex; align-items: center; gap: var(--wo-space-2); }
.wo-refresh-btn svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .wo-refresh-at { display: none; } }
/* The buttons of a page's header are one row and one look (owner 2026-12-02, on the job page: the "more" button sat
   lower than the others, and Edit job's outline was fainter than Refresh's). The wrapper of the "more" button has the
   class of the "more" links elsewhere, which gave it a top margin. A DevExpress outline button takes the app's own
   outline: the stronger border, the same height and the same corners as .wo-btn--outline. */
.wo-page-actions .wo-more { margin-top: 0; }
.wo-page-actions .dxbl-btn { min-height: var(--wo-target-control); --dxbl-btn-border-radius: var(--wo-radius-md); }
.wo-page-actions .dxbl-btn.dxbl-btn-outline-secondary {
    --dxbl-btn-border-color: var(--wo-border-strong); --dxbl-btn-hover-border-color: var(--wo-border-strong);
    --dxbl-btn-active-border-color: var(--wo-border-strong);
}
/* The platform's Page refresh setting. */
.pf-refresh-fields { display: grid; gap: var(--wo-space-4); margin: var(--wo-space-4) 0; }
.pf-refresh-field { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-3); }
.pf-select { min-height: 40px; padding: 0 var(--wo-space-3); border: 1px solid var(--wo-border-strong, var(--wo-border)); border-radius: var(--wo-radius-md); background: var(--wo-surface); color: var(--wo-text); font: inherit; }
.pf-form-actions { margin-top: var(--wo-space-4); }
/* The job page's Next steps: a form answer stopped the job (owner 2026-12-01). The words wrap beside the icon. */
.job-next-stop { display: flex; align-items: flex-start; margin: 0 0 var(--wo-space-3); }
.job-next-stop svg { flex: none; margin-top: 2px; }

/* Job page: the job's forms and completed forms (EP06-S05, EP08-S08). */
.wo-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--wo-space-3); margin-bottom: var(--wo-space-4); }
.wo-card-head h2 { margin-bottom: 0; }
.wo-job-forms td:first-child { white-space: normal; }
.wo-job-forms .wo-rule-note { display: flex; margin-left: 0; margin-top: var(--wo-space-1); }
.wo-job-form-add { margin-bottom: var(--wo-space-4); }
/* Progress is a word and a colour, never colour alone. */
.wo-form-state { display: inline-block; padding: 0 var(--wo-space-2); border-radius: var(--wo-radius-pill); font-size: var(--wo-fs-body-sm); }
.wo-form-state--notstarted { background: var(--wo-surface-2); color: var(--wo-text-subtle); }
.wo-form-state--inprogress { background: var(--wo-info-bg); color: var(--wo-info-fg); }
.wo-form-state--submitted { background: var(--wo-success-bg); color: var(--wo-success-fg); }

/* Form templates (EP08-S04). */
.wo-template-list { list-style: none; margin: 0; padding: 0; }
.wo-template-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--wo-space-4); padding: var(--wo-space-3) 0; border-bottom: 1px solid var(--wo-border); }
.wo-template-list li:last-child { border-bottom: 0; }
.wo-template-list .office-note { margin-left: var(--wo-space-2); }
.wo-trades-hint { margin: var(--wo-space-4) 0 0; }
.wo-other-trades > summary { cursor: pointer; font-family: var(--wo-font-display); font-weight: var(--wo-weight-semibold); font-size: var(--wo-fs-title-sm); }
.wo-other-trades > summary:focus-visible { outline: 2px solid var(--wo-primary); outline-offset: 4px; border-radius: var(--wo-radius-sm); }
.wo-other-trade { margin-top: var(--wo-space-5); }
.wo-other-trade h2 { font-size: var(--wo-fs-body); }
/* Forms list: a row's buttons side by side, and the note about forms not in use (owner 2026-11-27). */
.wo-forms-row-actions { display: inline-flex; gap: var(--wo-space-2); }
.wo-forms-hidden { margin: 0 0 var(--wo-space-3); }
.wo-forms-norule { margin: 0 0 var(--wo-space-4); }
.wo-forms-new { margin-bottom: var(--wo-space-4); }
.wo-forms-new .office-form { display: grid; gap: var(--wo-space-3); max-width: 520px; }
.wo-forms-new label { display: block; margin-bottom: var(--wo-space-1); font-weight: var(--wo-weight-medium); }
.wo-forms-new .wo-form-actions { display: flex; gap: var(--wo-space-2); }
.wo-forms-key { font-family: var(--wo-font-mono); }
.wo-forms-norule ul { margin: var(--wo-space-1) 0 0; padding-left: var(--wo-space-5); }
.wo-forms-norule li + li { margin-top: var(--wo-space-2); }
.wo-trades { display: flex; flex-wrap: wrap; gap: var(--wo-space-2) var(--wo-space-6); margin: var(--wo-space-3) 0; }
.wo-forms-norule-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-3); margin-left: var(--wo-space-2); }

/* ── Users and phones (/settings/users): a quiet list, and one panel to manage a user ── */
.users .users-message { margin-bottom: var(--wo-space-5); }
.users .users-panel { margin-bottom: var(--wo-space-5); }
.users .wo-card + .wo-card { margin-top: 0; }
.users .wo-card-head h2 { font-size: var(--wo-fs-title-sm); line-height: var(--wo-lh-title-sm); margin: 0; }
.users .users-sub { margin: var(--wo-space-1) 0 0; color: var(--wo-text-muted); display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-2); }
.users label { color: var(--wo-text-muted); font-weight: var(--wo-weight-medium); }
.users input:not([type="hidden"]):not([type="checkbox"]), .users select {
    font: inherit; color: var(--wo-text); background: var(--wo-surface); min-height: var(--wo-target-control);
    padding: var(--wo-space-1) var(--wo-space-3); border: 1px solid var(--wo-border-strong); border-radius: var(--wo-radius-md);
}
.users form button, .users .users-secondary, .users .users-danger, .users .users-close {
    font: inherit; font-weight: var(--wo-weight-semibold); cursor: pointer; white-space: nowrap;
    min-height: var(--wo-target-control); padding: 0 var(--wo-space-4); border-radius: var(--wo-radius-md);
    color: var(--wo-on-primary); background: var(--wo-primary); border: 1px solid var(--wo-primary);
}
.users form button:hover { background: var(--wo-primary-hover); }
.users .users-secondary, .users .users-close { color: var(--wo-text); background: var(--wo-surface); border-color: var(--wo-border-strong); }
.users .users-secondary:hover, .users .users-close:hover { background: var(--wo-surface-2); }
.users .users-danger { color: var(--wo-error-fg); background: var(--wo-surface); border-color: var(--wo-error-fg); }
.users .users-danger:hover { background: var(--wo-error-bg); }
.users .users-close { min-height: 32px; padding: 0 var(--wo-space-3); }

/* Invite: the fields in one row on a wide screen, stacked on a narrow one. */
.users .users-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--wo-space-3); }
.users .users-field { display: grid; gap: var(--wo-space-1); flex: 1 1 14rem; }
.users .users-field--short { flex: 0 1 11rem; }
.users .users-panel > .office-note { margin: var(--wo-space-3) 0 0; }

/* Add a phone. The code draws its own white quiet zone, so it reads the same in light and dark. */
.users .phone-code { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--wo-space-3) var(--wo-space-5); align-items: center; }
.users .phone-code .wo-card-head { grid-column: 1 / -1; margin-bottom: 0; }
.users .phone-code .qr { border-radius: var(--wo-radius-sm); overflow: hidden; line-height: 0; }
.users .phone-code .qr svg { width: 160px; height: 160px; }
.users .phone-code ol { margin: 0; padding-left: 1.25rem; display: grid; gap: var(--wo-space-2); }

/* Manage: one labelled row per job to do. */
.users .users-rows { display: grid; }
.users .users-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--wo-space-1) var(--wo-space-4); padding: var(--wo-space-4) 0; border-top: 1px solid var(--wo-border); align-items: start; }
.users .users-row > :not(.users-row-label) { grid-column: 2; }
.users .users-row > p { margin: 0; }
.users .users-row-label { font-weight: var(--wo-weight-semibold); color: var(--wo-text); grid-row: 1; padding-top: var(--wo-space-2); }
.users .users-row-hint { color: var(--wo-text-subtle); font-size: var(--wo-fs-body-sm); line-height: var(--wo-lh-body-sm); }
.users .users-row .users-form input:not([type="checkbox"]) { flex: 1 1 16rem; max-width: 28rem; }
.users .users-check { display: flex; align-items: center; gap: var(--wo-space-2); color: var(--wo-text); font-weight: var(--wo-weight-regular); min-height: var(--wo-target-control); }
.users .users-check input { width: 20px; height: 20px; accent-color: var(--wo-primary); flex: none; }
.users .users-actions { display: flex; flex-wrap: wrap; gap: var(--wo-space-2); }
.users .users-phones { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--wo-space-2); }
.users .users-phones li { display: flex; align-items: center; justify-content: space-between; gap: var(--wo-space-3); padding: var(--wo-space-3); border: 1px solid var(--wo-border); border-radius: var(--wo-radius-md); }
.users .users-phones .users-row-hint { display: block; }
.users .invite-link { margin-bottom: var(--wo-space-4); }
.users .invite-link > div { flex: 1; display: grid; gap: var(--wo-space-2); }
.users .invite-link input { width: 100%; font-family: var(--wo-font-mono); font-size: var(--wo-fs-body-sm); }
@media (max-width: 640px) {
    .users .users-row { grid-template-columns: minmax(0, 1fr); }
    .users .users-row > :not(.users-row-label) { grid-column: 1; }
    .users .phone-code { grid-template-columns: minmax(0, 1fr); }
}

/* The list: one line per user. */
.users .users-count { margin-left: var(--wo-space-2); font-family: var(--wo-font-mono); font-size: var(--wo-fs-body-sm); color: var(--wo-text-subtle); font-weight: var(--wo-weight-medium); }
.users .users-grid { border: 0; border-top: 1px solid var(--wo-border); border-radius: 0; }
.users .users-name { font: inherit; font-weight: var(--wo-weight-semibold); color: var(--wo-primary); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.users .users-name:hover { text-decoration: underline; }
.users .users-you { margin-left: var(--wo-space-2); padding: 0 var(--wo-space-2); border-radius: var(--wo-radius-pill); background: var(--wo-surface-2); color: var(--wo-text-muted); font-size: var(--wo-fs-caption); font-weight: var(--wo-weight-semibold); }
.users .users-email { color: var(--wo-text-muted); }
.users .users-none { color: var(--wo-text-subtle); }
.users .users-grid .users-secondary { min-height: 32px; padding: 0 var(--wo-space-3); }
.users .users-pill--active { color: var(--wo-success-fg); background: var(--wo-success-bg); }
.users .users-pill--invited { color: var(--wo-info-fg); background: var(--wo-info-bg); }
.users .users-pill--off { color: var(--wo-text-muted); background: var(--wo-surface-2); }
.users .users-pill--bounced { color: var(--wo-warning-fg); background: var(--wo-warning-bg); margin-left: var(--wo-space-2); }
.users .users-twostep { margin-left: var(--wo-space-2); color: var(--wo-text-subtle); font-size: var(--wo-fs-caption); }

/* Users on a narrow screen: cards instead of the grid (its five columns need about 900 px). */
.users .users-narrow { display: none; }
.users .users-narrow-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 11rem); gap: var(--wo-space-2); padding: var(--wo-space-3) var(--wo-space-4); border-top: 1px solid var(--wo-border); }
.users .users-narrow-empty { padding: var(--wo-space-4); margin: 0; }
.users .users-cards { list-style: none; margin: 0; padding: 0; }
.users .users-cards li { border-top: 1px solid var(--wo-border); }
.users .users-card {
    display: grid; gap: 2px; width: 100%; text-align: left; font: inherit; color: var(--wo-text); cursor: pointer;
    background: none; border: 0; padding: var(--wo-space-3) var(--wo-space-4); min-height: var(--wo-target-control);
}
.users .users-card:hover { background: var(--wo-surface-2); }
.users .users-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-2); }
.users .users-card-top .users-you { margin-left: 0; }
.users .users-card-top .users-twostep { display: none; }
.users .users-card-name { font-weight: var(--wo-weight-semibold); color: var(--wo-primary); margin-right: auto; }
.users .users-card .users-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--wo-fs-body-sm); }
.users .users-card-meta { color: var(--wo-text-subtle); font-size: var(--wo-fs-body-sm); }
/* By the list's own width, not the screen's: the side menu takes room too. */
.users .users-list { container-type: inline-size; }
@container (max-width: 880px) {
    .users .users-grid { display: none; }
    .users .users-narrow { display: block; }
}
@container (max-width: 400px) {
    .users .users-narrow-filters { grid-template-columns: minmax(0, 1fr); }
}

/* ── Settings › Branding (EP15-S01) ── */
.branding .wo-card + .wo-card { margin-top: var(--wo-space-5); }
.branding .branding-logo { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: var(--wo-space-5); align-items: start; }
.branding .branding-logo-box { min-height: 120px; display: flex; align-items: center; justify-content: center; padding: var(--wo-space-4);
    border: 1px dashed var(--wo-border-strong); border-radius: var(--wo-radius-md); background: var(--wo-surface-2); }
.branding .branding-logo-box img { max-width: 100%; max-height: 96px; }
.branding .branding-logo-actions { display: flex; flex-wrap: wrap; gap: var(--wo-space-2); align-items: center; }
.branding .branding-logo-actions .office-note, .branding .branding-logo-actions .field-error { flex-basis: 100%; margin: 0; }
.branding .branding-upload { cursor: pointer; }
.branding .branding-upload:focus-within { outline: var(--wo-focus-width) solid var(--wo-primary); outline-offset: var(--wo-focus-offset); }
.branding .branding-remove { color: var(--wo-error-fg); border-color: var(--wo-error-fg); }
.branding .branding-colour-actions { display: flex; flex-wrap: wrap; gap: var(--wo-space-3); align-items: center; margin-top: var(--wo-space-4); }
.branding .branding-save { display: flex; flex-wrap: wrap; gap: var(--wo-space-3); align-items: center; margin-top: var(--wo-space-5); padding-top: var(--wo-space-4); border-top: 1px solid var(--wo-border); }
.branding .branding-saved { padding: var(--wo-space-2) var(--wo-space-3); }
.branding .branding-marks { list-style: none; margin: 0 0 var(--wo-space-4); padding: 0; display: grid; gap: var(--wo-space-3); grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.branding .branding-mark { display: flex; flex-direction: column; gap: var(--wo-space-2); padding: var(--wo-space-3); border: 1px solid var(--wo-border); border-radius: var(--wo-radius-md); }
.branding .branding-mark-box { display: flex; align-items: center; justify-content: center; height: 80px; padding: var(--wo-space-2); background: var(--wo-surface-2); border-radius: var(--wo-radius-sm); }
.branding .branding-mark-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.branding .branding-mark-name { font-weight: var(--wo-weight-semibold); }
.branding .branding-mark .branding-remove { align-self: flex-start; }
.branding .branding-mark-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--wo-space-3); }
.branding .branding-mark-field { display: flex; flex-direction: column; gap: var(--wo-space-1); min-width: 14rem; color: var(--wo-text-muted); }
.branding .branding-found { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-3); margin-top: var(--wo-space-4); }
.branding .branding-found p { flex: 1 1 16rem; margin: 0; }
@media (max-width: 640px) { .branding .branding-logo { grid-template-columns: minmax(0, 1fr); } }

/* ── Settings › Invoicing (EP17-S01) ── */
.invoicing-settings .wo-card + .wo-card { margin-top: var(--wo-space-5); }
.invoicing-settings .invoicing-hint { margin: var(--wo-space-2) 0 var(--wo-space-4); }
.invoicing-settings .invoicing-rates-heading { font-size: var(--wo-fs-body); font-weight: var(--wo-weight-semibold); margin: var(--wo-space-5) 0 var(--wo-space-1); }
.invoicing-settings .invoicing-rates { margin-top: var(--wo-space-3); }
.invoicing-settings .invoicing-rates input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--wo-primary); }
.invoicing-settings .invoicing-starter { margin-top: var(--wo-space-2); } /* site quotes: start from the usual cancellation words */
.invoicing-settings .invoicing-percent { font-family: var(--wo-font-mono); }
.invoicing-settings .invoicing-used-for { white-space: normal; color: var(--wo-text-muted); }
.invoicing-settings .invoicing-default { margin-left: var(--wo-space-1); }
.invoicing-settings .invoicing-save { display: flex; flex-wrap: wrap; gap: var(--wo-space-3); align-items: center; margin-top: var(--wo-space-5); }
.invoicing-settings .invoicing-saved { padding: var(--wo-space-2) var(--wo-space-3); }
/* Phones: each rate as one compact row (tick, name and rate, then what it is for). */
@media (max-width: 640px) {
    .invoicing-settings .invoicing-rates thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .invoicing-settings .invoicing-rates tr { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; column-gap: var(--wo-space-2);
        padding: var(--wo-space-3) 0; border-bottom: 1px solid var(--wo-border); }
    .invoicing-settings .invoicing-rates tbody tr:last-child { border-bottom: 0; }
    .invoicing-settings .invoicing-rates td { padding: 0; border: 0; white-space: normal; }
    .invoicing-settings .invoicing-rates td:first-child { grid-row: span 2; }
    .invoicing-settings .invoicing-rates .invoicing-used-for { grid-column: 2 / -1; font-size: var(--wo-fs-body-sm); }
}

/* ── Invoice page and job invoice card (EP17-S02) ── */
.invoice .invoice-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wo-space-5); min-width: 0; container-type: inline-size; }
.invoice .invoice-confirm, .invoice .invoice-message { margin-bottom: var(--wo-space-5); }
.invoice .invoice-confirm p { margin: 0 0 var(--wo-space-3); }
.invoice .invoice-confirm-total { font-weight: var(--wo-weight-semibold); }
.invoice .invoice-confirm-field { display: grid; gap: var(--wo-space-1); max-width: 28rem; margin-bottom: var(--wo-space-3); }
.invoice .invoice-confirm-field label { font-weight: var(--wo-weight-semibold); }
.invoice .invoice-confirm-check { display: flex; gap: var(--wo-space-2); align-items: center; margin-bottom: var(--wo-space-3); }
/* EP17-S05: the invoice list. */
.invoice-overdue { color: var(--wo-error-fg); font-weight: var(--wo-weight-semibold); }
.invoice-list-credit { display: block; font-size: var(--wo-fs-body-sm); }
/* EP17-S06: the export box. */
.invoice-export { margin-bottom: var(--wo-space-4); }
.invoice-export-fields { display: flex; flex-wrap: wrap; gap: var(--wo-space-3); align-items: flex-end; margin: var(--wo-space-3) 0; }
.invoice-export-fields .wo-filter { min-width: 12rem; }
.invoice-export-check { display: flex; gap: var(--wo-space-2); align-items: center; min-height: 2.5rem; }
.invoice .invoice-confirm-actions { display: flex; flex-wrap: wrap; gap: var(--wo-space-2); }
.invoice .invoice-lines { display: grid; gap: var(--wo-space-3); }
.invoice .invoice-line { display: grid; grid-template-columns: 7rem 9rem minmax(10rem, 1fr) 7rem 2.75rem; gap: var(--wo-space-2) var(--wo-space-3);
    align-items: start; padding-bottom: var(--wo-space-4); border-bottom: 1px solid var(--wo-border); }
.invoice .invoice-cell { display: grid; gap: var(--wo-space-1); min-width: 0; }
.invoice .invoice-cell--desc { grid-column: 1 / -1; }
.invoice .invoice-label { font-size: var(--wo-fs-caption); color: var(--wo-text-subtle); font-weight: var(--wo-weight-semibold); }
.invoice .invoice-num { text-align: right; }
.invoice .invoice-net { padding-top: var(--wo-space-2); font-family: var(--wo-font-mono); }
.invoice .invoice-cell--remove { align-self: end; }
.invoice .invoice-add { margin-top: var(--wo-space-3); }
/* EP26-S01: "Add line" and the price list picker side by side; the picker takes the room that is left. */
.invoice .invoice-add-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--wo-space-3) var(--wo-space-4); }
.invoice .invoice-pick { flex: 1 1 18rem; max-width: 32rem; display: flex; flex-direction: column; gap: var(--wo-space-1); margin-top: var(--wo-space-3); }
.price-todo { margin-left: var(--wo-space-2); }
/* EP26-S03: the starter lists a workspace can add, one tick each. */
.price-starters { display: grid; gap: var(--wo-space-1); margin: var(--wo-space-3) 0; padding: 0; border: 0; min-width: 0; }
.price-starters .account-check { display: flex; align-items: center; gap: var(--wo-space-2); min-height: 32px; }
.price-starters legend { padding: 0; margin-bottom: var(--wo-space-1); font-size: var(--wo-fs-body-sm); font-weight: var(--wo-weight-semibold); color: var(--wo-text-muted); }
.price-starters + .price-starters { margin-top: 0; }
/* A list the workspace has in full: a tick, its name and the word "Added" (a word as well as a colour). */
.price-starter-added { display: flex; align-items: center; gap: var(--wo-space-2); min-height: 32px; margin: 0; }
.price-starter-added > .wo-icon { width: 18px; height: 18px; flex: none; color: var(--wo-success-fg); }
/* EP26-S04: the job's work and parts: the totals sit at the right, under the lines' Net column. */
.invoice.job-lines .job-lines-totals { max-width: 18rem; margin-left: auto; }
/* EP26-S02: the items of a bundle, one row each. */
.bundle-lines-title { margin: 0; display: flex; align-items: center; gap: var(--wo-space-2); }
/* The bundle's items by drag and drop (owner 2026-12-02), with the classes of the Job types page. */
.bundle-head { margin: var(--wo-space-5) 0 0; align-items: center; }
.bundle-drop { margin-top: var(--wo-space-3); padding: var(--wo-space-3); border: 1px solid var(--wo-border); border-radius: var(--wo-radius-lg); background: var(--wo-surface-2); }
.bundle-item { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-2) var(--wo-space-3); cursor: grab; }
.bundle-item-text { flex: 1 1 12rem; }
.bundle-item-qty { flex: none; display: flex; align-items: center; gap: var(--wo-space-2); width: 9rem; }
.bundle-item-qty .invoice-label { margin: 0; }
.bundle-item-net { flex: none; min-width: 5.5rem; text-align: right; font-family: var(--wo-font-mono); }
/* A page with changes that are not saved says so beside Save changes. */
.wo-md-dirty { display: inline-flex; align-items: center; gap: var(--wo-space-1); padding: 0 var(--wo-space-2); border-radius: var(--wo-radius-sm); background: var(--wo-warning-bg); color: var(--wo-warning-fg); font-size: var(--wo-fs-body-sm); align-self: center; }
.wo-md-dirty svg { width: 14px; height: 14px; }
.wo-md-clean { align-self: center; font-size: var(--wo-fs-body-sm); color: var(--wo-text-muted); }
/* "When" on a form's card: every job of the type, or "Only when…" (owner 2026-12-02, in place of the Form rules page). */
.jt-when { display: inline-flex; align-items: center; gap: var(--wo-space-1); min-height: 28px; padding: 0 var(--wo-space-2); border: 1px solid var(--wo-border-strong); border-radius: var(--wo-radius-sm); background: var(--wo-surface); color: var(--wo-text-muted); font: inherit; font-size: var(--wo-fs-body-sm); cursor: pointer; text-align: start; }
.jt-when:hover { border-color: var(--wo-primary); color: var(--wo-text); }
.jt-when svg { width: 14px; height: 14px; flex: none; }
.jt-when--only { background: var(--wo-warning-bg); color: var(--wo-warning-fg); border-color: transparent; }
.jt-when-edit { display: grid; gap: var(--wo-space-2); margin-top: var(--wo-space-3); padding-top: var(--wo-space-3); border-top: 1px solid var(--wo-border); justify-items: start; }
.jt-when-edit .office-note { margin: 0; }
.jt-copy { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-2); }
.price-starter-fold { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-2); margin: var(--wo-space-3) 0; color: var(--wo-text-muted); }
.price-starter-fold svg { width: 18px; height: 18px; flex: none; }
.bundle-lines { display: grid; gap: var(--wo-space-3); }
.bundle-line { display: grid; grid-template-columns: minmax(12rem, 1fr) 7rem 7rem auto; gap: var(--wo-space-3); align-items: end; }
.bundle-cell { display: flex; flex-direction: column; gap: var(--wo-space-1); min-width: 0; }
.bundle-cell--net { text-align: right; padding-bottom: var(--wo-space-2); font-family: var(--wo-font-mono); }
.bundle-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--wo-space-3); margin-top: var(--wo-space-3); }
.bundle-total { margin: 0; }
.bundle-actions { display: flex; gap: var(--wo-space-2); margin: var(--wo-space-4) 0 var(--wo-space-2); }
@media (max-width: 40rem) { .bundle-line { grid-template-columns: 1fr 6rem auto; } .bundle-cell--net { display: none; } }
.invoice .invoice-note { margin: var(--wo-space-3) 0 0; }
.invoice .invoice-table td.invoice-desc { white-space: pre-line; min-width: 14rem; }
.invoice .invoice-table .invoice-num { font-family: var(--wo-font-mono); }
.invoice .invoice-address { white-space: pre-line; }
.invoice .invoice-totals { margin: var(--wo-space-4) 0 0; padding-top: var(--wo-space-3); border-top: 1px solid var(--wo-border); display: grid; gap: var(--wo-space-2); }
.invoice .invoice-totals div { display: flex; justify-content: space-between; gap: var(--wo-space-3); }
.invoice .invoice-totals dt { color: var(--wo-text-muted); }
.invoice .invoice-totals dd { margin: 0; font-family: var(--wo-font-mono); }
.invoice .invoice-total { padding-top: var(--wo-space-2); border-top: 1px solid var(--wo-border); font-weight: var(--wo-weight-semibold); font-size: var(--wo-fs-body-lg); }
.invoice .invoice-total dt { color: var(--wo-text); }
.job-invoice { margin-bottom: var(--wo-space-5); }
.job-invoice .wo-card-head { margin-bottom: var(--wo-space-3); }
.job-invoice p { margin: 0 0 var(--wo-space-3); }
.job-invoice .job-invoice-line { display: flex; flex-wrap: wrap; gap: var(--wo-space-3); align-items: center; }
.job-invoice .job-invoice-number, .job-invoice .job-invoice-total { font-family: var(--wo-font-mono); }
.job-invoice .job-invoice-total { margin-left: auto; font-weight: var(--wo-weight-semibold); }
/* Narrow cards (a phone): quantity and price side by side, then the VAT rate, then the net. */
@container (max-width: 520px) {
    .invoice .invoice-line { grid-template-columns: 1fr 1fr; }
    .invoice .invoice-line > :nth-child(4) { grid-column: 1 / -1; }
    .invoice .invoice-num { text-align: left; }
    .invoice .invoice-cell--remove { justify-self: end; }
}

/* ── Job report card (EP15-S02) ── */
.job-report { margin-bottom: var(--wo-space-5); }
.job-report .wo-card-head { margin-bottom: var(--wo-space-3); }
.job-report p { margin: 0 0 var(--wo-space-3); }
.job-report .job-report-again { font: inherit; color: var(--wo-primary); background: none; border: 0; padding: 0; margin-left: var(--wo-space-2); cursor: pointer; text-decoration: underline; }
.job-report .wo-message { margin-bottom: var(--wo-space-3); }

/* Grid rows that open something (RowLinks): a hand pointer and a hover colour, so the row reads as clickable. */
.wo-row-link { cursor: pointer; }
/* Hover in the brand's soft tint, a different colour from the grey stripes (owner 2026-11-06: grey on grey clashed). */
.wo-row-link:hover > td { background: var(--wo-primary-soft); }

/* ── Lists on a narrow screen (owner 2026-11-06: the office is used on phones too) ──
   A list's wrapper is .wo-list. Below 640 px of its own width (not the screen's: the side menu
   takes room too) the grid or table gives way to .wo-cardlist: one card per row, the main facts
   first, the whole card opens the row. The grid's column filters go with it; the page's search stays. */
.wo-list { container-type: inline-size; }
.wo-cardlist { display: none; list-style: none; margin: 0; padding: 0; }
.wo-cardlist > li + li { border-top: 1px solid var(--wo-border); }
.wo-cardrow {
    display: grid; gap: 2px; width: 100%; min-height: var(--wo-target-control); padding: var(--wo-space-3) var(--wo-space-2);
    color: var(--wo-text); text-decoration: none; text-align: left; font: inherit; background: none; border: 0;
}
a.wo-cardrow, button.wo-cardrow { cursor: pointer; border-radius: var(--wo-radius-md); }
a.wo-cardrow:hover, button.wo-cardrow:hover { background: var(--wo-surface-2); color: var(--wo-text); }
.wo-cardrow-top { display: flex; align-items: center; flex-wrap: wrap; gap: var(--wo-space-2); }
.wo-cardrow-title { margin-right: auto; min-width: 0; font-weight: var(--wo-weight-semibold); color: var(--wo-primary); }
.wo-cardrow-title--plain { color: var(--wo-text); }
.wo-cardrow-line { overflow: hidden; text-overflow: ellipsis; }
.wo-cardrow-meta { color: var(--wo-text-muted); font-size: var(--wo-fs-body-sm); line-height: var(--wo-lh-body-sm); overflow-wrap: anywhere; }
.wo-cardrow-count { font-size: var(--wo-fs-caption); color: var(--wo-text-subtle); font-weight: var(--wo-weight-semibold); }
.wo-cardrow-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-2); margin-top: var(--wo-space-2); }
.wo-cardrow .wo-rule-note { margin-left: 0; }
.wo-card--flush > .wo-cardlist { padding: var(--wo-space-1) var(--wo-space-3); }
@container (max-width: 640px) {
    .wo-list .office-grid, .wo-list .wo-wide-only { display: none; }
    .wo-list .wo-cardlist { display: block; }
}
/* Filters shown above the cards only (the grid's filter row is hidden with the grid). */
.wo-narrow-filters { display: none; }
@container (max-width: 640px) {
    .wo-list .wo-narrow-filters { display: grid; gap: var(--wo-space-3); padding: var(--wo-space-4); border-bottom: 1px solid var(--wo-border); }
    .wo-list .wo-narrow-filters label { display: block; margin-bottom: var(--wo-space-1); color: var(--wo-text-muted); font-weight: var(--wo-weight-medium); }
}

/* ── Phones (UX review 2026-11-06) ──
   View chips stay on one line that scrolls sideways, instead of three lines that push the list down.
   Page buttons share the full width, so each is easy to hit. Cards lose a little padding for the content. */
@media (max-width: 640px) {
    .wo-chips:not(.wo-chips--tight) {
        flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
        margin-inline: calc(-1 * var(--wo-space-4)); padding: 2px var(--wo-space-4);
    }
    .wo-chips:not(.wo-chips--tight)::-webkit-scrollbar { display: none; }
    .wo-chips .wo-chip { flex: none; }
    .wo-page-header { align-items: stretch; margin-bottom: var(--wo-space-5); }
    .wo-page-actions { width: 100%; }
    .wo-page-actions > :is(a, button, .dxbl-btn) { flex: 1 1 0; justify-content: center; }
    .wo-card { padding: var(--wo-space-4); }
    .wo-card--flush { padding: 0; }
}

/* ── Detail pages (UX review 2026-11-06, part 2) ──
   The main work on the left and a related list beside it (a customer's sites), stacked on narrow screens.
   A form page alone keeps a readable line length instead of stretching across a wide screen. */
.wo-split--end { grid-template-columns: minmax(0, 1fr) 360px; }
.wo-split--end > aside { position: sticky; top: 84px; }
@media (max-width: 1100px) { .wo-split--end { grid-template-columns: minmax(0, 1fr); } .wo-split--end > aside { position: static; } }
.wo-form-page { max-width: 960px; }
.office > .office-form { max-width: 960px; }
.wo-card > .office-form { padding: 0; border: 0; box-shadow: none; background: none; }
.wo-count { margin-left: var(--wo-space-1); padding: 0 var(--wo-space-2); border-radius: var(--wo-radius-pill); background: var(--wo-surface-2); color: var(--wo-text-muted); font-family: var(--wo-font-mono); font-size: var(--wo-fs-caption); vertical-align: middle; }
.wo-card-head--top { padding-top: var(--wo-space-5); margin-bottom: var(--wo-space-3); }
.wo-card-search { margin-bottom: var(--wo-space-3); }
.wo-cardlist--always { display: block; padding: 0 var(--wo-space-3) var(--wo-space-3); }
.wo-form-actions { padding-top: var(--wo-space-2); }
@media (max-width: 640px) {
    .wo-card-head--top { padding-top: var(--wo-space-4); }
}

/* A plain HTML form (static pages such as Support): one field under another, in the design-system look. */
.wo-stack-form { display: grid; gap: var(--wo-space-4); margin-top: var(--wo-space-4); }
.wo-field { display: grid; gap: var(--wo-space-1); }
.wo-field label { color: var(--wo-text-muted); font-weight: var(--wo-weight-medium); }
.wo-field :is(input, select, textarea) {
    font: inherit; color: var(--wo-text); background: var(--wo-surface); min-height: var(--wo-target-control); width: 100%;
    padding: var(--wo-space-2) var(--wo-space-3); border: 1px solid var(--wo-border-strong); border-radius: var(--wo-radius-md);
}
.wo-field :is(input, select, textarea):focus { outline: none; border-color: var(--wo-primary); box-shadow: 0 0 0 3px var(--wo-primary-soft); }
.wo-form-page + .wo-form-page, .wo-message.wo-form-page { margin-bottom: var(--wo-space-5); }

/* ── Settings › Security (as WorxOrder's two-factor settings) ── */
.security-hint { margin-top: var(--wo-space-2); }
.security-remember { margin-top: var(--wo-space-5); padding-top: var(--wo-space-4); border-top: 1px solid var(--wo-border); }
.security-remember label { display: block; margin-bottom: var(--wo-space-1); color: var(--wo-text-muted); font-weight: var(--wo-weight-medium); }
.security-remember-row { display: flex; gap: var(--wo-space-2); align-items: center; max-width: 22rem; }
.security-remember-row > :first-child { flex: 1; }
.security-remember .office-note { margin: var(--wo-space-2) 0 0; }
.account .account-check { display: flex; align-items: center; gap: var(--wo-space-2); color: var(--wo-text); font-weight: var(--wo-weight-regular); }
.account .account-check input { width: 18px; height: 18px; accent-color: var(--wo-primary); }
.security-recommended { margin-left: var(--wo-space-1); }

/* ── Dashboard charts (owner 2026-11-06) ── */
.wo-card-head-note { margin: 0; }
/* Busy days: a heatmap table. The colour is never the only signal: each day shows its hours and has a label. */
.wo-heat-wrap { overflow-x: auto; }
/* As WorxOrder's jobs heat map (owner 2026-11-06): short, softly rounded blocks with a 3 px gap, the count in
   plain type, grey when nothing; past days keep their colour; a dark ring, clear of the block, marks today. */
.wo-heat { width: 100%; min-width: 520px; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.wo-heat--5 { min-width: 400px; }
.wo-heat thead th { font-weight: var(--wo-weight-medium); color: var(--wo-text-muted); font-size: var(--wo-fs-body-sm); text-align: center; padding-bottom: 2px; }
.wo-heat thead td { width: 80px; }
.wo-heat tbody th { font-weight: var(--wo-weight-regular); color: var(--wo-text-muted); font-size: var(--wo-fs-body-sm); text-align: left; white-space: nowrap; }
.wo-heat td { padding: 0; }
.wo-heat-cell {
    display: grid; place-items: center; height: 26px; border-radius: 5px;
    font-family: var(--wo-font); font-size: 0.84375rem; font-weight: var(--wo-weight-medium); font-variant-numeric: tabular-nums;
    text-decoration: none; transition: filter var(--wo-motion-fast);
}
/* A cell keeps its own text colour under the pointer. Before, the usual link rule (a:hover: the brand colour) won, and
   on a dark cell, which is the brand colour too, the number could not be read (owner 2026-11-26). */
a.wo-heat-cell:hover, a.wo-heat-cell:focus-visible { filter: brightness(.94); }
.wo-heat-cell--1, a.wo-heat-cell--1:hover { background: var(--wo-heat-1); color: var(--wo-on-heat-1); }
.wo-heat-cell--2, a.wo-heat-cell--2:hover { background: var(--wo-heat-2); color: var(--wo-on-heat-2); }
.wo-heat-cell--3, a.wo-heat-cell--3:hover { background: var(--wo-heat-3); color: var(--wo-on-heat-3); }
.wo-heat-cell--4, a.wo-heat-cell--4:hover { background: var(--wo-heat-4); color: var(--wo-on-heat-4); }
.wo-heat-cell--5, a.wo-heat-cell--5:hover { background: var(--wo-heat-5); color: var(--wo-on-heat-5); }
.wo-heat-cell.is-zero, a.wo-heat-cell.is-zero:hover { color: var(--wo-text-subtle); }
.wo-heat-cell.is-today { box-shadow: 0 0 0 2px var(--wo-surface), 0 0 0 4px var(--wo-text); position: relative; z-index: 1; }
.wo-heat-key-note { color: var(--wo-text-subtle); }

/* The heat map's header: title on the left; the range and three segmented controls on the right. */
.wo-heat-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--wo-space-3); margin-bottom: var(--wo-space-4); }
.wo-heat-head h2 { margin: 0; }
.wo-heat-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--wo-space-2) var(--wo-space-3); }
.wo-heat-range { font-size: var(--wo-fs-body-sm); color: var(--wo-text-muted); white-space: nowrap; }
/* A segmented control: one choice filled (the page's own address, aria-current), the others plain. */
.wo-seg { display: inline-flex; gap: 2px; padding: 2px; background: var(--wo-surface); border: 1px solid var(--wo-border); border-radius: 10px; }
.wo-seg a {
    display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border-radius: 8px;
    font-size: var(--wo-fs-body-sm); font-weight: var(--wo-weight-medium); color: var(--wo-text-muted); text-decoration: none; white-space: nowrap;
}
.wo-seg a:hover { background: var(--wo-surface-2); color: var(--wo-text); }
.wo-seg a[aria-current="page"] { background: var(--wo-primary); color: var(--wo-on-primary); font-weight: var(--wo-weight-semibold); }
.wo-heat-key { list-style: none; margin: var(--wo-space-3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--wo-space-2) var(--wo-space-4); font-size: var(--wo-fs-body-sm); color: var(--wo-text-muted); }
.wo-heat-key li { display: inline-flex; align-items: center; gap: var(--wo-space-2); }
.wo-heat-swatch { display: inline-block; width: 14px; height: 14px; min-height: 0; border-radius: 3px; }

/* This week's jobs by type: a donut with the total in the middle, and a table that names the slices. */
.wo-donut { position: relative; }
.wo-donut-centre { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.wo-donut-total { font-family: var(--wo-font-display); font-size: 1.75rem; line-height: 2rem; font-weight: var(--wo-weight-semibold); color: var(--wo-text); }
.wo-donut-caption { font-size: var(--wo-fs-caption); color: var(--wo-text-muted); }
.wo-types { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wo-space-3); }
/* When the card is wide enough, the table sits to the right of the donut (owner 2026-11-07); a narrow card keeps them stacked. */
.wo-types-card { container-type: inline-size; }
@container (min-width: 560px) {
    .wo-types { grid-template-columns: 240px minmax(0, 1fr); align-items: center; gap: var(--wo-space-6); }
}
.wo-types-table th, .wo-types-table td { padding: var(--wo-space-2) var(--wo-space-2); }
.wo-types-table td:first-child { white-space: normal; }
/* A narrow card (owner 2026-11-07): the headings and type names wrap, so the table never runs past the card. */
.wo-types-table th { white-space: normal; }
.wo-types-table td:first-child { overflow-wrap: anywhere; }
.wo-num { text-align: right !important; font-variant-numeric: tabular-nums; }
.wo-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: var(--wo-space-2); vertical-align: middle; background: var(--wo-border-strong); }
.wo-swatch--1 { background: var(--wo-chart-1); }
.wo-swatch--2 { background: var(--wo-chart-2); }
.wo-swatch--3 { background: var(--wo-chart-3); }
.wo-swatch--4 { background: var(--wo-chart-4); }
.wo-swatch--5 { background: var(--wo-chart-5); }
.wo-swatch--6 { background: var(--wo-chart-6); }
.wo-change { font-weight: var(--wo-weight-semibold); white-space: nowrap; }
.wo-change--up { color: var(--wo-success-fg); }
.wo-change--down { color: var(--wo-error-fg); }
/* On a phone the week fits the card: narrower week labels, smaller gaps and type, no sideways scroll. */
@media (max-width: 640px) {
    .wo-heat, .wo-heat--5 { min-width: 0; border-spacing: 2px; }
    .wo-heat thead td { width: 52px; }
    .wo-heat thead th, .wo-heat tbody th { font-size: var(--wo-fs-caption); }
    .wo-heat-cell { height: 24px; font-size: 0.71875rem; }
    .wo-heat-controls { justify-content: flex-start; }
}
@media (max-width: 640px) { .wo-heat-wc { display: none; } }

/* ── Dashboard layout (owner 2026-11-06: Customise) ──
   A 12-column grid; each card takes its chosen width. Gaps left by a narrow card are filled by a later one
   that fits (dense), so a layout never shows holes. Narrower screens widen the cards; a phone shows one column. */
.wo-dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: row dense; gap: var(--wo-space-5); }
.wo-dash-cell { min-width: 0; display: flex; flex-direction: column; }
.wo-dash-cell > .wo-card { flex: 1; margin: 0; }
.wo-dash-cell--full { grid-column: span 12; }
.wo-dash-cell--wide { grid-column: span 8; }
.wo-dash-cell--half { grid-column: span 6; }
.wo-dash-cell--narrow { grid-column: span 4; }
@media (max-width: 1200px) {
    .wo-dash-cell--wide, .wo-dash-cell--half { grid-column: span 12; }
    .wo-dash-cell--narrow { grid-column: span 6; }
}
@media (max-width: 760px) { .wo-dash-cell--narrow { grid-column: span 12; } }

/* Customise: each card a plain box in its place and width, with its controls. */
.wo-dash-edit-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--wo-space-4); margin-bottom: var(--wo-space-5); }
.wo-dash-edit-bar h2 { margin: 0 0 var(--wo-space-1); }
.wo-dash-edit-bar .office-note { margin: 0; }
.wo-dash--editing { list-style: none; margin: 0 0 var(--wo-space-5); padding: 0; }
.wo-dash-slot {
    min-height: 120px; justify-content: space-between; gap: var(--wo-space-3); padding: var(--wo-space-4);
    background: var(--wo-surface); border: 2px dashed var(--wo-border-strong); border-radius: var(--wo-radius-lg); cursor: grab;
}
.wo-dash-slot.is-dragging { opacity: .5; }
.wo-dash-slot.is-over { border-color: var(--wo-primary); background: var(--wo-primary-soft); }
.wo-dash-slot-head { display: flex; align-items: center; gap: var(--wo-space-2); }
.wo-dash-grip { color: var(--wo-text-subtle); display: inline-grid; }
.wo-dash-grip .wo-icon { width: 20px; height: 20px; }
.wo-dash-slot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-2); }
.wo-dash-slot-actions .wo-icon-btn { border: 1px solid var(--wo-border); }
.wo-dash-slot-actions .wo-icon-btn:disabled { opacity: .4; cursor: default; }
.wo-dash-size {
    font: inherit; color: var(--wo-text); background: var(--wo-surface); min-height: 36px;
    padding: 0 var(--wo-space-2); border: 1px solid var(--wo-border-strong); border-radius: var(--wo-radius-md);
}
.wo-dash-hidden-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--wo-space-2); }
.wo-dash-hidden-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--wo-space-3); padding: var(--wo-space-2) 0; border-top: 1px solid var(--wo-border); }

/* Dashboard card toggles (owner 2026-11-06): move the six weeks; this week or last week. */
.wo-card-head--wrap { flex-wrap: wrap; align-items: flex-start; }
.wo-card-head--wrap .wo-chips { margin: 0; }
.wo-chips--tight .wo-chip .wo-icon { width: 16px; height: 16px; }
.wo-dash-cell > .wo-card { scroll-margin-top: 76px; }

/* Faint stripes on the wide grids (owner 2026-11-06): Jobs, Customers, Users, Audit log, Phone sync problems.
   Half the strength of the hover colour, so a clickable row still lights up clearly under the pointer;
   the row lines stay. Short lists, phone cards and dashboard tables are not striped. */
.wo-grid--striped tbody > tr:nth-child(even) > td { background: color-mix(in srgb, var(--wo-surface-2) 55%, var(--wo-surface)); }
.wo-grid--striped tbody > tr.wo-row-link:hover > td { background: var(--wo-primary-soft); }
.job-invoice .job-invoice-void { list-style: none; margin: var(--wo-space-3) 0 0; padding: 0; display: grid; gap: var(--wo-space-1); }
.invoice .invoice-credit-actions { display: flex; flex-wrap: wrap; gap: var(--wo-space-2); }
.invoice .invoice-credit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--wo-space-2); }
.invoice .invoice-credit-list li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-2); }
.invoice .invoice-credit-amount { margin-left: auto; font-variant-numeric: tabular-nums; }
.invoice .invoice-over { color: var(--wo-error-fg); }

/* EP20-S02: the Export your data page. */
.export-data .export-list { margin: 0 0 var(--wo-space-3); padding-left: var(--wo-space-5); display: grid; gap: var(--wo-space-1); }
.export-data form { margin-top: var(--wo-space-3); }

/* EP20-S03: One person's data. */
.person-data .person-find { display: flex; flex-wrap: wrap; gap: var(--wo-space-2); margin: var(--wo-space-3) 0 var(--wo-space-2); }
.person-data .person-find input { flex: 1 1 16rem; min-height: 40px; padding: 0 var(--wo-space-3); border: 1px solid var(--wo-border-strong); border-radius: var(--wo-radius-md); background: var(--wo-surface); color: var(--wo-text); font: inherit; }
.person-data .person-actions { display: flex; flex-wrap: wrap; gap: var(--wo-space-3); }
.person-data .person-confirm { display: flex; align-items: center; gap: var(--wo-space-2); margin: var(--wo-space-3) 0; }
.person-data .wo-card + .wo-card { margin-top: var(--wo-space-5); }
.person-data .person-remove { color: var(--wo-error-fg); border-color: var(--wo-error-fg); }
.person-data .person-remove:hover { background: var(--wo-error-bg); }

/* EP20-S04: Data retention. */
.retention .retention-pick { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-2); margin: var(--wo-space-3) 0 var(--wo-space-2); }
.retention .retention-pick select { min-height: 40px; padding: 0 var(--wo-space-3); border: 1px solid var(--wo-border-strong); border-radius: var(--wo-radius-md); background: var(--wo-surface); color: var(--wo-text); font: inherit; }
.retention .retention-confirm { display: flex; align-items: center; gap: var(--wo-space-2); margin: var(--wo-space-3) 0; }
.retention .retention-fixed { margin: 0; padding-left: var(--wo-space-5); display: grid; gap: var(--wo-space-1); }
.retention .wo-card + .wo-card, .retention .wo-message + .wo-card { margin-top: var(--wo-space-5); }
.retention form .wo-btn { margin-top: var(--wo-space-2); }

/* EP05-S03: Billing. */
/* Billing (owner's mockup 2026-11-30): the state as a pill beside the title; the plan as rows in a box, with the
   product in a panel beside them; then one next step. */
.billing .billing-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-2) var(--wo-space-3); margin-bottom: var(--wo-space-4); }
.billing .billing-title h2 { margin: 0; font-size: var(--wo-fs-title); line-height: var(--wo-lh-title); }
.billing .billing-pill { font-size: var(--wo-fs-body); padding: var(--wo-space-1) var(--wo-space-3); }
.billing .billing-pill::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: var(--wo-space-2); border-radius: 50%; background: currentColor; }
.billing .billing-state { color: var(--wo-text-muted); font-size: var(--wo-fs-body-sm); }
/* The rows take the room and the product panel takes what is left; when the card is narrow the panel goes under
   the rows. By the card's own width, not the screen's: the side menu takes room too (owner's picture 2026-11-30:
   the values were squeezed to a few letters a line beside a wide panel). */
.billing .billing-body { display: flex; flex-wrap: wrap; gap: var(--wo-space-4); align-items: stretch; margin-bottom: var(--wo-space-5); }
.billing .billing-rows { flex: 4 1 30rem; min-width: 0; margin: 0; border: 1px solid var(--wo-border); border-radius: var(--wo-radius-lg); overflow: hidden; container-type: inline-size; }
.billing .billing-row { display: grid; grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr); align-items: center; gap: var(--wo-space-2) var(--wo-space-4); padding: var(--wo-space-3) var(--wo-space-4); }
.billing .billing-row + .billing-row { border-top: 1px solid var(--wo-border); }
.billing .billing-row dt { display: flex; align-items: center; gap: var(--wo-space-3); color: var(--wo-text); }
.billing .billing-row dt .wo-icon { width: 20px; height: 20px; flex: none; color: var(--wo-text-muted); }
.billing .billing-row dd { margin: 0; }
.billing .billing-hint { display: inline-flex; vertical-align: middle; margin-left: var(--wo-space-1); color: var(--wo-text-muted); cursor: help; }
.billing .billing-hint .wo-icon { width: 18px; height: 18px; }
.billing .billing-product { flex: 1 1 14rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--wo-space-2); padding: var(--wo-space-5); border-radius: var(--wo-radius-lg); background: var(--wo-surface-2); text-align: center; }
.billing .billing-product .wo-icon { width: 48px; height: 48px; color: var(--wo-primary); }
.billing .billing-product strong { font-family: var(--wo-font-display); font-size: var(--wo-fs-title); line-height: var(--wo-lh-title); }
.billing .billing-product span { color: var(--wo-text-muted); }
.billing .billing-signin { margin-top: var(--wo-space-4); }
@container (max-width: 30rem) { .billing .billing-row { grid-template-columns: minmax(0, 1fr); } }
.billing .billing-choose { display: grid; gap: var(--wo-space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 22rem)); margin: var(--wo-space-3) 0; }
.billing .billing-option { display: grid; gap: var(--wo-space-2); align-content: start; margin: 0; padding: var(--wo-space-4); border: 1px solid var(--wo-border); border-radius: var(--wo-radius-lg); background: var(--wo-surface); }
.billing .billing-option--best { border-color: var(--wo-primary); box-shadow: 0 0 0 3px var(--wo-primary-soft); }
.billing .billing-option-name { font-family: var(--wo-font-display); font-weight: var(--wo-weight-semibold); font-size: var(--wo-fs-title-sm); }
.billing .billing-option .wo-btn { justify-self: start; margin-top: var(--wo-space-2); }
.billing .billing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-3); }
/* EP05-S06: the EU VAT number check */
.billing .billing-vat { margin-top: var(--wo-space-4); padding-top: var(--wo-space-4); border-top: 1px solid var(--wo-border); }
.billing .billing-vat-form { display: grid; gap: var(--wo-space-2); max-width: 28rem; margin-top: var(--wo-space-3); }
.billing .billing-vat-form button { justify-self: start; margin-top: var(--wo-space-2); }
.billing .wo-message + .wo-card { margin-top: var(--wo-space-4); }


/* ── Blue Fin staff platform (restyled 2026-11-10, after the Bluefin brand guidelines) ──
   The office frame with Bluefin's own mark and a "Platform" label; the office page pattern (header, cards, tables). */
.pf-brand, .pf-signin-brand { display: flex; align-items: center; gap: var(--wo-space-3); padding: var(--wo-space-1) var(--wo-space-2); text-decoration: none; }
.pf-brand-mark { width: 34px; height: 34px; flex: none; }
.pf-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.pf-brand-word { font-family: var(--wo-font-display); font-weight: var(--wo-weight-bold); font-size: 1.375rem; letter-spacing: -0.03em; color: #FFFFFF; }
/* Space Mono label, as the guidelines' eyebrows; #5AA0FF (Blue 300) reads 6.4:1 on the ink menu. */
.pf-brand-label { font-family: var(--wo-font-mono); font-weight: var(--wo-weight-bold); font-size: var(--wo-fs-caption); letter-spacing: .18em; text-transform: uppercase; color: #5AA0FF; }
.pf-brand:hover .pf-brand-word { color: #DCE6F0; }

.pf-staff-note { display: flex; align-items: center; gap: var(--wo-space-2); margin: 0; min-width: 0; font-size: var(--wo-fs-body-sm); color: var(--wo-text-muted); }
.pf-staff-note .wo-icon { width: 18px; height: 18px; flex: none; color: var(--wo-primary); }
.pf-staff-note strong { color: var(--wo-text); }
@media (max-width: 640px) { .pf-staff-note span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }

.platform .pf-message { margin-bottom: var(--wo-space-5); }
.platform h3 { margin: 0; font-size: var(--wo-fs-body); line-height: var(--wo-lh-body); font-family: var(--wo-font-display); font-weight: var(--wo-weight-semibold); }

/* Tiles: the count of each kind of workspace; each opens the list filtered to it. */
.pf-stats { list-style: none; margin: 0 0 var(--wo-space-5); padding: 0; display: grid; gap: var(--wo-space-3); grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.pf-stat {
    display: flex; align-items: center; gap: var(--wo-space-3); height: 100%;
    padding: var(--wo-space-4) var(--wo-space-5); border-radius: var(--wo-radius-lg);
    background: var(--wo-surface); border: 1px solid var(--wo-border); box-shadow: var(--wo-shadow-1);
    color: var(--wo-text); text-decoration: none; transition: border-color var(--wo-motion-fast), box-shadow var(--wo-motion-fast);
}
.pf-stat:hover { border-color: var(--wo-primary); box-shadow: var(--wo-shadow-2); color: var(--wo-text); }
.pf-stat-text { display: flex; flex-direction: column; gap: var(--wo-space-1); min-width: 0; }
.pf-stat--attention .pf-tile { background: var(--wo-surface); color: var(--wo-warning-fg); }
.pf-stat-value { font-family: var(--wo-font-display); font-weight: var(--wo-weight-semibold); font-size: 1.75rem; line-height: 1; letter-spacing: -0.02em; }
.pf-stat-label { font-size: var(--wo-fs-body-sm); color: var(--wo-text-muted); }
.pf-stat--attention { border-color: var(--wo-warning-fg); background: var(--wo-warning-bg); }
.pf-stat--attention .pf-stat-label { color: var(--wo-text); }

/* The list's search row, inside its card. */
.pf-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-3); padding: var(--wo-space-4) var(--wo-space-5); border-bottom: 1px solid var(--wo-border); }
.pf-toolbar .wo-search { flex: 1 1 18rem; }
.pf-toolbar-count { margin-left: auto; font-size: var(--wo-fs-body-sm); color: var(--wo-text-muted); }

.pf-table td { vertical-align: middle; }
.pf-table .pf-num { text-align: right; }
.pf-table td.pf-wrap { white-space: normal; min-width: 14rem; }
.pf-table .wo-pill + .wo-pill { margin-left: var(--wo-space-1); }
.pf-row-link { font-weight: var(--wo-weight-semibold); color: var(--wo-primary); text-decoration: none; }
.pf-row-link:hover { text-decoration: underline; }
.pf-row-sub { display: block; font-size: var(--wo-fs-body-sm); color: var(--wo-text-muted); white-space: normal; }
.pf-card-foot { margin: 0; padding: var(--wo-space-3) var(--wo-space-5); border-top: 1px solid var(--wo-border); font-size: var(--wo-fs-body-sm); }
.wo-card--flush > .wo-empty { margin: var(--wo-space-4) var(--wo-space-5) var(--wo-space-5); }
.pf-pager { margin: var(--wo-space-4) 0 0; }

/* Two fixed meanings of its own: closed (to be deleted) and a billing hold; both a word and a colour. */
.pf-pill--closed { color: var(--wo-error-fg); background: var(--wo-error-bg); }
.pf-pill--hold { color: var(--wo-warning-fg); background: var(--wo-warning-bg); }
.pf-pill--hold .wo-icon { width: 12px; height: 12px; }

/* Workspace: the support actions as rows, each with what it does and its button. */
.pf-work { display: grid; gap: var(--wo-space-5); min-width: 0; }
.pf-work > .wo-card + .wo-card { margin-top: 0; }
.pf-summary dd.wo-mono { overflow-wrap: anywhere; }
/* Under the work, not beside it: the details in columns, so the list is not one long strip. */
@media (max-width: 1100px) { .pf-summary .wo-facts { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); } }
.pf-actions { list-style: none; margin: 0; padding: 0; }
.pf-actions li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--wo-space-3) var(--wo-space-5); padding: var(--wo-space-4) 0; border-top: 1px solid var(--wo-border); }
.pf-actions li:first-child { border-top: 0; padding-top: 0; }
.pf-actions li:last-child { padding-bottom: 0; }
.pf-actions li > div { flex: 1 1 18rem; }
.pf-actions .office-note { margin: var(--wo-space-1) 0 0; font-size: var(--wo-fs-body-sm); }
.pf-actions form { margin: 0; }
.pf-inline-form { display: flex; align-items: center; gap: var(--wo-space-2); }
.pf-inline-form input { width: 5.5rem; }

/* Fields: the office's control height, border and focus ring. */
.platform :is(.pf-form, .pf-inline-form) :is(input:not([type="checkbox"]):not([type="hidden"]):not([type="file"]), select) {
    font: inherit; color: var(--wo-text); background: var(--wo-surface);
    min-height: var(--wo-target-control); padding: var(--wo-space-2) var(--wo-space-3);
    border: 1px solid var(--wo-border-strong); border-radius: var(--wo-radius-md); width: 100%;
}
.platform :is(.pf-form, .pf-inline-form) :is(input, select):focus-visible { outline: none; border-color: var(--wo-primary); box-shadow: 0 0 0 3px var(--wo-primary-soft); }
.platform .pf-inline-form input { width: 5.5rem; }
.platform .pf-install-form select { width: min(100%, 22rem); }
.pf-install-form { flex-wrap: wrap; }
.platform .pf-install-form input[type="file"] { width: min(100%, 22rem); font: inherit; color: var(--wo-text-muted); }
.platform .pf-inline-form label { font-weight: var(--wo-weight-medium); color: var(--wo-text-muted); }
.pf-form { display: grid; gap: var(--wo-space-4); margin-top: var(--wo-space-4); }
.pf-form--divided { padding-top: var(--wo-space-4); border-top: 1px solid var(--wo-border); }
.pf-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.pf-form legend { padding: 0; margin-bottom: var(--wo-space-2); font-weight: var(--wo-weight-semibold); }
.pf-form-row { display: grid; gap: var(--wo-space-3); grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.pf-field { display: grid; gap: var(--wo-space-1); align-content: start; min-width: 0; }
.pf-field label { font-size: var(--wo-fs-body-sm); font-weight: var(--wo-weight-medium); color: var(--wo-text-muted); }
.pf-field .office-note { font-size: var(--wo-fs-body-sm); }
.pf-field--narrow { max-width: 8rem; }
.pf-field input[type="file"] { font: inherit; color: var(--wo-text-muted); }
.pf-money { position: relative; }
.pf-money span { position: absolute; left: var(--wo-space-3); top: 50%; transform: translateY(-50%); color: var(--wo-text-muted); pointer-events: none; }
.platform .pf-form .pf-money input:not([type="checkbox"]):not([type="hidden"]):not([type="file"]) { padding-left: calc(var(--wo-space-3) + 1.25em); font-family: var(--wo-font-mono); }
.pf-checks { display: flex; flex-wrap: wrap; gap: var(--wo-space-2) var(--wo-space-5); }
.pf-checks label { display: inline-flex; align-items: center; gap: var(--wo-space-2); min-height: 32px; cursor: pointer; }
.pf-checks input { width: 18px; height: 18px; accent-color: var(--wo-primary); }

/* Two cards side by side, one under the other on a narrow screen. */
.pf-two { display: grid; gap: var(--wo-space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; margin-bottom: var(--wo-space-5); }
.pf-two > .wo-card + .wo-card { margin-top: 0; }

/* Owner's design 2026-11-30, on every platform page: an icon tile beside the page title and the section titles,
   and a band behind the column headings of a table. */
.pf-tile { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--wo-radius-md); background: var(--wo-primary-soft); color: var(--wo-primary); }
.pf-tile .wo-icon { width: 22px; height: 22px; }
.pf-tile--lg { width: 52px; height: 52px; border-radius: var(--wo-radius-lg); }
.pf-tile--lg .wo-icon { width: 28px; height: 28px; }
.pf-header { align-items: center; justify-content: flex-start; }
.pf-header > div:not(.wo-page-actions) { flex: 1 1 16rem; min-width: 0; }
.pf-section-head { display: flex; align-items: center; gap: var(--wo-space-3); margin-bottom: var(--wo-space-5); }
.pf-section-head h2, .pf-section-head .office-note { margin: 0; }
.pf-h2 { display: flex; align-items: center; gap: var(--wo-space-2); }
.pf-h2 > .wo-icon { width: 22px; height: 22px; flex: none; color: var(--wo-primary); }
.platform .wo-table thead th { background: var(--wo-surface-2); color: var(--wo-text-muted); }
.pf-table .pf-center { text-align: center; }
.pf-pill--dot::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: var(--wo-space-2); border-radius: 50%; background: currentColor; }
.pf-form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--wo-space-3); }
/* Office lists (owner's Jobs mockup 2026-11-30; every list from the same day): an icon tile beside the page title,
   the search label beside its box, and a quiet grid. The grid rules apply to every grid in the office. */
.wo-head-tile { display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: var(--wo-radius-lg); background: var(--wo-primary-soft); color: var(--wo-primary); }
.wo-head-tile .wo-icon { width: 28px; height: 28px; }
.wo-page-header--tile { align-items: center; justify-content: flex-start; margin-bottom: var(--wo-space-5); }
.wo-page-header--tile > div:not(.wo-page-actions) { flex: 1 1 16rem; min-width: 0; }
.wo-toolbar:has(> .office-search) { align-items: center; }
.wo-toolbar > .office-search { flex-direction: row; align-items: center; gap: var(--wo-space-3); max-width: 44rem; }
.wo-toolbar > .office-search label { flex: none; color: var(--wo-text); font-weight: var(--wo-weight-semibold); }
.wo-toolbar > .office-search > :not(label) { flex: 1 1 auto; min-width: 0; }
/* A quiet grid: no lines between columns, a line under each row; no frame when the grid is in a card. */
.office .wo-card .dxbl-grid { border: 0; }
/* The long selector is needed: the grid's own rule for these lines has three parts. */
.office .dxbl-grid .dxbl-grid-table > :is(thead, tbody, tfoot) > tr > :is(th, td) { border-left-color: transparent; }
.office .dxbl-grid tbody > tr:not(.dxbl-grid-filter-row) > td { border-top: 1px solid var(--wo-border); }
.office .dxbl-grid .dxbl-grid-filter-row > td { padding: var(--wo-space-1) var(--wo-space-1) var(--wo-space-2); border-bottom-color: transparent; }
/* A column that can sort shows a small up-and-down mark beside its name, so it is clear that a click sorts it
   (owner 2026-11-30). When the column is sorted, the grid's own arrow takes its place. */
.office .dxbl-grid th.dxbl-grid-header-sortable { cursor: pointer; }
.office .dxbl-grid th .dxbl-grid-header-content > span[role="presentation"] { flex: 0 1 auto; } /* the mark sits beside the name */
.office .dxbl-grid th.dxbl-grid-header-sortable:not([aria-sort="ascending"]):not([aria-sort="descending"]) .dxbl-grid-header-content::after {
    content: ""; flex: none; width: 12px; height: 14px; margin-left: var(--wo-space-2); background: var(--wo-text-subtle);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5l3-3 3 3M3 9l3 3 3-3'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5l3-3 3 3M3 9l3 3 3-3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.office .dxbl-grid th.dxbl-grid-header-sortable:hover .dxbl-grid-header-content::after { background: var(--wo-text); }
/* Each filter is its own box with a gap. The grid draws a filter over its cell's edges (negative margins, side lines
   only), for a grid that has column lines; this grid has none, so the boxes ran into each other. The long selector
   is the grid's own, so this rule wins. */
.office .dxbl-grid .dxbl-grid-table > :is(thead, tbody) > tr.dxbl-grid-filter-row > td:not(.dxbl-grid-command-cell):not(.dxbl-grid-selection-cell) > .dxbl-text-edit {
    margin: 0; width: 100%; border: 1px solid var(--wo-border-strong); border-radius: var(--wo-radius-md); background: var(--wo-surface);
}
.office .dxbl-grid .dxbl-grid-table > :is(thead, tbody) > tr.dxbl-grid-filter-row > td:not(.dxbl-grid-command-cell):not(.dxbl-grid-selection-cell) > .dxbl-text-edit:focus-within {
    border-color: var(--wo-primary); box-shadow: 0 0 0 3px var(--wo-primary-soft);
}

/* Settings (owner 2026-11-30): one page of cards in groups, as Administration in WorxOrder Enterprise. A card is a
   link: an icon tile, the page's name, one line on what it is for. */
.wo-head-tile--sm { width: 40px; height: 40px; border-radius: var(--wo-radius-md); }
.wo-head-tile--sm .wo-icon { width: 22px; height: 22px; }
.wo-settings-group + .wo-settings-group { margin-top: var(--wo-space-6); }
.wo-settings-label { margin: 0 0 var(--wo-space-3); font-family: var(--wo-font-mono); font-size: var(--wo-fs-caption); font-weight: var(--wo-weight-bold); letter-spacing: .08em; text-transform: uppercase; color: var(--wo-text-muted); }
.wo-settings-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--wo-space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.wo-settings-card {
    display: flex; align-items: center; gap: var(--wo-space-3); height: 100%; min-height: 72px;
    padding: var(--wo-space-3) var(--wo-space-4); border-radius: var(--wo-radius-lg);
    background: var(--wo-surface); border: 1px solid var(--wo-border); box-shadow: var(--wo-shadow-1);
    color: var(--wo-text); text-decoration: none; transition: border-color var(--wo-motion-fast), box-shadow var(--wo-motion-fast);
}
.wo-settings-card:hover, .wo-settings-card:focus-visible { border-color: var(--wo-primary); box-shadow: var(--wo-shadow-2); color: var(--wo-text); }
.wo-settings-card > .wo-icon { width: 18px; height: 18px; flex: none; color: var(--wo-text-subtle); }
.wo-settings-card-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.wo-settings-card-title { font-family: var(--wo-font-display); font-weight: var(--wo-weight-semibold); font-size: var(--wo-fs-title-sm); line-height: var(--wo-lh-title-sm); }
.wo-settings-card-sub { font-size: var(--wo-fs-body-sm); color: var(--wo-text-muted); }
.wo-settings-count { flex: none; min-width: 1.75rem; padding: 0 var(--wo-space-2); border-radius: var(--wo-radius-pill); background: var(--wo-surface-2); color: var(--wo-text-muted); font-family: var(--wo-font-mono); font-size: var(--wo-fs-body-sm); font-weight: var(--wo-weight-bold); line-height: 1.6; text-align: center; }

/* A workspace's page (owner's mockup 2026-11-30): tiles that are not links, tabs with no script, and details as
   rows (an icon, a name, a value), as the Billing page. */
.pf-stat--plain:hover { border-color: var(--wo-border); box-shadow: var(--wo-shadow-1); }
.pf-stat-of { font-family: var(--wo-font-sans); font-size: var(--wo-fs-body-sm); font-weight: var(--wo-weight-regular); letter-spacing: 0; color: var(--wo-text-muted); }
.pf-stat-value--words { font-size: var(--wo-fs-title); line-height: 1.3; }
/* The tabs are radio buttons and their labels: one tab is checked, and its panel shows. Arrow keys move between
   them, as in any group of radio buttons. */
.pf-tablist { margin-top: 0; }
.pf-tab { cursor: pointer; display: inline-flex; align-items: center; gap: var(--wo-space-2); white-space: nowrap; }
.pf-tab-input:checked + .pf-tab { color: var(--wo-text); border-bottom-color: var(--wo-primary); }
.pf-tab-input:focus-visible + .pf-tab { outline: 2px solid var(--wo-primary); outline-offset: -2px; border-radius: var(--wo-radius-md); }
.pf-tab-panel { display: none; }
.pf-tabs:has(#tab-overview:checked) [data-tab="overview"] { display: grid; }
.pf-tabs:has(#tab-users:checked) [data-tab="users"],
.pf-tabs:has(#tab-activity:checked) [data-tab="activity"] { display: block; }
.pf-tabs:has(#tab-actions:checked) [data-tab="actions"] { display: grid; }
.pf-tab-panel.pf-two { margin-bottom: 0; }
.pf-rows { margin: 0; border: 1px solid var(--wo-border); border-radius: var(--wo-radius-lg); overflow: hidden; container-type: inline-size; }
.pf-row { display: grid; grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr); align-items: center; gap: var(--wo-space-2) var(--wo-space-4); padding: var(--wo-space-3) var(--wo-space-4); }
.pf-row + .pf-row { border-top: 1px solid var(--wo-border); }
.pf-row dt { display: flex; align-items: center; gap: var(--wo-space-3); color: var(--wo-text-muted); }
.pf-row dt .wo-icon { width: 18px; height: 18px; flex: none; }
.pf-row dd { margin: 0; overflow-wrap: anywhere; }
.pf-actions h4 { margin: 0; font-size: var(--wo-fs-body); line-height: var(--wo-lh-body); font-family: var(--wo-font-display); font-weight: var(--wo-weight-semibold); }
.platform h3.pf-h2 { font-size: var(--wo-fs-title-sm); line-height: var(--wo-lh-title-sm); margin-bottom: var(--wo-space-4); }
.pf-card-actions { display: flex; flex-wrap: wrap; gap: var(--wo-space-3); justify-content: space-between; }
@container (max-width: 26rem) { .pf-row { grid-template-columns: minmax(0, 1fr); } }

/* Compact, as the owner's design (2026-11-30): less space above the title and in the rows of
   the price table, larger section titles, darker field labels. */
.pf-app .wo-page { padding-top: var(--wo-space-6); }
.pf-header { margin-bottom: var(--wo-space-5); }
.platform :is(.pf-section-head, .pf-current-title, .wo-card-head) h2 { font-size: var(--wo-fs-title); line-height: var(--wo-lh-title); }
.platform .pf-section-head { margin-bottom: var(--wo-space-4); }
.platform .pf-field label { font-weight: var(--wo-weight-semibold); color: var(--wo-text); }
.platform .pf-plan-table tbody :is(th, td) { padding-block: var(--wo-space-2); }
.platform .pf-form .pf-plan-table input:not([type="checkbox"]):not([type="hidden"]):not([type="file"]) { min-height: 36px; padding-block: var(--wo-space-1); }

/* Prices: the prices in force as tiles beside their name; the price change as a table (now, new, change); the history. */
.pf-current { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-4) var(--wo-space-6); }
.pf-current-text { min-width: 0; }
.pf-current-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-2) var(--wo-space-3); }
.pf-current-title h2 { margin: 0; }
.pf-meta { list-style: none; margin: var(--wo-space-2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--wo-space-2); font-size: var(--wo-fs-body-sm); color: var(--wo-text-muted); }
.pf-meta li + li::before { content: "\00B7"; margin-right: var(--wo-space-2); color: var(--wo-text-subtle); }
.pf-current--next { border-color: var(--wo-primary); box-shadow: 0 0 0 3px var(--wo-primary-soft); }
.pf-current-foot { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-3); }
.pf-current-foot .wo-message { flex: 1 1 24rem; margin: 0; }
.pf-current-foot form { margin: 0; }
.pf-figures { list-style: none; margin: 0; padding: 0 0 0 var(--wo-space-6); border-left: 1px solid var(--wo-border); flex: 1 1 30rem; display: grid; gap: var(--wo-space-3); grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
.pf-figure { display: flex; align-items: center; gap: var(--wo-space-3); min-width: 0; padding: var(--wo-space-3); border-radius: var(--wo-radius-md); background: var(--wo-surface-2); }
.pf-figure .pf-tile { width: auto; height: auto; background: none; }
.pf-figure-text { display: flex; flex-direction: column; min-width: 0; }
.pf-figure-label { font-size: var(--wo-fs-body-sm); color: var(--wo-text-muted); }
.pf-figure-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--wo-space-1); }
.pf-figure-value { font-family: var(--wo-font-display); font-weight: var(--wo-weight-semibold); font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; color: var(--wo-text); }
.pf-figure-unit, .pf-unit { font-size: var(--wo-fs-body-sm); color: var(--wo-text-muted); }
.pf-figure-change { margin-left: var(--wo-space-2); font-family: var(--wo-font-mono); font-size: var(--wo-fs-body-sm); font-weight: var(--wo-weight-bold); color: var(--wo-primary); }
.pf-plan { margin-top: 0; }
.pf-plan-grid { display: grid; gap: var(--wo-space-5) var(--wo-space-6); grid-template-columns: minmax(14rem, 22rem) minmax(0, 1fr); align-items: start; }
.pf-plan-side { display: grid; gap: var(--wo-space-4); }
.pf-plan-table { border: 1px solid var(--wo-border); border-radius: var(--wo-radius-lg); }
.pf-plan-table tbody th { font-size: var(--wo-fs-body); font-weight: var(--wo-weight-regular); letter-spacing: 0; text-transform: none; color: var(--wo-text); }
.pf-plan-name { display: inline-flex; align-items: center; gap: var(--wo-space-3); }
.pf-plan-name .wo-icon { width: 20px; height: 20px; flex: none; color: var(--wo-primary); }
.pf-amount { font-family: var(--wo-font-display); font-weight: var(--wo-weight-semibold); font-size: var(--wo-fs-title-sm); }
.pf-plan-table .pf-money { min-width: 8rem; max-width: 14rem; }
/* The sign says the direction; the colour only repeats it. */
.pf-change { display: inline-block; min-width: 3.75rem; padding: var(--wo-space-1) var(--wo-space-2); border-radius: var(--wo-radius-md); background: var(--wo-surface-2); color: var(--wo-text-muted); font-family: var(--wo-font-mono); font-size: var(--wo-fs-body-sm); font-weight: var(--wo-weight-bold); text-align: center; }
.pf-change[data-pf-dir="up"] { background: var(--wo-warning-bg); color: var(--wo-warning-fg); }
.pf-change[data-pf-dir="down"] { background: var(--wo-success-bg); color: var(--wo-success-fg); }
.pf-version { display: inline-block; padding: 0 var(--wo-space-2); border-radius: var(--wo-radius-md); background: var(--wo-surface-2); font-family: var(--wo-font-mono); font-size: var(--wo-fs-body-sm); font-weight: var(--wo-weight-bold); }
.pf-row--current, .platform .wo-table tbody tr.pf-row--current:hover { background: var(--wo-success-bg); }
.pf-row--current .pf-version { background: var(--wo-status-completed-bg); color: var(--wo-status-completed-fg); }
@media (max-width: 900px) {
    .pf-plan-grid { grid-template-columns: minmax(0, 1fr); }
    .pf-figures { padding-left: 0; border-left: 0; }
}

/* Form templates: the list (state pills, industry filter) and a page per template. */
.pf-template-meta { margin-bottom: 0; font-size: var(--wo-fs-body-sm); color: var(--wo-text-muted); }
.pf-template-meta .wo-pill { margin-right: var(--wo-space-1); }
.pf-signoff { margin-top: 0; }
/* Packs: a tile for each industry; the pack's table has its controls in the cells. */
.pf-pack-name { font-family: var(--wo-font-display); font-weight: var(--wo-weight-semibold); font-size: var(--wo-fs-title-sm); line-height: var(--wo-lh-title-sm); }
.pf-packs .pf-stat-label .wo-icon { width: 14px; height: 14px; vertical-align: -2px; }
.pf-packs { margin-bottom: var(--wo-space-3); }
.pf-packs-foot { margin: 0 0 var(--wo-space-5); font-size: var(--wo-fs-body-sm); }
.pf-packs-foot .wo-icon { width: 14px; height: 14px; vertical-align: -2px; }
.platform .pf-table :is(.pf-cell-select, .pf-cell-number, .pf-cell-text) {
    font: inherit; color: var(--wo-text); background: var(--wo-surface); min-height: var(--wo-target-control);
    padding: var(--wo-space-2) var(--wo-space-3); border: 1px solid var(--wo-border-strong); border-radius: var(--wo-radius-md);
}
.platform .pf-table :is(.pf-cell-select, .pf-cell-number, .pf-cell-text):focus-visible { outline: none; border-color: var(--wo-primary); box-shadow: 0 0 0 3px var(--wo-primary-soft); }
.platform .pf-table .pf-cell-number { width: 5.5rem; font-family: var(--wo-font-mono); }
.pf-tick { width: 20px; height: 20px; accent-color: var(--wo-primary); }
.pf-table label.pf-row-link { cursor: pointer; }
.pf-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-3) var(--wo-space-4); padding: var(--wo-space-4) var(--wo-space-5); }
.pf-card-actions .office-note { margin: 0; flex: 1 1 18rem; }
.pf-pills { display: inline-flex; flex-wrap: wrap; gap: var(--wo-space-1); vertical-align: middle; }
.pf-pills .wo-icon { width: 12px; height: 12px; }
.platform .pf-toolbar select {
    font: inherit; color: var(--wo-text); background: var(--wo-surface); min-height: var(--wo-target-control);
    padding: var(--wo-space-2) var(--wo-space-3); border: 1px solid var(--wo-border-strong); border-radius: var(--wo-radius-md); max-width: 100%;
}
.platform .pf-toolbar select:focus-visible { outline: none; border-color: var(--wo-primary); box-shadow: 0 0 0 3px var(--wo-primary-soft); }
.platform .pf-form textarea {
    font: inherit; color: var(--wo-text); background: var(--wo-surface); padding: var(--wo-space-2) var(--wo-space-3);
    border: 1px solid var(--wo-border-strong); border-radius: var(--wo-radius-md); width: 100%; resize: vertical;
}
.platform .pf-form textarea:focus-visible { outline: none; border-color: var(--wo-primary); box-shadow: 0 0 0 3px var(--wo-primary-soft); }
@media (max-width: 900px) { .pf-template { grid-template-columns: minmax(0, 1fr); } }

/* Signed-out pages: the ink panel with Bluefin's mark, then the message. */
.pf-signin { min-height: 100vh; display: grid; place-items: center; padding: var(--wo-space-6) var(--wo-space-4); background: var(--wo-bg); }
.pf-signin-card { width: min(100%, 28rem); border-radius: var(--wo-radius-xl); overflow: hidden; background: var(--wo-surface); border: 1px solid var(--wo-border); box-shadow: var(--wo-shadow-2); }
.pf-signin-brand { padding: var(--wo-space-6); background: radial-gradient(ellipse at top right, rgba(14, 95, 216, .35) 0%, transparent 60%), var(--wo-nav-bg); }
.pf-signin-body { padding: var(--wo-space-6); }
.pf-signin-body h1 { margin: 0 0 var(--wo-space-3); font-size: var(--wo-fs-title); line-height: var(--wo-lh-title); }
.pf-signin-body p { color: var(--wo-text-muted); }
.pf-signin-body .wo-btn { margin-top: var(--wo-space-2); }

/* The Job page (owner decision 2026-11-15): the header, the progress line and the job's facts always show; the rest is in
   tabs, and the job's status picks the tab the page opens on. */
.job-header { margin-bottom: var(--wo-space-3); }
.job-header h1 .wo-pill { vertical-align: middle; margin-left: var(--wo-space-2); font-size: var(--wo-fs-body-sm); letter-spacing: 0; }
.job-progress { display: grid; gap: var(--wo-space-2); margin-bottom: var(--wo-space-4); }
.job-steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: var(--wo-space-2); font-size: var(--wo-fs-body-sm); color: var(--wo-text-subtle); }
.job-steps li { display: flex; align-items: center; gap: var(--wo-space-2); white-space: nowrap; }
.job-steps li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--wo-border-strong); box-sizing: border-box; flex: none; }
.job-steps li:not(:last-child)::after { content: ""; width: clamp(16px, 5vw, 64px); height: 2px; background: var(--wo-border-strong); }
.job-steps li.is-done { color: var(--wo-text-muted); }
.job-steps li.is-done::before { background: var(--wo-primary); border-color: var(--wo-primary); }
.job-steps li.is-done::after { background: var(--wo-primary); }
.job-steps li.is-now { color: var(--wo-text); font-weight: var(--wo-weight-semibold); }
.job-steps li.is-now::before { border-color: var(--wo-primary); background: var(--wo-primary-soft); }
.job-next { margin: 0; color: var(--wo-text-muted); }
.job-facts { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--wo-space-4) var(--wo-space-5); align-items: start; }
.job-facts > div { align-content: start; }
.job-facts-wide { grid-column: 1 / -1; }
.job-facts-text { white-space: pre-line; }
.wo-tabs, .job-tabs { display: flex; gap: var(--wo-space-1); border-bottom: 1px solid var(--wo-border); margin: var(--wo-space-5) 0 var(--wo-space-4); overflow-x: auto; }
.wo-tab, .job-tab { font: inherit; font-weight: var(--wo-weight-medium); background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
    padding: var(--wo-space-3) var(--wo-space-4); min-height: var(--wo-target-control); color: var(--wo-text-muted); cursor: pointer; white-space: nowrap;
    display: inline-flex; align-items: center; gap: var(--wo-space-2); border-radius: var(--wo-radius-sm) var(--wo-radius-sm) 0 0; }
.wo-tab:hover, .job-tab:hover { color: var(--wo-text); background: var(--wo-surface-2); }
.wo-tab[aria-selected="true"], .job-tab[aria-selected="true"] { color: var(--wo-text); border-bottom-color: var(--wo-primary); }
.wo-tab .wo-count { font-weight: var(--wo-weight-medium); }
/* A record's title with its status beside it (job, quote, invoice), and a line of ways to reach a customer. */
.wo-page-header h1 .wo-pill { vertical-align: middle; margin-left: var(--wo-space-2); font-size: var(--wo-fs-body-sm); letter-spacing: 0; }
.wo-reach { display: flex; flex-wrap: wrap; gap: var(--wo-space-2) var(--wo-space-4); margin: var(--wo-space-1) 0 0; color: var(--wo-text-muted); }
.wo-reach a { text-decoration: none; font-weight: var(--wo-weight-medium); display: inline-flex; align-items: center; gap: var(--wo-space-1); }
.wo-reach .wo-icon { width: 16px; height: 16px; }
.wo-reach a:hover, .wo-reach a:focus-visible { text-decoration: underline; }
.wo-page-note { margin: var(--wo-space-2) 0 0; color: var(--wo-text-muted); white-space: pre-line; max-width: 70ch; }
.job-lines-actions { display: flex; gap: var(--wo-space-2); flex-wrap: wrap; }
.job-tab-flag { font-size: var(--wo-fs-caption); background: var(--wo-warning-bg); color: var(--wo-warning-fg); border-radius: var(--wo-radius-pill); padding: 0 var(--wo-space-2); }
[role="tabpanel"][hidden] { display: none; }

/* Lists (office tidy 2026-11-15): links in a list are calm: the colour and weight say "link", the underline comes on hover
   and focus. (One line for each row was tried and dropped: it cut customer and site names short. The job list gives its
   word columns more room instead.) */
.office .dxbl-grid td a, .office .wo-table td a, .office .dxbl-grid td .wo-link-btn--cell { text-decoration: none; font-weight: var(--wo-weight-medium); }
.office .dxbl-grid td a:hover, .office .dxbl-grid td a:focus-visible, .office .wo-table td a:hover, .office .wo-table td a:focus-visible,
.office .dxbl-grid td .wo-link-btn--cell:hover, .office .dxbl-grid td .wo-link-btn--cell:focus-visible { text-decoration: underline; text-underline-offset: 2px; }

/* Narrow screens (checked at 400 px, 2026-11-16).
   - A record's title and its status: the status goes to its own line with no indent when the title is long.
   - The job's facts sit two to a row, so the tabs are nearer the top.
   - A read-only table of priced lines (job, quote, invoice, credit note) shows the words, the quantity and the net; the
     unit price and the VAT rate are left out, so nobody scrolls sideways to find the amount. The totals under it stay. */
.wo-page-header h1:has(.wo-pill) { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-1) var(--wo-space-2); }
.wo-page-header h1:has(.wo-pill) .wo-pill { margin-left: 0; }
@media (max-width: 640px) {
    .job-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wo-space-3) var(--wo-space-4); }
    .job-facts > div:last-child { grid-column: 1 / -1; }
    .invoice .invoice-table th:nth-child(3), .invoice .invoice-table td:nth-child(3),
    .invoice .invoice-table th:nth-child(4), .invoice .invoice-table td:nth-child(4) { display: none; }
    .invoice .invoice-table td.invoice-desc { min-width: 0; }
}

/* Lists on a phone (2026-11-16): the row of view chips fades out at the right edge, so it shows that there are more chips
   to scroll to (the room at the end lets the last chip come clear of the fade); the card list ends in "Show more". */
@media (max-width: 640px) {
    .wo-chips:not(.wo-chips--tight) {
        padding-right: var(--wo-space-8);
        -webkit-mask-image: linear-gradient(to right, black calc(100% - 40px), transparent);
        mask-image: linear-gradient(to right, black calc(100% - 40px), transparent);
    }
}
.wo-cardlist-more { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--wo-space-3); padding: var(--wo-space-4) var(--wo-space-2); }

/* The job's Work and parts in Edit on a phone (2026-11-16): the tab's panel is a size container, so the line editor's own
   narrow layout applies (quantity and price side by side, then the VAT rate, then the net), as on a draft invoice; before,
   the VAT box and the net were cut off at the card's edge. The card's buttons go under its title when there is no room. */
.office [role="tabpanel"] { container-type: inline-size; }
.job-lines .wo-card-head { flex-wrap: wrap; }

/* Two more tables on a phone (2026-11-16): no sideways scroll. The dashboard's "Recent jobs" keeps the job, the customer
   and the status (the type and the time are on the job's page); the diary's List keeps the time, the job, the customer
   and the operative. */
@media (max-width: 640px) {
    .wo-table--recent th:nth-child(3), .wo-table--recent td:nth-child(3),
    .wo-table--recent th:nth-child(5), .wo-table--recent td:nth-child(5),
    .wo-table--diary th:nth-child(4), .wo-table--diary td:nth-child(4),
    .wo-table--diary th:nth-child(6), .wo-table--diary td:nth-child(6) { display: none; }
    .wo-table--recent th, .wo-table--recent td, .wo-table--diary th, .wo-table--diary td { padding-inline: var(--wo-space-2); }
    /* The diary's names wrap inside their cells, so its four columns fit; the time stays on one line. */
    .wo-table--diary { table-layout: fixed; width: 100%; }
    .wo-table--diary th, .wo-table--diary td { white-space: normal; overflow-wrap: anywhere; }
    .wo-table--diary th { white-space: nowrap; overflow-wrap: normal; letter-spacing: 0; }
    .wo-table--diary th:first-child, .wo-table--diary td:first-child { white-space: nowrap; width: 5.75rem; }
    .wo-table--diary th:nth-child(2), .wo-table--diary td:nth-child(2) { width: 3.75rem; }
}


/* Branding in dark mode (2026-11-16): a logo is shown on a white tile, as in the side menu and on a PDF; before, a logo
   with dark words could not be read on the dark box. */
:root[data-theme="dark"] .branding .branding-logo-box:has(img),
:root[data-theme="dark"] .branding .branding-mark-box { background: var(--logo-bg, #FFFFFF); }

/* The Settings menu in three small groups (owner 2026-11-16). A group's heading is quiet, and it hides itself when the
   person can open none of its pages (the next thing is another heading, or nothing). Help and Support sit side by side
   under the menu, so the menu still fits with Settings open. #8A9BB0 reads 4.5:1 on the menu. */
.wo-nav-sub { padding: var(--wo-space-1) var(--wo-space-3) 0; font-size: var(--wo-fs-caption); line-height: 1.4; color: #8A9BB0; }
.wo-nav-sub:has(+ .wo-nav-sub), .wo-nav-sub:last-child { display: none; }
.wo-nav-help { display: grid; grid-template-columns: 1fr 1fr; gap: var(--wo-space-1); margin-bottom: var(--wo-space-1); }
.wo-nav-help .wo-nav-item { margin-bottom: 0; gap: var(--wo-space-2); }
.wo-nav-group:not(:has(.wo-nav-item)) { display: none; }
/* On a short screen only the list of pages scrolls: the logo, Help, Support and the person stay in view. Before, the whole
   menu scrolled and the workspace's logo was squeezed flat. */
.wo-sidebar > * { flex-shrink: 0; }
.wo-sidebar > nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3A4D66 transparent; }

/* Form designer (2026-11-16): the shared designer breaks below about 770 px, so a small screen gets a note. */
.designer-narrow-note { display: none; margin: var(--wo-space-4); }
@media (max-width: 800px) { .designer-narrow-note { display: flex; } }

/* Job page (2026-11-16): the facts card's Edit button sits at the card's top right; the facts take the rest. */
.job-summary { position: relative; }
.job-summary-edit { float: right; margin: 0 0 var(--wo-space-2) var(--wo-space-3); }
.job-summary .job-facts { clear: none; }

/* Invoice and quote summary cards (2026-11-16): with no facts above the totals (a draft invoice), no empty gap and line. */
.invoice .wo-facts:not(:has(> div)) { display: none; }
.invoice .wo-facts:not(:has(> div)) + .invoice-totals { margin-top: 0; padding-top: 0; border-top: 0; }

/* Make the job from a quote (2026-11-16): the "What needs doing" box takes the confirm card's width. */
.invoice .invoice-confirm-field--wide { max-width: 44rem; }
.invoice .invoice-confirm-field--wide .office-note { margin: var(--wo-space-1) 0 0; }

/* Draft invoice (2026-11-16): the note that its lines are the job's lines sits close under the heading. */
.invoice .invoice-lines-note { margin: 0 0 var(--wo-space-3); }

/* Tab rows (2026-11-16): the row showed a small up-and-down scrollbar at its right end. A tab hung 1 px below the row
   (to sit on the row's line), and a row that may scroll sideways then also scrolls up and down. Now the line is drawn
   inside the row and no tab hangs out; the row can still scroll sideways on a narrow screen. */
.wo-tabs, .job-tabs { border-bottom: 0; box-shadow: inset 0 -1px 0 var(--wo-border); overflow-y: hidden; }
.wo-tab, .job-tab { margin-bottom: 0; }

/* The Job page's layout (owner 2026-11-17): a title with the job's icon; the progress line with the date of each step;
   the facts in four columns with an icon each; beside the work, a column with the next steps and the work description.
   On a narrow screen that column goes under the facts, above the tabs. Colours are the tokens, so the workspace's brand,
   light mode and dark mode all work. */
.job-title { display: flex; align-items: center; gap: var(--wo-space-3); min-width: 0; }
.job-title-icon { flex: none; width: 56px; height: 56px; border-radius: var(--wo-radius-lg); background: var(--wo-primary-soft); color: var(--wo-on-primary-soft); display: grid; place-items: center; }
.job-title-icon .wo-icon { width: 28px; height: 28px; }
.job-title-text { min-width: 0; }

/* "More": the buttons used less. */
.wo-more { position: relative; }
.wo-more-btn { padding-inline: var(--wo-space-2); min-width: var(--wo-target-control); justify-content: center; }
.wo-more-backdrop { position: fixed; inset: 0; background: transparent; border: 0; z-index: 40; cursor: default; }
.wo-more-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 41; min-width: 180px; display: grid; padding: var(--wo-space-1);
    background: var(--wo-surface); border: 1px solid var(--wo-border); border-radius: var(--wo-radius-md); box-shadow: var(--wo-shadow-2); }
.wo-more-item { font: inherit; text-align: start; background: none; border: 0; border-radius: var(--wo-radius-sm); padding: var(--wo-space-2) var(--wo-space-3);
    min-height: var(--wo-target-control); cursor: pointer; color: var(--wo-text); }
.wo-more-item:hover, .wo-more-item:focus-visible { background: var(--wo-surface-2); }
.wo-more-item--danger { color: var(--wo-error-fg); }

/* The progress line: a mark, the step's name and its date; the line between two steps takes the room that is left. */
.job-steps { align-items: flex-start; gap: var(--wo-space-2) 0; margin: 0 0 var(--wo-space-4); }
.job-steps li { flex: 1 1 auto; align-items: flex-start; }
.job-steps li:last-child { flex: 0 0 auto; }
.job-steps li::before { content: none; }
.job-steps li:not(:last-child)::after { flex: 1; width: auto; min-width: 16px; margin: 11px var(--wo-space-2) 0 var(--wo-space-1); }
.job-step-mark { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--wo-border-strong); display: grid; place-items: center; box-sizing: border-box; }
.job-step-mark .wo-icon { width: 14px; height: 14px; }
.job-steps li.is-done .job-step-mark { background: var(--wo-success-fg); border-color: var(--wo-success-fg); color: var(--wo-surface); }
.job-steps li.is-done::after { background: var(--wo-success-fg); }
.job-steps li.is-now .job-step-mark { border-color: var(--wo-primary); box-shadow: inset 0 0 0 4px var(--wo-surface), inset 0 0 0 12px var(--wo-primary); }
.job-step-text { display: grid; line-height: 1.3; }
.job-step-date { font-size: var(--wo-fs-caption); font-weight: 400; color: var(--wo-text-muted); }

/* Two columns from a wide screen; one below it, with the side column between the facts and the tabs. */
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--wo-space-5); }
.job-main-top { container-type: inline-size; min-width: 0; }
.job-main-rest { min-width: 0; }
.job-rail { display: grid; gap: var(--wo-space-4); align-content: start; margin-top: var(--wo-space-4); min-width: 0; }
.job-rail .wo-card { margin: 0; }
@media (min-width: 1200px) {
    .job-layout { grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto 1fr; }
    .job-main-top { grid-column: 1; grid-row: 1; }
    .job-main-rest { grid-column: 1; grid-row: 2; }
    .job-rail { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
}

/* The facts: four columns with a rule between them; two, then one, as the card gets narrow. */
.job-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--wo-space-4) 0; }
.job-col { display: grid; gap: var(--wo-space-4); align-content: start; padding-inline: var(--wo-space-4); border-inline-start: 1px solid var(--wo-border); min-width: 0; }
.job-col:first-child { border-inline-start: 0; padding-inline-start: 0; }
.job-col:last-child { padding-inline-end: 0; }
.job-fact { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--wo-space-3); align-items: start; }
.job-fact > .wo-icon { width: 22px; height: 22px; color: var(--wo-text-muted); margin-top: 2px; }
.job-fact > div { display: grid; gap: 2px; justify-items: start; min-width: 0; overflow-wrap: anywhere; }
.job-fact .office-note { margin: 0; }
.job-fact .wo-people { margin: 0; }
.job-fact-label { font-size: var(--wo-fs-body-sm); color: var(--wo-text-muted); }
.job-fact-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-2); }
.job-map { margin-top: var(--wo-space-2); min-height: 36px; padding-block: var(--wo-space-1); }
@container (max-width: 700px) {
    .job-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .job-col:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
    .job-col:nth-child(even) { padding-inline-end: 0; }
}
@container (max-width: 320px) {
    .job-cols { grid-template-columns: minmax(0, 1fr); }
    .job-col { border-inline-start: 0; padding-inline: 0; }
}

/* The side column: the next steps as a list with a mark each, and the work description, short until asked for. */
.job-rail h2, .job-lines h2 { display: flex; align-items: center; gap: var(--wo-space-2); }
.job-rail h2 .wo-icon, .job-lines h2 .wo-icon { width: 22px; height: 22px; color: var(--wo-text-muted); flex: none; }
.job-next-reason { margin: 0 0 var(--wo-space-3); }
.job-todo { list-style: none; margin: 0; padding: 0; }
.job-todo-item { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: var(--wo-space-3); align-items: center; padding: var(--wo-space-3) 0; border-top: 1px solid var(--wo-border); }
.job-todo-item:last-child { padding-bottom: 0; }
.job-todo-mark { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--wo-border-strong); display: grid; place-items: center; box-sizing: border-box; }
.job-todo-mark .wo-icon { width: 15px; height: 15px; }
.job-todo-item--done .job-todo-mark { background: var(--wo-success-fg); border-color: var(--wo-success-fg); color: var(--wo-surface); }
.job-todo-item--now .job-todo-mark { border-color: var(--wo-warning-fg); border-width: 3px; }
.job-todo-text { display: grid; gap: 2px; min-width: 0; }
/* A step the office does has the button that does it (designer's review 2026-12-02). */
.job-todo-do { min-height: 32px; padding: 0 var(--wo-space-3); font-size: var(--wo-fs-body-sm); white-space: nowrap; }
/* Settings: the warning on a card (a job type with no form). In the text column, so it must not stretch. */
.wo-settings-warn { align-self: flex-start; margin-top: var(--wo-space-1); }
/* The date and time picker (Components/Design/DateTimePick.razor; owner 2026-12-03, the owner's picture): the box,
   and under it the calendar, the times, what is chosen and Cancel / OK. It opens in the flow of the page, so a side
   panel or a card never cuts it off. */
.dtp { display: grid; gap: var(--wo-space-2); min-width: 0; position: relative; }
.dtp-box { display: flex; align-items: center; gap: var(--wo-space-1); }
.dtp-field { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--wo-space-2); min-height: var(--wo-target-control); padding: 0 var(--wo-space-3); border: 1px solid var(--wo-border-strong); border-radius: var(--wo-radius-md); background: var(--wo-surface); color: var(--wo-text); font: inherit; text-align: start; cursor: pointer; }
.dtp-field:hover, .dtp--open .dtp-field { border-color: var(--wo-primary); }
.dtp-field--none > span { color: var(--wo-text-subtle); }
.dtp-field svg { width: 18px; height: 18px; flex: none; color: var(--wo-text-muted); }
.dtp-clear { flex: none; }
.dtp-panel { border: 1px solid var(--wo-border); border-radius: var(--wo-radius-lg); background: var(--wo-surface); box-shadow: var(--wo-shadow-3); padding: var(--wo-space-4); min-width: 0; }
/* On a wide page the panel is wider than its box, so the calendar and the times are side by side (the owner's picture);
   it lies over what is under it. A box at the right of the form opens to the left. In a side panel, and on a narrow
   page, it is in the flow of the page and as wide as its box. */
@media (min-width: 900px) {
    .dtp-panel { position: absolute; z-index: 30; top: calc(100% + var(--wo-space-1)); left: 0; width: min(40rem, 90vw); }
    .dtp--end .dtp-panel { left: auto; right: 0; }
    .wo-side .dtp-panel { position: static; width: auto; }
}
.dtp-main { display: flex; flex-wrap: wrap; gap: var(--wo-space-5); }
.dtp-cal { flex: 1 1 17rem; min-width: 0; }
.dtp-month { display: flex; align-items: center; justify-content: space-between; gap: var(--wo-space-2); margin-bottom: var(--wo-space-2); }
.dtp-month strong { font-family: var(--wo-font-display); font-weight: var(--wo-weight-semibold); }
.dtp-month .wo-icon-btn { font-size: var(--wo-fs-title-sm); line-height: 1; }
.dtp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.dtp-dow { text-align: center; font-size: var(--wo-fs-body-sm); color: var(--wo-text-muted); padding: var(--wo-space-1) 0; }
.dtp-day { min-height: 36px; border: 1px solid transparent; border-radius: var(--wo-radius-md); background: none; color: var(--wo-text); font: inherit; cursor: pointer; }
.dtp-day:hover { background: var(--wo-surface-2); }
.dtp-day--out { color: var(--wo-text-subtle); }
.dtp-day--today { border-color: var(--wo-border-strong); }
.dtp-day[aria-pressed="true"] { background: var(--wo-primary); color: var(--wo-on-primary); border-color: var(--wo-primary); font-weight: var(--wo-weight-semibold); }
.dtp-quick { display: flex; gap: var(--wo-space-5); margin-top: var(--wo-space-3); }
.dtp-quick .wo-link-btn { font-size: var(--wo-fs-body); font-weight: var(--wo-weight-semibold); min-height: 32px; }
.dtp-time { flex: 1 1 10rem; min-width: 0; display: grid; gap: var(--wo-space-2); align-content: start; }
.dtp-time > label { margin: 0; color: var(--wo-text-muted); font-weight: var(--wo-weight-medium); }
.dtp-time-box { width: 100%; min-height: var(--wo-target-control); padding: 0 var(--wo-space-3); border: 1px solid var(--wo-border-strong); border-radius: var(--wo-radius-pill); background: var(--wo-surface); color: var(--wo-text); font: inherit; font-family: var(--wo-font-mono); box-sizing: border-box; }
.dtp-time-box:focus { outline: none; border-color: var(--wo-primary); box-shadow: 0 0 0 3px var(--wo-primary-soft); }
.dtp-time-box[aria-invalid="true"] { border-color: var(--wo-error-fg); }
.dtp-times { list-style: none; margin: 0; padding: 0; max-height: 13.5rem; overflow-y: auto; position: relative; }
.dtp-time-item { display: block; width: 100%; min-height: 36px; border: 0; border-radius: var(--wo-radius-md); background: none; color: var(--wo-text); font: inherit; font-family: var(--wo-font-mono); text-align: center; cursor: pointer; }
.dtp-time-item:hover { background: var(--wo-surface-2); }
.dtp-time-item[aria-selected="true"] { background: var(--wo-primary-soft); color: var(--wo-on-primary-soft); font-weight: var(--wo-weight-semibold); }
.dtp-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--wo-space-3); margin-top: var(--wo-space-4); padding-top: var(--wo-space-3); border-top: 1px solid var(--wo-border); }
.dtp-actions { display: flex; gap: var(--wo-space-2); }
.wo-side-body .dtp-time > label { margin: 0; }
/* The job's Forms tab as the four steps of the Job types page (designer's review 2026-12-02). */
.job-forms-remove { flex: none; margin-left: auto; min-height: var(--wo-target-control); }
.job-forms-sent { justify-content: space-between; }
.wo-job-forms .jt-form .wo-form-state { flex: none; }
.wo-side .invoice-export-fields { margin: 0; }
.wo-side-body > .wo-btn { justify-self: start; }
/* Customer page: the customer's story (owner 2026-12-02). */
.cust-story { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: var(--wo-space-4); }
.cust-tile-text { font-family: var(--wo-font-display); font-size: var(--wo-fs-title-sm); line-height: var(--wo-lh-title-sm); font-weight: var(--wo-weight-semibold); color: var(--wo-text); }
.cust-tile-text--none { font-weight: var(--wo-weight-regular); color: var(--wo-text-muted); }
.cust-tile-note { font-size: var(--wo-fs-body-sm); line-height: var(--wo-lh-body-sm); color: var(--wo-text-muted); }
.cust-warn { color: var(--wo-warning-fg); font-weight: var(--wo-weight-semibold); }
.cust-tile--still:hover { transform: none; box-shadow: var(--wo-shadow-1); }
.cust-recent { margin-bottom: 0; }
@media (max-width: 720px) {
    .cust-recent-table th:nth-child(2), .cust-recent-table td:nth-child(2),
    .cust-recent-table th:nth-child(3), .cust-recent-table td:nth-child(3) { display: none; }
    .cust-recent-table th, .cust-recent-table td { padding-inline: var(--wo-space-2); }
}
/* A list in a message (customers that look the same). */
.wo-message ul:not(.job-same) { margin: var(--wo-space-1) 0; padding-left: var(--wo-space-5); }
/* Jobs dashboard: the warning above the tiles. */
.wo-home-warning { margin-bottom: var(--wo-space-4); }
/* Home (owner 2026-12-04): its two tabs are links (Work, Money), and the flow strip shows the work in its order with an
   arrow between the steps. A step with nothing waiting is quieter. */
.wo-home-tabs { margin-top: 0; }
/* Owner 2026-12-04: Home's tabs stand out more, in the same height: an icon each, larger and bolder words, and the
   open tab filled with the soft brand colour above its brand underline. */
.wo-home-tabs .wo-tab { font-size: var(--wo-fs-body-lg); font-weight: var(--wo-weight-semibold); padding-block: var(--wo-space-2); }
.wo-home-tabs .wo-tab[aria-current="page"] { background: var(--wo-primary-soft); color: var(--wo-on-primary-soft); border-bottom-color: var(--wo-primary); }
a.wo-tab { text-decoration: none; }
.wo-tab[aria-current="page"] { color: var(--wo-text); border-bottom-color: var(--wo-primary); }
.wo-flow { list-style: none; margin: 0 0 var(--wo-space-5); padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--wo-space-4); }
.wo-flow-step { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--wo-radius-lg);
    background: var(--wo-surface); border: 1px solid var(--wo-border); box-shadow: var(--wo-shadow-1); border-top: 4px solid var(--wo-primary); }
.wo-flow-step:not(:last-child)::after { content: "→"; position: absolute; right: calc(-1 * var(--wo-space-4)); top: 50%; width: var(--wo-space-4);
    transform: translateY(-50%); text-align: center; color: var(--wo-text-subtle); font-weight: var(--wo-weight-semibold); }
.wo-flow-main { display: grid; gap: var(--wo-space-1); padding: var(--wo-space-3) var(--wo-space-4); color: var(--wo-text); text-decoration: none; flex: 1; border-radius: inherit; }
.wo-flow-main:hover { background: var(--wo-surface-2); color: var(--wo-text); }
.wo-flow-label { font-weight: var(--wo-weight-semibold); color: var(--wo-text-muted); }
.wo-flow-value { font-family: var(--wo-font-display); font-size: clamp(1.5rem, 2vw, 2rem); line-height: 1.1; font-weight: var(--wo-weight-semibold); letter-spacing: -0.02em; }
.wo-flow-note { font-size: var(--wo-fs-caption); line-height: var(--wo-lh-caption); color: var(--wo-text-subtle); }
.wo-flow-extra { display: block; padding: var(--wo-space-2) var(--wo-space-4); border-top: 1px solid var(--wo-border); font-size: var(--wo-fs-caption); font-weight: var(--wo-weight-semibold); }
.wo-flow-step--clear { border-top-color: var(--wo-border); }
.wo-flow-step--clear .wo-flow-value { color: var(--wo-text-subtle); }
@media (max-width: 900px) { .wo-flow-step::after { display: none; } }
/* The chain bar (owner 2026-12-04): enquiry → quote → job → invoice of one piece of work, above the record's title. */
.wo-chain ol { list-style: none; margin: 0 0 var(--wo-space-3); padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-1) var(--wo-space-2); }
.wo-chain-link { display: inline-flex; align-items: center; gap: var(--wo-space-2); }
.wo-chain-link:not(:last-child)::after { content: "→"; color: var(--wo-text-subtle); }
.wo-chain-link > a, .wo-chain-link > span { display: inline-flex; align-items: center; gap: var(--wo-space-1); min-height: 32px; padding: 0 var(--wo-space-3);
    border-radius: 16px; border: 1px solid var(--wo-border); background: var(--wo-surface); color: var(--wo-text); text-decoration: none; font-size: var(--wo-fs-caption); }
.wo-chain-link > a:hover { background: var(--wo-surface-2); border-color: var(--wo-primary); }
.wo-chain-link > span[aria-current] { border-color: var(--wo-primary); font-weight: var(--wo-weight-semibold); }
.wo-chain-link--next > span { border-style: dashed; color: var(--wo-text-muted); background: none; }
.wo-chain-step { color: var(--wo-text-subtle); font-weight: var(--wo-weight-medium); }
/* New job: add a customer or a site without leaving the page. */
.job-add-here { display: inline-flex; align-items: center; gap: var(--wo-space-1); margin-top: var(--wo-space-1); min-height: 28px; }
.job-add-here svg { width: 14px; height: 14px; }
.job-side-h { margin: var(--wo-space-3) 0 0; font-size: var(--wo-fs-body); font-family: var(--wo-font-display); font-weight: var(--wo-weight-semibold); }
.job-same { list-style: none; margin: var(--wo-space-2) 0 0; padding: 0; display: grid; gap: var(--wo-space-2); }
.job-same li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--wo-space-2); }
.job-same .office-note { margin: 0; }
.wo-side .office-form { padding: 0; }
.job-todo-text .office-note { margin: 0; }
.job-todo-item--todo strong { font-weight: var(--wo-weight-medium); color: var(--wo-text-muted); }
.job-todo-go { background: none; border: 0; border-radius: var(--wo-radius-sm); min-width: var(--wo-target-control); min-height: var(--wo-target-control); display: grid; place-items: center; cursor: pointer; color: var(--wo-text-muted); }
.job-todo-go:hover, .job-todo-go:focus-visible { background: var(--wo-surface-2); color: var(--wo-text); }
.job-todo-go .wo-icon { width: 20px; height: 20px; }
.job-what { padding-bottom: var(--wo-space-4); margin-bottom: var(--wo-space-4); border-bottom: 1px solid var(--wo-border); }
.job-what-head { display: flex; align-items: center; justify-content: space-between; gap: var(--wo-space-3); margin-bottom: var(--wo-space-1); }
.job-what-h { margin: 0; display: flex; align-items: center; gap: var(--wo-space-2); font-size: var(--wo-fs-body-sm); font-family: inherit; font-weight: var(--wo-weight-regular); color: var(--wo-text-muted); }
.job-what-h .wo-icon { width: 22px; height: 22px; flex: none; }
.job-what .job-desc { font-size: var(--wo-fs-body-lg); max-width: 75ch; }
.job-desc { margin: 0 0 var(--wo-space-2); white-space: pre-line; overflow-wrap: anywhere; }
.job-desc.is-clamped { display: -webkit-box; -webkit-line-clamp: 6; line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.job-desc-edit { display: inline-flex; align-items: center; gap: var(--wo-space-1); }
.job-desc-edit .wo-icon { width: 16px; height: 16px; }
.job-tab .wo-icon { width: 18px; height: 18px; }

/* Work and parts: the job against its quote beside the totals, and a chip on a line that came from the price list. */
.job-lines-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--wo-space-4); margin-top: var(--wo-space-4); }
.job-lines-foot .job-lines-totals { margin-top: 0; margin-inline-start: auto; min-width: min(100%, 260px); }
.job-quoted { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-2) var(--wo-space-3); padding: var(--wo-space-2) var(--wo-space-3);
    border: 1px solid var(--wo-border); border-radius: var(--wo-radius-md); background: var(--wo-surface-2); }
.job-quoted .wo-icon { width: 18px; height: 18px; color: var(--wo-text-muted); }
.job-quoted .wo-pill .wo-icon { color: inherit; }
.job-kind { display: inline-block; font-size: var(--wo-fs-caption); font-weight: var(--wo-weight-semibold); border-radius: var(--wo-radius-pill); padding: 0 var(--wo-space-2);
    margin-inline-end: var(--wo-space-2); background: var(--wo-info-bg); color: var(--wo-info-fg); }
.job-kind--labour { background: var(--wo-primary-soft); color: var(--wo-on-primary-soft); }
.job-kind--part { background: var(--wo-surface-2); color: var(--wo-text-muted); box-shadow: inset 0 0 0 1px var(--wo-border); }

/* Service plans (2026-11-17). */
.plan-job { margin-inline-start: var(--wo-space-2); }
.plan-settings { margin-top: var(--wo-space-4); }
.plan-settings-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--wo-space-3); }

/* EP32-S01: enquiries. Where an enquiry came from, in the list; the "Not wanted" card on the enquiry's page. */
.enquiry-source { display: inline-flex; align-items: center; gap: var(--wo-space-1); }
.enquiry-source .wo-icon { width: 16px; height: 16px; color: var(--wo-text-subtle); }
.enquiry .enquiry-confirm p { margin: 0 0 var(--wo-space-3); }
.enquiry .enquiry-confirm-field { display: grid; gap: var(--wo-space-1); max-width: 28rem; margin-bottom: var(--wo-space-3); }
.enquiry .enquiry-confirm-field label { font-weight: var(--wo-weight-semibold); }
.enquiry .enquiry-confirm-actions { display: flex; flex-wrap: wrap; gap: var(--wo-space-2); }
/* EP32-S02: the "make a customer and a job" step sits above the summary; the person's own words keep their line breaks. */
.enquiry .enquiry-make { margin-bottom: var(--wo-space-5); }
.enquiry .enquiry-make > .office-note { margin: 0 0 var(--wo-space-3); }
.enquiry .enquiry-make .wo-message { margin-bottom: var(--wo-space-3); }
.enquiry .enquiry-message { margin: 0 0 var(--wo-space-3); white-space: pre-line; max-width: 70ch; }
.plan-settings-row .wo-filter { max-width: 14rem; }
.plan-save { display: flex; flex-wrap: wrap; gap: var(--wo-space-2); margin: var(--wo-space-4) 0; }
.plan .wo-card + .wo-card { margin-top: var(--wo-space-4); }
/* The plan's lines use the invoice's line editor. Its narrow layout asks how wide its box is, so the box says it is one
   (the invoice page's own column does that there). Without this the line went off the right side of a phone. */
.plan .invoice-lines { container-type: inline-size; }
a.wo-more-item { text-decoration: none; display: flex; align-items: center; }
