/* LIST sheet (r13 L-1, SPEC_106 §A) — owner: web lane. Lives in #sheet-root (Blocky.sheet). Scoped under .list-sheet.
   Shapes: 8 px controls, 6 px chips, 12 px panels. Lime = the go path (INVITE PEOPLE, OPEN) and "you are here";
   orange only for LEAVE LIST. Rows ≥ 48 px, switch rows 56 px (the app's ListSheet). */
.list-sheet { display: flex; flex-direction: column; gap: 22px; }
.list-sheet #ls-ask:empty { display: none; }

/* head: the list's own title, subtitle, counts */
.list-sheet .ls-top { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.list-sheet .ls-title { margin: 0; max-width: 100%; font-size: 22px; font-weight: 700; letter-spacing: .02em; line-height: 1.2; text-transform: uppercase; overflow-wrap: anywhere; word-break: break-word; }
/* NOVA106-2-1: the pinned head (LIST + close) keeps its own height and nothing in the sheet is squeezed under it: a long
   list name wraps onto more lines below the head (WebKit shrinks flex children of a scrolling column otherwise), and
   a scroll or focus to the title stops below the head. */
.ls-panel > .sh-head, .ls-panel > .sh-body, .list-sheet > * { flex-shrink: 0; }
.list-sheet .ls-top, .list-sheet .ls-title { scroll-margin-top: 64px; }
.list-sheet .ls-title:focus { outline: none; }
.list-sheet .ls-title:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }
.list-sheet .ls-sub { margin: 0; font-size: 12px; letter-spacing: .06em; color: var(--label); overflow-wrap: anywhere; }
.list-sheet .ls-meta { margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 11px; letter-spacing: .08em; color: var(--label); }
.list-sheet .ls-tag { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--label); border: 1px solid rgba(255, 255, 255, .2); border-radius: 4px; padding: 2px 6px; }

/* sections */
.list-sheet .ls-sec { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.list-sheet .ls-h { margin: 0 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--label); scroll-margin-top: 12px; }
.list-sheet .ls-h:focus { outline: none; }
.list-sheet .ls-h:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }
.list-sheet .ls-live .ls-h { color: var(--lime); }
.list-sheet .ls-line { margin: 0; padding: 6px 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--label); }
.list-sheet .ls-count { font-size: 11px; letter-spacing: .08em; color: var(--label); font-variant-numeric: tabular-nums; white-space: nowrap; }
.list-sheet .ls-help { font-weight: 400; color: var(--help); }

/* glass rows (SWITCH LIST) */
.list-sheet .ls-rows { display: flex; flex-direction: column; gap: 6px; }
.list-sheet .ls-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px 8px 14px;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, .10);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  color: var(--text); font: inherit; text-align: left;
}
.list-sheet button.ls-row { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.list-sheet button.ls-row:active { background: rgba(255, 255, 255, .07); transform: scale(.99); }
.list-sheet .ls-now { border-color: rgba(204, 255, 0, .38); position: relative; overflow: hidden; }
.list-sheet .ls-now::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--lime); }
.list-sheet .ls-rt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.list-sheet .ls-rn { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-sheet .ls-open { flex: none; font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--lime); white-space: nowrap; }
.list-sheet .ls-chev { flex: none; display: grid; place-items: center; color: var(--dim); }
.list-sheet .ls-chev svg { display: block; }

/* SWITCH LIST footer: ALL LISTS · JOIN WITH CODE · NEW LIST (wraps when it doesn't fit) */
.list-sheet .ls-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.list-sheet .ls-gb {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; padding: 0 12px;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .03); color: var(--text);
  font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .1em; white-space: nowrap; cursor: pointer; touch-action: manipulation;
}
.list-sheet .ls-gb:active { background: rgba(255, 255, 255, .07); }
.list-sheet .ls-gb .ls-chev { margin-right: -4px; }

