#js-tool-container-timber-per-cube-calculator .tpc-app { --tpc-wood: #a9743a; --tpc-wood-soft: rgba(169, 116, 58, 0.28); --tpc-seg: rgba(47, 102, 255, 0.26); display: flex; flex-direction: column; gap: 22px; color: var(--text-primary); }
html[data-theme="dark"] #js-tool-container-timber-per-cube-calculator .tpc-app { --tpc-wood: #d08a4a; --tpc-wood-soft: rgba(208, 138, 74, 0.32); --tpc-seg: rgba(77, 124, 255, 0.32); }
#js-tool-container-timber-per-cube-calculator .tpc-fieldset { border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 16px 18px 18px; margin: 0 0 14px; }
#js-tool-container-timber-per-cube-calculator .tpc-fieldset:last-child { margin-bottom: 0; }
#js-tool-container-timber-per-cube-calculator .tbcalc-legend { padding: 0 6px; font-weight: 600; font-size: 0.95rem; color: var(--text-secondary); }
#js-tool-container-timber-per-cube-calculator .tpc-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px 20px; }
#js-tool-container-timber-per-cube-calculator .tpc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
#js-tool-container-timber-per-cube-calculator .tpc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#js-tool-container-timber-per-cube-calculator .tb-label { font-size: 0.92rem; font-weight: 500; color: var(--text-primary); }
#js-tool-container-timber-per-cube-calculator .tbcalc-hint { font-size: 0.82rem; line-height: 1.35; color: var(--text-muted); }
#js-tool-container-timber-per-cube-calculator .tpc-outcome { display: flex; flex-direction: column; gap: 16px; }
#js-tool-container-timber-per-cube-calculator .tpc-hero { border: 1px solid var(--border-color); border-left: 4px solid var(--accent-primary); border-radius: var(--radius-md); background: var(--accent-light); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; min-height: 132px; justify-content: center; }
#js-tool-container-timber-per-cube-calculator .tpc-hero-label { font-size: 0.9rem; color: var(--text-secondary); }
#js-tool-container-timber-per-cube-calculator .tpc-hero-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
#js-tool-container-timber-per-cube-calculator .tpc-hero-value { font-size: clamp(1.9rem, 5vw, 2.9rem); font-weight: 700; line-height: 1.05; color: var(--text-primary); }
#js-tool-container-timber-per-cube-calculator .tpc-hero-note { margin: 0; font-size: 0.86rem; line-height: 1.4; color: var(--text-secondary); }
#js-tool-container-timber-per-cube-calculator .tbcalc-unit { font-size: 1rem; color: var(--text-secondary); }
#js-tool-container-timber-per-cube-calculator .tbcalc-status { border: 1px solid var(--border-color); border-left: 4px solid var(--accent-primary); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.9rem; line-height: 1.4; color: var(--text-secondary); }
#js-tool-container-timber-per-cube-calculator .tbcalc-status.warn { border-left-color: var(--warning); background: var(--warning-light); color: var(--text-primary); }
#js-tool-container-timber-per-cube-calculator .tbcalc-status.danger { border-left-color: var(--danger); background: var(--danger-light); color: var(--text-primary); }
#js-tool-container-timber-per-cube-calculator .tpc-cube { display: flex; align-items: stretch; width: 100%; height: 36px; min-height: 36px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-tertiary, #f1f2f5); }
#js-tool-container-timber-per-cube-calculator .tpc-cube-seg { display: block; height: 100%; box-sizing: border-box; background: var(--tpc-seg); border-right: 1px solid var(--bg-secondary); }
#js-tool-container-timber-per-cube-calculator .tpc-cube-seg:last-child { border-right: 0; }
#js-tool-container-timber-per-cube-calculator .tpc-cube-tail { display: block; height: 100%; box-sizing: border-box; background: repeating-linear-gradient(45deg, var(--tpc-wood) 0 3px, var(--tpc-wood-soft) 3px 8px); }
#js-tool-container-timber-per-cube-calculator .tpc-cube-more { display: block; height: 100%; flex: 1 1 auto; box-sizing: border-box; background: repeating-linear-gradient(135deg, var(--tpc-seg) 0 4px, transparent 4px 9px); border-left: 1px dashed var(--border-color); }
#js-tool-container-timber-per-cube-calculator .tpc-cube-caption { margin: 0; font-size: 0.84rem; line-height: 1.4; color: var(--text-muted); }
#js-tool-container-timber-per-cube-calculator .tpc-ledger { display: flex; flex-direction: column; gap: 10px; }
#js-tool-container-timber-per-cube-calculator .tpc-ledger-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 14px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: transparent; }
#js-tool-container-timber-per-cube-calculator .tpc-ledger-label { font-size: 0.88rem; color: var(--text-secondary); }
#js-tool-container-timber-per-cube-calculator .tpc-ledger-value { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); text-align: right; white-space: nowrap; }
#js-tool-container-timber-per-cube-calculator .tpc-ledger-value .tbcalc-unit { font-weight: 400; }
#js-tool-container-timber-per-cube-calculator .tpc-details { display: flex; flex-direction: column; gap: 14px; }
#js-tool-container-timber-per-cube-calculator .tpc-table-wrap { overflow-x: auto; border: 1px solid var(--border-color); border-radius: var(--radius-md); }
#js-tool-container-timber-per-cube-calculator .tpc-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
#js-tool-container-timber-per-cube-calculator .tpc-table caption { padding: 10px 14px; text-align: left; font-size: 0.86rem; color: var(--text-secondary); }
#js-tool-container-timber-per-cube-calculator .tpc-table th, #js-tool-container-timber-per-cube-calculator .tpc-table td { padding: 8px 14px; text-align: right; border-top: 1px solid var(--border-color); white-space: nowrap; }
#js-tool-container-timber-per-cube-calculator .tpc-table thead th { text-align: right; color: var(--text-secondary); font-weight: 600; border-top: 0; }
#js-tool-container-timber-per-cube-calculator .tpc-table thead th:first-child, #js-tool-container-timber-per-cube-calculator .tpc-table td:first-child, #js-tool-container-timber-per-cube-calculator .tpc-table tbody th { text-align: left; }
#js-tool-container-timber-per-cube-calculator .tpc-row-active td, #js-tool-container-timber-per-cube-calculator .tpc-row-active th { background: var(--accent-light); }
@media (max-width: 640px) {
  #js-tool-container-timber-per-cube-calculator .tpc-grid-3, #js-tool-container-timber-per-cube-calculator .tpc-grid-2 { grid-template-columns: 1fr; }
  #js-tool-container-timber-per-cube-calculator .tpc-ledger-row { flex-wrap: wrap; }
  #js-tool-container-timber-per-cube-calculator .tpc-ledger-value { white-space: normal; }
}