/* RT Office design tokens — the ONE place for the office's colors, spacing, radii, type sizes, control sizes, the button family,
   the chip family and the inline icon set (office design review 10/19/26: Suggestion 1, Issues 3, 6, 13, 19, 20, 23, 26).
   Loaded by both halves of the office as its own <link> (10/20/26): the standalone pages first (src/Office/Page.php, before ui.css),
   the office app right before more.css (office/app/index.php, where the old imports put it). Light only (Dan 10/18/26).
   Every color pair below is checked against WCAG AA by tests/js/office_tokens.test.mjs (text 4.5:1, borders / focus 3:1).
   Old names: the app's --blue / --line / --text-2 … (office/app/look.css) and the standalone --mf-* (ui.css) are aliases of these. */
:root {
    /* surfaces */
    --c-bg: #f5f5f7; --c-card: #ffffff; --c-fill: #eef0f3; --c-fill-2: #e4e7eb;
    --c-line: #d8dce2;            /* dividers, card borders (decoration) */
    --c-input-line: #c4cad1;      /* plain button borders (the label carries the meaning) */
    --c-field-line: #868c95;      /* text box borders: 3:1 on white and on the page gray (WCAG 1.4.11) */
    /* text */
    --c-text: #1d1d1f; --c-text-soft: #3c4148; --c-text-2: #5f6368;
    --c-text-3: #6b6b70;          /* hints, placeholders: 4.6:1 even on the gray fill (was #c7c7cc, 1.68:1) */
    /* brand and status: text colors AND fills under white text (all ≥ 4.5:1 both ways round) */
    --c-blue: #0066cc; --c-blue-hover: #0058b0; --c-green: #1a7f37; --c-red: #c9252d; --c-orange: #b54708; --c-amber: #8a5a00; --c-purple: #8250df;
    /* soft fills for chips / banners and their text */
    --c-tint-green: #e3f6e8; --c-green-ink: #116329; --c-tint-amber: #fff4d6; --c-amber-ink: #7a4d00; --c-tint-orange: #fff0e3; --c-orange-ink: #933b00;
    --c-tint-red: #ffebe9; --c-red-ink: #a40e26; --c-tint-blue: #e5f0fc; --c-blue-ink: #0550ae;
    /* rows: selected = tint, keyboard focus = a 2 px ring on top (Issue 26) */
    --c-sel: #e5f0fc; --c-sel-2: #d6e7fa; --c-focus: #0066cc;
    /* map (fills behind white / black text) */
    --c-pin-done: #1a7f37; --c-pin-next: #f5b301; --c-pin-todo: #6b7280; --c-pin-term: #475569; --c-pin-red: #cf222e; --c-pin-amber: #f59e0b;
    --c-map-stale: #6b7280;       /* a driver dot older than 2 h, and its label text (was #9ca3af, 2.54:1) */
    --c-map-pick: #7c3aed;
    /* spacing scale (base 4; micro 2 for dense rhythm). Use ONLY these for padding / gap / margin in office CSS.
       --sp-0  2px  micro: stacked labels under a name, date-chip gaps, dense row rhythm
       --sp-1  4px  tight: inside a chip / control, optical pad on pills
       --sp-2  8px  default sibling gap (toolbar tools, row column gap, button pair)
       --sp-3 12px  group / toolbar padding, sheet item gaps
       --sp-4 16px  card / sheet panel padding, page inset on phones
       --sp-5 24px  section separation, end fade pads
       --sp-6 32px  empty-state breathing room
       Optical exception: icon↔label gap inside a button may stay 6px (between sp-0 and sp-1). Borders stay 1px. */
    --sp-0: 2px; --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
    /* radii: small (inputs in tables, tags), medium (buttons, inputs, cards), pill (chips) */
    --r-sm: 6px; --r-md: 10px; --r-lg: 12px; --r-pill: 999px;
    /* type scale 12 / 13 / 14 / 16 / 20 / 26 */
    --fs-2xs: 11px; --fs-xs: 12px; --fs-sm: 13px; --fs-md: 14px; --fs-lg: 16px; --fs-xl: 20px; --fs-2xl: 26px;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
    --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
    /* controls: one height per size; on a phone nothing tappable is under --tap */
    --h-xs: 28px; --h-sm: 34px; --h-md: 40px; --h-lg: 44px; --tap: 40px;
    /* page widths (Issue 14): tables and boards use the wide one, forms and menus the reading one; same left edge */
    --w-wide: 1200px; --w-read: 760px;
    --shadow-1: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    --shadow-panel: 0 12px 32px rgba(16, 24, 40, .18);
    /* inline icons (Issue 19): 24 × 24 line drawings, drawn in currentColor through a mask. <span class="ic ic-phone" aria-hidden="true"></span> */
    --ic-today: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
    --ic-todo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 6h10M10 12h10M10 18h10M3.5 6l1.5 1.5L7.5 5M3.5 12l1.5 1.5L7.5 11M3.5 18l1.5 1.5L7.5 17'/%3E%3C/svg%3E");
    --ic-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E");
    --ic-pay: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M16.5 7.5c0-1.7-2-2.5-4.5-2.5S7.5 6 7.5 8s2 2.8 4.5 3.5 4.5 1.6 4.5 3.7-2 3.3-4.5 3.3-4.5-.9-4.5-2.8'/%3E%3C/svg%3E");
    --ic-more: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5' cy='12' r='1.5'/%3E%3Ccircle cx='12' cy='12' r='1.5'/%3E%3Ccircle cx='19' cy='12' r='1.5'/%3E%3C/svg%3E");
    --ic-refresh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.4-5.7L20 8.5M20 3.5v5h-5'/%3E%3C/svg%3E");
    --ic-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h3.5l2 5-2.3 1.4a11 11 0 0 0 5.4 5.4L15 13.5l5 2V19a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
    --ic-text: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5a7.5 7.5 0 0 1-11 6.6L4 19.5l1.4-4.6A7.5 7.5 0 1 1 20 11.5z'/%3E%3C/svg%3E");
    --ic-clip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 11.5l-8.2 8.2a5 5 0 0 1-7-7l8.2-8.2a3.3 3.3 0 0 1 4.7 4.7l-8.2 8.2a1.7 1.7 0 0 1-2.4-2.4l7.5-7.5'/%3E%3C/svg%3E");
    --ic-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.5 2'/%3E%3C/svg%3E");
    --ic-receipt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-3-2-3 2-3-2-3 2zM9 8h6M9 12h6M9 16h3'/%3E%3C/svg%3E");
    --ic-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3.5 7l8.5 6 8.5-6'/%3E%3C/svg%3E");
    --ic-map: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11a7 7 0 0 1 14 0c0 4.8-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
    --ic-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
    --ic-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l9.5 16.5h-19zM12 10v4.5M12 17.5v.01'/%3E%3C/svg%3E");
    --ic-box: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5l9-4.5 9 4.5v9L12 21l-9-4.5zM3 7.5l9 4.5 9-4.5M12 12v9'/%3E%3C/svg%3E");
    --ic-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0M16 4.5a3.5 3.5 0 0 1 0 7M18 14a5.5 5.5 0 0 1 3.5 6'/%3E%3C/svg%3E");
    --ic-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3.5-3.5a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3.5 3.5a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E");
    --ic-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7M5 9.5V20h5v-6h4v6h5V9.5'/%3E%3C/svg%3E");
    --ic-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
    --ic-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
    /* 10/20/26: edit print download rotate swap copy gps truck undo (the trip screen's menus and lines, no emoji) */
    --ic-edit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L18.5 9.5l-4-4L4 16z'/%3E%3Cpath d='M13 7l4 4'/%3E%3C/svg%3E");
    --ic-print: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 9V3h10v6M7 18H5a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Crect x='7' y='14' width='10' height='7'/%3E%3C/svg%3E");
    --ic-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E");
    --ic-rotate: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12a8 8 0 1 0 2.4-5.7L4 8.5M4 3.5v5h5'/%3E%3C/svg%3E");
    --ic-swap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h15l-4-4M20 16H5l4 4'/%3E%3C/svg%3E");
    --ic-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='12' height='12' rx='2'/%3E%3Cpath d='M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3'/%3E%3C/svg%3E");
    --ic-gps: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3'/%3E%3C/svg%3E");
    --ic-truck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6h11v10H2zM13 9h4l3.5 3.5V16H13'/%3E%3Ccircle cx='6' cy='18' r='2'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3C/svg%3E");
    --ic-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='M21 16l-5-4-4 3-3-2-6 5'/%3E%3C/svg%3E");
    --ic-undo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14L4 9l5-5M4 9h10a6 6 0 0 1 0 12h-3'/%3E%3C/svg%3E");
/*CLASSES*/ .ic-today { --ic: var(--ic-today); }
}

