/* Storyboard (sb-). Frames are sticker cards on the dotted canvas; the art inside stays paper white
   in both themes because it is the picture, not the interface.
   Colour means one thing here: a scene's strip colour (data-color = scene.stripColor: INT/EXT and
   time of day, as on the stripboard), drawn as a soft band with a saturated edge tab. Numbers, shot
   labels and badges stay neutral ink so nothing competes with that code or with the status colours.
   The sb-strip-legend and sb-scene-tag pieces are shared with the shot list. */

/* ----- strip colour code ----- */

.sb-strip-legend { gap: 4px 10px; font-size: 11px; }
.sb-strip-legend .legend-item[data-color]:not(:has(.dot))::before {
  background: linear-gradient(90deg, var(--c) 0 40%, var(--c-soft) 40%);
}
.sb-scene-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  padding: 2px 8px 2px 10px;
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
  color: var(--text);
  background: var(--c-soft);
  border: 1px solid var(--strip-rule);
  border-radius: var(--r-xs);
  box-shadow: inset 4px 0 0 0 var(--c);
}
.sb-scene-tag b { font: 600 13px/1 var(--font-display); }
.sb-scene-tag-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-boardbtn { max-width: 300px; }
.sb-boardbtn .truncate { min-width: 0; }
.sb-boarddot {
  display: inline-block;
  flex: none;
  width: 12px;
  height: 12px;
  background: var(--surface-sunken);
  border: var(--bw-thin) solid var(--line);
  border-radius: 3px;
}
.sb-boarddot[data-color] { background: linear-gradient(90deg, var(--c) 0 40%, var(--c-soft) 40%); }

/* ----- pictures ----- */

.sb-sketch {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
}
.sb-sketch > svg { display: block; width: 100%; height: 100%; }
.sb-visual-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--paper);
}
.asset-img-empty.sb-visual-img { display: grid; place-items: center; color: var(--text-muted); }

/* ----- toolbar ----- */

.sb-boardpick { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.sb-boardpick .select-wrap,
.sb-boardpick select { max-width: 260px; }
.sb-selcount { font-size: var(--fs-sm); color: var(--text-2); }

/* ----- grid ----- */

.sb-gridwrap {
  position: relative;
  min-height: 100%;
  border-radius: var(--r-lg);
  outline: 3px dashed transparent;
  outline-offset: 4px;
  transition: outline-color 120ms ease;
}
.sb-gridwrap.is-fileover { outline-color: var(--c); background: var(--c-soft); }
.sb-hint { margin-bottom: var(--s-4); }

.sb-grid {
  display: grid;
  grid-template-columns: repeat(var(--sb-cols, 3), minmax(0, 1fr));
  gap: var(--s-5) var(--s-4);
  align-items: start;
}

.sb-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  cursor: default;
  transition: transform 100ms ease, box-shadow 100ms ease;
}
.sb-card:hover { box-shadow: var(--shadow-md); }
.sb-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sb-card.is-focused { box-shadow: 0 0 0 3px var(--text), var(--shadow-md); }
.sb-card.is-selected { background: var(--surface-sunken); }
.sb-card-band {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 4px 10px 4px 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  background: var(--c-soft);
  border-bottom: var(--bw) solid var(--line);
  border-radius: calc(var(--r-md) - 2px) calc(var(--r-md) - 2px) 0 0;
  box-shadow: inset 7px 0 0 0 var(--c);
}
.sb-card-band b { flex: none; font: 600 13px/1 var(--font-display); }
.sb-card-band.is-none { color: var(--text-muted); background: var(--surface-sunken); box-shadow: none; font-weight: 600; }
.sb-card.is-dragging,
.sb-card[aria-grabbed="true"] { opacity: 0.5; }

.sb-card-img {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border-bottom: var(--bw) solid var(--line);
  cursor: grab;
}
.sb-card-img.is-over { outline: 3px dashed var(--c); outline-offset: -6px; }
.sb-card-num {
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  font: 600 15px/1 var(--font-display);
  color: var(--text);
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: 1.5px 1.5px 0 0 var(--shadow-color);
}
.sb-card-shot {
  position: absolute;
  top: 8px;
  left: 44px;
  padding: 3px 8px;
  font: 600 13px/1.2 var(--font-display);
  color: var(--surface);
  background: var(--text);
  border: var(--bw-thin) solid var(--line);
  border-radius: var(--r-pill);
}
.sb-card-src {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  opacity: 0.9;
}
.sb-card-check {
  position: absolute;
  top: 8px;
  right: 8px;
  opacity: 0;
  transition: opacity 100ms ease;
  cursor: pointer;
}
.sb-card-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sb-card-check > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: transparent;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-xs);
}
.sb-card-check input:checked + span { color: var(--surface); background: var(--text); }
.sb-card-check input:focus-visible + span { outline: 3px solid var(--focus); }
.sb-card:hover .sb-card-check,
.sb-card:focus-within .sb-card-check,
.sb-card-check.is-visible { opacity: 1; }
.sb-card-tools {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 100ms ease;
}
.sb-card:hover .sb-card-tools,
.sb-card:focus-within .sb-card-tools { opacity: 1; }
@media (hover: none) { .sb-card-tools, .sb-card-check { opacity: 1; } }

