/* =============================================================================
   Waidrn v3 — b) content pane (V3-05 / #544)

   Mount contract (shell lane #542): the shell renders
     <main id="v3-content" class="v3-content"> ... pane(view) ... </main>
   and serves `pane(view)` verbatim for `?frag=content`. This file therefore:
   - scopes every pane rule under `.v3-pane` so it beats the shell's generic
     element rules (`html[data-shell="v3"] h1/h2/a/p`) whatever the load order;
   - adds no page gutter of its own — `.v3-content` (shell) owns the padding;
   - uses `var(--token, fallback)` everywhere: the v3 shell supplies tokens in
     `v3-shell.css`.

   Contrast policy (#V3-09): captions and readable copy use --ink-3 (#8D98A5 on
   #101317 ≈ 6.7:1 AA); --faint (#737E8B) is only for disabled/planned states.
   No inline styles, no external assets, no JS-dependent layout.
   ============================================================================= */

.v3-crumb-sep { color: var(--faint, #737e8b); }


/* =============================================================================
   Pane frame + token base — everything below is scoped to `.v3-pane`
   ============================================================================= */

.v3-pane {
  width: 100%;
  min-width: 0;
  color: var(--ink, #ecf0f4);
  font-family: var(--font-ui, "Inter", system-ui, sans-serif);
  font-size: 12.5px;
  line-height: 1.5;
}
.v3-pane *,
.v3-pane *::before,
.v3-pane *::after { box-sizing: border-box; }

/* High-specificity content reset: wins over the shell's generic element rules
   (`html[data-shell="v3"] p/h2/...`) without !important, so the pane keeps its
   own dense rhythm once mounted inside the shell. */
.v3-pane.v3-pane :where(h1, h2, h3, h4, p, ul, ol, dl, dt, dd, figure, blockquote) {
  margin: 0;
  padding: 0;
}
.v3-pane.v3-pane :where(ul, ol) { list-style: none; }
.v3-pane :where(img, svg) { display: block; max-width: 100%; }
.v3-pane a { color: var(--accent, #8fc7ee); text-decoration: none; }
.v3-pane a:hover {
  color: var(--gold-bright, #f3dcac);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.v3-pane :focus-visible {
  outline: 2px solid var(--gold, #e8c987);
  outline-offset: 2px;
  border-radius: 4px;
}
.v3-pane button,
.v3-pane input { font: inherit; color: inherit; }
.v3-pane .v3-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- header ------------------------------------------------------------- */
.v3-pane .v3-pane-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 26px;
  flex-wrap: wrap;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line, #232a33);
}
.v3-pane .v3-pane-head-main { min-width: 0; }
.v3-pane .v3-pane-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3, #8d98a5);
}
.v3-pane .v3-pane-eyebrow-label { color: var(--gold, #e8c987); }
.v3-pane .v3-pane-eyebrow-sep { color: var(--ink-dim, #39424d); }
.v3-pane .v3-pane-eyebrow-scope {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 10px;
  color: var(--ink-2, #c3cbd5); /* over the scene, not a panel: one step brighter than a caption */
}
.v3-pane .v3-pane-title {
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: clamp(21px, 2.1vw, 27px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--ink, #ecf0f4);
}
.v3-pane .v3-pane-sub {
  margin: 5px 0 0;
  max-width: 72ch;
  font-size: 12.5px;
  color: var(--ink-3, #8d98a5);
}
.v3-pane .v3-pane-facts {
  display: flex;
  align-items: stretch;
  margin: 0;
  border: 1px solid var(--line, #232a33);
  border-radius: 10px;
  background: var(--panel, #101317);
  overflow: hidden;
}
.v3-pane .v3-fact {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 64px;
  padding: 7px 13px 8px;
  border-left: 1px solid var(--line, #232a33);
}
.v3-pane .v3-fact:first-child { border-left: 0; }
.v3-pane .v3-fact dt {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3, #8d98a5);
  white-space: nowrap;
}
.v3-pane .v3-fact dd {
  margin: 0;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  color: var(--ink, #ecf0f4);
  white-space: nowrap;
}
.v3-pane .v3-fact--prefs dd { color: var(--gold, #e8c987); font-size: 11px; padding-top: 2px; }

/* ---- columns ------------------------------------------------------------ */
.v3-pane .v3-pane-cols {
  display: grid;
  grid-template-columns: 198px minmax(0, 1fr) 246px;
  gap: 18px 22px;
  align-items: start;
  padding-top: 15px;
}
.v3-pane .v3-pane-rail,
.v3-pane .v3-pane-side {
  position: sticky;
  top: calc(var(--topbar-h, 0px) + 12px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* =============================================================================
   Left rail: kinds + planned kinds
   ============================================================================= */
.v3-pane .v3-rail-block,
.v3-pane .v3-rail-planned {
  border: 1px solid var(--line, #232a33);
  border-radius: 10px;
  background: var(--bg-rail, #0c0e11);
  padding: 9px;
}
.v3-pane .v3-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px 6px;
}
.v3-pane .v3-rail-head h2 {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3, #8d98a5);
}
.v3-pane .v3-rail-actions { display: flex; gap: 9px; }
.v3-pane .v3-rail-action {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 9.5px;
  color: var(--ink-3, #8d98a5);
  letter-spacing: 0.02em;
}
.v3-pane .v3-rail-action:hover { color: var(--gold, #e8c987); }
.v3-pane .v3-kind-list { display: flex; flex-direction: column; gap: 1px; }
.v3-pane .v3-kind {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 27px;
  padding: 4px 7px;
  border-radius: 6px;
  color: var(--ink-2, #c3cbd5);
  font-size: 12.5px;
}
.v3-pane .v3-kind:hover {
  background: var(--panel-2, #14181d);
  color: var(--ink, #ecf0f4);
  text-decoration: none;
}
.v3-pane .v3-kind.is-on {
  background: var(--gold-bg, #1b170d);
  color: var(--gold, #e8c987);
  box-shadow: inset 2px 0 0 var(--gold, #e8c987);
}
.v3-pane .v3-kind.is-on:hover { background: var(--gold-bg, #1b170d); }
.v3-pane .v3-kind-glyph {
  flex: 0 0 15px;
  width: 15px;
  text-align: center;
  font-size: 11px;
  opacity: 0.9;
}
.v3-pane .v3-kind-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v3-pane .v3-kind-count {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3, #8d98a5);
}
.v3-pane .v3-kind.is-on .v3-kind-count { color: var(--gold, #e8c987); }
/* planned/disabled rows never carry readable copy outside the title */
.v3-pane .v3-kind.is-planned {
  min-height: 23px;
  padding: 2px 7px;
  font-size: 11.5px;
  color: var(--faint, #737e8b);
  cursor: default;
}
.v3-pane .v3-kind.is-planned:hover { background: transparent; color: var(--faint, #737e8b); }
.v3-pane .v3-kind-state {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 7.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line, #232a33);
  border-radius: 3px;
  padding: 0 4px;
  color: var(--faint, #737e8b);
}
.v3-pane .v3-rail-planned { padding: 7px 9px 8px; }
.v3-pane .v3-rail-planned summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 1px 2px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3, #8d98a5);
}
.v3-pane .v3-rail-planned summary::-webkit-details-marker { display: none; }
.v3-pane .v3-rail-planned summary span:first-child::before { content: "▸ "; color: var(--ink-3, #8d98a5); }
.v3-pane .v3-rail-planned[open] summary span:first-child::before { content: "▾ "; }
.v3-pane .v3-rail-planned[open] summary { margin-bottom: 5px; color: var(--ink-2, #c3cbd5); }
.v3-pane .v3-rail-planned-count { color: var(--gold-dim, #8e7a4c); font-size: 8.5px; }
.v3-pane .v3-kind-list--planned { padding-top: 2px; }

/* =============================================================================
   Center: toolbar, active filters, unified list, cards, pagination
   ============================================================================= */
.v3-pane .v3-pane-center {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.v3-pane .v3-pane-toolbar {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line, #232a33);
}
.v3-pane .v3-toolbar-group { display: flex; align-items: center; gap: 7px; min-width: 0; }
.v3-pane .v3-toolbar-label {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3, #8d98a5);
  white-space: nowrap;
}
.v3-pane .v3-toolbar-options {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 2px;
  border: 1px solid var(--line, #232a33);
  border-radius: 7px;
  background: var(--panel, #101317);
}
.v3-pane .v3-sort,
.v3-pane .v3-view,
.v3-pane .v3-per {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 5px;
  color: var(--ink-3, #8d98a5);
  font-size: 11px;
  white-space: nowrap;
}
.v3-pane .v3-per {
  min-width: 29px;
  padding: 3px 6px;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 10.5px;
}
.v3-pane .v3-sort:hover,
.v3-pane .v3-view:hover,
.v3-pane .v3-per:hover {
  background: var(--panel-2, #14181d);
  color: var(--ink, #ecf0f4);
  text-decoration: none;
}
.v3-pane .v3-view.is-on,
.v3-pane .v3-per.is-on {
  background: var(--panel-3, #1a1f26);
  color: var(--ink, #ecf0f4);
  box-shadow: inset 0 0 0 1px var(--line-2, #303944);
}
.v3-pane .v3-sort.is-on {
  background: var(--gold-bg, #1b170d);
  color: var(--gold, #e8c987);
  box-shadow: inset 0 0 0 1px var(--gold-line, #4a3f22);
}
.v3-pane .v3-toolbar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 10px;
  color: var(--ink-3, #8d98a5);
}
.v3-pane .v3-toolbar-count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.v3-pane .v3-toolbar-share {
  border: 1px solid var(--line-2, #303944);
  border-radius: 6px;
  padding: 3px 9px;
  color: var(--ink-2, #c3cbd5);
  font-size: 10px;
  white-space: nowrap;
}
.v3-pane .v3-toolbar-share:hover { border-color: var(--gold-line, #4a3f22); color: var(--gold, #e8c987); text-decoration: none; }
.v3-pane .v3-toolbar-share.is-copied { border-color: var(--green, #68d6a8); color: var(--green, #68d6a8); }

/* active filter chips: the one place filters are removed (no-JS links) */
.v3-pane .v3-active-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.v3-pane .v3-chip-active {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border: 1px solid var(--gold-line, #4a3f22);
  border-radius: 999px;
  background: var(--gold-bg, #1b170d);
  color: var(--gold, #e8c987);
  font-size: 10.5px;
}
.v3-pane .v3-chip-active:hover { border-color: var(--gold, #e8c987); color: var(--gold-bright, #f3dcac); text-decoration: none; }
.v3-pane .v3-chip-active-k {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold, #e8c987);
}
.v3-pane .v3-chip-active-x { color: var(--gold, #e8c987); }
.v3-pane .v3-clear-all { margin-left: 2px; font-size: 10.5px; color: var(--ink-3, #8d98a5); }
.v3-pane .v3-clear-all:hover { color: var(--gold, #e8c987); }

/* ---- unified list: one list for every selected kind (issue #644) -------- */
/* Per-kind section headers are gone: `pane()` merges every selected kind into
   one `.v3-cards` list ordered by the active sort. Each card therefore names
   its kind with a plain-text tag (no glyph/icon) so the mixed list stays
   legible. */
.v3-pane .v3-card-kind {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3, #8d98a5);
  white-space: nowrap;
}
.v3-pane .v3-card--list .v3-card-kind,
.v3-pane .v3-card--grid .v3-card-kind { margin-top: 1px; }
.v3-pane .v3-card--compact .v3-card-kind {
  flex: 0 0 auto;
  margin-top: 0;
  color: var(--ink-2, #c3cbd5);
}

/* ---- cards: shared ------------------------------------------------------ */
.v3-pane .v3-card {
  background: var(--panel, #101317);
  border: 1px solid rgba(216, 189, 131, .38);
  border-radius: 9px;
  box-shadow:
    0 0 0 1px rgba(216, 189, 131, .12),
    0 0 20px rgba(216, 189, 131, .10),
    0 10px 22px rgba(0, 0, 0, .18);
}
.v3-pane .v3-card-cover {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: var(--panel-3, #1a1f26);
}
.v3-pane .v3-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.v3-pane .v3-card-cover-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--gold-dim, #8e7a4c);
  font-size: 15px;
}
.v3-pane .v3-card-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.v3-pane .v3-card-title {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}
.v3-pane .v3-card-title a { color: var(--ink, #ecf0f4); }
.v3-pane .v3-card-title a:hover { color: var(--gold-bright, #f3dcac); }
.v3-pane .v3-pin {
  border: 1px solid var(--gold-line, #4a3f22);
  border-radius: 3px;
  padding: 0 4px;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 7.5px;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold, #e8c987);
}
.v3-pane .v3-card-byline { margin-top: 1px; font-size: 11px; color: var(--ink-3, #8d98a5); }
.v3-pane .v3-card-summary {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--ink-2, #c3cbd5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v3-pane .v3-card-chips { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.v3-pane .v3-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 6px;
  border: 1px solid var(--line, #232a33);
  border-radius: 999px;
  font-size: 9px;
  line-height: 1.6;
  color: var(--ink-2, #c3cbd5);
  white-space: nowrap;
}
.v3-pane .v3-chip-k {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3, #8d98a5);
}
.v3-pane .v3-chip-k::after { content: ":"; color: var(--ink-dim, #39424d); }
.v3-pane .v3-chip--tag { border-color: var(--line-2, #303944); color: var(--accent, #8fc7ee); }

/* ---- cards: list (forum-row rhythm: 42×60 cover, hairline rhythm) ------- */
.v3-pane .v3-cards--list { display: flex; flex-direction: column; gap: 6px; }
.v3-pane .v3-card--list {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  transition: background-color 120ms var(--ease, cubic-bezier(.2,.7,.2,1)),
              border-color 120ms var(--ease, cubic-bezier(.2,.7,.2,1));
}
.v3-pane .v3-card--list:hover { background: var(--panel-2, #14181d); border-color: var(--gold, #d8bd83); }
.v3-pane .v3-card--list .v3-card-cover { width: 42px; height: 60px; }
/* Forum-row rhythm: one summary line, then the chip strip; stats stay on one
   line so a row reads title → meta → numbers left-to-right. */
.v3-pane .v3-card--list .v3-card-summary { -webkit-line-clamp: 1; }
.v3-pane .v3-card--list .v3-card-chips { margin-top: 4px; }
.v3-pane .v3-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 9.5px;
  color: var(--ink-3, #8d98a5);
  white-space: nowrap;
}
.v3-pane .v3-card-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.v3-pane .v3-card--list .v3-card-stats {
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
}
.v3-pane .v3-card-power { color: var(--gold, #e8c987); font-variant-numeric: tabular-nums; }
.v3-pane .v3-card-likes { color: var(--ink-3, #8d98a5); font-variant-numeric: tabular-nums; }
.v3-pane .v3-card-updated { color: var(--ink-3, #8d98a5); }
.v3-pane .v3-card-open { font-size: 10px; color: var(--accent, #8fc7ee); }

/* ---- cards: grid (2:3 cover tiles) -------------------------------------- */
.v3-pane .v3-cards--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 10px;
}
.v3-pane .v3-card--grid { display: flex; flex-direction: column; overflow: hidden; transition: background-color 120ms var(--ease, ease), border-color 120ms var(--ease, ease); }
.v3-pane .v3-card--grid:hover { background: var(--panel-2, #14181d); border-color: var(--gold, #d8bd83); }
.v3-pane .v3-card--grid .v3-card-cover {
  border-radius: 0;
  aspect-ratio: 2 / 3;
  border-bottom: 1px solid var(--line, #232a33);
}
.v3-pane .v3-card--grid .v3-card-cover-fallback { font-size: 24px; }
.v3-pane .v3-card--grid .v3-card-body { flex: 1 1 auto; padding: 9px 10px 10px; }
.v3-pane .v3-card--grid .v3-card-summary { -webkit-line-clamp: 3; }
.v3-pane .v3-card-foot {
  display: flex;
  align-items: center;
  gap: 4px 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 9.5px;
  color: var(--ink-3, #8d98a5);
}

/* ---- cards: compact (one dense line per item) --------------------------- */
.v3-pane .v3-cards--compact { display: flex; flex-direction: column; }
.v3-pane .v3-card--compact {
  display: flex;
  align-items: baseline;
  gap: 4px 14px;
  flex-wrap: wrap;
  min-height: 33px;
  padding: 6px 6px 6px 4px;
  border: 0;
  border-bottom: 1px solid var(--line, #232a33);
  border-radius: 0;
  background: transparent;
}
.v3-pane .v3-card--compact:hover { background: var(--panel, #101317); }
.v3-pane .v3-card--compact .v3-card-title { flex: 0 1 auto; min-width: 0; font-size: 12.5px; }
.v3-pane .v3-card--compact .v3-card-byline { margin-top: 0; font-size: 10.5px; }
.v3-pane .v3-card--compact .v3-card-chips { margin-top: 0; }
.v3-pane .v3-card--compact .v3-chip--tag { display: none; }
.v3-pane .v3-card--compact .v3-card-stats {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 10px;
  margin-left: auto;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 9.5px;
  color: var(--ink-3, #8d98a5);
}

/* ---- pagination --------------------------------------------------------- */
.v3-pane .v3-pager {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0 2px;
  border-top: 1px solid var(--line, #232a33);
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 10.5px;
  color: var(--ink-3, #8d98a5);
}
.v3-pane .v3-pager-step {
  padding: 4px 9px;
  border: 1px solid var(--line, #232a33);
  border-radius: 6px;
  color: var(--ink-2, #c3cbd5);
  white-space: nowrap;
}
.v3-pane .v3-pager-step:hover { border-color: var(--line-2, #303944); background: var(--panel, #101317); text-decoration: none; }
.v3-pane .v3-pager-step.is-disabled { color: var(--faint, #737e8b); cursor: default; }
.v3-pane .v3-pager-nums { display: flex; align-items: center; gap: 2px; }
.v3-pane .v3-pager-item { display: block; }
.v3-pane .v3-pager-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 5px;
  color: var(--ink-2, #c3cbd5);
  font-variant-numeric: tabular-nums;
}
.v3-pane .v3-pager-n:hover { background: var(--panel-2, #14181d); color: var(--ink, #ecf0f4); text-decoration: none; }
.v3-pane .v3-pager-n.is-on {
  background: var(--gold-bg, #1b170d);
  color: var(--gold, #e8c987);
  box-shadow: inset 0 0 0 1px var(--gold-line, #4a3f22);
  font-weight: 500;
}
.v3-pane .v3-pager-gap { padding: 0 2px; color: var(--ink-dim, #39424d); }
.v3-pane .v3-pager-summary { margin-left: auto; color: var(--ink-3, #8d98a5); }

/* =============================================================================
   Right rail: facets + preferences
   ============================================================================= */
.v3-pane .v3-side-block {
  border: 1px solid var(--line, #232a33);
  border-radius: 10px;
  background: var(--bg-rail, #0c0e11);
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.v3-pane .v3-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.v3-pane .v3-side-head h2 {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3, #8d98a5);
}
.v3-pane .v3-side-badge {
  padding: 0 6px;
  border: 1px solid var(--gold-line, #4a3f22);
  border-radius: 999px;
  background: var(--gold-bg, #1b170d);
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 8.5px;
  color: var(--gold, #e8c987);
}
.v3-pane .v3-facet { display: flex; flex-direction: column; gap: 3px; }
.v3-pane .v3-facet + .v3-facet { border-top: 1px solid var(--line, #232a33); padding-top: 8px; }
.v3-pane .v3-facet-head {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2, #c3cbd5);
}
.v3-pane .v3-facet-current { font-weight: 400; color: var(--gold, #e8c987); }
.v3-pane .v3-facet-list { display: flex; flex-direction: column; gap: 1px; }
.v3-pane .v3-facet-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 11.5px;
  color: var(--ink-3, #8d98a5);
}
.v3-pane .v3-facet-btn:hover { background: var(--panel-2, #14181d); color: var(--ink, #ecf0f4); text-decoration: none; }
.v3-pane .v3-facet-btn.is-on { background: var(--gold-bg, #1b170d); color: var(--gold, #e8c987); }
.v3-pane .v3-facet-mark { flex: 0 0 10px; width: 10px; font-size: 9px; color: var(--gold, #e8c987); }
.v3-pane .v3-facet-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v3-pane .v3-facet-count {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3, #8d98a5);
}
.v3-pane .v3-facet-btn.is-on .v3-facet-count { color: var(--gold, #e8c987); }

/* ---- preferences -------------------------------------------------------- */
.v3-pane .v3-prefs-where {
  padding: 1px 6px;
  border: 1px solid var(--gold-line, #4a3f22);
  border-radius: 4px;
  background: var(--gold-bg, #1b170d);
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 8.5px;
  color: var(--gold, #e8c987);
  white-space: nowrap;
}
.v3-pane .v3-hint { margin: 0; font-size: 11px; line-height: 1.5; color: var(--ink-3, #8d98a5); }
.v3-pane .v3-hint code {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 9.5px;
  color: var(--ink-2, #c3cbd5);
  background: var(--panel, #101317);
  border: 1px solid var(--line, #232a33);
  border-radius: 4px;
  padding: 0 4px;
  overflow-wrap: anywhere;
}
.v3-pane .v3-hint--tiny { font-size: 9.5px; }
.v3-pane .v3-prefs-saved { margin: 0; font-family: var(--font-mono, "IBM Plex Mono", monospace); font-size: 9.5px; color: var(--green, #68d6a8); }
.v3-pane .v3-prefs-form { display: flex; flex-direction: column; gap: 8px; }
.v3-pane .v3-prefs-scope {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding: 0;
  border: 0;
}
.v3-pane .v3-prefs-scope legend {
  padding: 0 0 3px;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3, #8d98a5);
}
.v3-pane .v3-radio,
.v3-pane .v3-check {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-2, #c3cbd5);
  cursor: pointer;
}
.v3-pane .v3-radio input,
.v3-pane .v3-check input { flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--gold, #e8c987); }
.v3-pane .v3-radio small {
  margin-left: auto;
  max-width: 108px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 9px;
  color: var(--ink-3, #8d98a5);
}
.v3-pane .v3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--line-2, #303944);
  border-radius: 7px;
  background: var(--panel-2, #14181d);
  color: var(--ink-2, #c3cbd5);
  font: inherit;
  font-size: 11.5px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
}
.v3-pane .v3-btn:hover { border-color: var(--line-3, #3c4753); color: var(--ink, #ecf0f4); text-decoration: none; }
.v3-pane .v3-btn--gold {
  border-color: var(--gold-dim, #8e7a4c);
  background: var(--gold-bg, #1b170d);
  color: var(--gold, #e8c987);
}
.v3-pane .v3-btn--gold:hover { border-color: var(--gold, #e8c987); color: var(--gold-bright, #f3dcac); }
.v3-pane .v3-prefs-form .v3-btn--gold { width: 100%; }
.v3-pane .v3-prefs-form + .v3-prefs-clear { margin-top: 2px; }
.v3-pane .v3-prefs-clear { display: flex; }
.v3-pane .v3-prefs-clear .v3-btn { width: 100%; background: transparent; color: var(--ink-3, #8d98a5); }

/* =============================================================================
   States: empty, page-past-end, error
   ============================================================================= */
.v3-pane .v3-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 38px 22px;
  border: 1px dashed var(--line-2, #303944);
  border-radius: 12px;
  background: var(--bg-rail, #0c0e11);
  text-align: center;
}
.v3-pane .v3-empty-glyph { font-size: 22px; line-height: 1; color: var(--gold-dim, #8e7a4c); }
.v3-pane .v3-empty h2 {
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink, #ecf0f4);
}
.v3-pane .v3-empty p { max-width: 56ch; font-size: 12px; line-height: 1.55; color: var(--ink-3, #8d98a5); }
.v3-pane .v3-empty-note {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 9.5px;
  color: var(--ink-3, #8d98a5);
}
.v3-pane .v3-empty-actions { display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.v3-pane .v3-empty .v3-btn { font-size: 11px; }
.v3-pane .v3-empty--no-kinds .v3-empty-glyph { color: var(--gold-dim, #8e7a4c); }
.v3-pane .v3-empty--error { border-style: solid; border-color: var(--rose, #e87a94); }
.v3-pane .v3-empty--error .v3-empty-glyph { color: var(--rose, #e87a94); }
.v3-pane .v3-empty--error .v3-hint { font-size: 10.5px; }

/* =============================================================================
   Responsive — targets: 1440 / 1280 / 768 / 390
   ============================================================================= */

@media (max-width: 1220px) {
  .v3-pane .v3-pane-cols { grid-template-columns: 180px minmax(0, 1fr) 226px; gap: 16px 18px; }
}

@media (max-width: 1080px) {
  .v3-pane .v3-pane-cols { grid-template-columns: 174px minmax(0, 1fr); }
  .v3-pane .v3-pane-side {
    grid-column: 1 / -1;
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
    align-items: start;
  }
  .v3-pane .v3-cards--grid { grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); }
}

@media (max-width: 900px) {
  .v3-pane .v3-pane-title { font-size: 22px; }
}

@media (max-width: 820px) {
  .v3-pane .v3-pane-cols { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .v3-pane .v3-pane-rail {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
  }
  .v3-pane .v3-pane-rail > .v3-rail-block { flex: 1 1 100%; }
  .v3-pane .v3-kind-list { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .v3-pane .v3-kind {
    min-height: 30px;
    padding: 4px 9px;
    border: 1px solid var(--line, #232a33);
    background: var(--panel, #101317);
  }
  .v3-pane .v3-kind.is-on { box-shadow: inset 0 0 0 1px var(--gold-line, #4a3f22); }
  .v3-pane .v3-rail-planned { flex: 1 1 100%; }
  .v3-pane .v3-kind-list--planned { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .v3-pane .v3-kind.is-planned { border: 1px solid var(--line, #232a33); background: transparent; }
  .v3-pane .v3-pane-head { align-items: flex-start; }
  .v3-pane .v3-pane-facts { width: 100%; }
  .v3-pane .v3-fact { flex: 1 1 0; }
  .v3-pane .v3-cards--grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

@media (max-width: 620px) {
  .v3-pane .v3-pane-title { font-size: 20px; }
  .v3-pane .v3-pane-sub { font-size: 12px; }
  .v3-pane .v3-pane-facts { overflow-x: auto; }
  .v3-pane .v3-fact { min-width: 68px; padding: 6px 10px 7px; }
  .v3-pane .v3-pane-toolbar { gap: 7px 10px; }
  .v3-pane .v3-toolbar-group { flex: 1 1 100%; justify-content: space-between; }
  .v3-pane .v3-toolbar-options { flex: 1 1 auto; }
  .v3-pane .v3-sort,
  .v3-pane .v3-view,
  .v3-pane .v3-per { flex: 1 1 auto; }
  .v3-pane .v3-toolbar-meta { width: 100%; margin-left: 0; justify-content: space-between; }
  .v3-pane .v3-card--list { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 9px 10px; }
  .v3-pane .v3-card--list .v3-card-cover { width: 38px; height: 54px; }
  .v3-pane .v3-card-side { display: none; }
  .v3-pane .v3-card-summary { -webkit-line-clamp: 2; }
  .v3-pane .v3-cards--grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
  .v3-pane .v3-card--grid .v3-card-body { padding: 8px 9px 9px; }
  .v3-pane .v3-pager-summary { display: none; }
  .v3-pane .v3-pager { gap: 5px; }
  .v3-pane .v3-empty { padding: 30px 14px; }
  .v3-pane .v3-pane-side { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 400px) {
  .v3-pane .v3-cards--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v3-pane .v3-fact--prefs { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .v3-pane *,
  .v3-pane *::before,
  .v3-pane *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------------------
   #651 — kind-aware filter rail: grouped facets, per-group search fields and
   real numeric/date range filters (no-JS GET forms; JS only enhances).
   --------------------------------------------------------------------------- */
.v3-pane .v3-facet-kind-note { margin-bottom: 6px; }
.v3-pane .v3-facet-kind {
  border: 1px solid var(--line, #232a33);
  border-radius: 7px;
  background: var(--panel, #10141a);
  margin-top: 6px;
}
.v3-pane .v3-facet-kind-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2, #c3cbd5);
  cursor: pointer;
  list-style: none;
}
.v3-pane .v3-facet-kind-head::-webkit-details-marker { display: none; }
.v3-pane .v3-facet-kind--single {
  border: 0;
  background: none;
  margin-top: 0;
}
.v3-pane .v3-facet-kind--single .v3-facet-kind-head { padding: 0 0 4px; cursor: default; }
.v3-pane .v3-facet-kind-label { flex: 1 1 auto; min-width: 0; }
.v3-pane .v3-facet-kind-count {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 9px;
  font-weight: 400;
  color: var(--faint, #7c8896);
}
.v3-pane .v3-facet-kind-on {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gold, #e8c987);
  border: 1px solid var(--gold-dim, #6f5a2e);
  border-radius: 3px;
  padding: 0 4px;
}
.v3-pane .v3-facet-kind-caret { color: var(--faint, #7c8896); font-size: 9px; }
.v3-pane .v3-facet-kind[open] .v3-facet-kind-caret { transform: rotate(180deg); }
.v3-pane .v3-facet-kind-body { padding: 2px 8px 8px; }
.v3-pane .v3-facet-kind-body .v3-facet + .v3-facet { margin-top: 7px; }
.v3-pane .v3-facet-showing {
  margin-left: auto;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 8.5px;
  font-weight: 400;
  color: var(--faint, #7c8896);
}
.v3-pane .v3-facet-none { padding: 4px 2px; }
.v3-pane .v3-facet-search {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 3px 0 4px;
}
.v3-pane .v3-facet-search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 24px;
  padding: 0 7px;
  border: 1px solid var(--line, #232a33);
  border-radius: 5px;
  background: var(--bg-2, #0b0f14);
  color: var(--ink, #ecf0f4);
  font: inherit;
  font-size: 10.5px;
}
.v3-pane .v3-facet-search-input::placeholder { color: var(--faint, #7c8896); }
.v3-pane .v3-facet-search-btn {
  height: 24px;
  padding: 0 7px;
  border: 1px solid var(--line, #232a33);
  border-radius: 5px;
  background: var(--panel-2, #14181d);
  color: var(--ink-3, #8d98a5);
  font-size: 10px;
  cursor: pointer;
}
.v3-pane .v3-facet-search-btn:hover { color: var(--ink, #ecf0f4); border-color: var(--line-2, #2d3642); }
.v3-pane .v3-facet-search-clear { font-size: 10px; color: var(--gold, #e8c987); }
.v3-pane .v3-facet-search--all { margin: 4px 0 8px; }
.v3-pane .v3-facet-search--all .v3-facet-search-input { height: 26px; }
.v3-pane .v3-range-filters { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.v3-pane .v3-range-filter {
  border: 1px solid var(--line, #232a33);
  border-radius: 7px;
  background: var(--panel, #10141a);
  padding: 7px 8px;
}
.v3-pane .v3-range-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2, #c3cbd5);
}
.v3-pane .v3-range-head h3 { font-size: 11px; font-weight: 600; }
.v3-pane .v3-range-applies {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 400;
  color: var(--faint, #7c8896);
}
.v3-pane .v3-range-active {
  margin-left: auto;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gold, #e8c987);
}
.v3-pane .v3-range-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.v3-pane .v3-range-pill {
  padding: 2px 7px;
  border: 1px solid var(--line, #232a33);
  border-radius: 999px;
  font-size: 10px;
  color: var(--ink-3, #8d98a5);
}
.v3-pane .v3-range-pill:hover { color: var(--ink, #ecf0f4); border-color: var(--line-2, #2d3642); text-decoration: none; }
.v3-pane .v3-range-pill.is-on { color: var(--gold, #e8c987); border-color: var(--gold-dim, #6f5a2e); background: var(--gold-bg, #1b170d); }
.v3-pane .v3-range-form { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.v3-pane .v3-range-field { display: flex; align-items: center; gap: 3px; font-size: 9px; color: var(--faint, #7c8896); }
.v3-pane .v3-range-input {
  width: 58px;
  height: 23px;
  padding: 0 5px;
  border: 1px solid var(--line, #232a33);
  border-radius: 5px;
  background: var(--bg-2, #0b0f14);
  color: var(--ink, #ecf0f4);
  font: inherit;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 10px;
}
.v3-pane .v3-range-input:focus { outline: 2px solid var(--gold, #e8c987); outline-offset: 1px; }
.v3-pane .v3-range-apply {
  height: 23px;
  padding: 0 7px;
  border: 1px solid var(--line, #232a33);
  border-radius: 5px;
  background: var(--panel-2, #14181d);
  color: var(--ink-2, #c3cbd5);
  font-size: 10px;
  cursor: pointer;
}
.v3-pane .v3-range-apply:hover { color: var(--ink, #ecf0f4); border-color: var(--line-2, #2d3642); }
.v3-pane .v3-range-unit { font-family: var(--font-mono, "IBM Plex Mono", monospace); font-size: 9px; color: var(--faint, #7c8896); }
.v3-pane .v3-range-clear { margin-left: auto; font-size: 10px; color: var(--gold, #e8c987); }
.v3-pane .v3-empty-chips { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
@media (max-width: 820px) {
  /* On the narrow drawer the filters need room to wrap instead of clipping. */
  .v3-pane .v3-facet-search { flex-wrap: wrap; }
  .v3-pane .v3-range-form { flex-wrap: wrap; }
  .v3-pane .v3-range-input { width: 64px; }
}

/* ==========================================================================
   Operator corrections (issue #663): cards, hover detail, filters.
   ========================================================================== */
.v3-pane .v3-card { position: relative; }
.v3-pane .v3-card--list .v3-card-cover { width: 64px; height: 96px; }
.v3-pane .v3-card-list .v3-card-cover img,
.v3-pane .v3-card--list .v3-card-cover img { border-radius: 5px; }
.v3-pane .v3-card--list .v3-card-title { font-size: 15.5px; }
.v3-pane .v3-card-statsline {
  margin-top: 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 9.5px;
  color: var(--ink-3, #8d98a5);
}
.v3-pane .v3-card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 5px; }
.v3-pane .v3-card-tag {
  padding: 0 6px;
  border: 1px solid var(--line, #232a33);
  border-radius: 999px;
  font-size: 9px;
  line-height: 1.7;
  color: var(--accent, #8fc7ee);
}
.v3-pane .v3-card--list .v3-card-side {
  align-self: stretch;
  justify-content: space-between;
  min-height: 96px;
}
.v3-pane .v3-card-updated { text-align: right; }
.v3-pane .v3-card-audience { color: var(--gold, #e8c987); text-align: right; }
/* Hover/focus detail window for b): pure CSS, no layout shift. */
.v3-pane .v3-card-hover {
  display: none;
  position: absolute;
  right: 12px;
  bottom: calc(100% + 6px);
  z-index: 30;
  width: min(360px, 90vw);
  padding: 9px 11px;
  border: 1px solid var(--line-2, #303944);
  border-radius: 8px;
  background: var(--panel-2, #14181d);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
  pointer-events: none;
}
.v3-pane .v3-card:hover .v3-card-hover,
.v3-pane .v3-card:focus-within .v3-card-hover { display: block; }
.v3-pane .v3-card-hover strong { display: block; font-size: 12px; color: var(--ink, #ecf0f4); }
.v3-pane .v3-card-hover p { margin: 3px 0 5px; font-size: 10.5px; color: var(--ink-2, #c3cbd5); }
.v3-pane .v3-card-hover-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 8.5px;
  color: var(--ink-3, #8d98a5);
}
/* Numeric filters: two real inputs, no overlapping min/any labels. */
.v3-pane .v3-range-form { display: flex; align-items: center; gap: 5px; margin-top: 6px; }
.v3-pane .v3-range-field { flex: 1 1 72px; min-width: 0; display: block; }
.v3-pane .v3-range-input { width: 100%; min-width: 0; height: 28px; }
.v3-pane .v3-range-apply { flex: 0 0 auto; height: 28px; }
.v3-pane .v3-range-head h3 { font-size: 11px; }
/* Grid surface: last update sits top-right, audience bottom-right. */
.v3-pane .v3-card--grid { position: relative; }
.v3-pane .v3-card--grid .v3-card-side {
  position: absolute;
  inset: 7px 7px 8px auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
  z-index: 2;
}
.v3-pane .v3-card--grid .v3-card-updated,
.v3-pane .v3-card--grid .v3-card-audience {
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(4, 6, 10, .72);
}
.v3-pane .v3-card-detailfacts {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin-top: 1px;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 9px;
  color: var(--faint, #7e8da1);
}

/* ==========================================================================
   Contour-first component pass (operator 2026-11-09):
   gold is a contour/accent, never a fill for body copy or idle chips.
   ========================================================================== */
.v3-pane .v3-pane-eyebrow-label { color: var(--ink-3, #8d98a5); }
.v3-pane .v3-kind { color: var(--ink-2, #c3cbd5); }
.v3-pane .v3-kind.is-on {
  background: var(--panel-2, #14181d);
  color: var(--ink, #ecf0f4);
  box-shadow: inset 2px 0 0 var(--gold, #e8c987);
}
.v3-pane .v3-kind.is-on .v3-kind-count { color: var(--ink-3, #8d98a5); }
.v3-pane .v3-rail-action { color: var(--ink-3, #8d98a5); }
.v3-pane .v3-rail-planned-count { color: var(--faint, #7e8da1); }
.v3-pane .v3-sort.is-on, .v3-pane .v3-view.is-on, .v3-pane .v3-per.is-on {
  background: var(--panel-2, #14181d);
  border: 1px solid var(--gold-line, #4a3f22);
  color: var(--ink, #ecf0f4);
}
.v3-pane .v3-toolbar-share:hover { border-color: var(--gold-line, #4a3f22); color: var(--ink-2, #c3cbd5); }
.v3-pane .v3-side-badge {
  border: 1px solid var(--gold-line, #4a3f22);
  background: transparent;
  color: var(--ink-3, #8d98a5);
}
.v3-pane .v3-card-kind {
  border: 1px solid var(--line-2, #303944);
  background: transparent;
  color: var(--ink-3, #8d98a5);
}
.v3-pane .v3-card-power, .v3-pane .v3-card-likes, .v3-pane .v3-card-audience,
.v3-pane .v3-card-updated { color: var(--ink-3, #8d98a5); }
.v3-pane .v3-card-title a { color: var(--ink, #ecf0f4); }
.v3-pane .v3-card-title a:hover { color: var(--gold-bright, #f3dcac); }
.v3-pane .v3-card-summary { color: var(--ink-2, #c3cbd5); }
.v3-pane .v3-card-byline { color: var(--ink-3, #8d98a5); }
.v3-pane .v3-card-tag {
  border-color: var(--line-2, #303944);
  color: var(--ink-3, #8d98a5);
}
.v3-pane .v3-card-tag:hover { border-color: var(--gold-line, #4a3f22); }
.v3-pane .v3-btn--gold {
  background: transparent;
  border-color: var(--gold-line, #4a3f22);
  color: var(--gold-bright, #f3dcac);
  box-shadow: none;
}
.v3-pane .v3-btn--gold:hover { background: var(--gold-bg, #1b170d); border-color: var(--gold, #e8c987); }
.v3-pane .v3-facet-btn.is-on {
  background: var(--panel-2, #14181d);
  border: 1px solid var(--gold-line, #4a3f22);
  color: var(--ink, #ecf0f4);
}
.v3-pane .v3-facet-btn.is-on .v3-facet-count { color: var(--ink-3, #8d98a5); }
.v3-pane .v3-range-pill.is-on {
  background: var(--panel-2, #14181d);
  border-color: var(--gold-line, #4a3f22);
  color: var(--ink, #ecf0f4);
}
.v3-pane .v3-range-active, .v3-pane .v3-range-applies { color: var(--faint, #7e8da1); }
.v3-pane .v3-chip-active {
  background: var(--panel-2, #14181d);
  border-color: var(--gold-line, #4a3f22);
  color: var(--ink-2, #c3cbd5);
}
.v3-pane .v3-card:hover { border-color: var(--gold-line, #4a3f22); }
.v3-pane .v3-empty-glyph { color: var(--ink-3, #8d98a5); }

/* Light theme controls (base --bg-2 is not defined in every theme). */
html[data-theme="light"] { --bg-2: #FBFAF7; }
html[data-theme="light"] .v3-pane .v3-range-input,
html[data-theme="light"] .v3-pane .v3-range-apply,
html[data-theme="light"] .v3-pane .v3-facet-search input,
html[data-theme="light"] .v3-pane .v3-side-search input {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line-2);
}
html[data-theme="light"] .v3-pane .v3-card { background: var(--panel); }
html[data-theme="light"] .v3-pane .v3-side-block,
html[data-theme="light"] .v3-pane .v3-range-filter,
html[data-theme="light"] .v3-pane .v3-facet-kind { background: var(--panel); border-color: var(--line); }
html[data-theme="light"] .v3-pane .v3-card-tag,
html[data-theme="light"] .v3-pane .v3-chip,
html[data-theme="light"] .v3-pane .v3-card-kind { border-color: var(--line-2); color: var(--ink-3); }

/* List covers are 64px (operator #663); the grid column must match so the
   cover never covers the first letters of the title. */
.v3-pane .v3-card--list { grid-template-columns: 64px minmax(0, 1fr) auto; }

/* ==========================================================================
   The wishes gallery: the main page and a realm's page. Cards in a grid, the
   picture at the side, as on a season chart. The pane with every kind, its rail
   and its filters is the advanced search; the button in the head leads there.
   ========================================================================== */
.v3-pane.v3-gallery .v3-gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.v3-pane .v3-gallery-tools { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.v3-pane .v3-gallery-count {
  margin: 0;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-2, #c3cbd5);
}
.v3-pane .v3-gallery-advanced {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--gold-line, #4a3f22);
  border-radius: 8px;
  background: var(--panel, #101317);
  color: var(--ink, #ecf0f4);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.v3-pane .v3-gallery-advanced:hover { border-color: var(--gold, #e8c987); color: var(--gold-bright, #f3dcac); }
.v3-pane .v3-gallery-make {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--gold, #e8c987);
  border-radius: 8px;
  background: var(--gold, #e8c987);
  color: #17130a;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.v3-pane .v3-gallery-make:hover { background: var(--gold-bright, #f3dcac); border-color: var(--gold-bright, #f3dcac); color: #17130a; }
/* The light profile's gold is a dark gold, made for text on a light ground: on it the
   ink is white, as on the wish page's primary button (v3-wish.css). Dark ink on it
   read at 2.9 to 1 until 2026-11-16. */
html[data-theme="light"] .v3-pane .v3-gallery-make,
html[data-theme="light"] .v3-pane .v3-gallery-make:hover { color: #FFFFFF; }
.v3-pane .v3-gallery-note {
  margin: 18px 0 0;
  padding: 18px;
  border: 1px solid var(--line, #232a33);
  border-radius: 10px;
  background: var(--panel, #101317);
  color: var(--ink-2, #c3cbd5);
  font-size: 12.5px;
}
/* The search (/search): its own field under the head, and the way to make the
   words a wish when no wish holds them. */
.v3-pane .v3-searchpage-form {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 640px;
  margin: 16px 0 0;
  padding: 4px 4px 4px 12px;
  border: 1px solid var(--control-line, #5b6573);
  border-radius: 10px;
  background: var(--panel, #101317);
}
.v3-pane .v3-searchpage-form:focus-within {
  border-color: var(--gold, #e8c987);
  outline: 2px solid var(--gold, #e8c987);
  outline-offset: 1px;
}
.v3-pane .v3-searchpage-form input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--ink, #ecf0f4);
  font: inherit;
  font-size: 14px;
  outline: none;
  appearance: none;
}
.v3-pane .v3-searchpage-form input::placeholder { color: var(--faint, #7b8693); opacity: 1; }
.v3-pane .v3-searchpage-form .v3-search-go { height: 32px; padding: 0 14px; }
.v3-pane .v3-searchpage-none {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 18px;
}
.v3-pane .v3-searchpage-none .v3-gallery-note { flex: 1 1 280px; margin: 0; }
.v3-pane .v3-gallery-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.v3-pane .v3-wishcard {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  min-height: 176px;
  padding: 12px;
  border: 1px solid var(--line-2, #303944);
  border-radius: 12px;
  background: var(--panel, #101317);
}
.v3-pane .v3-wishcard:hover,
.v3-pane .v3-wishcard:focus-within { border-color: var(--gold, #e8c987); background: var(--panel-2, #14181d); }
.v3-pane .v3-wishcard-cover { display: block; overflow: hidden; border-radius: 8px; background: var(--bg-deep, #060708); }
.v3-pane .v3-wishcard-cover img { display: block; width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.v3-pane .v3-wishcard-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.v3-pane .v3-wishcard-title {
  margin: 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.25;
}
.v3-pane .v3-wishcard-title a { color: var(--ink, #ecf0f4); text-decoration: none; }
.v3-pane .v3-wishcard-title a:hover { color: var(--gold-bright, #f3dcac); }
.v3-pane .v3-wishcard-by { margin: 0; font-size: 11px; color: var(--ink-3, #8d98a5); }
.v3-pane .v3-wishcard-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-2, #c3cbd5);
}
.v3-pane .v3-wishcard-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 0; padding: 0; list-style: none; }
.v3-pane .v3-wishcard-tags li {
  padding: 1px 7px;
  border: 1px solid var(--line-2, #303944);
  border-radius: 999px;
  font-size: 10px;
  color: var(--ink-3, #8d98a5);
}
.v3-pane .v3-wishcard-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: auto 0 0;
  padding-top: 6px;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 10px;
  color: var(--ink-3, #8d98a5);
}
@media (max-width: 640px) {
  .v3-pane .v3-gallery-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .v3-pane .v3-wishcard { grid-template-columns: 88px minmax(0, 1fr); gap: 11px; min-height: 0; padding: 10px; }
  .v3-pane .v3-wishcard-cover img { min-height: 124px; }
  .v3-pane .v3-wishcard-summary { -webkit-line-clamp: 3; }
}
