/* Kit V7 — docs/EXPERIENCE_V7.md §2 and §5.
 *
 * Answer first. One content column. Sentence-case Inter for labels, Jost for
 * headings and headline figures, mono only in table headers. Every class is
 * prefixed v7- so a screen can migrate without disturbing the legacy kit. */

:root {
  --v7-max: 1280px;
  --v7-pad: 40px;
  --v7-gap: 24px;
  --v7-radius: 16px;
  --v7-radius-sm: 10px;

  --v7-fs-h1: clamp(26px, 2.3vw, 33px);
  --v7-fs-h2: 20px;
  --v7-fs-h3: 16px;
  --v7-fs-body: 15px;
  --v7-fs-small: 13px;
  --v7-fs-label: 12.5px;
  --v7-fs-kpi: clamp(24px, 2.2vw, 32px);

  --v7-surface: linear-gradient(180deg, rgba(20, 30, 45, 0.72), rgba(11, 17, 27, 0.72));
  --v7-surface-flat: #0b111b;
  --v7-line: rgba(150, 190, 255, 0.09);
  --v7-line-strong: rgba(150, 190, 255, 0.18);
  --v7-hi: inset 0 1px 0 rgba(255, 255, 255, 0.035);

  /* Value streams — fixed everywhere (V7 §2.5). No green. */
  --v7-stream-arbitrage: #3cccfc;
  --v7-stream-demand: #1898fc;
  --v7-stream-capacity: #5b8cff;
  --v7-stream-solar: #ffd166;
  --v7-stream-solar-shift: #ffb63d;
  --v7-stream-reactive: #7fe2fe;
  --v7-stream-levies: #8595b2;
  --v7-stream-fixed: #5d6b82;
  --v7-stream-backup: #9c8cff;
  --v7-stream-cost: #ff8a5c;
  --v7-stream-other: #46566d;
}

/* ── the column ─────────────────────────────────────────────────────────── */

.v7-page {
  width: 100%;
  max-width: var(--v7-max);
  margin: 0 auto;
  padding: 36px var(--v7-pad) 96px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: var(--v7-fs-body);
  line-height: 1.55;
}
.stage > .v7-page { padding-top: 28px; }
@media (max-width: 1024px) { .v7-page { --v7-pad: 20px; gap: 32px; } }

/* ── page head ──────────────────────────────────────────────────────────── */

