/* 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); }
: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 ── */
.office { max-width: 1280px; }
.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); }
.wo-priority { display: inline-flex; align-items: center; gap: var(--wo-space-1); font-weight: var(--wo-weight-medium); }
.wo-priority::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.wo-priority--low { color: var(--wo-priority-low); }
.wo-priority--normal { color: var(--wo-priority-normal); }
.wo-priority--high { color: var(--wo-priority-high); }
.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 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-logo { display: inline-block; margin-bottom: var(--wo-space-6); text-decoration: none; }
.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); }
.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; }
/* "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); }
.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-menu-btn { display: none; }
.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-menu-btn { display: inline-grid; }
    .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); }
}

/* ── 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); }
.wo-chip[aria-current="page"] { background: var(--wo-primary-soft); color: var(--wo-on-primary-soft); border-color: var(--wo-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; }
.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; 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"].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); }

.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: 1280px; }
.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; }
.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; }
.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; }
.wo-link-btn:hover { text-decoration: underline; }
.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 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-forms-templates { display: flex; justify-content: flex-end; padding: var(--wo-space-3) var(--wo-space-5) 0; }
.wo-forms-templates a { display: inline-flex; align-items: center; gap: var(--wo-space-2); color: var(--wo-primary); font-weight: var(--wo-weight-semibold); }
.wo-forms-templates svg { width: 18px; height: 18px; }
.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-forms-norule { margin: var(--wo-space-3) var(--wo-space-5) 0; }
.wo-forms-norule ul { margin: var(--wo-space-1) 0 0; padding-left: var(--wo-space-5); }

/* ── 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-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); }
.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.wo-heat-cell:hover, a.wo-heat-cell:focus-visible { filter: brightness(.94); }
.wo-heat-cell--1 { background: var(--wo-heat-1); color: var(--wo-on-heat-1); }
.wo-heat-cell--2 { background: var(--wo-heat-2); color: var(--wo-on-heat-2); }
.wo-heat-cell--3 { background: var(--wo-heat-3); color: var(--wo-on-heat-3); }
.wo-heat-cell--4 { background: var(--wo-heat-4); color: var(--wo-on-heat-4); }
.wo-heat-cell--5 { background: var(--wo-heat-5); color: var(--wo-on-heat-5); }
.wo-heat-cell.is-zero { 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 .billing-facts { margin-bottom: var(--wo-space-4); }
.billing .billing-choose { display: flex; flex-wrap: wrap; gap: var(--wo-space-3); margin: var(--wo-space-3) 0; }
.billing .billing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wo-space-3); }
.billing .wo-message + .wo-card { margin-top: var(--wo-space-4); }
