/* LastStop design system, layer 3 of 4: components (docs/REDESIGN-ROLLOUT.md section 4). Class names are fixed; the area
   stylesheets reuse them and never restyle them locally. Ported from the approved dock4 prototype (design/v2/dock4/),
   with the prototype's names mapped onto the role tokens (tokens.css). Where an older class name collides (.btn, .panel,
   .toast, .field) the rules here are written so the pages not yet converted keep their layout: the older modifiers
   (.btn.is-primary, .is-quiet, .is-small) keep their sizes and only pick up the theme. */

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: 14.5px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--heading); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn-primary, .btn.is-primary { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--accent-ink); }
.btn-primary:hover, .btn.is-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
html[data-theme="dark"] .btn-primary, html[data-theme="dark"] .btn.is-primary { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent), 0 8px 26px -6px var(--accent-glow); }
html[data-theme="light"] .btn-primary, html[data-theme="light"] .btn.is-primary { box-shadow: 0 8px 20px -10px var(--accent-glow); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
.btn.is-small { padding: 6px 14px; }
.btn-icon { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
.btn-quiet, .btn.is-quiet { background: transparent; border-color: transparent; color: var(--accent-text); }
.btn-quiet:hover, .btn.is-quiet:hover { background: var(--accent-soft); color: var(--accent-text); }
.btn-block { width: 100%; }
.btn .ic, .btn .icon { width: 18px; height: 18px; flex: none; }

/* ---------- pills: one status, one tone ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 9px; border-radius: 999px; font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; flex: none; background: var(--neu-soft); color: var(--neu); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.pend { background: var(--pend-soft); color: var(--pend); }
.pill.rev { background: var(--rev-soft); color: var(--rev); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.neu { background: var(--neu-soft); color: var(--neu); }

/* ---------- rows: a name and one pill; the row is the tap target ---------- */
.rows { display: flex; flex-direction: column; gap: 2px; list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 8px 12px 8px 14px; border-radius: var(--r-3); color: inherit; text-decoration: none; text-align: left; transition: background var(--t-fast) var(--ease); }
.row:hover { background: var(--surface); }
.row.is-open, .row[aria-current] { background: var(--surface); box-shadow: inset 3px 0 0 var(--accent); }
.row-name { flex: 1; min-width: 0; font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.showall { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 8px; border-radius: 999px; border: 1px dashed var(--line-2); background: transparent; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--accent-text); cursor: pointer; transition: background var(--t-fast) var(--ease); }
.showall:hover { background: var(--accent-soft); border-color: transparent; }
.showall .icon { width: 16px; height: 16px; }
[data-ls-list] > .is-over { display: none; }
[data-ls-list].is-all > .is-over { display: revert; }

/* ---------- a list screen (dock3's approved pattern, stage 6 core): the hero figure and its words with the one primary
   (.lh), the rows, then ONE control: "Show all N" under the rows, whose menu holds Show all, the filters and the screen's
   other actions (.list-ctl); with every row on screen the control sits above the rows and names the filter. Phone: the
   primary, 3 rows, the control = 5; desktop: the primary, 5 rows, the control = 7. Server pages mark the control
   [data-ls-listctl] after their [data-ls-list] (src/pages/ui.mjs listScreen) and ls-ui.js does the rest. ---------- */
.ls-shell .pane-list > .pane-header.lh-wrap { position: static; padding: 28px 0 6px; border: 0; }
.ls-shell .pane-list > .list-body { padding-top: 6px; }
@media (max-width: 1023px) {
  .ls-shell .pane-list > .pane-header.lh-wrap, .ls-shell .pane-list > .list-body { padding-left: 16px; padding-right: 16px; }
  .ls-shell .pane-list > .pane-header.lh-wrap { padding-top: 22px; }
}
@media (min-width: 1024px) { .ls-shell .pane-list > .pane-header.lh-wrap { padding-top: 48px; } }
/* a list head drawn straight into the list column (Offers, Payroll) gets the same room above it */
.ls-shell .pane-list > .lh:first-child { padding-top: 22px; }
@media (min-width: 1024px) { .ls-shell .pane-list > .lh:first-child { padding-top: 48px; } }
.lh { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; margin: 0 0 14px; }
.lh-title { display: flex; align-items: baseline; gap: 12px; margin: 0; min-width: 0; font-size: var(--fs-5); line-height: 1.05; letter-spacing: -.02em; }
.lh-title .hero-figure { font-size: var(--fs-7); }
.lh-words { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-4); color: var(--heading); min-width: 0; overflow-wrap: anywhere; }
.lh-acts { display: flex; align-items: center; gap: 8px; flex: none; }
.hero-figure .fig.bad { color: var(--bad); } .hero-figure .fig.rev { color: var(--rev); } .hero-figure .fig.ok { color: var(--ok); } .hero-figure .fig.pend { color: var(--pend); }
html[data-theme="dark"] .hero-figure .fig.bad { text-shadow: 0 0 28px var(--accent-glow); }
@media (max-width: 759px) {
  .lh-title .hero-figure { font-size: 48px; }
  .lh-words { font-size: 20px; }
}

/* rows: the components' .row, on the theme; an unread row is bolder */
.rows .row { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.rows .row.is-static { cursor: default; }
.rows .row.is-static:hover { background: none; }
.rows .row.is-unread .row-name::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--accent); vertical-align: middle; box-shadow: 0 0 8px var(--accent-glow); }
.rows .row[aria-checked="true"] { background: var(--surface); box-shadow: inset 3px 0 0 var(--ok); }
.row .pill strong { font-weight: 700; margin-right: 1px; }
/* J757: rows no longer fade in. They are drawn again on every page and every section change, so the fade read as a flash. */