.v7-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.v7-head-main { max-width: 760px; min-width: 0; }
.v7-head-aside { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.v7-eyebrow-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.v7-eyebrow {
  margin: 0;
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}
.v7-answer {
  margin: 0;
  font: 400 var(--v7-fs-h1)/1.18 var(--font-heading);
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}
.v7-lede {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 680px;
  text-wrap: pretty;
}
.v7-fig {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.v7-fig.is-loss { background: none; color: var(--loss); }
.v7-fig.is-plain { background: none; color: var(--text); }

/* ── KPIs ───────────────────────────────────────────────────────────────── */

.v7-kpis { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.v7-kpis.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v7-kpis.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v7-kpis.is-1 { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .v7-kpis, .v7-kpis.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.v7-kpi {
  position: relative;
  padding: 18px 20px 18px;
  border-radius: var(--v7-radius);
  background: var(--v7-surface);
  border: 1px solid var(--v7-line);
  box-shadow: var(--v7-hi);
  min-width: 0;
}
.v7-kpi-label {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font: 500 var(--v7-fs-label)/1.3 var(--font-body);
  color: var(--text-secondary);
}
.v7-kpi-value {
  margin: 0;
  /* 1.38, not 1.05: Jost's glyph box is ~1.37em, and a shorter line box
   * under overflow:hidden (kept for the ellipsis) clips the figure. */
  font: 400 var(--v7-fs-kpi)/1.38 var(--font-heading);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v7-kpi-sub { margin: 8px 0 0; font-size: var(--v7-fs-small); line-height: 1.4; color: var(--text-secondary); }
.v7-kpi.is-primary { border-color: rgba(60, 204, 252, 0.28); background: linear-gradient(180deg, rgba(24, 152, 252, 0.12), rgba(11, 17, 27, 0.72)); }
.v7-kpi.is-primary .v7-kpi-value { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v7-kpi.is-loss .v7-kpi-value { color: var(--loss); background: none; }
.v7-kpi.is-muted .v7-kpi-value { color: var(--text-secondary); }

/* ── sections, cards, grids ─────────────────────────────────────────────── */

.v7-section { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.v7-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.v7-section-titles { max-width: 760px; }
.v7-h2 { margin: 0; font: 500 var(--v7-fs-h2)/1.3 var(--font-heading); color: var(--text); letter-spacing: -0.005em; }
.v7-section-lede { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); }
.v7-section-aside { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.v7-section-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.v7-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px;
  border-radius: var(--v7-radius);
  background: var(--v7-surface);
  border: 1px solid var(--v7-line);
  box-shadow: var(--v7-hi);
  min-width: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  text-decoration: none;
}
.v7-card.has-accent::before {
  content: '';
  position: absolute;
  inset: 0 22px auto;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--v7-accent, var(--cyan));
}
.v7-card.is-action { cursor: pointer; transition: border-color 0.18s var(--ease), transform 0.18s var(--ease), background 0.18s var(--ease); }
.v7-card.is-action:hover { border-color: var(--v7-line-strong); transform: translateY(-1px); }
.v7-card.is-action:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.v7-card.is-selected { border-color: rgba(60, 204, 252, 0.55); background: linear-gradient(180deg, rgba(24, 152, 252, 0.14), rgba(11, 17, 27, 0.8)); }
.v7-h3 { margin: 0; font: 500 var(--v7-fs-h3)/1.35 var(--font-heading); color: var(--text); }
.v7-card-lede { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
.v7-card-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.v7-grid { display: grid; gap: 16px; min-width: 0; }
.v7-grid.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v7-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v7-grid.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .v7-grid.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .v7-grid.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .v7-grid.is-2, .v7-grid.is-3, .v7-grid.is-4 { grid-template-columns: minmax(0, 1fr); } }

/* ── charts ─────────────────────────────────────────────────────────────── */

.v7-chart {
  margin: 0;
  padding: 20px 22px 16px;
  border-radius: var(--v7-radius);
  background: var(--v7-surface);
  border: 1px solid var(--v7-line);
  box-shadow: var(--v7-hi);
  min-width: 0;
}
.v7-chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.v7-chart-titles { min-width: 0; max-width: 720px; }
.v7-chart-title { margin: 0; font: 500 16px/1.35 var(--font-heading); color: var(--text); }
.v7-chart-sub { margin: 4px 0 0; font-size: var(--v7-fs-small); color: var(--text-secondary); }
.v7-chart-aside { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.v7-chart-host { width: 100%; min-width: 0; position: relative; }
.v7-chart-source { margin: 10px 0 0; font-size: 11.5px; color: rgba(133, 149, 178, 0.78); }

.v7-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--text-secondary); }
.v7-legend-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.v7-legend-swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.v7-legend-swatch.is-dashed { height: 0; border-top: 2px dashed currentColor; border-radius: 0; background: none !important; width: 14px; }

/* ── controls ───────────────────────────────────────────────────────────── */

.v7-seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.8);
  border: 1px solid var(--v7-line-strong);
}
.v7-seg-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font: 500 13px/1 var(--font-body);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.v7-seg.is-sm .v7-seg-btn { padding: 6px 11px; font-size: 12.5px; }
.v7-seg-btn:hover:not(:disabled) { color: var(--text); }
.v7-seg-btn.is-on { background: linear-gradient(100deg, rgba(60, 204, 252, 0.22), rgba(24, 152, 252, 0.22)); color: var(--text); box-shadow: inset 0 0 0 1px rgba(60, 204, 252, 0.35); }
.v7-seg-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.v7-seg-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }

.v7-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font: 600 11.5px/1 var(--font-body);
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid var(--v7-line-strong);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
}
.v7-pill.is-indicative { color: var(--amber); border-color: rgba(255, 182, 61, 0.4); background: rgba(255, 182, 61, 0.06); }
.v7-pill.is-info { color: var(--cyan-lt); border-color: rgba(60, 204, 252, 0.35); background: rgba(60, 204, 252, 0.07); }
.v7-pill.is-good { color: #06121c; border-color: transparent; background: var(--grad-r); }
.v7-pill.is-loss { color: var(--loss); border-color: rgba(255, 138, 92, 0.4); background: rgba(255, 138, 92, 0.07); }
.v7-pill.is-warn { color: var(--amber); border-color: rgba(255, 182, 61, 0.4); }

.v7-callout {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--v7-radius-sm);
  background: rgba(60, 204, 252, 0.05);
  border: 1px solid rgba(60, 204, 252, 0.16);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
}
.v7-callout p { margin: 0; }
.v7-callout-dot { flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--cyan); }
.v7-callout.is-caution { background: rgba(255, 182, 61, 0.05); border-color: rgba(255, 182, 61, 0.22); }
.v7-callout.is-caution .v7-callout-dot { background: var(--amber); }

