/* Concrete column — on top of calc.css. Colours of the drawing are tokens; light-only, like calc.css. */
main.co { --co-safe: var(--surface-2); --co-conc: var(--concrete); --co-agg: var(--x-b9b4a8, #b9b4a8); --co-czone: color-mix(in srgb, var(--moment) 16%, transparent); --co-bar: var(--steel-800); --co-ink: var(--steel-750); --co-pill: var(--surface); --co-pill-line: var(--steel-300); --co-grid: var(--fill-1); --co-plot: var(--surface); }
main.co .stage-bar { justify-content: flex-start; gap: 8px; flex-wrap: wrap; }
main.co .stage-bar .hist { margin-left: auto; }
main.co .stage-bar .seg { flex: 0 0 auto; }
#view { display: block; width: 100%; height: auto; user-select: none; touch-action: none; }
#view .hit { fill: transparent; stroke: none; }
#view .handle { cursor: grab; }
#view .handle.hx { cursor: ew-resize; }
#view .handle.hy { cursor: ns-resize; }
#view .handle .knob { fill: var(--co-pill); stroke: var(--sel); stroke-width: 1.8; }
#view .handle:hover .knob, #view .handle:focus .knob { fill: var(--sel); }

/* the section */
.co-concF { fill: var(--co-conc); }
.co-agg { fill: var(--co-agg); }
.co-conc { fill: url(#coConc); stroke: none; }
.co-outline { fill: none; stroke: var(--co-ink); stroke-width: 1.3; stroke-linejoin: round; }
.co-czone { fill: var(--co-czone); }
.co-link { fill: none; stroke: var(--slate); }
.co-bar { fill: var(--co-bar); stroke: none; }
.co-na { stroke: var(--moment); stroke-width: 1; stroke-dasharray: 8 3 1.5 3; }
.co-dim { fill: none; stroke: var(--steel-550); stroke-width: .9; }
.co-dimh { fill: var(--steel-550); }
.co-ext { fill: none; stroke: var(--steel-400); stroke-width: .8; }
.co-axis { stroke: var(--steel-550); stroke-width: .8; }
.co-strain { fill: color-mix(in srgb, var(--moment) 10%, transparent); stroke: var(--moment); stroke-width: 1.4; stroke-linejoin: round; }
.co-dot { fill: var(--moment); }
.co-ey { stroke: var(--warn); stroke-width: 1.4; }
.co-block { fill: color-mix(in srgb, var(--moment) 22%, transparent); stroke: var(--moment); stroke-width: 1.2; }
.co-force line { stroke: var(--text-2); stroke-width: 1.8; }
.co-force path.hd { fill: var(--text-2); stroke: none; }
.co-force.co-thin line { stroke-width: 1.3; }
.co-sec { font-size: 11px; font-weight: 600; fill: var(--text-2); letter-spacing: .04em; }
.co-name { font-size: 12.5px; font-weight: 600; fill: var(--text); }
.co-role { font-size: 11px; fill: var(--text-3); }
.co-nm { cursor: text; }
.co-nm:hover .co-name, .co-nm:focus .co-name { fill: var(--sel); }
.co-nm:focus { outline: none; }

/* pills */
#view .pill rect { fill: var(--co-pill); stroke: var(--co-pill-line); }
#view .pill text { font-size: 11.5px; font-weight: 500; fill: var(--text-2); font-variant-numeric: tabular-nums; }
#view .pill.dimv rect { stroke: var(--steel-200); }
#view .pill.load rect { stroke: color-mix(in srgb, var(--load) 35%, transparent); } #view .pill.load text { fill: var(--load-ink); font-weight: 600; }
#view .pill.desig rect { stroke: color-mix(in srgb, var(--sel) 45%, transparent); } #view .pill.desig text { fill: var(--x-1e4fbf, #1e4fbf); font-weight: 600; }
#view .pill.bars rect { stroke: color-mix(in srgb, var(--steel-800) 45%, transparent); } #view .pill.bars text { fill: var(--text); font-weight: 600; }
#view .pill.na rect { stroke: color-mix(in srgb, var(--moment) 45%, transparent); } #view .pill.na text { fill: var(--x-2f4a8a, #2f4a8a); }
#view .pill.force text { fill: var(--text-2); font-weight: 600; }
#view .pill.good rect { stroke: color-mix(in srgb, var(--good) 45%, transparent); } #view .pill.good text { fill: var(--good-ink); font-weight: 600; }
#view .pill.warnp rect { stroke: color-mix(in srgb, var(--warn) 55%, transparent); } #view .pill.warnp text { fill: var(--warn-ink); 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; }
.co-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); }
.co-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: var(--text); }
.co-edit-name input { width: 180px; text-align: center; }
.co-edit span { font-size: 11.5px; color: var(--text-3); }

/* live strip and flags */
.co-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; }
.co-live b { font-weight: 500; color: var(--text-3); margin-right: 5px; }
.co-live i { font-style: normal; color: var(--text-3); }
.co-flags { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.co-flags span { font-size: 11.5px; color: var(--text-3); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }

/* panel */
.co-seg { margin-bottom: 6px; }
.co-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 6px; }
.co-chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 2px 9px; font-size: 12px; color: var(--text-2); cursor: pointer; font-variant-numeric: tabular-nums; }
.co-chip:hover { border-color: var(--line-2); }
.co-chip.on { border-color: var(--text); color: var(--text); font-weight: 500; }
.co-no { animation: coNo .5s; }
@keyframes coNo { 25%, 75% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .co-no { animation: none; } }
#panel input.bad { color: var(--bad); }
#panel .num:has(input.bad) input { border-color: var(--bad); }
.co-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); margin: 6px 0 2px; cursor: pointer; }
.co-check input { margin: 0; }
#panel.fade-b { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent); }
#panel.fade-t { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28px); mask-image: linear-gradient(to bottom, transparent, #000 28px); }
#panel.fade-t.fade-b { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 28px, #000 calc(100% - 32px), transparent); }