.sb-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 10px 0;
}
.sb-fact {
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  background: var(--surface-sunken);
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.sb-fact.is-size { color: var(--surface); background: var(--text); }

.sb-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 8px 10px;
}
.sb-card-body .input.sb-in { padding: 4px 8px; }
.sb-card-body .input.textarea.sb-in { min-height: 0; resize: none; overflow: hidden; }
.sb-in {
  width: 100%;
  min-width: 0;
  font-size: 13px;
  line-height: 1.4;
  resize: none;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.sb-in:hover { background: var(--field-bg); border-color: var(--border); }
.sb-in:focus { background: var(--field-bg); border-color: var(--field-line); }
.sb-in-desc { font-weight: 600; }
.sb-in-dialogue { font-family: var(--font-script); font-size: 12.5px; color: var(--text-2); }
.sb-card-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sb-in-icon { display: grid; place-items: center; flex: none; width: 20px; color: var(--text-muted); }
.sb-in-small { flex: 1 1 auto; height: 28px; font-size: 12.5px; }
.sb-in-dur { flex: 0 0 82px; width: 82px; }

.sb-addtile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: var(--s-4);
  font: inherit;
  color: var(--text-2);
  background: transparent;
  border: var(--bw) dashed var(--text-muted);
  border-radius: var(--r-md);
  cursor: pointer;
  aspect-ratio: var(--sb-aspect, 1.78);
}
.sb-addtile:hover { color: var(--text); background: var(--surface); border-color: var(--line); }
.sb-addtile:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sb-addtile-box {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--on-candy);
  background: var(--c);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transform: rotate(-4deg);
}
.sb-addtile-label { font: 600 16px/1.2 var(--font-display); }

/* ----- empty ----- */

.sb-empty { max-width: 720px; margin: 0 auto; }
.sb-empty-scenes { display: flex; flex-direction: column; gap: 6px; margin-top: var(--s-4); }
.sb-empty-scene {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 14px;
  font: inherit;
  text-align: left;
  color: var(--text);
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 2px 2px 0 0 var(--shadow-color);
  cursor: pointer;
}
.sb-empty-scene:hover { background: var(--hover); }
.sb-empty-scene:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 0 var(--shadow-color); }
.sb-empty-scene[data-color] { box-shadow: inset 7px 0 0 0 var(--c), 2px 2px 0 0 var(--shadow-color); padding-left: 18px; }
.sb-empty-num {
  display: grid;
  place-items: center;
  flex: none;
  min-width: 32px;
  height: 28px;
  padding: 0 6px;
  font: 600 14px/1 var(--font-display);
  color: var(--text);
  background: var(--c-soft);
  border: var(--bw-thin) solid var(--line);
  border-radius: var(--r-sm);
}
.sb-empty-heading { flex: 1 1 auto; min-width: 0; font-weight: 700; }

/* ----- inspector ----- */

.sb-inspector .inspector-section { display: flex; flex-direction: column; gap: 10px; }
.sb-insp-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sb-insp-num {
  display: grid;
  place-items: center;
  flex: none;
  min-width: 34px;
  height: 34px;
  font: 600 17px/1 var(--font-display);
  color: var(--text);
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
  transform: rotate(-4deg);
}
.sb-insp-shot {
  display: inline-block;
  margin-left: 4px;
  padding: 0 7px;
  font: 600 13px/1.5 var(--font-display);
  color: var(--surface);
  background: var(--text);
  border-radius: var(--r-pill);
}
.sb-insp-preview {
  overflow: hidden;
  background: var(--paper);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
}
.sb-insp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.sb-insp-grid > label,
.sb-insp-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sb-sketch-editor { display: flex; flex-direction: column; gap: 10px; }

/* ----- AI ----- */