.v7-cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.v7-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--v7-line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font: 500 14px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), transform 0.18s var(--ease);
}
.v7-btn:hover { border-color: rgba(60, 204, 252, 0.5); background: rgba(60, 204, 252, 0.06); }
.v7-btn.is-primary { border-color: transparent; background: var(--grad); color: #04101a; font-weight: 600; box-shadow: var(--shadow-neon); }
.v7-btn.is-primary:hover { transform: translateY(-1px); background: var(--grad); }
.v7-btn[aria-disabled='true'] { opacity: 0.45; pointer-events: none; }
.v7-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ── drawers ────────────────────────────────────────────────────────────── */

.v7-drawer { border-radius: var(--v7-radius); border: 1px solid var(--v7-line); background: rgba(8, 12, 20, 0.55); }
.v7-drawer + .v7-drawer { margin-top: -28px; }
.v7-drawer-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  cursor: pointer;
  font: 500 14.5px/1.3 var(--font-body);
  color: var(--text-dim);
}
.v7-drawer-summary::-webkit-details-marker { display: none; }
.v7-drawer-summary:hover { color: var(--text); }
.v7-drawer-chev { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s var(--ease); opacity: 0.7; }
.v7-drawer[open] > .v7-drawer-summary .v7-drawer-chev { transform: rotate(225deg) translateY(-2px); }
.v7-drawer-body { padding: 4px 20px 20px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; color: var(--text-secondary); }
.v7-drawer-body p { margin: 0; max-width: 820px; }

/* ── stats, tables, marks ───────────────────────────────────────────────── */

.v7-stat { min-width: 0; }
.v7-stat-label { margin: 0 0 4px; font: 500 var(--v7-fs-label)/1.3 var(--font-body); color: var(--text-secondary); }
.v7-stat-value { margin: 0; font: 500 17px/1.25 var(--font-heading); color: var(--text); font-variant-numeric: tabular-nums; }
.v7-stat-sub { margin: 3px 0 0; font-size: 12.5px; color: var(--text-secondary); }
.v7-stat.is-loss .v7-stat-value { color: var(--loss); }
.v7-stat.is-primary .v7-stat-value { color: var(--cyan-lt); }

.v7-table-wrap { overflow-x: auto; border-radius: var(--v7-radius-sm); border: 1px solid var(--v7-line); }
.v7-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.v7-table th {
  text-align: left;
  font: 500 11px/1.2 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--v7-line);
  white-space: nowrap;
}
.v7-table td { padding: 10px 14px; border-bottom: 1px solid rgba(150, 190, 255, 0.05); color: var(--text-dim); white-space: nowrap; }
.v7-table tr:last-child td { border-bottom: 0; }
.v7-table tbody tr:hover td { background: rgba(60, 204, 252, 0.03); }
.v7-table .is-r { text-align: right; }
.v7-table .is-c { text-align: center; }
.v7-table td.is-loss { color: var(--loss); }
.v7-table tr.is-hl td { background: rgba(60, 204, 252, 0.07); color: var(--text); }

