/* The bench as a shot's overview (bench_overview.py; vault/136 piece 4, mock
   r3-b; vault/145b): the doors under OPEN IN, the Blender menu, the
   background rung that opens Blocking, and the blocking rung's presses. */
/* The head as the mock draws it (vault/146 bench-rung): the shot's
   ‹ 1.80 › on the left and OPEN IN with its doors right-aligned on the
   SAME row, the steps level with the doors under the caption; the grammar
   meta right-aligned under the doors, inside the head, so nothing stands
   between the head and the description. At every size; scoped as the
   dock's own head rule is (bench_dock_style.html), so it wins. The window
   column (full size, close) is empty on the shot page. */
:is(#shot-dock, #lb-bench, .bench) .bench-head:has(.bench-bl) { grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  grid-template-areas: "id . doors acts window" "meta meta meta meta ."; align-items: end; row-gap: .3rem; }
:is(#shot-dock, #lb-bench, .bench) .bench-head:has(.bench-bl) .bench-doors { flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
:is(#shot-dock, #lb-bench, .bench) .bench-head:has(.bench-bl) .bench-meta { justify-self: end; text-align: right; max-width: 100%; }
:is(#shot-dock, #lb-bench, .bench) .bench-head:has(.bench-bl) .bench-meta:empty { display: none; }
:is(#shot-dock, #lb-bench, .bench) .bench-head:has(.bench-bl) .bench-window { align-self: end; }
/* Narrow (the shot page's bench, the timeline's dock, ~370 px): the id
   and the three doors fill the row, so the doors drop their icons and
   tighten as the mock draws them, and full size / close (and the dock's
   clip presses) go to the meta's row, right. */
@container bench (max-width: 760px) {
  :is(#shot-dock, #lb-bench, .bench) .bench-head:has(.bench-bl) {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "id doors doors doors" "meta meta acts window"; column-gap: .4rem; }
  :is(#shot-dock, #lb-bench, .bench) .bench-head:has(.bench-bl) .bench-doors { justify-self: end; }
  :is(#shot-dock, #lb-bench, .bench) .bench-head:has(.bench-bl) .bench-meta { align-self: center; }
  :is(#shot-dock, #lb-bench, .bench) .bench-head:has(.bench-bl) .bench-window { padding-left: .4rem; }
  :is(#shot-dock, #lb-bench, .bench) .bench-openin-row { gap: .25rem; flex-wrap: nowrap; align-items: center; }
  :is(#shot-dock, #lb-bench, .bench) .bench-openin-row .bench-door { padding: 0 .45rem; gap: .3rem;
    font-size: .62rem; letter-spacing: .05em; }
  :is(#shot-dock, #lb-bench, .bench) .bench-openin-row .bench-door > .icon:first-child { display: none; }
}
/* the doors as the mock draws them (vault/146 bench-rung): small mono caps */
.bench-door { display: inline-flex; align-items: center; gap: .4rem; height: 1.75rem; padding: 0 .6rem;
  font-family: var(--mono, "SF Mono", Menlo, monospace); font-weight: 600;
  font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.bench-door .icon { width: .9rem; height: .9rem; flex: none; }
.bench-bl { position: relative; }
.bench-bl > summary { list-style: none; cursor: pointer; }
.bench-bl > summary::-webkit-details-marker { display: none; }
.bench-bl .bench-bl-caret { width: .8rem; height: .8rem; transform: rotate(90deg); opacity: .7; }
.bench-bl-m { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 13rem; padding: 6px;
  display: flex; flex-direction: column; border-radius: 9px; border: 1px solid var(--rule, rgba(255,255,255,.14));
  background: #1C1C1C; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.bench-bl-m button, .bench-bl-m label { display: block; text-align: left; border: 0; background: none; cursor: pointer;
  padding: .55rem .7rem; border-radius: 6px; font: inherit; font-size: .92rem; color: var(--paper-ink, #EFE6D6);
  text-transform: none; letter-spacing: 0; height: auto; }
.bench .bench-bl-m button, .bench .bench-bl-m label { appearance: none; box-shadow: none; background: none;
  border: 0; min-height: 0; font-weight: 400; }
.bench .bench-bl-m button:hover, .bench .bench-bl-m label:hover { background: rgba(255,255,255,.06); }
.bench-bl-sheet { margin: .6rem 0 0; padding: .7rem .85rem; border-radius: 9px; font-size: .9rem; line-height: 1.45;
  background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.bench-bl-sheet ul { margin: .4rem 0; padding-left: 1.1rem; }
.bench-bl-sheet .dim { margin: .3rem 0 0; }
.bench-bl-lead { display: block; margin-top: .5rem; }
.bench-bl-acts { display: flex; gap: .5rem; margin-top: .6rem; }
.bench-rung--door .bench-rung-pic { background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 8px, rgba(255,255,255,.015) 8px 16px); }

/* OPEN IN over the head's doors (vault/145b rule 1, mock bench-rung): a
   small mono caption, the doors in a row under it, both to the right. */
.bench-openin { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; margin-left: auto; }
.bench-openin-h { font-family: var(--mono, "SF Mono", Menlo, monospace); font-size: .62rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim, #9a9a9a); cursor: help; }
.bench-openin-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }

/* The blocking rung (vault/145 mock): not blocked yet, one Block in a
   dashed picture box; with a layout, Clay then Generate, last. */
.bench-blockbox { aspect-ratio: 16 / 9; display: grid; place-items: center; border-radius: 8px;
  border: 1.5px dashed rgba(255,255,255,.22); }
.bench-layout-acts { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.bench-layout-acts .bench-generate { margin-left: auto; }
.bench-say--failed { color: var(--warn, #e8875a); }
/* the mock's words: the presses read as words (sans, sentence case), the
   doors as the small mono caps of OPEN IN */
.bench-layout-acts .btn, .bench-blockbox .btn { font-family: var(--sans, "Barlow", "Helvetica Neue", Arial, sans-serif); font-weight: 600;
  font-size: .9rem; text-transform: none; letter-spacing: 0; }
/* narrow (the dock, the drawer): picture, verdict and takes first, the
   presses last (vault/144 picture first; the mock) */
@container bench (max-width: 760px) {
  .bench-say.bench-say--layout { order: 7; }
  .bench-make.bench-layout-acts { order: 7; }
}