/* a list's one control: Show all under the rows (opening the list's menu when it has filters), or the filter above them */
.list-ctl { display: block; position: relative; }
.list-ctl > summary { list-style: none; cursor: pointer; }
.list-ctl > summary::-webkit-details-marker { display: none; }
.list-ctl.is-head { display: inline-block; margin: 0 0 8px; }
.list-ctl > summary .icon { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.list-ctl[open] > summary .icon { transform: rotate(180deg); }
.filter-btn { min-height: 38px; }
.list-ctl.is-foot > .menu { left: 0; right: auto; top: auto; bottom: calc(100% + 6px); width: min(360px, 100%); }
.list-ctl.is-head > .menu { left: 0; right: auto; width: 300px; max-width: calc(100vw - 32px); }
.menu .menu-field { padding: 6px 10px 8px; gap: 4px; }
.menu .menu-field > span { font-family: var(--font-head); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.menu .menu-field .input { min-height: 42px; padding: 8px 12px; }
/* J53 recheck: '.menu .mi' (below) sets display:flex at the same weight and came later, so 'More (N)' never hid its items */
.menu > .is-over, .menu > .mi.is-over { display: none; }
.menu.is-all > .is-over, .menu.is-all > .mi.is-over { display: flex; }
.mi-more .chev { transition: transform .15s; }
.menu.is-all > .mi-more .chev { transform: rotate(180deg); }
.menu .mi-n { margin-left: auto; font-family: var(--font-head); font-weight: 700; font-variant-numeric: tabular-nums; }
.menu .mi-n.bad { color: var(--bad); } .menu .mi-n.rev { color: var(--rev); } .menu .mi-n.pend { color: var(--pend); } .menu .mi-n.ok { color: var(--ok); }
.menu .later-tag { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 7px; }
.load-more { margin-top: 8px; }
.list-search { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--input-bg); color: var(--muted); }
.list-search .input { border: 0; background: none; min-height: 44px; padding: 0; box-shadow: none; }
.list-search .icon { width: 18px; height: 18px; flex: none; position: static; transform: none; }
/* J53 recheck: styles.css still placed the icon absolutely over the box while the input above lost its left padding, so the
   icon sat on the placeholder; here it is a plain flex item beside the input */
.list-search .input { flex: 1; min-width: 0; }

/* J54 (Sarah 10/14/2026): a list's tool row: the picker (the list's one control) on the left, the search beside it, one
   row on phone and desktop (Employees, Applicants, Fleet) */
.list-tools { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.list-tools > .list-ctl, .list-tools > .list-ctl.is-head { flex: none; margin: 0; max-width: 46%; }
.list-tools > .list-ctl > summary { max-width: 100%; }
.list-tools .list-ctl-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-tools > .ops-search, .list-tools > .list-search { flex: 1 1 auto; min-width: 0; margin: 0; }
.list-tools > .list-search .input { min-height: 40px; }
/* J54 send-back (Grok Bot on a 393 px phone, 10/14/2026): the whole search hint shows beside the picker on a phone */
@media (max-width: 640px) { .list-tools .input::placeholder { font-size: 14px; } .list-tools .ops-search .input { padding-left: 12px; padding-right: 10px; } }

/* ---------- attention cards (Home: at most three) ---------- */
.acard { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 14px 16px; border-radius: var(--r-3); background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
html[data-theme="light"] .acard { border-color: transparent; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 10px 28px -16px var(--accent-glow); }
.acard:hover { background: var(--surface-2); border-color: var(--line-2); }
.acard-ic { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--neu-soft); color: var(--neu); }
.acard.bad .acard-ic { background: var(--bad-soft); color: var(--bad); }
.acard.rev .acard-ic { background: var(--rev-soft); color: var(--rev); }
.acard.pend .acard-ic { background: var(--pend-soft); color: var(--pend); }
.acard.ok .acard-ic { background: var(--ok-soft); color: var(--ok); }
.acard-l { flex: 1; min-width: 0; font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--heading); }
.acard-n { font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: -.03em; color: var(--heading); flex: none; }
/* Sarah's walkthrough 10/13/2026: the attention card figures took too much room, smaller still on a phone */
@media (max-width: 759px) { .acard-n { font-size: 20px; } }
.acard.bad .acard-n { color: var(--bad); } .acard.rev .acard-n { color: var(--rev); } .acard.pend .acard-n { color: var(--pend); } .acard.ok .acard-n { color: var(--ok); }

/* ---------- folds: a header with one value; the body opens in place; one open at a time ---------- */
.folds { display: flex; flex-direction: column; }
.fold { border-top: 1px solid var(--line); }
.fold:first-child { border-top: 0; }
.fold-h { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 6px; border-radius: var(--r-2); background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; list-style: none; transition: background var(--t-fast) var(--ease); }
.fold-h::-webkit-details-marker { display: none; }
.fold-h:hover { background: var(--surface); }
.fold-h .t { flex: 1; min-width: 0; font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--heading); }
.fold-h .h { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.fold-h .chev { width: 18px; height: 18px; color: var(--muted); transition: transform var(--t-fast) var(--ease); flex: none; }
.fold-h[aria-expanded="true"] .chev, details[open] > .fold-h .chev { transform: rotate(90deg); }
.fold-h[aria-expanded="true"] .h, details[open] > .fold-h .h { display: none; }
.fold-b { padding: 4px 6px 20px; display: flex; flex-direction: column; gap: 10px; animation: ls-slide-down var(--t) var(--ease); }
.fold-b[hidden] { display: none; }
.fold-title { margin: 0; font-size: inherit; }
.secsw { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 8px 10px 8px 14px; border-radius: var(--r-3); border: 1px solid var(--line-2); background: var(--surface-2); color: inherit; font: inherit; cursor: pointer; }
.secsw:hover, .secsw.is-on { border-color: var(--accent); }
.secsw .t { font-family: var(--font-head); font-weight: 600; font-size: 15.5px; color: var(--heading); }
.secsw .h { flex: 1; min-width: 0; text-align: right; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- the one dropdown: a menu under its control, the page behind it inert ---------- */
.menu { min-width: 240px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-3); box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; animation: ls-pop var(--t) var(--ease); }
.menu .mi { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 12px; border-radius: var(--r-2); background: none; border: 0; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--heading); text-decoration: none; text-align: left; cursor: pointer; transition: background var(--t-fast) var(--ease); }
.menu .mi:hover, .menu .mi.is-cur { background: var(--surface-2); }
.menu .mi.is-cur { color: var(--accent-text); }
.menu .mi .icon, .menu .mi .ic { width: 18px; height: 18px; color: var(--muted); flex: none; }
.menu .mi.is-cur .icon { color: var(--accent-text); }
.menu .sep { height: 1px; background: var(--line); margin: 4px 8px; }
.menu .menu-label { padding: 8px 12px 4px; font-family: var(--font-head); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* a menu item's short value (the current choice, a count) and the header of a group with its own dropdown inside a menu
   (rule 2: headers only, one open at a time); src/pages/ui.mjs menuBody, app.js's menus */
.mi-h { margin-left: auto; font-family: var(--font-body); font-weight: 500; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50%; }
.mgrp > summary { list-style: none; }
.mgrp > summary::-webkit-details-marker { display: none; }
.mgrp > summary .t { flex: 1; min-width: 0; }
.mgrp > summary .mi-h { max-width: 45%; }
.mgrp > summary .chev { width: 16px; height: 16px; color: var(--muted); transition: transform var(--t-fast) var(--ease); }
.mgrp[open] > summary .chev { transform: rotate(180deg); }
.mgrp[open] > summary { color: var(--accent-text); }
.mgrp-b { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 6px 14px; animation: ls-slide-down var(--t) var(--ease); }
.mgrp-b .mi { min-height: 42px; font-weight: 500; font-size: 14.5px; }
.menu form { margin: 0; display: contents; }
/* the "..." button and its menu */
.ls-acts { position: relative; display: inline-flex; }
.list-ctl.ls-acts { display: block; }
.list-ctl.is-head.ls-acts { display: inline-block; }
.ls-acts > summary { list-style: none; cursor: pointer; }
.ls-acts > summary::-webkit-details-marker { display: none; }
.ls-acts > .menu { position: absolute; z-index: 46; top: calc(100% + 6px); right: 0; width: min(300px, calc(100vw - 32px)); max-height: min(70vh, 560px); }
/* beside a primary at the start of a row (a detail's actions) the menu opens from the row's left edge, inside the panel */
.acts-row { position: relative; }
.acts-row > .ls-acts, .acts-row > .ls-acts.is-menu-open { position: static; }
.acts-row > .ls-acts > .menu { left: 0; right: auto; }

/* ---------- tabs as one dropdown (data-ls-tabs) ---------- */
.tabsel { position: relative; display: inline-block; }
.tabsel > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--heading); cursor: pointer; }
.tabsel > summary::-webkit-details-marker { display: none; }
.tabsel > summary .chev { width: 16px; height: 16px; color: var(--muted); transition: transform var(--t-fast) var(--ease); }
.tabsel[open] > summary .chev { transform: rotate(180deg); }
.tabsel > .menu { position: absolute; z-index: 46; top: calc(100% + 6px); left: 0; }

