.connection-status{position:fixed;z-index:300;left:50%;top:72px;transform:translateX(-50%);display:flex;align-items:center;gap:12px;background:#7f2323;color:#fff;border-radius:999px;padding:9px 16px;box-shadow:0 8px 25px rgba(0,0,0,.25);font-size:.84rem}.connection-status[hidden]{display:none}.connection-status span{opacity:.9}.theme-toggle{position:fixed;z-index:99;right:18px;bottom:72px;width:44px;height:44px;border:1px solid #bdd8d3;border-radius:50%;background:#fff;color:#35564f;font-size:1.4rem;cursor:pointer;box-shadow:var(--sombra)}.pwa-update-dialog{border:0;border-radius:20px;padding:0;width:min(430px,calc(100% - 30px));box-shadow:0 20px 60px rgba(0,0,0,.3)}.pwa-update-dialog::backdrop{background:rgba(13,35,31,.65)}.pwa-update-dialog>div{padding:30px;text-align:center}.pwa-update-dialog .update-icon{display:grid;place-items:center;width:58px;height:58px;margin:auto;border-radius:50%;background:#eaf5f2;font-size:2rem}.pwa-update-dialog div>div{display:flex;justify-content:center;gap:10px;margin-top:22px}.report-upload-progress{margin:5px 0 12px}.report-upload-progress div{height:10px;background:#dbe8e5;border-radius:99px;overflow:hidden}.report-upload-progress i{display:block;width:0;height:100%;background:#557365;transition:width .2s}.camera-fab{position:fixed;z-index:90;right:18px;bottom:128px;border:0;border-radius:999px;padding:13px 18px;background:#948a50;color:#fff;font-weight:800;box-shadow:0 8px 24px rgba(0,0,0,.24);cursor:pointer}html[data-theme=dark]{color-scheme:dark;--fondo:#17211f;--blanco:#202d2a;--negro:#dbe9e5;--texto-sec:#bfd0cb;--piedra-claro:#2a3935;--cafe:#86aaa1;--cafe-oscuro:#a8c6bf;--sombra:0 4px 18px rgba(0,0,0,.28);--sombra-hover:0 14px 30px rgba(0,0,0,.42)}html[data-theme=dark] body{background:#17211f;color:#dbe9e5}html[data-theme=dark] .card,html[data-theme=dark] .admin-card,html[data-theme=dark] .operational-insights a,html[data-theme=dark] input,html[data-theme=dark] textarea,html[data-theme=dark] select,html[data-theme=dark] .dashboard-search>label,html[data-theme=dark] .dashboard-search-results{background:#202d2a;color:#dbe9e5;border-color:#3d554f}html[data-theme=dark] h1,html[data-theme=dark] h2,html[data-theme=dark] h3,html[data-theme=dark] .admin-card h3{color:#e5f1ee}html[data-theme=dark] .muted,html[data-theme=dark] small{color:#a9bdb8}html[data-theme=dark] .theme-toggle{background:#263632;color:#fff;border-color:#4e6b64}html[data-theme=dark] .admin-card:hover{background:#2b3e39}@media(max-width:600px){.connection-status{top:12px;width:calc(100% - 24px);justify-content:center;flex-wrap:wrap;border-radius:14px}.camera-fab{right:12px;bottom:122px}.theme-toggle{right:14px}}

.pwa-update-dialog{position:fixed;inset:0;z-index:2147483647;max-width:none;max-height:none;margin:auto;overflow:visible;background:transparent;box-shadow:none}.pwa-update-dialog[open]{display:grid;place-items:center;animation:pwa-backdrop-in .24s ease-out}.pwa-update-dialog::backdrop{background:rgba(7,20,17,.78);backdrop-filter:blur(5px)}.pwa-update-dialog .pwa-update-card{width:min(460px,calc(100vw - 28px));box-sizing:border-box;padding:34px 32px 30px;border:1px solid rgba(255,255,255,.5);border-radius:24px;background:#fff;color:#243a35;text-align:center;box-shadow:0 28px 90px rgba(0,0,0,.48);animation:pwa-card-in .38s cubic-bezier(.2,.85,.25,1.12)}.pwa-update-dialog h2{margin:18px 0 10px;color:#243a35}.pwa-update-dialog p{margin:0;color:#57716b;line-height:1.55}.pwa-update-dialog .update-icon{box-shadow:0 0 0 8px rgba(85,115,101,.1)}.pwa-update-dialog .pwa-update-actions{display:flex;justify-content:center;gap:10px;margin-top:24px}.pwa-update-dialog .pwa-update-progress{display:block;margin-top:24px;text-align:left}.pwa-update-dialog .pwa-update-progress[hidden]{display:none}.pwa-update-progress span{display:block;margin-bottom:9px;color:#47645d;font-size:.88rem;font-weight:700}.pwa-update-progress i{position:relative;display:block;height:8px;overflow:hidden;border-radius:999px;background:#dceae6}.pwa-update-progress i::after{content:"";position:absolute;inset:0;width:42%;border-radius:inherit;background:linear-gradient(90deg,#948a50,#557365);animation:pwa-progress 1.05s ease-in-out infinite}.pwa-update-dialog.is-updating .update-icon{animation:pwa-spin 1.1s linear infinite}.pwa-update-dialog.is-updating #update-now::before{content:"";display:inline-block;width:14px;height:14px;margin-right:8px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;vertical-align:-2px;animation:pwa-spin .75s linear infinite}.pwa-update-dialog button:disabled{cursor:wait;opacity:.72}html[data-theme=dark] .pwa-update-dialog .pwa-update-card{border-color:#49615b;background:#202d2a;color:#e5f1ee}html[data-theme=dark] .pwa-update-dialog h2{color:#e5f1ee}html[data-theme=dark] .pwa-update-dialog p,html[data-theme=dark] .pwa-update-progress span{color:#bfd0cb}@keyframes pwa-card-in{from{opacity:0;transform:translateY(24px) scale(.92)}to{opacity:1;transform:none}}@keyframes pwa-backdrop-in{from{opacity:0}to{opacity:1}}@keyframes pwa-spin{to{transform:rotate(360deg)}}@keyframes pwa-progress{0%{transform:translateX(-110%)}50%{transform:translateX(95%)}100%{transform:translateX(245%)}}@media(max-width:600px){.pwa-update-dialog .pwa-update-card{padding:28px 20px 22px;border-radius:20px}.pwa-update-dialog .pwa-update-actions{flex-direction:column-reverse}.pwa-update-dialog .pwa-update-actions .btn{width:100%;min-height:48px}}@media(prefers-reduced-motion:reduce){.pwa-update-dialog[open],.pwa-update-dialog .pwa-update-card,.pwa-update-dialog.is-updating .update-icon,.pwa-update-dialog.is-updating #update-now::before,.pwa-update-progress i::after{animation-duration:.01ms;animation-iteration-count:1}}
