/* Tap AAC board maker (/aac-board-maker/, also /visual-schedule-maker/). The tool looks like the Tap AAC app's
   Edit pages (Theme.kt, Board.kt, FormWidgets.kt): the app's palette, top bar with the page name, More, its
   pop-up screens (a panel beside the board on wide windows, a sheet over it on narrow ones), grouped rows and
   switches. The website's header, footer and text stay around it. The board on paper is unchanged. */

.bm-tool {
  --a-canvas: #F4F6F8; --a-surface: #FFFFFF; --a-sunken: #EBEFF3; --a-seg: #EEF0F4;
  --a-ink: #16202B; --a-soft: #4B5867; --a-line: #D6DDE4; --a-strong: #6F7C89;
  --a-primary: #0F6E8C; --a-pdeep: #0A536A; --a-psoft: #DCEEF4; --a-onp: #FFFFFF;
  --a-accent: #8F5311; --a-asoft: #FBEBD6; --a-danger: #B3261E; --a-focus: #0F6E8C; --a-scrim: rgba(22, 32, 43, .32);
  --a-font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --bm-control: #6F7C89;
}
@media (prefers-color-scheme: dark) {
  .bm-tool {
    --a-canvas: #0E1318; --a-surface: #171D24; --a-sunken: #222A33; --a-seg: #0E1318;
    --a-ink: #EEF2F6; --a-soft: #B8C3CE; --a-line: #2E3843; --a-strong: #7D8B99;
    --a-primary: #5EC1E0; --a-pdeep: #9AD9EC; --a-psoft: #12333F; --a-onp: #071B23;
    --a-accent: #F0B26B; --a-asoft: #3A2A14; --a-danger: #FF8A80; --a-focus: #5EC1E0; --a-scrim: rgba(0, 0, 0, .5);
    --bm-control: #7D8B99;
  }
}

html:not(.js) .bm, html:not(.js) .bm-try { display: none; }
html.js .bm-nojs { display: none; }
.bm [hidden], .bm-menu [hidden] { display: none !important; }
.bm-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bm-head { padding-bottom: 20px; }
.bm-head h1 { margin-bottom: 10px; }
.bm-head .answer { color: var(--ink); max-width: 68ch; }
@media (max-width: 480px) { .bm-head .mini-facts { display: none; } .bm-head { padding-top: 24px; } }
.bm-other-tool { margin: 14px 0 0; font-weight: 600; max-width: 68ch; }
@media (max-width: 480px) { .bm-head .bm-other-tool { display: none; } }  /* phones: the tool comes sooner; the link is further down too */
@media (max-height: 480px) and (orientation: landscape) { .bm-head .answer, .bm-head .mini-facts, .bm-head .bm-other-tool { display: none; } }

.bm-tool { padding: 8px 0 40px; }
.bm-wrap { max-width: 1920px; margin: 0 auto; padding: 0 var(--gutter); }
.bm-nojs { max-width: 760px; }

/* ---- The app window: the board's screen, with Page options and the square editor as panels or sheets ---- */
.bm {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage"; align-items: start;
  background: var(--a-canvas); color: var(--a-ink); font-family: var(--a-font); font-size: 16px; line-height: 1.4;
  border: 1px solid var(--a-line); border-radius: 22px; overflow: clip; box-shadow: 0 1px 2px rgba(16, 32, 44, .06), 0 12px 32px rgba(16, 32, 44, .08);
}
@media (max-width: 599.98px) { .bm { margin: 0 calc(-1 * var(--gutter)); border-radius: 0; border-left: 0; border-right: 0; } }
.bm-stage { grid-area: stage; min-width: 0; display: flex; flex-direction: column; }
.bm h2, .bm h3, .bm-dialog h2 { font-family: var(--a-font); letter-spacing: normal; }
.bm button, .bm input, .bm select, .bm-menu button, .bm-dialog button, .bm-dialog input, .bm-dialog select { font-family: var(--a-font); }

