/* Stripboard (module "stripboard"). Prefix: sb-. Builds on the shared .strip / .daybreak / .banner-strip. */

.sb-pane {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: var(--s-4) var(--s-5) var(--s-6);
}
.sb-anchor { display: inline-flex; }
.sb-inline-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-2);
}
.sb-help { margin-top: var(--s-3); }

/* ---------------------------------------------------------------- legend */

.sb-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-bottom: var(--s-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-2);
}
.sb-legend .legend-item { display: inline-flex; align-items: center; gap: 6px; }
.sb-swatch {
  width: 18px;
  height: 12px;
  border: var(--bw-thin) solid var(--line);
  border-radius: 3px;
  background: linear-gradient(90deg, var(--c) 0 6px, var(--c-soft) 6px);
}
.sb-legend-sum { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; }
.sb-removed-count { color: var(--danger-text); }

/* ---------------------------------------------------------------- board */

.sb-board {
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  overflow: clip;
  min-width: 620px;
}
.sb-head {
  position: sticky;
  top: calc(-1 * var(--s-4));
  z-index: 5;
  display: grid;
  grid-template-columns: var(--sb-cols);
  height: 28px;
  background: var(--surface-sunken);
  border-bottom: var(--bw) solid var(--line);
  font: 700 10.5px/28px var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.sb-h { padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-h.is-right { text-align: right; }
.sb-h-num { text-align: center; }
.sb-list { min-height: 40px; }
.sb-list.dnd-over { background: var(--amber-soft); }

.sb-row.strip {
  position: relative;
  display: grid;
  grid-template-columns: var(--sb-cols);
  align-items: stretch;
  height: var(--sb-row-h);
  min-height: 0;
  padding: 0;
  font-size: 13px;
  color: var(--text);
}
.sb-row.strip:hover,
.sb-row.strip:focus-within,
.sb-day:hover,
.sb-banner:hover { z-index: 3; }
.sb-row.strip.is-selected { z-index: 2; box-shadow: inset 0 0 0 2px var(--focus), inset 0 0 0 4px var(--c-soft); }
.sb-row.strip:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.sb-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  color: var(--on-candy);
  background: var(--c);
  border-right: var(--bw-thin) solid var(--line);
  font: 800 14px/1 var(--font-ui);
  font-variant-numeric: tabular-nums;
}
.sb-part {
  padding: 1px 4px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.sb-c {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 0 8px;
  overflow: hidden;
  white-space: nowrap;
  border-left: 1px solid var(--strip-rule);
}
.sb-c.is-right { justify-content: flex-end; }
.sb-ie, .sb-dn { font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.05em; }
.sb-dn .icon { flex: none; color: var(--text-2); }
.sb-set b { flex: 0 1 auto; min-width: 5em; max-width: 62%; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.sb-set i { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-style: normal; color: var(--text-2); }
.sb-note-dot { flex: none; display: inline-flex; color: var(--text-muted); }
.sb-pages, .sb-time { font-weight: 700; font-variant-numeric: tabular-nums; }
.sb-loc { font-size: var(--fs-sm); color: var(--text-2); text-overflow: ellipsis; }
.sb-cast { gap: 3px; }
.sb-castid {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 3px;
  font: 700 10.5px/1 var(--font-ui);
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: var(--surface);
  border: var(--bw-thin) solid var(--line);
  border-radius: var(--r-pill);
}
.sb-more { font-size: var(--fs-xs); font-weight: 700; color: var(--text-2); }
.sb-warn { justify-content: center; padding: 0; }
.sb-warn-icon { display: inline-flex; color: var(--text-muted); }
.sb-warn-icon.is-hot { color: var(--danger-text); }

.sb-density-compact .sb-row.strip { font-size: 12px; }
.sb-density-compact .sb-tab { font-size: 12.5px; }
.sb-density-compact .sb-castid { min-width: 16px; height: 16px; font-size: 9.5px; }
.sb-density-roomy .sb-set { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; }
.sb-density-roomy .sb-set b, .sb-density-roomy .sb-set i { max-width: 100%; }
.sb-density-roomy .sb-set i { font-size: var(--fs-sm); }

/* the "+" that inserts below a row */
.sb-gap {
  position: absolute;
  left: 22px;
  bottom: -9px;
  z-index: 4;
  display: none;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  color: var(--on-candy);
  background: var(--amber);
  border: var(--bw-thin) solid var(--line);
  border-radius: 50%;
  box-shadow: 1px 1px 0 0 var(--shadow-color);
  cursor: pointer;
}
.sb-row:hover > .sb-gap,
.sb-row:focus-within > .sb-gap,
.sb-day:hover > .sb-gap,
.sb-day:focus-within > .sb-gap,
.sb-banner:hover > .sb-gap,
.sb-banner:focus-within > .sb-gap { display: grid; }
.sb-gap:hover { transform: scale(1.12); }

/* removed from script */
.sb-row.strip.sb-removed {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  color: var(--text-2);
  background: repeating-linear-gradient(-45deg, var(--gray-soft) 0 8px, var(--surface) 8px 16px);
}
.sb-removed .sb-tab { opacity: 0.6; align-self: stretch; }
.sb-removed-text { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 10px; overflow: hidden; white-space: nowrap; }
.sb-removed-text s { overflow: hidden; text-overflow: ellipsis; }
.sb-removed > .btn { margin-right: 6px; }

/* day breaks */
.sb-day.daybreak {
  position: relative;
  min-height: max(32px, var(--sb-row-h));
  gap: 8px;
  padding: 0 6px 0 12px;
  cursor: grab;
}
.sb-day.is-locked { cursor: default; }
.sb-day.is-selected { box-shadow: inset 0 0 0 2px var(--focus); z-index: 2; }
.sb-day:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.sb-day-title { flex: none; font-weight: 600; }
.sb-day-facts {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font: 600 12.5px/1 var(--font-ui);
  font-variant-numeric: tabular-nums;
}
.sb-day-facts > span { flex: none; }
.sb-day-facts > span::before { content: "\2014"; margin: 0 6px; opacity: 0.6; }
.sb-day-meter {
  flex: none;
  width: 52px;
  height: 7px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--daybreak-fg) 22%, transparent);
}
.sb-day-meter > span { display: block; height: 100%; background: var(--amber); border-radius: inherit; }
.sb-day-meter > span.is-over { background: var(--red); }
.sb-day-chips { display: flex; gap: 4px; flex: none; }
.sb-flag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 19px;
  padding: 0 7px;
  font: 800 10.5px/1 var(--font-ui);
  color: var(--on-candy);
  background: var(--gray);
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.sb-flag.is-over { background: var(--red); }
.sb-flag.is-under { background: var(--cyan); }
.sb-flag.is-warn { background: var(--amber); }
.sb-day-note {
  flex: 0 1 180px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: italic 500 12px/1 var(--font-ui);
  opacity: 0.85;
}
.sb-day .iconbtn { color: var(--daybreak-fg); }
.sb-day .iconbtn:hover,
.sb-day .iconbtn.is-active { background: color-mix(in srgb, var(--daybreak-fg) 18%, transparent); color: var(--daybreak-fg); }

/* banners */
.sb-banner.banner-strip {
  position: relative;
  min-height: var(--sb-row-h);
  gap: 6px;
  padding: 0 6px 0 12px;
  cursor: grab;
}
.sb-banner.is-selected { box-shadow: inset 0 0 0 2px var(--focus); z-index: 2; }
.sb-banner:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.sb-banner-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 60%;
  height: 24px;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  border: var(--bw-thin) solid var(--line);
  border-radius: var(--r-pill);
}
.sb-banner-label .inline-edit { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-banner-time { margin-left: auto; width: 104px; }
.sb-banner .iconbtn { color: var(--on-candy); }

.sb-openday {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 10px 8px 14px;
  font-size: var(--fs-sm);
  color: var(--text-2);
  background: var(--surface-2);
  border-top: var(--bw) dashed var(--text-muted);
}
.sb-openday > span { flex: 1 1 240px; min-width: 0; }
.sb-drop-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--s-6);
  color: var(--text-2);
  font-weight: 600;
}