.v7-mark { font-style: normal; font-size: 10px; line-height: 1; cursor: help; color: var(--text-secondary); opacity: 0.85; }
.v7-mark.is-primary { color: var(--cyan); }
.v7-mark.is-derived { color: var(--text-secondary); }
.v7-mark.is-unconfirmed { color: var(--amber); }

/* ── skeletons ──────────────────────────────────────────────────────────── */

.v7-skel { display: grid; gap: 16px; }
.v7-skel.is-kpis, .v7-skel.is-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.v7-skel.is-kpis .v7-skel-block { height: 104px; }
.v7-skel.is-cards .v7-skel-block { height: 150px; }
.v7-skel-block {
  border-radius: var(--v7-radius);
  background: linear-gradient(100deg, rgba(20, 30, 45, 0.55) 30%, rgba(40, 58, 84, 0.55) 50%, rgba(20, 30, 45, 0.55) 70%);
  background-size: 300% 100%;
  animation: v7-shimmer 1.4s linear infinite;
}
@keyframes v7-shimmer { from { background-position: 100% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .v7-skel-block { animation: none; } }

/* ── empty state ────────────────────────────────────────────────────────── */

.v7-empty { display: flex; flex-direction: column; gap: 18px; padding: 8px 0; }
.v7-empty-title { margin: 0; font: 400 26px/1.25 var(--font-heading); color: var(--text); }
.v7-empty-lede { margin: 0; font-size: 15px; color: var(--text-secondary); max-width: 620px; }
.v7-examples { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .v7-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .v7-examples { grid-template-columns: minmax(0, 1fr); } }
.v7-example {
  appearance: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  min-height: 132px;
  border-radius: var(--v7-radius);
  border: 1px solid var(--v7-line);
  background: var(--v7-surface);
  box-shadow: var(--v7-hi);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.v7-example:hover { border-color: rgba(60, 204, 252, 0.45); transform: translateY(-2px); }
.v7-example:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.v7-example.is-busy { border-color: rgba(60, 204, 252, 0.6); opacity: 0.8; cursor: progress; }
.v7-example.is-skel { cursor: default; background: linear-gradient(100deg, rgba(20, 30, 45, 0.55) 30%, rgba(40, 58, 84, 0.55) 50%, rgba(20, 30, 45, 0.55) 70%); background-size: 300% 100%; animation: v7-shimmer 1.4s linear infinite; }
/* Sentence case (V7 §2.4 retires uppercase letter-spaced micro-labels). */
.v7-example-kicker { font: 500 12.5px/1.2 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--cyan); }
.v7-example-name { font: 500 16.5px/1.3 var(--font-heading); color: var(--text); }
.v7-example-facts { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--text-secondary); }
.v7-example-bill { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.v7-empty-doors { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--text-secondary); }
.v7-empty-door { color: var(--cyan-lt); text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--v7-line-strong); }
.v7-empty-door:hover { border-color: rgba(60, 204, 252, 0.5); color: var(--text); }

/* ── phones ─────────────────────────────────────────────────────────────── */

@media (max-width: 560px) {
  .v7-page { gap: 28px; padding-bottom: 64px; }
  .v7-kpis, .v7-kpis.is-3, .v7-kpis.is-4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .v7-kpi { padding: 14px; }
  .v7-chart, .v7-card { padding: 16px; }
  .v7-head-aside { width: 100%; }
}

/* ── form controls (v7.field / v7.input / v7.select) ─────────────────────── */

.v7-form { display: flex; flex-direction: column; gap: 18px; }
.v7-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
@media (max-width: 720px) { .v7-form-grid { grid-template-columns: minmax(0, 1fr); } }

