.calc-main [hidden]{display:none!important}
.fg-grp{margin:0}
.fg-sub{font-size:.95rem;font-weight:700;color:#0C2D3E;margin:16px 0 8px;padding-top:12px;border-top:1px solid #E2E8F0}
.fg-cats{margin:0 0 12px}
.fg-heads,.fg-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,.8fr) minmax(0,.8fr) 44px;gap:8px;align-items:center}
.fg-heads{font-size:.78rem;font-weight:700;color:#374151;margin-bottom:4px}
.fg-row{margin-bottom:8px}
.fg-row input{width:100%;padding:10px 12px;min-height:44px;border:1.5px solid #7B8CA3;border-radius:8px;font-size:.9rem;color:#1E293B;font-family:inherit;background:#fff}
.fg-row input:focus{outline:none;border-color:#0F4C81;box-shadow:0 0 0 3px rgba(15,76,129,.09)}
.fg-row input::placeholder{color:#64748B;opacity:1;font-style:italic}
.fg-lab{display:flex;flex-direction:column;gap:2px;min-width:0}
.fg-lt{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.fg-del{min-height:44px;min-width:44px;border:1.5px solid #64748B;border-radius:8px;background:#F8FAFC;color:#475569;font-size:1.2rem;line-height:1;cursor:pointer}
.fg-del{transition:.15s}
.fg-del:hover:not(:disabled){background:#E2E8F0}
.fg-del:disabled{opacity:.5;cursor:not-allowed}
.fg-add{margin:0 0 6px}
.fg-presetbox{margin:16px 0 4px;background:#F8FAFC;border-radius:10px;padding:14px 16px}
.fg-presettitle{font-size:.85rem;font-weight:700;color:#0C2D3E;margin:0 0 10px}
.fg-presets{display:flex;gap:8px;flex-wrap:wrap}
.fg-msg{min-height:1.4em;margin:8px 0 4px;font-size:.88rem;font-weight:600;color:#991B1B}
.fg-msg:empty{min-height:0;margin:0}
.fg-note{margin:10px 0 0;font-size:.85rem;color:#334155;line-height:1.5}
.fg-note:empty{display:none}
.result-box .table-scroll{margin-top:14px}
@media(max-width:480px){.fg-heads{display:none}.fg-lt{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;white-space:normal;font-size:.78rem;font-weight:700;color:#374151}.fg-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px}.fg-row .fg-name{grid-column:1/-1}.fg-row .fg-del{grid-column:3;grid-row:2;align-self:end}}
@media print{.btn-reset,.fg-add,.fg-del{display:none!important}}
