.alg-sheet{margin:1.2em 0;padding:22px 24px 18px;border:1px solid var(--border);border-radius:var(--radius,12px);background:var(--surface,#fff);box-shadow:0 6px 20px -14px #0f2a3d40}@media(max-width:520px){.alg-sheet{padding:18px 14px 14px}}.alg-sheet .alg-how{margin:0 0 14px;padding:10px 12px;border-radius:8px;background:color-mix(in srgb,var(--accent) 10%,transparent);font-size:.92rem;line-height:1.45}.alg-sheet .ws-title{margin:0 0 .15em;font-size:1.45rem;font-weight:700;line-height:1.2;color:var(--fg)}.alg-sheet .alg-sub{margin:0 0 .6em;font-size:.95rem;color:var(--muted)}.alg-sheet .ws-note,.alg-sheet .ws-src{font-size:.85rem;line-height:1.4;color:var(--muted);margin:.6em 0 0}.alg-sheet ol.alg-list{list-style:none;margin:0;padding:0}.alg-sheet ol.alg-list>li{margin:0 0 12px;padding:10px 12px 12px;border:0;border-left:3px solid var(--accent);border-radius:0 8px 8px 0;background:color-mix(in srgb,var(--accent) 6%,transparent);height:auto}.alg-sheet .alg-fs{margin:0;padding:0;border:0;min-width:0}.alg-sheet .alg-fs legend{float:left;width:100%}.alg-sheet .alg-fs legend+*{clear:both}.alg-sheet .alg-lh{display:block;margin:0 0 .2em;padding:0;font-weight:700;line-height:1.35;color:var(--fg)}.alg-sheet .alg-sl{display:block;margin:.6em 0 .1em;font-size:.88rem;font-weight:600;color:var(--muted)}.alg-sheet .alg-n{display:inline-block;min-width:1.5em;height:1.5em;margin-right:6px;border-radius:50%;background:var(--accent);color:var(--accent-fg,#fff);font-size:.8rem;line-height:1.5em;text-align:center;vertical-align:1px}.alg-sheet .alg-grid{display:grid;grid-template-columns:1fr;gap:0 14px}@media(min-width:640px){.alg-sheet .alg-grid{grid-template-columns:9em 1fr 6.5em}}.alg-sheet .alg-in{display:block;width:100%;box-sizing:border-box;min-height:40px;padding:8px 4px 6px;font:inherit;line-height:1.4;color:var(--fg);background:transparent;border:0;border-bottom:2px solid color-mix(in srgb,var(--accent) 45%,var(--border));border-radius:0;resize:none;overflow:hidden}.alg-sheet .alg-in::placeholder{color:var(--muted);opacity:.6;font-style:italic}.alg-sheet .alg-num-w{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}.alg-sheet .alg-grid .alg-num-w{display:block}.alg-sheet .alg-num{width:3.6em;min-height:44px;padding:4px 8px;font:inherit;font-weight:700;text-align:center;color:var(--fg);background:var(--bg,#fff);border:2px solid color-mix(in srgb,var(--accent) 55%,var(--border));border-radius:8px}.alg-sheet .alg-after{margin-top:.4em}.alg-sheet .alg-after .alg-sl{margin:0}.alg-sheet ul.alg-checks{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:0 16px}.alg-sheet ul.alg-checks li{margin:0;border:0;height:auto}.alg-sheet .alg-checks label{display:flex;gap:8px;align-items:center;min-height:44px;padding:0 2px;line-height:1.3;font-size:.93rem;cursor:pointer}.alg-sheet .alg-checks input{flex:none;width:1.25em;height:1.25em;margin:0;accent-color:var(--accent);cursor:pointer;outline:1.5px solid color-mix(in srgb,var(--accent) 55%,var(--border));outline-offset:-1px;border-radius:3px}.alg-sheet .alg-checks input:checked+span{font-weight:600}.alg-sheet .alg-own{flex:1 1 12em}.alg-sheet .alg-own .alg-in{min-height:36px;padding-top:6px}.alg-sheet .alg-total{margin:.6em 0 0;padding:12px;border-radius:8px;border:2px solid color-mix(in srgb,var(--accent) 45%,var(--border))}.alg-sheet .alg-tline{margin:.1em 0 .2em;font-weight:600;color:var(--accent)}.alg-sheet .alg-in:focus,.alg-sheet .alg-num:focus,.alg-sheet input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media(hover:hover){.alg-sheet .alg-checks label:hover{color:var(--accent)}}@media print{@page{size:letter;margin:9mm}.sheet-preview .alg-sheet{font-size:8.5pt;border:0;padding:0;margin:0;background:#fff;box-shadow:none}.sheet-preview .alg-sheet .ws-title{font-size:13pt;margin:0;color:#000}.sheet-preview .alg-sheet .alg-sub{font-size:8.5pt;margin:0 0 2pt;color:#333}.sheet-preview .alg-sheet ol.alg-list>li{height:auto!important;margin:0 0 3pt;padding:2pt 0 3pt 5pt;background:#fff;border-left:2px solid #000;break-inside:avoid}.sheet-preview .alg-sheet .alg-grid{grid-template-columns:7em 1fr 5em;gap:0 8pt}.sheet-preview .alg-sheet .alg-lh{font-size:9pt;margin:0;color:#000}.sheet-preview .alg-sheet .alg-sl{font-size:7.5pt;margin:1pt 0 0;color:#333}.sheet-preview .alg-sheet .alg-n{background:#000;color:#fff;-webkit-print-color-adjust:exact;print-color-adjust:exact}.sheet-preview .alg-sheet .alg-in{border-bottom:1px solid #555;min-height:5mm;padding:.5mm 0;color:#000}.sheet-preview .alg-sheet .alg-in::placeholder{color:transparent}.sheet-preview .alg-sheet .alg-num{border:1px solid #333;min-height:0;height:6mm;width:3em}.sheet-preview .alg-sheet ul li{height:auto!important;border:0}.sheet-preview .alg-sheet .alg-checks label{min-height:0;font-size:8pt;padding:0}.sheet-preview .alg-sheet .alg-checks input{outline:1px solid #000;-webkit-print-color-adjust:exact;print-color-adjust:exact}.sheet-preview .alg-sheet .alg-total{border:1px solid #333;padding:3pt 5pt;break-inside:avoid}.sheet-preview .alg-sheet .alg-tline{color:#000}.sheet-preview .alg-sheet input:focus,.sheet-preview .alg-sheet textarea:focus,.sheet-preview .alg-sheet input:focus-visible{outline:none!important}.sheet-preview .alg-sheet .ws-note,.sheet-preview .alg-sheet .ws-src{font-size:7pt;margin:2pt 0;color:#333}}
