/* Bench blast design — on top of calc.css */
main.bl .tabs { grid-template-columns: repeat(3, 1fr); }
main.bl .stage-bar { justify-content: flex-start; gap: 8px; flex-wrap: wrap; }
main.bl .stage-bar .hist { margin-left: auto; }
#view { display: block; width: 100%; height: auto; user-select: none; touch-action: none; }
#view .hit, .fb-chart .hit { fill: transparent; stroke: none; }
#view .handle, .fb-chart .handle { cursor: grab; }
#view .handle.hx, .fb-chart .handle.hx { cursor: ew-resize; }
#view .handle.hy { cursor: ns-resize; }
#view .handle .knob, .fb-chart .handle .knob { fill: var(--surface); stroke: var(--sel); stroke-width: 1.8; }
#view .handle:hover .knob, #view .handle:focus .knob, .fb-chart .handle:hover .knob, .fb-chart .handle:focus .knob { fill: var(--sel); }
#vibChart, #burdenChart { touch-action: none; }

/* plan */
.bl-rock { fill: var(--fill-1); stroke: none; }
.bl-crest { fill: none; stroke: var(--steel-700); stroke-width: 2.2; stroke-linecap: round; }
.bl-hole { stroke: var(--halo); stroke-width: 1.2; }
.bl-hole.hot { stroke: var(--bad); stroke-width: 2; }
.bl-dim { fill: none; stroke: var(--x-8f979f, #8f979f); stroke-width: 1; stroke-dasharray: 3 3; }
.bl-axt { font-size: 11px; fill: var(--text-3); }
.bl-name { font-size: 12.5px; font-weight: 600; fill: var(--text); }
.bl-role { font-size: 11px; fill: var(--text-3); }
.bl-nm { cursor: text; }
.bl-nm:hover .bl-name, .bl-nm:focus .bl-name { fill: var(--sel); }
.bl-nm:focus { outline: none; }

/* section */
.bl-secrock { fill: var(--fill-1); stroke: var(--steel-700); stroke-width: 1.4; stroke-linejoin: round; }
.bl-floor { fill: none; stroke: var(--x-8f979f, #8f979f); stroke-width: 1; stroke-dasharray: 5 4; }
.bl-stem { fill: var(--steel-400); stroke: var(--steel-650); stroke-width: .8; }
.bl-charge { fill: var(--weld); stroke: var(--warn); stroke-width: .8; }

/* pills */
#view .pill rect { fill: var(--surface); stroke: var(--steel-300); }
#view .pill text { font-size: 11.5px; font-weight: 500; fill: var(--text-2); font-variant-numeric: tabular-nums; }
#view .pill.ch rect { stroke: color-mix(in srgb, var(--warn) 50%, transparent); } #view .pill.ch text { fill: var(--x-8a5a0e, #8a5a0e); font-weight: 600; }
#view .pill.hot rect { stroke: color-mix(in srgb, var(--bad) 50%, transparent); } #view .pill.hot text { fill: var(--x-b0321f, #b0321f); font-weight: 600; }
#view .pill.editable { cursor: text; }
#view .pill.editable:hover rect, #view .pill.editable:focus rect { stroke: var(--sel); stroke-width: 1.4; }
#view .pill.editable:focus { outline: none; }

/* editors in the drawing */
.stage { position: relative; }
.bl-edit { position: absolute; transform: translate(-50%, -50%); z-index: 5; display: flex; align-items: center; gap: 4px; background: var(--surface); border: 1.5px solid var(--sel); border-radius: 9px; padding: 2px 8px 2px 4px; box-shadow: 0 6px 18px rgba(20, 22, 28, .14); }
.bl-edit input { width: 82px; border: 0; outline: none; font: inherit; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; padding: 3px 2px; background: transparent; color: inherit; }
.bl-edit-name input { width: 180px; text-align: center; }
.bl-edit span { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }

/* live strip and flags */
.bl-live { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; min-height: 38px; align-items: center; }
.bl-live b { font-weight: 500; color: var(--text-3); margin-right: 5px; }
.bl-flags { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.bl-flags span { font-size: 11.5px; color: var(--text-3); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.bl-flags span.bl-err { color: var(--bad-ink, #b0321f); border-color: color-mix(in srgb, var(--bad) 35%, transparent); white-space: normal; }

/* panel */
.bl-seg { margin-bottom: 6px; }
.bl-seg button { white-space: normal; line-height: 1.25; }
.panel-body .btn.small { margin: 4px 0 6px; white-space: normal; text-align: left; line-height: 1.3; }
input.bad { border-color: var(--bad) !important; }

/* summary */
.bl-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bl-big { font-weight: 600; }
.bl-say { display: block; margin-top: 8px; font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.bl-tag { display: inline-flex; align-items: center; font-size: 10.5px; line-height: 1; color: var(--text-3); border: 1px solid var(--line); border-radius: 999px; padding: 2px 7px; margin-left: 4px; }

/* charts */
.bl-ppv { fill: none; stroke: var(--moment); stroke-width: 2; }
.bl-lim { fill: none; stroke: var(--bad); stroke-width: 1.6; stroke-dasharray: 6 4; }
.bl-ok { fill: color-mix(in srgb, var(--good) 7%, transparent); stroke: none; }
.bl-dline { fill: none; stroke: var(--steel-500); stroke-width: 1; stroke-dasharray: 3 3; }
.bl-dot { stroke: var(--halo); stroke-width: 1.6; }
.bl-lppv { fill: var(--x-2c4a91, #2c4a91); }
.bl-llim { fill: var(--x-b0321f, #b0321f); }
.bl-c1 { fill: none; stroke: var(--text-2); stroke-width: 2; } .bl-c1-l { fill: var(--text-2); }
.bl-c2 { fill: none; stroke: var(--warn); stroke-width: 2; } .bl-c2-l { fill: var(--x-8a5a0e, #8a5a0e); }
.bl-c3 { fill: none; stroke: var(--moment); stroke-width: 2; stroke-dasharray: 7 4; } .bl-c3-l { fill: var(--x-2c4a91, #2c4a91); }
.bl-cpill rect { fill: var(--surface); stroke: var(--steel-300); }
.bl-cpill text { font-size: 11.5px; font-weight: 600; fill: var(--text); font-variant-numeric: tabular-nums; }
main.bl .fb-chart text { paint-order: stroke; stroke: var(--surface, #fff); stroke-width: 3px; stroke-linejoin: round; }

@media (max-width: 760px) { .bl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* margins: the detail column wraps so the table fits its card at 1000 px */
@media (min-width: 761px) { #checks td.note { white-space: normal; min-width: 12em; line-height: 1.35; } }

/* theme-auto:start · generated by scripts/theme/hexmap.py: dark values (the rule of scripts/theme/colour.py) for
   colours that are not tokens, written as var(--x-rrggbb, #rrggbb): light is the fallback, unchanged */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --x-2c4a91: #81a0e0; --x-6e7177: #85827f; --x-8a5a0e: #c89e6a; --x-8f979f: #61676d; --x-b0321f: #ef8470;
    --x-e0a84a: #f1c37b;
  }
}
@media screen {
  :root[data-theme="dark"] {
    --x-2c4a91: #81a0e0; --x-6e7177: #85827f; --x-8a5a0e: #c89e6a; --x-8f979f: #61676d; --x-b0321f: #ef8470;
    --x-e0a84a: #f1c37b;
  }
}
/* theme-auto:end */