/* LIVE */
.list-sheet .ls-person {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 6px 10px;
  border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; text-align: left;
}
.list-sheet button.ls-person { cursor: pointer; touch-action: manipulation; background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .08); }
.list-sheet button.ls-person:active { background: rgba(255, 255, 255, .07); }
.list-sheet .ls-face {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 9px; font-weight: 700; line-height: 1; color: var(--text); background: #15170f; border: 1.5px solid var(--lime);
}
.list-sheet .ls-face.idle { border-color: var(--box); color: var(--dim); }
.list-sheet .ls-pm { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.list-sheet .ls-pn { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* QA2-WEB-6: the block a person is in wraps instead of being cut ("IN CAMERA DEPARTMENT LONG BLO…" at 320 px) */
.list-sheet .ls-pw { font-size: 11px; color: var(--label); white-space: normal; overflow-wrap: anywhere; }
.list-sheet .ls-pw.in { color: var(--lime); }
.list-sheet .ls-person.idle .ls-pn { color: var(--dim); }
.list-sheet .ls-pp { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--label); white-space: nowrap; }
/* HAWK-106W-3: your own LIVE row: name + YOU on one line, never a button */
.list-sheet .ls-pnl { display: flex; align-items: center; gap: 8px; min-width: 0; }
.list-sheet .ls-pnl .ls-pn { flex: 0 1 auto; min-width: 0; }
.list-sheet .ls-you {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 48px; padding: 0 10px;
  border: 1px dashed rgba(204, 255, 0, .45); border-radius: 8px; background: none; color: var(--lime);
  font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-align: left; cursor: pointer; touch-action: manipulation;
}

/* INVITE: INVITE PEOPLE (lime) · CODE large + COPY */
.list-sheet .ls-inv { min-height: 52px; }
.list-sheet .ls-code {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 60px; padding: 6px 6px 6px 14px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .10); background: rgba(255, 255, 255, .02);
}
.list-sheet .ls-ck { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--label); }
.list-sheet .ls-cv { font-size: 24px; font-weight: 700; letter-spacing: .12em; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.list-sheet .ls-copy {
  min-height: 48px; min-width: 76px; padding: 0 14px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .1em; cursor: pointer; touch-action: manipulation;
}
.list-sheet .ls-copy:active { background: rgba(255, 255, 255, .09); }

/* MEMBERS */
.list-sheet .ls-mem { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 10px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.list-sheet .ls-mn { display: flex; align-items: center; gap: 8px; min-width: 0; }
/* QA2-WEB-4: member names are values (white), as on Android and Mac since QA1-AND-5 */
.list-sheet .ls-mt { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-sheet .ls-youtag { flex: none; font-size: 9px; font-weight: 700; letter-spacing: .1em; color: var(--ink); background: var(--text); border-radius: 4px; padding: 2px 5px; }
.list-sheet .ls-role { flex: none; font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--label); }
.list-sheet .ls-role.own { color: var(--lime); }

/* VIEW (phone landscape only): the header's SHOW chips + HIDE DONE */
.list-sheet .ls-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.list-sheet .ls-chip {
  flex: 1 1 auto; min-height: 48px; padding: 0 14px; border-radius: 8px; white-space: nowrap; cursor: pointer; touch-action: manipulation;
  font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--label); background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .12);
}
/* NOVA106-2-3: the active SHOW chip takes its own colour, as the app's FilterChips: ALL lime, WORKING --work,
   HELP --help (border + text + a 14 % fill). SHOW DONE (done rows hidden) is lime, as the app's lime button. */
.list-sheet .ls-chip[aria-pressed="true"] { color: var(--lime); border-color: var(--lime); background: rgba(204, 255, 0, .14); }
.list-sheet .ls-chip[data-f="working"][aria-pressed="true"] { color: var(--work); border-color: var(--work); background: rgba(255, 255, 255, .06); background: color-mix(in srgb, var(--work) 14%, transparent); }
.list-sheet .ls-chip[data-f="help"][aria-pressed="true"] { color: var(--help); border-color: var(--help); background: rgba(255, 255, 255, .06); background: color-mix(in srgb, var(--help) 14%, transparent); }
.list-sheet .ls-hide { width: 100%; }

/* THIS LIST */
.list-sheet .ls-this { gap: 10px; }

.list-sheet button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* phone landscape: the sheet is short, so it spends less on air */
@media (orientation: landscape) and (max-height: 500px) {
  .list-sheet { gap: 16px; }
  .ls-panel { max-height: calc(100dvh - 12px); }
}
@media (prefers-reduced-motion: reduce) { .list-sheet button.ls-row:active { transform: none; } }

/* C8 / WEB-3: the owner's REMOVE on a member row (one tap; the UNDO toast is the way back) */
.list-sheet .ls-mem .ls-rm { flex: none; min-height: 44px; min-width: 44px; padding: 0 12px; margin-left: 8px; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--warn); background: none; border: 1px solid rgba(255, 138, 31, .55); border-radius: 8px; cursor: pointer; touch-action: manipulation; }
.list-sheet .ls-mem .ls-rm:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
