#js-tool-container-rail-container-freight-calculator .rcf-app { display: flex; flex-direction: column; gap: 16px; color: var(--text-primary); min-width: 0; --rcf-steel: #7a818c; --rcf-box: #8a5a3a; --rcf-infra: #5c6b7a; --rcf-rent: #7d6a4a; --rcf-extra: #6a6e5a; }
html[data-theme="dark"] #js-tool-container-rail-container-freight-calculator .rcf-app { --rcf-steel: #a7afb8; --rcf-box: #c4895a; --rcf-infra: #8fa0b3; --rcf-rent: #c4b07a; --rcf-extra: #a3a88f; }
#js-tool-container-rail-container-freight-calculator .tbcalc-section-note { display: block; width: 100%; max-width: none; box-sizing: border-box; }
#js-tool-container-rail-container-freight-calculator .tbcalc-fieldset { border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 16px 18px 18px; margin: 0; }
#js-tool-container-rail-container-freight-calculator .tbcalc-legend { padding: 0 6px; font-weight: 600; font-size: 0.95rem; color: var(--text-secondary); }
#js-tool-container-rail-container-freight-calculator .tb-grid-2, #js-tool-container-rail-container-freight-calculator .tbcalc-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 20px; }
#js-tool-container-rail-container-freight-calculator .tbcalc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#js-tool-container-rail-container-freight-calculator .tbcalc-hint { font-size: 0.82rem; line-height: 1.35; color: var(--text-muted); }
#js-tool-container-rail-container-freight-calculator .tb-zone[data-tb-zone="outcome"],
#js-tool-container-rail-container-freight-calculator .tb-zone[data-tb-zone="details"],
#js-tool-container-rail-container-freight-calculator .tb-zone[data-tb-zone="controls"] { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
#js-tool-container-rail-container-freight-calculator .rcf-result,
#js-tool-container-rail-container-freight-calculator .rcf-details { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
#js-tool-container-rail-container-freight-calculator .rcf-hero { border: 1px solid var(--border-color); border-left: 3px solid var(--rcf-box); border-radius: var(--radius-md); background: var(--bg-secondary); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
#js-tool-container-rail-container-freight-calculator .tb-hero-label { font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
#js-tool-container-rail-container-freight-calculator .tb-hero-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
#js-tool-container-rail-container-freight-calculator .tb-hero-value { font-size: clamp(1.7rem, 4.4vw, 2.6rem); font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; min-width: 0; }
#js-tool-container-rail-container-freight-calculator .tb-unit { font-size: 1rem; color: var(--text-secondary); }
#js-tool-container-rail-container-freight-calculator .tb-hero-note { margin: 0; font-size: 0.88rem; line-height: 1.45; color: var(--text-secondary); }
#js-tool-container-rail-container-freight-calculator .tbcalc-status { border: 1px solid var(--border-color); border-left: 3px solid var(--accent-primary); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.9rem; line-height: 1.45; color: var(--text-secondary); }
#js-tool-container-rail-container-freight-calculator .tbcalc-status.warn { border-left-color: var(--warning); background: var(--warning-light); color: var(--text-primary); }
#js-tool-container-rail-container-freight-calculator .tbcalc-status.danger { border-left-color: var(--danger); background: var(--danger-light); color: var(--text-primary); }
#js-tool-container-rail-container-freight-calculator .rcf-profile { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-tertiary); min-width: 0; }
#js-tool-container-rail-container-freight-calculator .rcf-profile-head,
#js-tool-container-rail-container-freight-calculator .rcf-days-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
#js-tool-container-rail-container-freight-calculator .tb-caption { margin: 0; font-size: 0.8rem; line-height: 1.4; color: var(--text-secondary); }
#js-tool-container-rail-container-freight-calculator .rcf-bands { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-items: end; min-height: 88px; }
#js-tool-container-rail-container-freight-calculator .rcf-band { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#js-tool-container-rail-container-freight-calculator .rcf-band-col { display: block; width: 100%; height: 24px; border-radius: 2px 2px 0 0; background: var(--border-color); }
#js-tool-container-rail-container-freight-calculator .rcf-band.is-on .rcf-band-col { background: var(--rcf-box); }
#js-tool-container-rail-container-freight-calculator .rcf-band.is-passed .rcf-band-col { background: var(--rcf-steel); opacity: 0.55; }
#js-tool-container-rail-container-freight-calculator .rcf-platform { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 12px; background: var(--bg-tertiary); min-width: 0; }
#js-tool-container-rail-container-freight-calculator .rcf-sill { display: flex; justify-content: space-between; padding: 0 10px; }
#js-tool-container-rail-container-freight-calculator .rcf-pin { width: 8px; height: 8px; border-radius: 1px; background: var(--rcf-steel); display: inline-block; }
#js-tool-container-rail-container-freight-calculator .rcf-slots { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; min-height: 56px; }
#js-tool-container-rail-container-freight-calculator .rcf-box { display: block; min-height: 52px; border-radius: 2px; background: var(--rcf-box); opacity: 0.88; }
#js-tool-container-rail-container-freight-calculator .rcf-box-empty { background: transparent; border: 1px dashed var(--border-color); }
#js-tool-container-rail-container-freight-calculator .rcf-box-wide { grid-column: 1 / -1; }
#js-tool-container-rail-container-freight-calculator .rcf-mix { display: flex; width: 100%; min-height: 52px; border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; }
#js-tool-container-rail-container-freight-calculator .tb-mix-seg { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 10px; min-width: 0; overflow: hidden; }
#js-tool-container-rail-container-freight-calculator .rcf-mix-infra { background: var(--rcf-infra); color: #f4f5f7; }
#js-tool-container-rail-container-freight-calculator .rcf-mix-rent { background: var(--rcf-rent); color: #f4f5f7; }
#js-tool-container-rail-container-freight-calculator .rcf-mix-extra { background: var(--rcf-extra); color: #f4f5f7; }
#js-tool-container-rail-container-freight-calculator .rcf-mix-infra .tb-muted,
#js-tool-container-rail-container-freight-calculator .rcf-mix-rent .tb-muted,
#js-tool-container-rail-container-freight-calculator .rcf-mix-extra .tb-muted { color: rgba(255,255,255,0.78); }
html[data-theme="dark"] #js-tool-container-rail-container-freight-calculator .rcf-mix-infra .tb-muted,
html[data-theme="dark"] #js-tool-container-rail-container-freight-calculator .rcf-mix-rent .tb-muted,
html[data-theme="dark"] #js-tool-container-rail-container-freight-calculator .rcf-mix-extra .tb-muted { color: rgba(16,17,22,0.7); }
html[data-theme="dark"] #js-tool-container-rail-container-freight-calculator .rcf-mix-infra,
html[data-theme="dark"] #js-tool-container-rail-container-freight-calculator .rcf-mix-rent,
html[data-theme="dark"] #js-tool-container-rail-container-freight-calculator .rcf-mix-extra { color: var(--text-primary); }
#js-tool-container-rail-container-freight-calculator .rcf-mix-seg.is-zero { display: none; }
#js-tool-container-rail-container-freight-calculator .rcf-days { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border-color); border-radius: var(--radius-md); }
#js-tool-container-rail-container-freight-calculator .rcf-day-track { display: flex; flex-wrap: wrap; gap: 6px; }
#js-tool-container-rail-container-freight-calculator .rcf-day { display: block; width: 10px; height: 10px; border-radius: 1px; background: var(--rcf-steel); }
#js-tool-container-rail-container-freight-calculator .rcf-spec { display: flex; flex-direction: column; gap: 8px; }
#js-tool-container-rail-container-freight-calculator .tb-spec-row { display: grid; grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 1.3fr); gap: 10px; align-items: baseline; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: 0.88rem; min-width: 0; }
#js-tool-container-rail-container-freight-calculator .tb-spec-norm { color: var(--text-muted); font-size: 0.8rem; text-align: right; overflow-wrap: anywhere; }
#js-tool-container-rail-container-freight-calculator .tb-out { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#js-tool-container-rail-container-freight-calculator .tb-muted { color: var(--text-muted); font-size: 0.75rem; }
#js-tool-container-rail-container-freight-calculator .tb-table-wrap { overflow-x: auto; border: 1px solid var(--border-color); border-radius: var(--radius-md); -webkit-overflow-scrolling: touch; }
#js-tool-container-rail-container-freight-calculator .tb-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
#js-tool-container-rail-container-freight-calculator .tb-table caption { padding: 12px 16px; font-weight: 600; text-align: left; color: var(--text-secondary); font-size: 0.9rem; caption-side: top; }
#js-tool-container-rail-container-freight-calculator .tb-table th { text-align: left; color: var(--text-secondary); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 10px 14px; background: var(--bg-tertiary); border-bottom: 1px solid var(--border-color); white-space: nowrap; position: sticky; top: 0; }
#js-tool-container-rail-container-freight-calculator .tb-table td { padding: 10px 14px; border-top: 1px solid var(--border-color); overflow-wrap: anywhere; }
#js-tool-container-rail-container-freight-calculator .tb-table tbody tr:hover { background: var(--bg-tertiary); }
#js-tool-container-rail-container-freight-calculator .tb-table td:nth-child(n+2),
#js-tool-container-rail-container-freight-calculator .tb-table th:nth-child(n+2) { text-align: right; }
#js-tool-container-rail-container-freight-calculator .rcf-row-total td { font-weight: 600; background: var(--accent-light); }
#js-tool-container-rail-container-freight-calculator .rcf-limits { margin: 0; }
@media (max-width: 640px) {
  #js-tool-container-rail-container-freight-calculator .rcf-app { gap: 12px; }
  #js-tool-container-rail-container-freight-calculator .tb-grid-2,
  #js-tool-container-rail-container-freight-calculator .tbcalc-grid-2 { grid-template-columns: minmax(0, 1fr); }
  #js-tool-container-rail-container-freight-calculator .rcf-bands { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  #js-tool-container-rail-container-freight-calculator .tb-spec-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  #js-tool-container-rail-container-freight-calculator .tb-spec-norm { text-align: left; }
}
