/* Stow — Rig. Component styles. Every value comes from tokens.css. */

/* ---------- base and browser surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; }
[data-theme="light"] { color-scheme: light; }
body { margin: 0; background: var(--surface-0); color: var(--ink); font-family: var(--font-text); font-size: 13px; line-height: 18px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
[data-theme] { color: var(--ink); }
::selection { background: var(--blue); color: var(--on-blue); }
input, textarea { caret-color: var(--blue-text); }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
:focus { outline: none; }
:focus-visible { outline: var(--size-focus) solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus-halo); }
.st-mono, .edge, .data, .data-l, .counter { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: "zero" 0; font-variation-settings: "wdth" 87; }
.st-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.st-icon { width: 20px; height: 20px; flex: none; fill: currentColor; stroke: none; }
.st-icon--s { width: 14px; height: 14px; }
.st-icon--l { width: 28px; height: 28px; }
.st-display { font-family: var(--font-display); font-variation-settings: "wdth" 125; }

/* ---------- preview scaffolding (used by the reference cards only) ---------- */
.pv { padding: var(--space-4); }
.pv-both { display: grid; grid-template-columns: 1fr 1fr; }
.pv-theme { background: var(--surface-0); color: var(--ink); padding: var(--space-4); min-width: 0; }
.pv-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.pv-col { display: grid; gap: var(--space-3); align-content: start; }
.pv-label { font: 600 11px/14px var(--font-text); letter-spacing: 0.01em; color: var(--ink-3); margin: 0 0 var(--space-1); }
.pv-bar { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; padding: var(--space-2) var(--space-3); background: var(--surface-1); border-bottom: 1px solid var(--line); }
.pv-bar .pv-hint { color: var(--ink-2); margin-left: auto; }
.pv-stage { position: relative; overflow: hidden; background: var(--surround); }
@media (max-width: 620px) { .pv-both { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1); height: var(--size-control); padding: 0 var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-1); background: var(--surface-2); color: var(--ink); font: 650 13px/18px var(--font-text); white-space: nowrap; transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.st-btn:hover { background: var(--surface-3); }
.st-btn:active, .st-btn[data-state="pressed"] { background: var(--line); transform: translateY(1px); }
.st-btn--primary { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.st-btn--primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.st-btn--primary:active, .st-btn--primary[data-state="pressed"] { background: var(--blue-press); border-color: var(--blue-press); }
.st-btn--quiet { background: transparent; border-color: transparent; color: var(--ink-2); font-weight: 400; }
.st-btn--quiet:hover { background: var(--surface-3); color: var(--ink); }
.st-btn--danger { border-color: var(--failed); color: var(--failed); background: transparent; }
.st-btn--danger:hover { background: var(--failed); color: var(--ink-inverse); }
.st-btn--safe { background: var(--safe); border-color: var(--safe); color: var(--on-safe); }
.st-btn--l { height: var(--size-control-l); padding: 0 var(--space-4); font-size: 14px; }
.st-btn--icon { width: var(--size-control); padding: 0; }
.st-btn[disabled], .st-btn[aria-disabled="true"] { opacity: var(--opacity-disabled); cursor: not-allowed; transform: none; }
.st-btn[data-state="hover"] { background: var(--surface-3); }
.st-btn--primary[data-state="hover"] { background: var(--blue-hover); border-color: var(--blue-hover); }
.st-btn[data-state="focus"] { outline: var(--size-focus) solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus-halo); }
.st-btn[data-state="busy"] { color: transparent; position: relative; }
.st-btn[data-state="busy"]::after { content: ""; position: absolute; inset: 0; margin: auto; width: 30px; height: 4px; background: radial-gradient(circle, var(--ink) 1.6px, transparent 2.1px) 0 0 / 10px 4px repeat-x; animation: st-march 0.5s linear infinite; }
.st-btn--primary[data-state="busy"]::after { background-image: radial-gradient(circle, var(--on-blue) 1.6px, transparent 2.1px); }
@keyframes st-march { to { background-position: 10px 0; } }
.st-kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; border: 1px solid var(--line-strong); border-radius: var(--radius-1); font: 500 11px/14px var(--font-mono); color: var(--ink-2); background: transparent; font-variation-settings: "wdth" 87; }
.st-btn--primary .st-kbd { border-color: var(--on-blue); color: var(--on-blue); }
.st-seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-1); overflow: hidden; }
.st-seg button { white-space: nowrap; height: calc(var(--size-control) - 2px); padding: 0 var(--space-2); border: 0; border-left: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); display: inline-flex; align-items: center; gap: var(--space-1); }
.st-seg button:first-child { border-left: 0; }
.st-seg button:hover { background: var(--surface-3); color: var(--ink); }
.st-seg button[aria-pressed="true"] { background: var(--ink); color: var(--ink-inverse); }
.st-seg button:focus-visible { outline-offset: -3px; box-shadow: none; }

/* ---------- fields ---------- */
.st-field { display: grid; gap: var(--space-1); min-width: 0; }
.st-field > label, .st-label { font: 600 11px/14px var(--font-text); letter-spacing: 0.01em; color: var(--ink-2); }
.st-input, .st-select { height: var(--size-control); width: 100%; padding: 0 var(--space-2); border: 1px solid var(--line-strong); border-radius: var(--radius-1); background: var(--surface-2); color: var(--ink); }
.st-input::placeholder { color: var(--ink-3); opacity: 1; }
.st-input:hover, .st-select:hover { border-color: var(--ink-2); }
.st-input:focus-visible, .st-select:focus-visible, .st-input[data-state="focus"] { outline: var(--size-focus) solid var(--focus); outline-offset: 0; box-shadow: none; border-color: var(--focus); }
.st-input[aria-invalid="true"] { border-color: var(--failed); }
.st-input[disabled] { opacity: var(--opacity-disabled); }
.st-input--mono { font-family: var(--font-mono); font-size: 12px; font-variation-settings: "wdth" 87; }
.st-help { font-size: 12px; line-height: 16px; color: var(--ink-2); }
.st-help--error { color: var(--failed); display: flex; gap: var(--space-1); align-items: flex-start; }
.st-select { appearance: none; padding-right: 26px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 13px) 11px, calc(100% - 8px) 11px; background-size: 5px 5px; background-repeat: no-repeat; }
.st-search { position: relative; }
.st-search .st-icon { position: absolute; left: 6px; top: 7px; color: var(--ink-3); pointer-events: none; }
.st-search .st-input { padding-left: 26px; }
.st-check { display: inline-flex; align-items: center; gap: var(--space-2); cursor: pointer; }
.st-check input:not(.st-switch) { appearance: none; width: 16px; height: 16px; margin: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-1); background: var(--surface-2); display: grid; place-content: center; }
.st-check input:not(.st-switch):checked { background: var(--ink); border-color: var(--ink); }
.st-check input:not(.st-switch):checked::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--ink-inverse); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.st-check input[type="radio"] { border-radius: var(--radius-round); }
.st-check input[type="radio"]:checked::after { width: 6px; height: 6px; border: 0; border-radius: var(--radius-round); background: var(--ink-inverse); transform: none; }
.st-switch { appearance: none; width: 32px; height: 18px; margin: 0; border-radius: var(--radius-round); border: 1px solid var(--line-strong); background: var(--surface-2); position: relative; cursor: pointer; flex: none; }
.st-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: var(--radius-round); background: var(--ink-2); transition: transform var(--dur-fast) var(--ease-out); }
.st-switch:checked { background: var(--ink); border-color: var(--ink); }
.st-switch:checked::after { transform: translateX(14px); background: var(--ink-inverse); }

/* ---------- chips: every state is a shape + a word, colour comes third ---------- */
.st-chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px 0 4px; border: 1px solid currentColor; border-radius: var(--radius-1); font: 600 11px/14px var(--font-text); letter-spacing: 0.01em; white-space: nowrap; color: var(--ink-2); background: transparent; }
.st-chip .st-icon { width: 14px; height: 14px; }
.st-chip--copying { color: var(--copying); }
.st-chip--verified { color: var(--verified); }
.st-chip--failed { color: var(--failed); }
.st-chip--safe { color: var(--on-safe); background: var(--safe); border-color: var(--safe); }
.st-chip--pick { color: var(--on-blue); background: var(--pick); border-color: var(--pick); }
.st-chip--waiting { border-style: dashed; }
.st-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 1px; box-shadow: 0 0 0 1px var(--line-strong); flex: none; }
.st-swatch--red { background: var(--label-red); } .st-swatch--yellow { background: var(--label-yellow); } .st-swatch--green { background: var(--label-green); } .st-swatch--blue { background: var(--label-blue); } .st-swatch--purple { background: var(--label-purple); }

