#js-tool-container-otmostka-sand-cushion-calculator .otsc-app { display: flex; flex-direction: column; gap: 14px; --otsc-sand: #cfa876; --otsc-sand-grain: rgba(90, 60, 20, 0.14); --otsc-house: var(--bg-tertiary); }
html[data-theme="dark"] #js-tool-container-otmostka-sand-cushion-calculator .otsc-app { --otsc-sand: #7d5c36; --otsc-sand-grain: rgba(255, 236, 200, 0.10); }
#js-tool-container-otmostka-sand-cushion-calculator .otsc-controls .tb-fieldset + .tb-fieldset { margin-top: 16px; }
#js-tool-container-otmostka-sand-cushion-calculator .tb-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 20px; }
#js-tool-container-otmostka-sand-cushion-calculator .tb-span-all { grid-column: 1 / -1; }
#js-tool-container-otmostka-sand-cushion-calculator .tb-field { display: flex; flex-direction: column; gap: 6px; }
#js-tool-container-otmostka-sand-cushion-calculator .tb-hint { font-size: 0.82rem; line-height: 1.35; color: var(--text-muted); }
#js-tool-container-otmostka-sand-cushion-calculator .otsc-outcome { display: flex; flex-direction: column; gap: 18px; }
#js-tool-container-otmostka-sand-cushion-calculator .tb-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; min-height: 132px; display: flex; flex-direction: column; gap: 6px; }
#js-tool-container-otmostka-sand-cushion-calculator .tb-hero-label { font-size: 0.9rem; color: var(--text-secondary); }
#js-tool-container-otmostka-sand-cushion-calculator .tb-hero-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
#js-tool-container-otmostka-sand-cushion-calculator .tb-hero-value { font-size: clamp(1.9rem, 5vw, 2.9rem); font-weight: 700; line-height: 1.05; }
#js-tool-container-otmostka-sand-cushion-calculator .tb-unit { font-size: 1rem; color: var(--text-secondary); }
#js-tool-container-otmostka-sand-cushion-calculator .tb-chip { display: inline-block; border: 1px solid var(--border-color); border-radius: 999px; padding: 3px 12px; font-size: 0.84rem; color: var(--text-secondary); background: var(--bg-secondary); }
#js-tool-container-otmostka-sand-cushion-calculator .tb-hero-note { margin: 4px 0 0; font-size: 0.86rem; color: var(--text-secondary); line-height: 1.4; }
#js-tool-container-otmostka-sand-cushion-calculator .tb-status { border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.9rem; color: var(--text-secondary); }
#js-tool-container-otmostka-sand-cushion-calculator .tb-status.warn { border-left: 4px solid var(--warning); background: var(--warning-light); color: var(--text-primary); }
#js-tool-container-otmostka-sand-cushion-calculator .tb-status.danger { border-left: 4px solid var(--danger); background: var(--danger-light); color: var(--text-primary); }
#js-tool-container-otmostka-sand-cushion-calculator .tb-plan { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-secondary); }
#js-tool-container-otmostka-sand-cushion-calculator .tb-plan-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
#js-tool-container-otmostka-sand-cushion-calculator .tb-plan-title { font-size: 0.88rem; color: var(--text-secondary); }
#js-tool-container-otmostka-sand-cushion-calculator .tb-plan-legend { font-size: 0.76rem; color: var(--text-muted); }
#js-tool-container-otmostka-sand-cushion-calculator .tb-plan-body { display: flex; gap: 10px; align-items: stretch; }
#js-tool-container-otmostka-sand-cushion-calculator .tb-plan-dimv { display: flex; align-items: center; writing-mode: vertical-rl; transform: rotate(180deg); border-left: 1px dashed var(--border-color); padding-left: 5px; font-size: 0.76rem; color: var(--text-muted); }
#js-tool-container-otmostka-sand-cushion-calculator .tb-plan-main { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: 620px; margin: 0 auto; width: 100%; }
#js-tool-container-otmostka-sand-cushion-calculator .tb-plan-dimh { text-align: center; border-top: 1px dashed var(--border-color); padding-top: 5px; font-size: 0.76rem; color: var(--text-muted); }
#js-tool-container-otmostka-sand-cushion-calculator .tb-ring-frame { position: relative; display: flex; align-items: center; justify-content: center; padding: clamp(14px, 3.4%, 30px); border-radius: var(--radius-sm); background-color: var(--otsc-sand); background-image: radial-gradient(var(--otsc-sand-grain) 1.1px, transparent 1.1px); background-size: 9px 9px; min-height: 150px; aspect-ratio: 1.66; transition: aspect-ratio 200ms ease; }
#js-tool-container-otmostka-sand-cushion-calculator .tb-ring-house { display: flex; align-items: center; justify-content: center; width: 71%; height: 63%; border: 1px solid var(--border-color); border-radius: 4px; background: var(--otsc-house); box-shadow: var(--shadow-sm); transition: width 200ms ease, height 200ms ease; }
#js-tool-container-otmostka-sand-cushion-calculator .tb-ring-house-label { font-size: 0.84rem; font-weight: 600; color: var(--text-secondary); text-align: center; padding: 2px 6px; }
#js-tool-container-otmostka-sand-cushion-calculator .tb-plan-slope { position: absolute; right: 8px; bottom: 8px; font-size: 0.7rem; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.78); color: #4c3a20; }
html[data-theme="dark"] #js-tool-container-otmostka-sand-cushion-calculator .tb-plan-slope { background: rgba(10, 12, 17, 0.6); color: #f0e6d6; }
#js-tool-container-otmostka-sand-cushion-calculator .tb-ring-scale { display: flex; justify-content: space-between; gap: 12px; font-size: 0.82rem; color: var(--text-muted); }
#js-tool-container-otmostka-sand-cushion-calculator .tb-supply { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 14px 0; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-secondary); }
#js-tool-container-otmostka-sand-cushion-calculator .tb-supply-cell { display: flex; flex-direction: column; gap: 3px; padding: 2px 18px; min-width: 0; }
#js-tool-container-otmostka-sand-cushion-calculator .tb-supply-cell + .tb-supply-cell { border-left: 1px solid var(--border-color); }
#js-tool-container-otmostka-sand-cushion-calculator .tb-supply-k { font-size: 0.76rem; color: var(--text-muted); }
#js-tool-container-otmostka-sand-cushion-calculator .tb-supply-v { font-size: 1.06rem; font-weight: 700; white-space: nowrap; }
#js-tool-container-otmostka-sand-cushion-calculator .tb-supply-s { font-size: 0.78rem; color: var(--text-muted); }
#js-tool-container-otmostka-sand-cushion-calculator .tb-supply-cell-key .tb-supply-v { color: var(--accent-primary); }
#js-tool-container-otmostka-sand-cushion-calculator .tb-supply-alt { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; padding: 12px 18px 0; border-top: 1px solid var(--border-color); }
#js-tool-container-otmostka-sand-cushion-calculator .otsc-details { display: flex; flex-direction: column; gap: 12px; }
#js-tool-container-otmostka-sand-cushion-calculator fieldset, #js-tool-container-otmostka-sand-cushion-calculator select, #js-tool-container-otmostka-sand-cushion-calculator input { min-inline-size: 0; max-width: 100%; }
#js-tool-container-otmostka-sand-cushion-calculator .otsc-details .tb-table-wrap { border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow-x: auto; background: var(--bg-secondary); }
#js-tool-container-otmostka-sand-cushion-calculator .tb-table { width: 100%; min-width: 580px; border-collapse: collapse; font-size: 0.88rem; }
#js-tool-container-otmostka-sand-cushion-calculator .tb-table caption { caption-side: top; text-align: left; padding: 12px 14px 0; font-size: 0.84rem; color: var(--text-muted); }
#js-tool-container-otmostka-sand-cushion-calculator .tb-table th, #js-tool-container-otmostka-sand-cushion-calculator .tb-table td { padding: 9px 14px; border-top: 1px solid var(--border-color); text-align: left; vertical-align: top; }
#js-tool-container-otmostka-sand-cushion-calculator .tb-table thead th { color: var(--text-secondary); font-weight: 600; border-top: 0; }
#js-tool-container-otmostka-sand-cushion-calculator .tb-table td:nth-child(2) { white-space: nowrap; font-weight: 600; }
@media (max-width: 640px) {
  #js-tool-container-otmostka-sand-cushion-calculator .otsc-app { gap: 10px; }
  #js-tool-container-otmostka-sand-cushion-calculator .otsc-outcome { gap: 14px; }
  #js-tool-container-otmostka-sand-cushion-calculator .tb-grid-2 { grid-template-columns: minmax(0, 1fr); }
  #js-tool-container-otmostka-sand-cushion-calculator .tb-ring-frame { min-height: 120px; }
  #js-tool-container-otmostka-sand-cushion-calculator .tb-ring-scale { flex-direction: column; gap: 4px; }
  #js-tool-container-otmostka-sand-cushion-calculator .tb-supply { grid-template-columns: 1fr 1fr; padding: 8px 0 14px; }
  #js-tool-container-otmostka-sand-cushion-calculator .tb-supply-cell { padding: 10px 18px; }
  #js-tool-container-otmostka-sand-cushion-calculator .tb-supply-cell:nth-child(2n+1) { border-left: 0; }
  #js-tool-container-otmostka-sand-cushion-calculator .tb-supply-cell:nth-child(n+3) { border-top: 1px solid var(--border-color); }
  #js-tool-container-otmostka-sand-cushion-calculator .tb-supply-alt { margin-top: 4px; }
  #js-tool-container-otmostka-sand-cushion-calculator .tb-hero { min-height: 116px; }
}