/* summary */
.co-say { margin-top: 6px; font-size: 12.5px; color: var(--text-2); line-height: 1.4; max-width: 34ch; }
.co-tag { display: inline-block; font-size: 10.5px; color: var(--text-3); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; margin-left: 4px; white-space: nowrap; }

/* chart */
#nmchart, #mmchart { touch-action: none; user-select: none; }
#nmchart .ch-bg, #mmchart .ch-bg { fill: var(--co-plot); }
#nmchart .ch-grid, #mmchart .ch-grid { fill: var(--co-grid); }
#nmchart .ch-ok, #mmchart .ch-ok { fill: color-mix(in srgb, var(--good) 7%, transparent); }
#nmchart .ch-pill, #mmchart .ch-pill { fill: var(--co-plot); stroke: var(--sel); }
.co-mline { fill: none; stroke: var(--moment); stroke-width: 1.8; stroke-linejoin: round; }
.co-mdot { fill: var(--moment); }
.co-req { stroke: var(--text); stroke-width: 1.2; stroke-dasharray: 4 3; }
.co-lim { stroke: var(--steel-550); stroke-width: 1; stroke-dasharray: 2 3; }
.co-lm { fill: var(--moment); } .co-lr { fill: var(--text); } .co-ll { fill: var(--text-3); font-size: 11px; }

#checks td.note { white-space: normal; min-width: 200px; line-height: 1.4; }
/* phones: the margins as stacked cards (no sideways scroll) */
@media (max-width: 760px) {
  #checks thead { display: none; }
  #checks, #checks tbody { display: block; width: 100%; }
  #checks tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
  #checks td { display: block; border: 0; padding: 0; text-align: left; white-space: normal; }
  #checks td.chk { grid-column: 1; grid-row: 1; }
  #checks td:nth-child(5) { grid-column: 2; grid-row: 1; align-self: center; }
  #checks td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 12.5px; }
  #checks td:nth-child(3) { grid-column: 2; grid-row: 2; font-size: 12.5px; text-align: right; }
  #checks td:nth-child(2)::before { content: "actual "; color: var(--text-3); }
  #checks td:nth-child(3)::before { content: "limit "; color: var(--text-3); }
  #checks td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; font-size: 12px; color: var(--text-3); min-width: 0; }
}
@media print { .co-edit { display: none !important; } }

