.iesdesk-scene-board {
  display: grid;
  gap: var(--space-sm);
  width: 100%;
  min-width: 0;
}
/* Room layouts are not scenes: kit tabs under the scene row. */
.iesdesk-scene-layouts { margin-block-start: var(--space-xs); }
.iesdesk-scene-board .iesdesk-scene-selector { margin-bottom: 0; }
/* The picture row scrolls inside its box on a phone; the board never widens the page. */
.iesdesk-scene-board > * { min-width: 0; }
/* Settings are a strip above the result, so the canvases take the full
   width (MEMORY 2026-10-16 app-pages-layout): fields of 160-220px side by
   side, label above, wrapping to a new row, with Update preview at the end.
   The field hints stay for screen readers only; the pending note shows. */
.iesdesk-scene__workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); align-items: start; }
/* The entry form uses the same strip as the result settings, with its hints shown (UI audit P1-01). */
.iesdesk-scene__settings { padding-bottom: var(--space-lg); border-bottom: 1px solid var(--rule); }
:is(.iesdesk-scene__settings, .iesdesk-scene-entry) :is(form, div):has(> .agustos-field) { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-md) var(--space-lg); margin: 0; }
:is(.iesdesk-scene__settings, .iesdesk-scene-entry) :is(form, div):has(> .agustos-field) > * { flex-basis: 100%; margin: 0; }
:is(.iesdesk-scene__settings, .iesdesk-scene-entry) :is(form, div):has(> .agustos-field) > .agustos-field:not([data-controller~="file-drop"]) { flex: 1 1 180px; min-width: 160px; max-width: 220px; }
:is(.iesdesk-scene__settings, .iesdesk-scene-entry) :is(form, div):has(> .agustos-field) > button[type=submit] { flex: 0 0 auto; }
/* Give unit choices enough room for their full text and the select arrow. */
:is(.iesdesk-scene__settings, .iesdesk-scene-entry) :is(form, div):has(> .agustos-field) > .agustos-field:has(> select[name="unit"]) { flex-basis: 280px; max-width: 400px; }
/* On the entry form, the heading and the scene text take a whole row and
   keep the app measure; fields line up at the top, as their hints differ. */
.iesdesk-scene-entry form.agustos-fieldset { align-items: flex-start; }
.iesdesk-scene-entry form.agustos-fieldset > :not(.agustos-field, button, input[type=hidden]) {
  flex: 0 0 100%; max-width: none; padding-inline-end: max(0px, calc(100% - var(--app-measure, 860px)));
}
.iesdesk-scene-entry form > button[type=submit] { align-self: flex-end; }
.iesdesk-scene__settings .agustos-field > .agustos-hint {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.iesdesk-scene__settings summary { min-height: var(--control-min); margin: 0 0 var(--space-md); cursor: pointer; }
.iesdesk-scene__result { min-width: 0; }
.iesdesk-scene__viewer { margin-top: var(--space-lg); }
.iesdesk-scene__handoff { margin-top: var(--space-xl); }
/* The scale row has no rule of its own: the rule of Notes below closes the
   scene, and two rules drew an empty band (QA 2026-11-19). */
.iesdesk-scene__display { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-sm); padding: var(--space-sm) 0; }
.iesdesk-scene__display p { margin: 0; flex: 1; }
.iesdesk-scene__figures { padding-top: var(--space-xl); }
@media (max-width: 639px) {
  :is(.iesdesk-scene__settings, .iesdesk-scene-entry) :is(form, div):has(> .agustos-field) > .agustos-field:not([data-controller~="file-drop"]) { max-width: none; flex-basis: 100%; }
}

/* One scene picker on every page: picture, name, description and a
   selected mark (MEMORY 2026-10-19 one-scene-picker). All scenes sit in
   one row from 1024px, however many there are (UI audit P1-02). */
