/* Soil classification and compaction — on top of calc.css */
main.scw .stage-bar { justify-content: flex-start; gap: 8px; flex-wrap: wrap; }
main.scw .stage-bar .hist { margin-left: auto; }
#view, #pchart, #cchart { display: block; width: 100%; height: auto; user-select: none; touch-action: none; }
.sc-h .hit { fill: transparent; stroke: none; }
.sc-h { cursor: ns-resize; }
.sc-h.xy { cursor: move; }
.sc-h .knob { fill: var(--surface); stroke: var(--sel); stroke-width: 1.8; }
.sc-h:hover .knob, .sc-h:focus .knob { fill: var(--sel); }
.sc-h.field .knob { stroke: var(--x-7a4fa0, #7a4fa0); }
.sc-h.field:hover .knob, .sc-h.field:focus .knob { fill: var(--x-7a4fa0, #7a4fa0); }
.fb-chart text.halo, #view text.halo { paint-order: stroke; stroke: var(--halo); stroke-width: 3px; stroke-linejoin: round; }
#view .ch-t { font-size: 11px; fill: var(--text-3); font-variant-numeric: tabular-nums; }
#view .ch-a { font-size: 11.5px; fill: var(--text-2); }
#view .ch-l { font-size: 11.5px; font-weight: 600; }

/* live strip and flags */
.sc-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; }
.sc-live b { font-weight: 500; color: var(--text-3); margin-right: 5px; }
.sc-live i { font-style: normal; color: var(--text-3); }
.sc-flags { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.sc-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 tables */
.sc-seg { margin-bottom: 6px; }
.sc-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); margin: 4px 0; cursor: pointer; }
.sc-check input { margin: 0; }
table.sc-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 2px 0 8px; }
.sc-tbl th { font-weight: 500; font-size: 11.5px; color: var(--text-3); text-align: right; padding: 4px 4px; }
.sc-tbl th.l, .sc-tbl td.l { text-align: left; }
.sc-tbl td.l { white-space: nowrap; }
.sc-tbl td { padding: 2px 4px; text-align: right; color: var(--text-2); }
.sc-tbl input { width: 100%; min-width: 0; box-sizing: border-box; font: inherit; font-size: 12.5px; text-align: right; padding: 5px 6px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); font-variant-numeric: tabular-nums; }
.sc-tbl input.nm { text-align: left; font-weight: 500; }
.sc-tbl input.bad { color: var(--bad); border-color: var(--bad); }
.sc-tbl td.x { width: 26px; }
.sc-x { border: 0; background: none; color: var(--text-3); cursor: pointer; font-size: 15px; padding: 2px 6px; border-radius: 6px; }
.sc-x:hover { color: var(--bad); background: var(--x-fbf1ef, #fbf1ef); }
.sc-add { width: 100%; }
#panel input.bad { color: var(--bad); }
#panel .num:has(input.bad) input { border-color: var(--bad); }
#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 */
.sc-sym { font-size: 30px; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; color: var(--text); }
.sc-name { font-size: 14px; color: var(--text); margin-top: 2px; }
.sc-say { margin-top: 6px; font-size: 12.5px; color: var(--text-2); line-height: 1.4; max-width: 34ch; }
.sc-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; }
.sc-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.sc-note { font-size: 12px; color: var(--text-3); margin: 8px 0 0; line-height: 1.45; }
#checks td.note { white-space: normal; min-width: 200px; line-height: 1.4; }
.sc-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); }
.sc-edit input { width: 180px; border: 0; outline: none; font: inherit; font-size: 13px; text-align: center; padding: 3px 2px; }
.stage { position: relative; }
.sc-nm { cursor: text; }
.sc-nm:hover text, .sc-nm:focus text { fill: var(--sel); }
.sc-nm:focus { outline: none; }
@media (max-width: 1100px) { .sc-two { grid-template-columns: minmax(0, 1fr); } }
@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: "achieved "; color: var(--text-3); }
  #checks td:nth-child(3)::before { content: "required "; color: var(--text-3); }
  #checks td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; font-size: 12px; color: var(--text-3); }
}
@media print { .sc-edit { display: none !important; } }

/* 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-1f6b45: #77b18e; --x-2b3542: #b0bbc8; --x-3f7cbf: #82b4ee; --x-6b4290: #b18fd4; --x-6e7177: #85827f;
    --x-7a4fa0: #b895dc; --x-7aa6d6: #a0c5ed; --x-9a3412: #e0866b; --x-9bbde0: #728da8; --x-fbf1ef: #2c2625;
  }
}
@media screen {
  :root[data-theme="dark"] {
    --x-1f6b45: #77b18e; --x-2b3542: #b0bbc8; --x-3f7cbf: #82b4ee; --x-6b4290: #b18fd4; --x-6e7177: #85827f;
    --x-7a4fa0: #b895dc; --x-7aa6d6: #a0c5ed; --x-9a3412: #e0866b; --x-9bbde0: #728da8; --x-fbf1ef: #2c2625;
  }
}
/* theme-auto:end */
