:root{--brand-red:#e2001a;--brand-red-dark:#b30015;--brand-red-soft:#fdeaec;--brand-black:#1a1a1a;--brand-white:#fff}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;overflow:hidden}.app{background:#000;width:100vw;height:100dvh;min-height:100vh;position:relative;overflow:hidden}.ar-container{z-index:1;width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden}.ar-container video,.ar-container canvas{object-fit:cover;display:block;position:absolute;top:0;left:0}.ar-container canvas{width:100%;height:100%}.scan-message{color:#fff;text-align:center;z-index:10;pointer-events:none;background:#000000c7;border-radius:20px;width:calc(100% - 40px);max-width:420px;padding:20px;position:absolute;bottom:30px;left:50%;transform:translate(-50%)}.scan-icon{margin-bottom:8px;font-size:32px}.scan-message h2{margin:0 0 8px;font-size:22px}.scan-message p{opacity:.9;margin:0;font-size:14px;line-height:1.5}.event-panel{z-index:10;text-align:center;background:#fffffff5;border-radius:24px;width:calc(100% - 30px);max-width:430px;padding:20px;position:absolute;bottom:15px;left:50%;transform:translate(-50%);box-shadow:0 8px 30px #00000040}.event-description{color:#555;margin:0 0 18px;font-size:16px}.activities{flex-direction:column;gap:10px;display:flex}.activity{text-align:left;background:#f3f3f3;border-radius:14px;align-items:center;gap:12px;padding:12px 14px;font-size:15px;display:flex}.activity-number{color:#fff;background:#222;border-radius:50%;justify-content:center;align-items:center;min-width:30px;height:30px;font-weight:700;display:flex}.welcome-actions{border-top:1px solid #eee;gap:12px;margin-top:20px;padding-top:16px;display:flex}.action-btn{cursor:pointer;border:none;border-radius:12px;flex:1;justify-content:center;align-items:center;gap:8px;padding:14px 16px;font-size:15px;font-weight:600;transition:all .2s;display:flex}.action-btn.primary{color:#fff;background:#e2001a}.action-btn.primary:hover{background:#b30015}.action-btn.secondary{color:#333;background:#f0f0f0;border:1px solid #e0e0e0}.action-btn.secondary:hover{background:#e0e0e0}.loading-overlay{z-index:20;color:#fff;background:#000000d9;flex-direction:column;justify-content:center;align-items:center;gap:16px;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.spinner{border:4px solid #fff3;border-top-color:#e2001a;border-radius:50%;width:48px;height:48px;animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.loading-overlay p{opacity:.9;margin:0;font-size:16px}.spinner-small{border:3px solid #e2001a33;border-top-color:#e2001a;border-radius:50%;width:24px;height:24px;margin:0 auto 12px;animation:1s linear infinite spin}.error-state{justify-content:center;align-items:center;display:flex}.error-panel{text-align:center;background:#fff;border-radius:24px;max-width:400px;margin:20px;padding:32px;box-shadow:0 8px 30px #0000004d}.error-panel h2{color:#d32f2f;margin:0 0 12px;font-size:24px}.error-panel p{color:#555;margin:0 0 24px;line-height:1.5}.error-panel button{color:#fff;cursor:pointer;background:#e2001a;border:none;border-radius:12px;padding:12px 28px;font-size:16px;font-weight:600;transition:background .2s}.error-panel button:hover{background:#b30015}.error-panel .hint{color:#888;margin-top:12px;font-size:13px}.event-logo{object-fit:contain;max-width:120px;height:auto;margin-bottom:12px}.brand-logos{flex-wrap:wrap;flex:1;justify-content:center;align-items:center;gap:18px;display:flex}.brand-logos-single{justify-content:center}.brand-logos-single .logo-outsourcing{max-width:160px;max-height:70px;margin:0 auto 4px}.brand-bar{z-index:21;background:#ffffffeb;border-radius:14px;align-items:center;gap:14px;max-width:calc(100vw - 120px);padding:8px 16px;display:flex;position:fixed;top:16px;left:50%;transform:translate(-50%);box-shadow:0 2px 10px #0000002e}.brand-bar-logo{object-fit:contain;height:auto}.brand-bar .logo-outsourcing{max-width:112px;max-height:42px}.brand-bar .logo-optimos{max-width:148px;max-height:34px}.brand-bar-divider{background:#00000026;align-self:stretch;width:1px}.brand-logos .logo-outsourcing{max-width:110px;max-height:64px;margin-bottom:0}.brand-logos .logo-optimos{max-width:140px;max-height:48px;margin-bottom:0}.panel-header{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.hamburger-btn{cursor:pointer;color:#333;background:#f0f0f0;border:none;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;transition:all .2s;display:flex}.hamburger-btn:hover{background:#e0e0e0}.hamburger-btn svg{stroke-width:2.5px;width:24px;height:24px}.ar-hamburger{z-index:20;background:#fffffff2;position:fixed;top:16px;left:16px;box-shadow:0 2px 8px #00000026}.ar-hamburger:hover{background:#fff}.event-panel .img{text-align:center;flex:1;margin-bottom:8px}.event-panel h1{margin:0 0 8px;font-size:28px}.agenda-panel{background:#fffffff5;border-radius:16px;max-height:60vh;margin:12px;padding:16px;overflow-y:auto;box-shadow:0 4px 20px #00000026}.agenda-panel h3{color:#222;text-align:center;margin:0 0 16px;font-size:18px}.agenda-section{margin-bottom:16px}.agenda-section h4{color:#666;text-transform:uppercase;letter-spacing:.5px;margin:0 0 8px;font-size:14px;font-weight:600}.agenda-item{background:#f8f8f8;border-radius:10px;align-items:center;gap:12px;margin-bottom:8px;padding:12px;transition:all .2s;display:flex}.agenda-item.current{background:#fdeaec;border-left:4px solid #e2001a}.agenda-item.completed{opacity:.8;background:#e8f5e9}.activity-time{color:#888;white-space:nowrap;min-width:50px;font-size:12px}.activity-info{text-align:left;flex-direction:column;flex:1;gap:2px;display:flex}.activity-name{color:#222;font-size:14px;font-weight:600}.activity-desc{color:#666;font-size:12px}.status-badge{white-space:nowrap;border-radius:20px;padding:4px 8px;font-size:11px;font-weight:600}.status-badge.active{color:#fff;background:#e2001a}.status-badge.pending{color:#666;background:#e0e0e0}.status-badge.done{color:#fff;background:#4caf50}.passport-view{background:#fffffff5;border-radius:16px;max-height:70vh;margin:12px;padding:16px;overflow-y:auto;box-shadow:0 4px 20px #00000026}.passport-screen{z-index:10;width:calc(100% - 30px);max-width:560px;max-height:85vh;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.passport-scan-btn{flex:none;margin:0;padding:10px 12px;font-size:13px}.passport-header{border-bottom:1px solid #eee;justify-content:space-between;align-items:center;margin-bottom:16px;padding-bottom:12px;display:flex}.passport-header h3{color:#222;margin:0;font-size:18px}.passport-progress{flex-direction:column;gap:4px;min-width:120px;display:flex}.passport-progress span{color:#666;text-align:right;font-size:13px}.progress-bar{background:#e0e0e0;border-radius:3px;height:6px;overflow:hidden}.progress-fill{background:linear-gradient(90deg,#e2001a,#ff5c6c);border-radius:3px;height:100%;transition:width .3s}.passport-grid{grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:16px;display:grid}.passport-station{aspect-ratio:1;background:#f8f8f8;border:2px solid #0000;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:12px;transition:all .3s;display:flex}.passport-station.completed{background:#fdeaec;border-color:#e2001a;transform:scale(1.02)}.station-icon{color:#666;background:#e0e0e0;border-radius:50%;justify-content:center;align-items:center;width:40px;height:40px;font-size:18px;font-weight:700;display:flex}.passport-station.completed .station-icon{color:#fff;background:#e2001a}.passport-station.stamp-active{border-color:#e2001a;animation:1.8s ease-out stationStamp;box-shadow:0 0 0 5px #e2001a33}@keyframes stationStamp{0%{transform:scale(.92)rotate(-3deg)}45%{transform:scale(1.06)rotate(2deg)}to{transform:scale(1.02)rotate(0)}}.station-code{color:#888;text-transform:uppercase;font-size:11px;font-weight:600}.station-word{color:#222;min-height:20px;font-size:14px;font-weight:600}.passport-complete{text-align:center;background:#fdeaec;border:2px solid #e2001a;border-radius:12px;padding:16px;animation:2s infinite pulse}@keyframes pulse{0%,to{box-shadow:0 0 #e2001a66}50%{box-shadow:0 0 0 8px #e2001a00}}.passport-complete h4{color:#b30015;margin:0 0 8px}.complete-phrase{color:#222;margin:0;font-size:16px;font-style:italic;font-weight:600}.passport-modal-overlay{z-index:50;background:#000000d9;justify-content:center;align-items:center;width:100%;height:100%;padding:16px;animation:.3s ease-out modalFadeIn;display:flex;position:fixed;top:0;left:0}.passport-modal{background:#fff;border-radius:20px;width:100%;max-width:380px;max-height:85vh;padding:24px;position:relative;overflow-y:auto;box-shadow:0 12px 40px #0000004d}.passport-modal-close{cursor:pointer;color:#666;background:#f0f0f0;border:none;border-radius:50%;justify-content:center;align-items:center;width:36px;height:36px;font-size:24px;display:flex;position:absolute;top:12px;right:12px}.passport-modal-close:hover{color:#222;background:#e0e0f0}.stamp-overlay{z-index:100;pointer-events:none;background:#000000b3;justify-content:center;align-items:center;width:100%;height:100%;animation:.3s ease-out stampFadeIn;display:flex;position:fixed;top:0;left:0}@keyframes stampFadeIn{0%{opacity:0}to{opacity:1}}.stamp-ring{border:6px solid #e2001a;border-radius:50%;width:160px;height:160px;animation:1.5s ease-out stampRing;position:absolute}@keyframes stampRing{0%{opacity:0;transform:scale(.3)rotate(-15deg)}50%{opacity:1;transform:scale(1.1)rotate(5deg)}to{opacity:1;transform:scale(1)rotate(0)}}.stamp-text{z-index:1;color:#e2001a;text-shadow:0 0 20px #e2001acc,2px 2px 4px #0003;text-align:center;padding:0 20px;font-size:28px;font-weight:800;animation:1.5s ease-out stampText;position:relative}@keyframes stampText{0%{opacity:0;transform:scale(.1)rotate(-10deg)}50%{opacity:1;transform:scale(1.2)rotate(3deg)}to{opacity:1;transform:scale(1)rotate(0)}}.stamp-check{color:#4caf50;text-shadow:0 0 20px #4caf50cc;font-size:60px;animation:1s ease-out .5s both stampCheck;position:absolute;bottom:80px}@keyframes stampCheck{0%{opacity:0;transform:scale(0)rotate(-45deg)}to{opacity:1;transform:scale(1)rotate(0)}}.celebration-overlay{z-index:100;background:linear-gradient(135deg,#e2001a26,#e2001a26);justify-content:center;align-items:center;width:100%;height:100%;padding:20px;animation:.5s ease-out celebrationFadeIn;display:flex;position:fixed;top:0;left:0}@keyframes celebrationFadeIn{0%{opacity:0}to{opacity:1}}.confetti{pointer-events:none;width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden}.confetti-piece{background:var(--color);opacity:0;width:10px;height:10px;animation:confettiFall var(--duration) ease-in var(--delay) forwards;transform:rotate(calc(var(--i) * 12deg));border-radius:2px;position:absolute;top:-10px}@keyframes confettiFall{0%{opacity:1;transform:translateY(-10px)rotate(0)}to{opacity:0;transform:translateY(calc(100vh + 20px))rotate(720deg)}}.celebration-content{z-index:1;text-align:center;max-width:90%;position:relative}.celebration-text h2{color:#222;text-shadow:2px 2px 4px #0000001a;margin:0 0 16px;font-size:clamp(24px,6vw,36px)}.phrase-reveal{color:#e2001a;background:#fff;border:2px solid #e2001a;border-radius:16px;margin:0;padding:16px 24px;font-size:clamp(18px,4vw,24px);font-style:italic;font-weight:600;animation:1s ease-out .5s both phraseReveal;box-shadow:0 4px 20px #00000026}@keyframes phraseReveal{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}.qr-modal-overlay{z-index:50;background:#000000d9;justify-content:center;align-items:center;width:100%;height:100%;padding:16px;animation:.3s ease-out modalFadeIn;display:flex;position:fixed;top:0;left:0}@keyframes modalFadeIn{0%{opacity:0}to{opacity:1}}.qr-modal{text-align:center;background:#fff;border-radius:20px;width:100%;max-width:360px;padding:24px;position:relative;box-shadow:0 12px 40px #0000004d}.qr-modal-close{cursor:pointer;color:#666;background:#f0f0f0;border:none;border-radius:50%;justify-content:center;align-items:center;width:36px;height:36px;font-size:24px;transition:all .2s;display:flex;position:absolute;top:12px;right:12px}.qr-modal-close:hover{color:#222;background:#e0e0e0}.qr-modal h3{color:#222;margin:0 0 8px;font-size:20px}.qr-instruction{color:#666;margin:0 0 20px;font-size:14px}.qr-reader-container{aspect-ratio:1;background:#000;border-radius:12px;width:100%;margin-bottom:16px;overflow:hidden}.qr-reader-container canvas,.qr-reader-container video{object-fit:cover;width:100%!important;height:100%!important}.qr-error{color:#c62828;background:#ffebee;border-radius:8px;margin:12px 0;padding:12px;font-size:14px}.qr-result{background:#e8f5e9;border-radius:12px;margin-top:16px;padding:16px;animation:.3s ease-out slideUp}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.qr-result-icon{margin-bottom:8px;font-size:48px}.qr-result p{margin:8px 0;font-size:15px}.qr-result .new-completion{color:#2e7d32;font-weight:600}.qr-result .already-done{color:#666;font-style:italic}.qr-result button{color:#fff;cursor:pointer;background:#e2001a;border:none;border-radius:8px;margin-top:12px;padding:12px 24px;font-size:15px;font-weight:600}.qr-result button:hover{background:#b30015}.qr-starting{color:#888;margin-top:16px;font-size:14px}.survey-modal-overlay{z-index:50;background:#000000d9;justify-content:center;align-items:center;width:100%;height:100%;padding:16px;display:flex;position:fixed;top:0;left:0}.survey-modal{background:#fff;border-radius:20px;width:100%;max-width:380px;max-height:85vh;padding:24px;position:relative;overflow-y:auto;box-shadow:0 12px 40px #0000004d}.survey-modal-close{cursor:pointer;color:#666;background:#f0f0f0;border:none;border-radius:50%;justify-content:center;align-items:center;width:36px;height:36px;font-size:24px;display:flex;position:absolute;top:12px;right:12px}.survey-modal-close:hover{background:#e0e0e0}.survey-modal h3{color:#222;text-align:center;margin:0 0 8px;font-size:20px}.survey-intro{color:#666;text-align:center;margin:0 0 20px;font-size:14px}.survey-question{margin-bottom:24px}.survey-question label{color:#222;margin-bottom:10px;font-size:15px;font-weight:500;display:block}.rating-input{justify-content:center;gap:8px;display:flex}.rating-option{cursor:pointer;flex-direction:column;align-items:center;gap:4px;display:flex}.rating-option input{opacity:0;width:0;height:0;position:absolute}.rating-option span{color:#666;background:#f0f0f0;border:2px solid #0000;border-radius:50%;justify-content:center;align-items:center;width:44px;height:44px;font-size:16px;font-weight:600;transition:all .2s;display:flex}.rating-option input:checked+span{color:#fff;background:#e2001a;border-color:#b30015;transform:scale(1.1)}.rating-option:hover span{background:#fdeaec}.choice-input{flex-direction:column;gap:10px;display:flex}.choice-option{cursor:pointer;background:#f8f8f8;border:2px solid #0000;border-radius:10px;align-items:center;gap:12px;padding:14px 16px;transition:all .2s;display:flex}.choice-option input{opacity:0;width:0;height:0;position:absolute}.choice-option span{color:#333;font-size:15px}.choice-option:has(input:checked){background:#fdeaec;border-color:#e2001a}.choice-option:hover{background:#f0f0f0}.survey-question textarea{resize:vertical;border:2px solid #e0e0e0;border-radius:10px;width:100%;min-height:100px;padding:12px 16px;font-family:inherit;font-size:15px;transition:border-color .2s}.survey-question textarea:focus{border-color:#e2001a;outline:none}.survey-submit{color:#fff;cursor:pointer;background:#e2001a;border:none;border-radius:10px;width:100%;margin-top:8px;padding:14px;font-size:16px;font-weight:600;transition:background .2s}.survey-submit:hover:not(:disabled){background:#b30015}.survey-submit:disabled{opacity:.6;cursor:not-allowed}.survey-complete{text-align:center;padding:20px}.survey-complete h3{color:#2e7d32;margin:0 0 12px}.survey-complete p{color:#666;margin:0 0 20px}.survey-complete button{color:#fff;cursor:pointer;background:#4caf50;border:none;border-radius:10px;padding:12px 28px;font-size:16px;font-weight:600}.survey-complete button:hover{background:#388e3c}.sidebar-overlay{z-index:50;opacity:0;visibility:hidden;background:#00000080;transition:opacity .3s,visibility .3s;position:fixed;inset:0}.sidebar-overlay.open{opacity:1;visibility:visible}.sidebar-panel{z-index:101;background:#fff;flex-direction:column;width:85%;max-width:320px;transition:transform .3s;display:flex;position:fixed;top:0;bottom:0;right:0;transform:translate(100%);box-shadow:-4px 0 20px #00000026}.sidebar-panel.open{transform:translate(0)}.sidebar-header{border-bottom:1px solid #eee;justify-content:space-between;align-items:center;padding:16px 20px;display:flex}.sidebar-header h2{color:#222;margin:0;font-size:18px;font-weight:600}.sidebar-close{cursor:pointer;color:#666;background:#f0f0f0;border:none;border-radius:50%;justify-content:center;align-items:center;width:40px;height:40px;font-size:24px;transition:all .2s;display:flex}.sidebar-close:hover{color:#222;background:#e0e0e0}.sidebar-content{flex:1;padding:20px;overflow-y:auto}.sidebar-menu{margin-top:24px}.sidebar-section{margin-bottom:24px}.sidebar-section h3{color:#888;text-transform:uppercase;letter-spacing:.5px;margin:0 0 12px;font-size:13px;font-weight:600}.sidebar-item{cursor:pointer;background:#f8f8f8;border:none;border-radius:12px;align-items:center;gap:14px;width:100%;margin-bottom:10px;padding:14px 16px;transition:all .2s;display:flex}.sidebar-item:hover{background:#f0f0f0}.sidebar-item.active{background:#fdeaec;box-shadow:inset 4px 0 #e2001a}.sidebar-icon{text-align:center;width:28px;font-size:20px}.sidebar-item span:last-child{color:#333;font-size:15px;font-weight:500}.screen-placeholder{top:50%;bottom:auto;transform:translate(-50%,-50%)}.screen-placeholder h2{margin:0 0 12px}.screen-placeholder p{color:#666;margin:0}body.sidebar-open{overflow:hidden}@media (width<=600px){.app{height:100dvh;min-height:100dvh}.ar-hamburger{top:max(12px, env(safe-area-inset-top));left:max(12px, env(safe-area-inset-left))}.scan-message{bottom:max(16px, env(safe-area-inset-bottom));border-radius:16px;width:calc(100% - 24px);padding:16px}.scan-message h2{font-size:18px}.scan-message p{font-size:13px}.event-panel{bottom:max(12px, env(safe-area-inset-bottom));border-radius:18px;width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:16px;overflow-y:auto}.event-panel h1{font-size:clamp(21px,7vw,28px)}.event-description{font-size:14px}.activity{align-items:flex-start;gap:8px;padding:10px;font-size:14px}.activity-number{min-width:26px;height:26px;font-size:13px}.activity .activity-time,.activity .status-badge{text-align:right;margin-left:auto}.welcome-actions{flex-direction:column;gap:8px}.agenda-panel{border-radius:14px;width:calc(100% - 24px);max-height:42dvh;margin:8px 12px;padding:12px}.agenda-item{flex-wrap:wrap;align-items:flex-start;gap:8px;padding:10px}.agenda-item .activity-info{min-width:0}.agenda-item .status-badge{margin-left:auto}.passport-screen{top:max(12px, env(safe-area-inset-top));bottom:max(12px, env(safe-area-inset-bottom));width:calc(100% - 24px);max-height:none;padding:14px;overflow-y:auto;transform:translate(-50%)}.passport-header{flex-wrap:wrap;gap:10px}.passport-header h3{flex:100%}.passport-progress{flex:1;min-width:0}.passport-progress span{text-align:left}.passport-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.passport-station{gap:5px;padding:8px}.station-icon{width:32px;height:32px;font-size:15px}.station-word{overflow-wrap:anywhere;text-align:center;max-width:100%}.sidebar-panel{width:min(88%,340px);padding-bottom:env(safe-area-inset-bottom)}.sidebar-content{padding:16px}.sidebar-item{min-height:48px;padding:12px}.qr-modal-overlay{padding:8px;padding-bottom:max(8px, env(safe-area-inset-bottom));align-items:flex-end}.qr-modal{border-radius:18px 18px 12px 12px;max-width:none;max-height:calc(100dvh - 16px);padding:20px 16px 16px;overflow-y:auto}.qr-reader-container{max-height:min(66dvh,340px)}}@media (width<=360px){.event-panel,.passport-screen{width:calc(100% - 16px);padding:12px}.passport-scan-btn{width:100%}.passport-grid{gap:6px}.status-badge{padding:3px 5px;font-size:10px}}@media (width>=601px) and (height<=700px){.event-panel{max-height:calc(100dvh - 24px);overflow-y:auto}.passport-screen{max-height:calc(100dvh - 24px)}}.welcome-docked-right .event-panel{z-index:30;width:min(400px,44vw);max-width:none;max-height:calc(100dvh - 100px);margin:0;animation:.35s ease-out itinerarySlideIn;position:fixed;inset:80px 16px auto auto;overflow-y:auto;transform:none}@keyframes itinerarySlideIn{0%{opacity:0;transform:translate(30px)}to{opacity:1;transform:translate(0)}}@media (width<=640px){.welcome-docked-right .event-panel{width:auto;max-height:42dvh;inset:auto 12px 12px}}.ar-switch-camera{z-index:20;background:#fffffff2;position:fixed;top:16px;left:auto;right:16px;box-shadow:0 2px 8px #00000026}.ar-switch-camera:hover{background:#fff}@media (width<=640px){.event-panel{width:calc(100% - 20px);max-width:100%;max-height:70dvh;padding:16px;bottom:10px;overflow-y:auto}.event-panel h1{font-size:22px}.brand-bar{gap:10px;max-width:calc(100vw - 130px);padding:6px 12px;top:10px}.brand-bar .logo-outsourcing{max-width:84px;max-height:32px}.brand-bar .logo-optimos{max-width:110px;max-height:26px}.ar-hamburger,.ar-switch-camera{width:42px;height:42px;top:10px}.activity{padding:8px 10px;font-size:14px}.os-swal-popup{margin:0 auto;width:92%!important}.passport-grid{grid-template-columns:repeat(2,1fr)}.qr-modal,.survey-modal{width:94%;max-width:94%}}@media (width<=380px){.event-panel h1{font-size:19px}.brand-bar .logo-optimos{display:none}}.admin-shell{color:var(--brand-black);background:#f4f5f7;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;position:fixed;inset:0;overflow-y:auto}.admin-shell.center{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:14px;padding:24px;display:flex}.admin-layout{color:var(--brand-black);background:#f4f5f7;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;display:flex;position:fixed;inset:0}.admin-header{border-bottom:3px solid var(--brand-red);z-index:10;background:#fff;flex-shrink:0;justify-content:space-between;align-items:center;gap:16px;padding:10px 20px;display:flex;box-shadow:0 2px 8px #0000000f}.admin-header-left{align-items:center;gap:18px;display:flex}.admin-brand{align-items:center;gap:12px;display:flex}.admin-divider{background:#ddd;width:1px;height:34px}.admin-exit{cursor:pointer;color:#333;background:#f0f0f0;border:none;border-radius:8px;align-items:center;gap:6px;padding:9px 14px;font-weight:600;display:inline-flex}.admin-exit:hover{background:#e4e4e4}.admin-body{flex:1;min-height:0;display:flex}.admin-sidebar{background:#fff;border-right:1px solid #e6e6e6;flex-direction:column;flex-shrink:0;width:230px;display:flex;overflow-y:auto}.admin-sidebar-brand{border-bottom:1px solid #eee;flex-direction:column;align-items:center;gap:10px;padding:20px 16px;display:flex}.admin-logo-os{object-fit:contain;max-width:140px;max-height:44px}.admin-logo-optimos{object-fit:contain;max-width:170px;max-height:42px}.admin-nav{flex-direction:column;gap:4px;padding:12px 10px;display:flex}.admin-nav button{cursor:pointer;color:#555;text-align:left;background:0 0;border:none;border-radius:10px;align-items:center;gap:12px;padding:12px 14px;font-size:14px;font-weight:600;transition:background .15s;display:flex}.admin-nav button:hover{background:#f5f5f5}.admin-nav button.active{background:var(--brand-red);color:#fff}.admin-content{flex:1;padding:22px;overflow-y:auto}.kpi-grid{grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px;display:grid}.kpi-card{border-left:4px solid var(--brand-red);background:#fff;border-radius:14px;flex-direction:column;gap:6px;padding:20px;display:flex;box-shadow:0 2px 10px #0000000d}.kpi-card.kpi-highlight{background:var(--brand-red);border-left-color:var(--brand-black)}.kpi-card.kpi-highlight .kpi-value,.kpi-card.kpi-highlight .kpi-label{color:#fff}.kpi-value{color:var(--brand-black);font-size:32px;font-weight:800}.kpi-label{color:#777;font-size:13px}.charts-grid{grid-template-columns:2fr 1fr;gap:14px;margin-bottom:20px;display:grid}.chart-card{background:#fff;border-radius:14px;padding:18px;box-shadow:0 2px 10px #0000000d}.chart-card h3{color:#444;margin:0 0 12px;font-size:15px}.chart-box{height:260px;position:relative}.admin-table-card{background:#fff;border-radius:14px;padding:18px;box-shadow:0 2px 10px #0000000d}.admin-table-card h3{color:#444;margin:0 0 12px;font-size:15px}.admin-table-wrap{overflow-x:auto}.admin-table{border-collapse:collapse;width:100%;font-size:14px}.admin-table th{text-align:left;color:var(--brand-black);border-bottom:2px solid var(--brand-red);white-space:nowrap;background:#faf0f1;padding:10px 12px;font-weight:700}.admin-table td{border-bottom:1px solid #eee;padding:10px 12px}.admin-table tr:hover td{background:#fafafa}.empty-row{text-align:center;color:#999;padding:24px}.estado-pill{border-radius:20px;padding:4px 10px;font-size:12px;font-weight:700;display:inline-block}.estado-pill.ok{color:#2e7d32;background:#e6f4ea}.estado-pill.pend{color:var(--brand-red);background:#fdeaec}.prereg-aviso{border:1px solid #f5c6cc;border-left:4px solid var(--brand-red);color:#5a2a30;background:#fdeaec;border-radius:12px;align-items:flex-start;gap:12px;margin-bottom:16px;padding:14px 16px;font-size:13.5px;line-height:1.45;display:flex}.prereg-aviso svg{color:var(--brand-red);flex-shrink:0;margin-top:2px}.prereg-aviso strong{color:var(--brand-black)}.prereg-aviso a{color:var(--brand-red);font-weight:700;text-decoration:none}.prereg-aviso a:hover{text-decoration:underline}.prereg-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.prereg-stats{flex-wrap:wrap;gap:8px;display:flex}.prereg-badge{border-radius:8px;padding:6px 12px;font-size:13px;font-weight:700}.prereg-badge.total{color:#555;background:#eee}.prereg-badge.ok{color:#2e7d32;background:#e6f4ea}.prereg-badge.pend{color:var(--brand-red);background:#fdeaec}.prereg-link{color:var(--brand-red);font-size:14px;font-weight:700;text-decoration:none}.prereg-filtro{border:1px solid #ddd;border-radius:10px;width:100%;margin-bottom:14px;padding:12px 14px;font-size:14px}.prereg-filtro:focus{border-color:var(--brand-red);outline:none}.admin-login-card{text-align:center;border-top:6px solid var(--brand-red);background:#fff;border-radius:18px;max-width:400px;padding:36px 32px;box-shadow:0 10px 40px #0000001f}.admin-login-logo{max-width:160px;margin-bottom:16px}.admin-login-card h1{margin:0 0 8px;font-size:22px}.admin-login-card p{color:#666;margin:0 0 20px;font-size:14px}.admin-login-btn{background:var(--brand-red);color:#fff;cursor:pointer;border:none;border-radius:10px;width:100%;padding:13px 22px;font-size:15px;font-weight:700}.admin-login-btn:hover{background:var(--brand-red-dark)}.ms-login-btn{color:#5e5e5e;cursor:pointer;background:#fff;border:1px solid #8c8c8c;border-radius:4px;justify-content:center;align-items:center;gap:12px;width:100%;padding:12px 16px;font-family:Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Arial,sans-serif;font-size:15px;font-weight:600;transition:background .15s;display:inline-flex}.ms-login-btn:hover{background:#f3f3f3}.ms-login-btn .ms-logo{flex-shrink:0}.admin-back-link{color:#888;cursor:pointer;background:0 0;border:none;margin-top:14px;font-size:13px;text-decoration:underline}.admin-error{color:var(--brand-red);margin-top:12px;font-size:13px}@media (width<=860px){.kpi-grid{grid-template-columns:repeat(2,1fr)}.charts-grid{grid-template-columns:1fr}}@media (width<=480px){.kpi-value{font-size:26px}.admin-logo-optimos{display:none}}.user-chip{align-items:center;gap:10px;display:flex}.user-chip-avatar{background:linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));color:#fff;border-radius:50%;justify-content:center;align-items:center;width:42px;height:42px;font-size:15px;font-weight:700;display:flex;box-shadow:0 2px 6px #e2001a4d}.user-chip-info{flex-direction:column;line-height:1.2;display:flex}.usuario-form{background:#fff;border-radius:14px;margin-bottom:20px;padding:18px;box-shadow:0 2px 10px #0000000d}.usuario-form h3{color:#444;margin:0 0 12px;font-size:15px}.usuario-form-grid{grid-template-columns:1.4fr 1.4fr 1fr 1fr auto;gap:10px;display:grid}.usuario-form-grid input,.usuario-form-grid select{box-sizing:border-box;background:#fff;border:1px solid #ddd;border-radius:10px;width:100%;padding:11px 13px;font-size:14px}.usuario-form-grid input:focus,.usuario-form-grid select:focus{border-color:var(--brand-red);outline:none}.usuario-form-grid button{background:var(--brand-red);color:#fff;cursor:pointer;border:none;border-radius:10px;padding:0 22px;font-weight:700}.usuario-form-grid button:hover{background:var(--brand-red-dark)}.user-cell{align-items:center;gap:10px;display:flex}.user-avatar{background:linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));color:#fff;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:34px;height:34px;font-size:13px;font-weight:700;display:flex}.user-name{align-items:center;gap:8px;font-weight:600;display:flex}.user-email{color:#777;font-size:13px}.super-tag{background:linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));color:#fff;border-radius:20px;padding:2px 8px;font-size:10px;font-weight:700}.admin-rol-badge{border-radius:20px;padding:4px 12px;font-size:12px;font-weight:700}.admin-rol-badge.rol-admin{color:var(--brand-red);background:#fdeaec}.rol-select{border:1px solid #ddd;border-radius:8px;padding:6px 10px;font-size:13px}.user-actions{text-align:right}.btn-del{cursor:pointer;background:#fff;border:1px solid #eee;border-radius:9px;width:34px;height:34px;font-size:14px}.btn-del:hover{border-color:var(--brand-red);background:#fdeaec}@media (width<=980px){.usuario-form-grid{grid-template-columns:1fr 1fr}.usuario-form-grid button{grid-column:1/-1;padding:12px}}@media (width<=560px){.usuario-form-grid{grid-template-columns:1fr}.usuario-form-grid button{grid-column:auto}}.user-menu{position:relative}.user-chip{cursor:pointer;background:#f7f7f8;border:1px solid #e6e6e6;border-radius:40px;align-items:center;gap:10px;padding:5px 12px 5px 5px;transition:background .15s;display:flex}.user-chip:hover{background:#eef0f2}.user-chip-photo{object-fit:cover;border-radius:50%;flex-shrink:0;width:38px;height:38px}.user-chip-avatar{background:linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));color:#fff;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:38px;height:38px;font-size:14px;font-weight:700;display:flex}.user-chip-info{text-align:left;flex-direction:column;line-height:1.2;display:flex}.user-chip-name{color:var(--brand-black);font-size:13px;font-weight:700}.user-chip-role{color:#888;font-size:11px;font-weight:600}.user-chip-role.role-admin{color:var(--brand-red)}.user-chip-caret{color:#999;transition:transform .2s}.user-chip-caret.open{transform:rotate(180deg)}.profile-card{z-index:50;background:#fff;border:1px solid #eee;border-radius:16px;width:300px;position:absolute;top:calc(100% + 12px);right:0;overflow:hidden;box-shadow:0 12px 40px #0003}.profile-card-header{background:linear-gradient(#fdeaec,#fff);border-bottom:1px solid #f2f2f2;flex-direction:column;align-items:center;gap:8px;padding:22px 18px 16px;display:flex}.profile-card-photo{object-fit:cover;border:3px solid #fff;border-radius:50%;width:64px;height:64px;box-shadow:0 2px 8px #00000026}.profile-card-avatar{background:linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));color:#fff;border:3px solid #fff;border-radius:50%;justify-content:center;align-items:center;width:64px;height:64px;font-size:22px;font-weight:700;display:flex;box-shadow:0 2px 8px #00000026}.profile-card-name{text-align:center;font-size:16px;font-weight:700}.profile-card-badges{flex-wrap:wrap;justify-content:center;gap:6px;display:flex}.profile-badge{border-radius:20px;padding:3px 10px;font-size:11px;font-weight:700}.profile-badge.badge-proyectos{color:#1e40af;background:#dbeafe}.profile-badge.badge-admin{background:linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));color:#fff}.profile-badge.badge-area{color:#555;background:#f0f0f0}.profile-card-body{flex-direction:column;gap:12px;padding:14px 18px;display:flex}.profile-row{color:#666;align-items:center;gap:12px;display:flex}.profile-row svg{color:var(--brand-red);flex-shrink:0}.profile-row-text{flex-direction:column;min-width:0;line-height:1.3;display:flex}.profile-row-label{color:#999;text-transform:uppercase;letter-spacing:.3px;font-size:11px;font-weight:600}.profile-row-value{color:#333;word-break:break-word;font-size:14px;font-weight:500}.profile-card-logout{width:calc(100% - 32px);color:var(--brand-red);cursor:pointer;background:#fff;border:1px solid #f0d6d9;border-radius:10px;justify-content:center;align-items:center;gap:8px;margin:0 16px 16px;padding:11px;font-weight:700;display:flex}.profile-card-logout:hover{background:#fef2f2}.admin-rol-badge.rol-consulta{color:#475569;background:#eef2f7}@media (width<=720px){.admin-body{flex-direction:column}.admin-sidebar{border-bottom:1px solid #e6e6e6;border-right:none;width:100%}.admin-nav{flex-direction:row;padding:8px;overflow-x:auto}.admin-nav button{white-space:nowrap}.admin-content{padding:14px}.user-chip-info{display:none}.admin-header{padding:10px 12px}.admin-header-left{gap:10px}.admin-divider{display:none}.admin-logo-optimos{max-width:130px;max-height:34px}.admin-logo-os{max-width:110px;max-height:34px}.admin-exit span,.admin-exit{font-size:13px}.profile-card{width:90%;max-width:320px;position:fixed;top:50%;left:50%;right:auto;transform:translate(-50%,-50%)}}