.iesdesk-scene-selector { margin-bottom: var(--space-xl); }
.iesdesk-scene-selector__heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-md); }
.iesdesk-scene-selector__heading p { margin: 0; }
.iesdesk-scene-selector__choices { display: grid; grid-template-columns: repeat(var(--scene-choice-count, 7), minmax(0, 1fr)); gap: var(--space-xs); margin: var(--space-sm) 0; }
.iesdesk-scene-selector__choice { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: var(--space-2xs); min-width: 0; padding: var(--space-xs) var(--space-xs) var(--space-sm); text-align: left; white-space: normal; line-height: var(--leading-body); }
/* Two class levels more than the kit, so a disabled selected button keeps its look on hover. */
.iesdesk-scene-selector .iesdesk-scene-selector__choices > .iesdesk-scene-selector__choice:is([aria-pressed="true"], [aria-current="page"]) { border-color: var(--ink); background: var(--surface); color: var(--ink); opacity: 1; }
.iesdesk-scene-selector__choice svg { display: block; width: 100%; max-height: 5rem; height: auto; margin-bottom: var(--space-2xs); pointer-events: none; border-radius: var(--radius-md); background: var(--surface); }
.iesdesk-scene-selector__choice:is([aria-pressed="true"], [aria-current="page"]) svg { background: var(--paper); }
.iesdesk-scene-selector__label { overflow-wrap: anywhere; }
.iesdesk-scene-selector__detail { margin: 0; font-weight: 400; color: var(--ink-soft); }
.iesdesk-scene-selector__mark { margin: 0; margin-top: auto; }
.iesdesk-scene__settings, .iesdesk-scene__side, .iesdesk-scene__result { min-width: 0; }
@media (max-width: 1023px) {
  .iesdesk-scene-selector__choices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* On a phone the scenes scroll sideways in one row, so the upload box and
   the settings stay near the top (UI audit P2-02). */
@media (max-width: 639px) {
  .iesdesk-scene-selector__choices {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(8.5rem, 40%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    padding-block-end: var(--space-2xs);
  }
  .iesdesk-scene-selector__choice { scroll-snap-align: start; }
}

.iesdesk-scene-file-notes { display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--space-xs) var(--space-xl); }

/* Native page links keep both View sections available. */
.iesdesk-view-links { padding-block: var(--space-sm); border-bottom: 1px solid var(--rule); }
.iesdesk-view-section { scroll-margin-top: calc(var(--control-min) + var(--space-2xl)); }
/* The tool strip of View (MEMORY 2026-11-10 tool-strip) stays under the
   sticky top menu while the page scrolls, so a section that a link opens
   starts below the menu and the strip. */
.iesdesk-tool-strip { position: sticky; top: var(--site-header-height); z-index: 3; background: var(--paper); }
.iesdesk-view-page:has(.iesdesk-tool-strip) .iesdesk-view-section { scroll-margin-top: calc(2 * var(--control-min) + var(--space-2xl)); }
/* Compare keeps its strip under the top menu too; each section that a link opens starts below both. */
.iesdesk-compare-sheet > .iesdesk-tool-strip { padding-block: var(--space-xs); border-bottom: 1px solid var(--rule); }
.iesdesk-compare-sheet:has(> .iesdesk-tool-strip) [id] { scroll-margin-top: calc(2 * var(--control-min) + var(--space-2xl)); }
/* The BUG, ULOR and UGR section: one half for each use, and in the outdoor half the
   BUG rating beside the ULOR from 1024px. */
.iesdesk-glare__half { display: flex; flex-direction: column; gap: var(--space-md); padding: var(--space-md); }
.iesdesk-glare__half + .iesdesk-glare__half { border-top: 1px solid var(--rule); }
.iesdesk-glare__results { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
@media (min-width: 1024px) {
  .iesdesk-glare__results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.iesdesk-scene__notes { margin-top: var(--space-xl); padding-top: var(--space-md); border-top: 1px solid var(--rule); }
.iesdesk-scene__notes summary { cursor: pointer; min-height: var(--control-min); }
.iesdesk-scene__notes > p { max-width: var(--app-measure, 860px); }

/* The wide workspace (MEMORY 2026-11-10 wide-workspace, Package B of the
   usability review). The View, Compare and Lighting Scenes results take up
   to 1760px of content, and the top menu bar follows them. From 1280px the
   scene is two columns: the scene choices and the settings on the left, the
   scene on the right, as wide as the window allows and as high as the window
   lets the figure row and the scene share the first screen. Below 1280px the
   page keeps one column. */
.iesdesk-workspace,
.site-frame.iesdesk-frame--workspace { max-width: calc(1760px + 2 * 32px); }
/* The workspace opens with the compact page head (trail and file name in one
   row), so it starts close under the top menu as a page with a trail does. */
.container.iesdesk-workspace { padding-block-start: var(--space-md); }
.iesdesk-workspace > .iesdesk-page-head { margin-block-end: var(--space-xl); }

/* The figures of a scene in one row: the heading, then each figure as label
   and value, then the area hints in small type under the row. */
.iesdesk-scene__figure-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); padding: var(--space-md) var(--space-lg); border: 1px solid var(--rule); border-radius: var(--radius-md); }
.iesdesk-scene__figure-row[hidden] { display: none; }
/* Compare: one box of figures above the scene of each file. The file name
   heads the box, so the figure heading is for screen readers only, and the
   area hints, the same for every file, show under the first box only. */
.iesdesk-scene__figure-columns > .iesdesk-compare-view__column { display: grid; gap: var(--space-xs); align-content: start; padding: var(--space-md) var(--space-lg); border: 1px solid var(--rule); border-radius: var(--radius-md); }
.iesdesk-scene__figure-columns .iesdesk-scene__figures > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.iesdesk-scene__figure-columns .agustos-notice { padding: var(--space-xs) var(--space-sm); font-size: var(--size-footnote); }
.iesdesk-scene__figure-columns .agustos-notice p { margin: 0; font-size: inherit; line-height: var(--leading-body); }
:is(.iesdesk-scene__figure-row, .iesdesk-scene__figure-columns) :is(.iesdesk-scene__figures, .agustos-card) { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: var(--space-2xs) var(--space-md); padding: 0; border: 0; background: none; box-shadow: none; }
:is(.iesdesk-scene__figure-row, .iesdesk-scene__figure-columns) :is(.iesdesk-scene__figures, .agustos-card) > :is(p, .agustos-hint) { order: 2; margin: 0; font-size: var(--size-footnote); }
/* The tread table of Stairs takes its own line under the figures and the hints. */
:is(.iesdesk-scene__figure-row, .iesdesk-scene__figure-columns) :is(.iesdesk-scene__figures, .agustos-card) > :is(.iesdesk-tread-table, .iesdesk-tread-details) { order: 3; flex-basis: 100%; }
.iesdesk-tread-details > summary { cursor: pointer; padding-block: var(--space-sm); font-size: var(--size-footnote); font-weight: 600; }
/* A line break: the hints flow in one paragraph under the figures. */
:is(.iesdesk-scene__figure-row, .iesdesk-scene__figure-columns) :is(.iesdesk-scene__figures, .agustos-card)::after { content: ""; flex-basis: 100%; order: 1; }
:is(.iesdesk-scene__figure-row, .iesdesk-scene__figure-columns) :is(.iesdesk-scene__figures, .agustos-card) > :is(h2, h3) { margin: 0; }
/* A card with sub-headings (Corridor: End areas) keeps each hint under its
   heading: one item to a line. A card whose groups are a heading and its
   figures (Wall: Luminaire, Wall, Floor) puts each group on one line, its
   name before its figures. */
:is(.iesdesk-scene__figure-row, .iesdesk-scene__figure-columns) :is(.iesdesk-scene__figures, .agustos-card):has(> h3)::after { display: none; }
:is(.iesdesk-scene__figure-row, .iesdesk-scene__figure-columns) :is(.iesdesk-scene__figures, .agustos-card):has(> h3) > :is(h3, p, .agustos-hint) { flex-basis: 100%; order: 0; }
:is(.iesdesk-scene__figure-row, .iesdesk-scene__figure-columns) :is(.iesdesk-scene__figures, .agustos-card):has(> h3 + table) { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: var(--space-2xs) var(--space-lg); }
:is(.iesdesk-scene__figure-row, .iesdesk-scene__figure-columns) :is(.iesdesk-scene__figures, .agustos-card):has(> h3 + table) > :not(h3, h3 + table) { grid-column: 1 / -1; }
:is(.iesdesk-scene__figure-row, .iesdesk-scene__figure-columns) .iesdesk-figures-table { width: auto; max-inline-size: none; margin: 0; }
/* A table with columns (the end areas of Corridor) scrolls inside the row on a phone, so the page never scrolls sideways. */
:is(.iesdesk-scene__figure-row, .iesdesk-scene__figure-columns) :is(.iesdesk-scene__figures, .agustos-card) > * { min-width: 0; max-width: 100%; }
:is(.iesdesk-scene__figure-row, .iesdesk-scene__figure-columns) .iesdesk-figures-table:has(thead) { display: block; overflow-x: auto; }
:is(.iesdesk-scene__figure-row, .iesdesk-scene__figure-columns) .iesdesk-figures-table:not(:has(thead)) tbody { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-xl); }
:is(.iesdesk-scene__figure-row, .iesdesk-scene__figure-columns) .iesdesk-figures-table:not(:has(thead)) tr { display: flex; align-items: baseline; gap: var(--space-xs); border: 0; }
:is(.iesdesk-scene__figure-row, .iesdesk-scene__figure-columns) .iesdesk-figures-table:not(:has(thead)) :is(th, td) { padding: 0; border: 0; white-space: normal; }
:is(.iesdesk-scene__figure-row, .iesdesk-scene__figure-columns) .iesdesk-figures-table:not(:has(thead)) td { font-size: var(--size-deck); }

