/* The office's workspace pieces: what every one-stop page is built from.

   Josh, 5 November 2026: "You have to go multiple places to find something
   and do something. I want more of like the one-stop shop." A workspace is
   one page for one job, with the same shape every time: a head with the
   title and one primary action, a row of tabs for the places that job
   spans, a status strip where hardware is involved, then the work.

   Read on top of app.css and, in the office, nocturne.css: every colour is
   one of their variables, so both looks carry these without a rule of
   their own. Nothing here is page-specific; a page's own style block is
   for what only that page has. */

/* --- the head: title, one line under it, the actions ------------------------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px 16px; flex-wrap: wrap; margin: 4px 0 12px; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); font-size: 13px; margin: 4px 0 0; max-width: 70ch; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* --- the tabs: the places one job spans, one row, the same on each ----------- */
.ws-tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--line);
  margin: 0 0 16px; }
.ws-tabs a { padding: 8px 12px; border-bottom: 2px solid transparent; margin-bottom: -1px;
  color: var(--muted); font-size: 14px; text-decoration: none; white-space: nowrap; }
.ws-tabs a:hover { color: var(--ink); text-decoration: none; }
.ws-tabs a.on { color: var(--ink); border-bottom-color: var(--gold); font-weight: 600; }
.ws-tabs a:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }

/* --- the status strip: is the hardware there, in one glance ------------------ */
.status-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px; margin: 0 0 14px; }
.status-strip > * { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  color: inherit; text-decoration: none; min-width: 0; }
.status-strip a:hover { text-decoration: none; border-color: var(--muted); }
.status-strip .dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%;
  margin-top: 5px; background: var(--muted); }
.status-strip .dot.ok { background: var(--ok); }
.status-strip .dot.warn { background: var(--warn); }
.status-strip .dot.bad { background: var(--err); }
.status-strip .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.status-strip .v { font-size: 14px; font-weight: 600; line-height: 1.3; }
.status-strip .s { font-size: 12px; color: var(--muted); }

/* --- a figure that is nothing today stays quiet, so the eye lands on the one that is not */
.stat.quiet .n { color: var(--muted); font-weight: 500; }

/* --- a section head inside a card: a title on the left, its actions on the right */
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px;
  flex-wrap: wrap; margin-bottom: 10px; }
.sec-head h2 { margin: 0; }
.sec-head .actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* --- a quiet line where a section has nothing to show ------------------------- */
.nothing { color: var(--muted); font-size: 13px; padding: 10px 0; }

@media (max-width: 640px) {
  .ws-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .ws-tabs a { font-size: 13px; padding: 8px 10px; }
}

/* --- a fold: a form kept at the top of a page, shut until it is wanted -------- */
details.fold > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline;
  gap: 8px 14px; flex-wrap: wrap; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: "\25B8"; color: var(--muted); font-size: 14px; }
details.fold[open] > summary::before { content: "\25BE"; }
details.fold > summary h2 { margin: 0; }
details.fold > summary .hint { color: var(--muted); font-size: 13px; }
details.fold[open] > summary { margin-bottom: 12px; }
details.fold .fold-sec { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; max-width: 760px; }
details.fold .fold-sec:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

/* --- the work queue: one tile per stage, and the filter that is on is marked -- */
.queue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.queue-grid .stat { padding: 12px 14px; }
.queue-grid .stat .n { font-size: 24px; }
.stat.on { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
a.stat:hover { text-decoration: none; border-color: var(--muted); }
