/* The sandbox coach (coach.js): the use case picker, the ribbon along the bottom, the light on the button to press
   with its tip, the gold on the data a step is about, the person handoff and the finish card, over the ReconoSense
   prototype. The site's light tokens; IBM Plex from /sandbox/fonts.css. Every motion is slow on purpose (user,
   2026-11-09): the visitor reads each piece before the next one moves. */
.rsc {
  --c-paper: #f6f6f2; --c-white: #ffffff; --c-sunk: #eeeee9; --c-line: #e2e3df; --c-line2: #c9cbc5;
  --c-ink: #0e1620; --c-muted: #47525f; --c-subtle: #626c79; --c-teal: #17708f; --c-teal2: #0f5670; --c-tealsoft: #e3f0f4;
  --c-gold: #a5780f; --c-green: #2f7d59; --c-red: #b4433c;
  --c-shadow: 0 1px 2px rgba(14, 22, 32, .05), 0 18px 44px -18px rgba(14, 22, 32, .32);
  font-family: "IBM Plex Sans", system-ui, sans-serif; color: var(--c-ink); -webkit-font-smoothing: antialiased;
}
.rsc *, .rsc *::before, .rsc *::after { box-sizing: border-box; }
.rsc button { font: inherit; }
.rsc button:not(.rsc-btn) { color: inherit; }

/* ---- shared */
.rsc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--c-teal); border-radius: 8px; background: var(--c-teal); color: #fff; font-size: 15px; font-weight: 500;
  text-decoration: none; cursor: pointer; transition: background-color .15s, transform .1s;
}
.rsc-btn:hover { background: var(--c-teal2); }
.rsc-btn:active { transform: translateY(1px); }
.rsc-btn--ghost { background: var(--c-white); color: var(--c-ink); border-color: var(--c-line2); }
.rsc-btn--ghost:hover { background: var(--c-paper); }
.rsc-btn:focus-visible, .rsc-icon:focus-visible, .rsc-m:focus-visible, .rsc-pill:focus-visible, .rsc-show:focus-visible { outline: 2px solid var(--c-teal); outline-offset: 2px; }
.rsc-link { color: var(--c-teal); font-size: 14.5px; text-decoration: none; }
.rsc-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.rsc-av {
  display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
  color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .02em; box-shadow: 0 0 0 2px var(--c-white);
}
.rsc-stack { display: inline-flex; }
.rsc-stack .rsc-av + .rsc-av { margin-left: -6px; }
.rsc-veil { position: fixed; inset: 0; z-index: 9000; background: rgba(14, 22, 32, .38); backdrop-filter: blur(2px); animation: rsc-fade .4s ease-out both; }
@keyframes rsc-fade { from { opacity: 0; } }
@keyframes rsc-rise { from { opacity: 0; transform: translateY(10px); } }