/* ---------------------------------------------------------------- aside: inspector and boneyard */

.sb-aside { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.sb-tray-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sb-tray-title { font: 600 17px/1.2 var(--font-display); min-width: 0; }
.sb-tray-note { margin: 4px 0 8px; font-size: var(--fs-xs); line-height: 1.4; color: var(--text-2); }

.sb-inspect {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-top: 4px solid var(--c, var(--amber));
  border-radius: var(--r-md);
}
.sb-inspect .sb-tray-note { margin: 0; }
.sb-inspect-num {
  flex: none;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 3px 8px;
  font: 800 15px/1 var(--font-ui);
  color: var(--on-candy);
  background: var(--c);
  border: var(--bw-thin) solid var(--line);
  border-radius: var(--r-xs);
}
.sb-inspect-num small { font-size: 10px; }
.sb-inspect-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.sb-facts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--fs-xs); color: var(--text-2); font-variant-numeric: tabular-nums; }
.sb-facts b { color: var(--text); }
.sb-mini-checks { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.sb-mini-checks li { display: flex; align-items: flex-start; gap: 6px; font-size: var(--fs-xs); line-height: 1.35; color: var(--text-2); }
.sb-mini-checks li .icon { flex: none; margin-top: 1px; }
.sb-mini-checks li[data-level="warn"] .icon { color: var(--warn-text); }
.sb-mini-checks li[data-level="error"] .icon { color: var(--danger-text); }

.sb-bones { border-radius: var(--r-md); }
.sb-bones.dnd-over { outline: var(--bw) dashed var(--amber-ink); outline-offset: 4px; background: var(--amber-soft); }
.sb-fresh {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 4px 4px 4px 10px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text);
  background: var(--pink-soft);
  border-radius: var(--r-sm);
}
.sb-fresh > span { flex: 1 1 auto; }
.sb-fresh .icon { color: var(--pink-ink); }
.sb-bone-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.sb-bone {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: stretch;
  overflow: hidden;
  color: var(--text);
  background: var(--c-soft);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  cursor: grab;
}
.sb-bone:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 0 var(--shadow-color); }
.sb-bone.is-dragging { opacity: 0.5; }
.sb-bone-tab { background: var(--c); border-right: var(--bw-thin) solid var(--line); }
.sb-bone-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 6px 8px 7px; }
.sb-bone-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; }
.sb-bone-top b { font: 800 14px/1 var(--font-ui); letter-spacing: 0; }
.sb-bone-pages { margin-left: auto; font-size: 12.5px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.sb-bone-set { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-bone-cast { display: flex; flex-wrap: wrap; gap: 3px; }
.sb-bone-add { align-self: center; margin-right: 4px; }
.sb-bones-empty { display: flex; align-items: center; gap: 8px; padding: var(--s-3); font-size: var(--fs-sm); font-weight: 600; color: var(--ok-text); background: var(--green-soft); border-radius: var(--r-sm); }

/* ---------------------------------------------------------------- dialogs */

.sb-auto { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: var(--s-5); }
.sb-auto-side, .sb-auto-main { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.sb-auto-h { display: flex; align-items: center; gap: 6px; margin: 0; font: 600 15px/1.2 var(--font-display); }
.sb-indent { margin: -4px 0 0 28px; }
.sb-keys { display: flex; flex-direction: column; gap: 5px; margin: 4px 0 6px; padding: 0; list-style: none; }
.sb-key {
  display: grid;
  grid-template-columns: 16px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 3px 4px 3px 6px;
  background: var(--surface);
  border: var(--bw-thin) solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  cursor: grab;
}
.sb-key.is-off { box-shadow: none; border-color: var(--border); }
.sb-key.is-off .sb-key-hint { opacity: 0.6; }
.sb-key-grip { display: inline-flex; color: var(--text-muted); }
.sb-key-hint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-xs); color: var(--text-2); }
.sb-key-btns { display: inline-flex; }
.sb-auto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.sb-auto-locked { display: flex; align-items: flex-start; gap: 6px; margin-top: 4px; padding: 8px 10px; font-size: var(--fs-xs); color: var(--text-2); background: var(--gray-soft); border-radius: var(--r-sm); }
.sb-auto-locked .icon { flex: none; margin-top: 1px; }
.sb-auto-sum { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: var(--fs-md); background: var(--amber-soft); border-radius: var(--r-sm); }
.sb-auto-sum b { font: 600 20px/1 var(--font-display); }
.sb-auto-days { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--r-sm); max-height: 48vh; overflow: auto; }
.sb-auto-day {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 56px 62px;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}
.sb-auto-day:last-child { border-bottom: 0; }
.sb-auto-day.is-locked { background: var(--gray-soft); }
.sb-auto-dayno { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; }
.sb-auto-scenes { display: flex; flex-wrap: wrap; gap: 3px; }
.sb-auto-pp, .sb-auto-time { text-align: right; font-weight: 700; }
.sb-auto-pp.is-over, .sb-auto-time.is-over { color: var(--danger-text); }