@media (min-width: 1280px) {
  .iesdesk-workspace .iesdesk-scene__workspace:not(.iesdesk-scene__workspace--column) {
    grid-template-columns: clamp(20rem, 21vw, 24rem) minmax(0, 1fr);
    gap: var(--space-3xl) var(--space-5xl);
  }
  .iesdesk-workspace .iesdesk-scene__side { display: grid; gap: var(--space-3xl); align-content: start; }
  .iesdesk-workspace .iesdesk-scene__side > .iesdesk-scene-selector { margin: 0; }
  .iesdesk-workspace .iesdesk-scene__result { display: grid; gap: var(--space-xl); align-content: start; }
  .iesdesk-workspace .iesdesk-scene__result .iesdesk-scene__viewer { margin-top: var(--space-md); }
  .iesdesk-workspace .iesdesk-scene__result > :is(h2, p) { margin: 0; }

  /* The choices: three small cards in a row, picture and name. */
  .iesdesk-workspace .iesdesk-scene__side .iesdesk-scene-selector__choices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); margin-top: var(--space-md); }
  .iesdesk-workspace .iesdesk-scene__side .iesdesk-scene-selector__choice { padding: var(--space-2xs) var(--space-2xs) var(--space-xs); font-size: var(--size-footnote); }
  .iesdesk-workspace .iesdesk-scene__side .iesdesk-scene-selector__choice svg { max-height: 3rem; }
  .iesdesk-workspace .iesdesk-scene__side :is(.iesdesk-scene-selector__detail, .iesdesk-scene-selector__mark) {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }

  /* The settings: two number fields in a row, as wide as the column. */
  .iesdesk-workspace .iesdesk-scene__side .iesdesk-scene__settings { padding: 0; border: 0; }
  .iesdesk-workspace .iesdesk-scene__side .iesdesk-scene__settings summary { margin-bottom: var(--space-lg); }
  .iesdesk-workspace .iesdesk-scene__side .iesdesk-scene__settings :is(form, div):has(> .agustos-field) { gap: var(--space-lg); }
  .iesdesk-workspace .iesdesk-scene__side .iesdesk-scene__settings :is(form, div):has(> .agustos-field) > .agustos-field:not([data-controller~="file-drop"]) { flex: 1 1 calc(50% - var(--space-lg)); min-width: 0; max-width: none; }
  /* A choice list takes the whole row, so its longest choice ("Metres and lux",
     "Feet and foot-candles") is never cut short. */
  .iesdesk-workspace .iesdesk-scene__side .iesdesk-scene__settings :is(form, div):has(> .agustos-field) > .agustos-field:not([data-controller~="file-drop"]):has(> select) { flex-basis: 100%; }

  /* The scene grows with the window: about 520px high on a 1080px screen. */
  .iesdesk-workspace .iesdesk-scene__result .iesdesk-light-view__stage { height: clamp(28rem, calc(100vh - 35rem), 58rem); }
  .iesdesk-workspace .iesdesk-scene__result .iesdesk-light-view__stage--compare { height: clamp(24rem, calc(100vh - 38rem), 48rem); }

  /* Below the scene: the light distribution, then the Summary, and the four
     diagrams in one row. */
  .iesdesk-workspace .iesdesk-view-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-3xl) var(--space-5xl);
    align-items: start;
  }
  .iesdesk-workspace .iesdesk-view-page > * { grid-column: 1 / -1; }
  /* The file facts and the page links share one row. */
  .iesdesk-workspace .iesdesk-view-page > .iesdesk-scene-file-notes { grid-column: 1; align-self: center; }
  .iesdesk-workspace .iesdesk-view-page > .iesdesk-view-links { grid-column: 2; grid-row: 1; justify-self: end; border: 0; padding: 0; }
  /* The tool strip spans the page under the file facts, so it covers the
     whole width while it stays under the top menu (MEMORY 2026-11-10 tool-strip). */
  .iesdesk-workspace .iesdesk-view-page > .iesdesk-tool-strip { grid-column: 1 / -1; grid-row: auto; justify-self: stretch; padding-block: var(--space-sm); border-bottom: 1px solid var(--rule); }
  .iesdesk-workspace .iesdesk-view-page > .iesdesk-scene-file-notes:has(~ .iesdesk-tool-strip) { grid-column: 1 / -1; }
  .iesdesk-workspace .iesdesk-view-page > [data-controller="view-preview"] { display: contents; }
  .iesdesk-workspace .iesdesk-view-page > [data-controller="view-preview"] > * { grid-column: 1 / -1; }
  /* The light distribution and the Summary follow one another at full
     width, as the scene does (Product Owner, 2026-11-19, MEMORY 2026-11-19
     scene-layout-b). */
  /* Two diagrams to a row: four in a row drew each one at 330 px on a
     1440 px screen, with 7 px text (View and Compare consistency, 2026-11-20). */
  .iesdesk-workspace .iesdesk-view-page .iesdesk-diagrams__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The view buttons (finding 6 of the review): a choice of two is one
   segmented control with the pressed half outlined; Top view and Reset view
   are small outlined buttons, not red links. */
.iesdesk-light-view__controls { align-items: center; }
.iesdesk-light-view__group[role="group"]:not([aria-label="Lines"]) { gap: 2px; padding: 2px; border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--surface); }
.iesdesk-light-view__controls .iesdesk-light-view__group .agustos-button--quiet { min-height: calc(var(--control-min) - 6px); padding-inline: var(--space-sm); border-radius: calc(var(--radius-md) - 2px); text-decoration: none; color: var(--ink-soft); }
.iesdesk-light-view__controls .iesdesk-light-view__group[role="group"] .agustos-button--quiet[aria-pressed="true"] { border: 1px solid var(--ink); background: var(--paper); color: var(--ink); }
/* Shape, Isolux lines and Grid switch on and off one by one: check boxes.
   Top view and Reset view are outlined buttons. */
.iesdesk-light-view__controls .iesdesk-light-view__group[aria-label="Lines"] { align-items: center; gap: var(--space-2xs) var(--space-md); }
.iesdesk-light-view__controls .iesdesk-light-view__group:not([role="group"]) .agustos-button--quiet { border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.iesdesk-light-view__controls .iesdesk-light-view__group .agustos-button--quiet:hover { color: var(--ink); }

/* --- The result page of Lighting Scenes in one column (MEMORY 2026-11-19
   scene-layout-b): the top bar (compact scene picker, Standard, Unit), the
   settings row, the figures, the scene, the say line and the notes, at
   every width. */
.iesdesk-scene__workspace--column { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
.iesdesk-scene__topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md) var(--space-xl); }
.iesdesk-scene__topbar > .iesdesk-scene-picker { min-width: 0; }
.iesdesk-scene__choices { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); }
.iesdesk-scene__choices .agustos-hint { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.iesdesk-scene__workspace--column > .iesdesk-scene__settings { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-md) var(--space-2xl); padding: var(--space-md) 0; border-block: 1px solid var(--rule); }
.iesdesk-scene__workspace--column > .iesdesk-scene__settings > form.agustos-fieldset { flex: 1 1 32rem; min-width: 0; }
/* View and Compare keep their settings in a details box: one block, its
   fields in the strip of the settings row. */