/* ---------- the edge: the band where Stow speaks ---------- */
.st-edge { display: flex; align-items: center; gap: 6px; height: var(--size-rebate); padding: 0 6px; background: var(--rebate); color: var(--ink-3); font: 500 12px/16px var(--font-mono); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; min-width: 0; font-variation-settings: "wdth" 87; }
.st-tile .st-edge { font-size: 11px; line-height: 14px; letter-spacing: 0.02em; }
.st-edge b { font-weight: 500; color: var(--ink); }
.st-edge__sp { flex: 1; min-width: 0; }
.st-edge .st-icon { width: 12px; height: 12px; }
.st-edge__stars { display: inline-flex; color: var(--star); }
.st-edge__stars .st-icon { width: 10px; height: 10px; }
.st-edge__cut { overflow: hidden; text-overflow: ellipsis; }

/* ---------- photo tile ---------- */
.st-tile { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--surround); text-align: left; border-radius: var(--radius-0); color: inherit; }
.st-tile__img { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; background: var(--surround); overflow: hidden; }
.st-tile__img img, .st-tile__img canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.st-tile--fill .st-tile__img img { object-fit: cover; }
.st-tile[data-ar="portrait"] .st-tile__img img { object-fit: contain; }
.st-tile .st-edge { transition: background var(--dur-ack) linear; }
.st-tile__flag { display: none; align-items: center; justify-content: center; width: var(--size-rebate); height: var(--size-rebate); margin-left: -6px; flex: none; }
.st-tile[data-flag="pick"] .st-tile__flag { display: inline-flex; background: var(--pick); color: var(--on-blue); }
.st-tile[data-flag="reject"] .st-tile__flag { display: inline-flex; color: var(--reject); }
.st-tile[data-flag="pick"] .st-edge { box-shadow: inset 0 2px 0 var(--pick); }
.st-tile[data-flag="reject"] .st-tile__img { opacity: var(--opacity-reject); }
.st-tile[data-flag="reject"] .st-edge { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--reject); }
.st-tile[data-flag="reject"] .st-edge b { color: var(--reject); text-decoration: line-through; }
.st-tile[aria-selected="true"] .st-edge { background: var(--select); color: var(--ink-inverse); box-shadow: none; }
.st-tile[aria-selected="true"] .st-edge b, .st-tile[aria-selected="true"] .st-edge__stars { color: var(--ink-inverse); text-decoration: none; }
.st-tile[aria-selected="true"] { outline: 2px solid var(--select); outline-offset: 0; }
.st-tile[aria-selected="true"][data-flag="reject"] .st-tile__flag { color: var(--ink-inverse); }
.st-tile:focus-visible, .st-tile[data-state="focus"] { outline: var(--size-focus) solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 3px var(--focus-halo); z-index: 2; }
.st-tile[data-stack]::before, .st-tile[data-stack]::after { content: ""; position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--line-strong); pointer-events: none; }
.st-tile[data-stack]::before { top: -4px; left: 6px; right: 6px; }
.st-tile[data-stack]::after { top: -7px; left: 12px; right: 12px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tile, var(--size-tile)), 1fr)); gap: var(--space-3) var(--space-2); padding: var(--space-3); background: var(--surround); align-content: start; }

/* ---------- filmstrip ---------- */
.st-strip { display: flex; gap: var(--space-0); padding: var(--space-1) var(--space-2); background: var(--surface-1); border-top: 1px solid var(--line); overflow-x: auto; height: var(--size-filmstrip); align-items: stretch; }
.st-strip .st-tile { width: 92px; flex: none; }
.st-strip .st-tile__img { height: 62px; aspect-ratio: auto; }
.st-strip .st-edge { height: 18px; font-size: 11px; padding: 0 4px; }
.st-strip .st-tile__flag { width: 18px; height: 18px; margin-left: -4px; }

/* ---------- viewer and rating bar ---------- */
.st-viewer { position: relative; display: grid; grid-template-rows: 1fr auto; background: var(--surround); min-height: 0; min-width: 0; }
.st-viewer__img { position: relative; min-height: 0; display: grid; place-items: center; padding: var(--space-4); overflow: hidden; }
.st-viewer__img img, .st-viewer__img canvas { width: 100%; height: 100%; object-fit: contain; display: block; position: absolute; inset: var(--space-4); width: calc(100% - 2 * var(--space-4)); height: calc(100% - 2 * var(--space-4)); }
.st-rating { display: flex; align-items: center; gap: var(--space-3); height: 36px; padding: 0 var(--space-3); background: var(--rebate); color: var(--ink-3); font: 500 12px/16px var(--font-mono); letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; font-variation-settings: "wdth" 87; }
.st-rating b { color: var(--ink); font-weight: 500; }
.st-rating__group { display: inline-flex; align-items: center; gap: 2px; }
.st-rate { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid transparent; border-radius: var(--radius-1); background: transparent; color: var(--ink-3); padding: 0; }
.st-rate:hover { background: var(--surface-3); color: var(--ink); }
.st-rate[aria-pressed="true"] { color: var(--ink); }
.st-rate--pick[aria-pressed="true"] { background: var(--pick); color: var(--on-blue); }
.st-rate--reject[aria-pressed="true"] { border-color: var(--line-strong); color: var(--ink); }
.st-rate--label { width: 20px; }
.st-rate--label[aria-pressed="true"] { border-color: var(--ink); }
.st-info { position: absolute; left: var(--space-4); bottom: var(--space-4); background: var(--scrim); color: var(--chalk); padding: var(--space-2) var(--space-3); font: 450 12px/16px var(--font-mono); border-radius: var(--radius-1); font-variation-settings: "wdth" 87; }

/* ---------- faces ---------- */
.st-faces { display: flex; gap: var(--space-1); padding: var(--space-2); background: var(--surface-1); }
.st-face { width: 72px; flex: none; background: var(--surround); border: 0; padding: 0; color: inherit; text-align: left; }
.st-face canvas, .st-face img { display: block; width: 72px; height: 72px; }
.st-face .st-edge { height: 18px; font-size: 11px; padding: 0 4px; gap: 3px; }
.st-face[data-check="closed"] .st-edge, .st-face[data-check="soft"] .st-edge { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); background: transparent; }

/* ---------- sliders (edit panel) ---------- */
.st-slider { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--space-2); align-items: center; }
.st-slider__name { color: var(--ink-2); font-size: 12px; line-height: 16px; }
.st-slider__val { font: 450 12px/16px var(--font-mono); color: var(--ink); min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; border: 1px solid transparent; border-radius: var(--radius-1); background: transparent; padding: 0 3px; font-variation-settings: "wdth" 87; }
.st-slider__val:hover { border-color: var(--line-strong); }
.st-slider__track { grid-column: 1 / -1; position: relative; height: 18px; touch-action: none; cursor: ew-resize; }
.st-slider__track::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--line-strong); }
.st-slider__track::after { content: ""; position: absolute; left: 50%; top: 4px; width: 1px; height: 10px; background: var(--ink-3); }
.st-slider[data-origin="left"] .st-slider__track::after { left: 0; }
.st-slider__fill { position: absolute; top: 8px; height: 2px; background: var(--ink); }
.st-slider__knob { position: absolute; top: 2px; width: 6px; height: 14px; margin-left: -3px; background: var(--ink); border-radius: 1px; }
.st-slider__track:focus-visible { outline-offset: 1px; }
.st-slider[data-changed="true"] .st-slider__name { color: var(--ink); }
.st-slider[data-changed="true"] .st-slider__name::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 6px; background: var(--ink); vertical-align: 2px; }

/* ---------- panels, lists, rows ---------- */
.st-panel { background: var(--surface-1); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.st-panel__head { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); font: 700 14px/18px var(--font-text); border-bottom: 1px solid var(--line); min-height: 36px; }
.st-panel__body { padding: var(--space-3); display: grid; gap: var(--space-3); align-content: start; overflow: auto; min-height: 0; }
.st-sec { font: 600 11px/14px var(--font-text); letter-spacing: 0.01em; color: var(--ink-3); padding: var(--space-3) var(--space-3) var(--space-1); display: flex; align-items: center; gap: var(--space-2); }
.st-row { display: flex; align-items: center; gap: var(--space-2); width: 100%; min-height: var(--size-control); padding: 0 var(--space-3); border: 0; background: transparent; color: var(--ink-2); text-align: left; border-radius: 0; }
.st-row:hover { background: var(--surface-3); color: var(--ink); }
.st-row[aria-current="true"], .st-row[aria-selected="true"] { background: var(--ink); color: var(--ink-inverse); }
.st-row__meta { margin-left: auto; font: 450 12px/16px var(--font-mono); font-variant-numeric: tabular-nums; opacity: 0.86; font-variation-settings: "wdth" 87; }
.st-row:focus-visible { outline-offset: -2px; box-shadow: none; }
.st-rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.st-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); padding: 0 var(--space-2); }
.st-tab { height: 32px; padding: 0 var(--space-2); border: 0; background: transparent; color: var(--ink-2); font: 600 12px/16px var(--font-text); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.st-tab:hover { color: var(--ink); }
.st-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- presets ---------- */
.st-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: var(--space-2); }
.st-preset { border: 0; padding: 0; background: var(--surround); color: inherit; text-align: left; }
.st-preset canvas, .st-preset img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.st-preset .st-edge { height: 18px; font-family: var(--font-text); font-size: 11px; letter-spacing: 0; color: var(--ink-2); padding: 0 4px; }
.st-preset[aria-pressed="true"] .st-edge { background: var(--ink); color: var(--ink-inverse); }
.st-preset[aria-pressed="true"] { outline: 2px solid var(--ink); }