.sb-settings .sb-auto-h { margin-bottom: 2px; }
.sb-weekdays { display: flex; gap: 4px; flex-wrap: wrap; }
.sb-wd {
  min-width: 40px;
  height: 28px;
  padding: 0 6px;
  font: 700 12px/1 var(--font-ui);
  color: var(--text);
  background: var(--surface);
  border: var(--bw-thin) solid var(--line);
  border-radius: var(--r-xs);
  cursor: pointer;
}
.sb-wd.is-off { color: var(--text-muted); background: var(--surface-sunken); text-decoration: line-through; border-style: dashed; }
.sb-holidays { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.sb-better { font-weight: 800; color: var(--ok-text); }
.sb-cmp-days { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sb-cmp-days li { display: grid; grid-template-columns: 60px minmax(0, 1fr); align-items: center; gap: 8px; }
.sb-cmp-no { font-size: var(--fs-sm); font-weight: 700; }
.sb-cmp-bars { display: flex; flex-direction: column; gap: 2px; }
.sb-cmp-bar {
  display: block;
  min-width: 2px;
  height: 15px;
  padding: 0 5px;
  font: 700 10.5px/15px var(--font-ui);
  color: var(--on-candy);
  white-space: nowrap;
  background: var(--c);
  border-radius: 3px;
}

.sb-checks ul { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 0; padding: 0; list-style: none; max-height: 52vh; overflow: auto; }
.sb-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  font: 500 var(--fs-sm)/1.35 var(--font-ui);
  color: var(--text);
  text-align: left;
  background: none;
  border: 0;
  border-radius: var(--r-xs);
  cursor: pointer;
}
.sb-check:hover { background: var(--hover); }
.sb-check .icon { flex: none; margin-top: 1px; color: var(--text-muted); }
.sb-check[data-level="warn"] .icon { color: var(--warn-text); }
.sb-check[data-level="error"] .icon { color: var(--danger-text); }
.sb-checks-empty { display: flex; align-items: center; gap: 10px; color: var(--ok-text); }
.sb-checks-empty p { margin: 0; color: var(--text); }

.sb-split-range { width: 100%; accent-color: var(--amber); }
.sb-split-preview { display: flex; gap: 4px; }
.sb-split-part {
  min-width: 0;
  padding: 8px;
  overflow: hidden;
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: var(--amber-soft);
  border: var(--bw-thin) solid var(--line);
  border-left: 8px solid var(--amber);
  border-radius: var(--r-xs);
}

.sb-print-modal { max-width: 1180px; width: 94vw; }
.sb-print { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--s-4); height: 72vh; min-height: 420px; }
.sb-print-side { min-width: 0; overflow: auto; padding-right: 2px; }
.sb-print-view { min-width: 0; min-height: 0; border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.sb-print-list { display: flex; flex-direction: column; gap: 6px; }
.sb-print-pick {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  color: var(--text);
  text-align: left;
  background: var(--surface);
  border: var(--bw-thin) solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.sb-print-pick > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sb-print-pick small { font-size: var(--fs-xs); color: var(--text-2); }
.sb-print-pick .icon { flex: none; margin-top: 2px; }
.sb-print-pick:hover { background: var(--hover); }
.sb-print-pick.is-active { background: var(--amber-soft); border: var(--bw-thin) solid var(--line); box-shadow: var(--shadow-sm); }

/* ---------------------------------------------------------------- day out of days */

.sb-dood { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.sb-dood-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.sb-dood-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); }
.sb-dood-legend .legend-item { display: inline-flex; align-items: center; gap: 5px; }
.sb-dood-wrap { overflow: auto; max-width: 100%; background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-sm); }
.sb-dood-table { border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); min-width: 100%; }
.sb-dood-table th, .sb-dood-table td { border-bottom: 1px solid var(--border); border-left: 1px solid var(--border); }
.sb-dood-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 6px 6px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-2);
  background: var(--surface-sunken);
  border-bottom: var(--bw) solid var(--line);
  white-space: nowrap;
}
.sb-dood-day span, .sb-dood-day small { display: block; text-align: center; }
.sb-dood-day small { font-weight: 600; color: var(--text-muted); }
.sb-dood-name {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 220px;
  padding: 6px 10px;
  text-align: left;
  background: var(--surface);
  border-left: 0 !important;
  border-right: var(--bw-thin) solid var(--line);
}
thead .sb-dood-name { z-index: 3; background: var(--surface-sunken); }
tbody .sb-dood-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.sb-dood-who { display: flex; flex-direction: column; min-width: 0; }
.sb-dood-who small { font-size: var(--fs-xs); font-weight: 500; color: var(--text-2); }
.sb-dood-cell { min-width: 46px; padding: 4px; text-align: center; }
.sb-dood-cell.is-conflict { outline: var(--bw) dashed var(--red); outline-offset: -3px; }
.sb-dood-tot { min-width: 50px; padding: 4px 10px; text-align: right; font-variant-numeric: tabular-nums; }
.sb-dood-table tbody tr:hover > * { background: var(--hover); }
.sb-code {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 20px;
  padding: 0 4px;
  font: 800 10.5px/1 var(--font-ui);
  color: var(--on-candy);
  background: var(--c);
  border: var(--bw-thin) solid var(--line);
  border-radius: 6px;
}