.iesdesk-scene__workspace--column > details.iesdesk-scene__settings { display: block; }
.iesdesk-scene__workspace--column > details.iesdesk-scene__settings > summary { margin-bottom: var(--space-sm); }
/* Lighting Scenes keeps its settings row in a details that folds on a phone
   (scene_fold_controller.js). Wider, the summary hides, the box stays open
   and its body is the row of before. */
.iesdesk-scene__settings--fold > .iesdesk-scene__settings-body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-md) var(--space-2xl); }
.iesdesk-scene__settings--fold > .iesdesk-scene__settings-body > form.agustos-fieldset { flex: 1 1 32rem; min-width: 0; }
@media (min-width: 640px) {
  .iesdesk-scene__workspace--column > details.iesdesk-scene__settings--fold > summary { display: none; }
}
@media (max-width: 639px) {
  .iesdesk-scene__workspace--column > details.iesdesk-scene__settings:not([open]) > summary { margin-bottom: 0; }
}
.iesdesk-scene__workspace--column .iesdesk-scene__result { display: grid; gap: var(--space-md); align-content: start; }
.iesdesk-scene__workspace--column .iesdesk-scene__result > :is(h2, p) { margin: 0; }
.iesdesk-scene__workspace--column .iesdesk-scene__viewer { margin-top: var(--space-sm); }
/* The scene takes the full width and most of the window height. */
.iesdesk-scene .iesdesk-scene__workspace--column .iesdesk-light-view__stage { height: clamp(26rem, calc(100vh - 22rem), 58rem); }
.iesdesk-scene__manual { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); }
.iesdesk-scene__manual[hidden] { display: none; }
.iesdesk-scene__manual > p { margin: 0; }

/* The say line: one bar with the last changed setting and its hint. */
.iesdesk-scene__say { margin: 0; padding: var(--space-xs) var(--space-md); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font-size: var(--size-footnote); }
.iesdesk-scene__say strong { margin-inline-end: var(--space-xs); }

/* The compact scene picker: one row of buttons, a small line icon and the name. */
.iesdesk-scene-selector--compact { margin: 0; }
.iesdesk-scene-selector.iesdesk-scene-selector--compact .iesdesk-scene-selector__choices {
  display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 3px; overflow: visible;
  border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--paper);
}
.iesdesk-scene-selector .iesdesk-scene-selector__choices > .iesdesk-scene-selector__choice--compact {
  flex-direction: row; align-items: center; gap: var(--space-xs);
  min-height: calc(var(--control-min) - 8px); padding: 0 var(--space-sm) 0 var(--space-xs);
  border: 0; border-radius: calc(var(--radius-md) - 2px); background: none; color: var(--ink);
  font: inherit; font-size: var(--size-footnote); line-height: 1; white-space: nowrap; cursor: pointer;
}
.iesdesk-scene-selector .iesdesk-scene-selector__choices > .iesdesk-scene-selector__choice--compact:hover { background: var(--surface); }
.iesdesk-scene-selector .iesdesk-scene-selector__choices > .iesdesk-scene-selector__choice--compact:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.iesdesk-scene-selector .iesdesk-scene-selector__choices > .iesdesk-scene-selector__choice--compact[aria-pressed="true"] { background: var(--ink); color: var(--paper); opacity: 1; cursor: default; }
.iesdesk-scene-selector .iesdesk-scene-selector__choice--compact svg.iesdesk-scene-icon { width: 40px; height: 27px; max-height: none; margin: 0; flex: none; border-radius: 0; background: none; color: var(--ink-soft); }
.iesdesk-scene-selector .iesdesk-scene-selector__choice--compact[aria-pressed="true"] svg.iesdesk-scene-icon { color: var(--paper); background: none; }

/* A segmented row of radios: the frame of the kit control, the checked
   choice in ink. The radio stays in the page for the keyboard and screen
   readers. */
.iesdesk-segmented { min-width: 0; margin: 0; padding: 0; border: 0; }
.iesdesk-segmented__legend { padding: 0; margin: 0 0 var(--space-2xs); color: var(--ink-soft); font-weight: 400; }
.iesdesk-segmented__options { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--paper); }
.iesdesk-segmented__option {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: calc(var(--control-min) - 8px); padding: 0 var(--space-sm);
  border: 0; border-radius: calc(var(--radius-md) - 2px); background: none; color: var(--ink);
  font: inherit; font-size: var(--size-footnote); line-height: 1; white-space: nowrap; cursor: pointer;
}
.iesdesk-segmented__option:hover { background: var(--surface); }
.iesdesk-segmented__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border: 0; border-radius: inherit; background: none; cursor: pointer; appearance: none; -webkit-appearance: none; }
.iesdesk-segmented__option:has(> .iesdesk-segmented__input:checked),
.iesdesk-segmented__option[aria-pressed="true"] { background: var(--ink); color: var(--paper); opacity: 1; cursor: default; }
.iesdesk-segmented__option:has(> .iesdesk-segmented__input:focus-visible),
.iesdesk-segmented__option:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
/* Standard and Unit in the top bar: the name before the choices, in one line. */
.iesdesk-segmented--compact { display: flex; flex-direction: row; align-items: center; gap: var(--space-xs); margin: 0; }
.iesdesk-segmented--compact > .iesdesk-segmented__legend { margin: 0; font-size: var(--size-footnote); }
:is(.iesdesk-scene__settings, .iesdesk-scene-entry) :is(form, div):has(> .agustos-field) > .agustos-field.iesdesk-segmented { flex: 0 1 auto; max-width: none; }
.iesdesk-segmented--layout { display: grid; gap: 0; margin: 0; }

/* A number setting: the label and the value on one line, the slider, the limits. */
.iesdesk-slider-field { display: grid; gap: 0; }
.iesdesk-slider-field__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); }
.iesdesk-slider-field__label { margin: 0; color: var(--ink-soft); font-weight: 400; }
.iesdesk-slider-field__value { display: inline-flex; align-items: baseline; gap: var(--space-2xs); color: var(--ink); font-weight: 600; }
.iesdesk-slider-field__input {
  min-height: var(--control-min); width: auto; min-width: 2ch; padding: 0; border: 0; border-bottom: 1px solid transparent; border-radius: 0;
  background: none; color: var(--ink); font: inherit; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; cursor: text;
}
.iesdesk-slider-field__input:hover { border-bottom-color: var(--rule); }
.iesdesk-slider-field__input:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-bottom-color: var(--ink); }
.iesdesk-slider-field__limits { display: flex; justify-content: space-between; margin: 0; color: var(--ink-soft); font-size: var(--size-footnote); }
.iesdesk-slider-field__limits[hidden] { display: none; }
/* The kit has no slider: a native range in a composed class (pending a kit
   slider). The track is the hairline, the filled part and the thumb are ink. */
