/* App shell chrome. Tools style their own panel; this owns the frame. */
.rv-app{display:grid;grid-template-columns:236px 1fr;min-height:100vh}
.rv-nav{background:var(--d1);padding:22px 14px;display:flex;flex-direction:column;gap:2px;position:relative}
.rv-mark{display:inline-flex;align-items:baseline;font-family:var(--font-mark);font-size:21px;
  line-height:1;color:#fff;text-decoration:none;padding:0 10px 20px;letter-spacing:-.01em}
.rv-mark svg{width:.72em;height:.72em;margin:0 .02em}
.rv-navitem{display:block;padding:9px 10px;border-radius:var(--radius-control);
  text-decoration:none;color:var(--d5);transition:background .12s,color .12s}
.rv-navitem:hover{background:rgba(255,255,255,.05);color:#fff}
.rv-navitem.on{background:var(--acc);color:#fff}
.rv-navitem.soon{opacity:.45;pointer-events:none}
.rv-navlabel{display:block;font-size:14.5px;font-weight:500}
.rv-navmod{display:block;font-size:11px;opacity:.72;margin-top:1px;font-variant-numeric:tabular-nums}
.rv-lapsed{margin-top:auto;background:var(--warn-soft);color:var(--warn);
  border-radius:var(--radius-card);padding:12px;font-size:12.5px;font-weight:500;line-height:1.5}
.rv-lapsed span{display:block;font-weight:400;margin-top:4px}
.rv-group{font-size:10.5px;letter-spacing:1.4px;text-transform:uppercase;color:var(--d4);
  padding:14px 10px 6px;font-weight:500}
.rv-sys{margin:0}
.rv-sys summary{list-style:none;cursor:pointer}
.rv-sys summary::-webkit-details-marker{display:none}
/* 2026-10-04: a numbered badge, a light purple chevron that turns, and progress */
.rv-sysrow{display:flex;align-items:flex-start;gap:10px;position:relative}
.rv-sysb{flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;margin-top:1px;
  font-size:11.5px;font-weight:600;color:var(--d-hi);background:rgba(165,180,252,.12);border:1px solid rgba(165,180,252,.35)}
.rv-syst{flex:1;min-width:0}
.rv-chev{flex:none;width:15px;height:15px;margin-top:4px;fill:none;stroke:var(--d-hi);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease}
.rv-sys[open] .rv-chev{transform:rotate(90deg)}
.rv-sysrow:hover .rv-sysb{background:rgba(165,180,252,.22)}
.rv-sysbar{display:block;height:3px;border-radius:2px;background:rgba(255,255,255,.08);margin-top:6px;overflow:hidden}
.rv-sysbar i{display:block;height:100%;background:var(--d-hi);border-radius:2px}
.rv-sys.rv-active>.rv-sysrow{background:rgba(165,180,252,.07);color:#fff}
.rv-sys.rv-active>.rv-sysrow::before{content:'';position:absolute;left:-14px;top:6px;bottom:6px;width:3px;border-radius:0 3px 3px 0;background:var(--d-hi)}
.rv-sys.rv-active .rv-sysb{background:var(--d-hi);color:var(--d1);border-color:var(--d-hi)}
.rv-ok{color:var(--d-hi);font-weight:600}
.rv-mod.on .rv-ok{color:#fff}
.rv-vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(prefers-reduced-motion:reduce){ .rv-chev{transition:none} }
.rv-mod{display:flex;gap:8px;align-items:baseline;padding:6px 10px 6px 42px;font-size:13px;position:relative}
.rv-modn{font-variant-numeric:tabular-nums;color:var(--d4);font-size:11.5px;flex:none;width:18px}
.rv-mod.on .rv-modn{color:#fff;opacity:.8}
.rv-modt{line-height:1.3}
.rv-main{background:var(--page);min-width:0}
@media(max-width:820px){
  .rv-app{grid-template-columns:1fr}
  /* ⚠️ min-width:0 is load-bearing. A grid item defaults to min-width:auto,
     so without it the nav sizes to its content instead of to the column and
     the whole PAGE scrolls sideways rather than the nav. Found 2026-09-13 when
     the Execution Score came into the shell — its nav is the longest in the
     product, so it was the first page wide enough to expose it. */
  .rv-nav{flex-direction:row;overflow-x:auto;overscroll-behavior-x:contain;min-width:0;
    padding:12px;align-items:center}
  .rv-mark{padding:2px 14px 2px 6px}   /* 2026-10-29: a 24px tap height on a phone */
  .rv-lapsed{display:none}
  .rv-group{display:none}
  .rv-sys{display:none}
  .rv-sys.rv-active{display:block}
  .rv-sys.rv-active summary{display:none}
  .rv-sys.rv-active .rv-mod:not(.on){display:none}
  .rv-mod{padding:9px 10px;white-space:nowrap}
}

/* ---- setup (2026-10-09) ------------------------------------------------
   The nav entry above the course, and the one tag every tool uses for a
   value it took from setup (rule 35: every filled value says so). */
.rv-setup{margin:10px 0 4px;border:1px solid rgba(165,180,252,.35)}
.rv-setup.rv-done{border-color:transparent}
.rv-setup.on{border-color:var(--acc)}
.fromsetup{display:inline-block;white-space:nowrap;font-size:10.5px;font-weight:600;letter-spacing:.2px;line-height:1.5;
  color:var(--acc);background:var(--acc-soft);border-radius:4px;padding:0 6px;vertical-align:1px;text-decoration:none}
a.fromsetup:hover{text-decoration:underline}
@media(max-width:820px){ .rv-setup{margin:0;white-space:nowrap} .rv-setup:not(.on){display:none} }

/* ---- AI in this module (2026-10-10) -------------------------------------
   One card per module, at the end of the instrument beat. Glyph and word on
   both lines (rule 4). */
.rv-aicard{margin-top:22px;max-width:680px;background:var(--paper);border:1px solid var(--ink-100);border-radius:var(--radius-card);
  padding:14px 18px 12px;font-size:14px;color:var(--ink-600);line-height:1.55}
.rv-aicard .rv-aik{font-size:11px;letter-spacing:1.4px;text-transform:uppercase;color:var(--acc);font-weight:600;margin-bottom:6px}
.rv-aicard p{margin:0 0 6px;padding-left:20px;position:relative}
.rv-aicard p b{color:var(--ink-900);font-weight:600}
.rv-aig{position:absolute;left:0;top:1px;font-size:11px;color:var(--ok)}
.rv-aig.no{color:var(--bad)}
.rv-aicard a{font-size:13px;color:var(--acc);text-decoration:none}
.rv-aicard a:hover{text-decoration:underline}

/* ---- the particle field in a module (2026-10-10) -------------------------
   /shared/units.js draws; this frames it. The same dark field as the
   homepage calculator's, so a deal or a coin looks the same everywhere.
   Every particle is something real, and the legend says what (rule 4: a
   word beside every colour). */
.rv-field{position:relative;margin-top:16px;border-radius:8px;overflow:hidden;border:1px solid rgba(255,255,255,.07);
  background:radial-gradient(ellipse 70% 60% at 50% 46%,rgba(67,56,202,.22),transparent 72%),#0D1426}
.rv-field canvas{display:block;width:100%;height:170px}
.rv-field .rv-fl{position:absolute;left:12px;top:9px;right:12px;display:flex;flex-wrap:wrap;gap:4px 14px;font-size:11.5px;color:#B6C2D4;pointer-events:none}
.rv-field .rv-fl span{display:inline-flex;align-items:center;gap:6px}
.rv-field .rv-fl i{width:8px;height:8px;border-radius:50%;display:inline-block}
.rv-field .rv-fl i.real{background:#818CF8;box-shadow:0 0 8px #818CF8}
.rv-field .rv-fl i.phantom{border:1.5px solid #F98080;box-shadow:0 0 6px #F98080;width:9px;height:9px}
.rv-field .rv-fl i.lost{background:#64748B}
.rv-field .rv-fl i.won{background:#A5B4FC;box-shadow:0 0 8px #A5B4FC}
.rv-field .rv-fl i.still{background:#FBBF24;box-shadow:0 0 8px #FBBF24}
.rv-field .rv-fl i.fresh{background:#34D399;box-shadow:0 0 8px #34D399}
.rv-field .rv-fend{position:absolute;right:12px;top:9px;font-size:11px;color:#A5B4FC;font-weight:600;letter-spacing:.4px;text-transform:uppercase}
.rv-field .rv-fnote{position:absolute;left:12px;bottom:8px;font-size:12px;color:#C7D2E0;font-variant-numeric:tabular-nums}
.rv-field .rv-fnote b{color:#fff;font-weight:600}
.rv-field .rv-funit{position:absolute;right:12px;bottom:8px;font-size:11px;color:#8FA0B8}
@media(max-width:560px){.rv-field .rv-fend{display:none}.rv-field canvas{height:210px}.rv-field .rv-fl{font-size:11px}.rv-field .rv-fl .rv-fu{display:none}}

/* ---- the top-of-tool visual (added 2026-10-19). Dan, 18 Oct: "Anytime we
   can visualize the work being done, the better." One frame for every tool,
   lifted from the route map: a dark panel in the films' style, drawn in the
   browser from the leader's own entries, a short legend, and a strip naming
   the modules that build it. Built with RevOp.viz in shell.js. ---- */
.rv-viz{margin-top:22px;border-radius:var(--radius-card);overflow:hidden;
  background:radial-gradient(120% 140% at 0% 0%,#26215e 0%,#111735 55%,#0b1020 100%);color:#e6e8f5;padding:18px 18px 14px}
.rv-viz .vh{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.rv-viz .vh b{font-size:11px;letter-spacing:1.6px;text-transform:uppercase;color:#a5b4fc;font-weight:600}
.rv-viz .vh span{font-size:12px;color:#8f96c4}
.rv-viz .vbig{display:flex;gap:10px 26px;flex-wrap:wrap;margin:2px 0 6px;font-size:13px;color:#a9afd6}
.rv-viz .vbig b{display:block;font-size:22px;font-weight:500;color:#fff;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.rv-viz .vbig .ok b{color:#6ee7b7} .rv-viz .vbig .bad b{color:#fca5a5} .rv-viz .vbig .warn b{color:#fcd34d}
.rv-viz svg{display:block;width:100%;height:auto;overflow:visible}
.rv-viz .vseg{display:inline-flex;gap:4px;background:rgba(165,180,252,.1);border-radius:8px;padding:3px;flex-wrap:wrap;margin:2px 0 8px}
.rv-viz .vseg button{font:inherit;font-size:12.5px;border:0;background:none;color:#a9afd6;padding:5px 11px;border-radius:6px;cursor:pointer}
.rv-viz .vseg button[aria-pressed="true"]{background:rgba(165,180,252,.22);color:#fff}
.rv-viz .in{opacity:0;animation:rvvzin .55s ease forwards}
.rv-viz .ph{animation:rvvzph 2.6s ease-in-out infinite}
.rv-viz .pulse{animation:rvvzpulse 1.8s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
@keyframes rvvzin{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes rvvzph{0%,100%{opacity:.22}50%{opacity:.55}}
@keyframes rvvzpulse{0%,100%{opacity:.9;transform:scale(1)}50%{opacity:.35;transform:scale(1.35)}}
@media(prefers-reduced-motion:reduce){.rv-viz .in{animation:none;opacity:1}.rv-viz .ph,.rv-viz .pulse{animation:none}}
.rv-viz .vstrip{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;padding-top:12px;border-top:1px solid rgba(165,180,252,.18);font-size:12.5px;color:#a9afd6;align-items:center}
.rv-viz .vstrip a{display:inline-flex;gap:6px;align-items:center;text-decoration:none;color:#e6e8f5;background:rgba(165,180,252,.1);border:1px solid rgba(165,180,252,.22);border-radius:999px;padding:4px 11px}
.rv-viz .vstrip a:hover{border-color:#a5b4fc}
.rv-viz .vstrip a.done{border-color:rgba(52,211,153,.55);color:#bff3dc}
.rv-viz .vstrip a i{font-style:normal;color:#8f96c4}
.rv-viz .vstrip a.done i{color:#34d399}

/* ---- what it did, in a module's opening (rule 46, 21 Oct 2026) ----
   Written by scripts/turnarounds.mjs from shared/turnarounds.js. The film
   reads .didit .say from the page, the same way it reads the lessons. */
.didit{border:1px solid var(--ok);border-left-width:4px;border-radius:var(--radius-card);
  background:var(--ok-soft);padding:16px 20px;margin:22px 0 6px;max-width:640px}
.didit .didk{font-size:11px;letter-spacing:1.5px;text-transform:uppercase;font-weight:600;color:var(--ok);margin-bottom:6px}
.didit .say{margin:0;font-size:16.5px;line-height:1.55;color:var(--ink-900)}
.didit .src{margin:8px 0 0;font-size:13px;color:var(--ink-600)}

/* ---- the result callout under a module tool (Dan, 22 Oct) ----
   The good outcome, big, in the colour that means it worked. RevOp.anchor() in shell.js. */
.anchor{display:flex;align-items:center;gap:18px;margin:16px 0 4px;padding:16px 20px;max-width:640px;
  border:1px solid var(--ok);border-left-width:4px;border-radius:var(--radius-card);background:var(--ok-soft)}
.anchor[hidden]{display:none}
.anchor b{flex:none;font-size:44px;line-height:1;font-weight:600;color:var(--ok);font-variant-numeric:tabular-nums;min-width:1.4em;text-align:center}
.anchor strong{display:block;font-size:20px;line-height:1.3;color:var(--ink-900);font-weight:600;letter-spacing:-.01em}
.anchor span{display:block;font-size:13.5px;color:var(--ink-600);margin-top:4px}
.anchor.word b{font-size:26px;min-width:0;white-space:nowrap}
/* a phone: the number above the words, never squeezing them */
@media(max-width:560px){.anchor{flex-direction:column;align-items:flex-start;gap:6px;padding:14px 16px}.anchor b,.anchor.word b{font-size:32px;min-width:0;text-align:left}.anchor strong{font-size:17px}}

/* the chooser's verdict mark (Dan, 27 Oct): red triangle for a wrong pick,
   green dot for the right one. --bad is the darker, legible red. */
.vmark{font-weight:600;white-space:nowrap}
.vmark.no{color:var(--bad)}
.vmark.yes{color:var(--ok)}

/* ---- the spine card (2026-10-29) ----------------------------------------
   End of beat six: what this module catches, and why the next is next. */
.rv-spine{margin-top:28px;max-width:680px;border-radius:var(--radius-card);overflow:hidden;border:1px solid var(--ink-100);background:var(--paper)}
.rv-sprow{padding:14px 18px 14px;font-size:15px;line-height:1.55;color:var(--ink-600)}
.rv-sprow p{margin:0}
.rv-sprow + .rv-sprow{border-top:1px solid var(--ink-100)}
.rv-spk{font-size:11px;letter-spacing:1.4px;text-transform:uppercase;font-weight:600;color:var(--acc);margin-bottom:5px}
.rv-sprow:first-child p{color:var(--ink-900);font-weight:500}
.rv-sprow.next{background:#0F1A2A;color:#CBD5E1}
.rv-sprow.next .rv-spk{color:#A5B4FC}
.rv-sprow.next.sys{background:linear-gradient(160deg,#1E1B4B,#312E81)}
.rv-sprow.next a{display:inline-block;margin-top:8px;color:#fff;font-weight:600;font-size:14.5px;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.35)}
.rv-sprow.next a:hover{border-bottom-color:#fff}
.rv-sprow.next p a{display:inline;margin:0;font-weight:500;font-size:inherit}

/* 2026-10-30 · your path (Dan): a reading from setup, never a lock */
.rv-pathtag{display:inline-block;margin-left:6px;padding:0 6px;border-radius:999px;font-size:10.5px;font-weight:500;letter-spacing:.2px;line-height:1.6;border:1px solid rgba(255,255,255,.22);color:var(--d5);vertical-align:1px}
.rv-mod.rv-later .rv-modt{opacity:.62}
.rv-path{margin:16px 0 0;max-width:720px;padding:10px 14px;border-radius:var(--radius-control);background:var(--paper);border:1px solid var(--ink-100);font-size:14px;line-height:1.5;color:var(--ink-600)}
.rv-path .rv-pathk{display:inline-block;margin-right:4px;padding:1px 8px;border-radius:999px;font-size:12px;font-weight:600;background:var(--acc-soft);color:var(--acc)}
.rv-path.rv-path-later .rv-pathk{background:var(--ink-100);color:var(--ink-600)}
.rv-path a{color:var(--acc);white-space:nowrap}