.bm-sheet-panel { display: none; flex-direction: column; min-width: 0; margin: 0; padding: 0; background: var(--a-canvas); color: var(--a-ink); }
.bm-sheet-panel.is-open {
  display: flex; position: fixed; inset: 0; z-index: 60; overscroll-behavior: contain;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
html.bm-sheet-open { overflow: hidden; }
@media (min-width: 1040px) {
  .bm { grid-template-columns: minmax(0, 1fr) minmax(360px, 420px); grid-template-areas: "stage editor"; }
  #bm-editor { grid-area: editor; display: flex; position: sticky; top: 0; height: 100vh; max-height: 100vh; border-left: 1px solid var(--a-line); }
  /* Page options on a window from 1040 to 1599 px: a panel at the right over the dimmed board (the app's side panel). */
  #bm-opts.is-open { left: auto; width: min(560px, 100vw); box-shadow: 0 0 0 100vmax var(--a-scrim), -8px 0 32px rgba(0, 0, 0, .18); }
}
@media (min-width: 1600px) {
  .bm { grid-template-columns: minmax(300px, 340px) minmax(0, 1fr) minmax(380px, 440px); grid-template-areas: "opts stage editor"; }
  #bm-opts { grid-area: opts; display: flex; position: sticky; top: 0; height: 100vh; max-height: 100vh; border-right: 1px solid var(--a-line); }
}
.bm.is-talking { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage"; }
.bm.is-talking .bm-sheet-panel, .bm.is-talking #bm-editor, .bm.is-talking #bm-opts { display: none; }

/* A pop-up screen's head (ModalSheet): white, the name in the middle, Done at the right. */
.bm-sh-head {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; min-height: 60px; padding: 0 8px;
  background: var(--a-surface); border-bottom: 1px solid var(--a-line); flex: none;
}
.bm-sh-title { margin: 0; font-size: 18px; font-weight: 600; line-height: 24px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--a-ink); }
.bm-sh-title:focus { outline: none; }
.bm-sh-done {
  justify-self: end; min-height: 48px; min-width: 48px; padding: 0 10px; border: 0; border-radius: 12px; background: transparent;
  color: var(--a-primary); font-size: 17px; font-weight: 700; cursor: pointer;
}
.bm-sh-done:hover { background: var(--a-psoft); }
.bm-sh-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px 32px; }
.bm-sh-meta { margin: 0 0 12px; padding: 0 16px; font-size: 14px; color: var(--a-soft); }
@media (min-width: 1600px) { #bm-opts .bm-sh-done { visibility: hidden; } }

/* Grouped sections (FormSection): small caps header, a white card of rows, a footnote. */
.bm-sec { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
fieldset.bm-sec > legend { padding: 0; float: left; width: 100%; }
fieldset.bm-sec > legend + * { clear: both; }
.bm-oh { display: block; margin: 0; padding: 0 16px 6px; font-size: 13px; font-weight: 600; line-height: 16px; letter-spacing: .6px; text-transform: uppercase; color: var(--a-soft); }
.bm-oh label { font: inherit; color: inherit; }
.bm-fcard { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 16px; overflow: hidden; }
.bm-fcard-pad { padding: 12px; }
.bm-fcard-gap { margin-top: 10px; }
.bm-fnote, .bm-sec > .bm-small { margin: 0; padding: 6px 16px 0; font-size: 14px; line-height: 19px; color: var(--a-soft); }
.bm-small { font-size: 14px; line-height: 1.4; color: var(--a-soft); margin: 4px 0 0; }
.bm-h { margin: 0; font-size: 17px; font-weight: 600; line-height: 24px; }
.bm-h:focus { outline: none; }

/* Rows (FormRow): a label at the left, the value at the right, a hairline under each. */
.bm-frow {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 2px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--a-line) 70%, transparent);
  font-size: 15px; font-weight: 600; color: var(--a-soft); line-height: 1.25;
}
.bm-fcard > :last-child, .bm-fcard > div:last-child > :last-child { border-bottom: 0; }
.bm-frow .bm-label { flex: 0 0 118px; margin: 0; font-size: 15px; font-weight: 600; color: var(--a-soft); }
.bm-frow input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), .bm-frow select {
  flex: 1; min-width: 0; min-height: 48px; margin: 0; padding: 6px 8px; border: 0; border-radius: 10px; background: transparent;
  color: var(--a-ink); font-size: 16px; font-weight: 400;
}
.bm-frow select { cursor: pointer; text-align: right; text-align-last: right; color: var(--a-primary); font-weight: 600; }
.bm-frow input::placeholder { color: var(--a-strong); opacity: .75; }
.bm-frow input:focus-visible, .bm-frow select:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }
.bm-frow input[type=color] { margin-left: auto; width: 56px; height: 36px; padding: 0; border: 1px solid var(--a-line); border-radius: 10px; background: none; cursor: pointer; }
.bm-frow-range input[type=range] { flex: 1; min-height: 48px; accent-color: var(--a-primary); }
.bm-frow-seg { padding: 10px 12px; }
.bm-frow-seg .bm-seg { flex: 1; }

/* Switch rows (ToggleRow) */
.bm-check {
  display: flex !important; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 6px 16px;
  font-size: 16px; font-weight: 400 !important; color: var(--a-ink); cursor: pointer; line-height: 1.3;
  border-bottom: 1px solid color-mix(in srgb, var(--a-line) 70%, transparent);
}
.bm-check input { margin: 0; flex: none; }
.bm-check input[type=checkbox] {
  -webkit-appearance: none; appearance: none; width: 52px; height: 32px; border-radius: 16px; cursor: pointer;
  border: 2px solid var(--a-strong); background: radial-gradient(circle at 14px 50%, var(--a-strong) 0 8px, transparent 8.6px) var(--a-sunken);
  transition: background-color .15s;
}
.bm-check input[type=checkbox]:checked {
  border-color: var(--a-primary); background: radial-gradient(circle at calc(100% - 14px) 50%, var(--a-onp) 0 11px, transparent 11.6px) var(--a-primary);
}
.bm-check input[type=checkbox]:focus-visible { outline: 3px solid var(--a-focus); outline-offset: 3px; }
.bm-fcard-pad .bm-check, .bm-tabpanel .bm-check, .bm-dialog > .bm-check { padding: 6px 0; }