.sb-ai { display: flex; flex-direction: column; gap: var(--s-3); }
.sb-ai-list { display: flex; flex-direction: column; gap: 6px; max-height: 52vh; overflow: auto; padding: 2px; }
.sb-ai-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.sb-ai-item.is-on { background: var(--c-soft); border-color: var(--line); }
.sb-ai-thumb {
  flex: none;
  width: 128px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: var(--bw-thin) solid var(--line);
  border-radius: var(--r-xs);
}
.sb-ai-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; }
.sb-ai-text i { font-family: var(--font-script); font-style: normal; color: var(--text-2); }
.sb-ai-foot { align-items: center; }

/* ----- drawing ----- */

.sb-draw-modal .modal-body { display: flex; padding: 0; overflow: hidden; }
.sb-draw-keys { margin-right: auto; }
.sb-draw {
  display: flex;
  flex: 1 1 auto;
  gap: var(--s-3);
  min-width: 0;
  min-height: 0;
  padding: var(--s-3);
  outline: none;
}
.sb-draw-rail { align-self: flex-start; max-height: 100%; overflow: auto; }
.sb-draw-rail-gap { display: block; width: 24px; height: 0; margin: 4px 0; border-top: 1px solid var(--border); }
.sb-draw-stage {
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  padding: var(--s-3);
}
.sb-draw-paper {
  position: relative;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  background: var(--paper);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-xs);
  box-shadow: var(--shadow-md);
}
@supports (width: min(1px, 1px)) {
  .sb-draw-paper { width: auto; height: auto; max-width: 100%; max-height: calc(92vh - 170px); }
  .sb-draw-paper > canvas { max-height: calc(92vh - 174px); }
}
.sb-draw-paper > canvas {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  touch-action: none;
  border-radius: calc(var(--r-xs) - 2px);
}
.sb-draw-guides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.sb-draw-guides path { fill: none; stroke: var(--cyan); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.45; }
.sb-draw-guides .is-thirds { stroke: var(--magenta); opacity: 0.8; stroke-width: 1.5; }
.sb-draw-guides .is-safe { fill: none; stroke: var(--amber); stroke-dasharray: 6 4; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.sb-draw-side {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 0 0 240px;
  width: 240px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}
.sb-draw-group { display: flex; flex-direction: column; gap: 6px; }
.sb-draw-label { font: 800 10.5px/1.2 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.sb-draw-colors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.sb-draw-color {
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: var(--bw) solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.sb-draw-color.is-active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--line); }
.sb-draw-color:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sb-draw-layer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 2px 4px;
  padding: 4px 4px 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.sb-draw-layer.is-active { background: var(--c-soft); border-color: var(--line); }
.sb-draw-layer-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 4px 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: var(--r-xs);
  cursor: pointer;
}
.sb-draw-layer-pick:hover { background: var(--hover); }
.sb-draw-opacity { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .sb-draw { flex-wrap: wrap; overflow: auto; }
  .sb-draw-rail { flex-direction: row; flex-wrap: wrap; align-self: stretch; }
  .sb-draw-side { flex: 1 1 100%; width: auto; }
}

/* ----- animatic ----- */

