/* LISTS view + NEW sheet (r10 forge:lists) — owner: lists builder. Scoped under #view-lists and .nv (the NEW sheet body).
   Shapes: 12 px cards (panels), 8 px controls, 6 px chips. Lime = go path + "you are here"; orange only for real warnings. */

/* ---------- LISTS ---------- */
#view-lists .lv { display: flex; flex-direction: column; gap: 12px; }
#view-lists .lv-hbtn { width: auto; min-height: 40px; padding: 0 12px; font-size: 11px; letter-spacing: .1em; white-space: nowrap; }
#view-lists .lv-banner:empty { display: none; }
#view-lists .lv-save .b-v { color: var(--text); }
#view-lists .lv-rows { display: flex; flex-direction: column; gap: 12px; }
#view-lists .lv-tail { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
#view-lists .lv-tail:empty { display: none; }

#view-lists .lv-card {
  position: relative; display: flex; align-items: stretch; min-width: 0;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03);
  overflow: hidden;
}
#view-lists .lv-card.is-cur { border-color: rgba(204, 255, 0, .38); }
#view-lists .lv-card.is-cur::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--lime); }
#view-lists .lv-open {
  flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 10px;
  padding: 14px 4px 14px 16px; color: var(--text); text-decoration: none; -webkit-tap-highlight-color: transparent;
}
#view-lists .lv-open:active { background: rgba(255, 255, 255, .04); }
#view-lists .lv-open:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; border-radius: 12px; }
#view-lists .lv-top { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
#view-lists .lv-tt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
/* QA2-WEB-6: a long title wraps inside its card instead of being cut ("TEST · T-109QA…" at 320 px) */
#view-lists .lv-title { font-size: 15px; font-weight: 700; letter-spacing: .03em; line-height: 1.3; text-transform: uppercase; white-space: normal; overflow-wrap: anywhere; }
#view-lists .lv-sub { font-size: 11px; letter-spacing: .06em; color: var(--label); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-lists .lv-now { flex: none; margin-top: 3px; font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--lime); white-space: nowrap; }
#view-lists .lv-bar { display: flex; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .10); }
#view-lists .lv-bar i { display: block; height: 100%; }
#view-lists .lv-bar .lv-done { background: var(--lime); }
#view-lists .lv-bar .lv-working { background: var(--work); }
#view-lists .lv-bar .lv-help { background: var(--help); }
#view-lists .lv-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; min-width: 0; font-size: 11px; letter-spacing: .08em; color: var(--label); font-variant-numeric: tabular-nums; }
#view-lists .lv-count { min-width: 0; white-space: nowrap; }
#view-lists .lv-count .lv-help { font-weight: 400; color: var(--help); }
#view-lists .lv-upd { flex: none; white-space: nowrap; }
#view-lists .lv-more {
  flex: none; align-self: flex-start; width: 44px; height: 44px; margin: 6px 6px 0 0; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--dim); cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
#view-lists .lv-more:active { background: rgba(255, 255, 255, .06); }
#view-lists .lv-more:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }
#view-lists .lv-empty { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
#view-lists .lv-empty-t { margin: 0 0 6px; font-size: 17px; font-weight: 700; letter-spacing: .06em; }

/* list ••• sheet body (rendered in #sheet-root) */
.sheet .lv-msub { display: flex; flex-direction: column; gap: 8px; }
.sheet .lv-kv { cursor: default; min-height: 44px; }
.sheet .lv-kv .b-v { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- NEW sheet (.nv lives in #sheet-root) ---------- */
.nv { display: flex; flex-direction: column; gap: 14px; }
.nv-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 3px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .02); }
.nv-tab {
  min-height: 42px; padding: 0 6px; border: 0; border-radius: 6px; background: none; color: var(--dim); cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .12em; touch-action: manipulation;
}
.nv-tab.on { background: rgba(255, 255, 255, .10); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.nv-tab[disabled] { opacity: .4; cursor: default; }
.nv-tab:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.nv-pane { display: flex; flex-direction: column; gap: 14px; min-height: 120px; }
.nv-on { margin: 0; font-size: 11px; letter-spacing: .1em; color: var(--label); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-f { display: flex; flex-direction: column; gap: 8px; }
.nv-l { margin: 0; }
.nv-opt { color: var(--dim); opacity: .7; font-weight: 400; }
.nv .nv-area { height: auto; min-height: 88px; padding: 12px 14px; line-height: 1.4; resize: vertical; }
.nv .nv-sel {
  padding-right: 40px; font-size: 15px; font-weight: 700; letter-spacing: .06em; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18' fill='none' stroke='%2394968d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px 18px;
}
.nv .nv-sel option { background: #0d0e0b; color: var(--text); }
.nv-radios { display: flex; flex-direction: column; gap: 8px; }
.nv-radio {
  display: grid; grid-template-columns: 18px 1fr; gap: 4px 12px; align-items: start; width: 100%;
  padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .02);
  color: var(--text); font: inherit; text-align: left; cursor: pointer; touch-action: manipulation;
}
.nv-radio.on { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .05); }
.nv-radio:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.nv-dot { grid-row: 1 / span 2; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--dim); }
.nv-radio.on .nv-dot { border-color: var(--lime); background: radial-gradient(circle, var(--lime) 0 4px, transparent 4.5px); }
.nv-rt { font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.nv-rh { font-size: 12px; color: var(--label); line-height: 1.35; overflow-wrap: anywhere; }
.nv-join { margin-top: 4px; }

/* r12 W-1: the no-signal line under NEW › ITEM (plain info, not a warning) */
.nv-info { margin: 0; font-size: 12px; line-height: 1.45; color: var(--text); }
.nv-info:empty { display: none; }
.lv-arch { flex: none; font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--dim); border: 1px solid rgba(255, 255, 255, .2); border-radius: 4px; padding: 2px 6px; }