/* Segmented pickers (SegmentedPicker): grey track, the chosen one white */
fieldset.bm-types, fieldset.bm-seg { border: 0; padding: 0; margin: 0; min-width: 0; }
.bm-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 2px; border-radius: 9px; background: var(--a-seg); }
.bm-seg legend { float: left; width: 100%; padding: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--a-soft); }
.bm-seg legend.bm-vh { float: none; }
.bm-seg label { position: relative; min-width: 0; }
.bm-seg input, .bm-type input, .bm-sw input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bm-seg span {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 4px; border-radius: 7px;
  text-align: center; font-size: 15px; font-weight: 500; line-height: 1.2; cursor: pointer; color: var(--a-ink);
}
.bm-seg input:checked + span { background: var(--a-surface); font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.bm-fcard > .bm-seg-2 { margin: 12px; }
.bm-type input:focus-visible + span, .bm-seg input:focus-visible + span { outline: 3px solid var(--a-focus); outline-offset: 1px; }

/* Kind of page */
.bm-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.bm-type { position: relative; }
.bm-type span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%; min-height: 76px; padding: 8px 4px;
  border: 1px solid var(--a-line); border-radius: 16px; background: var(--a-surface);
  font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; color: var(--a-ink);
}
.bm-type svg { width: 30px; height: 30px; fill: var(--a-sunken); stroke: currentColor; stroke-width: 1.4; }
.bm-type input:checked + span { border: 2px solid var(--a-primary); padding: 7px 3px; background: var(--a-psoft); color: var(--a-pdeep); }

/* Fields that are not rows (inside padded cards and pop-ups) */
.bm-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bm-pair + *, .bm-grid-extra > * + *, [data-show]:not(.bm-pair) > * + * { margin-top: 10px; }
.bm-fcard-pad label, .bm-field, .bm-label-plain, .bm-label { display: block; font-size: 15px; font-weight: 600; color: var(--a-soft); line-height: 1.3; }
.bm-label-sub { margin-top: 10px; }
.bm-fcard-pad select, .bm-fcard-pad input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),
.bm-dialog .bm-input, .bm-dialog .bm-field select, .bm-which select, .bm-field select, .bm-field input:not([type=range]) {
  display: block; width: 100%; min-height: 48px; margin-top: 4px; padding: 8px 12px; border: 1px solid var(--bm-control); border-radius: 10px;
  background: var(--a-surface); color: var(--a-ink); font-size: 16px; font-weight: 400;
}
.bm-fcard-pad input[type=range], .bm-field input[type=range] { display: block; width: 100%; min-height: 48px; accent-color: var(--a-primary); }
.bm-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.bm-wide { width: 100%; }

/* Buttons: flat pills (the app's chips), filled primary, and text rows (FormButton) */
.bm-btn, .bm-icon {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 6px 16px;
  border: 0; border-radius: 999px; background: var(--a-sunken); color: var(--a-ink);
  font-size: 15px; font-weight: 600; line-height: 1.2; cursor: pointer; text-decoration: none;
}
.bm-icon { width: 48px; padding: 0; border-radius: 12px; background: transparent; }
.bm-btn:hover { background: color-mix(in srgb, var(--a-sunken) 70%, var(--a-strong)); }
.bm-icon:hover { background: var(--a-sunken); }
.bm-btn svg, .bm-icon svg, .bm-round svg, .bm-more-menu svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.bm-icon svg { width: 24px; height: 24px; }
svg .bm-dot, svg .bm-fill { fill: currentColor; }
.bm-btn-main { background: var(--a-primary); color: var(--a-onp); }
.bm-btn-main:hover { background: var(--a-pdeep); color: var(--a-onp); }
.bm-btn-quiet { background: transparent; box-shadow: inset 0 0 0 1.5px var(--a-line); }
.bm-btn:disabled, .bm-icon:disabled { opacity: .38; cursor: default; }
.bm-btn:focus-visible, .bm-icon:focus-visible, .bm-round:focus-visible, .bm-sh-done:focus-visible, .bm-chip-title:focus-visible,
.bm-try button:focus-visible, .bm-quick button:focus-visible, .bm-chip-btn:focus-visible, .bm-page-tab:focus-visible, .bm-tabs [role="tab"]:focus-visible,
.bm-ed-tile:focus-visible { outline: 3px solid var(--a-focus); outline-offset: 2px; }
.bm-btn.is-on, .bm-btn[aria-pressed="true"] { background: var(--a-asoft); color: var(--a-accent); }
.bm-rowbtn {
  display: flex; width: 100%; justify-content: flex-start; gap: 12px; min-height: 52px; padding: 6px 16px; border-radius: 0; background: transparent;
  color: var(--a-primary); font-size: 17px; font-weight: 600; text-align: left;
  border-bottom: 1px solid color-mix(in srgb, var(--a-line) 70%, transparent);
}
.bm-rowbtn:hover { background: var(--a-canvas); }
.bm-danger { color: var(--a-danger) !important; }
#bm-rec.is-on, #bm-rec[aria-pressed="true"] { background: var(--a-danger); color: #FFFFFF; }
.bm-round {
  display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--a-sunken); color: var(--a-ink); cursor: pointer;
}
.bm-round:disabled { opacity: .38; cursor: default; }
.bm-round-dark { background: var(--a-ink); color: var(--a-surface); }

