/* AI Engineering Value Modelling.
   Layout: a model sheet inside the site frame. Assumptions rail on the left with
   inputs in the site periwinkle; the outputs ledger on the right reads top-down
   from run-rate to proof. Dark is the site default; light follows data-theme. */
.vm-page {
  --max-width: 1280px;
  --gutter: clamp(1rem, 3vw, 3rem);
  --bg: var(--paper);
  --text: var(--ink);
  --text-soft: var(--muted);
  --text-dim: var(--muted);
  --line-strong: var(--line);
  --vm-surface: #12151e;
  --vm-surface-2: #171b26;
  --vm-grid: rgba(242, 238, 229, 0.07);
  --vm-axis: rgba(242, 238, 229, 0.24);
  --vm-input: #aab8ff;
  --vm-input-bg: rgba(149, 167, 255, 0.08);
  --vm-input-line: rgba(149, 167, 255, 0.3);
  --vm-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --s-value: #7587ee;
  --s-cost: #d26a3a;
  --s-net: #3fc7ad;
  --s-ramp: #3b4590;
  --good-ink: #5fd38a;
  --good-bg: rgba(12, 163, 12, 0.14);
  --warning-ink: #f2c14e;
  --warning-bg: rgba(250, 178, 25, 0.12);
  --serious-ink: #f29a73;
  --critical-ink: #ff8a8a;
  --critical-bg: rgba(208, 59, 59, 0.16);
  position: relative;
  z-index: 1;
  padding: 1.25rem 0 clamp(4rem, 7vw, 6rem);
  font-size: 15px;
  line-height: 1.5;
}

:root[data-theme="light"] .vm-page {
  --vm-surface: #ffffff;
  --vm-surface-2: var(--paper);
  --vm-grid: rgba(21, 24, 32, 0.07);
  --vm-axis: rgba(21, 24, 32, 0.26);
  --vm-input: #3f4faa;
  --vm-input-bg: rgba(82, 101, 206, 0.07);
  --vm-input-line: rgba(82, 101, 206, 0.32);
  --vm-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
  --s-value: #5265ce;
  --s-cost: #d4612f;
  --s-net: #087f70;
  --s-ramp: #b7c2f2;
  --good-ink: #0a6b2b;
  --good-bg: #e7f4ea;
  --warning-ink: #7a5200;
  --warning-bg: #fff3d6;
  --serious-ink: #a1431b;
  --critical-ink: #b42318;
  --critical-bg: #fcebea;
}

.vm-page [hidden] { display: none !important; }
.vm-version-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-start; margin: 0.25rem 0; }
.vm-version-nav a { padding: 0.45rem 0.85rem; border: 1px solid var(--line); border-radius: 0.4rem; color: var(--text); font-size: 0.9rem; text-decoration: none; }
.vm-version-nav a:hover { border-color: var(--vm-input); }
.vm-version-nav a[aria-current="page"] { border-color: var(--vm-input); background: var(--vm-input-bg); font-weight: 600; }
.vm-page > section {
  width: min(var(--max-width), calc(100% - 2 * var(--gutter)));
  margin-right: auto;
  margin-left: auto;
}
.vm-page a:focus-visible,
.vm-page button:focus-visible,
.vm-page summary:focus-visible,
.vm-page [tabindex]:focus-visible {
  outline: 2px solid var(--vm-input);
  outline-offset: 2px;
}

/* Hero */
.vm-hero { display: grid; gap: 0.75rem; padding-bottom: 0.75rem; }
.vm-hero h1 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(2.4rem, 4.2vw, 4.2rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.vm-lede { margin: 0; color: var(--text-soft); font-size: 1.05rem; }
.vm-conv { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; color: var(--text-dim); font-size: 0.85rem; }
.vm-conv b { font-weight: 600; color: var(--text); }
.vm-conv .in { color: var(--vm-input); }

/* Toolbar */
.vm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; padding-block: 1rem; }
.vm-toolbar .label { color: var(--text-dim); font-size: 0.85rem; }
.vm-spacer { flex: 1; }
.vm-seg { display: inline-flex; flex-wrap: wrap; max-width: 100%; gap: 2px; padding: 2px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--vm-surface-2); }
.vm-seg button {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.86rem;
  white-space: nowrap;
  cursor: pointer;
}
.vm-seg button:hover { color: var(--text); }
.vm-seg button[aria-pressed="true"] { background: var(--vm-surface); color: var(--text); font-weight: 600; box-shadow: var(--vm-shadow); }
.vm-seg.full { display: flex; }
.vm-seg.full button { flex: 1; padding-inline: 0.4rem; }
.vm-btn {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  background: var(--vm-surface);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  white-space: nowrap;
  cursor: pointer;
}
.vm-btn:hover { border-color: var(--text-soft); }
.vm-btn.ghost { background: transparent; }
.vm-btn.primary { border-color: var(--vm-input); background: var(--vm-input); color: var(--vm-surface); font-weight: 600; }
.vm-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Layout */
.vm-layout { display: grid; grid-template-columns: minmax(280px, 330px) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 980px) { .vm-layout { grid-template-columns: minmax(0, 1fr); } }