/* ---------- the sheet (phone, slides up) / panel (desktop, right side over the dimmed list) ---------- */
.sheet { background: var(--surface); color: var(--ink); }
.sheet-close { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; background: none; border: 0; color: var(--muted); cursor: pointer; transition: background var(--t-fast) var(--ease); }
.sheet-close:hover { background: var(--surface-2); color: var(--ink); }
.sheet-close .icon, .sheet-close .ic { width: 20px; height: 20px; }
.sheet-handle { width: 40px; height: 5px; border-radius: 999px; background: var(--line-2); margin: 8px auto 0; flex: none; }

/* ---------- a detail in the panel / sheet: its head (.dhead: the name and one pill), the section switch (.secsel: one
   control naming the open section, the others in its menu), a saved note (.flash), the way back (.back-link) ---------- */
.dhead { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.dhead h1, .dhead h2 { margin: 0; overflow-wrap: anywhere; }
/* every detail's title reads the same (Operations, Admin, Hiring, Offers, Payroll): one size, one weight */
.dhead h1, .dhead h2, .acct-dtitle, .ap-name, .op-name { font-family: var(--font-head); font-size: var(--fs-5); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--heading); }
.dhead.is-sub h2 { font-size: var(--fs-4); }
.secsel { position: relative; }
.secsel > summary { list-style: none; }
.secsel > summary::-webkit-details-marker { display: none; }
.secsel > .secsw .t, .secsw.is-alone .t { flex: none; }
.secsel > .secsw .chev { width: 18px; height: 18px; color: var(--muted); flex: none; transition: transform var(--t-fast) var(--ease); }
.secsel[open] > .secsw { border-color: var(--accent); }
.secsel[open] > .secsw .chev { transform: rotate(180deg); }
.secsel > .menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 46; }
.secsel .menu .mi { justify-content: space-between; }
.secsw.is-alone { cursor: default; }
.flash { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 14px; border-radius: var(--r-2); font-size: 14px; line-height: 1.45; background: var(--ok-soft); color: var(--ok); }
.flash.bad { background: var(--bad-soft); color: var(--bad); }
.flash.rev { background: var(--rev-soft); color: var(--rev); }
.flash .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 40px; padding: 0 12px 0 8px; margin-left: -8px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--accent-text); text-decoration: none; transition: background var(--t-fast) var(--ease); }
.back-link:hover { background: var(--accent-soft); }
.back-link .icon { width: 18px; height: 18px; }
/* a fold with no script: <details class="fold"><summary class="fold-h"> */
details.fold > summary.fold-h { list-style: none; }
details.fold > .fold-b { padding-top: 2px; }

