/* Release v3 tokens + component styles (20 Nov 2026, design brief section 7, Order_Desk_Release_v3_Addendum.md).
   Built on app.css (paper ground, ink, Instrument Serif titles, teal accent): one visual language, prefixed --rv3-.
   Fixed colour meanings (never reuse them for anything else): reels/allocation amber, PE teal, slitting green,
   sheeting indigo, dispatch slate; tag words GIVEN / WORKED OUT / DEFAULT / MISSING / DECIDE.
   PE teal is shifted from the brief's #0e776d to #0b6b80: #0e776d sat on top of the app accent #1D7A6C (buttons),
   so the two could not be told apart side by side. "-text" variants are darker shades of the same hue, used only
   where the colour is small text, so every word passes AA (4.5:1); the brief's colour stays on graphics and borders.
   Light theme only (brief 7.1): .rv3 sets its own light colours even when the app is in dark mode. */

:root {
  /* ground, ink, lines (from app.css) */
  --rv3-ground: #F4F5F1; --rv3-panel: #FBFBF9; --rv3-card: #FFFFFF; --rv3-fill: #EEF0EA; --rv3-line: #E6E8E3;
  --rv3-ink: #1A1F24; --rv3-ink-2: #4B5560; --rv3-muted: #5F6770; --rv3-faint: #8A929B;
  --rv3-acc: #1D7A6C; --rv3-acc-ink: #FFFFFF; --rv3-acc-soft: #E3F1EC; --rv3-acc-text: #0F5A4E;
  /* state (from app.css): green fine, amber check, red must fix */
  --rv3-ok: #2E7D4F; --rv3-ok-soft: #E3F2E8; --rv3-warn: #A06A12; --rv3-warn-soft: #F7ECD8;
  --rv3-bad: #B4433A; --rv3-bad-soft: #F8E6E3; --rv3-renuka: #2B5C8A; --rv3-renuka-soft: #E8EFF6;

  /* processes (fixed meanings) */
  --rv3-alloc: #a8741a; --rv3-alloc-soft: #fbf0db; --rv3-alloc-mid: #e8c98c; --rv3-alloc-text: #8a5e12;
  --rv3-pe: #0b6b80;    --rv3-pe-soft: #ddeff3;    --rv3-pe-mid: #8cc6d3;    --rv3-pe-text: #0b6b80;
  --rv3-slit: #2f7d3b;  --rv3-slit-soft: #e4f2e6;  --rv3-slit-mid: #9fcfa7;  --rv3-slit-text: #276b33;
  --rv3-sheet: #4943b5; --rv3-sheet-soft: #ebeafb; --rv3-sheet-mid: #b3b0ec; --rv3-sheet-text: #4943b5;
  --rv3-out: #465061;   --rv3-out-soft: #e9edf2;   --rv3-out-mid: #b4bccb;   --rv3-out-text: #465061;
  --rv3-so: #2B5C8A;    --rv3-so-soft: #E8EFF6;    --rv3-so-mid: #a9c1d9;    --rv3-so-text: #2B5C8A;

  /* field tags (fixed meanings) */
  --rv3-given: #2b8049; --rv3-derived: #2c5fb0; --rv3-default: #7652bd; --rv3-missing: #c43a3a;
  --rv3-decide: #bd6408; --rv3-decide-text: #9a5106; --rv3-decide-soft: #fdf1e4; --rv3-missing-soft: #fbeaea;

  /* code anatomy neutral tints (not process colours) */
  --rv3-seg-mill: #efe9dd; --rv3-seg-qual: #e6ebee; --rv3-seg-gsm: #ecebe4; --rv3-seg-size: #f2eee6;

  /* type, space, shape, motion */
  --rv3-sans: "Instrument Sans", system-ui, sans-serif;
  --rv3-serif: "Instrument Serif", Georgia, serif;
  --rv3-s1: 8px; --rv3-s2: 16px; --rv3-s3: 24px; --rv3-s4: 32px; --rv3-s5: 40px; --rv3-s6: 48px;
  --rv3-radius: 12px; --rv3-radius-sm: 8px; --rv3-max: 1180px;
  --rv3-shadow: 0 1px 2px rgba(26,31,36,.05), 0 8px 24px rgba(26,31,36,.06);
  --rv3-ease: cubic-bezier(.2,.7,.2,1); --rv3-fast: 150ms; --rv3-med: 200ms; --rv3-slow: 250ms;
}

