#lg-history-form .lg-history-guide{display:flex;flex-wrap:wrap;gap:8px;font-size:.78rem}
#lg-history-form .lg-history-guide span{padding:6px 10px;border-radius:6px;background:#fde8eb;color:#782936}
#lg-history-form .lg-history-guide span+span{background:#e3f2ea;color:#235c3d}
#lg-history-form .lg-history-field{display:block;min-width:0;border:1px solid #ecafb7;border-radius:10px;background:#fde8eb;padding:12px;margin:0 0 12px;transition:background .15s,border-color .15s}
#lg-history-form .lg-history-field.is-filled{background:#e3f2ea;border-color:#a5cfb7}
#lg-history-form .lg-history-label{display:block;font-size:.88rem;font-weight:700;margin:0 0 8px}
#lg-history-form .lg-history-field-status{display:block;font-size:.72rem;color:#782936;margin-top:5px}
#lg-history-form .is-filled>.lg-history-field-status{color:#235c3d}
#lg-history-form .lg-history-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#lg-history-form .lg-history-days{grid-template-columns:repeat(auto-fit,minmax(112px,1fr))}
#lg-history-form .lg-history-options label{display:flex;align-items:center;gap:8px;padding:10px;margin:0;border:1px solid #d6c9cd;border-radius:7px;background:#fff;min-height:44px;cursor:pointer;font-size:.82rem}
#lg-history-form .lg-history-options label:has(input:checked),#lg-history-form [data-history-time][aria-pressed=true]{background:#d5eddf;border-color:#46825e;color:#194d30;box-shadow:inset 0 0 0 1px #46825e}
#lg-history-form .lg-history-options input[type=radio]{width:18px;height:18px;margin:0;flex-shrink:0;accent-color:#2a6e46}
#lg-history-form .lg-history-days strong{display:block;text-transform:capitalize;margin-bottom:3px}
#lg-history-form .lg-history-time-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:8px}
#lg-history-form .lg-history-time-row input{width:160px;margin:0;min-height:44px;font-size:1.1rem}
#lg-history-form .lg-history-times{grid-template-columns:repeat(6,minmax(0,1fr))}
#lg-history-form .lg-history-times button{min-height:42px;padding:7px;font-size:.85rem;background:#fff;color:#173e68;border:1px solid #bdcbd7}
#lg-history-form .lg-history-source{margin:12px 0;font-weight:600;font-size:.85rem}
#lg-history-form .legionella-measures input,#lg-history-form input[type=time]{background:#fde8eb;border-color:#df97a2}
#lg-history-form .legionella-measures .is-filled input,#lg-history-form .is-filled input[type=time]{background:#e3f2ea;border-color:#7daf91}
#lg-history-form [data-history-range]{color:#922b3b;font-weight:700}
#lg-history-form .lg-history-progress{font-size:.86rem;font-weight:700}
#lg-history-form .lg-history-verification .check{display:flex;align-items:center;gap:10px;font-size:.84rem}
#lg-history-form .lg-history-verification input{width:20px;height:20px;flex-shrink:0;margin:0;accent-color:#2a6e46}
#lg-history-form [data-history-message]:not(:empty){background:#fde8eb;color:#8d2734;border-radius:8px;padding:12px}
#lg-history-form input:focus-visible,#lg-history-form button:focus-visible{outline:3px solid #21587e;outline-offset:2px}
@media(max-width:600px){#lg-history-form .form-grid{grid-template-columns:1fr}#lg-history-form .lg-history-times{grid-template-columns:repeat(4,minmax(0,1fr))}#lg-history-form .lg-history-field{padding:10px}#lg-history-form .legionella-actions{align-items:stretch;flex-direction:column}}