/* ---------- a page-sized state: a refusal inside the frame, a big empty state ---------- */
.state-card { align-self: center; width: min(100%, 520px); margin: 8vh auto 0; padding: 32px 28px; border-radius: var(--r-4); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.state-card h1 { margin: 0; font-size: var(--fs-5); line-height: 1.1; letter-spacing: -.02em; }
.state-card p { margin: 0; font-size: var(--fs-2); line-height: 1.5; color: var(--ink-2); }
.state-ic { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-text); }
html[data-theme="dark"] .state-ic { box-shadow: 0 0 32px -6px var(--accent-glow); }
.state-ic .icon { width: 24px; height: 24px; }
.state-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* ---------- hero figure, empty state, toast ---------- */
.hero-figure { position: relative; display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: var(--fs-7); line-height: .95; letter-spacing: -.035em; color: var(--heading); }
html[data-theme="dark"] .hero-figure::before { content: ""; position: absolute; inset: -30px -50px; background: radial-gradient(closest-side, var(--accent-glow), transparent); opacity: .5; pointer-events: none; z-index: -1; }
.empty { padding: 28px 8px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: min(440px, calc(100vw - 32px)); padding: 10px 16px; border-radius: 999px; background: var(--heading); color: var(--bg); font-family: var(--font-head); font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-sm); }
.toast .toast-action { color: inherit; opacity: .85; }