/* Rail */
.vm-rail { display: grid; gap: 0.6rem; position: sticky; top: 6.5rem; max-height: calc(100vh - 7.5rem); overflow: auto; padding-right: 4px; scrollbar-width: thin; }
@media (max-width: 980px) { .vm-rail { position: static; max-height: none; overflow: visible; padding-right: 0; } }
.vm-group { border: 1px solid var(--line); border-radius: 1.1rem; background: var(--vm-surface); }
.vm-group > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.8rem 0.95rem;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}
.vm-group > summary::-webkit-details-marker { display: none; }
.vm-group > summary .meta { margin-left: auto; color: var(--text-dim); font-size: 0.8rem; font-weight: 400; text-align: right; }
.vm-group > summary::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 1.5px solid var(--text-dim);
  border-bottom: 1.5px solid var(--text-dim);
  transform: rotate(45deg) translateY(-2px);
}
.vm-group[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.vm-group .body { display: grid; gap: 0.75rem; padding: 0.1rem 0.95rem 0.95rem; }
.vm-fields { display: grid; gap: 0.75rem; }
.vm-subhead { display: flex; align-items: baseline; gap: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--line); font-size: 0.9rem; font-weight: 600; }
.vm-subhead .meta { margin-left: auto; color: var(--text-dim); font-size: 0.8rem; font-weight: 400; }
.vm-page .field { display: grid; grid-template-columns: minmax(0, 1fr) 136px; align-items: center; gap: 0.25rem 0.6rem; }
.vm-page .field > label { font-size: 0.86rem; line-height: 1.3; }
.vm-page .field .help,
.vm-page .field .slider { grid-column: 1 / -1; }
.vm-page .help { margin: 0; color: var(--text-dim); font-size: 0.8rem; line-height: 1.4; }
.vm-page .num {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  height: 34px;
  padding-inline: 9px;
  border: 1px solid var(--vm-input-line);
  border-radius: 9px;
  background: var(--vm-input-bg);
}
.vm-page .num:focus-within { outline: 2px solid var(--vm-input); outline-offset: 1px; }
.vm-page .num input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--vm-input);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.vm-page .num .pre,
.vm-page .num .suf { color: var(--text-dim); font-size: 0.78rem; white-space: nowrap; }
.vm-page .slider { width: 100%; margin: 2px 0 0; accent-color: var(--vm-input); }
.vm-teamgrid { display: grid; grid-template-columns: minmax(0, 1fr) 72px 108px; gap: 0.4rem 0.5rem; align-items: center; }
.vm-teamgrid .h { color: var(--text-dim); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.vm-teamgrid .h.r { text-align: right; }
.vm-teamgrid .loc { font-size: 0.86rem; }
.vm-calc { display: flex; flex-wrap: wrap; gap: 2px 0.75rem; padding-top: 0.6rem; border-top: 1px solid var(--line); color: var(--text-soft); font-size: 0.82rem; }
.vm-calc b { color: var(--text); font-weight: 600; }

/* Sheet */
.vm-sheet { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 1.5rem; background: var(--vm-surface); }
.vm-sec { display: grid; gap: 0.9rem; min-width: 0; padding: 1.5rem clamp(1rem, 2.4vw, 1.9rem); border-top: 1px solid var(--line); }
.vm-sec:first-child { border-top: 0; }
.vm-sec-head { display: grid; gap: 0.3rem; }
.vm-page h2.vm-h2 { margin: 0; font-family: var(--sans); font-size: 1.3rem; font-weight: 600; line-height: 1.2; letter-spacing: 0; text-wrap: balance; }
.vm-sub { margin: 0; max-width: 46rem; color: var(--text-soft); font-size: 0.93rem; }
.vm-note { margin: 0; max-width: 50rem; color: var(--text-dim); font-size: 0.84rem; }
.vm-note b { color: var(--text); font-weight: 600; }

/* Summary */
.vm-summary { background: linear-gradient(180deg, var(--vm-input-bg), transparent); box-shadow: inset 0 3px 0 var(--vm-input); }
.vm-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 1.75rem; align-items: start; }
@media (max-width: 760px) { .vm-hero-grid { grid-template-columns: minmax(0, 1fr); } }
.vm-hero-main { display: grid; gap: 0.4rem; min-width: 0; }
.vm-hero-num { font-size: clamp(2.75rem, 5.4vw, 4rem); font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.vm-hero-num .unit { margin-left: 4px; color: var(--text-dim); font-size: 0.42em; font-weight: 500; letter-spacing: 0; }
.vm-hero-note { margin: 0; max-width: 44ch; color: var(--text-soft); font-size: 0.88rem; }
.vm-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; }
@media (max-width: 560px) { .vm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vm-tile { display: grid; gap: 2px; align-content: start; min-width: 0; padding: 0.75rem 0.85rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vm-tile dt { color: var(--text-dim); font-size: 0.78rem; }
.vm-tile dd { margin: 0; }
.vm-tile .v { font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.vm-tile .s { color: var(--text-soft); font-size: 0.78rem; line-height: 1.35; }
.vm-tldr { display: grid; gap: 0.45rem; min-width: 0; margin-top: 0.25rem; padding: 1rem clamp(0.9rem, 2vw, 1.25rem); border: 1px solid var(--vm-input-line); border-inline-start: 4px solid var(--vm-input); border-radius: 0.9rem; background: var(--vm-input-bg); }
.vm-tldr-label { color: var(--vm-input); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; }
.vm-mathline { margin: 0; color: var(--text); font-size: clamp(0.95rem, 1.2vw, 1.05rem); line-height: 1.65; }
.vm-mathline b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.vm-mathline .in { color: var(--vm-input); }
.vm-mathline b:last-child { color: var(--vm-input); font-weight: 700; }
.vm-basis-select button[aria-pressed="true"] { background: var(--vm-input-bg); box-shadow: inset 0 0 0 2px var(--vm-input); }
.vm-basis-explainer { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.vm-basis-explainer h3 { margin: 0; font-size: 1.1rem; }
.vm-basis-intro, .vm-basis-note { color: var(--text-soft); font-size: 0.86rem; line-height: 1.5; }
.vm-basis-intro { margin: 0.4rem 0 0.8rem; }
.vm-basis-note { margin: 0.8rem 0 0; }
.vm-basis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.vm-basis-card { min-width: 0; padding: 1rem; border: 2px solid var(--line); border-radius: 0.75rem; background: var(--vm-surface); }
.vm-basis-card[data-selected="true"] { border-color: var(--vm-input); background: var(--vm-input-bg); }
.vm-basis-card h4 { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; margin: 0; font-size: 0.95rem; }
.vm-basis-selected { padding: 0.1rem 0.4rem; border: 1px solid var(--vm-input-line); border-radius: 0.25rem; color: var(--vm-input); font-size: 0.72rem; }
.vm-basis-card p { margin: 0.5rem 0 0; font-size: 0.86rem; }
.vm-basis-card .vm-basis-question { font-weight: 600; }
.vm-basis-card .vm-basis-value { margin-top: 0.8rem; font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.vm-basis-card .vm-basis-formula { color: var(--text-soft); font-size: 0.8rem; }
@media (max-width: 560px) { .vm-basis-grid { grid-template-columns: minmax(0, 1fr); } }

/* Facts */
.vm-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin: 0; }
@media (max-width: 760px) { .vm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vm-facts div { display: grid; gap: 2px; padding-left: 0.65rem; border-left: 2px solid var(--line-strong); }
.vm-facts dt { color: var(--text-dim); font-size: 0.78rem; }
.vm-facts dd { margin: 0; font-size: 1.1rem; font-weight: 600; }
.vm-facts dd small { display: block; color: var(--text-soft); font-size: 0.78rem; font-weight: 400; }

/* Charts */
.vm-chart { position: relative; width: 100%; min-width: 0; }
.vm-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.vm-chart text { fill: var(--text-soft); font-family: var(--sans); font-size: 12px; }
.vm-chart .tick { fill: var(--text-dim); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.vm-chart .lbl { fill: var(--text); font-size: 13px; }
.vm-chart .lbl-m { fill: var(--text-dim); font-size: 12px; }
.vm-chart .val { fill: var(--text); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vm-chart .grid { stroke: var(--vm-grid); stroke-width: 1; }
.vm-chart .zero,
.vm-chart .conn { stroke: var(--vm-axis); stroke-width: 1; }
.vm-chart .xhair { stroke: var(--text-soft); stroke-width: 1; opacity: 0.55; }
.vm-chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.vm-chart .area { opacity: 0.12; }
.vm-chart .ring { stroke: var(--vm-surface); stroke-width: 2; }
.vm-chart .mk-line { stroke: var(--text-soft); stroke-width: 1; opacity: 0.6; }
.vm-chart .hit { fill: transparent; cursor: crosshair; outline: none; }
.vm-chart .bar:hover,
.vm-chart .bar:focus { opacity: 0.82; outline: none; }
.vm-legend { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; color: var(--text-soft); font-size: 0.82rem; }
.vm-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.vm-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.vm-legend i.ln { width: 16px; height: 2px; border-radius: 2px; }

/* Tables */
.vm-tbl { min-width: 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 1rem; }
.vm-page table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.vm-page th,
.vm-page td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vm-page th:first-child,
.vm-page td:first-child { text-align: left; }
.vm-page thead th { background: var(--vm-surface-2); color: var(--text-dim); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.vm-page tbody tr:last-child td { border-bottom: 0; }
.vm-page tr.total td { border-top: 1px solid var(--line-strong); font-weight: 600; }
.vm-page tr.subtle td { color: var(--text-soft); }
.vm-page td .num { max-width: 120px; height: 30px; margin-left: auto; }
.vm-page th.wrap,
.vm-page td.wrap { white-space: normal; }
.vm-tv > summary { width: max-content; color: var(--vm-input); font-size: 0.86rem; cursor: pointer; }
.vm-tv[open] > summary { margin-bottom: 0.6rem; }

/* Inline fields */
.vm-inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; }
.vm-inline .field { grid-template-columns: minmax(0, 1fr) 140px; }

/* Verdict and flags */
.vm-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; }
.vm-verdict p { flex: 1; min-width: 240px; margin: 0; color: var(--text-soft); font-size: 0.92rem; }
.vm-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; }
.vm-pill.good { background: var(--good-bg); color: var(--good-ink); }
.vm-pill.warning { background: var(--warning-bg); color: var(--warning-ink); }
.vm-pill.critical { background: var(--critical-bg); color: var(--critical-ink); }
.vm-flags { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.vm-flags li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 0.5rem; align-items: start; font-size: 0.9rem; }
.vm-flags li svg { margin-top: 2px; }
.vm-flags .t-good { color: var(--good-ink); }
.vm-flags .t-warning { color: var(--warning-ink); }
.vm-flags .t-serious { color: var(--serious-ink); }
.vm-flags .t-critical { color: var(--critical-ink); }

/* Build-up */
.vm-build-out { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.vm-build-out .big { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.01em; }
.vm-build-out .lab { color: var(--text-dim); font-size: 0.78rem; }
.vm-build-out .warn { color: var(--warning-ink); font-size: 0.86rem; }

/* Evidence */
.vm-page .ev td { vertical-align: top; }
.vm-page .ev td.fig { color: var(--text); font-weight: 600; }
.vm-page .ev td.what { min-width: 280px; color: var(--text-soft); text-align: left; white-space: normal; }
.vm-page .ev td.src { min-width: 170px; font-size: 0.82rem; text-align: left; white-space: normal; }
.vm-page .ev td.src span { display: block; color: var(--text-dim); }
.vm-page .ev a { color: var(--vm-input); text-decoration: underline; text-underline-offset: 0.2em; }
.vm-page .ev tr.grp td { background: var(--vm-surface-2); color: var(--text-dim); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.vm-page .ev tr[data-reference-number] { scroll-margin-top: 7rem; }
.vm-page .ev td.src .vm-reference-number { display: inline; color: var(--vm-input); font-weight: 600; }
.vm-page .ev tr:target td { background: var(--vm-input-bg); border-block: 2px solid var(--vm-input); }
.vm-page .ev tr:target td:first-child { box-shadow: inset 4px 0 var(--vm-input); }
.vm-page .vm-cite { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; padding: 0 3px; border-radius: 4px; color: var(--vm-input); font-size: 0.8rem; font-weight: 600; text-decoration: none; vertical-align: baseline; }
.vm-page .vm-cite:hover, .vm-page .vm-cite:focus-visible { background: var(--vm-input-bg); text-decoration: underline; text-underline-offset: 3px; }
.vm-reference-tip { position: fixed; z-index: 65; width: min(320px, calc(100vw - 16px)); max-height: calc(100vh - 16px); overflow: auto; padding: 12px 14px; border: 1px solid var(--vm-input-line); border-radius: 10px; background: var(--vm-surface); color: var(--text); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2); font-size: 0.82rem; line-height: 1.45; }
.vm-reference-tip strong { display: block; font-weight: 600; }
.vm-reference-tip p { margin: 0.5rem 0; color: var(--text-soft); }
.vm-reference-tip > span { display: block; color: var(--vm-input); font-size: 0.78rem; }
@media (max-width: 640px) {
  .vm-page .ev, .vm-page .ev tbody, .vm-page .ev tr, .vm-page .ev td { display: block; width: 100%; }
  .vm-page .ev thead { display: none; }
  .vm-page .ev td.what, .vm-page .ev td.src { min-width: 0; }
  .vm-page .ev td { border-bottom: 0; }
  .vm-page .ev td.src { border-bottom: 1px solid var(--line); }
  .vm-page .ev tr:target { background: var(--vm-input-bg); outline: 2px solid var(--vm-input); outline-offset: -2px; box-shadow: inset 4px 0 var(--vm-input); }
  .vm-page .ev tr:target td { background: transparent; border-block: 0; box-shadow: none; }
}
.vm-list { display: grid; gap: 0.4rem; max-width: 52rem; margin: 0; padding-left: 1.1rem; color: var(--text-soft); font-size: 0.9rem; }
.vm-list b { color: var(--text); font-weight: 600; }

/* Closing call to action */
.vm-cta { display: grid; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.5rem, 4vw, 2.75rem); border: 1px solid var(--line); border-radius: 1.5rem; background: var(--vm-surface); }
.vm-cta h2 { margin: 0; max-width: 28ch; font-family: var(--sans); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; line-height: 1.05; text-wrap: balance; }
.vm-cta p { margin: 0; max-width: 44rem; color: var(--text-soft); }
.vm-cta .button { justify-self: start; }

/* Tooltip, toast, copy fallback */
.vm-tip { position: fixed; z-index: 60; min-width: 170px; max-width: 280px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--vm-surface); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28); font-size: 12.5px; pointer-events: none; }
.tip-title { margin-bottom: 4px; color: var(--text-dim); }
.tip-row { display: flex; align-items: center; gap: 8px; line-height: 1.6; }
.tip-row strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.tip-row span { color: var(--text-soft); }
.tip-key { display: inline-block; flex: none; width: 12px; height: 2px; border-radius: 2px; }
.vm-toast { position: fixed; bottom: 20px; left: 50%; z-index: 70; padding: 8px 14px; border-radius: 10px; background: var(--text); color: var(--bg); font-size: 0.86rem; opacity: 0; pointer-events: none; transform: translateX(-50%); transition: opacity 0.2s; }
.vm-toast.on { opacity: 1; }
.vm-copybox { position: fixed; inset: auto 16px 16px 16px; z-index: 80; display: grid; gap: 8px; max-width: 720px; margin: 0 auto; padding: 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--vm-surface); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); }
.vm-copybox textarea { width: 100%; height: 180px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--vm-surface-2); color: var(--text); font: 12.5px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
.vm-copybox .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text-soft); font-size: 0.86rem; }
@media (prefers-reduced-motion: reduce) { .vm-page * { transition: none !important; } }
