:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172033;background:#f3f5f8;line-height:1.35}
*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}.muted{color:#667085}.topbar{position:sticky;top:0;z-index:20;display:flex;gap:12px;align-items:center;justify-content:space-between;padding:14px max(14px,env(safe-area-inset-right)) 14px max(14px,env(safe-area-inset-left));background:#111827;color:white;box-shadow:0 2px 10px #0002}.topbar h1{margin:0;font-size:1.35rem}.topbar p{margin:2px 0 0;font-size:.83rem;color:#cbd5e1}.primary{background:#f2c300;color:#111827;border:1px solid #d2a900;font-weight:700}.danger{background:#b42318;color:white;border:1px solid #912018}.tabs{position:sticky;top:72px;z-index:15;display:flex;gap:6px;padding:8px 10px;background:#fff;border-bottom:1px solid #e5e7eb;overflow:auto}.tab{white-space:nowrap;border:0;background:#eef1f5;border-radius:999px;padding:9px 13px}.tab.active{background:#111827;color:white}main{max-width:1080px;margin:0 auto;padding:12px 12px 80px}.card{background:white;border:1px solid #e4e7ec;border-radius:14px;padding:14px;box-shadow:0 2px 8px #1018280b;margin-bottom:12px}.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.toolbar input[type="search"]{flex:1 1 280px}.toolbar input,.toolbar select,.fields-grid input,.fields-grid select,.fields-grid textarea{border:1px solid #cfd4dc;border-radius:9px;padding:10px;background:#fff;color:#172033;min-height:42px}.equipment-list{display:grid;gap:10px}.equipment-item{width:100%;text-align:left;border:1px solid #dfe3e8;background:white;border-radius:14px;padding:14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;box-shadow:0 2px 7px #10182809}.equipment-item h3{margin:0 0 4px;font-size:1.02rem}.equipment-meta{display:flex;gap:7px;flex-wrap:wrap;color:#667085;font-size:.88rem}.chip{display:inline-flex;align-items:center;border-radius:999px;padding:3px 8px;background:#eef2f6;color:#344054}.chip.warn{background:#fff0e6;color:#9a3412}.chip.ok{background:#eaf8ef;color:#166534}.chevron{align-self:center;font-size:1.4rem;color:#98a2b3}.summary-card{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;text-align:center}.summary-card div{background:#f8fafc;border-radius:10px;padding:10px}.summary-card strong{display:block;font-size:1.45rem}.summary-card span{font-size:.78rem;color:#667085}dialog{width:min(980px,100%);max-height:100dvh;border:0;padding:0;border-radius:18px;box-shadow:0 24px 70px #0005}dialog::backdrop{background:#111827aa}.dialog-shell{padding:16px;overflow:auto;max-height:100dvh}.dialog-head{display:flex;justify-content:space-between;gap:12px;align-items:start;position:sticky;top:-16px;margin:-16px -16px 12px;padding:15px 16px;background:white;border-bottom:1px solid #e5e7eb;z-index:3}.dialog-head h2{margin:0}.dialog-head p{margin:3px 0 0}.icon-btn{border:0;background:#eef2f6;border-radius:50%;width:40px;height:40px}.photo-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}.photo-card{display:grid;gap:7px}.photo-card>label{font-weight:700}.photo-button{min-height:210px;border:2px dashed #c8ced7;background:#f8fafc;border-radius:14px;padding:8px;display:grid;place-items:center;color:#475467;overflow:hidden}.photo-button img{display:block;width:100%;height:210px;object-fit:contain;border-radius:9px;background:#111827}.link-btn{border:0;background:transparent;color:#475467;text-decoration:underline;padding:3px;justify-self:start}.grid{display:grid}.fields-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}.fields-grid label{display:grid;gap:5px;font-size:.88rem;font-weight:600}.fields-grid .full{grid-column:1/-1}.checkbox-label{display:flex!important;align-items:center;gap:8px;margin-top:24px}.checkbox-label input{min-height:auto;width:20px;height:20px}.technical-fields{margin-top:12px}details{border:1px solid #e4e7ec;border-radius:12px;padding:12px;margin:12px 0}summary{font-weight:700;cursor:pointer}.inset-card{background:#f8fafc;box-shadow:none}.inset-card h3{margin-top:0}.dialog-actions{display:flex;gap:8px;flex-wrap:wrap;position:sticky;bottom:-16px;background:white;padding:12px 0 16px;margin-top:12px;border-top:1px solid #e5e7eb}.dialog-actions button,.card button,.topbar button{border-radius:9px;padding:10px 14px}.danger-card{border-color:#f4c7c3}.empty{text-align:center;padding:30px;color:#667085}.status-dot{width:10px;height:10px;border-radius:50%;display:inline-block;background:#98a2b3}.status-dot.done{background:#16a34a}.status-dot.anomaly{background:#ea580c}
@media (max-width:680px){.topbar{align-items:flex-start}.topbar .primary{font-size:.8rem;padding:9px}.tabs{top:78px}.photo-grid,.fields-grid{grid-template-columns:1fr}.fields-grid .full{grid-column:auto}.photo-button{min-height:170px}.photo-button img{height:170px}.summary-card{grid-template-columns:repeat(3,1fr)}.summary-card span{font-size:.7rem}.dialog-shell{padding:12px}.dialog-head{top:-12px;margin:-12px -12px 10px}.dialog-actions{bottom:-12px}}
.top-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.top-actions button{border-radius:9px;padding:10px 14px}.top-actions button:not(.primary){background:#fff;color:#111827;border:1px solid #d0d5dd;font-weight:700}.drive-actions{margin-top:10px}.drive-actions button{border-radius:9px;padding:10px 14px}
@media (max-width:680px){.top-actions{justify-content:flex-end}.top-actions button{font-size:.76rem;padding:8px 9px}}