/* ---------- forms: one look for every field on both themes (.input is the new name; .field-input the older pages' one,
   themed here once instead of per area) ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .field-label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.input, .field-input { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--r-2); border: 1px solid var(--line-2); background: var(--input-bg); color: var(--ink); font: inherit; font-size: 16px; transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.panel .field-input, .panel select.field-input, .popover-form .field-input { background: var(--input-bg); }
.input:focus, .field-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder, .field-input::placeholder { color: var(--muted); }
.input[aria-invalid="true"], .field-input[aria-invalid="true"], .field.has-error .input { border-color: var(--bad); }
select.input, select.field-input { appearance: auto; -webkit-appearance: menulist; padding-right: 36px; }
textarea.input, textarea.field-input { min-height: 84px; resize: vertical; line-height: 1.45; }
.field-hint { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.field-hint.is-ok { color: var(--ok); } .field-hint.is-bad { color: var(--bad); }
html[data-theme="dark"] input[type="date"], html[data-theme="dark"] input[type="time"], html[data-theme="dark"] input[type="month"], html[data-theme="dark"] select { color-scheme: dark; }

/* ---------- label-value lines, data tables ---------- */
.ml { display: flex; flex-direction: column; gap: 6px; }
.ml .line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--ink-2); }
.ml .line .v { font-family: var(--font-head); font-weight: 600; color: var(--heading); white-space: nowrap; }
.ml .line .v.ok { color: var(--ok); } .ml .line .v.bad { color: var(--bad); } .ml .line .v.rev { color: var(--rev); }
.grid-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.grid-table th { text-align: left; font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.grid-table td { padding: 10px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: top; }
@media (max-width: 759px) {
  .grid-table, .grid-table tbody, .grid-table tr, .grid-table td { display: block; width: auto; }
  .grid-table thead { display: none; }
  .grid-table tr { border: 1px solid var(--line); border-radius: var(--r-2); padding: 8px 10px; margin: 0 0 8px; }
  .grid-table td { border: 0; padding: 2px 0; }
  .grid-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); }
}

/* ---------- the older content on the theme (until the later stages convert it) ---------- */
html[data-theme="dark"] .panel { border: 1px solid var(--line); }
/* the older stylesheet's few hard-coded whites, read on both themes */
html[data-theme="dark"] .sync-banner { background: var(--bad-soft); color: var(--bad); }
html[data-theme="dark"] .sync-banner .sync-banner-link { color: var(--bad); border-color: var(--bad); background: transparent; }
html[data-theme="dark"] .btn.is-stop, html[data-theme="dark"] .popover-form .btn.is-danger { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--accent-ink); }
html[data-theme="dark"] .reveal-row .field-input { background: var(--input-bg); }
html[data-theme="dark"] .reveal.is-copied .copy-btn { color: var(--bg); }

/* ---------- stage 6 polish: depth, glow and gradient accents, used sparingly (docs/REDESIGN-ROLLOUT.md section 4).
   Every color below is a role token or a color-mix of one with white / black / transparent, so a company's accent keeps
   its own hue (JCruz red stays red: tests/redesign.stage6.test.mjs works out each stop) ---------- */