/* ---------- base ---------- */
.rv3 { color-scheme: light; color: var(--rv3-ink); font-family: var(--rv3-sans); font-size: 14px; line-height: 1.45;
  font-variant-numeric: tabular-nums; }
.rv3 *, .rv3 *::before, .rv3 *::after { box-sizing: border-box; }
.rv3 .num { font-variant-numeric: tabular-nums; }
.rv3-muted { color: var(--rv3-muted); }
.rv3-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rv3 svg text { font-family: var(--rv3-sans); font-variant-numeric: tabular-nums; }
.rv3-ico { display: inline-block; flex: none; vertical-align: -0.2em; }

/* ---------- buttons ---------- */
.rv3-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 10px; border: 1px solid var(--rv3-line); background: var(--rv3-card); color: var(--rv3-ink);
  font: 500 14px/1 var(--rv3-sans); cursor: pointer; transition: border-color var(--rv3-fast) var(--rv3-ease), background var(--rv3-fast) var(--rv3-ease); }
.rv3-btn:hover { border-color: var(--rv3-faint); }
.rv3-btn:focus-visible { outline: 2px solid var(--rv3-acc); outline-offset: 2px; }
.rv3-btn--primary { background: var(--rv3-acc); border-color: var(--rv3-acc); color: var(--rv3-acc-ink); min-height: 48px; padding: 0 24px; font-weight: 600; }
.rv3-btn--primary:hover { background: var(--rv3-acc-text); border-color: var(--rv3-acc-text); }
.rv3-btn--quiet { border-color: transparent; background: none; color: var(--rv3-acc-text); padding: 0 8px; }
.rv3-btn--quiet:hover { background: var(--rv3-fill); border-color: transparent; }
.rv3-btn--small { min-height: 32px; padding: 0 10px; font-size: 13px; border-radius: 8px; }

/* ---------- tag ---------- */
.rv3-tag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: 4px;
  border: 1px solid currentColor; background: var(--rv3-card); font: 600 10.5px/1 var(--rv3-sans); letter-spacing: .06em;
  text-transform: uppercase; white-space: nowrap; flex: none; }
.rv3-tag--given { color: var(--rv3-given); }
.rv3-tag--derived { color: var(--rv3-derived); }
.rv3-tag--default { color: var(--rv3-default); }
.rv3-tag--missing { color: var(--rv3-missing); background: var(--rv3-missing-soft); }
.rv3-tag--decide { color: var(--rv3-decide-text); border-color: var(--rv3-decide); background: var(--rv3-decide-soft); }

