.result-panel .formula-box{margin-top:20px;padding-top:20px;border-color:#d4e1eb}.result-panel .formula-box>h2{font-size:13px;margin-bottom:9px}.result-panel .formula-text{font-size:23px;font-weight:700;line-height:1.7;color:#154f78;letter-spacing:.1px;overflow-wrap:anywhere}.result-panel:has(.formula-box) .result-placeholder{min-height:75px}.formula-explanation{margin-top:18px}.formula-explanation h3{font-size:12px;color:#536d7f;font-weight:600;margin:0 0 10px}.formula-parameters{margin:0}.formula-parameters>div{display:grid;grid-template-columns:minmax(48px,80px) minmax(0,1fr);gap:12px;padding:7px 0;border-bottom:1px solid #dfe8ef}.formula-parameters dt{font-size:12px;color:#285d81;font-weight:600;overflow-wrap:anywhere}.formula-parameters dd{font-size:12px;line-height:1.8;color:#647b8b;margin:0;overflow-wrap:anywhere}.formula-unit-note{font-size:11px;color:#718796;line-height:1.9;margin:13px 0 0}.preset-controls{border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:22px}.preset-caption{font-size:12px;color:#7d8e9b;margin:0 0 10px;line-height:1.8}.preset-row{display:flex;align-items:center;gap:9px}.preset-trigger{display:flex;align-items:center;justify-content:space-between;gap:15px;min-width:0;flex:1;min-height:46px;padding:11px 13px;background:#eff5fa;border:1px solid #cfdfec;border-radius:8px;color:#1a649b;text-align:left;font-size:14px;line-height:1.65}.preset-trigger>span{flex-shrink:0}.preset-trigger:hover{border-color:#94bad5;background:#e8f1f8}.preset-custom{flex:0 0 auto;border:0;background:transparent;color:#6f8391;font-size:12px;min-height:44px;padding:6px}.preset-note{margin:10px 0 0;font-size:12px;line-height:1.85;color:#6b7e8c}.preset-row+.preset-row{margin-top:10px}.preset-dialog{width:min(760px,calc(100% - 30px));border:1px solid #dbe4ec;border-radius:16px;padding:25px;color:var(--ink);max-height:88dvh;overflow:auto}.preset-dialog::backdrop{background:#193a5259}.preset-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:15px}.preset-dialog-heading h2{font-size:20px;font-weight:600;margin:0}.preset-dialog-heading>button{border:0;background:transparent;color:#738796;min-height:44px;min-width:44px;font-size:25px}.preset-dialog>input{display:block;box-sizing:border-box;width:100%;border:1px solid #c6d6e2;border-radius:8px;padding:12px 14px;font-size:16px;color:var(--ink)}.preset-groups{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0 0}.preset-groups>button{border:1px solid #dce6ed;background:#f7fafc;color:#677f8f;font-size:11px;padding:7px 10px;min-height:35px;border-radius:6px}.preset-groups>button[aria-pressed=true]{color:white;background:var(--blue);border-color:var(--blue)}.preset-dialog-hint{font-size:12px;color:#8193a0;margin:13px 0}.preset-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-height:48dvh;overflow:auto;padding:2px 3px 5px;scrollbar-width:thin}.preset-option{display:block;text-align:left;border:1px solid #dce5ec;border-radius:9px;background:white;padding:14px;min-height:83px;color:var(--ink);overflow-wrap:anywhere}.preset-option:hover{border-color:#9cbed8;background:#f3f8fc}.preset-option-name{display:block;font-size:14px;font-weight:600;line-height:1.65;margin-bottom:6px}.preset-option-detail{display:block;font-size:12px;color:#738897;line-height:1.8}.preset-empty{padding:25px 0;text-align:center;font-size:13px;color:#8193a0}.product-references{margin-top:30px}.product-reference+.product-reference{margin-top:29px}.product-reference h2{font-size:18px;font-weight:600;margin:0 0 9px}.reference-intro{font-size:13px;line-height:1.9;color:#718390;margin:0 0 15px}.reference-table-wrap{overflow:auto;max-width:100%;background:#fff;border:1px solid #dce5ec;border-radius:10px;scrollbar-width:thin}.reference-table{width:100%;min-width:650px;border-collapse:collapse;text-align:left;font-size:12px;line-height:1.8}.reference-table th{background:#edf3f8;color:#4e6c82;font-weight:600;padding:12px 14px;border-bottom:1px solid #d9e4ed;white-space:nowrap}.reference-table td{padding:12px 14px;border-bottom:1px solid #e8edf1;color:#627785;vertical-align:top}.reference-table tr:last-child td{border-bottom:0}.reference-table tbody tr:nth-child(even){background:#fafcfd}.reference-table td:last-child{white-space:nowrap}.reference-table a{font-size:11px}.reference-date{font-size:11px;color:#8796a2;margin:19px 0 0;line-height:1.8}
@media(max-width:640px){.result-panel .formula-text{font-size:21px}.formula-parameters>div{grid-template-columns:minmax(46px,68px) minmax(0,1fr);gap:10px}.preset-dialog{padding:17px;width:calc(100% - 24px);max-height:90dvh}.preset-dialog-heading h2{font-size:18px}.preset-options{grid-template-columns:1fr;max-height:45dvh}.preset-groups{flex-wrap:nowrap;overflow:auto;padding-bottom:6px}.preset-groups>button{white-space:nowrap;flex-shrink:0}.product-reference h2{font-size:17px}.reference-intro{font-size:12px}.reference-table th,.reference-table td{padding:10px 12px}.preset-trigger{font-size:13px}.preset-custom{font-size:11px}.preset-caption{font-size:11px}}
@media print{.preset-controls,.preset-dialog{display:none!important}.reference-table-wrap{overflow:visible}.reference-table{min-width:0}.formula-text{color:#111!important}.product-reference{break-inside:avoid}}
.preset-source{display:inline-block;margin:7px 0 0;font-size:11px;line-height:1.8;color:#327aa9}
