:root{color-scheme:dark;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#eef3f5;background:#101417;font-synthesis:none;--muted:#a0adb4;--accent:#77e0be}*{box-sizing:border-box}body{margin:0}main{max-width:520px;margin:0 auto;padding: max(16px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left))}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.brand{display:flex;gap:12px;align-items:center}.mark{display:grid;place-items:center;background:#223b35;color:var(--accent);border:1px solid #37594d;border-radius:14px;width:44px;height:44px;font-size:32px}h1{font-size:25px;letter-spacing:-1px;margin:0}h1 span{color:#708088;font-weight:400}header p{font-size:12px;color:var(--muted);margin:3px 0 0}.badge{font-size:11px;color:var(--muted);border:1px solid #303b41;border-radius:20px;padding:5px 9px}.mode{display:flex;padding:4px;background:#1b2227;border:1px solid #293239;border-radius:13px;margin-bottom:15px}.mode button{flex:1;font-size:12px;min-height:44px;background:none;border:0;border-radius:9px;color:var(--muted);font-weight:600;padding:7px}.mode button[aria-pressed=true]{color:var(--accent);background:#2a3836}button,select,input{font:inherit}button,select{cursor:pointer}label{display:flex;justify-content:space-between;gap:5px;font-size:12px;color:var(--muted);margin-bottom:5px;flex-wrap:wrap}label span{font-size:11px}select,input[type=text]{width:100%;min-width:0;min-height:44px;border-radius:9px;border:1px solid #364149;background:#20282e;color:#f5f8fa;padding:9px 10px;font-size:16px}select{padding-right:26px}input:focus,select:focus,button:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.weight-row{margin:11px 0}.weight-row input{font-weight:600}.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.grid>div{min-width:0}.component{margin-bottom:11px}h2{font-size:12px;font-weight:600;color:#d4dfdf;margin:0 0 6px}.common{margin-top:5px}.hint{color:#8d9aa1;font-size:11px;margin:8px 0 12px}.result{background:linear-gradient(135deg,#1d342e,#1b2928);border:1px solid #355c4d;border-radius:14px;padding:14px}.result-top{display:flex;justify-content:space-between;color:#96c2b1;font-size:10px;letter-spacing:1.5px;margin-bottom:9px}.dot{background:var(--accent);width:6px;height:6px;border-radius:50%}.volume-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}.volume-row>span{font-size:13px;max-width:60%;overflow-wrap:anywhere}.volume-row strong{font-size:30px;letter-spacing:-1px;font-variant-numeric:tabular-nums;white-space:nowrap}.volume-row small{font-size:13px;font-weight:400;letter-spacing:0;color:#b2cec1}.stats{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;border-top:1px solid #365047;padding-top:10px;margin-top:10px}.stats div{display:flex;flex-direction:column;gap:4px}.stats span{font-size:10px;color:#a8bdb4}.stats b{font-size:13px;font-weight:600}.copy{width:100%;min-height:44px;border:0;border-radius:10px;background:var(--accent);color:#102d23;font-size:14px;font-weight:650;display:flex;justify-content:center;gap:20px;align-items:center;margin-top:10px}.copy:disabled{background:#2d3b38;color:#87948f;cursor:default}#copy-status{font-size:11px;color:var(--accent);margin:0;text-align:center}#copy-status:not(:empty){margin-top:5px}details{margin-top:11px;color:var(--muted);font-size:12px}summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px}summary:before{content:'ⓘ';color:#91a4ad}.reference{font-size:12px;line-height:1.6;background:#1b2227;padding:2px 12px;border-radius:10px}footer{text-align:center;font-size:10px;color:#697b83;margin-top:5px}.error-text,.calculation-error{color:#ffb0a0;font-size:13px}.error-text:empty{display:none}.warning{color:#f2cf86;font-size:12px;line-height:1.4;margin-bottom:0}.combo-label{font-size:13px;color:#c0d4cc}.check{min-height:44px;align-items:center;justify-content:flex-start;margin:0}.check input{width:20px;height:20px;accent-color:var(--accent)}[hidden]{display:none!important}@media(min-width:700px){main{margin-top:32px;background:#151b1f;border:1px solid #2a3339;border-radius:22px;padding:26px}}@media(max-width:360px){main{padding-left:12px;padding-right:12px}.mode button{font-size:11px}.volume-row strong{font-size:26px}}@media(prefers-reduced-motion:no-preference){button{transition:background .15s}}
/* Уплотняем смесь, сохраняя высоту каждого интерактивного элемента ≥ 44 px. */
.combined main{padding-top:max(10px,env(safe-area-inset-top))}.combined header{margin-bottom:8px}.combined .mark{width:36px;height:36px}.combined header p{display:none}.combined .mode{margin-bottom:8px}.combined .combo-label{font-size:11px}.combined .weight-row{margin:4px 0 7px}.combined .component{margin-bottom:6px}.combined h2{margin-bottom:3px;font-size:11px}.combined label{font-size:11px;margin-bottom:3px}.combined label span{font-size:10px}.combined select,.combined input[type=text]{padding-top:7px;padding-bottom:7px}.combined .hint{margin:5px 0 7px;font-size:10px}.combined .result{padding:10px 12px}.combined .result-top{margin-bottom:5px}.combined .volume-row{margin-bottom:3px}.combined .volume-row strong{font-size:24px}.combined .volume-row>span{font-size:11px}.combined .stats{padding-top:7px;margin-top:6px;gap:7px}.combined .stats span{font-size:9px}.combined .stats b{font-size:12px}.combined details{margin-top:2px}.combined .copy{margin-top:7px}.combined footer{margin-top:0}

#calculation-details{margin-top:10px}#calculation-steps{padding:10px 13px;line-height:1.55}#calculation-steps p{margin:0 0 10px;overflow-wrap:anywhere}#calculation-steps p:last-child{margin-bottom:0}.step-title{font-weight:700;color:#e8f4ef}.step-note{color:#f2cf86}

/* Формула-дробь с горизонтальной чертой, без изменения основного интерфейса */
.equation-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:7px 0 11px;margin:5px 0 9px}.equation{display:flex;align-items:center;justify-content:flex-start;gap:8px;white-space:nowrap;width:max-content;min-width:100%;font-size:clamp(12px,3.4vw,16px);font-variant-numeric:tabular-nums;color:#eef3f5}.math-frac{display:inline-flex;flex-direction:column;align-items:stretch;text-align:center;line-height:1.45}.math-num{padding:0 7px 5px;border-bottom:1.5px solid #eef3f5}.math-den{padding:5px 7px 0}#calculation-steps .equation-scroll{scrollbar-width:thin}
