/* site/room/room.css: things INSIDE unit faces on /room/. Layout is ui/app.js.
   Design rules: no radius, no blur; yellow is a fill; one stroke weight (--L). */
.ms { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; font-size: calc(var(--S) * .66);
  line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; display: inline-block;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24; -webkit-font-smoothing: antialiased; flex: none; }
.ms.f, .pressed .ms, .on > .ms { font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }
.ms.sm { font-size: calc(var(--S) * .5); }
.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.mono { font-family: var(--font-mono); }

/* views */
.rv-host { position: absolute; inset: 0; overflow: hidden; }
.rv-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.rv-canvas:active { cursor: grabbing; }
.rv-overlay { position: absolute; inset: 0; pointer-events: none; }
.rv-thumb { display: block; width: 100%; height: 100%; }
.rv-tag { position: absolute; left: 6px; top: 4px; pointer-events: none; }

/* overlay handles */
.rh { position: absolute; left: 0; top: 0; pointer-events: auto; font: 600 12px/1 var(--font-body); color: var(--ink);
  background: var(--panel); border: var(--L) solid var(--ink); border-radius: 0; padding: 0; cursor: pointer; }
.rh.corner { width: 16px; height: 16px; cursor: move; }
.rh.corner.on, .rh.corner:hover { background: var(--yellow); }
.rh.plus { width: 22px; height: 22px; font-size: 16px; }
.rh.plus:hover { background: var(--yellow); }
.rh.dim { padding: 3px 6px; font-family: var(--font-mono); white-space: nowrap; }
.rh.dim input { width: 7em; }
.rh.grip { width: 14px; height: 14px; cursor: move; background: var(--yellow); }
.rh.badge { width: 26px; height: 26px; display: grid; place-items: center; background: var(--yellow); }

/* panel */
.rp { position: absolute; inset: 0; overflow: auto; padding: calc(var(--S) * .4); display: flex; flex-direction: column;
  gap: calc(var(--S) * .35); font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--ink);
  white-space: normal; text-align: left; }   /* undo .ubtn .face's nowrap */
.rp-h { font-size: calc(var(--S) * .6); font-weight: 800; margin: 0; letter-spacing: -.01em; }
.rp-sub { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.rp-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.rp-lab { flex: 1; min-width: 0; }
.rp-group { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.rp-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; }
.rp-shape svg { width: 64px; height: 48px; display: block; }
.rp-shape polygon { fill: var(--tan); stroke: var(--ink); stroke-width: 3; vector-effect: non-scaling-stroke; }
.rp-note { background: var(--yellow); color: var(--on-yellow); padding: 6px 8px; margin: 0; }
.rp-warn { display: flex; gap: 8px; align-items: flex-start; border-top: var(--L) solid var(--ink); padding-top: 8px; font-size: 13px; }
.rp-warn p { margin: 0; flex: 1; }
.rp-sep { border: 0; border-top: var(--L) solid var(--ink); margin: 4px 0; width: 100%; }
.rp-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.rp-list { display: flex; flex-direction: column; gap: 6px; }
.rp-item { border: var(--L) solid var(--ink); padding: 6px 8px; display: flex; flex-direction: column; gap: 6px; background: var(--white); }
.rp-item.on { background: var(--yellow); }

/* in-panel controls: the rise, drawn with a solid hard offset */
.rb { font: 500 13px/1.2 var(--font-body); color: var(--ink); background: var(--panel); border: var(--L) solid var(--ink);
  border-radius: 0; padding: 5px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transform: translate(calc(var(--L) * -1), calc(var(--L) * -1)); box-shadow: var(--L) var(--L) 0 var(--ink);
  transition: transform var(--bb-dur) var(--bb-ease), box-shadow var(--bb-dur) var(--bb-ease); }
.rb:hover { transform: translate(calc(var(--L) * -2), calc(var(--L) * -2)); box-shadow: calc(var(--L) * 2) calc(var(--L) * 2) 0 var(--ink); }
.rb:active, .rb.on { transform: none; box-shadow: 0 0 0 var(--ink); transition-duration: var(--bb-dur-press); }
.rb.on { background: var(--yellow); color: var(--on-yellow); }
.rb:focus-visible { outline: none; background: var(--yellow); }
.rb:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.rb.swatch { width: 30px; height: 30px; padding: 0; }
.rb.swatch.on { outline: none; }
.ri { font: 500 13px/1.2 var(--font-mono); color: var(--ink); background: var(--white); border: var(--L) solid var(--ink);
  border-radius: 0; padding: 4px 6px; width: 8.5em; }
.ri:focus { outline: none; background: var(--yellow); }
.ri.bad { background: var(--yellow); }
.ri.text { font-family: var(--font-body); width: 100%; }
input[type="color"].ri { width: 44px; height: 30px; padding: 0; }

/* step bar labels */
.rs-tile > .body > .face { display: flex; align-items: center; justify-content: center; gap: 6px; }
.rs-label { font-size: 13px; font-weight: 600; }
.rs-icons-only .rs-label { display: none; }