.iesdesk-slider { display: block; width: 100%; height: calc(var(--control-min) / 2); margin: 0; background: none; cursor: pointer; appearance: none; -webkit-appearance: none; }
.iesdesk-slider[hidden] { display: none; }
.iesdesk-slider::-webkit-slider-runnable-track { height: 4px; border-radius: var(--radius-md); background: linear-gradient(90deg, var(--ink) var(--iesdesk-slider-fill, 0%), var(--rule) var(--iesdesk-slider-fill, 0%)); }
.iesdesk-slider::-webkit-slider-thumb { width: 12px; height: 12px; margin-top: -4px; border: 0; border-radius: var(--radius-md); background: var(--ink); appearance: none; -webkit-appearance: none; }
.iesdesk-slider::-moz-range-track { height: 4px; border-radius: var(--radius-md); background: var(--rule); }
.iesdesk-slider::-moz-range-progress { height: 4px; border-radius: var(--radius-md); background: var(--ink); }
.iesdesk-slider::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: var(--radius-md); background: var(--ink); }
.iesdesk-slider:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
:is(.iesdesk-scene__settings, .iesdesk-scene-entry) :is(form, div):has(> .agustos-field) > .agustos-field.iesdesk-slider-field { flex: 1 1 11rem; min-width: 10rem; max-width: 15rem; }
/* The three reflectances of a Room as one group, side by side, with one
   hint under them (MEMORY 2026-11-20 room-interreflections). */
.iesdesk-reflectances { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--space-sm); min-width: 0; margin: 0; padding: 0; border: 0; }
.iesdesk-reflectances__legend { padding: 0; margin: 0 0 var(--space-2xs); }
.iesdesk-reflectances > .agustos-hint { grid-column: 1 / -1; }
:is(.iesdesk-scene__settings, .iesdesk-scene-entry) :is(form, div):has(> .agustos-field) > .agustos-field.iesdesk-reflectances { flex: 1 1 30rem; min-width: 0; max-width: 45rem; }
/* In a row of settings a long name ("Maintenance factor") wraps to two lines;
   every head of the row takes two lines, so the sliders stay on one line
   (QA 2026-11-19). */
:is(.iesdesk-scene__settings, .iesdesk-scene-entry) :is(form, div):has(> .agustos-field) > .agustos-field.iesdesk-slider-field > .iesdesk-slider-field__head { min-height: max(var(--control-min), 2lh); }
@media (max-width: 639px) {
  :is(.iesdesk-scene__settings, .iesdesk-scene-entry) :is(form, div):has(> .agustos-field) > .agustos-field.iesdesk-slider-field { max-width: none; flex-basis: 100%; }
  :is(.iesdesk-scene__settings, .iesdesk-scene-entry) :is(form, div):has(> .agustos-field) > .agustos-field.iesdesk-slider-field > .iesdesk-slider-field__head { min-height: var(--control-min); }
  .iesdesk-scene__topbar { align-items: flex-start; }
}

/* Quality check, 2026-11-19. A choice list (the car park class) keeps its
   whole text; the Corridor line of luminaires and end gaps follows the
   fields instead of splitting their row; on a phone the Wall figures take
   one column; on the dark theme the stage groups keep a hairline edge. */
:is(.iesdesk-scene__settings, .iesdesk-scene-entry) :is(form, div):has(> .agustos-field) > .agustos-field:not([data-controller~="file-drop"]):has(> select) { flex: 1 1 22rem; max-width: 32rem; }
:is(.iesdesk-scene__settings, .iesdesk-scene-entry) :is(form, div):has(> .agustos-field) > [data-lighting-scene-target="layoutSummary"] { order: 1; }
:is(.iesdesk-scene__settings, .iesdesk-scene-entry) :is(form, div):has(> .agustos-field) > .iesdesk-scene__manual { order: 2; }
@media (max-width: 639px) {
  :is(.iesdesk-scene__figure-row, .iesdesk-scene__figure-columns) :is(.iesdesk-scene__figures, .agustos-card):has(> h3 + table) { grid-template-columns: minmax(0, 1fr); }
  :is(.iesdesk-scene__figure-row, .iesdesk-scene__figure-columns) .iesdesk-figures-table:not(:has(thead)) tr { flex-wrap: wrap; }
  :is(.iesdesk-scene__figure-row, .iesdesk-scene__figure-columns) .iesdesk-figures-table:not(:has(thead)) td { text-align: left; }
}

/* The full-screen scene (Product Owner, 2026-11-20, MEMORY 2026-11-20
   fullscreen-scene; mockup fullscreen-scenes-mockup/son-hal-*.png). From
   1280px the scene fills the window under the page head, and the scene
   strip, the settings and the figures float on it. Since 2026-11-21 (MEMORY
   2026-11-21 scene-layout-right-settings) the scene strip sits at the top
   right in two rows, the settings under it, and the figures fold to their
   name at the top left, under the camera bar. The display group of the
   stage bar sits at the foot in the middle, and the hint at the foot on the
   left (MEMORY 2026-11-20 stage-bar-icons). Every other part of the result (the notes, the hints,
   the say line) follows under the scene, in the order of the page. The
   markup keeps its order, so a phone and a page with no script read as
   before; only the grid places the parts. */
