#js-tool-container-crushed-stone-backfill-calc .csb-app {
  --csb-earth: #8a6a3d;
  --csb-loose: #c4b08a;
  --csb-comp: #6b5340;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
html[data-theme="dark"] #js-tool-container-crushed-stone-backfill-calc .csb-app {
  --csb-earth: #d4a85a;
  --csb-loose: #b59a6a;
  --csb-comp: #8a7358;
}
#js-tool-container-crushed-stone-backfill-calc .tb-zone {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#js-tool-container-crushed-stone-backfill-calc .tb-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px 20px;
}
#js-tool-container-crushed-stone-backfill-calc .tb-span-all { grid-column: 1 / -1; }
#js-tool-container-crushed-stone-backfill-calc .tb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#js-tool-container-crushed-stone-backfill-calc .tb-hint {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--text-muted);
}
#js-tool-container-crushed-stone-backfill-calc .tb-fieldset {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px 18px;
  margin: 0;
}
#js-tool-container-crushed-stone-backfill-calc .tb-legend {
  padding: 0 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
#js-tool-container-crushed-stone-backfill-calc .csb-hero {
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--csb-earth);
  border-radius: var(--radius-md);
  background: var(--warning-light);
  padding: 18px 20px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#js-tool-container-crushed-stone-backfill-calc .csb-hero.is-error {
  border-left-color: var(--danger);
  background: var(--danger-light);
}
#js-tool-container-crushed-stone-backfill-calc .tb-hero-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
#js-tool-container-crushed-stone-backfill-calc .tb-hero-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
#js-tool-container-crushed-stone-backfill-calc .tb-hero-value {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 700;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
#js-tool-container-crushed-stone-backfill-calc .tb-unit {
  font-size: 1rem;
  color: var(--text-secondary);
}
#js-tool-container-crushed-stone-backfill-calc .tb-hero-note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
#js-tool-container-crushed-stone-backfill-calc .tb-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#js-tool-container-crushed-stone-backfill-calc .tb-chip {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
}
#js-tool-container-crushed-stone-backfill-calc .tb-status {
  border-top: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
  border-left: none;
  border-right: none;
  border-radius: 0;
  padding: 10px 4px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: transparent;
}
#js-tool-container-crushed-stone-backfill-calc .tb-status.is-danger {
  background: var(--danger-light);
  border-style: solid;
  padding: 10px 14px;
  color: var(--text-primary);
}
#js-tool-container-crushed-stone-backfill-calc .csb-cut {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: end;
  min-height: 150px;
}
#js-tool-container-crushed-stone-backfill-calc .csb-cut-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#js-tool-container-crushed-stone-backfill-calc .csb-cut-well {
  position: relative;
  height: 120px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-secondary);
}
#js-tool-container-crushed-stone-backfill-calc .csb-fill {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
}
#js-tool-container-crushed-stone-backfill-calc .csb-fill-loose { background: var(--csb-loose); }
#js-tool-container-crushed-stone-backfill-calc .csb-fill-comp { background: var(--csb-comp); }
#js-tool-container-crushed-stone-backfill-calc .csb-cut-arrow {
  align-self: center;
  color: var(--text-muted);
  font-size: 1.2rem;
}
#js-tool-container-crushed-stone-backfill-calc .csb-cut-cap {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: center;
}
#js-tool-container-crushed-stone-backfill-calc .tb-spec {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#js-tool-container-crushed-stone-backfill-calc .tb-spec-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
#js-tool-container-crushed-stone-backfill-calc .tb-spec-norm {
  color: var(--text-muted);
  font-size: 0.82rem;
}
#js-tool-container-crushed-stone-backfill-calc .tb-field-error {
  font-size: 0.82rem;
  color: var(--danger);
}
@media (max-width: 640px) {
  #js-tool-container-crushed-stone-backfill-calc .csb-app { gap: 10px; }
  #js-tool-container-crushed-stone-backfill-calc .tb-grid-3 { grid-template-columns: 1fr; }
  #js-tool-container-crushed-stone-backfill-calc .tb-spec-row { grid-template-columns: 1fr; }
  #js-tool-container-crushed-stone-backfill-calc .csb-cut { grid-template-columns: 1fr; min-height: 0; }
  #js-tool-container-crushed-stone-backfill-calc .csb-cut-arrow { transform: rotate(90deg); justify-self: center; }
}