/* ---------- menus ---------- */
.st-menu { min-width: 220px; padding: var(--space-1); background: var(--surface-2); border-radius: var(--radius-2); box-shadow: var(--shadow-float); display: grid; }
.st-menu__item { display: flex; align-items: center; gap: var(--space-2); height: 26px; padding: 0 var(--space-2); border: 0; border-radius: var(--radius-1); background: transparent; color: var(--ink); text-align: left; width: 100%; }
.st-menu__item .st-icon { color: var(--ink-2); width: 16px; height: 16px; }
.st-menu__item:hover, .st-menu__item[data-state="hover"] { background: var(--ink); color: var(--ink-inverse); }
.st-menu__item:hover .st-icon, .st-menu__item[data-state="hover"] .st-icon, .st-menu__item:hover .st-menu__key, .st-menu__item[data-state="hover"] .st-menu__key { color: var(--ink-inverse); }
.st-menu__item[disabled] { opacity: var(--opacity-disabled); pointer-events: none; }
.st-menu__item:focus-visible { outline-offset: -2px; box-shadow: none; }
.st-menu__key { margin-left: auto; padding-left: var(--space-4); font: 450 12px/16px var(--font-mono); color: var(--ink-3); font-variation-settings: "wdth" 87; }
.st-menu__sep { height: 1px; margin: var(--space-1) calc(var(--space-1) * -1); background: var(--line); }
.st-menu__head { padding: var(--space-1) var(--space-2) 2px; font: 600 11px/14px var(--font-text); color: var(--ink-3); }

/* ---------- dialogs and sheets ---------- */
.st-dialog { width: min(440px, 100%); background: var(--surface-2); border-radius: var(--radius-2); box-shadow: var(--shadow-dialog); padding: var(--space-5); display: grid; gap: var(--space-3); }
.st-dialog h2, .st-dialog h3 { margin: 0; font: 700 22px/28px var(--font-text); text-wrap: balance; }
.st-dialog p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.st-dialog__actions { display: flex; gap: var(--space-2); justify-content: flex-end; margin-top: var(--space-2); flex-wrap: wrap; }
.st-dialog__facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px var(--space-3); font: 450 12px/16px var(--font-mono); font-variant-numeric: tabular-nums; padding: var(--space-2) var(--space-3); background: var(--rebate); color: var(--ink-2); font-variation-settings: "wdth" 87; }
.st-dialog__facts dt { color: var(--ink-3); } .st-dialog__facts dd { margin: 0; color: var(--ink); }
.st-sheet { background: var(--surface-2); box-shadow: var(--shadow-dialog); padding: var(--space-4); border-radius: 0 0 var(--radius-2) var(--radius-2); display: grid; gap: var(--space-3); }
.st-backdrop { background: var(--scrim); display: grid; place-items: center; padding: var(--space-5); }

/* ---------- notices ---------- */
.st-toast { display: flex; align-items: center; gap: var(--space-2); min-height: 36px; padding: var(--space-2) var(--space-3); background: var(--surface-2); border-radius: var(--radius-2); box-shadow: var(--shadow-float); max-width: 440px; }
.st-toast .st-icon { flex: none; }
.st-toast--verified .st-icon { color: var(--verified); } .st-toast--failed .st-icon { color: var(--failed); } .st-toast--copying .st-icon { color: var(--copying); }
.st-toast--safe { background: var(--safe); color: var(--on-safe); box-shadow: none; }
.st-toast__act { margin-left: auto; padding-left: var(--space-3); }
.st-banner { display: flex; align-items: flex-start; gap: var(--space-2); padding: var(--space-2) var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-1); background: var(--surface-1); }
.st-banner--failed { border-color: var(--failed); } .st-banner--failed > .st-icon { color: var(--failed); }
.st-banner--copying > .st-icon { color: var(--copying); }
.st-banner__body { display: grid; gap: 2px; min-width: 0; } .st-banner__body strong { font-weight: 650; }
.st-banner__body span { color: var(--ink-2); }

