/* The Screens list and the Device tool (Board 2's Screens list and Device boards), and the
   small screen pictures they share. */

/* A screen picture: the full screen drawn once and scaled */
.thumb { position: relative; display: block; flex: none; overflow: hidden; pointer-events: none; }
.thumb-zoom { position: absolute; left: 0; top: 0; transform-origin: 0 0; }

/* Screens list (side panel) */
.panel-body.scr-list { gap: 4px; padding: 10px 10px 24px; }
.scr-row { width: 100%; flex: none; display: flex; align-items: center; gap: 12px; padding: 6px 8px; text-align: left; color: var(--ink); background: transparent; border: 2px solid transparent; border-radius: 0; }
button.scr-row:hover:not(.is-on) { background: var(--surface2); }
.scr-row.is-on { background: #ffe9e3; border-color: #271813; box-shadow: 2px 2px 0 #271813; }
:root[data-skin="clean"] .scr-row { border: 1px solid transparent; border-radius: 12px; }
:root[data-skin="clean"] button.scr-row:hover:not(.is-on) { background: #f7f1e3; }
:root[data-skin="clean"] .scr-row.is-on { background: rgba(154, 52, 18, 0.07); border-color: rgba(154, 52, 18, 0.35); box-shadow: none; }
.scr-thumb { flex: none; display: flex; }
.scr-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.scr-text .card-title, .scr-text .sub { overflow: hidden; text-overflow: ellipsis; }
.scr-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.scr-planned-head { margin: 8px 8px 2px; }
.scr-row.is-planned .scr-text { gap: 2px; }
.scr-row.is-planned .btn-sm { height: 30px; }
.scr-plan-box { width: 40px; height: 60px; flex: none; display: flex; align-items: center; justify-content: center; color: var(--muted); border: 2px dashed #271813; border-radius: 8px; }
:root[data-skin="clean"] .scr-plan-box { border: 1.5px dashed #b9ab92; }

/* All screens (canvas) */
.all-screens { display: flex; flex-direction: column; gap: 22px; padding: 22px 32px 96px; }
.app:not(.has-panel) .all-screens { padding-left: 72px; }
.all-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.all-head .sub { font-size: 13.5px; }
.all-grid { display: flex; flex-wrap: wrap; gap: 26px 34px; }
.all-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.all-shot { position: relative; display: block; padding: 6px; color: var(--ink); background: transparent; border: 0; border-radius: 30px; transition: box-shadow 120ms ease; }
.all-shot.is-on { box-shadow: 0 0 0 3px #ff5f1f; }
.all-shot:hover:not(.is-on) { box-shadow: 0 0 0 3px rgba(255, 95, 31, 0.45); }
:root[data-skin="clean"] .all-shot.is-on { box-shadow: 0 0 0 2px #9a3412; }
:root[data-skin="clean"] .all-shot:hover:not(.is-on) { box-shadow: 0 0 0 2px rgba(154, 52, 18, 0.4); }
.all-open {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 6px 14px;
  font-family: var(--ui);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #271813;
  background: #ff5f1f;
  border: 2px solid #271813;
  box-shadow: 3px 3px 0 #271813;
  opacity: 0;
  transition: opacity 120ms ease;
}
:root[data-skin="clean"] .all-open { padding: 7px 14px; font-size: 13px; letter-spacing: 0; text-transform: none; color: #ffffff; background: #9a3412; border: 0; border-radius: 999px; box-shadow: 0 8px 18px -8px rgba(28, 34, 48, 0.5); }
.all-shot:hover .all-open, .all-shot:focus-visible .all-open, .all-shot.is-on .all-open { opacity: 1; }
.all-plan { margin: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 8px; font-size: 12.5px; text-align: center; color: var(--muted); background: rgba(255, 255, 255, 0.5); border: 3px dashed #271813; border-radius: 24px; }
:root[data-skin="clean"] .all-plan { background: rgba(255, 253, 248, 0.55); border: 2px dashed #b9ab92; }
.all-plan b { font-family: var(--display); font-size: var(--card-title); font-weight: var(--hw); letter-spacing: var(--hs); text-transform: var(--ht); color: var(--ink); }
.all-plan .btn-primary { height: 32px; }
.all-name { display: flex; align-items: center; gap: 6px; }

/* Device tool */
.panel-device .panel-body { gap: 12px; }
.auto-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #ffe9e3; border: 2px solid #271813; box-shadow: 2px 2px 0 #271813; }
:root[data-skin="clean"] .auto-card { background: rgba(154, 52, 18, 0.07); border: 1px solid rgba(154, 52, 18, 0.3); border-radius: 12px; box-shadow: none; }
.auto-card b { font-weight: 700; }
.dev-group { gap: 2px; }
.dev-group > .eyebrow { padding: 6px 4px 2px; }
.dev-list { display: flex; flex-direction: column; gap: 2px; }
.dev-row { height: 34px; display: flex; align-items: center; gap: 10px; padding: 0 10px; font-family: var(--ui); font-size: 13.5px; text-align: left; color: var(--ink); background: transparent; border: 2px solid transparent; border-radius: 0; }
.dev-row:hover:not(.is-on) { background: var(--surface2); }
.dev-row.is-on { font-weight: 700; color: #271813; background: #ff5f1f; border-color: #271813; }
:root[data-skin="clean"] .dev-row { border: 0; border-radius: 9px; }
:root[data-skin="clean"] .dev-row:hover:not(.is-on) { background: #f7f1e3; }
:root[data-skin="clean"] .dev-row.is-on { color: #9a3412; background: rgba(154, 52, 18, 0.1); }
.dev-row .i { stroke-width: 2.25; }
.dev-size { flex: none; font-family: var(--mono); font-size: 11.5px; }
.panel-device .switch-row .label { font-size: 14px; }
