/* ALOKE — THE VERIFICATION CENTRE. A working console: dense, scannable,
   every status carried by a chip as well as a word. Tokens from console-theme.css. */

.vf-body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Readex Pro", "Inter", system-ui, sans-serif;
  font-size: var(--t-md); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
.ic { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.vf-app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }

/* ── side ── */
.vf-side { background: linear-gradient(180deg, #2A1446, #1C0E30); color: #EDE6F7; display: flex; flex-direction: column; padding: 14px 10px;
  position: sticky; top: 0; height: 100vh; box-sizing: border-box; overflow: auto; z-index: 30; }
.vf-brand { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; padding: 4px 8px 16px; }
.vf-brand img { border-radius: 10px; }
.vf-brand small { display: block; font-size: var(--t-xs); opacity: .7; }
.vf-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.vf-group { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .55; padding: 14px 10px 4px; }
.vf-tab { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: none;
  color: inherit; font: inherit; font-size: var(--t-sm); text-align: start; cursor: pointer; min-height: 40px; }
.vf-tab:hover { background: rgba(255, 255, 255, .07); }
.vf-tab.on { background: rgba(255, 255, 255, .14); font-weight: 600; }
.vf-tab .count { margin-inline-start: auto; font-size: 11px; min-width: 22px; text-align: center; padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.vf-tab .count.hot { background: #F19097; color: #2A1446; }
.vf-side-foot { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 10px; font-size: var(--t-xs); }
.vf-who { padding: 0 8px 8px; opacity: .8; overflow-wrap: anywhere; }
.vf-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.vf-side .vf-ghost { color: #EDE6F7; }
.vf-scrim { display: none; }

/* ── main ── */
.vf-main { min-width: 0; display: flex; flex-direction: column; }
.vf-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.vf-title { font-size: var(--t-xl); margin: 0; font-weight: 600; flex: 1; }
.vf-top-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vf-menu { display: none; }
.vf-view { padding: 18px 20px 60px; max-width: 1280px; width: 100%; box-sizing: border-box; }
@media (max-width: 1000px) {
  .vf-app { grid-template-columns: 1fr; }
  .vf-side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 270px; transform: translateX(110%); transition: transform var(--dur-move) var(--ease); }
  [dir="ltr"] .vf-side { transform: translateX(-110%); }
  body.nav-open .vf-side { transform: none; }
  body.nav-open .vf-scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 25; }
  .vf-menu { display: inline-flex; }
  .vf-view { padding: 14px 12px 60px; }
}

/* ── primitives ── */
.vf-ghost { background: none; border: 1px solid transparent; color: var(--ink-2); padding: 7px 10px; border-radius: var(--r-btn); font: inherit; font-size: var(--t-sm); cursor: pointer; text-decoration: none; }
.vf-ghost:hover { border-color: var(--line-strong); }
.vf-btn { font: inherit; font-size: var(--t-sm); font-weight: 600; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: var(--r-btn);
  padding: 8px 14px; min-height: 38px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.vf-btn:hover { border-color: var(--accent); color: var(--accent); }
.vf-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.vf-btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.vf-btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.vf-btn.small { min-height: 30px; padding: 4px 10px; font-weight: 500; font-size: var(--t-xs); }
.vf-btn[disabled] { opacity: .5; cursor: not-allowed; }
.vf-btn:focus-visible, .vf-tab:focus-visible, .vf-input:focus-visible { outline: none; box-shadow: var(--ring); }
.vf-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--e-rest); padding: 14px 16px; margin: 0 0 14px; }
.vf-card h3 { margin: 0 0 10px; font-size: var(--t-lg); display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.vf-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.vf-cols { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); align-items: start; }
@media (max-width: 1100px) { .vf-cols { grid-template-columns: 1fr; } }
.vf-muted { color: var(--muted); font-size: var(--t-sm); }
.vf-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent-weak); color: var(--accent); white-space: nowrap; }
.vf-chip.ok { background: var(--ok-weak); color: var(--ok); }
.vf-chip.warn { background: var(--warn-weak); color: var(--warn); }
.vf-chip.danger { background: var(--danger-weak); color: var(--danger); }
.vf-chip.muted { background: var(--surface-2); color: var(--muted); }
.vf-chip.info { background: var(--info-weak); color: var(--info); }
.vf-input, .vf-select, .vf-textarea { font: inherit; font-size: var(--t-sm); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  padding: 7px 10px; min-height: 36px; box-sizing: border-box; }
.vf-textarea { width: 100%; min-height: 72px; resize: vertical; }
.vf-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.vf-field > span { font-size: var(--t-xs); color: var(--ink-2); font-weight: 500; }
.vf-kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: var(--t-sm); }
.vf-kv dt { color: var(--muted); }
.vf-kv dd { margin: 0; overflow-wrap: anywhere; }
.vf-ltr { direction: ltr; unicode-bidi: isolate; font-family: "Inter", monospace; font-size: var(--t-xs); }