/* ---------- progress ---------- */
.st-trace { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.st-trace path { fill: none; stroke-width: var(--size-trace); stroke-linecap: butt; vector-effect: non-scaling-stroke; }
.st-trace .t-rail { stroke: var(--line-strong); opacity: 0.5; }
.st-trace .t-copy { stroke: var(--copying); }
.st-trace .t-ok { stroke: var(--verified); }
.st-trace .t-fail { stroke: var(--failed); }
.st-bar { position: relative; height: 4px; background: var(--line); overflow: hidden; }
.st-bar > i { position: absolute; inset: 0 auto 0 0; background: var(--copying); }
.st-bar > i + i { background: var(--verified); }
.st-bar--wait > i { width: 30%; animation: st-wait 1.1s linear infinite; background: var(--ink-3); }
@keyframes st-wait { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.st-count { font: 900 32px/34px var(--font-dot); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; color: var(--ink); font-variation-settings: "ROND" 100; }
.st-count small { font: 450 12px/16px var(--font-mono); color: var(--ink-3); letter-spacing: 0; margin-left: 6px; font-variation-settings: "wdth" 87; }
.st-cap { position: relative; height: 6px; background: var(--line); display: flex; }
.st-cap > i { display: block; height: 100%; background: var(--ink-2); }
.st-cap > i.is-new { background: var(--copying); }

/* ---------- memory card and drive items ---------- */
.st-card { position: relative; display: grid; gap: var(--space-2); padding: var(--space-3); background: var(--surface-2); color: var(--ink); border-radius: var(--radius-3); clip-path: polygon(0 0, calc(100% - var(--size-chamfer)) 0, 100% var(--size-chamfer), 100% 100%, 0 100%); min-width: 0; }
.st-card__top { display: flex; align-items: center; gap: var(--space-2); padding-right: var(--space-3); }
.st-card__name { font: 700 14px/18px var(--font-text); white-space: nowrap; }
.st-card__sub { font: 450 12px/16px var(--font-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 87; }
.st-card__foot { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.st-card[data-state="safe"] { background: var(--safe); color: var(--on-safe); }
.st-card[data-state="safe"] .st-card__sub, .st-card[data-state="safe"] .st-count, .st-card[data-state="safe"] .st-count small { color: var(--on-safe); }
.st-card[data-state="safe"] .st-btn { background: var(--carbon); border-color: var(--carbon); color: var(--chalk); }
.st-card[data-state="failed"] .st-card__sub b { color: var(--failed); font-weight: 500; }
.st-card__notch { display: flex; gap: 3px; }
.st-card__notch i { width: 4px; height: 10px; background: currentColor; opacity: 0.5; }
.st-drive { position: relative; display: grid; gap: var(--space-2); padding: var(--space-3); background: var(--surface-2); min-width: 0; border-radius: var(--radius-3); }
.st-drive[data-state="offline"] { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-2); }

/* ---------- empty state ---------- */
.st-empty { display: grid; gap: var(--space-3); justify-items: start; align-content: center; padding: var(--space-6); max-width: 520px; }
.st-empty h3 { margin: 0; font: 760 36px/1.02 var(--font-display); font-variation-settings: "wdth" 118; text-wrap: balance; }
.st-empty p { margin: 0; color: var(--ink-2); max-width: 46ch; font-size: 14px; line-height: 20px; }
.st-empty__slot { width: 132px; height: 88px; border: 1px dashed var(--line-strong); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); position: relative; }
.st-empty__slot::after { content: ""; position: absolute; top: 0; right: 0; width: 26px; height: 1px; background: var(--line-strong); transform-origin: right top; transform: translate(0, 18px) rotate(45deg); }

/* ---------- command palette ---------- */
.st-palette { width: min(560px, 100%); background: var(--surface-2); border-radius: var(--radius-2); box-shadow: var(--shadow-dialog); overflow: hidden; }
.st-palette__in { display: flex; align-items: center; gap: var(--space-2); padding: 0 var(--space-3); height: 44px; border-bottom: 1px solid var(--line); }
.st-palette__in input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 15px; height: 100%; }
.st-palette__in input::placeholder { color: var(--ink-3); opacity: 1; }
.st-palette__in input:focus-visible { outline: none; box-shadow: none; }
.st-palette__list { padding: var(--space-1); max-height: 300px; overflow: auto; display: grid; }
.st-palette__list .st-menu__item { height: 30px; }
.st-palette__list .st-menu__item[aria-selected="true"] { background: var(--ink); color: var(--ink-inverse); }
.st-palette__list .st-menu__item[aria-selected="true"] .st-icon, .st-palette__list .st-menu__item[aria-selected="true"] .st-menu__key { color: var(--ink-inverse); }
.st-palette__foot { display: flex; gap: var(--space-3); padding: var(--space-1) var(--space-3); border-top: 1px solid var(--line); color: var(--ink-3); font-size: 11px; line-height: 20px; }

/* ---------- settings ---------- */
.st-settings { display: grid; grid-template-columns: 168px 1fr; background: var(--surface-1); min-height: 0; }
.st-settings__nav { border-right: 1px solid var(--line); padding: var(--space-2) 0; }
.st-settings__body { min-width: 0; padding: var(--space-4) var(--space-5); display: grid; gap: var(--space-4); align-content: start; max-width: 620px; }
.st-set { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--space-4); align-items: center; padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.st-set strong { font-weight: 650; } .st-set span { grid-column: 1; color: var(--ink-2); font-size: 12px; line-height: 16px; max-width: 52ch; }
.st-set > :last-child:not(span) { grid-column: 2; grid-row: 1 / span 2; }

/* ---------- window frame ---------- */
.st-win { display: grid; grid-template-rows: auto 1fr; background: var(--surface-0); color: var(--ink); overflow: hidden; box-shadow: var(--shadow-dialog); position: relative; min-width: 0; }
.st-win[data-os="mac"] { border-radius: var(--radius-3); }
.st-win[data-os="win"] { border-radius: var(--radius-2); }
.st-titlebar { display: flex; align-items: center; background: var(--surface-1); border-bottom: 1px solid var(--line); user-select: none; min-width: 0; }
.st-win[data-os="mac"] .st-titlebar { height: var(--size-titlebar-mac); padding: 0 var(--space-3) 0 0; gap: var(--space-3); }
.st-win[data-os="win"] .st-titlebar { height: var(--size-titlebar-win); gap: var(--space-1); padding-left: var(--space-2); }
.st-lights { display: flex; gap: 8px; padding: 0 var(--space-2) 0 13px; flex: none; }
.st-lights i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.st-lights i:nth-child(1) { background: #ff5f57; } .st-lights i:nth-child(2) { background: #febc2e; } .st-lights i:nth-child(3) { background: #28c840; }
.st-win[data-active="false"] .st-lights i { background: var(--line-strong); }
.st-titlebar__title { font: 650 13px/18px var(--font-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.st-titlebar__sub { font: 450 12px/16px var(--font-mono); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-variation-settings: "wdth" 87; }
.st-titlebar__sp { flex: 1; min-width: var(--space-2); }
.st-winmenu { display: flex; }
.st-winmenu button { height: 24px; padding: 0 var(--space-2); border: 0; background: transparent; color: var(--ink-2); border-radius: var(--radius-1); font-size: 12px; }
.st-winmenu button:hover { background: var(--surface-3); color: var(--ink); }
.st-caption { display: flex; flex: none; align-self: stretch; }
.st-caption button { width: 46px; border: 0; background: transparent; color: var(--ink); display: grid; place-items: center; padding: 0; }
.st-caption button:hover { background: var(--surface-3); }
.st-caption button:last-child:hover { background: #c42b1c; color: #fff; }
.st-caption svg { width: 10px; height: 10px; stroke: currentColor; fill: none; }
.st-sysmenu { display: flex; align-items: center; gap: var(--space-3); height: 24px; padding: 0 var(--space-3); background: var(--surface-2); color: var(--ink); font-size: 13px; }
.st-sysmenu b { font-weight: 700; } .st-sysmenu span { color: var(--ink-2); }

/* ---------- app shell: rail, sidebar, main, inspector, status edge ---------- */
.st-app { display: grid; grid-template-columns: auto auto 1fr auto; grid-template-rows: 1fr auto; min-height: 0; min-width: 0; height: 100%; background: var(--surface-0); }
.st-rail { grid-row: 1 / -1; width: 56px; background: var(--rail); color: var(--on-rail); display: flex; flex-direction: column; align-items: center; padding: var(--space-2) 0; gap: 2px; transition: background var(--dur-move) var(--ease-out), color var(--dur-move) var(--ease-out); }
.st-app[data-stage="image"] .st-rail { background: var(--surface-1); color: var(--ink-2); border-right: 1px solid var(--line); }
.st-rail__btn { width: 48px; height: 44px; border: 0; background: transparent; color: inherit; display: grid; justify-items: center; align-content: center; gap: 1px; border-radius: var(--radius-1); font: 600 11px/12px var(--font-text); padding: 0; }
.st-rail__btn:hover { background: rgba(18, 18, 18, 0.14); }
.st-rail__btn[aria-current="page"] { background: var(--carbon); color: var(--chalk); }
.st-app[data-stage="image"] .st-rail__btn:hover { background: var(--surface-3); color: var(--ink); }
.st-app[data-stage="image"] .st-rail__btn[aria-current="page"] { background: var(--ink); color: var(--ink-inverse); }
.st-rail__btn:focus-visible { outline-color: var(--carbon); box-shadow: none; outline-offset: -2px; }
.st-app[data-stage="image"] .st-rail__btn:focus-visible { outline-color: var(--focus); }
.st-rail__sp { flex: 1; }
.st-side { width: var(--size-sidebar); background: var(--surface-1); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; overflow: auto; }
.st-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface-0); grid-column: 3; }
.st-insp { width: var(--size-inspector); background: var(--surface-1); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; overflow: auto; grid-column: 4; }
.st-toolbar { display: flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: var(--space-1) var(--space-3); background: var(--surface-1); border-bottom: 1px solid var(--line); min-width: 0; }
.st-toolbar__sp { flex: 1; min-width: 0; }
.st-toolbar__title { font: 700 14px/18px var(--font-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.st-toolbar__sep { width: 1px; height: 18px; background: var(--line); flex: none; }
.st-status { grid-column: 2 / -1; display: flex; align-items: center; gap: var(--space-3); height: 24px; padding: 0 var(--space-3); background: var(--rebate); color: var(--ink-3); font: 500 12px/16px var(--font-mono); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; font-variation-settings: "wdth" 87; }
.st-status b { color: var(--ink); font-weight: 500; }
.st-status .st-icon { width: 12px; height: 12px; vertical-align: -2px; }
.st-status__sp { flex: 1; }
.st-status .is-ok { color: var(--verified); } .st-status .is-copy { color: var(--copying); } .st-status .is-fail { color: var(--failed); }
.st-win[data-compact="true"] .st-side { width: 0; border: 0; overflow: hidden; }

/* ---------- timeline ---------- */
.st-tl { position: relative; background: var(--surface-1); user-select: none; touch-action: none; }
.st-tl__ruler { position: relative; height: 20px; border-bottom: 1px solid var(--line); font: 500 11px/20px var(--font-mono); color: var(--ink-3); overflow: hidden; font-variation-settings: "wdth" 87; }
.st-tl__ruler span { position: absolute; top: 0; padding-left: 4px; border-left: 1px solid var(--line-strong); height: 100%; }
.st-tl__track { position: relative; height: 64px; margin: var(--space-2) 0; background: var(--surround); overflow: hidden; }
.st-tl__track canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.st-tl__dead { position: absolute; top: 0; bottom: 0; background: radial-gradient(circle, var(--ink) 1.1px, transparent 1.7px) 0 0 / 7px 7px, color-mix(in srgb, var(--surface-0) 72%, transparent); box-shadow: inset 0 0 0 1px var(--line-strong); pointer-events: none; }
.st-tl__shade { position: absolute; top: 0; bottom: 0; background: var(--surface-0); opacity: 0.78; pointer-events: none; }
.st-tl__handle { position: absolute; top: -4px; bottom: -4px; width: 12px; margin-left: -6px; background: var(--ink); cursor: ew-resize; border: 0; padding: 0; border-radius: 1px; display: grid; place-items: center; z-index: 2; }
.st-tl__handle::after { content: ""; width: 2px; height: 16px; background: var(--ink-inverse); }
.st-tl__handle[data-snapped="true"] { background: var(--blue); }
.st-tl__handle[data-snapped="true"]::after { background: var(--on-blue); }
.st-tl__handle:focus-visible { outline-offset: 2px; }
.st-tl__play { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ink); z-index: 3; pointer-events: none; }
.st-tl__play::before { content: ""; position: absolute; top: 0; left: -5px; width: 11px; height: 9px; background: var(--ink); clip-path: polygon(0 0, 100% 0, 100% 45%, 50% 100%, 0 45%); }
.st-tl__cut { position: absolute; top: 20px; bottom: 0; width: 1px; background: var(--ink-3); pointer-events: none; }
.st-tl__wave { position: relative; height: 28px; background: var(--surface-0); overflow: hidden; }
.st-tl__wave canvas { width: 100%; height: 100%; display: block; }
.st-tc { font: 500 15px/20px var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink); font-variation-settings: "wdth" 87; }
.st-tc small { font: 500 12px/16px var(--font-mono); color: var(--ink-3); margin-right: 6px; letter-spacing: 0.02em; font-variation-settings: "wdth" 87; }

/* ---------- the three app moments (dial 0.6) ---------- */
.st-moment { background: var(--safe); color: var(--on-safe); padding: var(--space-4); display: grid; gap: var(--space-2); clip-path: polygon(0 0, calc(100% - var(--size-chamfer-l)) 0, 100% var(--size-chamfer-l), 100% 100%, 0 100%); }
.st-moment h3 { margin: 0; font: 720 24px/1.08 var(--font-display); font-variation-settings: "wdth" 112; text-wrap: balance; }
.st-moment p { margin: 0; font: 450 12px/16px var(--font-mono); font-variation-settings: "wdth" 87; }

/* ---------- reduced motion: nothing spatial, state still crossfades ---------- */
@media (prefers-reduced-motion: reduce) {
  .st-btn:active { transform: none; }
  .st-bar--wait > i { animation: none; width: 100%; opacity: 0.4; }
  .st-btn[data-state="busy"]::after { animation: none; }
  .st-rail, .st-switch::after { transition-duration: 0.01ms; }
}
[data-reduced="true"] .st-bar--wait > i { animation: none; width: 100%; opacity: 0.4; }

/* the readout family, in case a generated tokens.css leaves it out */
:root { --font-dot: "Doto", "Martian Mono", ui-monospace, monospace; }
/* type classes from tokens.css: the axes they need */
.display-xxl, .display-xl, .display-l { font-variation-settings: "wdth" 125; } .display-m, .display-s { font-variation-settings: "wdth" 114; }
.edge, .edge-s, .data, .data-l, .label { font-variation-settings: "wdth" 87; } .label { text-transform: uppercase; }
.readout, .counter { font-variation-settings: "ROND" 100; font-variant-numeric: tabular-nums; }

/* ===== Rig — the website. Scoped to .rg. The site is always on paper with ink text, whatever theme the app is in; brand colours come from the tokens. ===== */
.rg-view { height: 800px; overflow-y: auto; overflow-x: hidden; background: #e6e7e9; scrollbar-color: #13141a transparent; scrollbar-width: thin; position: relative; }
.rg-view:focus-visible { outline: 2px solid #2343ff; outline-offset: -2px; }
.rg { --p: var(--paper); --p2: var(--paper-raised); --ln: #c2c4c9; --ink: var(--carbon); --mut: #45474e; --blue-hi: #4a66ff; --lime: var(--safe); --gr: #15161b; --gr2: #1f2128; --gr-ln: #343742; --chalk-mut: #a6a8ae; --focus: var(--carbon);
  --r-s: 10px; --r-m: 18px; --r-l: 32px; --gut: clamp(20px, 3.1cqi, 40px);
  --f-sans: "Hubot Sans", ui-sans-serif, system-ui, "Segoe UI", sans-serif; --f-mono: "Martian Mono", ui-monospace, "SF Mono", Consolas, monospace; --f-dot: "Doto", "Martian Mono", ui-monospace, monospace;
  container-type: inline-size; position: relative; background: var(--p); color: var(--ink); font: 450 17px/1.55 var(--f-sans); font-variation-settings: "wdth" 100; caret-color: var(--blue); accent-color: var(--blue); -webkit-font-smoothing: antialiased; }
.rg *, .rg *::before, .rg *::after { box-sizing: border-box; }
.rg ::selection { background: var(--blue); color: #fff; }
:where(.rg) :where(h1, h2, h3, p, ol, ul, dl, dd, figure) { margin: 0; padding: 0; }
:where(.rg) :where(ol, ul) { list-style: none; }
:where(.rg) a { color: inherit; }
:where(.rg) :where(img, canvas, svg) { display: block; }
.rg :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.rg-dots { background-image: radial-gradient(circle, var(--ln) 1.1px, transparent 1.7px); background-size: 32px 32px; background-position: 16px 16px; }

/* type */
.rg-d1 { font: 900 clamp(60px, 11.4cqi, 152px)/0.86 var(--f-sans); font-variation-settings: "wdth" 125; letter-spacing: -0.045em; text-wrap: balance; }
.rg-d1--s { font-size: clamp(52px, 9.2cqi, 122px); white-space: nowrap; }
.rg-d2 { font: 900 clamp(38px, 5.6cqi, 76px)/0.94 var(--f-sans); font-variation-settings: "wdth" 125; letter-spacing: -0.04em; text-wrap: balance; }
.rg-d3 { font: 800 clamp(22px, 2.3cqi, 30px)/1.1 var(--f-sans); font-variation-settings: "wdth" 114; letter-spacing: -0.02em; text-wrap: balance; }
.rg-lead { font: 450 clamp(17px, 1.6cqi, 20px)/1.5 var(--f-sans); max-width: 54ch; text-wrap: pretty; }
.rg-body { max-width: 62ch; text-wrap: pretty; }
.rg-m { font: 500 12px/18px var(--f-mono); font-variation-settings: "wdth" 87; letter-spacing: 0.03em; text-transform: uppercase; }
.rg-mono { font: 450 13px/20px var(--f-mono); font-variation-settings: "wdth" 87; }
.rg-ro { font: 900 22px/1 var(--f-dot); font-variation-settings: "ROND" 100; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.rg-mut { color: var(--mut); }
[data-rack] { font-variation-settings: "wdth" 125; }

/* controls */
.rg-btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 20px; border: 0; border-radius: 14px; background: var(--blue); color: #fff; font: 700 15px/1 var(--f-sans); font-variation-settings: "wdth" 108; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 160ms cubic-bezier(.2, .8, .2, 1), background-color 160ms; }
.rg-btn svg { transition: transform 220ms cubic-bezier(.2, .8, .2, 1); }
.rg-btn:hover { background: var(--ink); } .rg-btn:hover svg { transform: translateY(2px); } .rg-btn:active { transform: scale(0.97); }
.rg-btn--ink { background: var(--ink); color: var(--chalk); } .rg-btn--ink:hover { background: var(--blue); color: #fff; }
.rg-btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); } .rg-btn--line:hover { background: var(--ink); color: var(--chalk); }
.rg-btn--lime { background: var(--lime); color: var(--ink); } .rg-btn--lime:hover { background: #fff; color: var(--ink); }
.rg-btn--s { height: 40px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.rg-on-dark .rg-btn--line { color: var(--chalk); box-shadow: inset 0 0 0 1.5px var(--chalk); } .rg-on-dark .rg-btn--line:hover { background: var(--chalk); color: var(--ink); }
.rg-on-dark { --focus: var(--lime); }
.rg-link { font-weight: 650; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.rg-link:hover { color: var(--blue); } .rg-on-dark .rg-link:hover { color: var(--lime); }
.rg-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.rg-key { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 8px; background: var(--gr2); color: var(--chalk); box-shadow: inset 0 0 0 1px var(--gr-ln), inset 0 -2px 0 var(--gr-ln); font: 600 12px/1 var(--f-mono); font-variation-settings: "wdth" 87; }
.rg-chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 10px; background: var(--p2); box-shadow: inset 0 0 0 1px var(--ln); white-space: nowrap; }
.rg-chip--ink { background: var(--ink); color: var(--chalk); box-shadow: none; } .rg-chip--lime { background: var(--lime); color: var(--ink); box-shadow: none; } .rg-chip--blue { background: var(--blue); color: #fff; box-shadow: none; }

/* nav */
.rg-nav { position: sticky; top: 12px; z-index: 30; margin: 12px var(--gut) 0; height: 60px; padding: 0 10px 0 14px; display: flex; align-items: center; gap: 28px; background: var(--p2); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--ln); }
.rg-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; border-radius: 10px; padding: 2px 4px 2px 0; }
.rg-nav__links { display: flex; gap: 4px; margin-right: auto; }
.rg-nav__links a { height: 36px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 10px; font: 600 15px/1 var(--f-sans); text-decoration: none; }
.rg-nav__links a:hover { background: var(--p); } .rg-nav__links a[aria-current="page"] { background: var(--ink); color: var(--chalk); }
.rg-nav__ver { color: var(--mut); }

/* wavy edges */
.rg-edge { position: absolute; left: 0; width: 100%; height: 44px; pointer-events: none; }
.rg-edge--top { top: -43px; } .rg-edge--bottom { bottom: -43px; transform: scaleY(-1); }

/* hero */
.rg-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 24px; padding: 28px var(--gut) 56px; min-height: 716px; align-items: stretch; }
.rg-hero__copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; padding-bottom: 8px; pointer-events: none; }
.rg-hero__copy > * { pointer-events: auto; }
.rg-hero__copy .rg-d1 { margin-bottom: 6px; white-space: nowrap; pointer-events: none; }
.rg-rackin { animation: rg-rack 1100ms cubic-bezier(.16, 1, .3, 1) both; }
.rg-hero__copy .rg-lead { max-width: 47ch; }
@keyframes rg-rack { from { font-variation-settings: "wdth" 75; letter-spacing: -0.01em; opacity: 0.2; } to { font-variation-settings: "wdth" 125; } }
.rg-stage-blue { position: relative; border-radius: 40px; background: var(--blue); color: #fff; min-height: 600px; --focus: var(--lime); }
.rg-hero__cam { position: absolute; z-index: 2; left: -34%; top: -3%; width: 142%; height: 100%; }
.rg-evf { position: absolute; inset: 22px; pointer-events: none; z-index: 3; }
.rg-evf__c { position: absolute; width: 34px; height: 34px; border: 2.5px solid #fff; }
.rg-evf__c:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.rg-evf__c:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.rg-evf__c:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; }
.rg-evf__c:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.rg-evf__top, .rg-evf__bot { position: absolute; left: 22px; right: 22px; display: flex; align-items: center; gap: 18px; }
.rg-evf__top { top: 16px; } .rg-evf__bot { bottom: 14px; justify-content: space-between; }
.rg-evf__bot .rg-ro { font-size: 30px; }
.rg-evf__af { position: absolute; left: calc(50% - 37px); top: calc(50% - 37px); width: 74px; height: 74px; border: 2.5px solid var(--lime); outline: 1.5px solid var(--ink); border-radius: 18px; animation: rg-af 2.6s cubic-bezier(.3, 0, .2, 1) infinite; }
@keyframes rg-af { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.86); opacity: 0.75; } }
.rg-slot { display: inline-flex; align-items: center; gap: 6px; }
.rg-slot i { width: 10px; height: 10px; border-radius: 3px; background: var(--lime); }
.rg-slot i.is-off { background: transparent; box-shadow: inset 0 0 0 2px #fff; border-radius: 50%; }
.rg-batt { margin-left: auto; width: 34px; height: 16px; border: 2px solid #fff; border-radius: 5px; padding: 2px; position: relative; } .rg-batt::before { content: ""; display: block; height: 100%; width: 72%; background: #fff; border-radius: 2px; } .rg-batt::after { content: ""; position: absolute; right: -6px; top: 3px; width: 3px; height: 6px; background: #fff; border-radius: 0 2px 2px 0; }

/* wave band */
.rg-band { position: relative; background: var(--lime); color: var(--ink); margin-top: 44px; padding: 6px 0; z-index: 1; }
.rg-band svg.rg-band__txt { width: 100%; height: clamp(120px, 15cqi, 190px); overflow: visible; }
.rg-band text { font: 900 68px/1 var(--f-sans); font-variation-settings: "wdth" 125; letter-spacing: -0.03em; fill: var(--ink); }

/* the path */
.rg-sec { position: relative; padding: clamp(72px, 9cqi, 120px) var(--gut); }
.rg-sec__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px; align-items: end; margin-bottom: 56px; }
.rg-path__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4cqi, 56px); align-items: start; }
.rg-stage { position: sticky; top: 92px; height: 660px; border-radius: 40px; background: var(--blue); color: #fff; overflow: hidden; transition: background-color 500ms cubic-bezier(.2, .8, .2, 1), color 500ms; }
.rg-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rg-stage__word { position: absolute; left: 28px; bottom: 22px; font: 900 clamp(44px, 5.4cqi, 72px)/1 var(--f-dot); font-variation-settings: "ROND" 100; letter-spacing: 0.01em; pointer-events: none; }
.rg-stage__pips { position: absolute; right: 28px; top: 28px; display: flex; gap: 6px; pointer-events: none; }
.rg-stage__pips i { width: 12px; height: 12px; border-radius: 4px; box-shadow: inset 0 0 0 2px currentColor; transition: background-color 300ms, transform 300ms cubic-bezier(.16, 1, .3, 1); } .rg-stage__pips i.is-on { background: currentColor; transform: scale(1.25); }
.rg-stage__hint { position: absolute; left: 28px; top: 26px; pointer-events: none; opacity: 0.85; }
.rg-stage[data-step="1"], .rg-stage[data-step="5"] { background: var(--gr); color: var(--chalk); }
.rg-stage[data-step="2"] { background: var(--lime); color: var(--ink); }
.rg-stage[data-step="3"] { background: var(--coral); color: var(--ink); }
.rg-stage[data-step="4"] { background: var(--amber); color: var(--ink); }
.rg-steps { display: grid; gap: 28px; padding: 8px 0 80px; }
.rg-step { min-height: 440px; display: flex; flex-direction: column; justify-content: center; gap: 14px; opacity: 0.72; transition: opacity 300ms; }
.rg-step.is-on { opacity: 1; }
.rg-step .rg-vg { margin-top: 10px; }

/* vignettes: straight-on fragments of the app */
.rg-vg { background: var(--gr); color: var(--chalk); border-radius: 22px; padding: 18px; --focus: var(--lime); font: 450 13px/20px var(--f-mono); font-variation-settings: "wdth" 87; display: grid; gap: 12px; }
.rg-vg__h { display: flex; align-items: center; gap: 10px; color: var(--chalk-mut); }
.rg-vg__h b { color: var(--chalk); font-weight: 600; }
.rg-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 12px; background: var(--gr2); }
.rg-row small { font-size: 12px; color: var(--chalk-mut); }
.rg-bar { height: 8px; border-radius: 4px; background: var(--gr-ln); overflow: hidden; } .rg-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--amber); transition: width 1600ms cubic-bezier(.3, 0, .2, 1), background-color 300ms 1500ms; }
.is-on .rg-bar i { width: 100%; background: var(--lime); }
.rg-st { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; } .rg-st--ok { color: var(--lime); } .rg-st--wait { color: var(--chalk-mut); }
.rg-safe { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--lime); color: var(--ink); font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity 300ms 1900ms, transform 400ms cubic-bezier(.16, 1, .3, 1) 1900ms; }
.is-on .rg-safe { opacity: 1; transform: none; }
.rg-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.rg-th { position: relative; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: #0c0d10; }
.rg-th img { width: 100%; height: 100%; object-fit: cover; }
.rg-th[data-flag="reject"] img { opacity: 0.28; }
.rg-flag { position: absolute; left: 6px; top: 6px; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--lime); color: var(--ink); }
.rg-th[data-flag="reject"] .rg-flag { background: var(--chalk); border-radius: 50%; }
.rg-th[data-flag=""] .rg-flag { display: none; }
.rg-keys { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--chalk-mut); } .rg-keys span { display: inline-flex; gap: 6px; align-items: center; }
.rg-clipr { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 16px; align-items: center; }
.rg-clip { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0c0d10 center / cover no-repeat; }
.rg-clip canvas { width: 100%; height: 100%; } .rg-clip canvas[data-noclip="true"] { visibility: hidden; }
.rg-clip button { position: absolute; left: 8px; bottom: 8px; width: 32px; height: 32px; border: 0; border-radius: 10px; background: #0c0d10; color: var(--chalk); display: grid; place-items: center; cursor: pointer; } .rg-clip button:hover { background: var(--lime); color: var(--ink); }
.rg-tl__head { position: absolute; top: 6px; bottom: 6px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--chalk); left: 6%; opacity: 0; transition: opacity 300ms 900ms; } .is-on .rg-tl__head { opacity: 1; }
.rg-tl { position: relative; height: 64px; border-radius: 12px; background: var(--gr2); overflow: hidden; }
.rg-tl__wave { position: absolute; inset: 10px 0; display: flex; align-items: center; gap: 2px; padding: 0 6px; } .rg-tl__wave i { flex: 1; border-radius: 2px; background: var(--chalk-mut); min-width: 0; }
.rg-tl__wave i.is-dead { background: var(--gr-ln); }
.rg-tl__keep { position: absolute; top: 0; bottom: 0; left: 6%; right: 100%; border-radius: 12px; box-shadow: inset 0 0 0 2.5px var(--lime); background: rgba(201, 242, 75, 0.12); transition: right 900ms cubic-bezier(.2, .8, .2, 1) 200ms; }
.is-on .rg-tl__keep { right: 13%; }
.rg-tl__keep::before, .rg-tl__keep::after { content: ""; position: absolute; top: 18px; bottom: 18px; width: 6px; border-radius: 3px; background: var(--lime); } .rg-tl__keep::before { left: 7px; } .rg-tl__keep::after { right: 7px; }
.rg-tc { display: grid; gap: 8px; } .rg-tc span { display: inline-flex; align-items: baseline; gap: 8px; color: var(--chalk-mut); } .rg-tc b { font: 900 20px/1 var(--f-dot); font-variation-settings: "ROND" 100; color: var(--chalk); }
.rg-edit { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; align-items: center; }
.rg-edit figure { border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 2; background: #0c0d10; } .rg-edit img { width: 100%; height: 100%; object-fit: cover; }
.rg-sl { display: grid; grid-template-columns: 84px minmax(0, 1fr) 52px; gap: 10px; align-items: center; min-height: 34px; } .rg-sl output { text-align: right; color: var(--chalk); }
.rg-sl label { color: var(--chalk-mut); }
.rg-sl input { appearance: none; -webkit-appearance: none; width: 100%; height: 24px; background: transparent; margin: 0; cursor: ew-resize; }
.rg-sl input::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--gr-ln); } .rg-sl input::-moz-range-track { height: 6px; border-radius: 3px; background: var(--gr-ln); }
.rg-sl input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 6px; background: var(--chalk); border: 0; } .rg-sl input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 6px; background: var(--chalk); border: 0; }
.rg-list { display: grid; gap: 6px; } .rg-list .rg-row { grid-template-columns: 150px minmax(0, 1fr) auto; }
.rg-list b { font-weight: 600; }

