/* Pricing Desk panel + Neighborhood Baseline calibration. Works on the landing page (--vv-* tokens) and in the app
   (--ds-* tokens); each value falls back from one design system to the other. */
.vvd, .vvd-cal {
  --vvd-ink: var(--vv-text, var(--ds-ink, #f4ede0));
  --vvd-muted: var(--vv-muted, var(--ds-muted, #b6ab98));
  --vvd-gold: var(--vv-gold, var(--ds-gold, #e6c886));
  --vvd-line: var(--vv-line, var(--ds-line, rgba(201, 164, 92, .22)));
  --vvd-panel: var(--vv-panel, var(--ds-card, #1c1812));
  --vvd-ok: var(--vv-ok, var(--ds-success, #8fd4a8));
  --vvd-warn: var(--vv-warn, var(--ds-warn, #f0c27a));
  --vvd-danger: var(--vv-danger, var(--ds-danger, #f2a19a));
  color: var(--vvd-ink);
  min-width: 0;
}
.vvd { border: 1px solid var(--vvd-line); border-radius: 14px; padding: 18px; background: var(--vvd-panel); margin-top: 16px; }
.vvd h3, .vvd-cal h3 { margin: 2px 0 6px; }
.vvd-eyebrow { margin: 0; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--vvd-gold); }
.vvd-small { font-size: .88rem; line-height: 1.45; }
.vvd-muted { color: var(--vvd-muted); }
.vvd-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px 16px; }
.vvd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; margin-top: 10px; align-items: start; }
.vvd-gauge { text-align: center; min-width: 0; }
.vvd-gauge-svg { width: 100%; max-width: 360px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.vvd-g-track { fill: none; stroke: var(--vvd-line); stroke-width: 16; stroke-linecap: round; }
.vvd-g-band { fill: none; stroke: var(--vvd-gold); stroke-width: 16; stroke-linecap: butt; opacity: .55; }
.vvd-g-tick { stroke: var(--vvd-muted); stroke-width: 2; }
.vvd-g-sug { stroke: var(--vvd-ink); stroke-width: 3; stroke-dasharray: 3 2; }
.vvd-g-lbl { fill: var(--vvd-muted); font-size: 11px; }
.vvd-g-needle { stroke: var(--vvd-gold); stroke-width: 4; stroke-linecap: round; transition: all .15s ease; }
.vvd-g-hub { fill: var(--vvd-gold); }
.vvd-target span { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--vvd-muted); }
.vvd-target strong { display: block; font-size: clamp(1.7rem, 5vw, 2.3rem); color: var(--vvd-gold); font-variant-numeric: tabular-nums; }
.vvd-target small { display: block; color: var(--vvd-muted); }
.vvd-target small.vvd-target-dom { margin-top: 4px; color: var(--vvd-ink, inherit); font-weight: 700; }
.vvd-controls { display: grid; gap: 14px; min-width: 0; }
.vvd-ctl label { font-weight: 600; display: block; }
.vvd-ctl input[type=range] { width: 100%; min-height: 44px; accent-color: var(--vvd-gold); margin: 2px 0; }
.vvd-ctl-val { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.vvd-ctl-val b { font-variant-numeric: tabular-nums; }
.vvd-check { display: flex !important; gap: 8px; align-items: center; font-weight: 400 !important; font-size: .88rem; min-height: 44px; }
.vvd-check[hidden] { display: none !important; }
.vvd-check input { width: 20px; height: 20px; accent-color: var(--vvd-gold); }
.vvd-readout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.vvd-readout div { border: 1px solid var(--vvd-line); border-radius: 10px; padding: 10px; min-width: 0; }
.vvd-readout dt { font-size: .76rem; color: var(--vvd-muted); }
.vvd-readout dd { margin: 4px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.vvd-notes { margin-top: 12px; }
.vvd-notes summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.vvd-cal { margin-top: 16px; }
.vvd-cal-list { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 8px; }
.vvd-cal-item { display: flex; justify-content: space-between; gap: 12px; border: 1px solid var(--vvd-line); border-left: 4px solid var(--vvd-muted); border-radius: 10px; padding: 10px 12px; }
.vvd-cal-item.is-below { border-left-color: var(--vvd-danger); }
.vvd-cal-item.is-at { border-left-color: var(--vvd-muted); }
.vvd-cal-item.is-above { border-left-color: var(--vvd-ok); }
.vvd-cal-main { min-width: 0; }
.vvd-cal-main p { margin: 2px 0; }
.vvd-cal-label { font-weight: 700; }
.vvd-cal-state { font-size: .9rem; color: var(--vvd-gold); }
.vvd-cal-amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vvd-cal-amt b { display: block; font-size: 1.1rem; }
.vvd-cal-amt small { color: var(--vvd-muted); }
.vvd-match summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--vvd-gold); }
.vvd-match-list { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 6px; }
@media (max-width: 760px) {
  .vvd-grid { grid-template-columns: minmax(0, 1fr); }
  .vvd-readout { grid-template-columns: minmax(0, 1fr); }
  .vvd-cal-item { flex-direction: column; }
  .vvd-cal-amt { text-align: left; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .vvd-g-needle { transition: none; } }
.vvd-g-tgt { stroke: var(--vvd-gold); stroke-width: 3; }
.vvd-g-needle.is-override { stroke: var(--vvd-ink); }
.vvd-override { margin-top: 12px; text-align: left; }
.vvd-override label, .vvd-toggles legend { font-weight: 600; }
.vvd-override-row { display: flex; gap: 8px; margin-top: 4px; }
.vvd-override-row input { flex: 1; min-width: 0; min-height: 44px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--vvd-line);
  background: transparent; color: var(--vvd-ink); font: inherit; font-variant-numeric: tabular-nums; }
.vvd-btn { min-height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--vvd-line); background: transparent; color: var(--vvd-gold);
  font: inherit; font-weight: 600; cursor: pointer; }
.vvd-btn:hover, .vvd-btn:focus-visible { border-color: var(--vvd-gold); }
.vvd-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.vvd-toggles { border: 1px solid var(--vvd-line); border-radius: 10px; padding: 6px 12px 8px; margin: 0; }
.vvd-toggles legend { padding: 0 4px; }
@media print {
  body.vvd-printing * { visibility: hidden !important; }
  body.vvd-printing .vvd-print-me, body.vvd-printing .vvd-print-me * { visibility: visible !important; }
  body.vvd-printing .vvd-print-me { position: absolute; inset: 0 auto auto 0; width: 100%; background: #fff !important; color: #111 !important;
    border: 0; --vvd-ink: #111; --vvd-muted: #555; --vvd-line: #bbb; --vvd-panel: #fff; --vvd-gold: #8a6a1f; }
  body.vvd-printing .vvd-print-me .vvd-actions, body.vvd-printing .vvd-print-me [data-act] { display: none !important; }
  body.vvd-printing .vvd-print-me details { display: block; }
  body.vvd-printing .vvd-print-me input[type=range] { accent-color: #8a6a1f; }
}
