.calc-form { display: grid; gap: 14px; margin: 20px 0; padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--panel); box-shadow: var(--shadow); }
.calc-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc-form legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
.calc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.calc-field { display: grid; gap: 4px; font-weight: 600; font-size: 0.95rem; min-width: 0; }
.calc-field input, .calc-field select { font: inherit; font-weight: 400; width: 100%; min-width: 0; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2); color: var(--text); }
.calc-field input:focus-visible, .calc-field select:focus-visible, .calc-check input:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.calc-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.calc-check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2); font-weight: 400; }
.calc-check input { width: 20px; height: 20px; flex: none; }
.calc-output { margin: 20px 0; padding: 18px 20px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 14px; background: var(--panel-2); overflow-wrap: anywhere; }
.calc-output p { margin: 0 0 10px; }
.calc-output ul { margin: 0; padding-left: 20px; }
.calc-output li { margin-bottom: 6px; }
.calc-big { font-size: 1.25rem; }
.calc-big strong { color: var(--accent); font-size: 1.6rem; }
.calc-big span { font-size: 0.95rem; color: var(--muted); }
.calc-error { color: #9a2a1a; font-weight: 600; }
.calc-field small { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.worksheet { margin: 20px 0; overflow-x: auto; }
.worksheet table { border-collapse: collapse; width: 100%; min-width: 620px; }
.worksheet th, .worksheet td { border: 1px solid var(--border); padding: 4px; text-align: left; }
.worksheet th { background: var(--panel-2); font-size: 0.9rem; padding: 8px; }
.worksheet td input { font: inherit; width: 100%; min-width: 0; box-sizing: border-box; padding: 8px; border: 0; background: transparent; color: var(--text); }
.worksheet td input:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; }
.worksheet tfoot td { font-weight: 800; background: var(--panel-2); padding: 8px; }
@media print { .worksheet { overflow: visible; } .worksheet table { min-width: 0; } .worksheet td { height: 28px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