/* ---------- reel end ---------- */
.rv3-reel { margin: 0; display: inline-flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.rv3-reel svg { display: block; overflow: visible; }
.rv3-reel figcaption { text-align: center; font-size: 13px; line-height: 1.35; }
.rv3-reel .rv3-reel__id { font-weight: 600; font-size: 14px; }
.rv3-loc { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: var(--rv3-fill);
  border: 1px solid var(--rv3-line); font-size: 12px; font-weight: 600; color: var(--rv3-ink-2); vertical-align: 1px; }
.rv3-dotword { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; }
.rv3-dotword i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.rv3-dotword--transit { color: var(--rv3-warn); } .rv3-dotword--transit i { background: var(--rv3-warn); }
.rv3-dotword--allocated { color: var(--rv3-ink-2); } .rv3-dotword--allocated i { background: var(--rv3-faint); }

/* ---------- flow ribbon ---------- */
.rv3-ribbon { width: 100%; }
.rv3-ribbon svg { display: block; width: 100%; height: auto; overflow: visible; }
.rv3-ribbon--draw.is-h svg { animation: rv3-draw-h 500ms var(--rv3-ease) both; }
.rv3-ribbon--draw.is-v svg { animation: rv3-draw-v 500ms var(--rv3-ease) both; }
@keyframes rv3-draw-h { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rv3-draw-v { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- code anatomy ---------- */
.rv3-code { display: inline-flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 3px; }
.rv3-code__seg { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 40px; }
.rv3-code__chars { font: 600 20px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; text-align: center;
  padding: 8px 8px 6px; border-radius: 6px; border-bottom: 3px solid var(--seg-ink, var(--rv3-ink-2));
  background: var(--seg-bg, var(--rv3-fill)); color: var(--rv3-ink); }
.rv3-code__cap { font-size: 12px; line-height: 1.25; color: var(--rv3-muted); max-width: 128px; text-align: center; padding: 0 4px; }
.rv3-code__cap b { color: var(--rv3-ink-2); font-weight: 600; }
.rv3-code--small .rv3-code__chars { font-size: 15px; padding: 6px 6px 4px; }
.rv3-new { align-self: center; margin-left: 4px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--rv3-ink);
  color: #fff; font: 600 11px/22px var(--rv3-sans); letter-spacing: .04em; }
.rv3-code__warn { flex-basis: 100%; font-size: 12px; color: var(--rv3-warn); }

/* ---------- width bar, PE cross-section, sheet stack ---------- */
.rv3-widthbar svg, .rv3-pecross svg { display: block; width: 100%; height: auto; overflow: visible; }
.rv3-widthbar figcaption, .rv3-pecross figcaption { font-size: 13px; color: var(--rv3-muted); margin-top: 8px; }
.rv3-widthbar, .rv3-pecross, .rv3-sheetstack { margin: 0; }
.rv3-pecross { max-width: 380px; }
.rv3-pecross__sum { font-size: 14px; color: var(--rv3-ink); font-weight: 600; margin-top: 8px; }
.rv3-sheetstack { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px; }
.rv3-sheetstack svg { display: block; overflow: visible; }
.rv3-sheetstack dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: 4px 16px; font-size: 13px; align-self: center; }
.rv3-sheetstack dt { color: var(--rv3-muted); }
.rv3-sheetstack dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- stamp ---------- */
.rv3-stamp-wrap { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rv3-stamp { --ink: var(--rv3-so); display: inline-flex; flex-direction: column; gap: 2px; padding: 6px 12px 8px;
  border: 2px solid var(--ink); border-radius: 6px; color: var(--ink); background: var(--rv3-card);
  box-shadow: inset 0 0 0 2px var(--rv3-card), inset 0 0 0 3px var(--ink); transform: rotate(-3deg); }
.rv3-stamp__what { font: 600 10.5px/1.2 var(--rv3-sans); letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.rv3-stamp__no { font: 700 18px/1.1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .02em; white-space: nowrap; }
.rv3-stamp--land { animation: rv3-stamp 250ms var(--rv3-ease) both; }
@keyframes rv3-stamp { from { transform: rotate(-3deg) scale(1.35); opacity: 0; } to { transform: rotate(-3deg) scale(1); opacity: 1; } }
.rv3-copy-note { font-size: 12px; color: var(--rv3-muted); }
.rv3-copy-note.is-bad { color: var(--rv3-bad); }

/* ---------- release card ---------- */
.rv3-card { --p: var(--rv3-ink-2); --p-soft: var(--rv3-fill); background: var(--rv3-card); border: 1px solid var(--rv3-line);
  border-radius: var(--rv3-radius); box-shadow: var(--rv3-shadow); overflow: hidden; }
.rv3-card__head { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--rv3-line); }
.rv3-card__badge { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--p-soft); color: var(--p); flex: none; }
.rv3-card__title { font-size: 17px; font-weight: 600; margin: 0; line-height: 1.25; }
.rv3-card__sub { font-size: 13px; color: var(--rv3-muted); }
.rv3-card__body { padding: 24px; display: grid; gap: 24px; }
.rv3-card__graphic { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.rv3-card__foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 16px 24px; border-top: 1px solid var(--rv3-line); background: var(--rv3-panel); }
.rv3-card__foot .rv3-btn--primary { margin-left: auto; }
.rv3-card__next { font-size: 13px; color: var(--rv3-ink-2); display: flex; align-items: center; gap: 8px; }
.rv3-card.is-collapsed .rv3-card__head { border-bottom: 0; }
.rv3-card.is-held { border-color: var(--rv3-faint); }

.rv3-p-alloc { --p: var(--rv3-alloc); --p-soft: var(--rv3-alloc-soft); --p-text: var(--rv3-alloc-text); }
.rv3-p-pe { --p: var(--rv3-pe); --p-soft: var(--rv3-pe-soft); --p-text: var(--rv3-pe-text); }
.rv3-p-slit { --p: var(--rv3-slit); --p-soft: var(--rv3-slit-soft); --p-text: var(--rv3-slit-text); }
.rv3-p-sheet { --p: var(--rv3-sheet); --p-soft: var(--rv3-sheet-soft); --p-text: var(--rv3-sheet-text); }
.rv3-p-out { --p: var(--rv3-out); --p-soft: var(--rv3-out-soft); --p-text: var(--rv3-out-text); }
.rv3-p-so { --p: var(--rv3-so); --p-soft: var(--rv3-so-soft); --p-text: var(--rv3-so-text); }
.rv3-p-code { --p: var(--rv3-ink-2); --p-soft: var(--rv3-fill); --p-text: var(--rv3-ink-2); }

/* fields Renuka will get */
.rv3-fields { margin: 0; display: grid; grid-template-columns: minmax(120px, 180px) 1fr auto; border-top: 1px solid var(--rv3-line); }
.rv3-fields > div { display: contents; }
.rv3-fields dt, .rv3-fields dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--rv3-line); font-size: 14px; min-width: 0; }
.rv3-fields dt { color: var(--rv3-muted); padding-right: 16px; }
.rv3-fields dd { font-weight: 500; }
.rv3-fields dd.rv3-fields__tag { padding-left: 16px; text-align: right; }
.rv3-fields .is-missing dd { color: var(--rv3-missing); }

