/* ------------------------------------------------------------------
   BisonTongue — PANEL KIT (shell)
   The drawer chrome shared by every section tweak panel. Was inside
   navtweak.css until the headline needed the same treatment; moving it
   here means the next section panel is config, not another copy.

   Class prefix stays .ntw so nothing that already referenced it breaks.
   ------------------------------------------------------------------ */

/* ---------------- the affordance ----------------
   Any element a panel targets gets data-btp-hint, so the chip label
   comes from the panel's config rather than being hardcoded here. */
html.ntw-armed [data-btp-hint]{ cursor:pointer; }
html.ntw-armed [data-btp-hint]::after{
  content:attr(data-btp-hint);
  position:absolute; right:6px; bottom:6px; z-index:5;
  font:500 9px/1 ui-monospace, monospace; letter-spacing:.16em; text-transform:uppercase;
  color:#0E0E0E; background:#43D9A3; padding:4px 7px;
  opacity:0; transition:opacity .14s ease; pointer-events:none;
}
html.ntw-armed [data-btp-hint]:hover::after{ opacity:1; }
html.ntw-armed [data-btp-hint]:hover{ outline:1px dashed #43D9A3; outline-offset:-1px; }

/* ---------------- the panel ---------------- */
.ntw{
  /* below the review bars, not under them — they're fixed and sit higher */
  position:fixed; top:var(--btnav-total, 0px); right:0; bottom:0; z-index:99997;
  width:332px; display:flex; flex-direction:column;
  background:#111; color:#E8E8E8; border-left:1px solid #2B2B2B;
  font-family:ui-monospace, SFMono-Regular, Menlo, monospace;
  transform:translateX(100%); transition:transform .22s ease, box-shadow .22s ease;
  /* No shadow while parked. The offset is leftward (-18px) with a 48px blur,
     so a closed panel still casts onto the page — and with four panels stacked
     off-screen the shadows compound into a near-black band down the right
     edge. Only a panel that is actually open gets one. */
  box-shadow:none;
}
.ntw.is-open{
  transform:translateX(0);
  box-shadow:-18px 0 48px rgba(0,0,0,.4);
}
/* a dragged offset only applies while open — parked panels stay off-screen */
.ntw:not(.is-open){ translate:none !important; }
.ntw__bar{ cursor:grab; user-select:none; }
.ntw.is-drag{ transition:none; }
.ntw.is-drag .ntw__bar{ cursor:grabbing; }
.ntw__bar{
  flex:0 0 auto; display:flex; align-items:center; gap:9px;
  padding:14px 14px; border-bottom:1px solid #2B2B2B; background:#0B0B0B;
}
.ntw__bar b{ font-size:11px; font-weight:700; letter-spacing:.22em; text-transform:uppercase; color:#43D9A3; }
.ntw__bar span{ font-size:10px; color:#6E6E6E; letter-spacing:.12em; }
.ntw__x{
  margin-left:auto; appearance:none; background:none; border:1px solid #2B2B2B; color:#9A9A9A;
  width:24px; height:24px; cursor:pointer; font-size:13px; line-height:1; border-radius:0;
}
.ntw__x:hover{ background:#1E1E1E; color:#fff; }
.ntw__body{ flex:1 1 auto; overflow-y:auto; padding:4px 14px 14px; }
.ntw__body{ padding:0 0 14px !important; }

/* ---- hierarchy (2026-11-11) ----
   L1 panel title (green caps, bar) · L2 group = full-width collapsible
   header, bright 11px · L3 sub-heading = small dim caps with a rule ·
   L4 rows, indented under their group. */
.ntw__grp{ border-bottom:1px solid #222; }
.ntw__gh{
  appearance:none; width:100%; display:flex; align-items:center; gap:9px;
  padding:12px 14px; margin:0; border:0; border-radius:0; background:#151515; cursor:pointer;
  font:inherit; font-size:11px; font-weight:600; letter-spacing:.08em; color:#EDEDED; text-align:left;
  position:sticky; top:0; z-index:1;
}
.ntw__gh:hover{ background:#1C1C1C; }
.ntw__gh:focus-visible{ outline:1px solid #43D9A3; outline-offset:-1px; }
.ntw__chev{ width:7px; height:7px; flex:none; border-right:1.5px solid #8A8A8A; border-bottom:1.5px solid #8A8A8A; transform:rotate(45deg) translate(-2px,-2px); transition:transform .16s ease; }
.ntw__grp.is-shut .ntw__chev{ transform:rotate(-45deg); }
.ntw__gt{ flex:1 1 auto; }
.ntw__badge{ font-size:9px; font-weight:500; letter-spacing:.06em; color:#43D9A3; }
.ntw__gb{ padding:8px 14px 10px 30px; }
.ntw__grp.is-shut .ntw__gb{ display:none; }
.ntw__sub{
  margin:12px 0 7px; font-size:9px; font-weight:600; letter-spacing:.18em; text-transform:uppercase;
  color:#6A6A6A; display:flex; align-items:center; gap:8px;
}
.ntw__sub::after{ content:''; flex:1; height:1px; background:#262626; }
.ntw__gb > .ntw__sub:first-child{ margin-top:4px; }
.ntw__fa{
  appearance:none; background:none; border:1px solid #2B2B2B; color:#9A9A9A; cursor:pointer;
  font:inherit; font-size:9px; letter-spacing:.1em; text-transform:uppercase; padding:5px 7px; margin-left:auto;
}
.ntw__fa:hover{ color:#fff; background:#1E1E1E; }
.ntw__fa + .ntw__x{ margin-left:0; }

.ntw__row{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:7px; }
.ntw__row > label{ font-size:10px; letter-spacing:.04em; color:#B4B4B4; flex:1 1 auto; }
.ntw__val{ color:#6E6E6E !important; }
.ntw__row.is-changed .ntw__val{ color:#43D9A3 !important; }
.ntw__row.is-changed > label{ color:#EDEDED; }
.ntw__row select{
  background:#1A1A1A; color:#E8E8E8; border:1px solid #333; border-radius:0;
  font:inherit; font-size:10px; padding:3px 5px; max-width:132px;
}
.ntw__row input[type="color"]{ width:44px; height:24px; padding:2px; background:#1A1A1A; border:1px solid #333; cursor:pointer; }
.ntw__row input[type="range"]{ flex:0 0 auto; width:126px; accent-color:#43D9A3; }
.ntw__val{ font-size:9px; color:#43D9A3; width:42px; text-align:right; flex:0 0 auto; }
.ntw__foot{ flex:0 0 auto; display:flex; gap:7px; padding:11px 14px; border-top:1px solid #2B2B2B; background:#0B0B0B; }
.ntw__foot button{
  flex:1 1 auto; appearance:none; background:#1A1A1A; color:#C8C8C8; border:1px solid #333;
  border-radius:0; font:inherit; font-size:10px; letter-spacing:.12em; text-transform:uppercase;
  padding:7px 6px; cursor:pointer;
}
.ntw__foot button:hover{ background:#262626; border-color:#444; }
.ntw__foot button.is-primary{ background:#43D9A3; color:#0E0E0E; border-color:#43D9A3; }

@media (max-width: 720px){ .ntw{ width:100%; } }

/* The general tweak bar sits bottom-right at z-index 99998 and would cover
   this panel's footer. It steps aside instead. !important is deliberate:
   this is dev chrome reaching across into another dev tool's rule, and the
   intent shouldn't depend on which stylesheet happens to load last. */
.twk{ transition:right .22s ease; }
html.ntw-open .twk{ right:348px !important; }

/* ---------------- swatch row ----------------
   A click-through strip for exploring a set of treatments, faster than
   a dropdown. Arrow keys step it while the panel is open. */
.ntw__row--sw{ flex-direction:column; align-items:stretch; gap:7px; }
.ntw__sw{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:4px; }
.ntw__chip{
  appearance:none; display:flex; align-items:center; gap:7px;
  background:#1A1A1A; border:1px solid #333; border-radius:0; cursor:pointer;
  padding:5px 7px; font:inherit; font-size:10px; color:#B4B4B4; text-align:left;
  transition:background .12s ease, border-color .12s ease, color .12s ease;
}
.ntw__chip:hover{ background:#242424; color:#E8E8E8; }
.ntw__chip i{ width:14px; height:14px; flex:0 0 auto; border:1px solid rgba(255,255,255,.18); display:block; }
.ntw__chip span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ntw__chip[aria-pressed="true"]{ background:#101F19; border-color:#43D9A3; color:#43D9A3; }
.ntw__row--sw > label::after{ content:' — ← → to step'; color:#5A5A5A; }

/* a plain-language note under a group title, for controls whose name
   alone does not say what they do */
.ntw__hint{
  margin:-2px 0 9px; font-size:9.5px; line-height:1.5; color:#6E6E6E;
}

/* per-control reset (cfg.rowReset) */
.ntw__rr{
  flex:0 0 auto; appearance:none; width:20px; height:20px; padding:0; border:1px solid #333; border-radius:4px;
  background:#1A1A1A; color:#9A9A9A; font:400 12px/1 system-ui, sans-serif; cursor:pointer;
}
.ntw__rr:hover{ color:#43D9A3; border-color:#43D9A3; }
.ntw__row--rr input[type="range"]{ width:104px; }