@media (min-width: 1280px) {
  .iesdesk-scene__workspace--full {
    --scene-frame: clamp(36rem, calc(100dvh - 10rem), 64rem);
    --scene-panel: 23rem;
    /* The two rows of the scene strip: an icon, a name and the padding. */
    --scene-strip: 7rem;
    grid-template-rows: var(--scene-frame);
    gap: var(--space-md);
  }
  .iesdesk-scene__workspace--full > .iesdesk-scene__result,
  .iesdesk-scene__workspace--full .iesdesk-scene__frame-section { display: contents; }
  .iesdesk-scene__workspace--full > :is(.iesdesk-scene__topbar, .iesdesk-scene__settings),
  .iesdesk-scene__workspace--full > .iesdesk-scene__result > .iesdesk-scene__figure-row,
  .iesdesk-scene__workspace--full .iesdesk-scene__frame-section > :is(.iesdesk-scene__viewer, .iesdesk-light-view__body) { grid-row: 1; grid-column: 1; }
  .iesdesk-scene__workspace--full .iesdesk-scene__frame-section > :is(.iesdesk-scene__viewer, .iesdesk-light-view__body) { align-self: stretch; margin: 0; min-height: 0; }
  .iesdesk-scene__workspace--full .iesdesk-scene__frame-section .iesdesk-light-view__stage { height: 100%; }
  .iesdesk-scene__workspace--full .iesdesk-scene__frame-section > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* The floating parts: paper boxes on the scene. */
  .iesdesk-scene__workspace--full > :is(.iesdesk-scene__topbar, .iesdesk-scene__settings),
  .iesdesk-scene__workspace--full > .iesdesk-scene__result > .iesdesk-scene__figure-row {
    z-index: 2; align-self: start; margin: var(--space-md);
    border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--paper);
  }
  .iesdesk-scene__workspace--full > .iesdesk-scene__topbar { justify-self: end; box-sizing: border-box; width: var(--scene-panel); padding: var(--space-2xs); }
  .iesdesk-scene__workspace--full > .iesdesk-scene__topbar :is(.iesdesk-scene-picker, .iesdesk-scene-selector) { flex: 1 1 auto; width: 100%; margin: 0; }
  .iesdesk-scene__workspace--full > .iesdesk-scene__settings,
  .iesdesk-scene__workspace--full > .iesdesk-scene__result > .iesdesk-scene__figure-row {
    width: var(--scene-panel); overflow: auto; padding: var(--space-md) var(--space-lg);
  }
  /* The settings sit on the right under the scene strip, down to the foot of the frame. */
  .iesdesk-scene__workspace--full > .iesdesk-scene__settings {
    justify-self: end; margin-top: calc(var(--space-md) + var(--scene-strip) + var(--space-xs));
    max-height: calc(var(--scene-frame) - 2 * var(--space-md) - var(--scene-strip) - var(--space-xs));
  }
  /* The figures sit on the left under the camera bar, folded to their name
     until the visitor opens them; they stop above the foot of the stage. */
  .iesdesk-scene__workspace--full > .iesdesk-scene__result > .iesdesk-scene__figure-row {
    justify-self: start; display: block;
    margin: calc(var(--space-sm) + var(--control-min) + var(--space-xs)) var(--space-sm) var(--space-sm);
    max-height: calc(var(--scene-frame) - 2 * var(--space-sm) - var(--control-min) - var(--space-xs) - var(--control-min) - var(--space-md));
  }
  .iesdesk-scene__workspace--full > .iesdesk-scene__result > details.iesdesk-scene__figure-row:not([open]) { width: 12rem; padding: var(--space-sm) var(--space-md); }
  /* In the panel, each setting takes the whole width, one under the other. */
  .iesdesk-scene__workspace--full > .iesdesk-scene__settings :is(form, div):has(> .agustos-field) { gap: var(--space-xs); }
  .iesdesk-scene__workspace--full > .iesdesk-scene__settings :is(form, div):has(> .agustos-field) > .agustos-field:not([data-controller~="file-drop"]) { flex: 1 1 100%; min-width: 0; max-width: none; }
  /* The three reflectances too: side by side they overlapped in the 20rem panel (2026-11-20). */
  .iesdesk-scene__workspace--full > .iesdesk-scene__settings .iesdesk-reflectances { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .iesdesk-scene__workspace--full > .iesdesk-scene__settings .iesdesk-reflectances > * { margin: 0; }
  /* A number setting is one row: the name, a short slider and the value,
     with no line of limits, as in an image editor (Product Owner,
     2026-11-21). Its hint, if any, takes the row under it. */
  .iesdesk-scene__workspace--full > .iesdesk-scene__settings .iesdesk-slider-field {
    grid-template-columns: 7.5rem minmax(0, 1fr) 4.5rem; align-items: center; column-gap: var(--space-sm); row-gap: 0; min-height: 0;
  }
  .iesdesk-scene__workspace--full > .iesdesk-scene__settings .agustos-field.iesdesk-slider-field > .iesdesk-slider-field__head { display: contents; }
  .iesdesk-scene__workspace--full > .iesdesk-scene__settings .iesdesk-slider-field__label { grid-row: 1; grid-column: 1; }
  .iesdesk-scene__workspace--full > .iesdesk-scene__settings .iesdesk-slider-field > .iesdesk-slider { grid-row: 1; grid-column: 2; }
  .iesdesk-scene__workspace--full > .iesdesk-scene__settings .iesdesk-slider-field__value { grid-row: 1; grid-column: 3; justify-self: end; }
  .iesdesk-scene__workspace--full > .iesdesk-scene__settings .iesdesk-slider-field__input { min-height: 0; height: 1.75rem; padding-block: 0; }
  .iesdesk-scene__workspace--full > .iesdesk-scene__settings .iesdesk-slider-field__limits { display: none; }
  .iesdesk-scene__workspace--full > .iesdesk-scene__settings .iesdesk-slider-field > .agustos-hint { grid-column: 1 / -1; margin: 0; }
  .iesdesk-scene__workspace--full > .iesdesk-scene__settings :is(form, div, fieldset):has(> .iesdesk-slider-field) { gap: var(--space-2xs); }
  /* A choice reads on one row too: its name in the first column and its
     options or its list beside it; a long choice wraps under its name
     (Product Owner, 2026-11-21: the Street options read as a mixed list). */
  .iesdesk-scene__workspace--full > .iesdesk-scene__settings .agustos-field.iesdesk-segmented:not(.iesdesk-segmented--layout) {
    display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: var(--space-sm); row-gap: var(--space-2xs);
  }
  .iesdesk-scene__workspace--full > .iesdesk-scene__settings .agustos-field.iesdesk-segmented:not(.iesdesk-segmented--layout) > .iesdesk-segmented__legend { float: left; flex: 0 0 7.5rem; margin: 0; }
  .iesdesk-scene__workspace--full > .iesdesk-scene__settings .agustos-field.iesdesk-segmented > .iesdesk-segmented__options { flex: 1 1 0; padding: 2px; }
  .iesdesk-scene__workspace--full > .iesdesk-scene__settings .agustos-field.iesdesk-segmented > :not(.iesdesk-segmented__legend, .iesdesk-segmented__options) { flex: 1 1 100%; margin: 0; }
  .iesdesk-scene__workspace--full > .iesdesk-scene__settings .agustos-field.iesdesk-segmented:not(.iesdesk-segmented--layout) > .iesdesk-segmented__options { display: flex; flex-wrap: nowrap; }
  .iesdesk-scene__workspace--full > .iesdesk-scene__settings .iesdesk-segmented__option { flex: 1 1 auto; min-height: 1.75rem; padding: 0 var(--space-xs); font-size: var(--size-footnote); }
  .iesdesk-scene__workspace--full > .iesdesk-scene__settings div.agustos-field:has(> .agustos-select) {
    display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: center; column-gap: var(--space-sm); row-gap: var(--space-2xs);
  }
  .iesdesk-scene__workspace--full > .iesdesk-scene__settings div.agustos-field:has(> .agustos-select) > .agustos-label { margin: 0; color: var(--ink-soft); font-weight: 400; }
  .iesdesk-scene__workspace--full > .iesdesk-scene__settings div.agustos-field:has(> .agustos-select) > :not(.agustos-label, .agustos-select) { grid-column: 1 / -1; margin: 0; }
  .iesdesk-scene__workspace--full > .iesdesk-scene__settings div.agustos-field > .agustos-select { min-height: 0; height: 2rem; padding-block: 0; font-size: var(--size-footnote); }
  /* In the panel, the figures read as a list: the name on the left, the value on the right. */
  .iesdesk-scene__workspace--full .iesdesk-scene__figure-row :is(.iesdesk-scene__figures, .agustos-card) { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .iesdesk-scene__workspace--full .iesdesk-scene__figure-row :is(.iesdesk-scene__figures, .agustos-card)::after { display: none; }
  .iesdesk-scene__workspace--full .iesdesk-scene__figure-row :is(.iesdesk-scene__figures, .agustos-card) > * { order: 0; grid-column: 1 / -1; }
  .iesdesk-scene__workspace--full .iesdesk-scene__figure-row .iesdesk-figures-table:not(:has(thead)) tbody { display: grid; gap: var(--space-2xs); }
  .iesdesk-scene__workspace--full .iesdesk-scene__figure-row .iesdesk-figures-table:not(:has(thead)) tr { justify-content: space-between; }
  .iesdesk-scene__workspace--full .iesdesk-scene__figure-row .iesdesk-figures-table:not(:has(thead)) td { font-size: inherit; text-align: right; }
  .iesdesk-scene__workspace--full .iesdesk-scene__figure-row table { width: 100%; }
  /* A panel that scrolls fades at its foot, so the visitor sees there is more; the extra room at the end lets the last line clear the fade. */
  .iesdesk-scene__workspace--full > .iesdesk-scene__settings,
  .iesdesk-scene__workspace--full > .iesdesk-scene__result > .iesdesk-scene__figure-row {
    padding-bottom: var(--space-2xl);
    -webkit-mask-image: linear-gradient(to bottom, var(--ink) calc(100% - var(--space-xl)), transparent);
    mask-image: linear-gradient(to bottom, var(--ink) calc(100% - var(--space-xl)), transparent);
  }
  .iesdesk-scene__workspace--full > details.iesdesk-scene__settings:not([open]) { padding-bottom: var(--space-md); -webkit-mask-image: none; mask-image: none; }
}
@media (min-width: 1280px) {
  /* Wall: its stage fills the frame, and its colour choice follows under
     the scene with the other parts. */
  .iesdesk-scene__workspace--full .iesdesk-scene__frame-section > .iesdesk-light-view__body:not([hidden]) { display: contents; }
  .iesdesk-scene__workspace--full .iesdesk-scene__frame-section > .iesdesk-light-view__body > .iesdesk-light-view__stage { grid-row: 1; grid-column: 1; align-self: stretch; height: auto; min-height: 0; margin: 0; }
}

/* The Standard and the Unit in the page head (lighting_scenes/_region): the
   two usual pairs as one switch, and a settings button that opens both
   choices on their own. */
.iesdesk-page-head__controls { display: flex; align-items: center; }
.iesdesk-scene-region { position: relative; display: flex; align-items: center; gap: var(--space-xs); }
.iesdesk-scene-region__pairs { margin: 0; }
.iesdesk-scene-region__more > summary { list-style: none; }
.iesdesk-scene-region__more > summary::-webkit-details-marker { display: none; }
.iesdesk-scene-region__button { width: var(--control-min); padding: 0; }
.iesdesk-scene-region__panel {
  position: absolute; z-index: 5; top: calc(100% + var(--space-xs)); right: 0;
  display: grid; gap: var(--space-md); width: max-content; max-width: min(26rem, calc(100vw - 2 * var(--space-md)));
  padding: var(--space-md); border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--paper);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--ink) 8%, transparent);
}
.iesdesk-scene-region__panel .agustos-hint { margin: var(--space-2xs) 0 0; }

