/* Forgekeeper's Atelier, ported from web/src/components/appearance-admin/*.module.css.
   Class prefixes: ac- control centre shell, sc- style catalogue, aw- asset review
   workbench, rm- rig & motion workbench. No web fonts: system stacks only. */

:root {
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", "P052", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; background: #101124; color: #fdf8e8; font: 15px/1.4 var(--font-ui); }
h1, h2, h3, h4, p, dl, dd, figure, fieldset, pre { margin: 0; }
button, select, input { font: inherit; color: inherit; }
img { display: block; }
.error { color: #ff9489; }

/* ------------------------------------------------------------ gate screens */
.gate-screen { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 52% 6%, #34345b 0, transparent 29rem), linear-gradient(145deg, #101124, #17152a 56%, #0d0e1d); }
.gate-card { max-width: 460px; display: grid; justify-items: center; gap: 14px; text-align: center; padding: 34px 30px; border: 1px solid #d4af3766; border-radius: 18px; background: linear-gradient(145deg, #2f3155, #222340); box-shadow: 0 18px 60px #090a16a8; }
.gate-card h1 { font: 700 26px/1.15 var(--font-display); }
.gate-card p { color: #c7c7d6; line-height: 1.5; }
.gate-primary { min-height: 44px; padding: 9px 20px; border: 1px solid #f7d983; border-radius: 999px; background: #f3cf67; color: #2b1d0e; font-weight: 800; cursor: pointer; }
.gate-primary:focus-visible { outline: 3px solid #78e6d8; outline-offset: 3px; }

/* ------------------------------------------------------------ ac: control centre shell */
.ac-shell { --atelier-night: #101124; --atelier-ink: #21192d; --atelier-panel: #242542; --atelier-line: #d4af3766; --atelier-gold: #f3cf67; --atelier-mint: #78e6d8; --atelier-cream: #fdf8e8; --atelier-muted: #c7c7d6; --atelier-radius: 18px; min-height: 100dvh; background: radial-gradient(circle at 52% 6%, #34345b 0, transparent 29rem), linear-gradient(145deg, #101124, #17152a 56%, #0d0e1d); color: var(--atelier-cream); display: grid; grid-template-columns: 245px minmax(0, 1fr); grid-template-rows: auto 1fr; font-family: var(--font-ui); isolation: isolate; }
.ac-shell:not([hidden]) { display: grid; }
.ac-topbar { grid-column: 1 / -1; min-height: 76px; padding: 12px clamp(18px, 3vw, 46px); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--atelier-line); background: #111126e8; backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 5; }
.ac-brand { color: inherit; text-decoration: none; display: flex; gap: 12px; align-items: center; font-family: var(--font-display); }
.ac-brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #f3cf67; border-radius: 50%; color: #f3cf67; font-size: 23px; box-shadow: inset 0 0 14px #f3cf6733; }
.ac-brand strong, .ac-brand small { display: block; }
.ac-brand strong { font-size: 15px; letter-spacing: .03em; }
.ac-brand small { font-family: var(--font-ui); font-size: 10px; color: var(--atelier-muted); letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }
.ac-topbar-meta { font-size: 12px; color: var(--atelier-muted); display: flex; align-items: center; gap: 8px; }
.ac-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--atelier-mint); box-shadow: 0 0 12px var(--atelier-mint); }
.ac-user { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--atelier-line); }
.ac-signout { min-height: 32px; padding: 5px 11px; border: 1px solid var(--atelier-line); border-radius: 8px; background: transparent; color: var(--atelier-cream); font-size: 12px; font-weight: 700; cursor: pointer; }
.ac-signout:hover { background: #f3cf6724; }

.ac-sidebar { padding: 27px 18px; border-right: 1px solid var(--atelier-line); background: linear-gradient(180deg, #1c1d35dd, #141426dd); display: flex; flex-direction: column; gap: 15px; }
.ac-nav-label, .ac-eyebrow { color: var(--atelier-gold); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ac-nav-list { display: grid; gap: 5px; }
.ac-nav-button { width: 100%; min-height: 48px; display: grid; grid-template-columns: 22px 1fr 18px; align-items: center; gap: 7px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--atelier-muted); padding: 10px; text-align: left; font: inherit; font-weight: 700; cursor: pointer; }
.ac-nav-button svg:last-child { opacity: 0; }
.ac-nav-button:hover, .ac-nav-button[aria-current=page] { color: var(--atelier-cream); border-color: var(--atelier-line); background: linear-gradient(100deg, #f3cf6724, #f3cf6704); }
.ac-nav-button[aria-current=page] { box-shadow: inset 3px 0 var(--atelier-gold); }
.ac-nav-button[aria-current=page] svg:last-child { opacity: 1; }
.ac-publish-card { margin-top: auto; background: linear-gradient(145deg, #2f3155, #222340); border: 1px solid var(--atelier-line); border-radius: var(--atelier-radius); padding: 15px; display: grid; grid-template-columns: auto 1fr; gap: 8px; font-size: 12px; line-height: 1.4; }
.ac-publish-card svg { color: var(--atelier-mint); }
.ac-publish-card p { grid-column: 1 / -1; color: var(--atelier-muted); }

.ac-content { min-width: 0; padding: clamp(20px, 4vw, 48px); max-width: 1540px; width: 100%; margin-inline: auto; }
.ac-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.ac-heading-row > div:first-child { min-width: 0; }
.ac-heading-row h1 { font: 700 clamp(27px, 4vw, 48px)/1.05 var(--font-display); letter-spacing: -.035em; margin-top: 6px; }
.ac-intro { color: var(--atelier-muted); line-height: 1.5; max-width: 630px; margin-top: 11px; }
.ac-status-filter { display: flex; align-items: center; gap: 4px; padding: 5px; background: #0d0d1c99; border: 1px solid var(--atelier-line); border-radius: 12px; flex-wrap: nowrap; flex: none; }
.ac-status-filter button, .ac-tablist button { min-height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--atelier-muted); font: 700 12px var(--font-ui); text-transform: capitalize; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 8px 11px; }
.ac-status-filter button:hover, .ac-status-filter button[aria-pressed=true] { background: #f3cf6724; color: var(--atelier-cream); }
.ac-status-filter .ac-count { color: var(--atelier-gold); font-variant-numeric: tabular-nums; }
.ac-tablist { display: flex; gap: 7px; border-bottom: 1px solid var(--atelier-line); padding: 26px 0 11px; margin-bottom: 20px; overflow-x: auto; }
.ac-tablist button { white-space: nowrap; border: 1px solid transparent; }
.ac-tablist button[aria-pressed=true] { color: var(--atelier-night); background: var(--atelier-gold); box-shadow: 0 6px 18px #0004; }
.ac-tablist button:hover:not([aria-pressed=true]) { color: var(--atelier-cream); border-color: var(--atelier-line); }
.ac-panel-area { margin-top: 16px; }
.ac-shell button:focus-visible, .ac-shell a:focus-visible, .ac-shell select:focus-visible, .ac-shell summary:focus-visible { outline: 3px solid var(--atelier-mint); outline-offset: 3px; }
.ac-toast { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); margin: 0; z-index: 20; }
.ac-toast:not(:empty) { padding: 9px 15px; background: #242542; border: 1px solid #d4af3766; border-radius: 10px; color: #fdf8e8; box-shadow: 0 10px 30px #0008; }
.ac-toast.error:not(:empty) { border-color: #ff9489; color: #ffc3bc; }
@media (max-width: 900px) {
  .ac-shell { grid-template-columns: 1fr; }
  .ac-sidebar { border-right: 0; border-bottom: 1px solid var(--atelier-line); padding: 9px clamp(18px, 4vw, 32px); display: block; }
  .ac-nav-label, .ac-publish-card { display: none; }
  .ac-nav-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .ac-nav-button { grid-template-columns: 22px 1fr; padding: 8px; }
  .ac-nav-button svg:last-child { display: none; }
  .ac-content { padding: 28px clamp(16px, 4vw, 34px); }
  .ac-heading-row { align-items: start; flex-direction: column; }
}
@media (max-width: 1180px) { .ac-heading-row { align-items: start; flex-direction: column; } }
@media (max-width: 640px) {
  .ac-status-filter { flex-wrap: wrap; }
  .ac-topbar { min-height: 64px; padding-inline: 16px; }
  .ac-topbar-meta > span:not(.ac-user) { display: none; }
  .ac-content { padding: 22px 14px; }
  .ac-status-filter { width: 100%; }
  .ac-status-filter button { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .ac-shell * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

/* ------------------------------------------------------------ sc: style catalogue */
.sc-catalogue { --ink: #20170f; --night: #15192a; --night-2: #252a43; --parchment: #f5e7be; --paper: #fff6db; --brass: #d6ad55; --aqua: #75e6df; --muted: #c6bb9d; color: var(--paper); background: radial-gradient(circle at 50% 0, #35415e 0, transparent 38%), linear-gradient(135deg, #15182b, #211728); border: 1px solid #d6ad5580; border-radius: 20px; box-shadow: 0 18px 60px #090a16a8; overflow: hidden; font-family: var(--font-ui); isolation: isolate; }
.sc-catalogue button { font: inherit; }
.sc-catalogue button:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.sc-header { display: flex; gap: 20px; justify-content: space-between; align-items: end; padding: 22px 24px; border-bottom: 1px solid #d6ad554d; background: linear-gradient(90deg, #251b20dd, #1b2434dd); }
.sc-header h2, .sc-rail-heading h3, .sc-hair-controls h3, .sc-reel-heading h3 { margin: 0; font-family: var(--font-display); letter-spacing: .025em; }
.sc-header h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
.sc-header p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.sc-catalogue .sc-eyebrow { margin: 0; color: var(--brass); font-size: .66rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.sc-filters { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.sc-filters button, .sc-context-buttons button { min-height: 44px; padding: 8px 13px; border: 1px solid #d6ad5575; border-radius: 999px; background: #151827; color: var(--paper); font-weight: 700; cursor: pointer; text-transform: capitalize; }
.sc-filters button[aria-pressed=true], .sc-context-buttons button[aria-pressed=true] { background: var(--brass); color: #2b1d0e; border-color: #f7d983; box-shadow: 0 0 0 2px #f3ce6a3d; }
.sc-context-buttons button:disabled { opacity: .45; cursor: not-allowed; }
.sc-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); min-height: 590px; }
.sc-stage-panel { min-width: 0; padding: 18px 20px 15px; }
.sc-stage-meta { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--muted); font-size: .77rem; }
.sc-character-stage { position: relative; display: grid; place-items: center; min-height: 500px; overflow: hidden; border: 1px solid #d6ad5575; border-radius: 16px; background: radial-gradient(ellipse at center, #485575 0, #1c2135 48%, #111422 100%); box-shadow: inset 0 0 70px #050710a6; }
.sc-stage-glow, .sc-stage-grid, .sc-stage-ring { position: absolute; inset: 0; pointer-events: none; }
.sc-stage-glow { background: radial-gradient(circle at 50% 43%, #83e7e040 0, transparent 31%); }
.sc-stage-grid { opacity: .3; background-image: linear-gradient(#d6ad551c 1px, transparent 1px), linear-gradient(90deg, #d6ad551c 1px, transparent 1px); background-size: 30px 30px; mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent); }
.sc-stage-ring { inset: auto; width: min(74%, 420px); height: min(74%, 420px); border: 1px solid #d6ad5590; border-radius: 50%; box-shadow: 0 0 0 24px #d6ad550d, 0 0 45px #71e5dd47; }
/* Base and overlay share one box: the 1024 registration canvas maps 1:1. */
.sc-base-character, .sc-character-overlay { position: absolute; z-index: 2; width: min(78%, 470px); height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 18px 15px #050711a8); }
.sc-character-overlay { z-index: 3; }
.sc-base-character:not([src]), .sc-character-overlay:not([src]) { visibility: hidden; }
.sc-character-overlay.sc-tint-0 { filter: sepia(.35) saturate(1.45) drop-shadow(0 18px 15px #050711a8); }
.sc-character-overlay.sc-tint-1 { filter: sepia(.55) saturate(1.7) hue-rotate(345deg) brightness(1.08) drop-shadow(0 18px 15px #050711a8); }
.sc-character-overlay.sc-tint-2 { filter: sepia(.72) saturate(.9) hue-rotate(350deg) brightness(1.22) drop-shadow(0 18px 15px #050711a8); }
.sc-character-overlay.sc-tint-3 { filter: grayscale(.9) contrast(.88) brightness(1.18) drop-shadow(0 18px 15px #050711a8); }
.sc-character-overlay.sc-tint-4 { filter: sepia(.5) saturate(2.2) hue-rotate(315deg) brightness(.92) drop-shadow(0 18px 15px #050711a8); }
.sc-stage-msg { z-index: 4; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); padding: 6px 10px; border-radius: 8px; background: #0a0c16c7; color: var(--muted); font-size: .75rem; }
.sc-stage-msg:empty { display: none; }
.sc-stage-caption { z-index: 4; position: absolute; bottom: 18px; left: 18px; margin: 0; padding: 8px 11px; background: #0a0c16c7; border: 1px solid #d6ad555c; border-radius: 8px; color: var(--muted); font-size: .77rem; }
.sc-stage-caption strong { color: var(--paper); }
.sc-stage-hint { margin: 9px 2px 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.sc-status { display: inline-flex; width: max-content; align-items: center; border: 1px solid currentColor; border-radius: 999px; padding: 2px 7px; font-size: .61rem; font-style: normal; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.sc-status[data-status=approved], .sc-status[data-status=canonical] { color: #80e2b0; background: #17543340; }
.sc-status[data-status=published] { color: #78e6d8; background: #12464640; }
.sc-status[data-status=pending] { color: #ffd278; background: #6e4d1640; }
.sc-status[data-status=held] { color: #f5b26b; background: #6e3f1640; }
.sc-status[data-status=rejected], .sc-status[data-status=rejected-after-publish] { color: #ff9489; background: #6e1d1640; }
.sc-layer-rail { border-left: 1px solid #d6ad554d; background: linear-gradient(180deg, #101425e8, #181221); display: flex; flex-direction: column; min-width: 0; }
.sc-rail-heading, .sc-reel-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 17px 17px 12px; border-bottom: 1px solid #d6ad553d; }
.sc-rail-heading h3, .sc-hair-controls h3, .sc-reel-heading h3 { font-size: 1.05rem; }
.sc-rail-heading > span { color: var(--muted); font-size: .68rem; white-space: nowrap; }
.sc-layer-list { display: flex; flex: 1; flex-direction: column; gap: 8px; min-height: 0; max-height: 365px; overflow-y: auto; padding: 11px; scrollbar-color: var(--brass) transparent; }
.sc-layer-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 9px; align-items: center; width: 100%; min-height: 76px; padding: 6px; background: #252a3e; border: 1px solid #d6ad553b; border-radius: 10px; color: var(--paper); text-align: left; cursor: pointer; transition: transform 160ms ease, border-color 160ms ease, background 160ms ease; }
.sc-layer-card:hover, .sc-layer-card[aria-pressed=true] { border-color: var(--aqua); background: #303751; transform: translateX(-2px); }
.sc-thumbnail { display: grid; place-items: center; align-self: stretch; min-width: 64px; min-height: 64px; overflow: hidden; border: 1px solid #d6ad5540; border-radius: 7px; background: conic-gradient(#272b3d 25%, #1a1f30 0 50%, #272b3d 0 75%, #1a1f30 0) 0 / 15px 15px; }
.sc-thumbnail img { width: 100%; height: 64px; object-fit: contain; }
.sc-thumbnail img:not([src]) { visibility: hidden; }
.failed > .sc-thumbnail, .failed.sc-character-card > .sc-reel-thumb { background: #3a2226; }
.sc-layer-info { display: grid; min-width: 0; gap: 2px; }
.sc-layer-topline { display: flex; justify-content: space-between; gap: 5px; color: var(--brass); font-size: .62rem; text-transform: uppercase; letter-spacing: .065em; }
.sc-layer-topline b { font-weight: 800; white-space: nowrap; }
.sc-layer-info strong { overflow: hidden; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.sc-layer-info small { overflow: hidden; color: var(--muted); font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.sc-layer-info .sc-provenance { color: #b7dcd7; }
.sc-layer-card > .sc-status { align-self: start; margin-top: 2px; }
.sc-empty { color: var(--muted); font-size: .8rem; }
.sc-review-action { margin: 0 11px 11px; padding: 11px; border: 1px solid #d6ad5575; border-radius: 10px; background: #263345; }
.sc-review-action p { display: grid; gap: 3px; margin: 0 0 9px; }
.sc-review-action p strong { font-size: .76rem; color: #ffd278; }
.sc-review-action p span, .sc-review-action small { color: var(--muted); font-size: .64rem; line-height: 1.4; overflow-wrap: anywhere; }
.sc-review-action small { display: block; margin-top: 7px; }
.sc-review-action button { min-height: 38px; padding: 7px 10px; border: 1px solid #8eeac1; border-radius: 8px; background: #1f684b; color: #f5ffeb; font-weight: 800; cursor: pointer; }
.sc-hair-controls { margin: 0 11px 12px; padding: 12px; border: 1px solid #d6ad555c; border-radius: 11px; background: linear-gradient(135deg, #33241d, #272c40); }
.sc-context-buttons { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.sc-context-buttons button { min-height: 38px; padding: 6px 9px; font-size: .7rem; text-transform: none; }
.sc-colour-row { display: flex; gap: 8px; margin-top: 11px; }
.sc-colour { width: 31px; height: 31px; min-width: 31px; min-height: 31px; border: 2px solid #f5e7be52; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 2px #0004; }
.sc-colour[aria-pressed=true] { border-color: #fff6db; box-shadow: 0 0 0 2px var(--aqua), inset 0 0 0 2px #0004; }
.sc-swatch-0 { background: #4c2c20; } .sc-swatch-1 { background: #a57042; } .sc-swatch-2 { background: #d9be7c; } .sc-swatch-3 { background: #c4cad0; } .sc-swatch-4 { background: #b04443; }
.sc-tint-note { display: block; margin-top: 8px; color: var(--muted); font-size: .64rem; }
.sc-character-reel { border-top: 1px solid #d6ad554d; background: #201823; }
.sc-reel-heading { padding: 14px 20px 10px; flex-wrap: wrap; }
.sc-reel-selects { display: flex; gap: 12px; flex-wrap: wrap; }
.sc-reel-scroller { display: flex; gap: 10px; overflow-x: auto; padding: 10px 20px 18px; scroll-snap-type: x mandatory; scrollbar-color: var(--brass) transparent; }
.sc-character-card { display: grid; grid-template-columns: 64px minmax(130px, 1fr); grid-template-rows: auto auto; column-gap: 9px; min-width: 235px; min-height: 80px; padding: 7px; text-align: left; color: var(--paper); background: #2d2a3c; border: 1px solid #d6ad5540; border-radius: 10px; cursor: pointer; scroll-snap-align: start; }
.sc-character-card:hover, .sc-character-card[aria-pressed=true] { border-color: var(--aqua); background: #343c55; }
.sc-reel-thumb { grid-row: 1 / 3; width: 64px; height: 64px; border-radius: 6px; background: #121629; overflow: hidden; }
.sc-reel-thumb img { width: 64px; height: 64px; object-fit: contain; }
.sc-reel-thumb img:not([src]) { visibility: hidden; }
.sc-character-card > span:not(.sc-reel-thumb) { display: grid; align-content: end; gap: 3px; min-width: 0; }
.sc-character-card strong { font-size: .76rem; }
.sc-character-card small { color: var(--muted); font-size: .65rem; }
.sc-character-card i { align-self: start; }
.sc-race-select { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.sc-race-select select { min-height: 34px; border: 1px solid #d6ad5575; border-radius: 8px; background: #161a2d; color: var(--paper); font: 700 .76rem var(--font-ui); padding: 5px 28px 5px 9px; text-transform: capitalize; }
/* Frame controls sit in the gutter: they filter the rail, never target the character. */
.sc-frame-shell { position: relative; padding: 46px 78px; }
.sc-frame-shell .sc-character-stage { min-height: 500px; }
.sc-slot-controls { position: absolute; z-index: 5; inset: 0; pointer-events: none; }
.sc-slot-button { position: absolute; pointer-events: auto; min-height: 32px; padding: 6px 9px; border: 1px solid #d6ad5585; border-radius: 999px; background: #101527e6; color: var(--paper); font-size: .66rem; font-weight: 800; letter-spacing: .03em; cursor: pointer; box-shadow: 0 5px 14px #0608137a; }
.sc-slot-button:hover, .sc-slot-button[aria-pressed=true] { border-color: var(--aqua); background: #283b51; color: #fff; }
.sc-slot-all { top: 7px; left: 50%; transform: translateX(-50%); }
.sc-slot-head { top: 7px; right: 17%; }
.sc-slot-chest { top: 30%; left: 0; }
.sc-slot-legs { bottom: 27%; left: 0; }
.sc-slot-belt { bottom: 7px; left: 25%; }
.sc-slot-neck { top: 30%; right: 0; }
.sc-slot-left-hand { bottom: 27%; right: 0; }
.sc-slot-right-hand { bottom: 7px; right: 22%; }
@media (max-width: 800px) {
  .sc-header { align-items: start; flex-direction: column; }
  .sc-workspace { grid-template-columns: 1fr; }
  .sc-layer-rail { border-top: 1px solid #d6ad554d; border-left: 0; }
  .sc-layer-list { display: grid; grid-auto-columns: minmax(245px, 1fr); grid-auto-flow: column; grid-template-rows: repeat(2, 1fr); max-height: 205px; overflow-x: auto; overflow-y: hidden; }
  .sc-layer-card { min-width: 245px; }
  .sc-hair-controls { margin-top: 11px; }
  .sc-base-character, .sc-character-overlay { width: min(82%, 400px); }
  .sc-frame-shell { padding: 42px 60px; }
  .sc-frame-shell .sc-character-stage { min-height: 400px; }
  .sc-slot-button { font-size: .59rem; padding: 5px 7px; }
  .sc-slot-head { right: 10%; }
  .sc-slot-chest, .sc-slot-legs { left: -7px; }
  .sc-slot-neck, .sc-slot-left-hand { right: -7px; }
  .sc-slot-belt { left: 18%; }
  .sc-slot-right-hand { right: 16%; }
}
@media (max-width: 460px) {
  .sc-header { padding: 17px; }
  .sc-stage-panel { padding: 12px; }
  .sc-frame-shell .sc-character-stage { min-height: 340px; }
  .sc-stage-caption { right: 12px; bottom: 12px; left: 12px; }
  .sc-reel-scroller { padding-inline: 14px; }
  .sc-character-card { min-width: 215px; }
}
@media (prefers-reduced-motion: reduce) { .sc-catalogue * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* ------------------------------------------------------------ aw: asset review workbench */
.aw-workbench { --ink: #241912; --paper: #f5e6c5; --night: #121828; --blue: #62d9e4; --gold: #d8ab57; color: var(--ink); background: linear-gradient(135deg, #f8ebd0, #dfc596); border: 1px solid #a47638; border-radius: 18px; padding: clamp(16px, 3vw, 28px); box-shadow: 0 16px 44px #120b0640; font-family: var(--font-ui); }
.aw-header { display: flex; justify-content: space-between; align-items: start; gap: 16px; border-bottom: 1px solid #a4763866; padding-bottom: 18px; }
.aw-kicker { margin: 0; color: #765329; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.aw-header h2 { margin: 4px 0 2px; font-family: var(--font-display); font-size: clamp(1.45rem, 3vw, 2rem); }
.aw-header p:not(.aw-kicker):not(.aw-decision):not(.aw-progress) { margin: 0; color: #60452b; max-width: 52ch; }
.aw-header-side { display: grid; justify-items: end; gap: 6px; }
.aw-progress { color: #60452b; font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.aw-decision { margin: 0; flex: 0 0 auto; border: 1px solid currentColor; border-radius: 999px; padding: 7px 10px; font-size: .78rem; font-weight: 800; }
.aw-d-pending, .aw-d-unknown { color: #684f2f; }
.aw-d-held { color: #8a5a20; background: #fff1c5; }
.aw-d-rejected, .aw-d-rejected-after-publish { color: #8b302a; background: #f7d6d0; }
.aw-d-approved { color: #28694f; background: #d8eee2; }
.aw-d-published { color: #1f5d66; background: #d3f0f0; }
.aw-queue-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.aw-scope { display: flex; gap: 3px; padding: 3px; border: 1px solid #a4763899; border-radius: 10px; background: #fff3d9; }
.aw-scope button { min-height: 34px; border: 0; border-radius: 7px; padding: 5px 11px; background: transparent; color: #60452b; font: 700 .78rem var(--font-ui); cursor: pointer; }
.aw-scope button[aria-pressed=true] { background: #2b3744; color: #fff; }
.aw-queue-count { color: #60452b; font-size: .8rem; }
.aw-next { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; min-height: 38px; border: 1px solid #27664d; border-radius: 8px; padding: 6px 12px; background: #e3f3ea; color: #1e5640; font: 800 .82rem var(--font-ui); cursor: pointer; }
.aw-next:disabled { opacity: .5; cursor: not-allowed; }
.aw-check-filter { display: inline-flex; align-items: center; gap: 5px; font: 700 .78rem var(--font-ui); color: #60452b; }
.aw-check-filter select { min-height: 34px; border-radius: 7px; }
.aw-worst { min-height: 34px; border: 1px solid #a4763899; border-radius: 8px; padding: 5px 11px; background: #fff3d9; color: #60452b; font: 700 .78rem var(--font-ui); cursor: pointer; }
.aw-worst[aria-pressed=true] { background: #2b3744; color: #fff; }
.aw-queue { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 12px; scrollbar-color: #a47638 transparent; }
.aw-cell { position: relative; flex: 0 0 auto; width: 92px; padding: 4px; border: 2px solid #a4763855; border-radius: 10px; background: #fff5df; cursor: pointer; text-align: left; color: var(--ink); }
.aw-cell:hover { border-color: #2b4051; }
.aw-cell.selected { border-color: #1e8c98; box-shadow: 0 0 0 3px #62d9e466; }
.aw-cell-thumb { display: block; width: 80px; height: 80px; border-radius: 6px; overflow: hidden; background: conic-gradient(#ddd 25%, #b9bfbc 0 50%, #ddd 0 75%, #b9bfbc 0) 0 / 12px 12px; }
.aw-cell-thumb img { width: 80px; height: 80px; object-fit: contain; }
.aw-cell-thumb img:not([src]) { visibility: hidden; }
.aw-cell.failed .aw-cell-thumb { background: #f1c9c3; }
.aw-cell-name { display: block; margin-top: 3px; font-size: .62rem; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-cell-badge { position: absolute; top: 6px; right: 6px; border-radius: 999px; padding: 1px 5px; font-size: .55rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: #fff8; }
.aw-cell.status-held .aw-cell-badge { background: #fff1c5; color: #8a5a20; }
.aw-cell.status-approved .aw-cell-badge { background: #d8eee2; color: #28694f; }
.aw-cell.status-published .aw-cell-badge { background: #d3f0f0; color: #1f5d66; }
.aw-cell.status-rejected .aw-cell-badge, .aw-cell.status-rejected-after-publish .aw-cell-badge { background: #f7d6d0; color: #8b302a; }
.aw-cell.status-pending .aw-cell-badge { display: none; }
.aw-queue-empty, .aw-empty { color: #60452b; padding: 18px 0; }
.aw-item-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 4px 0 2px; }
.aw-item-line strong { font: 700 1.15rem var(--font-display); }
.aw-item-line span { color: #60452b; font-size: .8rem; overflow-wrap: anywhere; }
.aw-alert { display: flex; gap: 12px; margin: 14px 0; padding: 13px; border: 1px solid #a74339; background: #f8ddd7; color: #672a27; border-radius: 11px; }
.aw-alert svg { flex: none; margin-top: 2px; }
.aw-alert strong, .aw-alert span { display: block; }
.aw-alert span { font-size: .9rem; line-height: 1.45; margin-top: 2px; }
.aw-banner { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin: 14px 0; padding: 11px 13px; border: 1px solid #a27126; background: #fff1c5; color: #5a3a12; border-radius: 11px; font-weight: 700; }
.aw-banner button { min-height: 38px; border: 1px solid #a27126; border-radius: 8px; background: #f7e1ad; color: #5a3a12; font-weight: 800; padding: 6px 12px; cursor: pointer; }
.aw-banner button:disabled { opacity: .55; cursor: not-allowed; }
.aw-comparison { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(230px, .85fr); border: 1px solid #7c5b35; border-radius: 13px; overflow: hidden; background: var(--night); margin-top: 14px; }
.aw-frames { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #7c5b35; padding: 1px; }
.aw-frames button { display: grid; grid-template-rows: 1fr auto auto; gap: 6px; min-width: 0; text-align: left; border: 0; background: #202a3a; color: #f7e6c5; padding: 10px; cursor: pointer; }
.aw-frames button:hover, .aw-frames button:focus-visible, .aw-frames button[aria-pressed=true] { background: #2b4051; outline: 3px solid var(--blue); outline-offset: -3px; }
.aw-frames button > span:not(.aw-mini-stage) { font-family: var(--font-display); font-weight: 700; }
.aw-frames small { color: #d7c4a2; line-height: 1.25; font-size: .78rem; }
.aw-verified { margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #1f684b; color: #e2fff0; font: 800 .6rem var(--font-ui); letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.aw-mini-stage { position: relative; display: grid; place-items: center; aspect-ratio: 1; min-height: 185px; overflow: hidden; border-radius: 8px; background: radial-gradient(circle at 50% 30%, #526c78, #192333 65%); }
.aw-mini-stage img { width: 100%; height: 100%; object-fit: contain; }
.aw-mini-stage img:not([src]) { display: none; }
.aw-k-cutout { background: conic-gradient(#ddd 25%, #9ca4a0 0 50%, #ddd 0 75%, #9ca4a0 0) 0 / 18px 18px; }
.aw-k-mask { background: #1d2026; }
.aw-k-composite { background: #1d2026; }
.aw-frames button.aw-primary { grid-column: 1 / -1; }
.aw-composite-note { grid-column: 1 / -1; margin: 0; padding: 8px 10px; background: #202a3a; color: #d7c4a2; font-size: .85rem; }
.aw-frames button.aw-primary .aw-mini-stage { min-height: 320px; }
.aw-mini-stage.loading img { opacity: .25; }
.aw-frame-msg { position: absolute; padding: 3px 9px; border-radius: 6px; background: #0b0f18cc; color: #f7e6c5; font-size: .75rem; font-family: var(--font-ui); text-align: center; }
.aw-frame-msg:empty { display: none; }
.aw-evidence { padding: 18px; background: #162333; color: #f5e6c5; display: flex; flex-direction: column; gap: 4px; }
.aw-evidence .aw-kicker { color: #d8ab57; }
.aw-evidence h3 { margin: 4px 0 14px; font-family: var(--font-display); font-size: 1.2rem; }
.aw-evidence dl { display: grid; gap: 8px; margin: 0; }
.aw-evidence dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, max-content); gap: 2px 8px; border-bottom: 1px solid #f5e6c51f; padding-bottom: 7px; font-size: .83rem; }
.aw-evidence dd { margin: 0; font-weight: 800; text-align: right; white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.aw-evidence .aw-detail { grid-column: 1 / -1; color: #b9ab92; font-size: .72rem; line-height: 1.35; font-weight: 400; text-align: left; white-space: normal; }
.aw-metrics-title { margin-top: 14px !important; }
.aw-metrics dd { font-variant-numeric: tabular-nums; }
.aw-fail { color: #ff9489; }
.aw-pass { color: #8ce0b6; }
.aw-flag { color: #f2c55c; }
.aw-unmeasured { color: #c9c3b8; font-weight: 600 !important; font-style: italic; }
.aw-rule { color: #d2c2a5; font-size: .79rem; line-height: 1.4; margin-top: auto !important; padding-top: 12px; }
.aw-audit { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 12px; margin-top: 14px; padding: 13px; border: 1px solid #b08b5366; border-radius: 11px; background: #ffedcd80; font-size: .8rem; }
.aw-audit div { display: grid; gap: 3px; align-content: start; min-width: 0; }
.aw-audit span { color: #715331; overflow-wrap: anywhere; }
.aw-audit strong { font-size: .83rem; overflow-wrap: anywhere; }
.aw-audit div:first-child strong { font-family: var(--font-display); font-size: 1rem; }
.aw-prompts { margin-top: 10px; padding: 9px 13px; border: 1px solid #b08b5366; border-radius: 11px; background: #fff3dc80; font-size: .8rem; }
.aw-prompts summary { cursor: pointer; font-weight: 800; color: #5a3a12; }
.aw-prompts dl { display: grid; gap: 6px; margin-top: 8px; }
.aw-prompts dt { color: #715331; font-weight: 700; }
.aw-prompts dd { margin: 0; }
.aw-prompts pre { white-space: pre-wrap; overflow-wrap: anywhere; font: .78rem/1.45 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; background: #fffaf0; border: 1px solid #c7a06a66; border-radius: 6px; padding: 7px 9px; }
.aw-reason { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 16px; font: 600 .84rem var(--font-ui); }
.aw-reason select { min-height: 38px; border-radius: 8px; padding: 6px 10px; font: inherit; }
.aw-reason select:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.aw-actions { display: flex; flex-wrap: wrap; align-items: start; gap: 9px; margin-top: 16px; }
.aw-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; border-radius: 8px; padding: 9px 13px; font: 700 .86rem var(--font-ui); cursor: pointer; }
.aw-actions svg { width: 17px; height: 17px; }
.aw-actions button:focus-visible, .aw-workbench button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.aw-actions button:disabled { cursor: not-allowed; opacity: .52; filter: grayscale(.8); }
.aw-reject { border: 1px solid #7e2e2a; background: #9c3731; color: white; }
.aw-hold { border: 1px solid #a27126; background: #f7e1ad; color: #5a3a12; }
.aw-blocked-approval { display: grid; gap: 3px; max-width: 330px; }
.aw-approve { border: 1px solid #27664d; background: #347d5d; color: white; }
.aw-approve-row { display: flex; gap: 6px; }
.aw-approve.aw-armed { background: #b46a1f; border-color: #7f4510; box-shadow: 0 0 0 3px #f3b25b88; }
.aw-actions .aw-approve.aw-arming { opacity: .7; cursor: wait; filter: none; }
.aw-actions .aw-approve-cancel { border: 1px solid #695139; background: #fff5df; color: #4a3826; }
.aw-audit-retry { align-self: start; margin-top: 10px; min-height: 36px; border: 1px solid #d8ab57; border-radius: 8px; padding: 5px 12px; background: #2b4051; color: #f5e6c5; font: 700 .8rem var(--font-ui); cursor: pointer; }
.aw-banner.aw-banner-busy { border-color: #8c8a80; background: #f3eee2; color: #4a4536; font-weight: 600; }
.aw-blocked-approval > span { color: #7e3b32; font-size: .73rem; line-height: 1.25; }
.aw-reset { border: 1px solid #695139; background: transparent; color: #4a3826; }
.aw-retry-image { border: 1px solid #2b4051; background: #dbeef1; color: #1e3a48; }
.aw-inspect { margin-left: auto; border: 1px solid #695139; background: #f9e9c8; color: #34271b; }
.aw-hint { margin-top: 10px; color: #715331; font-size: .74rem; }
.aw-hint kbd { font: 700 .7rem ui-monospace, monospace; padding: 1px 5px; border: 1px solid #a4763899; border-radius: 4px; background: #fff5df; }
@media (max-width: 1100px) { .aw-audit { grid-template-columns: repeat(3, minmax(0, 1fr)); } .aw-audit div:first-child { grid-column: span 3; } }
@media (max-width: 760px) {
  .aw-header { display: block; }
  .aw-header-side { justify-items: start; margin-top: 12px; }
  .aw-comparison { grid-template-columns: 1fr; }
  .aw-mini-stage { min-height: 150px; }
  .aw-audit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aw-audit div:first-child { grid-column: span 2; }
  .aw-inspect { margin-left: 0; }
}
@media (max-width: 390px) { .aw-frames { grid-template-columns: 1fr; } .aw-actions button { width: 100%; } .aw-audit { grid-template-columns: 1fr; } .aw-audit div:first-child { grid-column: auto; } }
@media (prefers-reduced-motion: reduce) { .aw-workbench * { transition: none !important; animation: none !important; } }

/* ------------------------------------------------------------ rm: rig & motion workbench (fixture) */
.rm-workbench { --ink: #211a15; --paper: #f4e3be; --night: #121929; --blue: #65dce6; --gold: #d8ad5a; --green: #3a8063; color: var(--ink); background: linear-gradient(135deg, #f8eacd, #dec597); border: 1px solid #a5793e; border-radius: 18px; padding: clamp(16px, 3vw, 28px); box-shadow: 0 16px 44px #120b0640; font-family: var(--font-ui); }
.rm-header { display: flex; justify-content: space-between; align-items: start; gap: 18px; padding-bottom: 17px; border-bottom: 1px solid #a5793e66; }
.rm-kicker { margin: 0; color: #765329; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.rm-header h2 { margin: 4px 0 2px; font-family: var(--font-display); font-size: clamp(1.45rem, 3vw, 2rem); }
.rm-header p:not(.rm-kicker) { margin: 0; color: #60452b; }
.rm-version { display: grid; gap: 2px; min-width: 144px; border-left: 2px solid #c99b50; padding-left: 12px; font-size: .8rem; }
.rm-version span { color: #70502d; }
.rm-version strong { font-family: var(--font-display); font-size: 1rem; }
.rm-version small { color: #9a642a; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.rm-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(250px, .8fr); gap: 16px; margin-top: 17px; }
.rm-preview-panel { min-width: 0; border: 1px solid #6e553a; border-radius: 13px; overflow: hidden; background: var(--night); color: #f5e5c5; }
.rm-stage-header { display: flex; justify-content: space-between; gap: 9px; padding: 9px 12px; background: #1b2b3b; border-bottom: 1px solid #ffffff1a; color: #dbcaa9; font-size: .76rem; }
.rm-stage-header > span { display: flex; gap: 5px; align-items: center; }
.rm-stage-header svg { width: 15px; color: var(--blue); }
.rm-rig-stage { position: relative; min-height: 435px; overflow: hidden; background: radial-gradient(ellipse at 50% 36%, #435f6b, #131b2a 68%); }
.rm-grid { position: absolute; inset: 0; background-image: linear-gradient(#91c7cc13 1px, transparent 1px), linear-gradient(90deg, #91c7cc13 1px, transparent 1px); background-size: 25px 25px; }
.rm-mesh { position: absolute; z-index: 2; left: 30%; top: 10%; width: 40%; height: 79%; border: 1px dashed #7be4ebaa; border-radius: 42% 42% 26% 26%; clip-path: polygon(40% 0, 60% 0, 74% 15%, 68% 31%, 86% 46%, 74% 56%, 67% 100%, 33% 100%, 26% 56%, 14% 46%, 32% 31%, 26% 15%); background: linear-gradient(112deg, transparent 48%, #67e2ea20 49% 51%, transparent 52%), linear-gradient(62deg, transparent 48%, #67e2ea20 49% 51%, transparent 52%); }
.rm-character { position: absolute; z-index: 1; left: 50%; top: 9%; width: 180px; height: 370px; transform: translateX(-50%); filter: drop-shadow(0 9px 9px #0008); }
.rm-character span { position: absolute; display: block; }
.rm-hair { z-index: 4; left: 53px; top: 0; width: 75px; height: 65px; border-radius: 52% 52% 24% 26%; background: #c9b4a0; }
.rm-head { z-index: 3; left: 63px; top: 28px; width: 55px; height: 61px; border-radius: 50%; background: #efc99d; }
.rm-torso { z-index: 2; left: 43px; top: 82px; width: 96px; height: 133px; border: 4px solid #c89b4c; border-radius: 32px 32px 18px 18px; background: linear-gradient(90deg, #86523a 0 25%, #bc6e3f 26% 75%, #86523a 76%); }
.rm-arm { z-index: 1; top: 95px; width: 31px; height: 122px; border-radius: 25px; background: #efc99d; transform-origin: 50% 8px; }
.rm-left-arm { left: 31px; transform: rotate(20deg); }
.rm-right-arm { right: 28px; transform: rotate(-20deg); }
.rm-leg { z-index: 0; top: 203px; width: 38px; height: 138px; border-radius: 14px; background: #4b5f83; }
.rm-left-leg { left: 51px; transform: rotate(3deg); }
.rm-right-leg { right: 51px; transform: rotate(-3deg); }
.rm-sword { z-index: 0; right: -4px; top: 180px; width: 10px; height: 142px; border-radius: 8px; background: linear-gradient(90deg, #dfe5e2, #7e9aab 55%, #f5fcfa); transform: rotate(-19deg); transform-origin: top; }
.rm-bone { position: absolute; z-index: 4; left: calc(50% - 1px); top: 20%; height: 50%; border-left: 2px solid #f5c66a99; }
.rm-bone::before, .rm-bone::after { content: ''; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #f5c66a; left: -4px; }
.rm-bone::before { top: 0; }
.rm-bone::after { bottom: 0; }
.rm-left-bone, .rm-right-bone { top: 32%; height: 23%; transform-origin: top; }
.rm-left-bone { left: 36%; transform: rotate(28deg); }
.rm-right-bone { left: 64%; transform: rotate(-28deg); }
.rm-pin { z-index: 5; position: absolute; display: grid; place-items: center; color: #89eef2; transform: translate(-50%, -50%); filter: drop-shadow(0 1px 3px #000); }
.rm-pin svg { width: 19px; height: 19px; fill: #162130; }
.rm-pin span { position: absolute; top: 19px; white-space: nowrap; font-size: .63rem; font-weight: 800; color: #d3eff1; text-shadow: 0 1px #000; }
.rm-pin:nth-last-child(-n+2) span { top: auto; bottom: 19px; }
.rm-neutral .rm-character { transform: translateX(-50%); }
.rm-idle .rm-character { animation: rm-breathe 2.4s ease-in-out infinite; }
.rm-idle .rm-hair { animation: rm-hair-sway 2.4s ease-in-out infinite; }
.rm-brandish .rm-right-arm { animation: rm-brandish-arm .8s ease-in-out infinite alternate; }
.rm-brandish .rm-sword { animation: rm-brandish-sword .8s ease-in-out infinite alternate; }
.rm-brandish .rm-right-bone { animation: rm-brandish-bone .8s ease-in-out infinite alternate; }
.rm-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; padding: 9px 12px; color: #d8c5a5; font-size: .73rem; }
.rm-legend i { width: 15px; height: 8px; display: inline-block; }
.rm-pin-legend { border: 2px solid #89eef2; border-radius: 50%; }
.rm-mesh-legend { border-top: 2px dashed #7be4eb; }
.rm-bone-legend { border-top: 2px solid #f5c66a; }
.rm-controls { display: flex; flex-direction: column; gap: 13px; border: 1px solid #a47b42; border-radius: 13px; background: #fff0cf; padding: 15px; }
.rm-controls h3 { margin: 3px 0 0; font-family: var(--font-display); font-size: 1.25rem; }
.rm-clips { display: grid; gap: 7px; }
.rm-clips button { display: grid; gap: 2px; text-align: left; min-height: 57px; border: 1px solid #ba945a; border-radius: 9px; background: #f9e8c5; color: #342719; padding: 8px 10px; cursor: pointer; }
.rm-clips button span { font-weight: 800; }
.rm-clips button small { color: #715331; }
.rm-clips button:hover, .rm-clips button:focus-visible, .rm-clips button[aria-checked=true] { border-color: #327d88; background: #ddf3f0; outline: 3px solid #66dce599; outline-offset: 1px; }
.rm-metadata { display: grid; gap: 7px; margin: 0; padding: 10px 0; border-block: 1px solid #b9945d; }
.rm-metadata div { display: grid; gap: 1px; }
.rm-metadata dt { color: #715331; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.rm-metadata dd { margin: 0; font-size: .83rem; }
.rm-pin-controls { margin: 0; padding: 0; border: 0; min-width: 0; }
.rm-pin-controls legend { font-family: var(--font-display); font-size: 1rem; font-weight: 700; padding: 0; }
.rm-pin-controls > p { margin: 3px 0 7px; color: #715331; font-size: .73rem; line-height: 1.35; }
.rm-pin-controls > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.rm-pin-controls label { display: grid; grid-template-columns: minmax(0, 1fr) 52px 52px; align-items: center; gap: 3px; padding: 5px; border: 1px solid #c7a06a; border-radius: 6px; background: #fff5dd; font-size: .69rem; }
.rm-pin-controls label > span { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-pin-controls b { display: flex; align-items: center; gap: 1px; font-size: .65rem; }
.rm-pin-controls input { width: 100%; min-height: 30px; border: 1px solid #936936; border-radius: 4px; background: #fffaf0; color: #312419; padding: 2px; font: inherit; }
.rm-pin-controls input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.rm-guidance { margin: 0; color: #5b442c; font-size: .82rem; line-height: 1.45; }
.rm-fixture-status { margin: 0; padding: 8px; border-left: 3px solid #337d88; background: #dff3f0; color: #254d54; font-size: .78rem; font-weight: 700; line-height: 1.35; }
.rm-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: auto; }
.rm-actions button, .rm-footer button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 45px; border-radius: 8px; padding: 8px; font: 700 .84rem var(--font-ui); cursor: pointer; }
.rm-actions svg, .rm-footer svg { width: 17px; }
.rm-reset { border: 1px solid #936936; background: #f8e8c6; color: #50391f; }
.rm-save { border: 1px solid #27664d; background: var(--green); color: #fff; }
.rm-actions button:focus-visible, .rm-footer button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.rm-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 15px; padding: 12px; border-top: 1px solid #a5793e66; font-size: .82rem; }
.rm-footer p { margin: 0; max-width: 70ch; color: #60452b; }
.rm-footer button { border: 1px solid #795a35; background: #2b3744; color: #fff; white-space: nowrap; padding-inline: 14px; }
@keyframes rm-breathe { 50% { transform: translateX(-50%) translateY(-4px) scaleY(1.015); } }
@keyframes rm-hair-sway { 50% { transform: rotate(2deg); } }
@keyframes rm-brandish-arm { to { transform: rotate(-74deg); } }
@keyframes rm-brandish-sword { to { transform: rotate(-72deg) translate(8px, -4px); } }
@keyframes rm-brandish-bone { to { transform: rotate(-75deg); } }
@media (max-width: 780px) { .rm-header { display: block; } .rm-version { margin-top: 12px; } .rm-layout { grid-template-columns: 1fr; } .rm-rig-stage { min-height: 390px; } }
@media (max-width: 560px) { .rm-pin-controls > div { grid-template-columns: 1fr; } }
@media (max-width: 430px) { .rm-stage-header, .rm-footer { align-items: start; flex-direction: column; } .rm-rig-stage { min-height: 360px; } .rm-character { transform: translateX(-50%) scale(.88); transform-origin: top; } .rm-idle .rm-character { animation: none; } .rm-pin span { display: none; } }
@media (prefers-reduced-motion: reduce) { .rm-workbench * { animation: none !important; transition: none !important; } }

/* ------------------------------------------------------------ gn: generate equipment + grouped review */
.gn-workbench { color: #241912; background: linear-gradient(135deg, #f8ebd0, #dfc596); border: 1px solid #a47638; border-radius: 18px; padding: clamp(16px, 3vw, 28px); box-shadow: 0 16px 44px #120b0640; font-family: var(--font-ui); }
.gn-header { border-bottom: 1px solid #a4763866; padding-bottom: 16px; }
.gn-header h2 { margin: 4px 0 2px; font-family: var(--font-display); font-size: clamp(1.45rem, 3vw, 2rem); }
.gn-header p:not(.aw-kicker) { color: #60452b; max-width: 60ch; }
.gn-form { display: grid; gap: 14px; margin-top: 16px; }
.gn-axes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.gn-axis { border: 1px solid #b08b5388; border-radius: 11px; padding: 9px 12px; background: #fff3dc80; min-width: 0; }
.gn-axis legend { padding: 0 6px; color: #765329; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.gn-axis label, .gn-pick label { display: flex; align-items: center; gap: 7px; min-height: 28px; font-size: .84rem; font-weight: 700; text-transform: capitalize; }
.gn-axis .gn-all { border-bottom: 1px dashed #b08b5388; margin-bottom: 3px; }
.gn-pick { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.gn-pick label { flex-direction: column; align-items: start; text-transform: none; color: #60452b; font-size: .78rem; }
.gn-pick select { min-height: 36px; min-width: 150px; border-radius: 7px; border: 1px solid #a4763899; background: #fff8e8; color: #241912; padding: 4px 8px; }
.gn-preview { color: #60452b; font-weight: 700; font-variant-numeric: tabular-nums; }
.gn-primary { min-height: 42px; border: 1px solid #27664d; border-radius: 8px; padding: 8px 16px; background: #347d5d; color: #fff; font: 800 .88rem var(--font-ui); cursor: pointer; }
.gn-primary:disabled { opacity: .5; cursor: not-allowed; }
.gn-secondary { min-height: 36px; border: 1px solid #695139; border-radius: 8px; padding: 6px 12px; background: transparent; color: #4a3826; font: 700 .8rem var(--font-ui); cursor: pointer; }
.gn-secondary:disabled { opacity: .5; cursor: not-allowed; }
.gn-danger { border-color: #7e2e2a; color: #8b302a; }
.gn-recent { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gn-set { margin-top: 18px; display: grid; gap: 14px; }
.gn-set-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.gn-set-head strong { font-family: var(--font-display); font-size: 1.1rem; }
.gn-chip { border: 1px solid currentColor; border-radius: 999px; padding: 2px 9px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.gn-chip.done, .gn-chip.approved { color: #28694f; background: #d8eee2; }
.gn-chip.failed, .gn-chip.dropped { color: #8b302a; background: #f7d6d0; }
.gn-chip.pending, .gn-chip.drafting, .gn-chip.queued, .gn-chip.running, .gn-chip.awaiting_approval { color: #8a5a20; background: #fff1c5; }
.gn-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; }
.gn-card { display: grid; gap: 9px; align-content: start; border: 1px solid #b08b5388; border-radius: 12px; padding: 12px; background: #fff3dccc; min-width: 0; }
.gn-card[data-status=dropped] { opacity: .65; }
.gn-card-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.gn-card-head strong { text-transform: capitalize; }
.gn-meta { color: #60452b; font-size: .8rem; }
.gn-look { width: 100%; min-height: 76px; resize: vertical; border: 1px solid #a4763899; border-radius: 8px; background: #fffaf0; color: #241912; padding: 8px 10px; font: .86rem/1.45 var(--font-ui); }
.gn-card details { font-size: .8rem; }
.gn-card summary { cursor: pointer; font-weight: 800; color: #5a3a12; }
.gn-card pre { white-space: pre-wrap; overflow-wrap: anywhere; font: .76rem/1.45 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; background: #fffaf0; border: 1px solid #c7a06a66; border-radius: 6px; padding: 7px 9px; margin-top: 5px; }
.gn-findings { margin: 0; padding-left: 18px; font-size: .8rem; font-weight: 700; }
.gn-findings.llm { color: #8b302a; }
.gn-findings.edit { color: #8a5a20; }
.gn-badge { border-radius: 6px; padding: 2px 7px; font-size: .72rem; font-weight: 800; background: #fff1c5; color: #8a5a20; }
.gn-history, .gn-card ol { margin: 5px 0 0; padding-left: 20px; }
.gn-card-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gn-note { flex: 1 1 140px; min-width: 120px; min-height: 36px; border: 1px solid #a4763899; border-radius: 7px; background: #fffaf0; color: #241912; padding: 4px 8px; }
.gn-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.gn-jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; font-size: .78rem; }
.gn-job { display: flex; justify-content: space-between; gap: 8px; border: 1px solid #b08b5366; border-radius: 8px; padding: 4px 8px; background: #fff8e8; }
.gn-bar { width: 100%; height: 10px; accent-color: #347d5d; }
.aw-queue.grouped { display: grid; gap: 4px; overflow-x: visible; }
.aw-group { display: grid; gap: 2px; }
.aw-group-title { color: #60452b; font-size: .72rem; font-weight: 800; overflow-wrap: anywhere; }
.aw-group-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-color: #a47638 transparent; }
@media (max-width: 460px) { .gn-cards { grid-template-columns: 1fr; } }
