/* Prism-local styles. Everything is namespaced `pz-` because the Lumen kit's
   generic class names (.card, .modal, .check) win over module CSS. */

.pz-empty { color: var(--muted); padding: 32px 4px; font-size: 14px; }
.pz-muted { color: var(--muted); }
.pz-mono  { font-variant-numeric: tabular-nums; }

/* --- filter bar --- */
.pz-filters {
  display: grid; gap: 10px; margin-bottom: 18px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: end;
}
.pz-f label { display: block; font-size: 11px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.pz-f input, .pz-f select {
  width: 100%; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--input-bg); color: var(--ink);
  font: inherit; font-size: 13px;
}
.pz-actions { display: flex; gap: 8px; }

/* --- result grid --- */
.pz-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.pz-item {
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px;
  background: var(--panel); cursor: pointer; transition: border-color .12s, transform .12s;
}
.pz-item:hover { border-color: var(--gold); transform: translateY(-1px); }
.pz-item.sel { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.pz-item h4 { margin: 0 0 6px; font-size: 13px; line-height: 1.35; font-weight: 600; }
.pz-sku { font-size: 11px; color: var(--faint); margin-bottom: 8px; }
.pz-attrs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
.pz-tag {
  font-size: 11px; padding: 2px 7px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted);
}
.pz-price { display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line); padding-top: 8px; }
.pz-price b { font-size: 15px; }
.pz-price span { font-size: 11px; color: var(--muted); }

/* --- companion / detail panel --- */
.pz-split { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 1180px) { .pz-split { grid-template-columns: 1.15fr .85fr; } }
.pz-panel { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 16px; }
.pz-panel h3 { margin: 0 0 4px; font-size: 15px; }
.pz-group { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 13px; }
.pz-group:first-of-type { border-top: 0; }
.pz-grouphead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 3px; }
.pz-role { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--gold-deep); font-weight: 600; }
.pz-prompt { font-size: 12px; color: var(--muted); margin: 4px 0 10px; line-height: 1.45; }
.pz-cand {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 9px; margin-bottom: 6px; font-size: 12px;
}
.pz-cand.def { border-color: var(--gold); background: rgba(var(--glow-c), .05); }
.pz-cand.unfit { opacity: .55; }
.pz-cand .nm { flex: 1; min-width: 0; }
.pz-cand .nm div:first-child { font-weight: 600; }
.pz-cand .why { font-size: 11px; color: var(--danger); margin-top: 2px; }
.pz-cand .amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Safety banner: no automatic swap without a verified drive current (§5.4). */
.pz-warn {
  border: 1px solid var(--danger); border-radius: 9px; padding: 9px 11px;
  font-size: 12px; line-height: 1.45; margin-bottom: 11px;
  background: rgba(220, 60, 60, .07);
}
.pz-ok-badge, .pz-warn-badge {
  font-size: 10px; padding: 2px 7px; border-radius: 999px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
}
.pz-ok-badge   { color: var(--ok); border: 1px solid var(--ok); }
.pz-warn-badge { color: var(--danger); border: 1px solid var(--danger); }

/* --- stats + tables --- */
.pz-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 20px; }
.pz-stat { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--panel); }
.pz-stat .n { font-size: 25px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pz-stat .l { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 3px; }
.pz-stat .s { font-size: 11px; color: var(--faint); margin-top: 5px; }

.pz-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pz-table th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line-2);
}
.pz-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.pz-table tr:hover td { background: var(--panel-2); }
.pz-num { text-align: right; font-variant-numeric: tabular-nums; }
.pz-scroll { overflow-x: auto; }

.pz-bar { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; min-width: 70px; }
.pz-bar i { display: block; height: 100%; background: var(--gold); }

.pz-inline { width: 92px; padding: 5px 7px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--input-bg); color: var(--ink); font: inherit; font-size: 12px; }