/* With the full-screen scene the scene strip shows each scene as an icon
   over its name, in one row; on a phone the row scrolls. */
.iesdesk-scene__workspace--full > .iesdesk-scene__topbar,
.iesdesk-scene__workspace--full .iesdesk-scene-selector.iesdesk-scene-selector--compact { min-width: 0; }
.iesdesk-scene__workspace--full .iesdesk-scene-selector.iesdesk-scene-selector--compact .iesdesk-scene-selector__choices { position: relative; flex-wrap: nowrap; overflow-x: auto; min-width: 0; }
.iesdesk-scene__workspace--full .iesdesk-scene-selector .iesdesk-scene-selector__choices > .iesdesk-scene-selector__choice--compact {
  flex: 1 0 auto; flex-direction: column; justify-content: center; gap: var(--space-2xs); padding: var(--space-xs) var(--space-sm);
}
.iesdesk-scene__workspace--full .iesdesk-scene-selector .iesdesk-scene-selector__choice--compact svg.iesdesk-scene-icon { width: 32px; height: 22px; }
@media (min-width: 1280px) {
  .iesdesk-scene__workspace--full .iesdesk-scene-selector.iesdesk-scene-selector--compact .iesdesk-scene-selector__choices { border: 0; padding: 0; }
  /* In the panel on the right the strip takes two rows of four. */
  .iesdesk-scene__workspace--full .iesdesk-scene-selector.iesdesk-scene-selector--compact .iesdesk-scene-selector__choices {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; overflow: visible;
  }
  .iesdesk-scene__workspace--full .iesdesk-scene-selector .iesdesk-scene-selector__choices > .iesdesk-scene-selector__choice--compact {
    min-width: 0; padding: var(--space-2xs) 0; font-size: var(--size-footnote);
  }
  .iesdesk-scene__workspace--full .iesdesk-scene-selector .iesdesk-scene-selector__choice--compact svg.iesdesk-scene-icon { width: 30px; height: 20px; }
}
@media (max-width: 639px) {
  .iesdesk-page-head__controls { flex-basis: 100%; }
  .iesdesk-scene-region { flex: 1; }
  .iesdesk-scene-region__pairs { flex: 1; }
  .iesdesk-scene-region__pairs .iesdesk-segmented__options { display: flex; flex-wrap: nowrap; }
  .iesdesk-scene-region__pairs .iesdesk-segmented__option { flex: 1; justify-content: center; white-space: nowrap; }
}
@media (min-width: 1280px) {
  /* The settings panel shows its name, and folds to it. */
  .iesdesk-scene__workspace--full > details.iesdesk-scene__settings > summary {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
    min-height: 0; margin: 0 0 var(--space-md); font-size: var(--size-body); font-weight: 600; list-style: none;
  }
  .iesdesk-scene__workspace--full > details.iesdesk-scene__settings > summary::-webkit-details-marker { display: none; }
  .iesdesk-scene__workspace--full > details.iesdesk-scene__settings > summary::after { content: "▾"; color: var(--ink-soft); }
  /* The name stays at the top while the settings scroll under it (quality check, 2026-11-20). */
  .iesdesk-scene__workspace--full > details.iesdesk-scene__settings[open] > summary {
    position: sticky; top: calc(-1 * var(--space-md)); z-index: 1;
    margin: calc(-1 * var(--space-md)) calc(-1 * var(--space-lg)) var(--space-sm);
    padding: var(--space-md) var(--space-lg) var(--space-xs); background: var(--paper);
  }
  .iesdesk-scene__workspace--full > details.iesdesk-scene__settings:not([open]) > summary { margin: 0; }
  .iesdesk-scene__workspace--full > details.iesdesk-scene__settings:not([open]) > summary::after { content: "▸"; }
  .iesdesk-scene__workspace--full > .iesdesk-scene__settings--fold > .iesdesk-scene__settings-body { display: grid; gap: var(--space-md); }
}
/* The Figures panel folds to its name only on the full-screen scene; below
   1280px the figures stay a row above the scene, with no name to click. */
