.ec-fields{border:0;padding:0;margin:0;min-width:0}.ec-fields:disabled{opacity:1}.ec-notice{padding:1rem;border-left:4px solid #c78b25;background:#fff8e8;margin-bottom:1rem;border-radius:6px}.ec-reference{padding:1rem 0;border-bottom:1px solid var(--line)}.ec-circuit{border:1px solid #cedfd6;border-radius:10px;background:white;margin-top:1rem;overflow:hidden}.ec-circuit summary{padding:1rem;cursor:pointer;background:#edf6f1;display:flex;justify-content:space-between;gap:1rem}.ec-circuit>.ec-fields{padding:1rem}.ec-circuit summary span{font-size:.8rem;color:#475c50}.ec-reading{padding:1rem;margin:1rem 0;background:#f7faf9;border:1px solid #dae5df;border-radius:8px;display:grid;gap:.75rem}.ec-reading.ec-failed{background:#fff0ee;border-color:#b83e31}.ec-outcomes,.ec-row-actions{display:flex;gap:.5rem;flex-wrap:wrap}.ec-row-actions{padding:.6rem 0}.ec-outcomes .btn{min-height:44px;min-width:70px}.ec-measurement{display:grid;grid-template-columns:100px minmax(120px,1fr);gap:.7rem}.ec-signature{display:block;width:min(100%,480px);height:150px;touch-action:none;border:2px solid #acc8b9;border-radius:8px;background:white;margin:1rem 0}.ec-audit{padding:1rem 0;border-bottom:1px solid var(--line)}.ec-audit span{font-size:.8rem}.ec-save{border-top:4px solid var(--green)}.ec-save li{margin:.45rem 0}.ec-circuit input,.ec-circuit select{min-height:46px;font-size:1rem}.ec-circuit textarea{min-height:80px}@media(max-width:600px){.ec-circuit summary{display:block}.ec-circuit summary span{display:block;margin-top:.4rem}.ec-measurement{grid-template-columns:90px 1fr}.ec-outcomes .btn{flex:1}}@media print{.ec-circuit{break-inside:avoid}.ec-row-actions,.ec-save{display:none}}
/* Keep the native details keyboard behaviour, with an unmistakable touch target. */
.ec-circuit>summary{align-items:center;min-height:72px;list-style:none}
.ec-circuit>summary::-webkit-details-marker{display:none}
.ec-circuit>summary:focus-visible{outline:3px solid var(--green,#18724c);outline-offset:-3px}
.ec-circuit-heading{display:flex;align-items:center;gap:.75rem;min-width:0}
.ec-circuit-heading b{overflow-wrap:anywhere}
.ec-circuit summary .ec-circuit-arrow{font-size:1rem;color:var(--green,#18724c);flex-shrink:0;transition:transform .15s}
.ec-circuit[open]>summary .ec-circuit-arrow{transform:rotate(90deg)}
.ec-circuit-summary{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.ec-circuit summary .ec-circuit-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.5rem .85rem;background:#fff;border:1px solid #acc8b9;border-radius:8px;color:#164e35;font-weight:700}
.ec-circuit summary .ec-circuit-toggle span{font-size:.9rem;color:inherit}
.ec-circuit .ec-collapse-label,.ec-circuit[open] .ec-expand-label{display:none}
.ec-circuit[open] .ec-collapse-label{display:inline}
@media(max-width:600px){.ec-circuit>summary{display:flex;flex-direction:column;align-items:stretch;gap:.6rem}.ec-circuit-summary{justify-content:space-between;gap:.5rem}.ec-circuit summary .ec-circuit-arrow,.ec-circuit summary .ec-circuit-toggle span{margin:0}.ec-circuit summary .ec-circuit-toggle{margin:0}}
@media(prefers-reduced-motion:reduce){.ec-circuit summary .ec-circuit-arrow{transition:none}}