/* ── table ── */
.vf-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.vf-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.vf-table th { text-align: start; font-size: var(--t-xs); color: var(--muted); font-weight: 600; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.vf-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.vf-table tr.click { cursor: pointer; }
.vf-table tr.click:hover td { background: var(--accent-weak); }
.vf-table tr.esc td:first-child { box-shadow: inset 3px 0 0 var(--danger); }

/* ── filters and buckets ── */
.vf-buckets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.vf-bucket { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: var(--t-sm); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.vf-bucket.on { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.vf-bucket b { font-variant-numeric: tabular-nums; }
.vf-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-bottom: 12px; }

/* ── KPIs ── */
.vf-kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 14px; }
.vf-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px 14px; }
.vf-kpi .n { font-size: var(--t-2xl); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.vf-kpi .l { font-size: var(--t-xs); color: var(--muted); }
.vf-chart { width: 100%; height: 170px; display: block; }
.vf-chart text { fill: var(--muted); font-size: 10px; font-family: "Inter", sans-serif; }

/* ── case ── */
.vf-doc { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px solid var(--line); }
.vf-doc:last-child { border-bottom: 0; }
.vf-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vf-timeline { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow: auto; }
.vf-timeline li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.vf-timeline li.internal { background: var(--surface-2); margin: 0 -8px; padding: 8px; }
.vf-timeline .when { font-size: 11px; color: var(--muted); }
.vf-reqrow { display: grid; grid-template-columns: minmax(140px, 1fr) 140px minmax(160px, 1.4fr) 130px auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .vf-reqrow { grid-template-columns: 1fr 1fr; } }

.vf-toast { position: fixed; top: 16px; inset-inline: 16px; margin: 0 auto; max-width: 560px; z-index: 60; padding: 11px 14px; border-radius: var(--r-btn); background: var(--ink); color: var(--surface); box-shadow: var(--e-float); font-size: var(--t-sm); }
.vf-toast.bad { background: var(--danger); color: #fff; }
.vf-noaccess { max-width: 480px; margin: 12vh auto; text-align: center; padding: 0 16px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ── a product's requirement rule, with every clause it carries (2026-09-18) ──
   The rule's own line keeps the five-column grid; its condition clauses stack
   under it, one row each, and the entity scope sits last. */
.vf-rule { padding: 8px 0 10px; border-bottom: 1px solid var(--line); }
.vf-rule .vf-reqrow { border-bottom: 0; }
.vf-clauses { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 0; padding-inline-start: 12px; border-inline-start: 2px solid var(--line); }
.vf-clause { display: grid; grid-template-columns: minmax(140px, 1fr) 110px minmax(120px, 1fr) auto; gap: 6px; align-items: center; }
@media (max-width: 900px) { .vf-clause { grid-template-columns: 1fr 1fr; } }
.vf-ents { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