/* writing to Renuka */
.rv3-progress { flex: 1 1 280px; display: grid; gap: 8px; }
.rv3-progress__text { font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.rv3-progress__bar { height: 8px; border-radius: 999px; background: var(--rv3-fill); overflow: hidden; }
.rv3-progress__bar i { display: block; height: 100%; border-radius: 999px; background: var(--rv3-acc); transition: width var(--rv3-slow) var(--rv3-ease);
  background-image: linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,.35) 50%, rgba(255,255,255,0) 100%);
  background-size: 120px 100%; background-repeat: no-repeat; animation: rv3-sheen 1.4s linear infinite; }
@keyframes rv3-sheen { from { background-position: -120px 0; } to { background-position: 400px 0; } }
.rv3-progress__steps { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--rv3-muted); }
.rv3-progress__steps .is-done { color: var(--rv3-ok); }
.rv3-progress__steps .is-now { color: var(--rv3-ink); font-weight: 600; }

/* panels inside a card: failed, held, offline, by hand */
.rv3-panel { border-radius: 10px; padding: 16px; display: grid; gap: 8px; border: 1px solid; }
.rv3-panel__title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.rv3-panel p { margin: 0; font-size: 14px; }
.rv3-panel--bad { background: var(--rv3-bad-soft); border-color: #eac4bf; }
.rv3-panel--bad .rv3-panel__title { color: var(--rv3-bad); }
.rv3-panel--warn { background: var(--rv3-warn-soft); border-color: #ead7b2; }
.rv3-panel--warn .rv3-panel__title { color: var(--rv3-warn); }
.rv3-panel--quiet { background: var(--rv3-panel); border-color: var(--rv3-line); }
.rv3-hand { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 14px; }
.rv3-hand dt { color: var(--rv3-muted); }
.rv3-hand dd { margin: 0; font-weight: 600; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13.5px; word-break: break-word; }
.rv3-tick { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 600; cursor: pointer; }
.rv3-tick input { width: 20px; height: 20px; accent-color: var(--rv3-acc); }

/* skeleton (loading) */
.rv3-skel { background: var(--rv3-fill); border-radius: 6px; animation: rv3-pulse 1.2s ease-in-out infinite alternate; }
.rv3-skel--ring { border-radius: 50%; }
@keyframes rv3-pulse { from { opacity: .55; } to { opacity: 1; } }

/* empty */
.rv3-empty { display: grid; justify-items: start; gap: 8px; padding: 8px 0; }
.rv3-empty p { margin: 0; color: var(--rv3-muted); }

/* ---------- decide ---------- */
.rv3-decide { border: 1px solid var(--rv3-line); border-left: 4px solid var(--rv3-decide); border-radius: var(--rv3-radius); background: var(--rv3-card);
  box-shadow: var(--rv3-shadow); padding: 16px 24px 24px; display: grid; gap: 16px; }
.rv3-decide__q { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 16px; font-weight: 600; margin: 0; }
.rv3-decide__why { font-size: 13px; color: var(--rv3-muted); margin: -8px 0 0; }
.rv3-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.rv3-option { position: relative; text-align: left; border: 1px solid var(--rv3-line); border-radius: 10px; background: var(--rv3-card);
  padding: 16px; display: grid; gap: 8px; align-content: start; cursor: pointer; font: inherit; color: inherit;
  transition: border-color var(--rv3-fast) var(--rv3-ease), box-shadow var(--rv3-fast) var(--rv3-ease); }
.rv3-option:hover { border-color: var(--rv3-faint); }
.rv3-option:focus-visible { outline: 2px solid var(--rv3-acc); outline-offset: 2px; }
.rv3-option.is-picked { border-color: var(--rv3-acc); box-shadow: 0 0 0 1px var(--rv3-acc); }
.rv3-option.is-blocked { cursor: not-allowed; background: var(--rv3-panel); color: var(--rv3-muted); }
.rv3-option.is-blocked .rv3-option__art { filter: grayscale(1); opacity: .55; }
.rv3-option__art { display: flex; gap: 8px; align-items: flex-end; min-height: 96px; }
.rv3-option__head { font-weight: 600; font-size: 15px; }
.rv3-option__fig { font-size: 13px; color: var(--rv3-ink-2); }
.rv3-option__flag { justify-self: start; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.rv3-option__flag--suggested { background: var(--rv3-acc-soft); color: var(--rv3-acc-text); }
.rv3-option__flag--blocked { background: var(--rv3-fill); color: var(--rv3-ink-2); }
.rv3-option__no { font-size: 13px; color: var(--rv3-ink-2); }

/* ---------- missing chips ---------- */
.rv3-missing { display: grid; gap: 16px; }
.rv3-missing__row { display: grid; grid-template-columns: 176px 1fr; gap: 8px 16px; align-items: center; }
.rv3-missing__label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.rv3-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rv3-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--rv3-line); background: var(--rv3-card); font: 500 14px/1 var(--rv3-sans); color: var(--rv3-ink); cursor: pointer; }
.rv3-chip:hover { border-color: var(--rv3-acc); }
.rv3-chip.is-on { background: var(--rv3-acc); border-color: var(--rv3-acc); color: var(--rv3-acc-ink); }
.rv3-chip small { color: var(--rv3-muted); font-size: 12px; }
.rv3-chip.is-on small { color: rgba(255,255,255,.85); }
.rv3-chip--input { cursor: text; padding: 0 6px 0 14px; }
.rv3-chip--input input { width: 72px; border: 0; outline: 0; background: none; font: inherit; padding: 0; }

/* ---------- progress rail ---------- */
.rv3-rail { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rv3-rail__node { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 0 0 24px; }
.rv3-rail__node:last-child { padding-bottom: 0; }
.rv3-rail__node::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--rv3-line); }
.rv3-rail__node:last-child::before { display: none; }
.rv3-rail__node.is-done::before { background: var(--p); }
.rv3-rail__dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--rv3-line);
  background: var(--rv3-card); color: var(--rv3-faint); }