/* ---------------------------------------------------------------- calendar strip */

.sb-cal { display: flex; flex-direction: column; gap: var(--s-3); }
.sb-cal-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.sb-cal-row .sb-cal-card { width: 190px; }
.sb-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.sb-cal-wd { padding: 0 4px; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.sb-cal-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  min-height: 108px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.sb-cal-cell.is-off { background: repeating-linear-gradient(-45deg, var(--surface-sunken) 0 6px, var(--surface) 6px 12px); }
.sb-cal-date { font-size: var(--fs-xs); font-weight: 700; color: var(--text-2); }
.sb-cal-dark { margin: auto; font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); }
.sb-cal-card {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  background: var(--amber-soft);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
}
.sb-cal-card.is-locked { background: var(--gray-soft); }
.sb-cal-open {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  height: 100%;
  padding: 6px 26px 6px 8px;
  color: var(--text);
  text-align: left;
  background: none;
  border: 0;
  border-radius: inherit;
  cursor: pointer;
}
.sb-cal-open:hover { background: color-mix(in srgb, var(--amber) 18%, transparent); }
.sb-cal-head { display: flex; align-items: center; gap: 4px; font: 600 15px/1 var(--font-display); }
.sb-cal-scenes { display: flex; flex-wrap: wrap; gap: 3px; }
.sb-cal-scene {
  min-width: 22px;
  padding: 2px 5px;
  font: 800 11px/1.2 var(--font-ui);
  text-align: center;
  color: var(--text);
  background: var(--c-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--c);
  border-radius: 4px;
}
.sb-cal-facts { font-size: var(--fs-xs); font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.sb-cal-more {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  color: var(--text-2);
  background: none;
  border: 0;
  border-radius: var(--r-xs);
  cursor: pointer;
}
.sb-cal-more:hover { color: var(--text); background: var(--hover); }

@media (max-width: 1100px) {
  .sb-auto { grid-template-columns: minmax(0, 1fr); }
  .sb-print { grid-template-columns: minmax(0, 1fr); height: auto; }
  .sb-print-view { height: 60vh; }
}
