/* The Scenarios section's own stylesheet (DESIGN 5.4).

   index.html links it (data-sheet="scenarios"). The section mounts the plan
   map (ui/surface/plan-map.js), whose rules are ui/movement/movement.css's
   map rules and ui/app.css's block for the plan map's sections; what is the
   scenario lab's alone goes here: the panel of the scenario and its changes
   (beside the map on a wide window, under it on a narrow one), the bar of
   Apply and Discard at the section's foot, and the comparison in the
   inspector. */

/* ---------- The panel ---------- */

.scn-panel {
  display: grid;
  gap: var(--s-5);
  align-content: start;
  padding: var(--s-4);
  background: var(--card);
  border-top: var(--border);
}

.scn-panel[hidden],
.scn-others[hidden],
.scn-open__title[hidden],
.scn-open__full[hidden],
.scn-others__full[hidden],
.scn-compare__with[hidden],
.scn-bar__buttons[hidden],
.scn-open[hidden],
.scn-start[hidden],
.scn-add[hidden],
.scn-dropped[hidden] {
  display: none;
}

.scn-panel__title {
  margin: 0 0 var(--s-2);
  font-size: var(--t-md);
  font-weight: 600;
}

.scn-changes,
.scn-open,
.scn-add,
.scn-file,
.scn-report {
  display: grid;
  gap: var(--s-2);
  align-content: start;
  min-width: 0;
}

.scn-start__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.scn-start__row .field__input {
  flex: 1 1 10rem;
  min-width: 0;
}

.scn-name__input {
  width: 100%;
}

/* ---------- The chips ---------- */

.scn-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.scn-chips[hidden],
.scn-none[hidden],
.scn-form__follow[hidden] {
  display: none;
}

.scn-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  max-width: 100%;
  padding: var(--s-1) var(--s-1) var(--s-1) var(--s-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: var(--t-sm);
  line-height: var(--lh-sm);
}

.scn-chip__words {
  min-width: 0;
  overflow-wrap: anywhere;
}

.scn-chip__remove {
  flex: none;
  min-width: 32px;
  min-height: 32px;
  border: 0;
  border-radius: var(--r-1);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--t-lg);
  line-height: 1;
  cursor: pointer;
}

.scn-chip__remove:hover {
  background: var(--card);
}

.scn-none,
.scn-status,
.scn-file__lead,
.scn-report__lead,
.scn-dropped__note,
.scn-form__now,
.scn-form__preview,
.scn-form__follow,
.scn-form__line,
.scn-file__result,
.scn-file__groups {
  margin: 0;
  font-size: var(--t-sm);
  line-height: var(--lh-sm);
  overflow-wrap: anywhere;
}

.scn-status:empty,
.scn-form__line:empty,
.scn-file__result:empty,
.scn-form__now:empty,
.scn-form__preview:empty {
  display: none;
}

.scn-file__groups[hidden],
.scn-file__skipped[hidden] {
  display: none;
}

.scn-none,
.scn-file__lead,
.scn-report__lead,
.scn-dropped__note,
.scn-form__now {
  color: var(--ink-2);
}

.scn-status {
  padding: var(--s-2) var(--s-3);
  border-left: 3px solid var(--accent);
  background: var(--paper);
}

/* ---------- What no longer applies ---------- */

.scn-dropped {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-3);
  border: 1px dashed var(--warning);
  border-radius: var(--r-2);
  background: var(--paper);
}

.scn-dropped__list {
  margin: 0;
  padding-left: var(--s-5);
  font-size: var(--t-sm);
  line-height: var(--lh-sm);
  overflow-wrap: anywhere;
}

.scn-dropped .btn {
  justify-self: start;
}

/* ---------- Add a change ---------- */

.scn-add .seg {
  flex-wrap: wrap;
}

.scn-form {
  display: grid;
  gap: var(--s-2);
}

.scn-form__fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: var(--s-2) var(--s-3);
}

.scn-field {
  display: grid;
  gap: var(--s-1);
  min-width: 0;
}

.scn-field .field__input {
  width: 100%;
  min-width: 0;
}

.scn-field--room {
  grid-column: 1 / -1;
}

.scn-form__follow {
  color: var(--note);
}

.scn-form__line {
  color: var(--problem);
}

.scn-form__actions .btn,
.scn-file .btn,
.scn-report .btn {
  justify-self: start;
}

.scn-file__skipped summary {
  cursor: pointer;
  font-size: var(--t-sm);
}

