  /* The attendance card's Slack and Status columns hold several lines per row, so those
     cells align to the top instead of shell.css's default vertical-align:middle. */
  .attendance-table td { vertical-align: top; }
  .att-stack { display: flex; flex-direction: column; gap: 4px; }
  .att-line { display: flex; align-items: baseline; gap: 6px; line-height: 1.45; }
  .att-time { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 62px; }
  /* Slack timeline markers: green clock-in, grey clock-out, amber ring for a break. */
  .att-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; align-self: center; background: var(--muted); }
  .att-dot--clock_in { background: var(--green); }
  .att-dot--break_start, .att-dot--break_end { background: none; box-shadow: inset 0 0 0 1.5px var(--amber); }
  .att-muted { color: var(--muted); }
  /* Findings are full sentences, not one-word statuses -- let them wrap rather than
     stretching the column. */
  .attendance-table .pill { white-space: normal; text-align: left; }
  /* Narrow windows: five columns must fit without a sideways scroll (a trackpad swipe there
     can trigger browser back/forward on macOS), so cells tighten and the Slack time/label
     pair wraps onto two lines. */
  @media (max-width: 850px) {
    .attendance-table :is(th, td) { padding: 8px 6px; }
    .attendance-table td { overflow-wrap: anywhere; }
    .att-time { min-width: 0; }
    .att-line { flex-wrap: wrap; column-gap: 4px; }
  }
  .discrepancy-banner { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
  /* display:flex beat the hidden attribute, so the empty banner's margin pushed the page title 14px
     lower on My Workspace than on every other page (and the Resources dashboard). */
  .discrepancy-banner[hidden] { display: none; }
  .discrepancy-pill { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--rose-soft); border: 1px solid var(--rose-2); color: var(--rose-ink); border-radius: 8px; padding: 8px 12px; font-size: 12px; }
  .discrepancy-pill { align-items: flex-start; }
  .discrepancy-pill .discrepancy-list { flex: 1; display: flex; flex-direction: column; gap: 4px; }
  .discrepancy-pill button { background: none; border: none; cursor: pointer; color: var(--rose-ink); font-size: 14px; line-height: 1; padding: 2px 4px; }
  .discrepancy-pill button:hover { opacity: .7; }
  .att-toggle-row td { text-align: center; padding-top: 10px; }
  .att-toggle-arrow { background: none; border: none; cursor: pointer; font-size: 14px; color: var(--muted); padding: 2px 6px; vertical-align: middle; }
  .att-toggle-arrow:hover { color: var(--ink); }

  /* Quick Actions: a row of buttons under the greeting, outside the card grid. Each action keeps
     its status line under its button, so the row's height doesn't jump when "Syncing…" appears. */
  .qa-row { margin: -2px 0 18px; }
  .qa-bar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 10px; }
  .qa-bar > div { display: flex; flex-direction: column; gap: 3px; align-items: center; }
  .qa-bar .btn { white-space: nowrap; }
  .qa-status { font-size: 10px; color: var(--muted); text-align: center; }
  .qa-status:empty { display: none; }
  .card-head-right { display: flex; align-items: center; gap: 10px; }
  .card-toggle { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 2px 4px; display: grid; place-items: center; }
  .card-toggle:hover { color: var(--ink); }
  .card-toggle svg { transition: transform .15s; }
  .card-toggle[aria-expanded="false"] svg { transform: rotate(180deg); }
  .card.is-collapsed > :not(.card-head) { display: none; }
  .card.is-collapsed > .card-head { border-bottom: none; }
  .metrics { align-items: start; }
  /* Import details ("Row 4 (jane@example.com): no matching CHW") run long, so this sits
     full-width under the header rather than beside the buttons. */
  #quick-actions-result { margin-bottom: 14px; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }

  /* Every card on this page is a direct child of one grid, so any card can be dragged
     anywhere -- no band groups anything together. Width is expressed as a column span.
     A fine auto-row unit turns this into a masonry: layoutCards() places every card
     explicitly (column + row), stacking each one under whatever came before it in DOM order
     in its columns. Not grid-auto-flow:dense -- dense put a card in the first hole it happened
     to fit, so a few px of height (data still loading) flipped a card between the top of the
     page and the bottom on refresh. Here DOM order is vertical order within every column, and
     a height change only slides cards down, never reorders them. */
  #ws-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 4px; grid-auto-flow: row; column-gap: 14px; row-gap: 0; align-items: start; }
  .ws-span-2 { grid-column-end: span 2; }
  .ws-span-3 { grid-column-end: span 3; }
  .ws-span-4 { grid-column-end: span 4; }
  @media (max-width: 1000px) {
    #ws-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ws-span-3, .ws-span-4 { grid-column-end: span 2; }
  }
  @media (max-width: 620px) {
    #ws-cards { grid-template-columns: 1fr; }
    .ws-span-2, .ws-span-3, .ws-span-4 { grid-column-end: span 1; }
  }
  #ws-cards.ws-rearranging > * { cursor: grab; outline: 2px dashed var(--line); outline-offset: 3px; border-radius: 12px; }
  #ws-cards.ws-rearranging .ws-dragging { opacity: .45; cursor: grabbing; }

  /* Billing Review charts. A two-segment proportion bar, built on the same wrapper+span
     idiom as shell.css's .big-progress rather than an SVG, so it reflows with the fluid
     right column and scales with the reader's font size. */
  .bc-week { font-size: 10px; color: var(--muted); }
  .bc-chart + .bc-chart { margin-top: 18px; }
  .bc-title { font-family: Georgia, serif; font-size: 13px; font-weight: 400; font-variant-caps: all-small-caps; letter-spacing: .08em; color: var(--muted); margin: 0 0 4px; }
  /* "27/33 met": the Ledger fraction -- Bodoni figure, denominator and label smaller and grey. */
  .bc-headline { font-family: var(--numeral); font-size: 28px; font-weight: 500; line-height: 1; letter-spacing: -.02em; font-variant-numeric: lining-nums; margin-bottom: 9px; }
  .bc-headline small { font-size: .45em; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-left: 2px; }
  .bc-headline.bc-none { font-family: Georgia, serif; font-style: italic; font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
  .bc-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--line); }
  .bc-bar span { display: block; height: 100%; }
  /* Pastel green / rose, the same hexes as the donut's flyers and date_time slices (shell.css
     .bc-fk-*). A 14px bar segment is an accent-scale tint, not the large rose fill the Sparse
     Rose Rule forbids. */
  .bc-seg-good { background: #B9D8AB; }
  .bc-seg-bad { background: #F2A2B1; }
  .bc-seg-none { background: transparent; }
  .bc-bar span[data-slice] { cursor: pointer; }
  .bc-bar span[data-slice]:hover, .bc-bar span[data-slice]:focus-visible { filter: brightness(.9); outline: none; }
  /* Billing cards are figure cards, so they take the same rose wash as the metric tiles. */
  .card.bc-card { background: var(--tile-bg); border-color: var(--tile-line); }
  .bc-card .card-head { border-bottom-color: var(--tile-line); }
  .bc-card .card-body { padding: 14px 16px 16px; }
  /* Billing card's compliance block: the figure plus the fault bar that replaced the ring. */
  .bc-comp { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
  .bc-comp .metric-value { font-size: 36px; margin: 8px 0 0; }
  /* Green and rose are near-isoluminant, so the bar alone is not readable for a red-green
     colorblind reader. The fraction headline above is load-bearing, not decoration. */
  .bc-swatch.bc-good { background: #B9D8AB; }
  .bc-swatch.bc-bad { background: #F2A2B1; }
  .bc-swatch.bc-none { background: var(--line); }
  /* Team headings sit above .bc-title, but the per-team headline numbers stay smaller than the
     company total's so the total keeps reading as the dominant figure. */
  .bc-team-sub { font-size: 10.5px; color: var(--muted); margin: 0 0 12px; }
  .bc-card .bc-chart + .bc-chart { margin-top: 14px; }
  .bc-foot { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: 10px; color: var(--muted); }

  /* The merged glance + schedule table. 11 columns, so the default .teamtable padding
     has to come down; the day cells tighten further since they hold short times. */
  .glance-merged th, .glance-merged td { padding: 7px 9px; font-size: 10px; }
  .glance-merged .day { text-align: center; color: var(--muted); font-size: 9px; padding: 7px 6px; }
  .glance-merged .sched-today { background: var(--today-highlight); color: var(--rose-ink); font-weight: 600; }
  .schedule-grid .day.today { background: var(--today-highlight); border-radius: 8px; }
  /* Cardless schedule: no fill behind today -- a rose rule over the day marks it instead, and
     today's shift keeps its own tint. */
  .card--flat .schedule-grid .day { padding: 6px 4px 4px; border-radius: 0; }
  .card--flat .schedule-grid .day.today { background: none; box-shadow: inset 0 2px 0 var(--rose); }
  .card--flat .shift, .card--flat .off { border-radius: 4px; }
  /* Cardless section contents at the mockup's reading size. These out-specify .glance-merged's
     compact 10px cells, which were sized for a boxed card. */
  .card--flat .teamtable td { font-size: 11.5px; padding: 9px 10px; }
  .card--flat .glance-merged .day { font-size: 10.5px; padding: 9px 6px; }
  .card--flat .pill { font-size: 10.5px; padding: 4px 8px; }
  .card--flat .att-time { min-width: 52px; }
  .card--flat .att-toggle-row td { font-size: 11px; }

  /* Every metric tile shares one height -- the tallest tile's, compliance with its fault bar --
     so a row of tiles lines up however the reader arranges them. */
  #ws-cards > .metric { min-height: 144px; }


  /* Active Strikes tile: the read-only record behind it (a CHW's own, from /me/strikes). */
  .strikes-dialog { width: min(520px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 48px)); padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 48px -24px rgba(69,42,29,.45); }
  .strikes-dialog::backdrop { background: rgba(38,22,17,.28); }
  .strikes-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .strikes-dialog-head h2 { font: 400 20px Georgia, serif; margin: 0; }
  .strikes-dialog-sub { margin: 6px 0 12px; font-size: 12px; color: var(--muted); }
  .strikes-dialog-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
  .strikes-dialog-list li { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; gap: 4px 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); align-items: start; }
  .strikes-dialog-list li.is-expired { opacity: .58; }
  .strikes-dialog-list .sd-date { font: 500 14px/1.2 var(--numeral); font-variant-numeric: lining-nums; }
  .strikes-dialog-list .sd-date small { display: block; font: 400 10px Inter, ui-sans-serif, sans-serif; color: var(--muted); }
  .strikes-dialog-list b { font: 400 14px Georgia, serif; }
  .strikes-dialog-list p { margin: 3px 0 0; font-size: 12px; color: #4f4642; white-space: pre-line; overflow-wrap: anywhere; }
  .strikes-dialog-list .sd-meta { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
  .strikes-dialog-list .sd-pill { padding: 3px 8px; border-radius: 7px; font-size: 10.5px; font-weight: 500; white-space: nowrap; background: var(--line-soft); color: var(--muted); }
  .strikes-dialog-list .sd-pill.k-warning { background: var(--pill-warn-bg); color: var(--pill-warn-text); }
  .strikes-dialog-list .sd-pill.k-strike { background: var(--pill-bad-bg); color: var(--pill-bad-text); }
  .strikes-dialog-list .sd-pill.k-termination { background: var(--rose-ink); color: #fff6ef; }
  .strikes-dialog-list .sd-empty { display: block; padding: 22px 0; color: var(--muted); font: italic 13px Georgia, serif; text-align: center; }