/* ---- the picker */
.rsc-pick {
  position: fixed; z-index: 9001; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain;
  padding: 24px 28px 18px; border: 1px solid var(--c-line); border-radius: 16px; background: var(--c-white); box-shadow: var(--c-shadow);
  animation: rsc-pop .25s cubic-bezier(.2, .7, .1, 1) both;
}
@keyframes rsc-pop { from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)); } }
.rsc-kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 6px; font-size: 13.5px; color: var(--c-subtle); }
.rsc-btn--sm { min-height: 34px; padding: 0 14px; font-size: 14px; }
.rsc-pick h1 { margin: 0; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.1; font-weight: 500; letter-spacing: -.025em; }
.rsc-pick header > p:not(.rsc-kicker) { margin: 10px 0 0; max-width: 56ch; font-size: 15.5px; line-height: 1.5; color: var(--c-muted); }
.rsc-list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--c-line2); }
.rsc-list li { border-bottom: 1px solid var(--c-line); }
.rsc-m {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%;
  padding: 11px 8px; border: 0; border-radius: 10px; background: none; text-align: left; cursor: pointer; transition: background-color .15s;
}
.rsc-m:hover { background: var(--c-tealsoft); }
.rsc-m__n {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--c-line2);
  font-size: 14px; font-variant-numeric: tabular-nums; color: var(--c-subtle);
}
.rsc-m__n svg { width: 16px; height: 16px; fill: none; stroke: var(--c-green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rsc-m__body { display: grid; gap: 3px; min-width: 0; }
.rsc-m__body b { font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.rsc-m__body > span { font-size: 14.5px; line-height: 1.45; color: var(--c-muted); }
.rsc-m__meta { display: flex !important; align-items: center; gap: 10px; margin-top: 4px; font-size: 12.5px !important; color: var(--c-subtle) !important; }
.rsc-m__meta .rsc-av { width: 22px; height: 22px; font-size: 9px; }
.rsc-m__go {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px;
  background: var(--c-teal); color: #fff; font-size: 14px; font-weight: 500;
}
.rsc-pick footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.rsc-pick footer .rsc-btn { margin-right: auto; }

/* ---- the intro before each use case: what happens, the AI to watch for, who takes part */
.rsc-intro {
  position: fixed; z-index: 9001; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(600px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain;
  padding: 26px 30px 24px; border: 1px solid var(--c-line); border-radius: 16px; background: var(--c-white); box-shadow: var(--c-shadow);
  animation: rsc-pop .5s cubic-bezier(.2, .7, .1, 1) both;
}
.rsc-intro h1 { margin: 0; font-size: clamp(26px, 3.2vw, 32px); line-height: 1.1; font-weight: 500; letter-spacing: -.025em; }
.rsc-intro__what { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: var(--c-muted); }
.rsc-intro h2 { margin: 18px 0 0; font-size: 14px; font-weight: 600; color: #8f660b; }
.rsc-intro__ai { display: grid; gap: 8px; margin: 8px 0 0; padding: 12px 14px; list-style: none; border: 1px solid rgba(201, 154, 46, .45); border-radius: 12px; background: #fdf8ec; }
.rsc-intro__ai li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.rsc-intro__dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: #c49426; box-shadow: 0 0 0 3px rgba(196, 148, 38, .2); }
.rsc-intro__people { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; font-size: 14px; color: var(--c-muted); }
.rsc-intro__how { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--c-subtle); }
.rsc-intro .rsc-actions { margin-top: 20px; }
.rsc-intro .rsc-actions .rsc-btn { flex: 0 1 auto; min-width: 140px; }

/* the demo: what the sandbox holds back, and the way to it */
.rsc-demo {
  display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 14px 16px;
  border: 1px solid rgba(23, 112, 143, .3); border-radius: 12px; background: var(--c-tealsoft);
}
.rsc-demo div { display: grid; gap: 3px; min-width: 0; }
.rsc-demo b { font-size: 15.5px; font-weight: 600; }
.rsc-demo span { font-size: 14px; line-height: 1.45; color: var(--c-muted); }
.rsc-demo .rsc-btn { flex: none; }
.rsc-note { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--c-line); font-size: 12.5px; color: var(--c-subtle); text-align: center; }
.rsc-note a { color: var(--c-teal); }

/* the note on a held click: the guided use cases only, the demo for the rest */
.rsc-nudge {
  position: fixed; z-index: 9004; width: 330px; display: grid; gap: 8px; padding: 12px 40px 12px 14px; border-radius: 10px;
  background: #0e1620; color: #fff; font-size: 13.5px; line-height: 1.45; box-shadow: 0 16px 36px -14px rgba(14, 22, 32, .6);
  animation: rsc-rise .45s ease-out both; transition: opacity .6s;
}
.rsc-nudge__x {
  position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 6px; background: none; color: #fff; font: 18px/1 "IBM Plex Sans", system-ui, sans-serif; opacity: .75; cursor: pointer;
}
.rsc-nudge__x:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
.rsc-nudge__x:focus-visible { outline: 2px solid #8fd6ee; outline-offset: 1px; }
.rsc-nudge a { justify-self: start; color: #8fd6ee; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.rsc-nudge.is-out { opacity: 0; }

/* ---- the application above the ribbon: its pages, drawers and dialogs end where the ribbon begins, so the ribbon
   never covers anything the visitor needs (coach.js sets --rsc-rb to the ribbon's height) */
html.rsc-on body { padding-bottom: var(--rsc-rb, 0px); }
html.rsc-on .app { min-height: calc(100vh - var(--rsc-rb, 0px)); }
html.rsc-on .overlay, html.rsc-on .modal-root, html.rsc-on .cmdk-root, html.rsc-on .mobile-overlay, html.rsc-on .sidebar { bottom: var(--rsc-rb, 0px) !important; }
html.rsc-on .toast-root { bottom: calc(var(--rsc-rb, 0px) + 16px) !important; }
html.rsc-on .view-chat-fab { display: none !important; }

/* ---- the ribbon: the step and what it is about, then the data with its source, then who is acting and the step map */
.rsc-rib {
  position: fixed; z-index: 9001; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(250px, .7fr); gap: 0 28px; align-items: start;
  height: 212px; padding: 16px 28px calc(16px + env(safe-area-inset-bottom)); overflow: hidden;
  background: var(--c-white); border-top: 1px solid var(--c-line2); box-shadow: 0 -14px 34px -20px rgba(14, 22, 32, .3);
  animation: rsc-ribin .8s cubic-bezier(.2, .7, .1, 1) both;
}
@keyframes rsc-ribin { from { transform: translateY(100%); } }
.rsc-rib > div { min-width: 0; }
.rsc-rib__data { max-height: 180px; overflow: auto; overscroll-behavior: contain; }
.rsc-rib__step { max-height: 180px; overflow: hidden; }
.rsc-rib__kick { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; font-size: 13px; color: var(--c-subtle); font-variant-numeric: tabular-nums; }
.rsc-rib__kick b { color: var(--c-teal); font-weight: 600; }
.rsc-rib__demo { margin-left: auto; color: var(--c-teal); font-weight: 500; text-decoration: none; white-space: nowrap; }
.rsc-rib__demo:hover { text-decoration: underline; text-underline-offset: 3px; }
.rsc-rib h2 { margin: 6px 0 0; font-size: 21px; line-height: 1.25; font-weight: 500; letter-spacing: -.015em; }
.rsc-why { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--c-muted); }
.rsc-err { margin: 8px 0 0; font-size: 13.5px; color: var(--c-red); }
/* a new step turns the ribbon over slowly */
.rsc-rib.is-turn .rsc-rib__step { animation: rsc-turn .9s ease-out both; }
.rsc-rib.is-turn .rsc-rib__data { animation: rsc-turn .9s ease-out .25s both; }
@keyframes rsc-turn { from { opacity: 0; transform: translateY(8px); } }

/* the instruction: what to press (the tip by the button says it too), or Done once it is pressed */
.rsc-act { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 14px; border-radius: 10px;
  background: var(--c-teal); color: #fff; font-size: 15.5px; line-height: 1.3; transition: background-color .7s ease; }
.rsc-act b { font-weight: 600; color: #fff; }
.rsc-act small { display: block; font-size: 12px; opacity: .85; }
.rsc-act__i { position: relative; display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.rsc-act__i svg { width: 14px; height: 14px; fill: #fff; stroke: none; }
.rsc-act__i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); animation: rsc-beacon 2.8s ease-out infinite; }
.rsc-act.is-done { background: var(--c-green); }
.rsc-act.is-done .rsc-act__i svg { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rsc-act.is-done .rsc-act__i::after { display: none; }
.rsc-act.is-wait { justify-content: space-between; background: var(--c-paper); color: var(--c-subtle); }
/* what the ride is doing now: a scene, opening a screen, looking at an area, your call, someone else's step, done */
.rsc-act.is-phase, .rsc-act.is-nav { background: var(--c-paper); color: var(--c-muted); }
.rsc-act.is-phase .rsc-act__i, .rsc-act.is-nav .rsc-act__i { background: var(--c-sunk); }
.rsc-act.is-phase .rsc-act__i svg, .rsc-act.is-nav .rsc-act__i svg { fill: var(--c-subtle); }
.rsc-act.is-phase .rsc-act__i::after, .rsc-act.is-nav .rsc-act__i::after { border-color: rgba(98, 108, 121, .45); }
.rsc-act.is-look { background: #fdf3dc; color: var(--c-ink); }
.rsc-act.is-look .rsc-act__i { background: rgba(196, 148, 38, .25); }
.rsc-act.is-look .rsc-act__i svg { fill: #8f660b; }
.rsc-act.is-look .rsc-act__i::after { border-color: rgba(196, 148, 38, .6); }
.rsc-act.is-look small { color: #8f660b; opacity: 1; }
.rsc-act.is-auto { background: var(--c-tealsoft); color: var(--c-ink); }
.rsc-act.is-auto .rsc-act__i { background: none; }
.rsc-act.is-auto .rsc-act__i::after { display: none; }
.rsc-act.is-auto .rsc-av { box-shadow: none; }
.rsc-act.is-stuck { justify-content: space-between; background: var(--c-paper); color: var(--c-muted); }
.rsc-act.is-stuck .rsc-act__i::after { display: none; }
.rsc-act > span:last-of-type { min-width: 0; }
.rsc-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rsc-icon[data-act="pause"] svg path[d^="M8"] { fill: currentColor; stroke: none; }
.rsc-rib.is-paused .rsc-icon[data-act="pause"] { color: #fff; background: var(--c-teal); border-color: var(--c-teal); }

/* the data the step is about, with where it comes from */
.rsc-ctx { margin-top: 10px; padding: 10px 12px; border: 1px solid rgba(201, 154, 46, .45); border-radius: 10px; background: #fdf8ec; }
.rsc-src { margin: 0; font-size: 12.5px; font-weight: 600; color: #8f660b; }
.rsc-quote { margin: 6px 0 0; padding: 0 0 0 10px; border-left: 2px solid rgba(201, 154, 46, .6); font-size: 14px; line-height: 1.5; color: var(--c-ink); }
.rsc-quote mark { padding: 1px 3px; border-radius: 4px; background: rgba(232, 184, 74, .38); color: inherit; font-weight: 600; }
.rsc-read { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 8px 0 0; font-size: 13.5px; color: var(--c-muted); }
.rsc-read b { color: var(--c-ink); font-weight: 600; }
.rsc-read span { font-size: 12.5px; color: var(--c-subtle); }
.rsc-terms { display: grid; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
.rsc-terms li { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.rsc-terms li span { color: var(--c-subtle); font-variant-numeric: tabular-nums; text-align: right; }
.rsc-terms li.is-off span { color: var(--c-red); }
.rsc-terms--wide li { display: grid; grid-template-columns: 96px minmax(0, 1fr); }
.rsc-terms--wide li span { text-align: left; color: var(--c-ink); }
.rsc-task { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--c-ink); }
.rsc-recon li { align-items: flex-start; }
.rsc-recon li span { display: grid; gap: 1px; }
.rsc-recon em { font-style: normal; color: var(--c-ink); font-weight: 600; }
.rsc-recon i { font-style: normal; color: var(--c-red); font-size: 12.5px; }

/* who is acting, and the step map */
.rsc-rib__side { display: grid; align-content: start; gap: 10px; padding-left: 24px; border-left: 1px solid var(--c-line); }
.rsc-tools { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.rsc-tools__demo { margin-right: auto; color: var(--c-teal); font-size: 13.5px; font-weight: 500; text-decoration: none; }
.rsc-tools__demo:hover { text-decoration: underline; text-underline-offset: 3px; }
.rsc-icon {
  display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--c-line); border-radius: 8px;
  background: none; color: var(--c-muted); font-size: 18px; line-height: 1; cursor: pointer;
}
.rsc-icon:hover { color: var(--c-ink); border-color: var(--c-line2); }
.rsc-who { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--c-paper); font-size: 13.5px; }
.rsc-who > span:not(.rsc-av) { display: block; min-width: 0; line-height: 1.3; }
.rsc-who b { font-weight: 600; }
.rsc-who small { display: block; font-size: 12px; color: var(--c-subtle); }
.rsc-who.is-new { animation: rsc-person 2.4s ease-out both; }
@keyframes rsc-person { 0%, 40% { background: rgba(232, 184, 74, .32); } 100% { background: var(--c-paper); } }
.rsc-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin: 0; padding: 0; list-style: none; }
.rsc-steps li { display: grid; gap: 5px; min-width: 0; font-size: 11.5px; color: var(--c-subtle); }
.rsc-steps i { height: 4px; border-radius: 2px; background: var(--c-sunk); transition: background-color .9s ease; }
.rsc-steps .is-done i { background: var(--c-green); }
.rsc-steps .is-on i { background: var(--c-teal); }
.rsc-steps .is-on { color: var(--c-ink); font-weight: 500; }
.rsc-steps span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rsc-show { display: block; margin: 10px auto 0; padding: 6px; border: 0; background: none; color: var(--c-teal); font-size: 13.5px; cursor: pointer; }
.rsc-show:hover { text-decoration: underline; text-underline-offset: 3px; }
.rsc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rsc-actions .rsc-btn { flex: 1 1 auto; }

/* hidden details: the step and the instruction only */
.rsc-rib.is-min { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto; height: auto; }
.rsc-rib.is-min .rsc-why, .rsc-rib.is-min .rsc-ctx, .rsc-rib.is-min .rsc-who, .rsc-rib.is-min .rsc-steps, .rsc-rib.is-min .rsc-tools__demo { display: none; }
.rsc-rib.is-min h2 { font-size: 17px; }
.rsc-rib.is-min .rsc-rib__side { border-left: 0; padding-left: 0; }

/* ---- the ride's shadow: a soft dim around the area the ride is on (about a quarter of the old overlay), gliding from
   one area to the next; a teal ring and a pulsing beacon on a button to press; the caption beside it */
.rsc-spot {
  position: fixed; z-index: 8990; left: 0; top: 0; border-radius: 12px; pointer-events: none; opacity: 0; will-change: transform;
  box-shadow: 0 0 0 9999px rgba(14, 22, 32, .16);
  transition: opacity .6s ease;
}
.rsc-spot.is-on { opacity: 1; transition: opacity 1s ease; }
.rsc-spot.is-glide { transition: opacity 1s ease, box-shadow .85s ease, background-color .85s ease, transform .85s cubic-bezier(.45, .05, .25, 1), width .85s cubic-bezier(.45, .05, .25, 1), height .85s cubic-bezier(.45, .05, .25, 1); }
.rsc-spot.is-area { box-shadow: 0 0 0 2px rgba(196, 148, 38, .85), 0 0 0 7px rgba(232, 184, 74, .14), 0 0 0 9999px rgba(14, 22, 32, .14); background: rgba(232, 184, 74, .06); }
.rsc-spot.is-key { border-radius: 10px; box-shadow: 0 0 0 2px rgba(23, 112, 143, .95), 0 0 0 8px rgba(23, 112, 143, .16), 0 0 0 9999px rgba(14, 22, 32, .16); }
/* someone else's button: a plain white ring, never the teal of a button to press */
.rsc-spot.is-auto, .rsc-spot.is-nav { border-radius: 10px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .95), 0 0 0 3px rgba(14, 22, 32, .22), 0 0 0 9999px rgba(14, 22, 32, .12); }
/* the step scrolled out of view: the screen stays dimmed and the caption waits at the edge */
.rsc-spot.is-away { box-shadow: 0 0 0 9999px rgba(14, 22, 32, .16) !important; background: none !important; transition: none !important; }
/* the ride pressing a button for someone else: a short press, so the visitor sees it happen */
.rsc-spot.is-press { animation: rsc-press .45s ease-out; }
@keyframes rsc-press { 0% { box-shadow: 0 0 0 2px rgba(23, 112, 143, .95), 0 0 0 0 rgba(23, 112, 143, .45), 0 0 0 9999px rgba(14, 22, 32, .12); }
  100% { box-shadow: 0 0 0 2px rgba(23, 112, 143, .95), 0 0 0 16px rgba(23, 112, 143, 0), 0 0 0 9999px rgba(14, 22, 32, .12); } }
/* a press anywhere else: the ring on the button to press flashes */
.rsc-spot.is-flash { animation: rsc-flash 1.6s ease-in-out; }
@keyframes rsc-flash { 30%, 55% { box-shadow: 0 0 0 3px rgba(23, 112, 143, 1), 0 0 0 14px rgba(23, 112, 143, .25), 0 0 0 9999px rgba(14, 22, 32, .22); } }
.rsc-beacon {
  position: fixed; z-index: 8991; left: 0; top: 0; width: 14px; height: 14px; margin-left: -7px; pointer-events: none; will-change: transform;
  opacity: 0; transition: opacity .45s ease;
}
.rsc-beacon.is-on { opacity: 1; transition: opacity .9s ease .4s; }
.rsc-beacon::before, .rsc-beacon i { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #17708f; }
.rsc-beacon::before { box-shadow: 0 0 0 3px #fff; }
.rsc-beacon i { animation: rsc-beacon 2.8s ease-out infinite; }
@keyframes rsc-beacon { from { transform: scale(1); opacity: .55; } to { transform: scale(3.2); opacity: 0; } }
/* the caption: solid, so it costs nothing to move as the page scrolls (a blur behind it made the scroll stutter) */
.rsc-cap {
  position: fixed; z-index: 8995; left: 0; top: 0; display: grid; gap: 4px; width: max-content; max-width: min(300px, calc(100vw - 24px));
  padding: 10px 14px 11px; border-radius: 10px; background: #17708f; color: #fff; pointer-events: none; will-change: transform;
  font: 14.5px/1.4 "IBM Plex Sans", system-ui, sans-serif; box-shadow: 0 14px 30px -14px rgba(14, 22, 32, .55);
  opacity: 0; transition: opacity .45s ease;
}
.rsc-cap.is-away { pointer-events: auto; cursor: pointer; }
.rsc-cap.is-away::after { content: attr(data-away); display: block; margin-top: 4px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: 12.5px; font-weight: 600; }
.rsc-cap.is-on { opacity: 1; transition: opacity .9s ease .45s; }
.rsc-cap.is-new .rsc-cap__t, .rsc-cap.is-new .rsc-cap__k { animation: rsc-capin .7s ease-out both; }
@keyframes rsc-capin { from { opacity: .2; } }
.rsc-cap.is-key { background: #0f5670; }
.rsc-cap.is-area { background: #2a333d; }
.rsc-cap.is-auto, .rsc-cap.is-nav { background: #3a444f; }
/* your turn: the kicker reads as a label */
.rsc-cap.is-key .rsc-cap__k { justify-self: start; padding: 1px 8px; border-radius: 999px; background: #fff; color: #0f5670; font-weight: 600; opacity: 1; }
.rsc-cap__k { font-size: 12px; opacity: .82; }
.rsc-cap__t { font-weight: 500; }
.rsc-cap.is-key .rsc-cap__t { font-size: 15.5px; font-weight: 600; }
.rsc-cap__who { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 13px; }
.rsc-cap__who .rsc-av { box-shadow: none; }
.rsc-cap__arrow { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 2px; background: inherit; transform: rotate(45deg);
  -webkit-backdrop-filter: none; backdrop-filter: none; }
.rsc-spot.is-off, .rsc-beacon.is-off, .rsc-cap.is-off { visibility: hidden; }

/* what is being approved, inside the caption: each row arrives in turn; a changed value is struck and the new one comes
   in; a check ticks */
.rsc-cap:has(.rsc-cap__rows) { max-width: min(360px, calc(100vw - 24px)); }
.rsc-cap__rows { display: grid; gap: 6px; margin: 6px 0 0; padding: 8px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .22); }
.rsc-cap__rows li { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 10px; align-items: baseline; font-size: 13px;
  animation: rsc-row .6s ease-out both; animation-delay: calc(700ms + var(--i) * 550ms); }
@keyframes rsc-row { from { opacity: 0; transform: translateY(6px); } }
.rsc-k { opacity: .8; }
.rsc-v { font-weight: 600; font-variant-numeric: tabular-nums; }
.rsc-chg { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-variant-numeric: tabular-nums; }
.rsc-chg s { text-decoration: none; opacity: .85; background: linear-gradient(currentColor, currentColor) 0 55% / 0 1.5px no-repeat;
  animation: rsc-strike .5s ease-in forwards; animation-delay: calc(1200ms + var(--i) * 550ms); }
@keyframes rsc-strike { to { background-size: 100% 1.5px; opacity: .6; } }
.rsc-chg i { font-style: normal; opacity: 0; animation: rsc-in .4s ease-out forwards; animation-delay: calc(1600ms + var(--i) * 550ms); }
.rsc-chg b { font-weight: 700; color: #fff; opacity: 0; animation: rsc-pop-in .5s cubic-bezier(.2, 1.3, .4, 1) forwards; animation-delay: calc(1800ms + var(--i) * 550ms);
  padding: 0 4px; border-radius: 4px; background: rgba(232, 184, 74, .35); }
@keyframes rsc-in { to { opacity: 1; } }
@keyframes rsc-pop-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.rsc-ok { font-weight: 600; color: #b8f0cf; opacity: 0; animation: rsc-pop-in .45s cubic-bezier(.2, 1.3, .4, 1) forwards; animation-delay: calc(1000ms + var(--i) * 550ms); }
.rsc-ok.is-no { color: #ffc2bd; }

/* ---- the curtain between steps: the screen softens, the step to come is shown, the app moves behind it */
.rsc-curtain {
  position: fixed; z-index: 8996; left: 0; right: 0; top: 0; bottom: var(--rsc-rb, 0px); display: grid; place-items: center; padding: 24px;
  background: rgba(246, 246, 242, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  pointer-events: none;   /* the guard holds stray presses; the button finder sees through it */
  opacity: 0; transition: opacity .9s ease; font-family: "IBM Plex Sans", system-ui, sans-serif; color: #0e1620;
}
.rsc-curtain.is-on { opacity: 1; transition: opacity .65s ease; }
.rsc-curtain__card, .rsc-curtain__note { animation: rsc-card-in .8s cubic-bezier(.2, .7, .1, 1) both; }
@keyframes rsc-card-in { from { opacity: 0; transform: translateY(12px); } }
.rsc-curtain__note { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px 14px 16px; border: 1px solid #e2e3df; border-radius: 999px;
  background: rgba(255, 255, 255, .92); box-shadow: 0 18px 40px -22px rgba(14, 22, 32, .4); font-size: 17px; font-weight: 500; color: #0e1620; }
.rsc-curtain__note .rsc-av { box-shadow: none; }
.rsc-curtain__tick { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #2f7d59; animation: rsc-tick .55s cubic-bezier(.2, 1.4, .4, 1) .1s both; }
.rsc-curtain__tick svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes rsc-tick { from { transform: scale(.4); opacity: 0; } }
.rsc-curtain__dots { display: inline-flex; gap: 5px; padding: 0 6px; }
.rsc-curtain__dots i { width: 7px; height: 7px; border-radius: 50%; background: #17708f; animation: rsc-dot 1.2s ease-in-out infinite; }
.rsc-curtain__dots i:nth-child(2) { animation-delay: .15s; } .rsc-curtain__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes rsc-dot { 0%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.rsc-curtain__card { width: min(520px, 100%); padding: 26px 28px; border: 1px solid #e2e3df; border-radius: 16px; background: #fff;
  box-shadow: 0 1px 2px rgba(14, 22, 32, .05), 0 24px 50px -24px rgba(14, 22, 32, .35); }
.rsc-curtain__k { margin: 0; font-size: 13px; color: #17708f; font-weight: 600; }
.rsc-curtain h2 { margin: 6px 0 0; font-size: 30px; line-height: 1.15; font-weight: 500; letter-spacing: -.02em; }
.rsc-curtain__why { margin: 8px 0 0; font-size: 15.5px; line-height: 1.5; color: #47525f; }
.rsc-curtain__who { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid #e2e3df; font-size: 14px; color: #47525f; }
.rsc-curtain__who b { color: #0e1620; font-weight: 600; }
.rsc-curtain__who .rsc-av { box-shadow: none; }
/* the step map: the steps done, and the bar of the step to come filling as the curtain draws */
.rsc-curtain__map { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; margin: 14px 0 4px; padding: 0; list-style: none; }
.rsc-curtain__map li { display: grid; gap: 6px; min-width: 0; font-size: 11.5px; color: #626c79; }
.rsc-curtain__map i { position: relative; height: 5px; border-radius: 3px; background: #eeeee9; overflow: hidden; }
.rsc-curtain__map .is-done i { background: #2f7d59; }
.rsc-curtain__map .is-on i::after { content: ""; position: absolute; inset: 0; background: #17708f; transform-origin: left; transform: scaleX(0); }
.rsc-curtain.is-on .rsc-curtain__map .is-on i::after { animation: rsc-fill 1.6s cubic-bezier(.4, 0, .2, 1) .7s forwards; }
@keyframes rsc-fill { to { transform: scaleX(1); } }
.rsc-curtain__map .is-on { color: #0e1620; font-weight: 600; }
.rsc-curtain__map span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---- the gold: the data the step is about, lit in the application itself, one piece at a time. A layer inside each
   element (never a box floating over it), so it moves with its record and nothing lags, slips or gets clipped. */
.rsc-hl-pos { position: relative !important; }
.rsc-hl:not(tr)::after, tr.rsc-hl > td::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 2px rgba(196, 148, 38, .85); background: rgba(232, 184, 74, .08);
  animation: rsc-hl-in 2.8s cubic-bezier(.3, .6, .3, 1) both; transition: opacity .8s ease;
}
/* a section with no padding of its own gets a little air around its content; an inline value (a cited figure) a hair;
   padded cards and table cells are lit edge to edge, so cards side by side keep their gap */
.rsc-hl.rsc-hl-air::after { inset: -6px -8px; border-radius: 10px; }
span.rsc-hl::after, mark.rsc-hl::after { inset: -2px -3px; border-radius: 5px; }
tr.rsc-hl > td { position: relative; }
tr.rsc-hl > td::after { border-radius: 0; box-shadow: inset 0 2px 0 rgba(196, 148, 38, .85), inset 0 -2px 0 rgba(196, 148, 38, .85); }
tr.rsc-hl > td:first-child::after { box-shadow: inset 2px 0 0 rgba(196, 148, 38, .85), inset 0 2px 0 rgba(196, 148, 38, .85), inset 0 -2px 0 rgba(196, 148, 38, .85); }
tr.rsc-hl > td:last-child::after { box-shadow: inset -2px 0 0 rgba(196, 148, 38, .85), inset 0 2px 0 rgba(196, 148, 38, .85), inset 0 -2px 0 rgba(196, 148, 38, .85); }
.rsc-hl.rsc-hl-steady:not(tr)::after, tr.rsc-hl.rsc-hl-steady > td::after { animation: none; }
.rsc-hl.rsc-hl-out:not(tr)::after, tr.rsc-hl.rsc-hl-out > td::after { animation: none; opacity: 0; }
@keyframes rsc-hl-in {
  0% { opacity: 0; background: rgba(232, 184, 74, 0); }
  25% { opacity: 1; background: rgba(232, 184, 74, .3); }
  55% { background: rgba(232, 184, 74, .14); }
  100% { opacity: 1; background: rgba(232, 184, 74, .08); }
}

/* the app's own notices never stand between the visitor and the lit button: presses pass through them, and on a
   phone they show along the top */
#toastRoot, #toastRoot * { pointer-events: none !important; }
/* one notice at a time: the newest */
#toastRoot > .toast:not(:last-child) { display: none !important; }
@media (max-width: 640px) { #toastRoot { top: calc(60px + env(safe-area-inset-top)) !important; bottom: auto !important; } }

/* ---- the handoff: who does the next step */
.rsc-hand {
  position: fixed; z-index: 9002; left: 50%; top: 72px; transform: translateX(-50%); transition: opacity .6s, transform .6s;
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: #0e1620; color: #fff; font: 14.5px/1.3 "IBM Plex Sans", system-ui, sans-serif; box-shadow: 0 14px 34px -14px rgba(14, 22, 32, .6);
  animation: rsc-drop .7s cubic-bezier(.2, .7, .1, 1) both; transition: opacity .7s, transform .7s;
}
.rsc-hand .rsc-av { box-shadow: none; }
.rsc-hand.is-out { opacity: 0; transform: translate(-50%, -8px); }
@keyframes rsc-drop { from { opacity: 0; transform: translate(-50%, -12px); } }

/* ---- the finish */
.rsc-done {
  position: fixed; z-index: 9001; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 28px 26px 22px; text-align: center;
  border: 1px solid var(--c-line); border-radius: 16px; background: var(--c-white); box-shadow: var(--c-shadow);
  animation: rsc-pop .3s cubic-bezier(.2, .7, .1, 1) both;
}
.rsc-seal {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%;
  background: linear-gradient(180deg, #dcac44, #9c7210); box-shadow: 0 10px 26px -10px rgba(156, 114, 16, .7);
  animation: rsc-stamp .45s cubic-bezier(.2, 1.4, .4, 1) .1s both;
}
.rsc-seal svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes rsc-stamp { from { opacity: 0; transform: scale(1.6) rotate(-12deg); } }
.rsc-done h2 { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.rsc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 0 14px; padding: 0; list-style: none; }
.rsc-stats li { display: grid; gap: 2px; padding: 0 8px; }
.rsc-stats li + li { border-left: 1px solid var(--c-line); }
.rsc-stats b { font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; }
.rsc-stats span { font-size: 12.5px; color: var(--c-subtle); }
.rsc-stack--lg { justify-content: center; margin: 0 0 12px; }
.rsc-stack--lg .rsc-av + .rsc-av { margin-left: -8px; }
.rsc-done > p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--c-muted); }
.rsc-done .rsc-actions { justify-content: center; margin-top: 16px; }
.rsc-done .rsc-cta { margin-top: 12px !important; color: var(--c-ink) !important; }
.rsc-cta { margin-top: 14px !important; font-size: 14px !important; }
.rsc-cta a { color: var(--c-teal); }

/* ---- narrower screens: the side column runs along the ribbon's foot */
@media (max-width: 1100px) {
  .rsc-rib { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 10px 22px; height: 252px; }
  .rsc-rib__data, .rsc-rib__step { max-height: 160px; }
  .rsc-rib__side { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--c-line); }
  .rsc-rib__side .rsc-tools { order: 3; }
  .rsc-rib__side .rsc-who { order: 1; padding: 4px 8px; }
  .rsc-rib__side .rsc-steps { order: 2; }
  .rsc-rib.is-min { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
}

/* ---- phones: the picker fills the screen; the ribbon stacks, title first, step bar at the foot */
@media (max-width: 640px) {
  .rsc-pick { inset: auto 0 0 0; left: 0; top: auto; transform: none; width: 100%; max-height: 92dvh; border-radius: 18px 18px 0 0;
    padding: 22px 18px calc(16px + env(safe-area-inset-bottom)); animation-name: rsc-up; }
  @keyframes rsc-up { from { transform: translateY(24px); opacity: 0; } }
  .rsc-m { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 13px 4px; }
  .rsc-m__n { width: 28px; height: 28px; font-size: 13px; }
  .rsc-m__go { display: none; }
  .rsc-m__body b { font-size: 17px; }
  .rsc-pick footer .rsc-btn { flex: 1 1 100%; margin-right: 0; }
  .rsc-demo { flex-direction: column; align-items: stretch; gap: 12px; }
  .rsc-nudge { width: calc(100vw - 24px); }
  .rsc-rib { grid-template-columns: minmax(0, 1fr); gap: 8px; height: min(46dvh, 360px); overflow: auto; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
  .rsc-rib.is-min { grid-template-columns: minmax(0, 1fr); height: auto; }
  .rsc-rib__data, .rsc-rib__step { max-height: none; overflow: visible; }
  .rsc-curtain__note { font-size: 15px; }
  .rsc-rib h2 { margin: 2px 0 0; font-size: 17px; }
  .rsc-rib__kick { font-size: 12.5px; }
  .rsc-rib:has(.rsc-ctx) .rsc-why { display: none; }
  .rsc-why { font-size: 13.5px; }
  .rsc-act { padding: 8px 12px; font-size: 14.5px; }
  .rsc-ctx { margin-top: 8px; padding: 8px 10px; max-height: 22dvh; overflow: auto; }
  .rsc-quote { font-size: 13.5px; }
  .rsc-rib__side { grid-template-columns: minmax(0, 1fr); padding-top: 8px; }
  .rsc-rib__side .rsc-who, .rsc-tools__demo { display: none; }
  .rsc-rib__side { display: grid; gap: 8px; }
  .rsc-rib__side .rsc-steps { order: 1; }
  .rsc-rib__side .rsc-tools { order: 2; position: static; justify-content: space-between; }
  .rsc-rib__side .rsc-icon { width: 40px; height: 36px; }
  .rsc-steps span { display: none; }
  .rsc-hand { top: calc(64px + env(safe-area-inset-top)); bottom: auto; font-size: 13.5px; max-width: calc(100vw - 24px); }
  .rsc-done { inset: auto 0 0 0; left: 0; top: auto; transform: none; width: 100%; border-radius: 18px 18px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); animation-name: rsc-up; }
  .rsc-show { display: none; }
  .rsc-cap { max-width: min(250px, calc(100vw - 24px)); font-size: 13.5px; }
  .rsc-cap:has(.rsc-cap__rows) { max-width: calc(100vw - 24px); }
  .rsc-curtain { padding: 14px; align-items: end; }
  .rsc-curtain__card { padding: 20px; }
  .rsc-curtain h2 { font-size: 24px; }
  .rsc-curtain__map span { display: none; }
  .rsc-intro { inset: auto 0 0 0; left: 0; top: auto; transform: none; width: 100%; max-height: 92dvh; border-radius: 18px 18px 0 0;
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); animation-name: rsc-up; }
  .rsc-intro .rsc-actions .rsc-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .rsc *, .rsc-hand, .rsc-spot, .rsc-beacon, .rsc-beacon i, .rsc-cap, .rsc-cap *, .rsc-hl::after, tr.rsc-hl > td::after, .rsc-curtain, .rsc-curtain * { animation: none !important; transition: none !important; }
  .rsc-cap__rows li, .rsc-chg i, .rsc-chg b, .rsc-ok { opacity: 1 !important; }
  .rsc-chg s { background-size: 100% 1.5px !important; }
  .rsc-curtain__map .is-on i::after { transform: none !important; }
}

/* ---- one loan, underwriting to payoff (2026-11-12): the six stages on the overview, the intro, each stage's card and
   the completion card */
.rsc-pick header .rsc-actions { margin-top: 14px; }
.rsc-pick header .rsc-actions .rsc-btn { flex: 0 0 auto; }
.rsc-m__go { white-space: nowrap; }
.rsc-intro__map, .rsc-done__map { margin: 16px 0 6px; }
.rsc-intro__map .is-on i, .rsc-done__map .is-on i { background: #17708f; }
.rsc-done__map { width: 100%; text-align: left; }
.rsc-curtain__card.is-stage { width: min(600px, 100%); }
.rsc-curtain__steps { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #e2e3df; font-size: 13.5px; color: #47525f; }
.rsc-curtain__steps span { display: inline-flex; align-items: baseline; gap: 6px; }
.rsc-curtain__steps b { color: #17708f; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .rsc-curtain__map li span { font-size: 10px; }
  .rsc-m { grid-template-columns: 28px minmax(0, 1fr); }
  .rsc-m__go { grid-column: 2; justify-self: start; height: 32px; }
}

/* ---- whose turn it is: only the button to press shows a pointer; the app shows none anywhere else while the tour runs
   (coach.js yoursOn, 2026-11-12) */
html.rsc-on body :where(button, a, [onclick], [role="button"], tr.row, .btn, .nav-item, .appbar-tab, .appr-card, .ws-item, label, summary) { cursor: default !important; }
html.rsc-on body :is(.subtab, [role="tab"]) { cursor: pointer !important; }
html.rsc-on body .rsc-target, html.rsc-on body .rsc-target * { cursor: pointer !important; }
html.rsc-on body .rsc :is(button, a, [role="button"]), html.rsc-on body .rsc-nudge :is(a, button) { cursor: pointer !important; }
html.rsc-on body .rsc-up .rsc-file, html.rsc-on body .rsc-up .rsc-file * { cursor: grab !important; }
html.rsc-on body .rsc-up .rsc-file.is-held, html.rsc-on body .rsc-up .rsc-file.is-held * { cursor: grabbing !important; }
.rsc-nudge b { font-weight: 600; }

/* ---- Underwrite, step 1: the upload and the AI's scan of the amendment (coach.js upload) */
.rsc-up { position: fixed; inset: 0 0 var(--rsc-rb, 0px) 0; z-index: 8997; display: grid; place-items: start center; padding: clamp(16px, 7vh, 64px) 16px 16px; opacity: 0; transition: opacity .6s ease; }
.rsc-up.is-on { opacity: 1; }
.rsc-up [hidden] { display: none !important; }
.rsc-up__veil { position: absolute; inset: 0; background: rgba(14, 22, 32, .28); }
.rsc-up__card { position: relative; width: min(1000px, 100%); max-height: 100%; overflow: auto; padding: 22px 26px 24px; border: 1px solid var(--c-line); border-radius: 16px;
  background: var(--c-white); box-shadow: 0 30px 70px -30px rgba(14, 22, 32, .55); animation: rsc-card-in .7s cubic-bezier(.2, .7, .1, 1) both; }
.rsc-up__k { justify-self: start; display: inline-block; margin: 0; padding: 2px 9px; border-radius: 999px; background: var(--c-teal); color: #fff; font-size: 12.5px; font-weight: 600; }
.rsc-up__k.is-ai { background: #fdf3dc; color: #8f660b; }
.rsc-up__head h2 { margin: 8px 0 0; font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -.015em; }
.rsc-up__lbl { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; color: var(--c-subtle); }
/* the drop */
.rsc-up__drop-stage { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1.2fr); align-items: center; gap: 12px; margin-top: 22px; }
.rsc-up__from { transition: opacity .5s ease; }
.rsc-up__from.is-gone { opacity: .25; }
.rsc-file { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 1px solid var(--c-line2); border-radius: 12px;
  background: var(--c-white); text-align: left; touch-action: none; user-select: none; -webkit-user-select: none;
  box-shadow: 0 1px 2px rgba(14, 22, 32, .06), 0 10px 24px -16px rgba(14, 22, 32, .4); animation: rsc-file-hint 2.6s ease-in-out 1.2s infinite; }
.rsc-file:focus-visible { outline: 2px solid var(--c-teal); outline-offset: 3px; }
.rsc-file.is-held { animation: none; box-shadow: 0 26px 44px -18px rgba(14, 22, 32, .55); }
.rsc-file svg { flex: none; width: 34px; height: 42px; }
.rsc-file b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.rsc-file small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--c-subtle); }
@keyframes rsc-file-hint { 0%, 55%, 100% { transform: none; } 25% { transform: translateX(14px); } }
.rsc-up__alt { margin: 8px 0 0; font-size: 12.5px; color: var(--c-subtle); }
.rsc-up__path { width: 100%; height: 24px; fill: none; stroke: var(--c-teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 6 6;
  animation: rsc-path 1s linear infinite; }
@keyframes rsc-path { to { stroke-dashoffset: -12; } }
.rsc-up__drop { display: grid; justify-items: center; gap: 6px; min-height: 190px; align-content: center; padding: 22px; border: 2px dashed var(--c-line2); border-radius: 14px;
  background: var(--c-paper); text-align: center; color: var(--c-muted); transition: border-color .25s, background-color .25s, transform .25s; }
.rsc-up__drop b { font-size: 16px; font-weight: 600; color: var(--c-ink); }
.rsc-up__say { font-size: 14px; }
.rsc-up__ic svg { width: 30px; height: 30px; fill: none; stroke: var(--c-teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rsc-up__drop.is-hot { border-color: var(--c-teal); background: var(--c-tealsoft); transform: scale(1.02); }
.rsc-up__drop.is-done { border-style: solid; border-color: var(--c-green); background: #eef7f1; transform: none; }
.rsc-up__drop.is-done .rsc-up__say { color: var(--c-green); font-weight: 600; }
.rsc-up__prog { width: min(280px, 80%); height: 5px; margin-top: 6px; border-radius: 3px; background: var(--c-sunk); overflow: hidden; opacity: 0; transition: opacity .3s; }
.rsc-up__drop.is-busy .rsc-up__prog, .rsc-up__drop.is-done .rsc-up__prog { opacity: 1; }
.rsc-up__prog i { display: block; width: 0; height: 100%; background: var(--c-teal); transition: width 1.2s cubic-bezier(.4, 0, .2, 1); }
.rsc-up__drop.is-done .rsc-up__prog i { background: var(--c-green); }
/* the scan */
.rsc-up__scan-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: start; margin-top: 18px; opacity: 0; transition: opacity .6s ease; }
.rsc-up__scan-stage.is-on { opacity: 1; }
.rsc-paper { position: relative; padding: 20px 24px 22px; border: 1px solid var(--c-line); border-radius: 6px; background: #fff; overflow: hidden;
  box-shadow: 0 1px 2px rgba(14, 22, 32, .05), 0 16px 34px -22px rgba(14, 22, 32, .4); font-size: 12.5px; line-height: 1.5; color: var(--c-ink); }
.rsc-paper h3 { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.rsc-paper__pp { margin: 3px 0 4px; font-size: 11px; text-align: center; color: var(--c-subtle); }
.rsc-paper__c { position: relative; padding-top: 10px; }
.rsc-paper__c h4 { display: flex; justify-content: space-between; gap: 10px; margin: 0; font-size: 12px; font-weight: 600; }
.rsc-paper__c h4 small { font-weight: 400; color: var(--c-subtle); font-variant-numeric: tabular-nums; }
.rsc-paper__c p { margin: 2px 0 0; }
.rsc-paper__ln { display: block; height: 6px; margin-top: 6px; border-radius: 2px; background: #e9eae5; }
.rsc-paper mark { padding: 0 2px; border-radius: 3px; background: transparent; color: inherit; font-weight: 600; transition: background-color .4s, box-shadow .4s; }
.rsc-paper mark.is-hit { background: rgba(23, 112, 143, .15); box-shadow: 0 0 0 1px rgba(23, 112, 143, .45); }
.rsc-paper mark[data-key="base"].is-hit, .rsc-paper mark[data-key="margin"].is-hit { background: rgba(232, 184, 74, .25); box-shadow: 0 0 0 1px rgba(196, 148, 38, .5); }
.rsc-paper__sig { display: flex; gap: 28px; margin-top: 18px; }
.rsc-paper__sig span { flex: 1; padding-top: 5px; border-top: 1px solid var(--c-line2); font-size: 10.5px; color: var(--c-subtle); }
.rsc-paper__scan { position: absolute; left: 0; right: 0; top: 0; height: 40px; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(rgba(23, 112, 143, 0), rgba(23, 112, 143, .09)); border-bottom: 2px solid var(--c-teal);
  transition: top .85s cubic-bezier(.45, .05, .25, 1), height .85s cubic-bezier(.45, .05, .25, 1), opacity .4s ease; }
.rsc-paper__scan.is-on { opacity: 1; }
.rsc-up__terms table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rsc-up__terms th { padding: 0 8px 8px 0; border-bottom: 1px solid var(--c-line2); font-size: 12px; font-weight: 500; text-align: left; color: var(--c-subtle); }
.rsc-up__terms td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.rsc-up__terms td small { display: block; margin-top: 2px; font-size: 12px; color: #8f660b; }
.rsc-up__terms td:nth-child(2), .rsc-up__terms td:nth-child(4) { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.rsc-up__terms td:nth-child(3) { white-space: nowrap; color: var(--c-subtle); font-size: 12.5px; }
.rsc-up__terms td:nth-child(4)::after { content: ""; display: inline-block; width: 16px; margin-left: 6px; color: var(--c-green); }
.rsc-up__terms tr.is-ok td:nth-child(4)::after { content: "\2713"; animation: rsc-pop-in .4s cubic-bezier(.2, 1.3, .4, 1) both; }
.rsc-up__terms tbody tr { opacity: 0; transition: opacity .45s ease, background-color 1.2s ease; }
.rsc-up__terms tbody tr.is-in { opacity: 1; background: rgba(23, 112, 143, .06); }
.rsc-up__terms tbody tr.is-ok { background: transparent; }
.rsc-chip { display: inline-block; padding: 0 6px; border-radius: 4px; background: var(--c-tealsoft); color: var(--c-teal2); font-weight: 600; font-size: 12px; }
.rsc-up__ai { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: 14px; line-height: 1.45; opacity: 0; transition: opacity .5s ease; }
.rsc-up__ai.is-in { opacity: 1; }
.rsc-up__tag { flex: none; padding: 1px 7px; border-radius: 5px; background: #fdf3dc; color: #8f660b; font-size: 12px; font-weight: 700; }

/* ---- step 2: an extracted term next to what its clause says (coach.js reviewSide), in the app's own review drawer */
.rsc-clausecol .rsc-match { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 600; color: #2f7d59; }
.rsc-clausecol .rsc-match svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rsc-clausecol .rsc-match.is-no { color: #b4433c; }
.rsc-rate { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: rgba(232, 184, 74, .12); }
.rsc-rate__eq { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 10px; }
.rsc-rate__eq span { display: grid; gap: 1px; }
.rsc-rate small { font-size: 11.5px; color: #8f660b; }
.rsc-rate b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rsc-rate i { font-style: normal; font-size: 16px; padding-bottom: 1px; color: #8f660b; }
.rsc-rate__src { margin: 8px 0 0; padding-top: 7px; border-top: 1px solid rgba(196, 148, 38, .3); font-size: 12.5px; line-height: 1.45; color: #47525f; }
.rsc-rate__src b { font-size: inherit; color: #0e1620; }
.rsc-clausecol .rsc-next { margin: 10px 0 0; font-size: 12.5px; color: #626c79; }
.rsc-rate--rib { margin-top: 8px; padding: 8px 10px; background: rgba(232, 184, 74, .16); }
.rsc-rate--rib .rsc-rate__eq b { font-size: 15px; }
.rsc-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.rsc-vs__x { display: grid; justify-items: end; gap: 3px; padding-left: 14px; border-left: 1px solid rgba(201, 154, 46, .45); text-align: right; }
.rsc-vs__x b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rsc-vs__ok, .rsc-vs__no { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: #2f7d59; }
.rsc-vs__no { color: #b4433c; }
.rsc-vs__ok svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 760px) {
  .rsc-up { padding: 10px 10px; place-items: start center; }
  .rsc-up__card { padding: 16px 16px 18px; }
  .rsc-up__head h2 { font-size: 19px; }
  .rsc-up__drop-stage { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 16px; }
  .rsc-up__path { width: 24px; height: 60px; justify-self: center; transform: rotate(90deg); }
  .rsc-up__drop { min-height: 150px; }
  .rsc-up__scan-stage { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .rsc-paper { padding: 14px 16px; font-size: 12px; }
  .rsc-paper__ln { display: none; }
  .rsc-up__terms td:nth-child(3) { display: none; }
  .rsc-up__terms th:nth-child(3) { display: none; }
  .rsc-vs { grid-template-columns: minmax(0, 1fr); }
  .rsc-vs__x { justify-items: start; padding: 8px 0 0; border-left: 0; border-top: 1px solid rgba(201, 154, 46, .45); text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .rsc-file, .rsc-up__path { animation: none; }
  .rsc-paper__scan, .rsc-up__terms tbody tr { transition: none; }
}

/* a stage's card waits for Continue */
.rsc-curtain__go { display: flex; justify-content: flex-end; margin-top: 18px; pointer-events: auto; }
.rsc-curtain__go .rsc-btn { min-width: 132px; }
html.rsc-on body .rsc-curtain__go .rsc-btn { cursor: pointer !important; }
/* colleagues' steps: the card turns green, a line per step */
.rsc-curtain__card.is-ok { border-color: rgba(47, 125, 89, .45); background: #f1f8f4; animation: rsc-card-in .6s cubic-bezier(.2, .7, .1, 1) both; }
.rsc-ok__k { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 19px; font-weight: 600; color: #1f5c40; }
.rsc-ok__k .rsc-curtain__tick { flex: none; }
.rsc-ok__list { display: grid; gap: 10px; margin: 14px 0 0; padding: 12px 0 0; list-style: none; border-top: 1px solid rgba(47, 125, 89, .25); }
.rsc-ok__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.45; color: #0e1620; animation: rsc-row .5s ease-out both; }
.rsc-ok__list .rsc-av { flex: none; box-shadow: none; }
.rsc-ok__list b { font-weight: 600; }
.rsc-ok__list small { display: block; font-size: 12.5px; color: #47525f; }
/* the extracted terms sit inside their box, clear of its edges */
.rsc-up__terms table { border: 1px solid var(--c-line); border-radius: 10px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.rsc-up__terms th { padding: 10px 12px; background: var(--c-paper); }
.rsc-up__terms td { padding: 11px 12px; }
.rsc-up__terms tbody tr:last-child td { border-bottom: 0; }
/* the app makes every table header sticky below its top bar; inside this card that pushed the header over the first term */
.rsc-up__terms th, .rsc-up__terms td { position: static !important; height: auto; box-shadow: none; }

/* ---- release checks in the ribbon: a compact grid of ticks */
.rsc-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 8px 0 0; padding: 0; list-style: none; }
.rsc-checks li { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 1.35; color: var(--c-ink); }
.rsc-checks svg { flex: none; width: 14px; height: 14px; margin-top: 2px; fill: none; stroke: var(--c-green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rsc-checks li.is-no { color: var(--c-red); }

/* ---- what happened: the card of cause and effect (coach.js fx) */
.rsc-fx { position: fixed; inset: 0 0 var(--rsc-rb, 0px) 0; z-index: 8997; display: grid; place-items: start center; padding: clamp(16px, 6vh, 56px) 16px 16px; opacity: 0; transition: opacity .5s ease; }
.rsc-fx.is-on { opacity: 1; }
.rsc-fx [hidden] { display: none !important; }
.rsc-fx__veil { position: absolute; inset: 0; background: rgba(246, 246, 242, .62); }
.rsc-fx__card { position: relative; display: flex; flex-direction: column; width: min(600px, 100%); max-height: 100%; overflow: hidden; padding: 20px 24px 18px; border: 1px solid var(--c-line); border-radius: 16px;
  background: var(--c-white); box-shadow: 0 30px 70px -30px rgba(14, 22, 32, .5); animation: rsc-card-in .6s cubic-bezier(.2, .7, .1, 1) both; }
.rsc-fx__k { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--c-teal); }
.rsc-fx__card h2 { margin: 4px 0 0; font-size: 22px; line-height: 1.2; font-weight: 500; letter-spacing: -.015em; }
.rsc-fx__list { position: relative; flex: 0 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: 12px; margin: 16px 0 0; padding: 0 4px 2px 2px; list-style: none; }
.rsc-fx__i:not(:last-child):not(.is-route)::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: -12px; width: 2px; background: var(--c-line); }
.rsc-fx__i { position: relative; display: flex; align-items: flex-start; gap: 12px; animation: rsc-fx-in .55s cubic-bezier(.2, .7, .1, 1) both; }
@keyframes rsc-fx-in { from { opacity: 0; transform: translateY(8px); } }
.rsc-fx__i p { margin: 3px 0 0; font-size: 14.5px; line-height: 1.45; min-width: 0; }
.rsc-fx__i p b { font-weight: 600; }
.rsc-fx__i small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--c-muted); }
.rsc-fx__as { color: var(--c-subtle); }
.rsc-fx__who { position: relative; flex: none; z-index: 1; }
.rsc-fx__who .rsc-av { box-shadow: 0 0 0 3px #fff; }
.rsc-fx__tick { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--c-green); box-shadow: 0 0 0 2px #fff;
  animation: rsc-tick .5s cubic-bezier(.2, 1.4, .4, 1) .15s both; }
.rsc-fx__tick svg { width: 10px; height: 10px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rsc-fx__ic { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c-tealsoft); box-shadow: 0 0 0 3px #fff; }
.rsc-fx__ic svg { width: 16px; height: 16px; fill: none; stroke: var(--c-teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rsc-fx__ic.is-chg { background: #fdf3dc; }
.rsc-fx__ic.is-chg svg { stroke: #8f660b; stroke-width: 2.4; }
/* routed: a line draws from one person to the next person's queue, a dot travelling along it until they pick it up */
.rsc-fx__i.is-route { flex-direction: column; gap: 6px; margin-left: 0; padding: 10px 12px; border: 1px dashed rgba(23, 112, 143, .45); border-radius: 12px; background: #f4f9fb; }
.rsc-fx__path { display: flex; align-items: center; gap: 8px; width: 100%; }
.rsc-fx__path .rsc-av { box-shadow: none; flex: none; }
.rsc-fx__wire { position: relative; flex: 1; height: 2px; background: linear-gradient(90deg, var(--c-teal) 50%, transparent 0) 0 0 / 8px 2px repeat-x; transform-origin: left; animation: rsc-wire .9s ease-out both; }
@keyframes rsc-wire { from { transform: scaleX(0); } }
.rsc-fx__wire i { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--c-teal); box-shadow: 0 0 0 4px rgba(23, 112, 143, .18);
  animation: rsc-packet 1.4s cubic-bezier(.45, .05, .55, .95) .5s infinite; }
@keyframes rsc-packet { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
.rsc-fx__to { position: relative; display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; border: 1px solid var(--c-line2); border-radius: 999px; background: #fff; }
.rsc-fx__q { width: 18px; height: 18px; fill: none; stroke: var(--c-teal); stroke-width: 1.7; stroke-linejoin: round; }
.rsc-fx__i.is-route p { margin: 0; }
.rsc-fx__what { display: block; margin-top: 1px; font-size: 13.5px; color: var(--c-ink); }
.rsc-fx__i.is-route.is-arrived { border-style: solid; border-color: rgba(47, 125, 89, .4); background: #f1f8f4; }
.rsc-fx__i.is-arrived .rsc-fx__wire { background: var(--c-green); }
.rsc-fx__i.is-arrived .rsc-fx__wire i { animation: none; left: calc(100% - 10px); background: var(--c-green); box-shadow: none; }
.rsc-fx__i.is-arrived .rsc-fx__q { stroke: var(--c-green); }
.rsc-fx__foot { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--c-line); }
.rsc-fx__busy { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; font-size: 13.5px; color: var(--c-subtle); }
.rsc-fx__foot .rsc-btn { min-width: 132px; }
html.rsc-on body .rsc-fx .rsc-btn { cursor: pointer !important; }

/* ---- the Monte Carlo on screen (coach.js simulate) */
.rsc-sim .rsc-up__card { width: min(980px, 100%); display: flex; flex-direction: column; overflow: auto; overscroll-behavior: contain; padding-bottom: 0; }
/* the button stays in view at the card's foot while the card scrolls (a phone's card is taller than its screen) */
.rsc-sim .rsc-fx__foot { position: sticky; bottom: 0; z-index: 2; margin-top: 14px; padding-bottom: 16px; background: var(--c-white); }
.rsc-sim__body, .rsc-sim__stats, .rsc-sim .rsc-up__head { flex: none; }
.rsc-sim__body { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 22px; align-items: start; margin-top: 14px; }
.rsc-sim__svg { display: block; width: 100%; height: auto; overflow: visible; }
.rsc-sim__grid { stroke: var(--c-line); stroke-width: 1; }
.rsc-sim__ax { font: 11px "IBM Plex Sans", sans-serif; fill: var(--c-subtle); }
.rsc-sim__p { fill: none; stroke: rgba(23, 112, 143, .28); stroke-width: 1.1; stroke-dasharray: 900; stroke-dashoffset: 900; animation: rsc-draw 1.1s ease-out forwards; }
@keyframes rsc-draw { to { stroke-dashoffset: 0; } }
.rsc-sim__band { fill: rgba(23, 112, 143, .16); opacity: 0; transition: opacity 1s ease; }
.rsc-sim__med { fill: none; stroke: #0f5670; stroke-width: 2.4; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 1.3s ease; }
.rsc-sim.is-fan .rsc-sim__band { opacity: 1; }
.rsc-sim.is-fan .rsc-sim__med { stroke-dashoffset: 0; }
.rsc-sim.is-fan .rsc-sim__p { stroke: rgba(23, 112, 143, .12); transition: stroke 1s ease; }
.rsc-sim__cov { stroke: #b4433c; stroke-width: 1.6; stroke-dasharray: 6 4; }
.rsc-sim__reset { stroke: #a5780f; stroke-width: 1.4; stroke-dasharray: 3 4; }
.rsc-sim__covl { font: 600 11px "IBM Plex Sans", sans-serif; fill: #b4433c; }
.rsc-sim__resetl { font: 600 11px "IBM Plex Sans", sans-serif; fill: #8f660b; }
.rsc-sim__count { display: grid; margin: 0; }
.rsc-sim__count b { font-size: 34px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rsc-sim__count span { font-size: 13px; color: var(--c-subtle); }
.rsc-sim .rsc-sim__bar { width: 100%; margin: 10px 0 0; opacity: 1; }
.rsc-sim .rsc-sim__bar i { transition: width .45s linear; }
.rsc-sim__phases { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--c-subtle); }
.rsc-sim__phases li { position: relative; padding-left: 20px; transition: color .3s; }
.rsc-sim__phases li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--c-line2); }
.rsc-sim__phases li.is-on { color: var(--c-ink); font-weight: 600; }
.rsc-sim__phases li.is-on::before { border-color: var(--c-teal); background: var(--c-teal); animation: rsc-blink 1s ease-in-out infinite; }
.rsc-sim__phases li.is-done { color: var(--c-ink); }
.rsc-sim__phases li.is-done::before { border-color: var(--c-green); background: var(--c-green); }
@keyframes rsc-blink { 50% { opacity: .35; } }
.rsc-sim__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; opacity: 0; transform: translateY(8px); transition: opacity .6s, transform .6s; }
.rsc-sim.is-done .rsc-sim__stats { opacity: 1; transform: none; }
.rsc-sim__stats li { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-paper); }
.rsc-sim__stats b { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rsc-sim__stats span { font-size: 13px; color: var(--c-muted); }
.rsc-sim__fx { display: none; margin-top: 14px; max-height: 230px; }
.rsc-sim.is-fx .rsc-sim__phases { display: none; }
.rsc-sim.is-fx .rsc-sim__fx { display: grid; }
.rsc-sim__fx .rsc-fx__i p { font-size: 13.5px; }
.rsc-sim.is-fx .rsc-sim__fx:empty { display: none; }

@media (max-width: 760px) {
  .rsc-fx { padding: 10px; }
  .rsc-fx__card { padding: 16px; }
  .rsc-fx__card h2 { font-size: 19px; }
  .rsc-checks { grid-template-columns: minmax(0, 1fr); }
  .rsc-sim__body { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rsc-sim__stats { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .rsc-sim__stats b { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .rsc-fx__i, .rsc-fx__wire, .rsc-fx__wire i, .rsc-sim__p { animation: none; stroke-dashoffset: 0; }
}