.scn-file__skipped ul {
  margin: var(--s-1) 0 0;
  padding-left: var(--s-5);
  font-size: var(--t-sm);
}

/* ---------- The bar at the section's foot (sticky: .mov-bar) ---------- */

/* closed to no height while no scenario is open, but laid out: the plan map
   measures what stands above it from its box */
.scn-bar[data-open="false"] {
  min-height: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}

.scn-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
}

.scn-bar__text {
  margin: 0;
  font-weight: 600;
  font-size: var(--t-sm);
}

.scn-bar__buttons {
  display: flex;
  gap: var(--s-2);
}

/* a finger's target on a phone, a coarse pointer, or a short window (a phone
   on its side asks by touch even where the pointer reads as fine) */
@media (max-width: 639.98px), (max-height: 420px), (pointer: coarse) {
  .scn-bar .btn,
  .scn-panel .btn,
  .scn-panel .field__input,
  .scn-compare__options .field__input,
  .scn-panel .seg__option {
    min-height: 44px;
  }

  .scn-chip__remove {
    min-width: 44px;
    min-height: 44px;
  }
}

/* ---------- Other scenarios, and keeping the open one (SV2-122) ---------- */

/* A list of rows, never a scroller: the name and its count on a line, the
   messages under it, and the four buttons wrapping under those. */
.scn-others {
  display: grid;
  gap: var(--s-2);
}

.scn-others__list {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.scn-other {
  display: grid;
  gap: var(--s-1);
  padding: var(--s-2) var(--s-3);
  border: var(--border);
  border-radius: var(--r-1);
  background: var(--paper);
}

.scn-other__line,
.scn-other__message,
.scn-others__status,
.scn-others__full,
.scn-open__full {
  margin: 0;
  font-size: var(--t-sm);
  line-height: var(--lh-sm);
  overflow-wrap: anywhere;
}

.scn-other__line {
  font-weight: 600;
}

.scn-other__message,
.scn-others__full,
.scn-open__full {
  color: var(--ink-2);
}

.scn-others__status:empty {
  display: none;
}

.scn-other__buttons,
.scn-open__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.scn-open__title {
  overflow-wrap: anywhere;
}

.scn-open__title:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.scn-others__title:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* a long kept name in the Before column's heading wraps rather than widens it;
   a name is never hyphenated by the page (SV2-123c: "next-" over "year.json"
   had been drawn in a column a third of the table wide), only wrapped */
.scn-figures__before {
  overflow-wrap: anywhere;
  hyphens: manual;
}

.scn-table th.scn-name {
  overflow-wrap: anywhere;
  hyphens: manual;
}

.scn-other__button[aria-disabled="true"],
.scn-open__actions .btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Beside the map, on a wide window ---------- */

/* The panel takes a column on the left and the first line, the stage and the
   bar the rest; the panel scrolls on its own, so its length takes nothing
   from the stage, whose height is the plan map's (--mov-room). */
@media (min-width: 1200px) {
  .scn .mov-map {
    display: grid;
    grid-template-columns: minmax(18rem, 22rem) minmax(0, 1fr);
    grid-template-rows: auto auto minmax(min(max(45dvh, 320px), var(--mov-room, 100dvh)), 1fr) auto;
  }

  .scn .mov-map > * {
    grid-column: 2;
  }

  .scn .mov-map > .scn-panel {
    grid-column: 1;
    grid-row: 1 / 4;
    contain: size;
    overflow-y: auto;
    border-top: 0;
    border-right: var(--border);
  }

  .scn .mov-map > .mov-stage {
    grid-row: 3;
  }

  .scn .mov-map > .scn-bar {
    grid-column: 1 / -1;
    grid-row: 4;
  }
}

/* ---------- On a phone: the stage stays in view (DESIGN 12.4, 5.4) ---------- */

/* Phone widths only (under 600 px): on a tablet or a narrow laptop window the
   stacked layout has room, and the plan keeps the height it has with no
   scenario open (DESIGN 5.4's floor) whether or not a form is open. */

/* Below the wide layout the panel stands under the map, and a form brought
   into view used to carry the stage off the top of the section (0 px of it
   visible with Bell times open at 390 by 844). With a scenario open the stage
   is pinned to the top of the section at a height of its own (between 180 and
   280 px, 31 % of the window: the page around the section may be scrolled up
   to 81 px by the card under it, and 160 px must still show), and the panel, the forms in it, scrolls under
   it, as its own region: scroll-padding keeps a field brought into view clear
   of the stage and the bar. A window under 600 px tall (a phone on its side)
   keeps the plan map's own rule, the first line scrolled away instead. */
@media (max-width: 599.98px) and (min-height: 600px) {
  .scn[data-mode="open"] {
    --scn-pin: clamp(180px, 31dvh, 280px);
    scroll-padding-top: var(--scn-pin);
  }

  .scn[data-mode="open"] .mov-map > .mov-stage {
    position: sticky;
    top: 0;
    z-index: 3;
    flex: 0 0 var(--scn-pin);
  }
}

/* ---------- The comparison, in the inspector ---------- */

.scn-compare {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-3);
}