.rv3-rail__node.is-done .rv3-rail__dot { background: var(--p); border-color: var(--p); color: #fff; }
.rv3-rail__node.is-now .rv3-rail__dot { border-color: var(--p); color: var(--p); background: var(--p-soft); box-shadow: 0 0 0 4px var(--p-soft); }
.rv3-rail__label { font-weight: 600; font-size: 14px; line-height: 32px; }
.rv3-rail__node.is-todo .rv3-rail__label { color: var(--rv3-muted); font-weight: 500; }
.rv3-rail__meta { font-size: 13px; color: var(--rv3-muted); margin-top: -4px; }
.rv3-rail__no { font-size: 13px; line-height: 1.3; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--p-text, var(--p)); }
@media (max-width: 599px) {
  .rv3-rail { grid-auto-flow: column; grid-auto-columns: 1fr; overflow: hidden; }
  .rv3-rail__node { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 4px; padding: 0; }
  .rv3-rail__node::before { left: calc(50% + 16px); right: calc(-50% + 16px); top: 15px; bottom: auto; width: auto; height: 2px; }
  .rv3-rail__label { font-size: 11px; line-height: 1.2; font-weight: 600; }
  .rv3-rail .rv3-rail__meta, .rv3-rail .rv3-rail__no { display: none; }
  .rv3-rail__node.is-now .rv3-rail__label { color: var(--rv3-ink); }
}

