:root{--brand-red: #e30613;--brand-red-dark: #a9000a;--brand-black: #070707;--brand-graphite: #2f3033;--brand-silver: #e7e7e7;--surface: #ffffff;--line: #d9d9d9;background:#f3f3f3;color:#171717;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5}*{box-sizing:border-box}body{background:radial-gradient(circle at top right,rgba(227,6,19,.12),transparent 30rem),linear-gradient(135deg,#fff,#f1f1f1 48%,#dedede);margin:0;min-width:320px}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,.button{align-items:center;background:linear-gradient(135deg,var(--brand-red),var(--brand-red-dark));border:0;border-radius:14px;box-shadow:0 12px 24px #e3061338;color:#fff;cursor:pointer;display:inline-flex;font-weight:800;justify-content:center;min-height:46px;padding:.78rem 1.05rem}button:disabled{cursor:not-allowed;opacity:.45}.secondary{background:#f2f2f2;box-shadow:none;color:var(--brand-black)}.danger{background:#7a0007}.link-button{background:transparent;box-shadow:none;color:#fff;justify-content:flex-start;min-height:auto;padding:0}.app-shell{display:grid;grid-template-columns:300px minmax(0,1fr);min-height:100vh}.sidebar{background:linear-gradient(180deg,rgba(255,255,255,.08),transparent 12rem),linear-gradient(160deg,#050505,#191919 55%,#3b3b3b);border-right:4px solid var(--brand-red);color:#fff;display:flex;flex-direction:column;gap:2rem;min-height:100vh;padding:1.25rem;position:sticky;top:0;z-index:20}.brand-card{background:#fff;border-radius:20px;box-shadow:0 18px 40px #00000047;color:var(--brand-black);display:flex;flex-direction:column;gap:.75rem;overflow:hidden;padding:.7rem}.brand-card img{display:block;width:100%}.brand-card span{background:linear-gradient(90deg,#f4f4f4,#d5d5d5,#f4f4f4);border-radius:999px;color:#222;font-size:.8rem;font-weight:900;letter-spacing:.08em;padding:.45rem .65rem;text-align:center;text-transform:uppercase}.side-nav{display:grid;gap:.55rem}.side-nav p{color:#b6b6b6;font-size:.8rem;font-weight:900;letter-spacing:.12em;margin:0 0 .25rem;text-transform:uppercase}.side-nav a{align-items:center;border:1px solid rgba(255,255,255,.08);border-radius:16px;color:#f7f7f7;display:flex;font-weight:900;justify-content:space-between;min-height:50px;padding:.8rem 1rem}.side-nav a:after{color:var(--brand-red);content:">";font-weight:900}.side-nav a:hover,.side-nav a.active{background:#fff;color:var(--brand-black)}.sidebar-footer{border-top:1px solid rgba(255,255,255,.16);display:grid;gap:.8rem;margin-top:auto;padding-top:1rem}.sidebar-footer span{color:#d7d7d7;font-size:.9rem;word-break:break-word}.login-button,.full-width{width:100%}.container{margin:0 auto;max-width:1180px;padding:2rem clamp(1rem,4vw,2.5rem)}.page-title,.detail-header{align-items:flex-start;display:flex;gap:1rem;justify-content:space-between;margin-bottom:1.5rem}.eyebrow{color:var(--brand-red);font-size:.85rem;font-weight:900;letter-spacing:.1em;margin:0;text-transform:uppercase}h1,h2{line-height:1.15;margin:0 0 .75rem}h1{color:var(--brand-black);font-size:clamp(2rem,4vw,3.6rem);letter-spacing:-.04em}.muted{color:#666}.alert,.success{border-radius:14px;font-weight:800;padding:.85rem 1rem}.alert{background:#fee4e2;color:#912018}.success{background:#d1fadf;color:#05603a}.filters,.button-row{display:flex;flex-wrap:wrap;gap:.75rem;margin:1rem 0}.filters button{background:#fff;box-shadow:none;color:#1d1d1d}.filters .active{background:var(--brand-black);color:#fff}.filters .danger-filter{background:var(--brand-red)}.device-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.device-card,.panel,.auth-card{background:#ffffffeb;border:1px solid var(--line);border-radius:22px;box-shadow:0 16px 44px #00000014;padding:1.25rem}.device-card{display:block;position:relative;transition:transform .16s ease,box-shadow .16s ease}.device-card:before{background:linear-gradient(90deg,var(--brand-red),#2b2b2b,#f2f2f2);border-radius:999px;content:"";display:block;height:5px;margin-bottom:1rem;width:100%}.device-card:hover{box-shadow:0 22px 54px #00000024;transform:translateY(-2px)}.device-card-body{align-items:stretch;display:grid;gap:1rem;grid-template-columns:minmax(220px,300px) 210px;justify-content:start;margin-top:.9rem}.device-card-data{min-width:0}.device-card-photo{align-items:center;background:linear-gradient(135deg,rgba(227,6,19,.08),transparent),#e9e9e9;border:1px solid var(--line);border-radius:16px;color:#777;display:flex;font-weight:900;height:170px;justify-content:center;overflow:hidden}.device-card-photo img{height:100%;object-fit:contain;padding:.35rem;width:100%}.device-card h2{margin-top:0}.device-card dl,.info-row,.material-card dl{display:grid;gap:.25rem 1rem;grid-template-columns:120px 1fr}dt{color:#666;font-weight:800}dd{margin:0}.status{border-radius:999px;display:inline-flex;font-size:.85rem;font-weight:900;padding:.35rem .7rem}.status-row{display:flex;flex-wrap:wrap;gap:.5rem}.status-available{background:#d1fadf;color:#05603a}.status-borrowed{background:#ffedd5;color:#9a3412}.status-defective{background:#fef0c7;color:#93370d}.status-calibration-due{background:#fee4e2;color:#912018}.calibration-badge{border-radius:999px;display:inline-flex;font-weight:900;padding:.35rem .7rem}.calibration-ok{background:#d1fadf;color:#05603a}.calibration-due{background:#fee4e2;color:#912018}.back-link{color:var(--brand-red);display:inline-block;font-weight:900;margin-bottom:1rem}.current-holder{background:linear-gradient(135deg,#fff,#f0f0f0);border:1px solid var(--line);border-radius:16px;min-width:180px;padding:1rem}.current-holder span{color:#666;display:block;font-size:.85rem}.current-holder strong{display:block;font-size:1.25rem}.detail-layout,.admin-layout{display:grid;gap:1rem;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:1rem}.protocol-layout{display:grid;gap:1rem;grid-template-columns:360px minmax(0,1fr);align-items:start}.photo-grid{display:grid;gap:1rem;grid-template-columns:repeat(2,minmax(0,1fr))}figure{margin:0}figure img,.photo-placeholder{align-items:center;aspect-ratio:4 / 3;background:#e9e9e9;border-radius:14px;display:flex;justify-content:center;object-fit:cover;width:100%}figcaption{color:#666;font-weight:800;margin-top:.45rem}form{display:grid;gap:1rem}.readonly-fieldset{border:0;margin:0;padding:0}.readonly-fieldset:disabled{pointer-events:none}label{color:#252525;display:grid;font-weight:900;gap:.4rem}input,select,textarea{background:#fff;border:1px solid #c9c9c9;border-radius:12px;min-height:44px;padding:.7rem .85rem;width:100%}input:focus,select:focus,textarea:focus{border-color:var(--brand-red);box-shadow:0 0 0 4px #e306131f;outline:none}textarea{min-height:110px;resize:vertical}.form-grid{display:grid;gap:1rem;grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid.compact{align-items:end;grid-template-columns:repeat(3,minmax(0,1fr))}.checkbox{align-items:center;display:flex;flex-direction:row}.checkbox input{min-height:auto;width:auto}.inline-form{align-items:end;display:grid;gap:.75rem;grid-template-columns:1fr auto}.history,.admin-list,.simple-list{display:grid;gap:.7rem;margin-top:1rem}.history-entry{background:#f6f6f6;border-radius:14px;padding:.9rem}.history-entry span{color:#666;display:block}.admin-list button{background:#f6f6f6;box-shadow:none;color:#171717;display:flex;justify-content:space-between;text-align:left}.compact-list{margin-top:.6rem}.compact-list button span{display:grid}.compact-list button span>small{color:#666;font-weight:700}.protocol-groups{display:grid;gap:.75rem;margin-top:1rem}.protocol-group{background:#f7f7f7;border:1px solid #e5e5e5;border-radius:16px;overflow:hidden}.protocol-group summary{align-items:center;cursor:pointer;display:flex;font-weight:900;justify-content:space-between;list-style:none;padding:.8rem}.protocol-group summary::-webkit-details-marker{display:none}.protocol-group summary small{color:#666;font-size:.78rem;text-align:right}.protocol-group .admin-list{padding:0 .7rem .7rem}.admin-sections{display:grid;gap:2rem}.admin-section{background:linear-gradient(135deg,rgba(227,6,19,.055),transparent 18rem),#ffffff80;border:1px solid var(--line);border-radius:28px;padding:clamp(1rem,3vw,1.5rem)}.section-heading{align-items:flex-end;border-bottom:1px solid var(--line);display:flex;gap:1rem;justify-content:space-between;margin-bottom:1rem;padding-bottom:1rem}.section-heading h2{font-size:clamp(1.45rem,3vw,2.1rem);margin-bottom:0}.section-heading span{background:#fff;border:1px solid var(--line);border-radius:999px;color:#555;font-size:.9rem;font-weight:900;padding:.45rem .75rem;white-space:nowrap}.simple-list span{background:#f6f6f6;border-radius:999px;padding:.5rem .75rem}.auth-card{margin:3rem auto;max-width:460px}.hero-panel{background:linear-gradient(135deg,rgba(227,6,19,.08),transparent 34%),#fff;border:1px solid var(--line);border-radius:28px;box-shadow:0 20px 60px #0000001a;margin:2rem auto;max-width:720px;padding:clamp(1.5rem,5vw,3rem)}.hero-panel p:not(.eyebrow){color:#555;font-size:1.1rem;margin-bottom:1.5rem}.material-accordion{display:grid;gap:1rem}.material-category{background:#ffffffeb;border:1px solid var(--line);border-radius:22px;box-shadow:0 16px 44px #00000014;overflow:hidden}.material-category summary{align-items:center;cursor:pointer;display:flex;font-size:1.15rem;font-weight:900;justify-content:space-between;list-style:none;padding:1.1rem 1.25rem}.material-category summary::-webkit-details-marker{display:none}.material-category summary small{color:#666;font-size:.85rem}.material-grid{border-top:1px solid var(--line);display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));padding:1rem}.material-card{background:#f8f8f8;border:1px solid #e4e4e4;border-radius:18px;padding:1rem}.material-card-top{align-items:center;display:flex;gap:.75rem;justify-content:space-between;margin-bottom:.75rem}.material-card-top strong{font-size:1.2rem}.maintenance-modules{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));margin-bottom:1.5rem}.maintenance-card{background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 16px 44px #00000014;display:grid;gap:1rem;padding:1rem}.maintenance-card h2{font-size:1.35rem;margin-bottom:.45rem}.module-tags{display:flex;flex-wrap:wrap;gap:.45rem}.module-tags button{background:#f1f1f1;box-shadow:none;border-radius:999px;color:#555;font-size:.8rem;font-weight:900;min-height:auto;padding:.35rem .6rem}.module-tags button.active{background:linear-gradient(135deg,var(--brand-red),var(--brand-red-dark));box-shadow:0 8px 16px #e306132e;color:#fff}.placeholder-panel{min-height:280px}.strand-capture{background:#f8f8f8;border:1px solid #e5e5e5;border-radius:20px;padding:1rem}.field-hint{color:#666;font-weight:800}.strand-current-circuit{align-self:end;background:#eef7ee;border:1px solid #cae8ca;border-radius:14px;color:#05603a;font-weight:900;margin:0;padding:.8rem}.strand-overview,.strand-circuits{display:grid;gap:.8rem;margin-top:1rem}.strand-group,.strand-circuit-card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}.strand-group summary{align-items:center;cursor:pointer;display:flex;font-weight:900;justify-content:space-between;list-style:none;padding:.85rem 1rem}.strand-group summary::-webkit-details-marker{display:none}.strand-group summary small{color:#666;font-size:.85rem}.strand-entry-list{border-top:1px solid var(--line);display:grid;gap:.5rem;padding:.75rem}.strand-entry{align-items:center;background:#f7f7f7;border-radius:14px;display:grid;gap:.6rem;grid-template-columns:70px 1fr 1.2fr auto;padding:.65rem}.strand-entry button{min-height:36px}.smoke-detector-list{display:grid;gap:.45rem;margin-top:.75rem;overflow-x:auto}.smoke-detector-head,.smoke-detector-row{align-items:center;display:grid;gap:.45rem;grid-template-columns:34px minmax(72px,.8fr) minmax(88px,1fr) minmax(96px,1fr) minmax(96px,1fr) minmax(88px,.9fr) minmax(92px,.9fr) minmax(120px,1.2fr) 36px;min-width:980px}.smoke-detector-head{color:#666;font-size:.78rem;font-weight:800;padding:0 .35rem;text-transform:uppercase}.smoke-detector-row{background:#f7f7f7;border-radius:14px;padding:.45rem}.smoke-detector-row input,.smoke-detector-row select{min-height:38px;width:100%}.smoke-detector-row button{min-height:38px;padding-inline:.5rem}.smoke-renewal-preview{display:grid;gap:.45rem;margin:.75rem 0 1rem}.smoke-renewal-item{background:#fff7f7;border:1px solid #f0caca;border-radius:12px;display:grid;gap:.15rem;padding:.65rem .75rem}.smoke-renewal-item small{color:#666}.strand-circuit-card{padding:1rem}.strand-circuit-card h3{margin:0 0 .75rem}.stock-pill{border-radius:999px;font-size:.82rem;font-weight:900;padding:.3rem .65rem}.stock-available{background:#d1fadf;color:#05603a}.stock-empty{background:#eee;color:#555}.panel-divider{border:0;border-top:1px solid var(--line);margin:1.5rem 0}.protocol-section{border-top:1px solid var(--line);display:grid;gap:1rem;margin-top:1.5rem;padding-top:1.25rem}.protocol-section h3{font-size:1.25rem;margin:0}.check-grid{display:grid;gap:.7rem}.check-row{align-items:center;background:#f7f7f7;border:1px solid #e5e5e5;border-radius:14px;display:grid;gap:1rem;grid-template-columns:minmax(0,1fr) 110px;padding:.75rem}.check-row select{min-height:38px}.input-with-action{display:grid;gap:.5rem;grid-template-columns:minmax(0,1fr) 52px}.measurement-dashboard{display:grid;gap:1rem;grid-template-columns:repeat(2,minmax(0,1fr))}.mini-panel{background:#f8f8f8;border:1px solid #e5e5e5;border-radius:18px;padding:1rem}.mini-panel h4{margin:0 0 .75rem}.battery-bars{display:grid;gap:.45rem}.resistance-ui-legend{display:flex;flex-wrap:wrap;gap:.75rem;margin-bottom:.4rem}.resistance-ui-legend span{align-items:center;color:#555;display:inline-flex;font-size:.82rem;font-weight:900;gap:.35rem}.resistance-ui-legend i{border-radius:999px;display:inline-block;height:10px;width:22px}.resistance-ui-legend .target{background:#111;width:4px}.resistance-ui-legend .ok{background:#12b76a}.battery-bar-row{align-items:center;display:grid;gap:.55rem;grid-template-columns:54px minmax(0,1fr) 82px}.battery-bar-row span,.battery-bar-row strong{color:#555;font-size:.8rem}.battery-bar-row strong{display:grid;line-height:1.1}.battery-bar-row small{color:#777;font-size:.72rem}.battery-bar-track{background:#e8e8e8;border-radius:999px;height:12px;overflow:hidden;position:relative}.battery-bar{display:block;height:100%;min-width:2px}.battery-target-marker{background:#111;bottom:-3px;display:block;position:absolute;top:-3px;width:2px}.battery-bar-ok{background:#12b76a}.battery-bar-warning{background:#f79009}.battery-bar-danger{background:#d92d20}.discharge-chart svg{background:#fff;border:1px solid #e5e5e5;border-radius:14px;height:220px;width:100%}.discharge-chart .axis-line{stroke:#888;stroke-width:1}.discharge-chart .voltage-grid{stroke:#c7c7c7;stroke-width:.45}.discharge-chart rect{print-color-adjust:exact;-webkit-print-color-adjust:exact}.discharge-chart .deep-limit{stroke:#e30613;stroke-dasharray:2 1.4;stroke-width:1.15}.discharge-chart .deep-limit-label{fill:#e30613;font-size:3px;font-weight:650}.discharge-chart .battery-axis-label{fill:#111;font-size:3px;font-weight:600}.discharge-chart polyline{fill:none;stroke:var(--brand-red);stroke-linecap:round;stroke-linejoin:round;stroke-width:3}.discharge-chart circle{fill:var(--brand-red)}.discharge-chart text{fill:#555;font-size:3px}.discharge-legend{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:.55rem}.discharge-legend span{align-items:center;color:#555;display:inline-flex;font-size:.82rem;font-weight:800;gap:.3rem}.discharge-legend i{border-radius:3px;display:inline-block;height:10px;width:20px}.chart-hint{color:#666;font-size:.85rem;margin:.45rem 0 0}.cycle-summary,.cycle-actions,.findings{display:grid;gap:.5rem;margin-top:.75rem}.cycle-summary span,.finding{border-radius:12px;font-weight:800;margin:0;padding:.65rem .8rem}.cycle-summary span{background:#fff;color:#555}.cycle-summary-button{background:#fff;border:1px solid #e4e4e4;box-shadow:none;color:#555;justify-content:flex-start;min-height:auto;text-align:left}.finding-ok{background:#d1fadf;color:#05603a}.finding-info{background:#e0f2fe;color:#075985}.finding-warning{background:#fef0c7;color:#93370d}.finding-danger{background:#fee4e2;color:#912018}.modal-backdrop{align-items:center;background:#0000009e;display:flex;top:0;right:0;bottom:0;left:0;justify-content:center;padding:1rem;position:fixed;z-index:100}.measurement-modal{background:#fff;border-radius:28px;box-shadow:0 24px 70px #0000004d;max-width:620px;padding:clamp(1rem,4vw,2rem);width:100%}.measurement-modal h2{font-size:clamp(2rem,8vw,4rem)}.measurement-modal input{font-size:clamp(2rem,9vw,4.5rem);font-weight:900;min-height:88px;text-align:center}.measurement-modal .measurement-time-input{font-size:1.2rem;min-height:54px;text-align:left}.measurement-progress{display:grid;gap:.4rem;grid-template-columns:repeat(6,minmax(0,1fr))}.measurement-progress button{background:#f1f1f1;box-shadow:none;color:#222;min-height:46px;padding:.45rem}.measurement-progress button.active{background:var(--brand-black);color:#fff}.measurement-progress button.done{background:#d1fadf;color:#05603a}.signature-pad{display:grid;gap:.75rem}.signature-pad canvas{background:#fff;border:2px dashed #b8b8b8;border-radius:18px;height:180px;touch-action:none;width:100%}@media (max-width: 760px){.app-shell{display:block}.sidebar{border-bottom:4px solid var(--brand-red);border-right:0;min-height:auto;position:static}.brand-card{margin:0 auto;max-width:360px}.page-title,.detail-header,.section-heading{align-items:stretch;flex-direction:column}.section-heading span{white-space:normal}.container{padding-top:1rem}.detail-layout,.admin-layout,.protocol-layout,.form-grid,.form-grid.compact,.photo-grid,.inline-form{grid-template-columns:1fr}.device-card,.panel,.auth-card{border-radius:16px;padding:1rem}.device-card-body{grid-template-columns:minmax(0,1fr) 150px}.device-card-photo{height:125px}.check-row,.measurement-dashboard,.input-with-action{grid-template-columns:1fr}.measurement-progress{grid-template-columns:repeat(3,minmax(0,1fr))}.smoke-detector-head{display:none}.smoke-detector-row{gap:.55rem;grid-template-columns:1fr 1fr;min-width:0}.smoke-detector-row strong,.smoke-detector-row button{grid-column:1 / -1}button,.button{width:100%}}