.co-concF { fill: var(--co-conc); } .co-agg { fill: var(--co-agg); }
.co-conc { fill: url(#coConc); }
.co-outline { fill: none; stroke: var(--co-ink); stroke-width: 1.3; }
.co-czone { fill: var(--co-czone); }
.co-na { stroke: var(--moment); stroke-width: 1.1; stroke-dasharray: 8 3 1.5 3; }
.co-link { fill: none; stroke: var(--slate); }
.co-bar { fill: var(--co-bar); }
#view .handle.co-barh { cursor: move; }
#view .handle.co-barh:hover .co-bar, #view .handle.co-barh:focus .co-bar { fill: var(--sel); }
#view .handle.hm { cursor: move; }
#view .handle .knob.ring { fill: none; stroke-width: 1.4; }
.co-lp { fill: color-mix(in srgb, var(--load) 14%, transparent); stroke: var(--load); stroke-width: 1.4; }
.co-lpx { stroke: var(--load); stroke-width: 1.4; }
.co-axis { stroke: var(--steel-550); stroke-width: .8; stroke-dasharray: 8 3 1.5 3; fill: none; }
.co-axT { font-size: 11.5px; font-style: italic; fill: var(--text-3); }
.co-dim { fill: none; stroke: var(--steel-550); stroke-width: .9; } .co-dimh { fill: var(--steel-550); } .co-ext { fill: none; stroke: var(--steel-400); stroke-width: .8; }
.co-sup { fill: var(--surface); stroke: var(--co-ink); stroke-width: 1; } .co-ground { stroke: var(--co-ink); stroke-width: 1.2; }
.co-colE { fill: url(#coConc); stroke: var(--co-ink); stroke-width: 1.1; }
.co-bow { fill: none; stroke: var(--moment); stroke-width: 1.2; stroke-dasharray: 4 3; }
.co-load line { stroke: var(--load); stroke-width: 1.8; } .co-load path.hd { fill: var(--load); stroke: none; }
.co-lab { font-size: 12px; color: var(--text-3); margin: 8px 0 2px; }
.co-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 1100px) { .co-two { grid-template-columns: minmax(0, 1fr); } }
.nm-safe { fill: var(--co-safe); }
.nm-curve { fill: none; stroke: var(--co-ink); stroke-width: 1.6; stroke-linejoin: round; }
.nm-nom { fill: none; stroke: var(--steel-550); stroke-width: 1; stroke-dasharray: 4 3; }
.nm-zero { fill: var(--steel-400); }
.nm-reach { stroke: var(--text-2); stroke-width: 1; stroke-dasharray: 3 3; }
.nm-capdot { fill: var(--text-2); }
.nm-second { stroke: var(--load); stroke-width: 1.4; }
.nm-pt.ok { fill: var(--good); } .nm-pt.bad { fill: var(--bad); }
.nmdrag, .mmdrag { cursor: move; }
.nmdrag .knob, .mmdrag .knob { fill: var(--co-plot); stroke: var(--load); stroke-width: 1.8; }
.nmdrag .hit, .mmdrag .hit { fill: transparent; }
.mm-out { fill: color-mix(in srgb, var(--bad) 7%, transparent); }
.mm-bres { fill: none; stroke: var(--moment); stroke-width: 1.3; stroke-dasharray: 5 3; }
.mm-bl { fill: var(--moment); font-size: 11.5px; }
.nm-ml { font-size: 11.5px; font-weight: 500; }
#nmchart .pill rect { fill: var(--co-plot); stroke: color-mix(in srgb, var(--load) 40%, transparent); } #nmchart .pill text { font-size: 11.5px; font-weight: 600; fill: var(--load-ink); }

/* 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-1e4fbf: #749ff5; --x-2f4a8a: #85a1db; --x-2f68b8: #7aaaf0; --x-5c4a78: #a495bf; --x-6e7177: #85827f;
    --x-6f8a8a: #637979; --x-b9b4a8: #535047; --x-e0b43c: #eeca71;
  }
}
@media screen {
  :root[data-theme="dark"] {
    --x-1e4fbf: #749ff5; --x-2f4a8a: #85a1db; --x-2f68b8: #7aaaf0; --x-5c4a78: #a495bf; --x-6e7177: #85827f;
    --x-6f8a8a: #637979; --x-b9b4a8: #535047; --x-e0b43c: #eeca71;
  }
}
/* theme-auto:end */