.iesdesk-scene__figure-summary { display: none; }
@media (min-width: 1280px) {
  .iesdesk-scene__workspace--full .iesdesk-scene__figure-summary {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
    font-size: var(--size-body); font-weight: 600; list-style: none; cursor: pointer;
  }
  .iesdesk-scene__workspace--full .iesdesk-scene__figure-summary::-webkit-details-marker { display: none; }
  .iesdesk-scene__workspace--full .iesdesk-scene__figure-summary::after { content: "▸"; color: var(--ink-soft); }
  .iesdesk-scene__workspace--full details[open] > .iesdesk-scene__figure-summary { margin-bottom: var(--space-sm); }
  .iesdesk-scene__workspace--full details[open] > .iesdesk-scene__figure-summary::after { content: "▾"; }
  /* The name of the panel is the heading, so the heading inside it stays for a screen reader only. */
  .iesdesk-scene__workspace--full .iesdesk-scene__figure-row :is(.iesdesk-scene__figures, .agustos-card) > h2 {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .iesdesk-scene__workspace--full > .iesdesk-scene__result > details.iesdesk-scene__figure-row:not([open]) {
    padding-bottom: var(--space-sm); -webkit-mask-image: none; mask-image: none;
  }
}
@media (min-width: 1280px) {
  .iesdesk-scene__workspace--full .iesdesk-scene__figure-row :is(.iesdesk-scene__figures, .agustos-card) > h2 { font-size: var(--size-body); font-weight: 600; }
  .iesdesk-scene__workspace--full .iesdesk-scene__figure-row .iesdesk-scene__figures > h3 { margin-top: var(--space-xs); font-size: var(--size-footnote); font-weight: 600; color: var(--ink-soft); }
  .iesdesk-scene__workspace--full .iesdesk-scene__figure-row .iesdesk-scene__figures > :is(p, .agustos-hint) { font-size: var(--size-footnote); }
  /* A warning and the answer of a layout search read at the size of the
     figures, so the lux figures of Find an even layout show without a
     scroll at 1440px (quality check, 2026-11-20). */
  .iesdesk-scene__workspace--full .iesdesk-scene__figure-row > .iesdesk-scene__warning { padding: var(--space-xs) var(--space-sm); }
  .iesdesk-scene__workspace--full .iesdesk-scene__figure-row > .iesdesk-scene__warning > p { margin: 0; font-size: var(--size-footnote); line-height: 1.5; }
  .iesdesk-scene__workspace--full .iesdesk-scene__figure-row > .iesdesk-scene__layout-result > :is(p, .agustos-hint) { margin: 0; font-size: var(--size-footnote); }
  .iesdesk-scene__workspace--full .iesdesk-scene__figure-row .iesdesk-summary__list { width: 100%; min-width: 0; font-size: var(--size-footnote); }
  .iesdesk-scene__workspace--full .iesdesk-scene__figure-row .iesdesk-summary__list > div { padding-block: 0; border-bottom: 0; }
  .iesdesk-scene__workspace--full .iesdesk-scene__figure-row .iesdesk-summary__list dd { font-size: inherit; }
  /* A check row (lighting class, emergency) holds a value and its limit, too
     long for one line beside its name in the panel: the name sits on top and
     the value under it, on one line (quality check, 2026-11-20). */
  .iesdesk-scene__workspace--full .iesdesk-scene__figure-row .iesdesk-figures-table--check tr { flex-direction: column; align-items: stretch; gap: 0; }
  .iesdesk-scene__workspace--full .iesdesk-scene__figure-row .iesdesk-figures-table--check td { font-size: var(--size-body-compact); }
}
@media (min-width: 1280px) {
  /* The camera bar sits at the top left, the display group at the foot in
     the middle, and the hint at the foot on the left, small and quiet
     (Product Owner, 2026-11-21). */
  /* On View the sticky section strip stays above the scene, so the frame is 1rem shorter. */
  .iesdesk-view-preview > .iesdesk-scene__workspace--full { --scene-frame: clamp(36rem, calc(100dvh - 11rem), 64rem); }
  .iesdesk-scene__workspace--full .iesdesk-stage-bar:not([hidden]) { inset: var(--space-sm); grid-template-rows: auto 1fr auto; }
  .iesdesk-scene__workspace--full .iesdesk-stage-bar__camera { grid-row: 1; grid-column: 1; justify-self: start; align-self: start; }
  .iesdesk-scene__workspace--full .iesdesk-stage-bar__start { grid-row: 3; }
  .iesdesk-scene__workspace--full .iesdesk-stage-bar__foot {
    left: var(--space-sm); bottom: var(--space-xs);
    max-width: calc(50% - 12rem);
  }
  .iesdesk-scene__workspace--full .iesdesk-stage-bar__hint { padding: 0; border: 0; background: none; font-size: 0.75rem; }
  .iesdesk-scene__workspace--full .iesdesk-light-view__stage:not([data-view="false-colour"]) .iesdesk-stage-bar__hint { color: color-mix(in srgb, white 60%, transparent); }
  .iesdesk-scene__workspace--full .iesdesk-light-view__stage[data-view="false-colour"] .iesdesk-stage-bar__hint { border: 0; color: var(--ink-soft); }
  .iesdesk-scene__workspace--full .iesdesk-stage-bar__line > .iesdesk-light-view__panel--badge { padding: 0; border: 0; background: none; font-size: 0.75rem; opacity: 0.75; }
}
/* From 1440px the panels take a little more room. */
@media (min-width: 1440px) {
  .iesdesk-scene__workspace--full { --scene-panel: 22rem; }
}
/* The pole geometry figure of a Street (lighting_scenes/_pole_geometry). */
.iesdesk-pole-figure { margin: 0; max-width: 20rem; color: var(--ink); }
.iesdesk-pole-figure svg { display: block; width: 100%; height: auto; }
.iesdesk-pole-figure__dimension { opacity: 0.6; }

/* The entry page of Find a pole layout and Find an even layout (Emre,
   2026-11-21): the class list takes its own row, so its whole name shows,
   and the two targets sit under it with their names on one line; Calculate
   has its own row under the settings (MEMORY 2026-11-21
   scene-drop-starts-work). */
.iesdesk-scene-entry form.agustos-fieldset > .agustos-field:has(> select[name="parking_class"]) { flex: 1 1 100%; max-width: none; }
.iesdesk-scene-entry form.agustos-fieldset > .agustos-field:has(> select[name="parking_class"]) > :is(select, .agustos-hint) { max-width: 36rem; }
.iesdesk-scene-entry form.agustos-fieldset > .agustos-field:has(> input.agustos-input) { flex: 0 1 20rem; min-width: 0; max-width: 20rem; }
.iesdesk-scene-entry form.agustos-fieldset > .iesdesk-scene-entry__actions { padding-inline-end: 0; }