.v7-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.v7-field-label {
  display: flex; align-items: baseline; gap: 8px;
  font: 500 13px/1.3 var(--font-body);
  color: var(--text-dim);
}
.v7-field-opt { font-weight: 400; font-size: 12px; color: var(--text-faint); }
.v7-field-hint { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--text-secondary); }
.v7-field-err { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--loss); }

.v7-input, .v7-select {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--v7-radius-sm);
  border: 1px solid var(--v7-line-strong);
  background: rgba(8, 12, 20, 0.85);
  color: var(--text);
  font: 400 15px/1.2 var(--font-body);
  font-variant-numeric: tabular-nums;
  /* The border eases on hover; the focus ring does NOT — a keyboard user
   * needs it the instant focus lands, not 180 ms later. */
  transition: border-color 0.18s var(--ease);
}
.v7-input::placeholder { color: var(--text-faint); }
.v7-input:hover, .v7-select:hover { border-color: rgba(150, 190, 255, 0.3); }
/* Focus, by mouse or by Tab. Written for both :focus and :focus-visible, and
 * with a transparent outline rather than none, so the global :focus-visible
 * ring cannot fight it and Windows high-contrast mode still draws one. The
 * old ring was 14 % cyan and faded in: an accessibility audit saw nothing
 * after Tab on the proposal form. */
.v7-input:focus, .v7-input:focus-visible,
.v7-select:focus, .v7-select:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 1px;
  border-color: rgba(60, 204, 252, 0.85);
  box-shadow: 0 0 0 3px rgba(60, 204, 252, 0.22);
}
.v7-input[aria-invalid] { border-color: rgba(255, 138, 92, 0.7); }
.v7-select {
  appearance: none;
  padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%), linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
  background-position: calc(100% - 20px) 19px, calc(100% - 15px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.v7-select optgroup { color: var(--text-secondary); font-style: normal; }
.v7-select option { color: var(--text); background: #0b111b; }
.v7-input-wrap { position: relative; display: block; }
.v7-input-wrap .v7-input { padding-right: 58px; }
.v7-input-suffix {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font: 400 13.5px/1 var(--font-body); color: var(--text-secondary);
  pointer-events: none;
}
/* A number field has no spinner: a customer types a figure off a bill. */
.v7-input[type='number']::-webkit-outer-spin-button,
.v7-input[type='number']::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.v7-input[type='number'] { -moz-appearance: textfield; appearance: textfield; }

.v7-btn[aria-busy='true'] { cursor: progress; opacity: 0.85; }
.v7-btn .v7-spin {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: v7-spin 0.8s linear infinite;
}
@keyframes v7-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .v7-btn .v7-spin { animation: none; } }

/* ── side sheet (ui/sheet.js) ───────────────────────────────────────────── */

.v7-sheet-scrim {
  position: fixed; inset: 0; z-index: var(--z-modal, 500);
  background: rgba(3, 5, 9, 0.55);
  backdrop-filter: blur(2px);
  display: flex; justify-content: flex-end;
}
.v7-sheet {
  width: min(560px, 100vw);
  height: 100%;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #0d1522, #080c14);
  border-left: 1px solid var(--v7-line-strong);
  box-shadow: -24px 0 60px -30px rgba(0, 0, 0, 0.9);
}
.v7-sheet-head {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--v7-line);
}
.v7-sheet-title { margin: 0; font: 500 19px/1.3 var(--font-heading); color: var(--text); }
.v7-sheet-close {
  appearance: none; border: 1px solid var(--v7-line-strong); background: none;
  width: 34px; height: 34px; border-radius: 50%;
  color: var(--text-secondary); font: 400 20px/1 var(--font-body); cursor: pointer;
}
.v7-sheet-close:hover { color: var(--text); border-color: rgba(60, 204, 252, 0.5); }
.v7-sheet-close:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.v7-sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 22px 40px; display: flex; flex-direction: column; gap: 22px; }
body.has-sheet { overflow: hidden; }