/* ---- The top bar (NavigationBarView): Undo and Redo, the page name in the middle, Try it out and More ---- */
.bm-appbar {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px; min-height: 56px; padding: 0 6px;
  background: var(--a-surface); border-bottom: 1px solid var(--a-line); position: relative; z-index: 2;
}
.bm-ab-side { display: flex; align-items: center; gap: 2px; min-width: 0; }
.bm-ab-end { justify-content: flex-end; }
.bm-flat { color: var(--a-ink); }
.bm-flat-btn { background: transparent; padding: 6px 12px; border-radius: 12px; white-space: nowrap; }
.bm-flat-btn:hover { background: var(--a-sunken); }
.bm-chip-title {
  display: flex; flex-direction: column; align-items: center; justify-content: center; justify-self: center; min-height: 48px; max-width: 100%; min-width: 0; padding: 2px 12px;
  border: 0; border-radius: 12px; background: transparent; color: var(--a-ink); cursor: pointer; line-height: 1.15;
}
.bm-chip-title:hover:not(:disabled) { background: var(--a-sunken); }
.bm-chip-title:disabled { cursor: default; color: var(--a-ink); }
.bm-ct-row { display: flex; align-items: center; gap: 4px; max-width: 100%; }
.bm-ct-name { font-size: 20px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-ct-row svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--a-soft); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.bm-chip-title:disabled .bm-ct-row svg { display: none; }
.bm-ct-meta { font-size: 13px; font-weight: 600; color: var(--a-accent); margin-top: 1px; white-space: nowrap; }
@media (max-width: 599.98px) {
  .bm-flat-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bm-flat-btn { width: 48px; padding: 0; }
  .bm-ct-name { font-size: 17px; }
}

/* The editor bar under it, the pages as the app's quick-phrase strip, the status line */
.bm-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 8px 8px 4px; }
.bm-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bm-which select { margin: 0; border-radius: 999px; background: var(--a-surface); font-weight: 600; font-size: 15px; padding: 6px 14px; }
.bm-pages { padding: 4px 8px 0; }
.bm-page-tabs { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.bm-page-tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; max-width: 240px; padding: 4px 18px 4px 8px;
  border: 1.5px solid color-mix(in srgb, var(--a-strong) 55%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--a-surface) 70%, transparent);
  color: var(--a-soft); font-size: 15px; font-weight: 600; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bm-page-tab:hover { border-color: var(--a-primary); color: var(--a-ink); }
.bm-page-tab[aria-pressed="true"] { border-color: var(--a-primary); background: var(--a-psoft); color: var(--a-pdeep); }
.bm-page-no { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 50%; background: var(--a-sunken); font-size: 13px; font-weight: 700; color: var(--a-ink); }
.bm-page-tab[aria-pressed="true"] .bm-page-no { background: var(--a-primary); color: var(--a-onp); }
.bm-status { min-height: 1.4em; margin: 0; padding: 6px 14px 2px; font-size: 14px; line-height: 1.4; color: var(--a-soft); }