/* ---------- placeholders read as hints, never as data (Issue 7) ---------- */
::placeholder { color: var(--c-text-3); font-style: italic; opacity: 1; }

/* ---------- keyboard focus: a ring, always (Issues 26, 12) ---------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
/* rows that take focus (board, users, Find, To-do, trip stops): ring inside the row, on top of the selected tint */
:where(tr, .tb-row, .td-item, .ts-row, .pw-row, [role="row"]):focus-visible { outline: 2px solid var(--c-focus); outline-offset: -2px; }

/* ---------- keyboard hints only where there is a keyboard (Issue 20): <kbd class="kbd-hint">/</kbd> ---------- */
.kbd-hint { display: inline-block; min-width: 18px; padding: 0 var(--sp-1); border: 1px solid var(--c-input-line); border-bottom-width: 2px; border-radius: var(--r-sm);
    background: var(--c-card); color: var(--c-text-2); font: 600 var(--fs-2xs)/16px var(--font); text-align: center; vertical-align: middle; }
@media (hover: none) {
    .kbd-hint { display: none; }
}

/* ---------- icons ---------- */
.ic { display: inline-block; flex: none; width: 1.15em; height: 1.15em; vertical-align: -0.2em; background: currentColor;
    -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.ic-lg { width: 22px; height: 22px; }
.ic-today { --ic: var(--ic-today); }
.ic-todo { --ic: var(--ic-todo); }
.ic-paper { --ic: var(--ic-paper); }
.ic-pay { --ic: var(--ic-pay); }
.ic-more { --ic: var(--ic-more); }
.ic-refresh { --ic: var(--ic-refresh); }
.ic-phone { --ic: var(--ic-phone); }
.ic-text { --ic: var(--ic-text); }
.ic-clip { --ic: var(--ic-clip); }
.ic-clock { --ic: var(--ic-clock); }
.ic-receipt { --ic: var(--ic-receipt); }
.ic-mail { --ic: var(--ic-mail); }
.ic-map { --ic: var(--ic-map); }
.ic-check { --ic: var(--ic-check); }
.ic-alert { --ic: var(--ic-alert); }
.ic-box { --ic: var(--ic-box); }
.ic-users { --ic: var(--ic-users); }
.ic-link { --ic: var(--ic-link); }
.ic-home { --ic: var(--ic-home); }
.ic-search { --ic: var(--ic-search); }
.ic-x { --ic: var(--ic-x); }
.ic-edit { --ic: var(--ic-edit); }
.ic-print { --ic: var(--ic-print); }
.ic-download { --ic: var(--ic-download); }
.ic-rotate { --ic: var(--ic-rotate); }
.ic-swap { --ic: var(--ic-swap); }
.ic-copy { --ic: var(--ic-copy); }
.ic-gps { --ic: var(--ic-gps); }
.ic-truck { --ic: var(--ic-truck); }
.ic-image { --ic: var(--ic-image); }
.ic-undo { --ic: var(--ic-undo); }

/* ---------- one button family (Issue 13): .btn + .btn-primary / .btn-sm / .btn-link / .btn-danger / .btn-icon.
   The older names get the same look: .oa-btn (.primary, .sm), .pw-btn (.p, .sm), .mf-btn (-primary, -sm, -plain, -danger, -green), .su-btn. ---------- */
.btn, .oa-btn, .pw-btn, .mf-btn, .su-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box;
    min-height: var(--h-md); padding: 0 var(--sp-4); border: 1px solid var(--c-input-line); border-radius: var(--r-md);
    background: var(--c-card); color: var(--c-text); font: 600 var(--fs-md)/1.2 var(--font); text-decoration: none; white-space: nowrap;
    cursor: pointer; transition: background .12s, border-color .12s; }
