.worksheet{background:var(--surface,#fff);border:1px solid var(--line);border-radius:18px;overflow:hidden;min-width:0}
.worksheet-intro,.worksheet-footer,.worksheet-conditions{padding:20px 24px}
.worksheet-intro h2{margin:0 0 8px;font-size:20px}.worksheet-intro p{margin:6px 0;max-width:70ch}
.worksheet fieldset{border:0;margin:0;padding:0;min-width:0}.worksheet .form-error:empty{display:none}.worksheet .form-error,.worksheet .banner{margin:16px 24px}
.worksheet .form-error .button{display:block;margin-top:8px}
.worksheet-toolbar{display:flex;gap:8px;flex-wrap:wrap;padding:12px 24px;background:#f4f7f3;border-block:1px solid var(--line)}
.worksheet-scroll{overflow:auto;max-height:65vh;overscroll-behavior:contain}
.worksheet-table{border-collapse:separate;border-spacing:0;width:100%;font-size:14px}
.worksheet-table th,.worksheet-table td{padding:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);text-align:left}
.worksheet-table thead th{position:sticky;top:0;z-index:2;background:#eef3ed;padding:12px;font-size:13px;line-height:1.4;letter-spacing:0;text-transform:none;font-weight:600;min-width:160px}
.worksheet-table thead th:first-child{min-width:50px}.worksheet-table thead small{display:block;color:var(--muted);font-weight:400}
.worksheet-table tbody th{padding:12px;background:#f6f8f4;font-variant-numeric:tabular-nums}
.worksheet-table td:nth-child(2),.worksheet-table th:nth-child(2){position:sticky;left:0;z-index:1;background:#fff;box-shadow:2px 0 0 var(--line)}
.worksheet-table thead th:nth-child(2){z-index:3;background:#eef3ed}
.worksheet-table input{border:0;border-radius:0;width:100%;min-width:170px;min-height:48px;padding:12px;background:transparent;box-shadow:none}
.worksheet-table input:focus{outline:2px solid var(--accent,#246449);outline-offset:-2px;background:#f5fbf4}.worksheet-table input[type=datetime-local]{min-width:240px}
.worksheet-table .worksheet-result{min-width:170px;padding:12px;font-size:13px}.worksheet-result strong{display:flex;gap:6px;align-items:center;color:#246449}
.worksheet-specimen-name{display:block;padding:0 12px 8px;max-width:220px;overflow-wrap:anywhere;color:var(--muted);font-size:12px}.worksheet-specimen-name:empty{display:none}.worksheet-swipe{display:none}
.worksheet-table tr.is-saved td{background:#f0f6ee}.worksheet-table tr.has-error .worksheet-result{color:#a33525}.worksheet-table tr.has-error th{box-shadow:inset 3px 0 #a33525}
.worksheet-footer{display:flex;flex-wrap:wrap;align-items:center;gap:16px;border-top:1px solid var(--line)}.worksheet-footer p{margin:0}.worksheet-confirm{display:flex;align-items:center;gap:10px;max-width:46ch}.worksheet-confirm input{width:20px;height:20px;flex:none}.worksheet-footer .inline-actions{margin-left:auto}.worksheet button{white-space:normal}
@media(max-width:640px){.worksheet-intro,.worksheet-footer,.worksheet-conditions{padding:16px}.worksheet-toolbar{padding:12px}.worksheet-toolbar .button{flex:1 1 130px}.worksheet-footer .inline-actions{width:100%;margin:0}.worksheet-footer .button{flex:1}.worksheet-table td:nth-child(2),.worksheet-table th:nth-child(2){position:static}.worksheet-scroll{max-height:60vh}}
@media(max-width:640px){.worksheet-swipe{display:block;margin:0;padding:10px 16px;color:var(--muted);font-size:12px}}
.worksheet-footer{display:block;scroll-margin-top:90px}
.worksheet-review-controls{display:flex;align-items:center;flex-wrap:wrap;gap:16px}
.worksheet-review-controls #worksheetStatus{flex-basis:100%;font-weight:600}
.worksheet .worksheet-calculation-review{width:100%;min-width:0;margin:16px 0 0;padding:16px}
.worksheet .worksheet-calculation-review h2{margin:0 0 6px;font-size:18px}
.worksheet-review-filters,.worksheet-review-pages{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0}
.worksheet-review-filters [aria-pressed=true]{border-color:var(--green);background:var(--pale);box-shadow:inset 0 0 0 1px var(--green)}
.worksheet-review-pages span{flex:1;text-align:center;font-size:13px}
.worksheet .worksheet-calculation-review article{padding:12px 0}
.worksheet .worksheet-calculation-review article h3{font-size:15px;line-height:1.5}
.worksheet .worksheet-calculation-review article p{margin:4px 0}
.worksheet .worksheet-calculation-review details{margin:0}
.worksheet-review-actions>.button{min-height:44px;margin-top:8px}
.worksheet-receipt-note{display:block;color:var(--muted);font-size:12px;line-height:1.5;margin:6px 0}
#worksheetStatus:focus{outline:2px solid var(--green);outline-offset:5px;border-radius:3px}
.worksheet .worksheet-result-values{margin:8px 0}
.worksheet .worksheet-result-values>div{margin:4px 0}
#worksheetReviewNotice:empty{display:none}
#worksheetReviewNotice{margin:8px 0;line-height:1.5}
@media(max-width:640px){.worksheet-review-controls .inline-actions{margin:0;width:100%}.worksheet-review-controls .inline-actions>.button{flex:1 1 130px}.worksheet-review-filters>.button{flex:1 1 110px}.worksheet .worksheet-calculation-review{padding:12px}.worksheet-review-pages>.button{flex:0 1 auto}}