/* ---------- gallery page (#release-gallery) ---------- */
.rv3g { background: var(--rv3-ground); }
.rv3g__inner { max-width: var(--rv3-max); margin: 0 auto; padding: 24px 0 64px; display: grid; gap: 48px; }
.rv3g__head h1 { font-family: var(--rv3-serif); font-weight: 400; font-size: 36px; line-height: 1.1; margin: 0 0 8px; letter-spacing: -.01em; }
.rv3g__head p { margin: 0; color: var(--rv3-muted); max-width: 720px; }
.rv3g__sec { display: grid; gap: 16px; }
.rv3g__sec > h2 { font-family: var(--rv3-serif); font-weight: 400; font-size: 26px; line-height: 1.15; margin: 0; }
.rv3g__sec > p { margin: -8px 0 0; color: var(--rv3-muted); font-size: 14px; max-width: 760px; }
.rv3g__box { background: var(--rv3-card); border: 1px solid var(--rv3-line); border-radius: var(--rv3-radius); padding: 24px; box-shadow: var(--rv3-shadow); min-width: 0; }
.rv3g__box > h3 { margin: 0 0 16px; font-size: 13px; font-weight: 600; color: var(--rv3-muted); letter-spacing: .04em; text-transform: uppercase; }
.rv3g__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; align-items: start; }
.rv3g__grid--wide { grid-template-columns: repeat(auto-fill, minmax(520px, 1fr)); }
.rv3g__grid--one { grid-template-columns: 1fr; }
.rv3g__row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; }
.rv3g__reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 24px 16px; align-items: end; justify-items: center; }
.rv3g__swatch { display: grid; gap: 4px; font-size: 12px; min-width: 120px; }
.rv3g__swatch i { display: block; height: 40px; border-radius: 8px; border: 1px solid rgba(0,0,0,.06); }
.rv3g__state { display: grid; gap: 8px; min-width: 0; }
.rv3g__state > h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--rv3-muted); letter-spacing: .04em; text-transform: uppercase; }
.rv3g__icon { display: grid; justify-items: center; gap: 8px; font-size: 12px; color: var(--rv3-muted); width: 80px; }
.rv3g__icon svg { color: var(--rv3-ink); }
.rv3g__boxfoot { margin: 8px -24px -24px; border-radius: 0 0 12px 12px; }
.rv3g__split { display: grid; grid-template-columns: 264px 1fr; gap: 32px; align-items: start; }
@media (max-width: 899px) { .rv3g__grid--wide { grid-template-columns: 1fr; } }
@media (max-width: 599px) {
  .rv3g__inner { padding: 16px 0 48px; gap: 40px; }
  .rv3g__head h1 { font-size: 30px; }
  .rv3g__box { padding: 16px; }
  .rv3g__boxfoot { margin: 8px -16px -16px; }
  .rv3-code__chars { font-size: 16px; padding: 6px 4px 4px; letter-spacing: .03em; }
  .rv3-code__cap { font-size: 11px; padding: 0 2px; }
  .rv3g__grid { grid-template-columns: 1fr; }
  .rv3g__split { grid-template-columns: 1fr; gap: 16px; }
  .rv3-card__head, .rv3-card__foot { padding: 12px 16px; }
  .rv3-card__body { padding: 16px; gap: 16px; }
  .rv3-card__foot .rv3-btn--primary { width: 100%; margin-left: 0; order: -1; }
  .rv3-fields { grid-template-columns: 1fr auto; }
  .rv3-fields dt { grid-column: 1 / -1; border-bottom: 0; padding-bottom: 0; }
  .rv3-decide { padding: 16px; }
  .rv3-missing__row { grid-template-columns: 1fr; }
}

/* motion: purposeful only, and none for people who ask for less */
@media (prefers-reduced-motion: reduce) {
  .rv3-ribbon--draw.is-h svg, .rv3-ribbon--draw.is-v svg, .rv3-stamp--land, .rv3-skel, .rv3-progress__bar i { animation: none !important; }
  .rv3 * { transition: none !important; }
}
.page.rv3g { padding: 0 24px; }
@media (max-width: 599px) { .page.rv3g { padding: 0 16px; } }