.scn-compare__title {
  margin: 0;
  font-size: var(--t-lg);
}

.scn-compare__options {
  display: grid;
  gap: var(--s-2);
}

.scn-compare__options[hidden] {
  display: none;
}

.scn-compare__options .field__input {
  width: 100%;
}

.scn-compare__status {
  margin: 0;
  font-size: var(--t-sm);
  color: var(--ink-2);
}

.scn-compare__status:empty {
  display: none;
}

.scn-compare__body {
  display: grid;
  gap: var(--s-4);
}

/* the last answer, kept while a newer one is worked out, reads as old: its
   status line says so, and the figures are set back */
.scn-compare[data-state="old"] .scn-compare__body {
  opacity: 0.6;
}

.scn-compare__heading {
  margin: 0 0 var(--s-2);
  font-size: var(--t-md);
}

.scn-compare__busiest,
.scn-compare__note {
  margin: 0;
  font-size: var(--t-sm);
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

/* The tables in the inspector's 320 px. A figure never breaks inside itself
   (SV2-72d, W3: "153 min / 48 s"): its spaces are no-break spaces
   (ui/scenarios/model.js) and a number cell does not break a word, so the
   table lays its columns out to fit the figures and the labels wrap at
   their spaces in what is left. */
.scn-table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  font-size: var(--t-sm);
  font-variant-numeric: tabular-nums;
}

