/* Network · Queue (web/li-queue.js; docs/specs/LINKEDIN_QUEUE.md Design §7), 2026-10-05. Owner, 2026-10-04, his answer
   10: "a Network › Queue page: running now, next with times, every queued item by class with its useful-until, today's
   use against each learned budget, his own browsing, warnings and back-offs, a pause per feature, "do now" / "skip" per
   item". The mode and its switch, a back-off banner, Now beside his browsing, Next up by class, the budgets, a pause per
   feature and the last 50 actions, each a card. Every colour is a theme token (styles.css :root, re-declared for the
   dark theme in studio-v2.css), so both themes follow; a state is never told by colour alone (the words say it, the
   number is beside each bar). Nothing is wider than the screen: every grid and flex child may shrink (min-width: 0),
   long words wrap, and at phone width the table of actions becomes one block per action. At phone width every control
   is at least 44 px (phone-a11y.css does the .btn ones and the fields).
   Release 331 (docs/QUEUE_SIMPLE.md; owner, 2026-10-14: "the page has grown so long and so complex"): one status line,
   Needs you (only when something needs him), Up next (the next 10, one line a row, one ⋯ each), then the tabs Planned ·
   Budgets · Pauses · Chrome · History, each the card it was. */

.lq { display: flex; flex-direction: column; gap: 16px; min-width: 0; margin: 0 0 18px; }
.lq [hidden] { display: none !important; }
.lq-slot { min-width: 0; }
.lq-slot:empty { display: none; }
.lq-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; min-width: 0; }
.lq-top > .lq-slot { flex: 1 1 24rem; }
.lq-intro { margin: 0; max-width: 82ch; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }

/* ---- 1. the status line: one line of words, wrapping on a phone (never sideways) ---- */
.lq-line { margin: 0; min-width: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lq-lead { font-weight: 800; color: var(--ink); }
.lq-lead--held { color: var(--red); }
.lq-sep { color: var(--ink-soft); }
.lq-line-next { font-weight: 700; }
.lq .lq-line-lift { margin-left: 4px; vertical-align: baseline; }

/* ---- 2. Needs you: an amber edge, a row a flag (its words, then its buttons; under them at phone width) ---- */
.lq-need { border-color: var(--amber-line); border-left: 4px solid var(--amber); }
.lq-need-hint { margin: -6px 0 10px; }
.lq-flags { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.lq-flag { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; min-width: 0; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-soft); }
.lq-flag-words { flex: 1 1 16rem; min-width: 0; }
.lq-flag-label { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.lq-flag-fix { margin-top: 2px; }
/* See pressed: its rows are the ones shown in Up next */
.lq .lq-flag-acts .btn[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-tint); color: var(--ink); }
.lq-flag-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.lq-updated { margin: 0; font-size: 12.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lq-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.lq-status > p { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.lq-loading { color: var(--ink-soft); }
.lq-err { color: var(--red); }
.lq-note { padding: 10px 12px; border: 1px solid var(--amber-line); border-radius: var(--radius-sm); background: var(--amber-tint); color: var(--ink); }
.lq-hint { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); overflow-wrap: anywhere; }
.lq-none { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.lq-ico { display: inline-flex; flex: 0 0 auto; width: 16px; height: 16px; }
.lq-ico svg { display: block; width: 16px; height: 16px; }

/* ---- a card each ---- */
.lq-card { min-width: 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.lq-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; margin: 0 0 12px; }
.lq-h3 { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.lq-h4 { margin: 16px 0 8px; font-size: 13px; font-weight: 800; color: var(--ink); }
.lq-card-head + .lq-hint + .lq-h4 { margin-top: 12px; }
.lq-count { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.lq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; margin-top: 12px; }
.lq-actions .lq-hint { flex: 1 1 220px; min-width: 0; }
.lq-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; align-items: start; min-width: 0; }
.lq-chip { display: inline-flex; align-items: center; padding: 1px 8px; border: 1px solid var(--slate-line); border-radius: var(--radius-pill);
  background: var(--slate-tint); color: var(--ink); font-size: 11.5px; font-weight: 700; white-space: nowrap; }

/* the mode in a word: a tint, a ring and the word, never colour alone */
.lq-badge { display: inline-flex; align-items: center; padding: 2px 10px; border: 1px solid var(--slate-line); border-radius: var(--radius-pill);
  background: var(--slate-tint); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.lq-badge--shadow { border-color: var(--amber-line); background: var(--amber-tint); }
.lq-badge--live { border-color: var(--green-line); background: var(--green-tint); }
.lq-mode-words, .lq-mode-since { margin: 0 0 4px; font-size: 14px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.lq-mode-since { color: var(--ink-soft); font-size: 13px; font-variant-numeric: tabular-nums; }
.lq-mode-msg { margin: 10px 0 0; font-size: 13.5px; }

/* what shadow would have done */
.lq-compare { min-width: 0; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.lq-compare .lq-h4 { margin-top: 0; }
.lq-compare-words { margin: 0 0 10px; max-width: 90ch; font-size: 14px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.lq-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.lq-tile { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-soft); }
.lq-tile-n { font-size: 22px; font-weight: 800; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.lq-tile-k { font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.lq-tile-sub { font-size: 12px; line-height: 1.35; color: var(--ink-soft); overflow-wrap: anywhere; }

/* ---- the back-off: a red ring and its words, over everything else on the page ---- */
.lq-backoff { border-color: var(--red-line); border-left: 4px solid var(--red); background: var(--red-tint); }
.lq-backoff .lq-card-head { flex-wrap: nowrap; align-items: flex-start; color: var(--red); margin-bottom: 8px; }
.lq-backoff .lq-card-head .lq-ico { margin-top: 2px; }
/* the heading beside its sign, its words wrapping there (the browser check, 2026-10-05: at phone width the sign sat on a
   line of its own above the heading) */
.lq-backoff .lq-card-head .lq-h3 { flex: 1 1 auto; min-width: 0; color: var(--ink); }
.lq-backoff-what { margin: 0 0 6px; font-size: 14px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.lq-backoff-list { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.55; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lq-backoff .lq-hint { color: var(--ink); }

/* ---- now ---- */
.lq-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 14px; min-width: 0; margin: 0; }
.lq-facts dt { font-size: 12.5px; font-weight: 700; line-height: 1.5; color: var(--ink-soft); }
.lq-facts dd { min-width: 0; margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lq-last-kind { font-weight: 700; }
.lq-installs { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 14px 0 8px; padding: 0; list-style: none; }
.lq-install { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface-soft); font-size: 13px; }
.lq-install.is-executor { border-color: var(--blue); background: var(--blue-tint); }
.lq-install-name { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.lq-install-role { font-weight: 700; color: var(--ink-soft); }
.lq-install.is-executor .lq-install-role { color: var(--ink); }
.lq-install-meta { min-width: 0; color: var(--ink-soft); overflow-wrap: anywhere; }

/* ---- his browsing ---- */
.lq-tiles--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lq-browse-words { margin: 12px 0 4px; font-size: 14px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.lq-browse-words.is-busy { padding: 8px 10px; border: 1px solid var(--amber-line); border-radius: var(--radius-sm); background: var(--amber-tint); font-weight: 600; }

/* ---- next up, by class ---- */
.lq-next-hint { margin: -4px 0 12px; }
.lq-next .lq-card-head .lq-arrange { margin-left: auto; }
/* See on a flag: "Showing 12 · Show all", a blue pill over the rows */
.lq-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; width: fit-content; max-width: 100%; min-width: 0; box-sizing: border-box;
  margin: 0 0 10px; padding: 2px 4px 2px 12px; border: 1px solid var(--blue); border-radius: var(--radius-pill); background: var(--blue-tint);
  color: var(--ink); font-size: 13px; font-weight: 700; }
.lq-all, .lq-arrange-done { margin-top: 10px; }
.lq-flat { gap: 6px; }
.lq-class { min-width: 0; }
.lq-class + .lq-class { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.lq-class-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; margin: 0 0 8px; font-size: 14px; font-weight: 800; color: var(--ink); }
.lq-class-n { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 22px; height: 22px; box-sizing: border-box;
  border: 1px solid var(--slate-line); border-radius: 50%; background: var(--slate-tint); font-size: 12px; font-weight: 800; }
.lq-class-hint { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.lq-class-count { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.lq-class-count::before { content: "· "; }
.lq-items { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.lq-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; min-width: 0; padding: 6px 6px 6px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-soft); }
/* one line: time · what and who · its class · a batch's count · his move. Words in one flow (not flex items), so a long
   name wraps inside itself and the time stays in front of it (the browser check at 375 px: as flex items the time sat
   alone on a line above its name) */
.lq-item-main { display: block; min-width: 0; line-height: 1.6; }
.lq-item-main > * { margin-right: 4px; }
.lq-item-main > :last-child { margin-right: 0; }
.lq-item-main > .lq-chip, .lq-item-main > .btn { vertical-align: middle; }
.lq-plan > .lq-item-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.lq-plan > .lq-item-main > * { margin-right: 0; }
.lq-item-label { font-size: 14px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.lq-item-kind { font-size: 12.5px; color: var(--ink-soft); overflow-wrap: anywhere; }
.lq-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; grid-column: 1; min-width: 0; font-size: 12.5px; line-height: 1.45;
  color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.lq-eta { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.lq-tag { padding: 0 7px; font-size: 11px; }
.lq .lq-expand { padding-left: 8px; padding-right: 8px; font-size: 12.5px; }
.lq-risk { font-weight: 700; color: var(--red); }
.lq-item.is-risk { border-left: 3px solid var(--red); }
/* under an open ⋯: the row in full words */
.lq-details { grid-column: 1 / -1; min-width: 0; margin: 4px 0 0; padding-top: 6px; border-top: 1px solid var(--line-soft); font-size: 12.5px; line-height: 1.5;
  color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lq .lq-move { min-width: 40px; font-size: 18px; line-height: 1; }
.lq-item-meta > span { min-width: 0; overflow-wrap: anywhere; }
.lq-item-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 8px; grid-column: 2; grid-row: 1; min-width: 0; }

/* ---- moving what waits (release 330, docs/QUEUE_MOVES.md): a handle, a Move menu in the row, the line where a row would
   land, the Pinned strip, a group as one row, the planned rows, the Undo bar. The handle is the only part that takes a
   finger's drag (touch-action: none there alone): anywhere else on a row a finger scrolls the page as always. ---- */
.lq-item { position: relative; }
.lq-item.has-handle { grid-template-columns: auto minmax(0, 1fr) auto; }
.lq-item.has-handle > .lq-item-main, .lq-item.has-handle > .lq-item-meta { grid-column: 2; }
.lq-item.has-handle > .lq-item-actions { grid-column: 3; }
/* two classes deep: over the app's .btn padding and height */
.lq .lq-handle { display: inline-flex; align-items: center; justify-content: center; grid-column: 1; grid-row: 1 / span 2; align-self: center;
  min-width: 44px; min-height: 44px; padding: 0; color: var(--ink-soft); cursor: grab; touch-action: none; user-select: none;
  -webkit-user-select: none; -webkit-touch-callout: none; }
.lq .lq-handle .lq-ico, .lq .lq-handle .lq-ico svg { width: 20px; height: 20px; }
.lq .lq-handle:active { cursor: grabbing; }
.lq.is-sorting, .lq.is-sorting * { cursor: grabbing; user-select: none; -webkit-user-select: none; }
/* the row he holds follows the finger, lifted and opaque (the browser check: see-through, the row under it read through
   its words); where it would land is a line in the theme's blue (the Compose tabs' look,
   across a row instead of beside a tab) */
.lq-item.is-dragging { z-index: 2; border-color: var(--blue); background: var(--card); box-shadow: var(--shadow-lg); }
.lq-item.is-drop-before::before, .lq-item.is-drop-after::after { content: ""; position: absolute; left: 4px; right: 4px; height: 3px;
  border-radius: 2px; background: var(--blue); pointer-events: none; }
.lq-item.is-drop-before::before { top: -6px; }
.lq-item.is-drop-after::after { bottom: -6px; }
.lq-menu { display: flex; flex-wrap: wrap; gap: 6px 8px; grid-column: 1 / -1; min-width: 0; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.lq-details + .lq-menu { padding-top: 4px; border-top: 0; }
.lq-moved { border-color: var(--blue); background: var(--blue-tint); }
.lq-locked { font-size: 12px; font-style: italic; color: var(--ink-soft); }
/* a row that stays in place: a dashed ring, and its reason in words beside the time */
.lq-item.is-locked { border-style: dashed; }
.lq-pinned { min-width: 0; margin: 0 0 14px; padding: 10px 12px 12px; border: 1px solid var(--blue); border-radius: var(--radius-sm); background: var(--blue-tint); }
.lq-pinned .lq-class-h { color: var(--ink); }
.lq-pinned .lq-item { background: var(--card); }
/* a group's members, under its row once expanded: shown, never moved on their own */
.lq-members { display: flex; flex-direction: column; gap: 6px; grid-column: 1 / -1; min-width: 0; margin: 4px 0 0; padding: 0 0 0 10px;
  border-left: 2px solid var(--line); list-style: none; }
.lq-member { background: var(--card); }
.lq-cal { text-decoration: none; }
/* after a move: its words and Undo, for about 8 s, over the foot of the screen and never wider than it */
.lq-undo { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  max-width: 36rem; min-width: 0; margin: 0 auto; padding: 10px 12px 10px 16px; box-sizing: border-box; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--card); box-shadow: var(--shadow-lg); color: var(--ink); font-size: 14px; line-height: 1.45; }
.lq-undo-words { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
/* Later…: the time field the dialog's width, never past it */
.lq-later .lq-later-in { display: block; width: 100%; max-width: 100%; box-sizing: border-box; margin: 6px 0; }
.lq-later-preview { margin: 4px 0; font-size: 14px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.lq-later-err { margin: 6px 0 0; font-size: 13.5px; }
.lq-later .modal-foot { flex-wrap: wrap; }

/* ---- 4. the tabs: a row of pills, one open or none; the open one blue, said by aria-selected too ---- */
.lq-more { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lq-tabs { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
/* two classes deep: over the app's .btn look */
.lq .lq-tab { flex: 0 1 auto; min-width: 0; padding: 6px 16px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--card);
  color: var(--ink); font-size: 13.5px; font-weight: 700; box-shadow: none; }
.lq .lq-tab:hover { border-color: var(--blue); }
.lq .lq-tab.is-on { border-color: var(--blue); background: var(--blue-tint); color: var(--ink); }
.lq-panels { min-width: 0; }
.lq-panel { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.lq-panel .lq-intro { margin: 0; }

/* ---- budgets: a row per kind (the account totals first); this hour and today, each a number and a bar ---- */
.lq-brows { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.lq-brow { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) auto; gap: 8px 16px; align-items: center; min-width: 0; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-soft); }
/* an account total: a kind's row, Edit too (2026-10-05), on a slate ring */
.lq-brow--total { border-color: var(--slate-line); }
.lq-brow.is-editing { border-color: var(--blue); }
.lq-brow-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.lq-brow-name { font-size: 14px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.lq-basis { font-size: 12px; font-style: italic; color: var(--ink-soft); }
.lq-meters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; min-width: 0; }
.lq-meter { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lq-meter-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; min-width: 0; font-size: 12.5px; line-height: 1.4; }
.lq-meter-k { font-weight: 700; color: var(--ink-soft); }
.lq-meter-v { color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
/* the bar: a quiet track with a ring, the used part in the theme's blue, amber from 80%, red when full; the ring keeps the
   track visible on the card in either theme */
.lq-bar { display: block; height: 8px; overflow: hidden; border: 1px solid var(--slate-line); border-radius: var(--radius-pill); background: var(--slate-tint); }
.lq-bar-fill { display: block; height: 100%; max-width: 100%; border-radius: inherit; background: var(--blue); }
.lq-bar-fill--near { background: var(--amber); }
.lq-bar-fill--full { background: var(--red); }
.lq-basis-key { margin-top: 10px; }
/* editing one: the two numbers and Save under its row */
.lq-editor { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; grid-column: 1 / -1; min-width: 0; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.lq-field { display: flex; flex-direction: column; gap: 4px; flex: 0 1 150px; min-width: 0; }
.lq-field-k { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
/* two classes deep: the global input[type=number] rule (styles.css) outweighs one class */
.lq-editor .lq-in { width: 100%; min-width: 0; font-variant-numeric: tabular-nums; }
.lq-editor-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lq-edit-err { flex: 1 0 100%; margin: 0; font-size: 13px; }

/* ---- a pause per feature: a switch each, the box and its words one target ---- */
.lq-switches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 8px; min-width: 0; margin: 10px 0 0; padding: 0; list-style: none; }
.lq-switch { min-width: 0; }
.lq-switch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; min-height: 44px; box-sizing: border-box; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-soft); color: var(--ink); cursor: pointer; }
.lq-switch.is-paused .lq-switch-row { border-color: var(--amber-line); background: var(--amber-tint); }
.lq-switch-row input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.lq-switch-name { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.lq-switch-state { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); overflow-wrap: anywhere; }
.lq-switch.is-paused .lq-switch-state { color: var(--ink); }

/* ---- the last 50 actions: a table, inside its own box (never the page's scroll) ---- */
.lq-table-wrap { min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.lq-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.lq-table th { padding: 6px 10px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; font-weight: 700; text-align: left; white-space: nowrap; }
.lq-table td { padding: 7px 10px; border-bottom: 1px solid var(--line-soft); color: var(--ink); vertical-align: top; overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums; }
.lq-table tr.is-sign td { background: var(--red-tint); }
.lq-out--sign { font-weight: 800; }
.lq-out--failed { font-weight: 700; color: var(--red); }
.lq-unit { display: none; }

/* A button that cannot be pressed yet (Go live before 24 h of shadow; Do now and Skip in shadow; one on its way) stays
   readable in both themes: quiet ink on a quiet surface. The browser check, 2026-10-05: the app's faded disabled blue
   read grey-on-grey in the dark theme, and Go live and its reason are what he reads on this page in shadow. Four parts
   deep, and after studio-v2.css, so it outweighs the dark theme's disabled primary. */
.lq .lq-card .btn:disabled { opacity: 1; border-color: var(--line); background: var(--surface-soft); color: var(--ink-soft); box-shadow: none; cursor: not-allowed; }

.lq button:focus-visible, .lq-switch-row input:focus-visible, .lq-editor .lq-in:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.lq a.lq-cal:focus-visible, .lq-later .lq-later-in:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---- narrower: the budget rows stack their bars under the name ---- */
@media (max-width: 900px) {
  .lq-brow { grid-template-columns: minmax(0, 1fr) auto; }
  .lq-brow > .lq-meters { grid-column: 1 / -1; grid-row: 2; }
}

/* ---- phone width: one column, 44 px targets, the actions' table one block per action ---- */
@media (max-width: 640px) {
  .lq-card { padding: 14px; }
  .lq-facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lq-facts dd { margin-bottom: 8px; }
  /* a planned row's Move in Calendar under its words; every other row keeps its ⋯ beside them */
  .lq-plan { grid-template-columns: minmax(0, 1fr); }
  .lq-plan > .lq-item-actions { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  /* the five tabs on one row, each a fifth */
  .lq-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .lq .lq-tab { padding-left: 2px; padding-right: 2px; font-size: 12.5px; }
  .lq-meters { grid-template-columns: minmax(0, 1fr); }
  .lq-actions .btn, .lq-editor-actions .btn { flex: 1 1 auto; }
  .lq-field { flex: 1 1 120px; }
  .lq-switch-row { min-height: 44px; }
  /* the last actions, two lines each (the browser check, 2026-10-05: a block of six labelled lines per action made 50
     of them about fifteen screens): "09:12  Comment on someone's post  Done" over "2 · Time-critical · LinkedIn API · 0
     pages" */
  .lq-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .lq-table, .lq-table tbody { display: block; width: 100%; }
  .lq-table tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
  .lq-table tr::after { content: ""; flex: 0 0 100%; order: 4; }
  .lq-table td { display: block; min-width: 0; padding: 0; border: 0; }
  .lq-table td:nth-child(1) { order: 1; color: var(--ink-soft); }
  .lq-table td:nth-child(2) { order: 2; flex: 1 1 0; font-weight: 700; }
  .lq-table td:nth-child(6) { order: 3; }
  .lq-table td:nth-child(3) { order: 5; }
  .lq-table td:nth-child(4) { order: 6; }
  .lq-table td:nth-child(5) { order: 7; }
  .lq-table td:nth-child(3), .lq-table td:nth-child(4), .lq-table td:nth-child(5) { font-size: 12.5px; color: var(--ink-soft); }
  .lq-table td:nth-child(4)::before, .lq-table td:nth-child(5)::before { content: "· "; }
  .lq-unit { display: inline; }
  .lq-table tr.is-sign { background: var(--red-tint); }
  .lq-table tr.is-sign td { background: transparent; }
  .lq-class-hint { flex: 1 0 100%; }
  .lq-menu .btn, .lq-later .modal-foot .btn { flex: 1 1 auto; }
  .lq-members { padding-left: 6px; }
  .lq-undo { bottom: 12px; }
}