/* verify */
.rg-verify { position: relative; background: var(--blue); color: #fff; padding: clamp(80px, 9cqi, 128px) var(--gut) clamp(72px, 8cqi, 112px); margin-top: 44px; --focus: var(--lime); }
.rg-verify__flow { position: relative; height: 300px; margin: 44px calc(var(--gut) * -1) 36px; }
.rg-verify__flow canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rg-verify__flow .rg-chip { position: absolute; transform: translateY(-50%); height: 36px; }
.rg-hash { background: var(--gr); color: var(--chalk); border-radius: 22px; padding: 10px; display: grid; gap: 4px; font: 450 13px/20px var(--f-mono); font-variation-settings: "wdth" 87; }
.rg-hash__r { display: grid; grid-template-columns: 150px repeat(3, minmax(0, 1fr)) 34px; gap: 14px; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 12px; }
.rg-hash__r:not(.rg-hash__hd) { background: var(--gr2); } .rg-hash__hd { color: var(--chalk-mut); min-height: 30px; }
.rg-hash__r span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rg-hash__r span.is-busy { color: var(--amber); } .rg-hash__r .rg-st { justify-self: end; }
.rg-lcd { display: flex; flex-wrap: wrap; gap: 10px 36px; margin-top: 36px; padding-left: 14px; font: 900 clamp(22px, 2.6cqi, 34px)/1 var(--f-dot); font-variation-settings: "ROND" 100; letter-spacing: 0.02em; color: var(--lime); }

/* cull demo */
.rg-cull { position: relative; margin: 0 12px; border-radius: 40px; background: var(--gr); color: var(--chalk); padding: clamp(64px, 7cqi, 96px) calc(var(--gut) - 12px) 40px; --focus: var(--lime); }
.rg-cull .rg-lead { color: var(--chalk-mut); }
.rg-cull__ui { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: 16px; border-radius: 26px; outline: none; }
.rg-cull__ui:focus-visible { outline: 2px solid var(--lime); outline-offset: 6px; }
.rg-viewer { position: relative; border-radius: 22px; background: #0c0d10; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; }
.rg-viewer__im { position: absolute; inset: 20px 20px 56px; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; }
.rg-viewer img { height: 100%; width: auto; max-width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.rg-viewer img.is-in { animation: rg-in 260ms cubic-bezier(.2, .8, .2, 1); }
@keyframes rg-in { from { transform: translateX(28px) scale(0.985); opacity: 0.2; } }
.rg-viewer__meta { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; gap: 8px; color: var(--chalk); }
.rg-viewer__meta span { background: #0c0d10; padding: 3px 9px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-stamp { position: absolute; right: 22px; top: 20px; height: 40px; padding: 0 14px 0 10px; display: none; align-items: center; gap: 8px; background: var(--lime); color: var(--ink); border-radius: 12px; font: 700 15px/1 var(--f-sans); }
.rg-viewer[data-flag="pick"] .rg-stamp--p, .rg-viewer[data-flag="reject"] .rg-stamp--x { display: inline-flex; animation: rg-stamp 320ms cubic-bezier(.16, 1, .3, 1); }
.rg-stamp--x { background: var(--chalk); border-radius: 20px; }
@keyframes rg-stamp { from { transform: scale(1.5); opacity: 0; } }
.rg-tally { background: var(--gr2); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.rg-tally dl { display: grid; gap: 12px; } .rg-tally dt { color: var(--chalk-mut); display: flex; align-items: center; gap: 8px; } .rg-tally dd { font: 900 44px/1 var(--f-dot); font-variation-settings: "ROND" 100; }
.rg-tally .rg-btns { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rg-tbtn { height: 44px; border: 0; border-radius: 12px; background: var(--gr); color: var(--chalk); box-shadow: inset 0 0 0 1px var(--gr-ln); font: 650 14px/1 var(--f-sans); display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.rg-tbtn:hover { background: var(--gr-ln); } .rg-tbtn:active { transform: scale(0.97); }
.rg-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.rg-strip .rg-th { cursor: pointer; border: 0; padding: 0; } .rg-strip .rg-th[aria-current="true"] { outline: 2.5px solid var(--chalk); outline-offset: 2px; }
.rg-strip .rg-flag { width: 20px; height: 20px; left: 4px; top: 4px; border-radius: 6px; }

/* spec table */
.rg-spec { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5cqi, 72px); align-items: start; }
.rg-dl { border-top: 1.5px solid var(--ink); } .rg-dl div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--ln); align-items: baseline; }
.rg-dl dt { color: var(--mut); } .rg-dl dd { font: 500 14px/22px var(--f-mono); font-variation-settings: "wdth" 87; }

/* close */
.rg-close { position: relative; margin: 0 12px 12px; border-radius: 40px; background: var(--lime); color: var(--ink); padding: clamp(56px, 6cqi, 88px) calc(var(--gut) - 12px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 24px; align-items: center; overflow: hidden; min-height: 460px; }
.rg-close canvas { width: 100%; height: 400px; margin: -30px 0; }
.rg-close__copy { display: grid; gap: 22px; }

/* footer */
.rg-foot { background: var(--ink); color: var(--chalk); margin: 0 12px 12px; border-radius: 40px; padding: 48px calc(var(--gut) - 12px) 0; --focus: var(--lime); overflow: hidden; }
.rg-foot__cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.6fr)); gap: 32px; }
.rg-foot__cols ul { display: grid; gap: 8px; margin-top: 12px; } .rg-foot__cols a { text-decoration: none; } .rg-foot__cols a:hover { color: var(--lime); }
.rg-foot .rg-m { color: var(--chalk-mut); }
.rg-foot__big { margin: 36px -0.5% 0; padding-bottom: 30px; }
.rg-foot__fine { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 44px; padding-top: 20px; border-top: 1px solid #2c2e37; color: var(--chalk-mut); }

/* pricing */
.rg-phero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 24px; padding: 56px var(--gut) 24px; align-items: end; }
.rg-phero .rg-stage-blue { min-height: 360px; overflow: hidden; } .rg-phero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rg-plans { position: relative; margin: 32px var(--gut) 0; display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); }
.rg-plans > div { position: relative; padding: 14px 18px; border-bottom: 1px solid var(--ln); display: flex; align-items: center; min-height: 52px; }
.rg-plans > div.is-hd { align-items: flex-start; flex-direction: column; gap: 6px; padding: 24px 18px 22px; border-bottom: 1.5px solid var(--ink); }
.rg-plans > div.is-ft { border-bottom: 0; padding: 20px 18px 24px; }
.rg-plans > div.is-on { background: var(--blue); color: #fff; border-bottom-color: rgba(255, 255, 255, 0.28); --focus: var(--lime); }
.rg-plans > div.is-hd.is-on { border-radius: 28px 28px 0 0; } .rg-plans > div.is-ft.is-on { border-radius: 0 0 28px 28px; }
.rg-plans > div.is-hd.is-on { border-bottom-color: #fff; }
.rg-price { font: 900 clamp(34px, 4.4cqi, 56px)/1 var(--f-sans); font-variation-settings: "wdth" 125; letter-spacing: -0.04em; }
.rg-plans .rg-yes { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: var(--ink); color: var(--chalk); } .rg-plans .is-on .rg-yes { background: var(--lime); color: var(--ink); }
.rg-plans .rg-no { width: 14px; height: 2.5px; border-radius: 2px; background: var(--mut); margin-left: 6px; } .rg-plans .is-on .rg-no { background: #fff; }
.rg-note { margin: 18px var(--gut) 0; color: var(--mut); }
.rg-faq { display: grid; gap: 10px; }
.rg-faq details { background: var(--p2); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--ln); }
.rg-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font: 700 18px/1.3 var(--f-sans); font-variation-settings: "wdth" 108; border-radius: 18px; } .rg-faq summary::-webkit-details-marker { display: none; }
.rg-faq summary i { flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--ink); position: relative; transition: background-color 200ms; }
.rg-faq summary i::before, .rg-faq summary i::after { content: ""; position: absolute; left: 9px; right: 9px; top: 14px; height: 2.5px; border-radius: 2px; background: var(--chalk); } .rg-faq summary i::after { transform: rotate(90deg); }
.rg-faq summary i::after { transition: transform 300ms cubic-bezier(.16, 1, .3, 1); }
.rg-faq details[open] summary i { background: var(--blue); } .rg-faq details[open] summary i::after { transform: rotate(0deg); }
.rg-faq details p { padding: 0 20px 20px; max-width: 64ch; }

/* download */
.rg-dls { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 16px; margin: 36px var(--gut) 0; }
.rg-dlc { position: relative; border-radius: 32px; padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 380px; overflow: hidden; }
.rg-dlc--main { background: var(--blue); color: #fff; --focus: var(--lime); } .rg-dlc--alt { background: var(--p2); box-shadow: inset 0 0 0 1px var(--ln); }
.rg-dlc canvas { position: absolute; right: -3%; top: -8%; width: 50%; height: 74%; }
.rg-dlc__b { margin-top: auto; display: grid; gap: 14px; position: relative; }
.rg-sha { display: grid; gap: 4px; } .rg-sha code { font: 450 12px/18px var(--f-mono); font-variation-settings: "wdth" 87; overflow-wrap: anywhere; }
.rg-code { position: relative; background: var(--gr); color: var(--chalk); border-radius: 22px; padding: 22px 24px; font: 450 13px/24px var(--f-mono); font-variation-settings: "wdth" 87; white-space: pre-wrap; overflow-wrap: anywhere; --focus: var(--lime); }
.rg-code b { color: var(--lime); font-weight: 500; } .rg-code i { color: var(--chalk-mut); font-style: normal; }
.rg-copy { height: 34px; padding: 0 12px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.16); color: inherit; font: 600 12px/1 var(--f-mono); font-variation-settings: "wdth" 87; text-transform: uppercase; letter-spacing: 0.03em; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; justify-self: start; }
.rg-dlc--alt .rg-copy { background: var(--p); box-shadow: inset 0 0 0 1px var(--ln); } .rg-copy:hover { background: var(--ink); color: var(--chalk); }

/* narrow */
@container (max-width: 900px) {
  .rg-nav__links a:not([aria-current]) { display: none; } .rg-nav__ver { display: none; }
  .rg-hero, .rg-sec__head, .rg-path__body, .rg-spec, .rg-close, .rg-phero, .rg-dls, .rg-edit, .rg-clipr { grid-template-columns: minmax(0, 1fr); }
  .rg-hero__copy .rg-d1 { white-space: normal; } .rg-stage-blue { min-height: 420px; } .rg-hero__cam { left: -10%; width: 120%; }
  .rg-stage { position: relative; top: 0; height: 360px; } .rg-step { min-height: 0; opacity: 1; }
  .rg-cull__ui { grid-template-columns: minmax(0, 1fr); } .rg-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .rg-hash__r { grid-template-columns: 120px minmax(0, 1fr) 34px; } .rg-hash__r span:nth-child(3), .rg-hash__r span:nth-child(4) { display: none; }
  .rg-foot__cols { grid-template-columns: 1fr 1fr; } .rg-row, .rg-list .rg-row { grid-template-columns: minmax(0, 1fr) auto; } .rg-row .rg-bar { display: none; }
  .rg-plans { grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.8fr)); font-size: 14px; } .rg-plans > div { padding: 12px 8px; }
}
@container (max-width: 640px) {
  .rg-nav { gap: 10px; } .rg-nav__links { visibility: hidden; } .rg-evf__top .rg-slot { display: none; } .rg-evf__bot .rg-ro { font-size: 22px; }
  .rg-d1--s { white-space: normal; } .rg-dlc canvas { display: none; }
  .rg-list .rg-row small { display: none; } .rg-list .rg-row b { overflow-wrap: anywhere; }
  .rg-plans { display: none; } .rg .rg-pstack { display: grid; }
  .rg-viewer { aspect-ratio: 4 / 3; } .rg-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } .rg-band text { font-size: 96px; }
  .rg-dl div { grid-template-columns: minmax(0, 1fr); gap: 4px; } .rg-cull, .rg-close, .rg-foot { border-radius: 28px; } .rg-stage-blue, .rg-stage { border-radius: 28px; }
}
@container (min-width: 1500px) { .rg-hero, .rg-sec, .rg-phero { padding-left: calc((100cqi - 1420px) / 2); padding-right: calc((100cqi - 1420px) / 2); } .rg-plans, .rg-dls, .rg-note { margin-left: calc((100cqi - 1420px) / 2); margin-right: calc((100cqi - 1420px) / 2); } }
@media (prefers-reduced-motion: reduce) {
  .rg-evf__af, .rg-viewer img.is-in, .rg-viewer .rg-stamp, .rg-rackin { animation: none !important; }
  .rg-bar i, .rg-safe, .rg-tl__keep, .rg-tl__head, .rg-stage, .rg-step, .rg-btn, .rg-btn svg, .rg-faq summary i, .rg-stage__pips i { transition: none !important; }
}
.rg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rg-gap { height: clamp(40px, 5cqi, 72px); }
/* no WebGL: a lens ring stands in for the 3D object */
.rg canvas[data-nogl="true"] { background: radial-gradient(circle closest-side, transparent 0 30%, var(--lime) 31% 41%, transparent 42%) center / contain no-repeat; }
.rg-verify__flow canvas[data-nogl="true"] { background: linear-gradient(var(--lime), var(--lime)) center / 100% 3px no-repeat; }
.rg-pstack { display: none; gap: 12px; margin: 28px var(--gut) 0; }
.rg-pstack section { border-radius: 28px; padding: 22px; display: grid; gap: 10px; background: var(--p2); box-shadow: inset 0 0 0 1px var(--ln); }
.rg-pstack section.is-on { background: var(--blue); color: #fff; box-shadow: none; --focus: var(--lime); }
.rg-pstack ul { display: grid; gap: 8px; margin: 6px 0 10px; } .rg-pstack li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 16px; line-height: 1.4; }
.rg-pstack .rg-yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--ink); color: var(--chalk); } .rg-pstack .is-on .rg-yes { background: var(--lime); color: var(--ink); }
/* docs */
.rg-docs { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: clamp(28px, 5cqi, 72px); padding: 56px var(--gut) 24px; align-items: start; }
.rg-side { position: sticky; top: 96px; display: grid; gap: 12px; } .rg-side ul { display: grid; gap: 2px; }
.rg-side a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; font: 600 15px/1.3 var(--f-sans); } .rg-side a:hover { background: var(--p2); } .rg-side a[aria-current="page"] { background: var(--ink); color: var(--chalk); }
.rg-art { display: grid; gap: 18px; max-width: 760px; } .rg-art .rg-d3 { margin-top: 18px; } .rg-art .rg-d1 { white-space: normal; margin-bottom: 4px; }
.rg-ol { counter-reset: s; display: grid; gap: 10px; max-width: 62ch; } .rg-ol li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.rg-ol li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--ink); color: var(--chalk); font: 600 13px/1 var(--f-mono); }
.rg-callout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 22px 24px; border-radius: 22px; background: var(--lime); color: var(--ink); margin-top: 10px; } .rg-callout .rg-d3 { margin: 0 0 6px; } .rg-callout p { max-width: 58ch; }
@container (max-width: 900px) { .rg-docs { grid-template-columns: minmax(0, 1fr); } .rg-side { position: static; } .rg-side ul { grid-template-columns: 1fr 1fr; } }
/* portal overrides */
.rg-skip { position: absolute; left: 12px; top: -64px; z-index: 40; height: 44px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 12px; background: var(--ink); color: var(--chalk); font: 700 15px/1 var(--f-sans); text-decoration: none; }
.rg-skip:focus { top: 12px; }
.rg-art .rg-rackin { transform-origin: left; animation-name: rg-rack-in; }
@keyframes rg-rack-in { from { transform: scaleX(0.62); opacity: 0.2; } }
@container (max-width: 900px) { .rg-rackin { transform-origin: left; animation-name: rg-rack-in; } }
@container (max-width: 640px) {
  .rg-nav__links { display: none; } .rg-nav .rg-btn--line { margin-left: auto; } .rg .rg-nav__menu { width: 44px; height: 44px; }
  .rg-nav[data-open] .rg-nav__links { display: flex; }
  .rg-btn--s, .rg-copy, .rg-sl input { height: 44px; }
  .rg-dlc { min-height: 0; }
  .rg-side a { min-height: 44px; display: flex; align-items: center; }
  .rg-foot__cols ul { gap: 0; } .rg-foot__cols a { display: inline-block; padding: 10px 0; }
}
@media (max-height: 500px) {
  @container (max-width: 900px) {
    .rg-docs { padding-top: 24px; }
    .rg-side > .rg-m, .rg-side > .rg-vg { display: none; }
    .rg-side ul { display: flex; flex-wrap: wrap; gap: 4px 8px; }
  }
}