.sb-anim-modal .modal-body { display: flex; padding: 0; overflow: hidden; }
.sb-anim {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  padding: var(--s-3) var(--s-4) var(--s-4);
  outline: none;
}
.sb-anim-stage {
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  min-height: 0;
  padding: var(--s-2);
  background: var(--on-candy);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-md);
}
.sb-anim-screen {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
}
.sb-anim-move { position: absolute; inset: 0; transform-origin: center; will-change: transform; }
.sb-anim-move > * { width: 100%; height: 100%; }
.sb-anim-num {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  font: 600 14px/1.2 var(--font-display);
  color: var(--paper-ink);
  background: var(--paper);
  border: var(--bw-thin) solid var(--paper-ink);
  border-radius: var(--r-sm);
}
.sb-anim-num[data-color] { background: var(--c-soft); box-shadow: inset 5px 0 0 0 var(--c); padding-left: 13px; color: var(--text); }
.sb-anim-num b { margin-left: 4px; }
.sb-anim-cam {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  color: var(--paper);
  background: color-mix(in srgb, var(--on-candy) 72%, transparent);
  border-radius: var(--r-pill);
}
.sb-anim-sub {
  position: absolute;
  left: 50%;
  bottom: 6%;
  max-width: 84%;
  padding: 6px 14px;
  font-size: clamp(13px, 2.2vw, 20px);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  color: var(--paper);
  background: color-mix(in srgb, var(--on-candy) 78%, transparent);
  border-radius: var(--r-sm);
  transform: translateX(-50%);
}
.sb-anim-empty { color: var(--paper); font-weight: 700; }
.sb-anim-controls { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2) var(--s-3); }
.sb-anim-controls > .select-wrap { width: auto; flex: 0 0 auto; min-width: 84px; }
.sb-anim-time { font-weight: 700; min-width: 88px; }
.sb-anim-scrub { position: relative; flex: 1 1 200px; min-width: 160px; }
.sb-anim-scrub input[type="range"] { width: 100%; accent-color: var(--c); }
.sb-anim-ticks { position: absolute; left: 0; right: 0; top: -4px; height: 6px; pointer-events: none; }
.sb-anim-ticks > span { position: absolute; top: 0; width: 2px; height: 6px; background: var(--text-muted); border-radius: 1px; }
.sb-anim-ticks > span.is-current { background: var(--c); width: 3px; }
.sb-anim-export { align-items: center; }
.sb-anim-export .progress { flex: 1 1 160px; }
.sb-anim-timeline {
  position: relative;
  display: flex;
  gap: 3px;
  flex: none;
  min-width: 0;
  overflow-x: auto;
  padding: 4px 2px 6px;
}
.sb-anim-block {
  display: flex;
  flex-direction: column;
  flex-basis: 0;
  min-width: 56px;
  padding: 0;
  font: inherit;
  text-align: left;
  color: var(--text);
  background: var(--surface);
  border: var(--bw-thin) solid var(--line);
  border-radius: var(--r-xs);
  overflow: hidden;
  cursor: pointer;
}
.sb-anim-block.is-current { background: var(--c-soft); box-shadow: 0 0 0 2px var(--c); }
.sb-anim-thumb { display: block; height: 44px; overflow: hidden; background: var(--paper); }
.sb-anim-block-meta { padding: 2px 6px; font-size: 11px; white-space: nowrap; }
.sb-anim-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--text);
  pointer-events: none;
}
.sb-anim-edit { display: flex; align-items: flex-end; flex-wrap: wrap; gap: var(--s-3); }
.sb-anim-field { display: flex; flex-direction: column; gap: 3px; min-width: 120px; }

/* ----- presentation ----- */

.sb-present-body { background: var(--surface-sunken); }
.sb-present {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1 1 auto;
  min-height: 0;
  padding: var(--s-3) var(--s-5) var(--s-4);
  outline: none;
}
.sb-present-top { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.sb-present-title { font: 600 18px/1.2 var(--font-display); }
.sb-present-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  flex: 1 1 auto;
  min-height: 0;
}
.sb-present-frame {
  height: 100%;
  max-width: calc(100% - 120px);
  max-height: 100%;
  overflow: hidden;
  background: var(--paper);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
.sb-present-notes {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}
.sb-present-id { display: flex; align-items: center; gap: 8px; flex: none; }
.sb-present-num {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  font: 600 20px/1 var(--font-display);
  color: var(--text);
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
  transform: rotate(-4deg);
}
.sb-present-shot {
  padding: 3px 10px;
  font: 600 15px/1.2 var(--font-display);
  color: var(--surface);
  background: var(--text);
  border: var(--bw-thin) solid var(--line);
  border-radius: var(--r-pill);
}
.sb-present-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sb-present-desc { font-size: var(--fs-lg); font-weight: 600; line-height: 1.45; }
.sb-present-dialogue { font-family: var(--font-script); font-size: 15px; color: var(--text-2); }
.sb-present-strip { display: flex; gap: 6px; flex: none; overflow-x: auto; padding: 4px 2px; }
.sb-present-thumb {
  position: relative;
  flex: none;
  height: 56px;
  padding: 0;
  overflow: hidden;
  background: var(--paper);
  border: var(--bw-thin) solid var(--line);
  border-radius: var(--r-xs);
  opacity: 0.7;
  cursor: pointer;
}
.sb-present-thumb.is-current { opacity: 1; box-shadow: 0 0 0 3px var(--c); }
.sb-present-thumb > span:last-child {
  position: absolute;
  left: 3px;
  top: 3px;
  padding: 0 4px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--paper);
  background: var(--paper-ink);
  border-radius: 4px;
}

/* ----- report dialog (shared with the shot list) ----- */

.sb-report-modal { height: 92vh; }
.sb-report-modal .modal-body { display: flex; padding: 0; overflow: hidden; }
.sb-report { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; min-height: 0; }
.sb-report-opts {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px var(--s-4);
  flex: none;
  padding: var(--s-3) var(--s-5);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.sb-report-opt { display: flex; flex-direction: column; gap: 3px; min-width: 140px; }
.sb-report-viewer { flex: 1 1 auto; min-height: 0; }

@media (max-width: 760px) {
  .sb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sb-present-frame { max-width: 100%; }
  .sb-present-nav { display: none; }
  .sb-present-notes { flex-direction: column; gap: var(--s-2); }
}
