.shelf-tool{color:#263c43;grid-template-columns:minmax(270px,.85fr) minmax(0,1.15fr);gap:32px;margin:24px 0 64px;display:grid}.shelf-controls,.shelf-result{background:#fffdf8;border:1px solid #d8dfd7;border-radius:14px;padding:30px}.shelf-controls{background:#f2f4ed;align-self:start}.shelf-tool h2{margin:12px 0 18px;font-size:clamp(24px,3vw,34px);line-height:1.2}.shelf-tool p{line-height:1.65}.shelf-toggle{gap:8px;margin:16px 0;display:flex}.shelf-tool button{color:#263c43;cursor:pointer;font:inherit;background:#fffdf8;border:1px solid #aebdb1;border-radius:7px;padding:11px 15px}.shelf-toggle button{flex:1}.shelf-toggle button[aria-pressed=true]{color:#fff;background:#284c40;border-color:#284c40}.shelf-tool button:focus-visible,.shelf-tool input:focus-visible{outline-offset:3px;outline:3px solid #b48a47}.shelf-fields{grid-template-columns:1fr 1fr;gap:18px 14px;margin:24px 0;display:grid}.shelf-fields label{gap:8px;font-size:14px;font-weight:600;display:grid}.shelf-fields input{box-sizing:border-box;width:100%;min-width:0;font:inherit;color:#263c43;background:#fff;border:1px solid #b8c2b8;border-radius:6px;padding:12px}.shelf-note{color:#566a60;font-size:13px}.shelf-diagram{border:1px solid #e1e4db;border-radius:8px;width:100%;max-height:510px;margin:24px auto;display:block}.shelf-result table{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%;font-size:14px}.shelf-result caption{text-align:left;margin-bottom:12px;font-weight:600}.shelf-result th,.shelf-result td{text-align:right;white-space:nowrap;border-bottom:1px solid #dce2d9;padding:12px 9px}.shelf-result th:first-child{text-align:left}.shelf-result thead{background:#edf1e8}.shelf-actions{flex-wrap:wrap;gap:10px;margin-top:24px;display:flex}.shelf-actions button:first-child{color:#fff;background:#284c40}.shelf-tool button:disabled{opacity:.45;cursor:not-allowed}.shelf-error{background:#fff1e7;border-left:3px solid #a54d22;padding:16px}.shelf-tool .shelf-reset{background:0 0;margin-top:12px}@media (width<=760px){.shelf-tool{grid-template-columns:1fr;gap:18px}.shelf-controls,.shelf-result{padding:20px}.shelf-fields{gap:16px 10px}.shelf-tool button{padding:11px 10px}}@media print{.shelf-tool{display:block}.shelf-controls,.shelf-actions{display:none}.shelf-result{border:0;padding:0}.shelf-diagram{break-inside:avoid;max-height:420px}.shelf-result table{break-inside:avoid}}.shelf-units{gap:8px;margin:16px 0;display:flex}.shelf-units button[aria-pressed=true]{color:#fff;background:#284c40}.shelf-cut-toggle{align-items:center;gap:10px;margin:24px 0;font-weight:600;display:flex}.shelf-cut-toggle input{width:20px;height:20px}.shelf-cut-result{border-top:1px solid #d8dfd7;margin-top:24px;padding-top:18px}.shelf-table-wrap{overflow-x:auto}.shelf-diagram{width:100%;margin:20px 0;display:block}@media print{.shelf-units,.shelf-cut-toggle{display:none}.shelf-result h2{font-size:22px}.shelf-diagram{max-height:380px}}