.scn-table th,
.scn-table td {
  padding: var(--s-1) var(--s-1) var(--s-1) 0;
  overflow-wrap: break-word;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.scn-table thead th {
  overflow-wrap: normal;
}

.scn-table td.num {
  overflow-wrap: normal;
}

/* The figures: a grid of three columns, each figure's name a line of its
   own over its before, after and difference (ui/scenarios/compare.js says
   the table's roles outright, so the grid is still a table to a reader).
   The corner heading, "Figure", is for a reader alone. */
.scn-figures {
  display: grid;
  /* each column as wide as its heading and figures want, no wider than the table
     (a file name over its column is wrapped only when the table cannot hold it whole) */
  grid-template-columns: repeat(3, minmax(0, auto));
}

.scn-figures thead,
.scn-figures tbody,
.scn-figures tr {
  display: contents;
}

.scn-figures th,
.scn-figures td {
  display: block;
}

.scn-figures .scn-figures__corner {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.scn-figures tbody th {
  grid-column: 1 / -1;
  padding-top: var(--s-2);
  border-bottom: 0;
}

.scn-figures thead th:not(.scn-figures__corner),
.scn-figures td.num {
  text-align: right;
}

/* The difference map's table (ui/scenarios/difference.js): five columns,
   at fixed shares, the figures' headings over their figures at the right. */
.scn-difference {
  table-layout: fixed;
}

.scn-difference thead th:nth-child(1) { width: 28%; }
.scn-difference thead th:nth-child(2) { width: 17%; }
.scn-difference thead th:nth-child(3) { width: 16%; }
.scn-difference thead th:nth-child(4) { width: 13%; }
.scn-difference thead th:nth-child(5) { width: 26%; }

.scn-difference thead th:nth-child(n + 3) {
  text-align: right;
}

.scn-table thead th {
  color: var(--ink-2);
  font-weight: 600;
}

.scn-table tbody th {
  font-weight: 500;
  overflow-wrap: break-word;
  hyphens: manual;
}

.scn-table .num {
  text-align: right;
}

.scn-trend {
  display: block;
  font-size: var(--t-xs);
  font-weight: 600;
}

.scn-trend[data-trend="worse"] {
  color: var(--problem);
}

.scn-trend[data-trend="better"] {
  color: var(--accent);
}

/* an edited group, said in words and outlined, never by colour alone */
.scn-tag {
  display: inline-block;
  margin-left: var(--s-1);
  padding: 0 var(--s-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
  font-size: var(--t-xs);
  font-weight: 600;
}

.scn-places__title,
.scn-findings__title {
  margin: 0 0 var(--s-1);
  font-size: var(--t-sm);
}

.scn-places__list,
.scn-findings__list {
  margin: 0;
  padding-left: var(--s-5);
  font-size: var(--t-sm);
  line-height: var(--lh-sm);
  overflow-wrap: anywhere;
}

.scn-places + .scn-places,
.scn-findings + .scn-findings {
  margin-top: var(--s-3);
}

.scn-findings summary {
  cursor: pointer;
  font-size: var(--t-sm);
  font-weight: 600;
}

.scn-severity {
  font-weight: 600;
}

.scn-summary__list {
  margin: var(--s-1) 0 var(--s-3);
  padding-left: var(--s-5);
  overflow-wrap: anywhere;
}

/* Apply's summary keeps its question and its two buttons in view however
   many changes it lists, on a phone on its side too (SV2-72f; the Fix
   dialog's rule, W4): the dialog is a column the window's height at the
   most, and its body, the list, scrolls between them. */
.scn-apply[open] {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--s-4));
  max-height: calc(100dvh - var(--s-4));
}

.scn-apply .dialog__title,
.scn-apply .dialog__buttons {
  flex: none;
}

.scn-apply .dialog__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* ---------- The Kind of change fieldset and the lever forms (DESIGN 12.4) ---------- */

/* seven chips (six here, the stairs and corridors one is SV2-92b's), 44 px,
   wrapping; the chosen one is a filled shape and bold, never colour alone */
.scn-kind {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.scn-kind__legend {
  padding: 0;
  margin-bottom: var(--s-1);
  font-size: var(--t-sm);
  font-weight: 600;
}

.scn-kind .seg,
.scn-seats__what .seg {
  flex-wrap: wrap;
  gap: var(--s-1);
}

.scn-kind .seg__option,
.scn-seats__what .seg__option {
  min-height: 44px;
}

.scn-kind .seg__input:checked + .seg__label,
.scn-seats__what .seg__input:checked + .seg__label {
  font-weight: 700;
}

.scn-kind .seg__input:checked + .seg__label::before,
.scn-seats__what .seg__input:checked + .seg__label::before {
  content: '';
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-right: 0.4em;
  border-radius: 50%;
  background: currentColor;
}

.scn-seats__what {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.scn-seats__what legend {
  padding: 0;
  margin-bottom: var(--s-1);
  font-size: var(--t-sm);
  font-weight: 600;
}

/* the form scrolls inside the panel, so a long editor never takes the stage */
.scn-form {
  min-width: 0;
}

.scn-form__passing,
.scn-form__lengthen,
.scn-form__trial,
.scn-form__hint,
.scn-seats__now {
  margin: 0;
  font-size: var(--t-sm);
  overflow-wrap: anywhere;
}

.scn-form__passing {
  font-weight: 600;
}

.scn-form__lengthen:empty,
.scn-form__passing:empty {
  display: none;
}

.scn-form__trial {
  color: var(--note);
  font-weight: 600;
}

.scn-lengthen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
}

.scn-lengthen__label {
  font-size: var(--t-sm);
}

.scn-lengthen__button {
  min-width: 44px;
  min-height: 44px;
}

.scn-force {
  display: grid;
  gap: var(--s-1);
}

.scn-force__title {
  margin: 0;
  font-size: var(--t-sm);
  font-weight: 600;
}

.scn-force__none {
  margin: 0;
  font-size: var(--t-sm);
  color: var(--ink-2);
}

.scn-force__list {
  margin: 0;
  padding-left: var(--s-5);
  font-size: var(--t-sm);
  overflow-wrap: anywhere;
}

/* the Day tab's editor, inside the panel: its fields stack */
.scn-form .sch-release__fields,
.scn-form .sch-markedit__grid {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: minmax(0, 1fr);
}

.scn-form .sch-radio,
.scn-form .sch-show__chip,
.scn-form .chip__remove {
  min-height: 44px;
}

/* a closure's chip carries "Trial only"; a held group's row says why it is late */
.scn-chip .scn-tag {
  margin-left: var(--s-2);
}

.scn-held {
  display: block;
  font-size: var(--t-xs);
  color: var(--note);
  font-weight: 400;
}

.scn-summary__trial {
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--line-strong);
  border-left-width: 4px;
  border-radius: var(--r-1);
  font-weight: 600;
}

/* ---------- Stairs and corridors, and picking on the map (DESIGN 12.4) ---------- */

.scn-way {
  display: grid;
  gap: var(--s-1);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* four ways to choose from; a radio chip wraps and is a finger's size */
.scn-way .seg {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.scn-pick-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.scn-pick-button {
  min-height: 44px;
}

.scn-pick-button[aria-pressed="true"] {
  font-weight: 700;
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* the banner on the stage while a corridor is being picked: over the plan's
   top edge, under the zoom buttons' side, a Cancel at a finger's size */
.scn-pick {
  position: absolute;
  top: var(--s-2);
  left: var(--s-2);
  right: var(--s-2);
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-left-width: 4px;
  border-radius: var(--r-1);
  font-size: var(--t-sm);
  font-weight: 600;
}

.scn-pick[hidden] {
  display: none;
}

.scn-pick__cancel {
  min-height: 44px;
  min-width: 44px;
}

.scn[data-picking="true"] .mov-plan {
  cursor: crosshair;
}

/* what the cross-hatch on the plan means */
.scn-legend {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
  font-size: var(--t-sm);
}

.scn-legend[hidden] {
  display: none;
}

.scn-legend__swatch {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid var(--ink);
  background:
    repeating-linear-gradient(45deg, transparent 0 3px, var(--ink) 3px 4px),
    repeating-linear-gradient(-45deg, transparent 0 3px, var(--ink) 3px 4px);
}

/* ---------- Comparing two buildings (SV2-123; DESIGN 15.7 and 15.9) ---------- */

.scn-bld[hidden],
.scn-bld__inspector[hidden],
.scn-changes[hidden],
.scn-compare[hidden],
.scn-file__shelf[hidden] {
  display: none;
}

/* the band, in the trial band's style: a border, the words, Stop comparing */
.scn-bld {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border: 2px solid var(--accent);
  border-radius: var(--r-1);
  background: var(--card);
  font-size: var(--t-sm);
  line-height: var(--lh-sm);
}

.scn-bld__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-3);
}

.scn-bld__text {
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
  font-weight: var(--w-semibold);
  overflow-wrap: anywhere;
}

.scn-bld__stop {
  flex: none;
  min-height: 44px;
  min-width: 44px;
}

.scn-bld__note,
.scn-bld__edit {
  margin: 0;
  overflow-wrap: anywhere;
}

.scn-bld__legend {
  font-weight: var(--w-semibold);
}

/* the two-way switch: two buttons in a row on a phone, each a finger's size */
.scn-bld__switch .seg {
  display: flex;
  width: 100%;
}

.scn-bld__switch .seg__option {
  flex: 1 1 0;
  min-width: 0;
}

.scn-bld__switch .seg__label {
  min-height: 44px;
  justify-content: center;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* the legend in the inspector: five swatches with their loads, then the one line */
.scn-bld__key {
  display: grid;
  gap: var(--s-1);
}

.scn-bld__bands {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--t-sm);
}

.scn-bld__bands li {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
}

.scn-bld__swatch {
  display: inline-block;
  width: 1.1rem;
  height: 0.8rem;
  border: 1px solid var(--line-strong);
}

.scn-bld__line {
  margin: 0;
  font-size: var(--t-sm);
}

.scn-bld__list {
  margin: 0;
  padding-left: var(--s-4);
}

/* with different units there is no difference column: two figures a row */
.scn-figures--two {
  grid-template-columns: repeat(2, minmax(0, auto));
}

/* a recompute is pending after a change in the open project: the tables are the old ones */
.scn-bld__inspector [data-stale='true'] {
  opacity: 0.5;
}

.scn-bld__refusal {
  margin: 0;
}

/* the projects kept on this device, beside "Compare with another project file…" */
.scn-file__shelf {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-3);
  align-items: end;
}

/* a short window (a phone on its side): the band is one row, the not-saved line is in the inspector */
@media (max-height: 420px) {
  .scn-bld__note {
    display: none;
  }

  /* the head wraps (a long file name, right to left or not, goes under Stop, never pushes it off) */
  .scn-bld__head {
    align-items: flex-start;
  }

  .scn-bld__text {
    flex-basis: 8rem;
  }
}