/* the primary action: a soft gradient of the accent, lit from the top left */
.btn-primary, .btn.is-primary { background: linear-gradient(135deg, color-mix(in srgb, var(--accent-fill) 84%, #ffffff) 0%, var(--accent-fill) 46%, var(--accent-deep) 100%); border-color: transparent; }
.btn-primary:hover, .btn.is-primary:hover { background: linear-gradient(135deg, var(--accent-fill) 0%, var(--accent-deep) 100%); border-color: transparent; }
.btn-primary:focus-visible, .btn.is-primary:focus-visible { outline-offset: 3px; }
.btn:focus-visible, .row:focus-visible, .acard:focus-visible, .fold-h:focus-visible, .showall:focus-visible, .mi:focus-visible, .secsw:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* lists in the main column read as one floating card with breathing room (the rows inside it stay name + one pill) */
.ls-shell .pane-list .rows:not(.fold-b .rows, .menu .rows, .dash-block .rows, .ops-locs) { padding: 6px; border-radius: var(--r-4); background: var(--surface); border: 1px solid var(--line); gap: 2px; }
html[data-theme="dark"] .ls-shell .pane-list .rows:not(.fold-b .rows, .menu .rows, .dash-block .rows, .ops-locs) { background: color-mix(in srgb, var(--surface) 82%, transparent); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent), 0 24px 48px -32px #000000; }
html[data-theme="light"] .ls-shell .pane-list .rows:not(.fold-b .rows, .menu .rows, .dash-block .rows, .ops-locs) { border-color: transparent; box-shadow: 0 1px 0 color-mix(in srgb, var(--heading) 5%, transparent), 0 16px 40px -24px var(--accent-glow); }
.ls-shell .pane-list .rows:not(.fold-b .rows, .menu .rows, .dash-block .rows, .ops-locs) > li > .row:hover, .ls-shell .pane-list .rows:not(.fold-b .rows, .menu .rows, .dash-block .rows, .ops-locs) > .row:hover { background: var(--surface-2); }
.ls-shell .pane-list .rows:not(.fold-b .rows, .menu .rows, .dash-block .rows, .ops-locs) .row.is-open, .ls-shell .pane-list .rows:not(.fold-b .rows, .menu .rows, .dash-block .rows, .ops-locs) .row[aria-current] { background: var(--surface-2); }
.ls-shell .pane-list .rows:not(.fold-b .rows, .menu .rows, .dash-block .rows, .ops-locs) + .list-ctl, .ls-shell .pane-list .list-ctl.is-foot { margin-top: 12px; }
.list-ctl.is-head + .rows { margin-top: 2px; }

/* the hero figure: confident and big; on dark a quiet lift from the heading to the accent's warmth */
.lh-title .hero-figure { font-size: 64px; }
@media (max-width: 759px) { .lh-title .hero-figure { font-size: 52px; } }
html[data-theme="dark"] .hero-figure .fig:not(.bad, .rev, .ok, .pend) { background: linear-gradient(180deg, var(--heading) 30%, color-mix(in srgb, var(--heading) 70%, var(--accent)) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lh-words { letter-spacing: -.01em; }
.lh-words.is-title { font-size: var(--fs-5); font-weight: 700; letter-spacing: -.02em; }
/* a page's plain title (Overview, Schedule, Safety, a Company, Payroll settings) reads like a list's title */
.ops-title h1, .acct-title, .op-title { font-weight: 700; }

/* status pills: a hairline in their own tone so they read on a card as well as on the page */
.pill { box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 14%, transparent); }

/* attention cards float a little higher on hover; the urgent one keeps its glow */
.acard { transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease); }
.acard:hover { transform: translateY(-1px); }
html[data-theme="light"] .acard:hover { box-shadow: 0 1px 0 color-mix(in srgb, var(--heading) 5%, transparent), 0 18px 36px -18px var(--accent-glow); }


/* empty states: centered, calm, with room */
.empty { justify-content: center; text-align: center; padding: 36px 16px; border-radius: var(--r-4); border: 1px dashed var(--line-2); font-size: var(--fs-2); }
.fold-b .empty, .menu .empty, .dash-block .empty { border: 0; padding: 12px 4px; justify-content: flex-start; text-align: left; }
/* J279: an employee's uploads from hiring and onboarding (Operations > Employees, Payroll employee card) */
.onb-docs { margin: 0 0 8px; padding-left: 0; list-style: none; font-size: 13.5px; color: var(--ink-2); }
.onb-docs li { margin: 0 0 10px; }
.onb-docs a { color: var(--accent-text); font-weight: 600; }

/* J366: Hiring > Training rows carry two pills (days in Training, documents); the Remove from Training tray's choices */
.row-pills { display: inline-flex; gap: 6px; flex: none; align-items: center; }
.tray .choices { border: 0; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.tray .choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-3); background: var(--surface); cursor: pointer; }
.tray .choice input { margin-top: 3px; flex: none; }
.tray .choice > span { display: grid; gap: 2px; }
.tray .choice .fact-note { margin: 0; }

/* ---------- J725 "Quiet" kit (Joshua's pick, Look 1 of J720, 11/18/2026; matches the Messages look B of J717) ----------
   One page header (26 px title, gray sub line, no hero figure or glow), one flat red primary button per page, underline
   sub-nav tabs, gray chips (red only for a true alert). Every rule starts html[data-theme] body.ls-body so it outranks the
   later layers (hiring, ops, payroll, kit: html[data-kit] ...) that load after this file; the dock and the light polish are
   in frame.css. Page layouts (Home cards, applicant rows, stat tiles) are not part of the kit. */
/* ---------- 1. one page header: 26 px title, Space Grotesk 600, the count part of the title, no hero figure, no glow ---------- */
html[data-theme] body.ls-body .lh-title,
html[data-theme] body.ls-body .ops-title h1,
html[data-theme] body.ls-body .op-title,
html[data-theme] body.ls-body .acct-title,
html[data-theme] body.ls-body .greet h1,
html[data-theme] body.ls-body .em-title h1,
html[data-theme] body.ls-body .home .greet h1 { font-family: var(--font-head); font-size: 26px; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; color: var(--heading); }
html[data-theme] body.ls-body .lh-title { gap: 8px; align-items: baseline; }
html[data-theme] body.ls-body .lh-title .hero-figure,
html[data-theme] body.ls-body .op-title .hero-figure,
html[data-theme] body.ls-body .acct-title .hero-figure,
html[data-theme] body.ls-body .hero-figure { font-size: 26px; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; vertical-align: baseline; margin: 0; }
html[data-theme] body.ls-body .hero-figure::before, html[data-theme] body.ls-body .hero-figure::after { display: none; }
html[data-theme] body.ls-body .hero-figure .fig,
html[data-theme] body.ls-body .hero-figure .fig:not(.bad, .rev, .ok, .pend) { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--heading); text-shadow: none; }
html[data-theme] body.ls-body .hero-figure .fig.bad { color: var(--bad); text-shadow: none; }
html[data-theme] body.ls-body .hero-figure .fig.rev { color: var(--rev); } html[data-theme] body.ls-body .hero-figure .fig.ok { color: var(--ok); } html[data-theme] body.ls-body .hero-figure .fig.pend { color: var(--pend); }
html[data-theme] body.ls-body .lh-words, html[data-theme] body.ls-body .lh-words.is-title, html[data-theme] body.ls-body .acct-word { font-family: var(--font-head); font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: var(--heading); }
/* the small label above a figure (J666) stays, mixed case and quiet */
html[data-theme] body.ls-body .lh-label { font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
/* the gray second line under a title (date, count, "DSW files received") */
html[data-theme] body.ls-body .op-sub, html[data-theme] body.ls-body .k-sub, html[data-theme] body.ls-body .ov-date, html[data-theme] body.ls-body .ops-title .k-sub { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 2px; }
html[data-theme] body.ls-body .lh { gap: 10px 12px; margin-bottom: 14px; }

/* ---------- 2. one button kit: flat red only when primary (no gradient, no glow), gray otherwise, body font ---------- */
html[data-theme] body.ls-body .btn { font-family: var(--font-body); font-weight: 600; font-size: 15px; letter-spacing: 0; border: 1px solid transparent; background: color-mix(in srgb, var(--heading) 8%, transparent); color: var(--heading); box-shadow: none; }
html[data-theme] body.ls-body .btn:hover { background: color-mix(in srgb, var(--heading) 12%, transparent); }
html[data-theme] body.ls-body .btn-primary, html[data-theme] body.ls-body .btn.is-primary,
html[data-theme="dark"] body.ls-body .btn-primary, html[data-theme="dark"] body.ls-body .btn.is-primary,
html[data-theme="light"] body.ls-body .btn-primary, html[data-theme="light"] body.ls-body .btn.is-primary { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--accent-ink); box-shadow: none; }
html[data-theme] body.ls-body .btn-primary:hover, html[data-theme] body.ls-body .btn.is-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
html[data-theme] body.ls-body .btn-quiet, html[data-theme] body.ls-body .btn.is-quiet { background: transparent; border-color: transparent; color: var(--accent-text); }
html[data-theme] body.ls-body .btn .ic, html[data-theme] body.ls-body .btn .icon { width: 18px; height: 18px; }
/* danger and stop buttons keep their red: a true alert (review J725); the gray .btn and .btn:hover above are not for them */
html[data-theme] body.ls-body .btn-danger, html[data-theme] body.ls-body .btn-danger:hover { background: var(--bad, #b42318); border-color: var(--bad, #b42318); color: #fff; }
html[data-theme="light"] body.ls-body .sync-stop-block .btn.is-stop, html[data-theme="light"] body.ls-body .sync-stop-block .btn.is-stop:hover { background: var(--bad); border-color: var(--bad); color: #fff; }
html[data-theme] body.ls-body .btn.is-danger-text { color: var(--bad); }
html[data-theme="dark"] body.ls-body .btn.is-danger-text { color: #ff6b5f; }
/* "Show all N" and a toggled filter button: gray, no red outline */
html[data-theme] body.ls-body .showall { color: var(--heading); border-color: var(--line-2); }
html[data-theme] body.ls-body .hz-filters.is-open .hz-ftoggle { border-color: transparent; background: var(--surface-3); }
html[data-theme] body.ls-body .hz-fcount { background: var(--heading); color: var(--bg); }

/* ---------- 3. sub-navigation: one scrolling row of underline text tabs (no pills, no red outline) ---------- */
html[data-theme] body.ls-body .ops-tabs { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 0; margin: 2px 0 16px; padding: 0; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
html[data-theme] body.ls-body .ops-tabs::-webkit-scrollbar { display: none; }
html[data-theme] body.ls-body .ops-tabs .chip { position: relative; flex: none; min-height: 42px; margin: 0 22px 0 0; padding: 0 2px; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap; }
html[data-theme] body.ls-body .ops-tabs .chip:last-child { margin-right: 0; }
html[data-theme] body.ls-body .ops-tabs .chip:hover { color: var(--heading); }
html[data-theme] body.ls-body .ops-tabs .chip.is-cur { color: var(--heading); font-weight: 600; }
html[data-theme] body.ls-body .ops-tabs .chip.is-cur::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--heading); }

/* ---------- 4. chips (filters and counts): gray, filled when on; red only for a true alert ---------- */
html[data-theme] body.ls-body .emp-tag, html[data-theme] body.ls-body .hz-tag { padding: 6px 12px; border: 1px solid transparent; border-radius: 999px; background: color-mix(in srgb, var(--heading) 7%, transparent); color: var(--ink-2); font-family: var(--font-body); font-size: 13px; font-weight: 500; outline: 0; }
html[data-theme] body.ls-body .emp-tag b, html[data-theme] body.ls-body .hz-tag b { font-weight: 600; color: var(--heading); }
html[data-theme] body.ls-body .emp-tag:hover, html[data-theme] body.ls-body .hz-tag:hover { border-color: transparent; background: color-mix(in srgb, var(--heading) 11%, transparent); }
html[data-theme] body.ls-body .emp-tag.is-on, html[data-theme] body.ls-body .hz-tag.is-on { outline: 0; background: var(--surface-3); color: var(--heading); box-shadow: inset 0 0 0 1px var(--line-2); }
/* a chip is a link: the keyboard focus ring stays (review J725) */
html[data-theme] body.ls-body :is(.emp-tag, .hz-tag):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* the dot keeps the tone as a small cue */
html[data-theme] body.ls-body .hz-tag .hz-tag-dot { opacity: 1; background: var(--muted); }
html[data-theme] body.ls-body .hz-tag.is-fu_today .hz-tag-dot { background: var(--rev); }
html[data-theme] body.ls-body .hz-tag.is-wait_bkgd .hz-tag-dot, html[data-theme] body.ls-body .hz-tag.is-wait_drug .hz-tag-dot, html[data-theme] body.ls-body .hz-tag.is-wait_mec .hz-tag-dot { background: var(--pend); }
/* a true alert stays red: follow-ups overdue, no pay */
html[data-theme] body.ls-body .hz-tag.is-fu_overdue, html[data-theme] body.ls-body .emp-tag.is-no_pay { background: var(--bad-soft); color: var(--bad); }
html[data-theme] body.ls-body .hz-tag.is-fu_overdue b, html[data-theme] body.ls-body .emp-tag.is-no_pay b { color: var(--bad); }
html[data-theme] body.ls-body .hz-tag.is-fu_overdue .hz-tag-dot { background: var(--bad); }
/* a selected section switch or open More category: a gray edge, not a red one */
html[data-theme] body.ls-body .secsw:hover, html[data-theme] body.ls-body .secsw.is-on, html[data-theme] body.ls-body .secsel[open] > .secsw { border-color: var(--line-2); background: var(--surface-3); }
html[data-theme] body.ls-body .ls-cat[open] { border-color: var(--line-2); }
html[data-theme] body.ls-body .ls-cat-body .mi.is-cur, html[data-theme] body.ls-body .menu .mi.is-cur { color: var(--heading); background: var(--surface-3); }
html[data-theme] body.ls-body .menu .mi.is-cur .icon { color: var(--heading); }