:is(.btn, .oa-btn, .pw-btn, .mf-btn, .su-btn):hover:not(:disabled) { background: var(--c-fill); text-decoration: none; }
:is(.btn, .oa-btn, .pw-btn, .mf-btn, .su-btn):disabled { opacity: .5; cursor: default; }
/* the hidden attribute wins over the family's display: inline-flex (10/20/26: a VIEWER saw #dv-save / #dv-applink on Drivers) */
:is(.btn, .oa-btn, .pw-btn, .mf-btn, .su-btn)[hidden] { display: none; }
.btn-primary, .oa-btn.primary, .pw-btn.p, .mf-btn.mf-btn-primary, .su-btn.su-btn-primary { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }
:is(.btn-primary, .oa-btn.primary, .pw-btn.p, .mf-btn.mf-btn-primary, .su-btn.su-btn-primary):hover:not(:disabled) { background: var(--c-blue-hover); border-color: var(--c-blue-hover); }
.mf-btn.mf-btn-green { background: var(--c-green); border-color: var(--c-green); color: #fff; }
.mf-btn.mf-btn-green:hover:not(:disabled) { background: #166a2e; }
.btn-danger, .mf-btn.mf-btn-danger { color: var(--c-red); border-color: #e3a5a9; }
:is(.btn-danger, .mf-btn.mf-btn-danger):hover:not(:disabled) { background: var(--c-tint-red); }
.btn-link, .mf-btn.mf-btn-plain { border-color: transparent; background: transparent; color: var(--c-blue); padding: 0 var(--sp-2); }
:is(.btn-link, .mf-btn.mf-btn-plain):hover:not(:disabled) { background: var(--c-tint-blue); }
.btn-sm, .oa-btn.sm, .pw-btn.sm, .mf-btn.mf-btn-sm { min-height: var(--h-sm); padding: 0 var(--sp-3); font-size: var(--fs-sm); }
.btn-icon { width: var(--h-md); padding: 0; }
.btn-sm.btn-icon { width: var(--h-sm); }
/* one refresh control everywhere (Issue 19): <button class="btn btn-sm btn-refresh"><span class="ic ic-refresh" aria-hidden="true"></span><span>Refresh</span></button> */
.btn-refresh .ic { width: 16px; height: 16px; }
.btn-refresh.busy .ic { animation: ic-spin .9s linear infinite; }
@keyframes ic-spin { to { transform: rotate(360deg); } }

/* ---------- one chip family: status words on a soft fill, pill shaped ---------- */
.chip { display: inline-flex; align-items: center; gap: var(--sp-1); padding: var(--sp-0) var(--sp-2); border-radius: var(--r-pill); background: var(--c-fill); color: var(--c-text-2);
    font: 600 var(--fs-xs)/1.5 var(--font); white-space: nowrap; }
.chip-green { background: var(--c-tint-green); color: var(--c-green-ink); }
.chip-amber { background: var(--c-tint-amber); color: var(--c-amber-ink); }
.chip-orange { background: var(--c-tint-orange); color: var(--c-orange-ink); }
.chip-red { background: var(--c-tint-red); color: var(--c-red-ink); }
.chip-blue { background: var(--c-tint-blue); color: var(--c-blue-ink); }
/* count badge (tabs): white on red / orange */
.count-badge { display: inline-block; min-width: 18px; padding: 0 var(--sp-1); border-radius: var(--r-pill); background: var(--c-red); color: #fff;
    font: 800 var(--fs-2xs)/18px var(--font); text-align: center; }

/* ---------- phones: nothing tappable under 40 px (Issue 23) ---------- */
@media (max-width: 699px) {
    .btn, .oa-btn, .pw-btn, .mf-btn, .su-btn, .btn-sm, .oa-btn.sm, .pw-btn.sm, .mf-btn.mf-btn-sm { min-height: var(--tap); }
    .btn-sm.btn-icon { width: var(--tap); }
}