/* Try it out: the app's sentence bar */
.bm-talk {
  display: grid; gap: 6px; margin: 4px 8px 0; padding: 10px 10px 8px 14px; border: 1.5px solid var(--a-line); border-radius: 22px;
  background: var(--a-surface); box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.bm-talk[hidden] { display: none; }
.bm-talk-words { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 56px; color: var(--a-ink); font-weight: 700; font-size: 22px; line-height: 1.2; }
.bm-talk-words.is-empty::before { content: "Tap the squares. Their words go here."; color: var(--a-soft); font-weight: 500; font-size: 16px; }
.bm-talk-word { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 2px 6px; border-radius: 10px; background: var(--a-canvas); line-height: 1.1; font-size: 17px; }
.bm-talk-word img { width: 36px; height: 36px; object-fit: contain; }
.bm-talk-keys { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bm-talk-gap { flex: 1; }
@media (max-height: 480px) {
  .bm-talk { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 4px 6px 4px 12px; }
  .bm-talk-words { min-height: 48px; font-size: 18px; }
  .bm-talk-keys { flex-wrap: nowrap; }
}

/* ---- The board ---- */
.bm-board { display: flex; justify-content: center; align-items: flex-start; padding: 8px; }
.bm-sheet {
  position: relative; container-type: inline-size; aspect-ratio: var(--ar, 1.2937);
  width: min(100%, 1280px, max(300px, calc((100vh - 200px) * var(--ar, 1.2937))));
}
#bm-sheet {
  /* The bars above it in the maker: the board fits the window under them. */
  width: min(100%, 1280px, max(300px, calc((100vh - 250px) * var(--ar, 1.2937))));
  background: #FFFFFF; color: #15222E; border-radius: 3px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(16, 40, 56, .25), 0 10px 30px rgba(16, 40, 56, .16);
  font-family: var(--font); line-height: 1.15; -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
#bm-sheet { font-family: var(--a-font); border-radius: 12px; box-shadow: 0 1px 2px rgba(16, 32, 44, .1), 0 4px 16px rgba(16, 32, 44, .08); }
.bm-sheet > * { position: absolute; box-sizing: border-box; margin: 0; }
.bm-title, .bm-text, .bm-foot {
  display: flex; align-items: center; justify-content: center; text-align: center;
  white-space: pre; line-height: 1.15; font-weight: 800; overflow: visible;
}
.bm-title { color: #0B5C76; }
.bm-foot { font-weight: 600; color: #5A6875; }
.bm-cell { padding: 0; font: inherit; font-family: var(--font); line-height: 1.15; cursor: pointer; overflow: hidden; -webkit-appearance: none; appearance: none; }
#bm-sheet .bm-cell { font-family: var(--a-font); }
.bm-cell > *, .bm-box > * { position: absolute; box-sizing: border-box; margin: 0; }
.bm-pic { object-fit: contain; max-width: none; display: block; -webkit-user-select: none; user-select: none; }
.bm-pic.is-photo { object-fit: contain; }
.bm-hint { inset: 0; display: grid; place-items: center; color: #A7B4BF; font-weight: 300; line-height: 1; }
.bm-num { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #0F6E8C; color: #FFFFFF; font-weight: 800; line-height: 1; }
.bm-tick { border-style: solid; border-color: #5A6875; }
.bm-arrow { overflow: visible; }
.bm-arrow polyline { fill: none; stroke: #44525F; stroke-linecap: round; stroke-linejoin: round; }
.bm-box { border-style: solid; background: #FFFFFF; overflow: hidden; }
.bm-head { left: 0; top: 0; width: 100%; }
/* On the screen a square is the app's button: shadow, round corners (set by the script), semibold words. */
#bm-sheet .bm-cell.is-app { box-shadow: 0 1px 4px rgba(16, 32, 44, .22); }
#bm-sheet .bm-cell.is-app .bm-text { font-weight: 700; }
#bm-sheet .bm-cell.is-empty { background: color-mix(in srgb, #FFFFFF 70%, transparent) !important; border-color: #6F7C89 !important; }
#bm-sheet .bm-cell .bm-hint { color: #0F6E8C; font-weight: 400; }
#bm-sheet .bm-cell:hover { box-shadow: 0 0 0 3px rgba(15, 110, 140, .45); }
#bm-sheet .bm-cell[aria-current="true"] { outline: 4px solid #0F6E8C; outline-offset: 2px; }
#bm-sheet .bm-cell:focus-visible { outline: 4px solid #C98F00; outline-offset: 2px; }
#bm-sheet .bm-cell.is-hidden { opacity: .35; border-style: dashed !important; }
#bm-sheet.is-dragging .bm-cell { cursor: grabbing; }
#bm-sheet .bm-cell.is-drop { outline: 4px dashed #0F6E8C; outline-offset: 2px; }
#bm-sheet .bm-cell { -webkit-touch-callout: none; touch-action: manipulation; }
.bm-tab { display: flex; align-items: center; justify-content: center; font-weight: 800; line-height: 1; white-space: nowrap; overflow: hidden; }
.bm-badges { right: 4%; top: 3%; padding: .1em .45em; border-radius: 999px; background: #FFFFFF; color: #4B5867; border: 1px solid #D6DDE4; font-weight: 700; line-height: 1.3; }
.bm.is-talking #bm-sheet .bm-cell { cursor: pointer; }
.bm.is-talking #bm-sheet .bm-cell:active { transform: scale(.97); }

/* Schedules: tick boxes you can tap on screen */
#bm-sheet .bm-tick { padding: 0; background: #FFFFFF; cursor: pointer; -webkit-appearance: none; appearance: none; font: inherit; }
#bm-sheet .bm-tick::before { content: ""; position: absolute; inset: -8px; }  /* a bigger target for fingers */
#bm-sheet .bm-tick:hover { border-color: #0F6E8C; }
#bm-sheet .bm-tick:focus-visible { outline: 4px solid #C98F00; outline-offset: 3px; }
#bm-sheet .bm-tick.is-done { border-color: #23784A; background: #E2F4E8; }
.bm-tick svg { position: absolute; left: 6%; top: 6%; width: 88%; height: 88%; fill: none; stroke: #23784A; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
#bm-sheet .bm-cell.is-done > * { opacity: .42; }
.bm-tick-note { margin-top: 6px; }
.bm-untick { margin-top: 8px; }

/* Scenes and talking spots */
.bm-scene { overflow: hidden; background: #F4F5F8; }
.bm-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; display: block; -webkit-user-select: none; user-select: none; }
.bm-scene.is-empty { border: 2px dashed #A7B4BF; }
.bm-scene-hint { position: absolute; inset: 0; display: grid; place-items: center; padding: 8%; text-align: center; color: #44525F; font-weight: 700; line-height: 1.3; }
.bm-spot { padding: 0; background: transparent; border: 0 dashed #0F6E8C; font: inherit; font-family: var(--font); cursor: pointer; overflow: visible; -webkit-appearance: none; appearance: none; color: #15222E; }
.bm-spot.is-outline, .bm-spot.is-dashed { border-style: dashed; border-color: #0F6E8C; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85), inset 0 0 0 1.5px rgba(255, 255, 255, .85); }
#bm-sheet .bm-spot.is-outline { background: rgba(15, 110, 140, .12); touch-action: none; cursor: move; }
.bm-spot.is-glow { border: 0; background: rgba(255, 214, 10, .28); box-shadow: 0 0 0 3px rgba(255, 201, 51, .9), 0 0 18px 6px rgba(255, 201, 51, .7); }
.bm-spot.is-none { border: 0; }
.bm-spot-word { position: absolute; z-index: 1; background: rgba(255, 255, 255, .92); border-radius: .35em; color: #15222E; }
.bm-spot > .bm-spot-word { inset: auto; }
.bm-spot-handle { right: -14px; bottom: -14px; width: 18px; height: 18px; z-index: 0; border-radius: 50%; background: #0F6E8C; border: 3px solid #FFFFFF; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); cursor: nwse-resize; touch-action: none; }
.bm-spot-handle::before { content: ""; position: absolute; inset: -15px; }   /* a 48 px target for fingers */
#bm-sheet .bm-spot[aria-current="true"] { outline: 3px solid #C98F00; outline-offset: 2px; }

/* Under the board: keep and share, examples, a hint */
.bm-files { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 8px 0; }
.bm-try { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; padding: 12px 8px 0; font-size: 15px; }
.bm-try > span { font-weight: 600; color: var(--a-soft); margin: 0 2px 0 6px; }
.bm-try button, .bm-quick button, .bm-chip-btn {
  min-height: 48px; min-width: 48px; padding: 4px 16px; border: 1.5px solid color-mix(in srgb, var(--a-strong) 55%, transparent); border-radius: 999px;
  background: var(--a-surface); color: var(--a-ink); font-size: 15px; font-weight: 600; cursor: pointer;
}
.bm-try button:hover, .bm-quick button:hover, .bm-chip-btn:hover { border-color: var(--a-primary); }
.bm-chip-btn[aria-pressed="true"] { background: var(--a-psoft); border-color: var(--a-primary); }
.bm-hint-keys { margin: 0; padding: 10px 14px 16px; }
@media (hover: none) { .bm-hint-keys { display: none; } }
.bm-stage > :last-child { padding-bottom: 16px; }
.bm.is-talking .bm-bar, .bm.is-talking .bm-files, .bm.is-talking .bm-try, .bm.is-talking .bm-hint-keys,
.bm.is-talking #bm-undo, .bm.is-talking #bm-redo { display: none; }

/* ---- The square editor (Quick Edit) ---- */
.bm-ed-head { display: flex; gap: 16px; align-items: center; padding: 12px; }
.bm-ed-tile {
  flex: none; width: 104px; height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px;
  border: 1.5px solid #CBD5E1; border-radius: 16px; background: #FFFFFF; color: #16202B; box-shadow: 0 2px 6px rgba(16, 32, 44, .22);
  cursor: pointer; font-family: var(--a-font); font-size: 16px; font-weight: 600; line-height: 1.1; overflow: hidden;
}
.bm-ed-tile img { width: 64px; height: 64px; object-fit: contain; flex: 1 1 auto; min-height: 0; }
.bm-ed-tile span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-ed-tile .is-add { font-size: 40px; font-weight: 300; color: #0F6E8C; }
.bm-ed-name { min-width: 0; flex: 1; }
.bm-ed-name .bm-small { margin: 0; }
.bm-ed-arrows { display: flex; gap: 12px; margin-top: 8px; }
.bm-ed-top { margin-bottom: 18px; }
.bm-ideas { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 16px 12px; }
.bm-for-word-pics { display: flex; gap: 10px; overflow-x: auto; padding: 12px; overscroll-behavior-x: contain; }
.bm-for-word-pics > * { flex: none; }
.bm-for-word .bm-oh { text-transform: uppercase; }
.bm-quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.bm-note { min-height: 1.4em; }
.bm-results {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; margin-top: 8px;
  max-height: 340px; overflow-y: auto; padding: 2px; overscroll-behavior: contain;
}
.bm-results:empty { display: none; }
.bm-pick {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 48px; min-width: 48px; padding: 6px 4px 5px;
  border: 1px solid var(--a-line); border-radius: 12px; background: #FFFFFF; color: #16202B;
  font-size: 13px; font-weight: 600; line-height: 1.15; cursor: pointer;
}
.bm-for-word-pics .bm-pick { width: 80px; background: var(--a-sunken); color: var(--a-ink); }
.bm-pick img { width: 60px; height: 60px; object-fit: contain; }
.bm-pick span { overflow-wrap: anywhere; text-align: center; }
.bm-pick:hover { border-color: var(--a-primary); box-shadow: 0 0 0 1px var(--a-primary); }
.bm-more { width: 100%; margin-top: 8px; }
.bm-kind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; margin: 0; padding: 8px 8px 8px 16px; font-size: 15px; border-bottom: 1px solid var(--a-line); }
.bm-kind .bm-btn { background: transparent; color: var(--a-primary); font-weight: 700; }
.bm-swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 12px; }
.bm-sw {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px;
  border: 1px solid var(--a-line); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 15px; line-height: 1.15;
}
.bm-sw small { display: block; font-weight: 400; font-size: 12px; color: var(--a-soft); }
.bm-chip { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--f); border: 2px solid color-mix(in srgb, var(--l) 60%, transparent); }
.bm-sw:has(input:checked), .bm-sw-custom.is-on { border: 2px solid var(--a-primary); padding: 5px 9px; background: var(--a-psoft); }
.bm-sw input:focus-visible + .bm-chip { outline: 3px solid var(--a-focus); outline-offset: 3px; }
.bm-sw-custom input[type="color"] { flex: none; width: 30px; height: 30px; padding: 0; border: 1px solid var(--a-line); border-radius: 50%; background: none; cursor: pointer; overflow: hidden; }
.bm-ed-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bm-ed-actions .bm-btn { flex: 1 1 auto; }
.bm-step-actions { margin: 0 0 18px; }
.bm-heads { margin-top: 10px; }
.bm.is-spot .bm-ed-pics, .bm.is-spot .bm-photo, .bm.is-spot .bm-colors, .bm.is-spot #bm-sec-look, .bm.is-spot #bm-sec-saved,
.bm.is-spot .bm-sq-actions, .bm.is-spot #bm-for-word, .bm.is-spot #bm-after-wrap { display: none; }
.bm.is-spot.is-scene-pick .bm-ed-pics { display: block; }
.bm-spot-set .bm-pair label { font-weight: 600; }

/* ---- Menus: the square's right-click menu and More (the app's More card) ---- */
.bm-menu {
  position: fixed; z-index: 70; min-width: 220px; padding: 6px; border: 1px solid var(--a-line); border-radius: 16px;
  background: var(--a-surface); color: var(--a-ink); box-shadow: 0 10px 30px rgba(8, 20, 28, .25); display: grid; font-family: var(--a-font);
}
.bm-menu[hidden] { display: none; }
.bm-menu button { min-height: 48px; padding: 8px 14px; border: 0; border-radius: 10px; background: transparent; color: var(--a-ink); font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; }
.bm-menu button:hover, .bm-menu button:focus-visible { background: var(--a-sunken); outline: none; }
.bm-menu button:focus-visible { box-shadow: inset 0 0 0 3px var(--a-focus); }
.bm-menu button:disabled { opacity: .38; cursor: default; }
.bm-more-menu { width: min(320px, calc(100vw - 16px)); padding: 4px 8px 8px; overflow-y: auto; overscroll-behavior: contain; align-content: start; }
.bm-more-head { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding-left: 8px; font-size: 18px; font-weight: 600; }
.bm-more-menu button[role=menuitem] { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 6px 10px; }
.bm-more-menu button[role=menuitem] span { display: flex; flex-direction: column; min-width: 0; }
.bm-more-menu small { font-size: 13px; font-weight: 400; color: var(--a-soft); line-height: 1.25; }

/* ---- Pop-up screens (<dialog>): the app's ModalSheet. The whole window up to 1040 px, a panel at the right from there. ---- */
.bm-dialog {
  position: relative; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain;
  border: 0; border-radius: 22px; padding: 0 16px 24px; background: var(--a-canvas); color: var(--a-ink); font-family: var(--a-font);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .24);
}
.bm-dialog::backdrop { background: rgba(22, 32, 43, .32); }
.bm-dialog-wide { width: min(880px, calc(100vw - 32px)); }
.bm-dialog h2 {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: center; min-height: 60px; margin: 0 -16px 12px; padding: 0 84px;
  background: var(--a-surface); border-bottom: 1px solid var(--a-line); font-size: 18px; font-weight: 600; line-height: 1.25; text-align: center;
}
.bm-dialog h2:focus { outline: none; }
.bm-x {
  position: sticky; top: 6px; float: right; z-index: 3; min-width: 48px; height: 48px; margin: 6px -8px -54px 0; padding: 0 10px;
  border: 0; border-radius: 12px; background: transparent; color: var(--a-primary); font-size: 17px; font-weight: 700; cursor: pointer;
}
.bm-x:hover { background: var(--a-psoft); }
.bm-x:focus-visible { outline: 3px solid var(--a-focus); outline-offset: 2px; }
.bm-dlg-end { display: none; }
.bm-dialog > .bm-small { padding: 0 4px; }
@media (max-width: 1039.98px) {
  .bm-dialog, .bm-dialog-wide { width: 100vw; max-width: 100vw; height: 100%; max-height: 100%; margin: 0; border-radius: 0; box-shadow: none; }
}
@media (min-width: 1040px) {
  .bm-dialog, .bm-dialog-wide { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(560px, 46vw); border-radius: 0; }
  .bm-dialog-wide { width: min(760px, 56vw); }
}
.bm-saved-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 0; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 16px; overflow: hidden; }
.bm-saved-list:empty { display: none; }
.bm-saved-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px 10px 16px; border-bottom: 1px solid color-mix(in srgb, var(--a-line) 70%, transparent); }
.bm-saved-list li:last-child { border-bottom: 0; }
.bm-saved-list li > div { flex: 1 1 200px; min-width: 0; }
.bm-saved-list strong { display: block; overflow-wrap: anywhere; font-weight: 600; }
.bm-saved-list span { display: block; font-size: 14px; color: var(--a-soft); }
.bm-saved-list .bm-saved-empty { color: var(--a-soft); font-size: 15px; }
.bm-saved-list li > img { flex: none; width: 48px; height: 48px; object-fit: contain; background: #FFFFFF; border-radius: 10px; }
.bm-pages-list li { align-items: flex-start; }
.bm-pages-list .bm-input { margin-top: 0; }
.bm-tabs { display: flex; gap: 0; margin: 4px 0; padding: 2px; border-radius: 9px; background: var(--a-seg); overflow-x: auto; scrollbar-width: none; }
.bm-tabs [role="tab"] { flex: 1 0 auto; min-height: 48px; padding: 4px 14px; border: 0; border-radius: 7px; background: transparent; color: var(--a-ink); font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.bm-tabs [role="tab"][aria-selected="true"] { background: var(--a-surface); font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.bm-tabpanel { margin-top: 10px; }
.bm-tabpanel[hidden] { display: none; }
.bm-np-link { margin: 10px 0 0; border: 0; }
.bm-np-link[hidden] { display: none !important; }
.bm-dialog .bm-field { margin-top: 10px; }
.bm-dialog .bm-seg { margin-top: 8px; }
.bm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 10px; margin-top: 10px; }
.bm-card { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--a-line); border-radius: 16px; background: var(--a-surface); }
.bm-card .bm-btn { margin-top: auto; }
.bm-card-pics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 6px; border-radius: 10px; background: #FFFFFF; min-height: 52px; }
.bm-card-pics img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.bm-card-pics.is-wide { display: block; padding: 0; overflow: hidden; }
.bm-card-pics.is-wide img { aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.bm-mw-preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bm-mw-word { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 76px; min-height: 48px; padding: 6px; border: 2px solid var(--a-primary); border-radius: 12px; background: #FFFFFF; color: #16202B; font-size: 13px; font-weight: 600; cursor: pointer; }
.bm-mw-word img { width: 44px; height: 44px; object-fit: contain; }
.bm-mw-word.is-out { opacity: .45; border-style: dashed; border-color: var(--bm-control); text-decoration: line-through; }

/* ---- Phones, upright or on their side, and short windows: the bars are one row each that scrolls sideways
   (the app's one-row bar), so the board comes sooner. ---- */
@media (max-width: 759.98px), (max-height: 480px) {
  .bm-bar, .bm-pages, .bm-files { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .bm-bar { justify-content: flex-start; }
  .bm-bar .bm-group, .bm-page-tabs { flex-wrap: nowrap; }
  .bm-pages { display: flex; }
  .bm-page-tabs { flex: none; }
  .bm-bar .bm-btn, .bm-bar .bm-which, .bm-files .bm-btn, .bm-page-tab { flex: none; white-space: nowrap; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .bm-sheet, #bm-sheet { width: min(100%, max(300px, calc((100vh - 24px) * var(--ar, 1.2937)))); }
  .bm-appbar { min-height: 48px; }
}
@media (max-width: 599.98px) {
  .bm-swatches { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bm-frow .bm-label { flex-basis: 104px; }
}

/* ---- Content below the tool ---- */
.bm-prose { padding-bottom: 24px; }
.bm-prose + .bm-examples { margin-top: -8px; }
.bm-examples + .bm-prose { padding-top: 16px; padding-bottom: 64px; }
.bm-examples { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.bm-ex { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.bm-ex h3 { font-size: 1.25rem; margin: 0 0 6px; }
.bm-ex p { font-size: 1rem; color: var(--ink-2); }
.bm-ex-pics {
  list-style: none; margin: 2px 0 16px; padding: 10px; display: grid; gap: 6px;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px;
}
.bm-ex-pics li {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 4px 3px 3px;
  border: 2px solid #8A99A6; border-radius: 8px 8px 8px 3px; background: #FFFFFF; color: #15222E;
  font-size: .78rem; font-weight: 800; line-height: 1.1; text-align: center;
}
.bm-ex-pics li span { overflow-wrap: normal; hyphens: none; }
.bm-ex-pics img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.bm-ex-pics [data-color="teal"] { background: #E2F0F4; border-color: #0F6E8C; }
.bm-ex-pics [data-color="things"] { background: #FDEBD9; border-color: #D9711C; }
.bm-ex-pics [data-color="actions"] { background: #E2F4E8; border-color: #2E9A57; }
.bm-ex-pics [data-color="social"] { background: #FBE5ED; border-color: #CF4772; }
.bm-ex-pics [data-color="describe"] { background: #E1EDFA; border-color: #2D7CC9; }
.bm-ex-pics [data-color="people"] { background: #FFF2C7; border-color: #D9A300; }
.bm-ex-pics [data-color="little"] { background: #EFE7F9; border-color: #8656C2; }
.bm-ex-pics [data-color="gray"] { background: #EEF1F3; border-color: #6B7A86; }
.bm-ex-open { margin: auto 0 0; }
.bm-ex-print { margin: 10px 0 0; font-size: 1rem; }
/* Routines on the visual schedule maker: eight steps each, so wider cards, and three across on phones */
.bm-routines { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
@media (max-width: 520px) { .bm-routines .bm-ex-pics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- Printing: only the board, at the paper size chosen in the maker, each page on its own sheet ---- */
#bm-print { display: none; }
@media print {
  html.js body > :not(#bm-print) { display: none !important; }
  html.js, html.js body { background: #FFFFFF !important; margin: 0 !important; padding: 0 !important; }
  html.js #bm-print { display: block !important; }
  #bm-print .bm-sheet { aspect-ratio: auto; border-radius: 0; box-shadow: none; overflow: hidden; break-inside: avoid; }
  #bm-print .bm-sheet + .bm-sheet { break-before: page; }
  .bm-hint, .bm-badges, .bm-spot-handle { display: none !important; }
}

/* The site's header stays at the top of tall windows (site.css, 68 px + its line): the app's top bar and the panels
   beside the board stop under it, so they are never covered. */
@media (min-height: 560px) {
  .bm-appbar { position: sticky; top: 69px; }
}
@media (min-height: 560px) and (min-width: 1040px) { #bm-editor { top: 69px; height: calc(100vh - 69px); max-height: calc(100vh - 69px); } }
@media (min-height: 560px) and (min-width: 1600px) { #bm-opts { top: 69px; height: calc(100vh - 69px); max-height: calc(100vh - 69px); } }
/* Phones on their side and other short windows: the editor bar and the pages share one row (the app's one-row bar). */
@media (max-height: 480px) {
  .bm-stage { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .bm-stage > * { grid-column: 1 / -1; }
  .bm-stage > .bm-bar { grid-column: 1; }
  .bm-stage > .bm-pages { grid-column: 2; padding-top: 8px; }
  .bm-status { padding-top: 2px; }
}
