:root{color:#2f2a25;background-color:#f7f2ec;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;line-height:1.5;font-weight:400;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:root{--c-primary: #d4a574;--c-primary-dark: #c69963;--c-primary-light: #e8d5c4;--c-bg: #faf8f6;--c-surface: #f5ede4;--c-surface-raised: #fffdf9;--c-ink: #45362d;--c-text: #5a4e44;--c-muted: #6b5d50;--c-border: #e8d5c4;--c-riego: #2f7d4a;--c-riego-soft: #a8d8a8;--c-alert: #c65342;--c-danger: #dc3545;--r-sm: 6px;--r-md: 8px;--r-lg: 12px;--r-xl: 16px;--r-pill: 999px}*,*:before,*:after{box-sizing:border-box}body{margin:0;min-height:100vh;background-color:#f7f2ec;color:inherit;-webkit-text-size-adjust:100%;text-size-adjust:100%}a{color:inherit;text-decoration:none}button{font-family:inherit}.tour-layer{position:fixed;inset:0;z-index:5000;pointer-events:none}.tour-backdrop{position:absolute;inset:0;pointer-events:auto;background:#00000073}.tour-spotlight{position:absolute;border-radius:12px;box-shadow:0 0 0 9999px #0000008c,0 0 0 4px #ffd54a,0 0 22px 6px #ffd54ab3;pointer-events:none;transition:all .25s ease;animation:tour-pulse 1.6s ease-in-out infinite}@keyframes tour-pulse{0%,to{box-shadow:0 0 0 9999px #0000008c,0 0 0 4px #ffd54a,0 0 18px 4px #ffd54a8c}50%{box-shadow:0 0 0 9999px #0000008c,0 0 0 5px #ffd54a,0 0 28px 10px #ffd54ad9}}.tour-mask{position:absolute;background:#0000008c;pointer-events:auto}.tour-ring{position:absolute;border-radius:12px;pointer-events:none;border:3px solid #ffd54a;box-shadow:0 0 18px 4px #ffd54ab3}.tour-ring-click{animation:tour-ring-pulse 1.4s ease-in-out infinite}@keyframes tour-ring-pulse{0%,to{box-shadow:0 0 14px 3px #ffd54a8c}50%{box-shadow:0 0 26px 8px #ffd54af2}}.tour-hint{margin:0 0 .7rem;font-size:.92rem;font-weight:600;color:#b45309;background:#fff7e6;border-radius:8px;padding:.45rem .6rem}.tour-hint.ok{color:#15803d;background:#ecfdf3}.tour-card{position:absolute;pointer-events:auto;width:min(320px,90vw);max-height:calc(100vh - 28px);max-height:calc(100dvh - 28px);overflow-y:auto;background:#fff;border-radius:16px;padding:1rem 1.1rem .85rem;box-shadow:0 16px 44px #00000059;text-align:center;animation:tour-pop .25s ease}@keyframes tour-pop{0%{transform:scale(.95);opacity:0}to{transform:scale(1);opacity:1}}.tour-close{position:absolute;top:6px;right:10px;background:transparent;border:none;font-size:1.6rem;line-height:1;color:#9ca3af;cursor:pointer}.tour-close:hover{color:#4b5563}.tour-emoji{font-size:2.1rem;line-height:1;margin-bottom:.25rem}.tour-title{margin:0 0 .35rem;font-size:1.12rem;color:#1f2937;font-weight:700}.tour-body{margin:0 0 .8rem;font-size:.95rem;line-height:1.45;color:#374151}.tour-progress{display:flex;justify-content:center;gap:6px;margin-bottom:.85rem;flex-wrap:wrap}.tour-dot{width:9px;height:9px;border-radius:50%;background:#e5e7eb;transition:all .2s ease}.tour-dot.done{background:#a7d98c}.tour-dot.active{background:#7fb069;transform:scale(1.4)}.tour-actions{display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap;row-gap:.4rem}.tour-step-count{font-size:.78rem;color:#9ca3af;white-space:nowrap}.tour-btn{border:none;border-radius:12px;padding:.55rem .9rem;font-size:.92rem;font-weight:700;cursor:pointer;white-space:nowrap}.tour-btn-next{background:#7fb069;color:#fff;flex:0 0 auto}.tour-btn-next:disabled{background:#cbd5c4;cursor:not-allowed}.tour-btn-next:hover{background:#6a9956}.tour-btn-notif{display:block;width:100%;background:linear-gradient(135deg,#f0a043,#e8852f);color:#fff;margin-bottom:.75rem;box-shadow:0 6px 16px #e8852f52}.tour-btn-notif:hover{filter:brightness(1.05)}.tour-btn-notif:disabled{opacity:.7;cursor:progress}.tour-btn-back{background:#f3f4f6;color:#4b5563}.tour-btn-back:hover{background:#e5e7eb}.tour-mandatory-note{margin:.7rem 0 0;font-size:.8rem;color:#6b7280}.tour-card.compact{width:min(280px,88vw);padding:.8rem .9rem .7rem}.tour-card.compact .tour-emoji{font-size:1.9rem;margin-bottom:.1rem}.tour-card.compact .tour-title{font-size:1.05rem}.tour-card.compact .tour-body{font-size:.9rem;line-height:1.4;margin-bottom:.6rem}.tour-card.compact .tour-hint{font-size:.82rem;padding:.35rem .5rem;margin-bottom:.55rem}.tour-card.compact .tour-btn{padding:.55rem .7rem;font-size:.9rem}.tour-card.compact .tour-step-count{font-size:.7rem}.tour-card.compact .tour-dot{width:7px;height:7px}@media(max-width:600px){.tour-card{width:min(288px,84vw);padding:.7rem .85rem .6rem;border-radius:12px}.tour-emoji{font-size:1.7rem;margin-bottom:.15rem}.tour-title{font-size:1rem;margin-bottom:.3rem}.tour-body{font-size:.86rem;line-height:1.38;margin-bottom:.6rem}.tour-hint{font-size:.8rem;padding:.35rem .5rem;margin-bottom:.55rem}.tour-progress{margin-bottom:.6rem}.tour-btn{padding:.5rem .7rem;font-size:.85rem;border-radius:12px}.tour-step-count{font-size:.7rem}.tour-mandatory-note{font-size:.72rem;margin-top:.55rem}.tour-close{font-size:1.4rem;top:4px;right:8px}.tour-progress.many{display:none}.tour-card.compact{width:min(258px,80vw);padding:.6rem .75rem .55rem}.tour-card.compact .tour-emoji{font-size:1.5rem}.tour-card.compact .tour-title{font-size:.95rem}.tour-card.compact .tour-body{font-size:.82rem;margin-bottom:.5rem}.tour-card.compact .tour-btn{padding:.45rem .65rem;font-size:.82rem}}.tour-must{font-size:.85rem;font-weight:700;color:#b45309}.tour-btn-skip{background:#e5e7eb;color:#6b7280;font-size:.9rem}.tour-btn-skip:hover{background:#d1d5db}@media(prefers-color-scheme:dark){.tour-must{color:#fcd34d}.tour-btn-skip{background:#243044;color:#cbd5e1}}.tour-card:after{content:"";position:absolute;width:0;height:0;border:11px solid transparent}.tour-card.arrow-top:after{top:-22px;left:50%;transform:translate(-50%);border-bottom-color:#fff}.tour-card.arrow-bottom:after{bottom:-22px;left:50%;transform:translate(-50%);border-top-color:#fff}.tour-card.arrow-left:after{left:-22px;top:50%;transform:translateY(-50%);border-right-color:#fff}.tour-card.arrow-right:after{right:-22px;top:50%;transform:translateY(-50%);border-left-color:#fff}.tour-card.arrow-none:after{display:none}@media(prefers-color-scheme:dark){.tour-card{background:#1b2433}.tour-title{color:#f3f4f6}.tour-body{color:#cbd5e1}.tour-btn-back{background:#243044;color:#cbd5e1}.tour-card.arrow-top:after{border-bottom-color:#1b2433}.tour-card.arrow-bottom:after{border-top-color:#1b2433}.tour-card.arrow-left:after{border-right-color:#1b2433}.tour-card.arrow-right:after{border-left-color:#1b2433}.tour-hint{background:#2a2410;color:#fcd34d}.tour-hint.ok{background:#0f2a1a;color:#86efac}}.help-menu-backdrop{position:fixed;inset:0;background:#00000073;z-index:4000;display:flex;align-items:center;justify-content:center;padding:1rem;overflow-y:auto}.help-menu{background:#fff;border-radius:16px;width:100%;max-width:380px;max-height:85vh;max-height:min(85vh,calc(100dvh - 2rem));margin:auto;display:flex;flex-direction:column;padding:1.1rem;box-shadow:0 16px 44px #0000004d}.help-menu h3{margin:0 0 .6rem;font-size:1.2rem;color:#1f2937;text-align:center}.help-menu p.help-sub{margin:0 0 .9rem;text-align:center;font-size:.85rem;color:#6b7280}.help-tabs{display:flex;gap:.4rem;background:#f3f4f6;border-radius:12px;padding:.25rem;margin-bottom:.7rem}.help-tab{flex:1;border:none;background:transparent;border-radius:9px;padding:.55rem .4rem;font-size:.9rem;font-weight:700;color:#6b7280;cursor:pointer;transition:all .15s ease}.help-tab.active{background:#fff;color:#2e7d46;box-shadow:0 1px 4px #0000001f}.help-tour-list{overflow-y:auto;flex:1 1 auto;min-height:0;-webkit-overflow-scrolling:touch}.help-tour-btn{display:flex;align-items:center;gap:.75rem;width:100%;text-align:left;border:1px solid #e5e7eb;background:#fcfcfd;border-radius:12px;padding:.8rem .9rem;margin-bottom:.5rem;cursor:pointer;transition:all .15s ease}.help-tour-btn:hover{border-color:#7fb069;background:#7fb06914}.help-tour-emoji{font-size:1.6rem;flex-shrink:0}.help-tour-label{font-size:1rem;font-weight:600;color:#1f2937}.help-menu-close{display:block;width:100%;margin-top:.4rem;padding:.7rem;border:none;border-radius:12px;background:#f3f4f6;color:#4b5563;font-weight:600;font-size:.95rem;cursor:pointer}@media(max-width:600px){.help-menu{padding:.85rem}.help-menu h3{font-size:1.1rem;margin-bottom:.45rem}.help-menu p.help-sub{font-size:.8rem;margin-bottom:.7rem}.help-tour-btn{padding:.6rem .75rem;margin-bottom:.4rem;gap:.6rem}.help-tour-emoji{font-size:1.4rem}.help-tour-label{font-size:.94rem}}@media(prefers-color-scheme:dark){.help-menu{background:#1b2433}.help-menu h3{color:#f3f4f6}.help-tour-btn{background:#243044;border-color:#374151}.help-tour-label{color:#f3f4f6}.help-menu-close{background:#243044;color:#cbd5e1}.help-tabs{background:#243044}.help-tab{color:#9ca3af}.help-tab.active{background:#11331f;color:#8fc079;box-shadow:none}}.header{background:linear-gradient(135deg,#d4a574,#c69963);box-shadow:0 4px 12px #d4a57426;position:sticky;top:0;z-index:100;border-bottom:1px solid rgba(198,153,99,.3)}.header-container{max-width:1200px;margin:0 auto;padding:1rem 1.25rem;display:flex;justify-content:space-between;align-items:center}.header-brand{display:flex;flex-direction:column;gap:.25rem}.header-title{margin:0;font-size:1.5rem;font-weight:700;color:#fff;text-shadow:0 2px 4px rgba(0,0,0,.1)}.header-subtitle{margin:0;font-size:.85rem;color:#ffffffe6;font-weight:500;letter-spacing:.5px}.header-nav{display:flex;align-items:center;gap:1rem}.nav-links{display:flex;align-items:center;gap:1.5rem;flex-direction:row}.nav-links a,.logout-btn{color:#fff;text-decoration:none;font-size:.95rem;font-weight:500;padding:.5rem 1rem;border-radius:6px;transition:all .3s ease;border:none;background:none;cursor:pointer}.nav-links a:hover,.logout-btn:hover{background:#fff3;transform:translateY(-1px)}.user-info{color:#fffffff2;font-size:.9rem;font-weight:600}.logout-btn{background:#ffffff40;border:1px solid rgba(255,255,255,.4);padding:.6rem 1.2rem}.menu-toggle{display:none;background:none;border:none;font-size:1.5rem;color:#fff;cursor:pointer}.help-toggle{display:inline-flex;align-items:center;gap:.4rem;background:#2e7d46;border:2px solid #fff;color:#fff;font-size:.95rem;font-weight:800;padding:.5rem 1rem;border-radius:999px;cursor:pointer;transition:background .2s ease,transform .2s ease;white-space:nowrap;box-shadow:0 2px 10px #0003;animation:helpPulse 2.4s ease-in-out infinite}.help-toggle:hover{background:#276b3c;transform:translateY(-1px)}.help-icon{font-size:1.1rem;line-height:1}@keyframes helpPulse{0%,to{box-shadow:0 2px 10px #0003}50%{box-shadow:0 2px 16px #2e7d46b3,0 0 0 4px #ffffff40}}@media(prefers-reduced-motion:reduce){.help-toggle{animation:none}}@media(max-width:768px){.help-toggle{padding:.45rem .8rem;font-size:.85rem}}@media(max-width:768px){.header-container{padding:.75rem 1rem}.header-title{font-size:1.25rem}.header-subtitle{font-size:.75rem}.menu-toggle{display:block}.nav-links{position:absolute;top:100%;right:0;flex-direction:column;background:linear-gradient(135deg,#d4a574,#c69963);width:100%;gap:0;max-height:0;overflow:hidden;transition:max-height .3s ease}.nav-links.open{max-height:300px}.nav-links a,.logout-btn{width:100%;text-align:left;border-radius:0;padding:1rem;border-bottom:1px solid rgba(255,255,255,.1)}}.install-prompt{position:fixed;bottom:0;left:0;right:0;background:linear-gradient(135deg,#d4a574,#c69963);box-shadow:0 -2px 12px #d4a57433;z-index:1000;animation:slideUp .3s ease;padding:1rem}.install-content{max-width:1200px;margin:0 auto;display:flex;align-items:center;gap:1rem;color:#fff;font-weight:500}.install-icon{font-size:2rem;flex-shrink:0}.install-text{flex:1}.install-text h4{margin:0 0 .25rem;font-size:1rem;color:#fff}.install-text p{margin:0;font-size:.9rem;opacity:.95}.install-btn,.dismiss-btn{padding:.6rem 1.2rem;border:none;border-radius:6px;font-weight:600;cursor:pointer;transition:all .3s ease;white-space:nowrap;flex-shrink:0}.install-btn{background:#fff;color:#d4a574}.install-btn:hover{transform:scale(1.05);box-shadow:0 2px 8px #00000026}.dismiss-btn{background:#fff3;color:#fff;padding:.6rem .8rem;min-width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%}.dismiss-btn:hover{background:#ffffff4d}@media(max-width:768px){.install-content{flex-wrap:wrap;gap:.75rem}.install-btn,.dismiss-btn{flex-basis:auto}.install-text{flex-basis:100%;order:2}.install-icon{order:1}.install-btn,.dismiss-btn{order:3}}.push-prompt{position:sticky;top:0;z-index:1100;padding:.75rem 1rem 0}.push-prompt-content{display:flex;align-items:center;justify-content:space-between;gap:1rem;max-width:1200px;margin:0 auto;padding:1rem 1.25rem;border-radius:14px;background:linear-gradient(135deg,#e7f4da,#f7e8c4);box-shadow:0 8px 24px #303f1d1f;border:1px solid rgba(126,155,76,.25)}.push-prompt-text h4{margin:0 0 .25rem;color:#29411a;font-size:1rem}.push-prompt-text p{margin:0;color:#475c2f;line-height:1.4}.push-prompt-warning{margin-top:.5rem!important;color:#8f3f1d!important;font-weight:600}.push-prompt-actions{display:flex;gap:.75rem;align-items:center}@media(max-width:768px){.push-prompt{padding:.5rem .75rem 0}.push-prompt-content{flex-direction:column;align-items:flex-start}.push-prompt-actions{width:100%;justify-content:flex-end}}.survey-backdrop{position:fixed;inset:0;background:#0000008c;display:flex;align-items:center;justify-content:center;z-index:2000;padding:1rem;animation:survey-fade .2s ease}@keyframes survey-fade{0%{opacity:0}to{opacity:1}}.survey-card{background:#fff;border-radius:18px;width:100%;max-width:460px;max-height:90vh;overflow-y:auto;padding:1.25rem 1.25rem 1rem;box-shadow:0 20px 50px #0000004d;animation:survey-pop .25s ease}@keyframes survey-pop{0%{transform:translateY(16px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}.survey-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:.6rem}.survey-badge{background:#7fb06926;color:#4a7c3a;font-weight:600;font-size:.8rem;padding:.2rem .6rem;border-radius:999px}.survey-progress{font-size:.78rem;color:#6b7280}.survey-title{margin:0 0 .25rem;font-size:1.25rem;color:#1f2937}.survey-desc{margin:0 0 .5rem;color:#4b5563;font-size:.9rem}.survey-hint{margin:0 0 1rem;color:#6b7280;font-size:.82rem;background:#f9fafb;border-radius:8px;padding:.5rem .7rem}.survey-questions{display:flex;flex-direction:column;gap:1.1rem}.survey-q-text{font-weight:600;font-size:.95rem;color:#1f2937;margin-bottom:.5rem;display:flex;align-items:baseline;gap:.4rem}.survey-q-num{background:#7fb069;color:#fff;font-size:.72rem;width:1.3rem;height:1.3rem;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;align-self:flex-start}.survey-req{color:#ef4444}.survey-options{display:flex;flex-wrap:wrap;gap:.5rem}.survey-opt{border:2px solid #e5e7eb;background:#fff;border-radius:10px;padding:.6rem .9rem;font-size:.9rem;color:#374151;cursor:pointer;transition:all .15s ease;flex:1 1 auto;min-width:90px;text-align:center}.survey-opt:hover{border-color:#7fb069}.survey-opt.selected{border-color:#7fb069;background:#7fb069;color:#fff;font-weight:600}.survey-textarea{width:100%;border:2px solid #e5e7eb;border-radius:10px;padding:.6rem .7rem;font-family:inherit;font-size:.9rem;resize:vertical;box-sizing:border-box}.survey-textarea:focus{outline:none;border-color:#7fb069}.survey-error{margin-top:.85rem;background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;border-radius:8px;padding:.5rem .7rem;font-size:.85rem}.survey-actions{display:flex;gap:.6rem;margin-top:1.1rem}.survey-later{flex:0 0 auto;background:transparent;border:1px solid #d1d5db;color:#6b7280;border-radius:10px;padding:.7rem .9rem;font-size:.85rem;cursor:pointer}.survey-later:hover{background:#f3f4f6}.survey-submit{flex:1 1 auto;background:#7fb069;color:#fff;border:none;border-radius:10px;padding:.7rem 1rem;font-size:.95rem;font-weight:600;cursor:pointer}.survey-submit:hover{background:#6a9956}.survey-submit:disabled,.survey-later:disabled{opacity:.6;cursor:default}.survey-remind{margin:.6rem 0 0;text-align:center;font-size:.75rem;color:#9ca3af}@media(prefers-color-scheme:dark){.survey-card{background:#1b2433}.survey-title{color:#f3f4f6}.survey-desc{color:#cbd5e1}.survey-hint{background:#243044;color:#cbd5e1}.survey-q-text{color:#f3f4f6}.survey-opt{background:#243044;border-color:#3a4a5e;color:#e5e7eb}.survey-textarea{background:#243044;border-color:#3a4a5e;color:#f3f4f6}.survey-progress,.survey-remind{color:#9ca3af}}@media(max-width:480px){.survey-card{max-width:100%;border-radius:14px}.survey-actions{flex-direction:column-reverse}.survey-later,.survey-submit{width:100%}}.auth-container{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1rem;background:linear-gradient(135deg,#f5e6d3,#e8d5c4,#d9c3ad);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.auth-card{background:#fff;border-radius:16px;box-shadow:0 20px 60px #d4a57426;padding:3rem 2rem;max-width:400px;width:100%;animation:slideUp .4s ease}.auth-card.large{max-width:600px}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.auth-header{text-align:center;margin-bottom:2rem}.auth-icon{width:80px;height:80px;margin:0 auto 1rem;display:block;border-radius:16px;box-shadow:0 4px 12px #d4a57433}.auth-header h1{font-size:2.5rem;background:linear-gradient(135deg,#d4a574,#c69963);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin:0 0 .5rem;font-weight:700}.auth-header p{margin:.5rem 0;color:#7a6b5d;font-size:1.1rem;font-weight:600}.auth-subtitle{font-size:.95rem!important;color:#a89a8c!important;font-weight:500!important}.auth-form{display:flex;flex-direction:column;gap:1.5rem}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}@media(max-width:600px){.auth-card,.auth-card.large{max-width:100%;padding:2rem 1.5rem}.form-row{grid-template-columns:1fr}}.form-group{display:flex;flex-direction:column;gap:.5rem}.form-group label{font-weight:600;color:#5a4e44;font-size:.95rem}.form-group input,.form-group select{padding:.75rem 1rem;border:2px solid #e8d5c4;border-radius:10px;font-size:1rem;transition:all .3s ease;background:#faf8f6;color:#3a3430}.form-group input:focus{outline:none;border-color:#d4a574;background:#fff;box-shadow:0 0 0 3px #d4a5741a}.form-group select:focus{outline:none;border-color:#d4a574;background:#fff;box-shadow:0 0 0 3px #d4a5741a}.form-group input:disabled{background:#f0ebe6;cursor:not-allowed}.password-input-wrap{position:relative;display:flex;align-items:center}.password-input-wrap input{width:100%;padding-right:2.75rem}.password-toggle-btn{position:absolute;right:.5rem;background:transparent;border:none;color:#7a6b5d;width:2rem;height:2rem;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease}.password-toggle-btn:hover:not(:disabled){background:#f0ebe6;color:#5a4e44}.password-toggle-btn:disabled{opacity:.6;cursor:not-allowed}.form-group select:disabled{background:#f0ebe6;cursor:not-allowed}.btn-primary{padding:.9rem;background:linear-gradient(135deg,#d4a574,#c69963);color:#fff;border:none;border-radius:10px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 12px #d4a57433}.btn-primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #d4a5744d}.btn-primary:disabled{opacity:.7;cursor:not-allowed}.error-message{background:#fff5f0;border:2px solid #e8b8a8;border-radius:10px;padding:1rem;color:#c65342;font-weight:500;margin-bottom:1rem;animation:shake .3s ease}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-5px)}75%{transform:translate(5px)}}.success-message{background:#f0faf0;border:2px solid #a8d8a8;border-radius:10px;padding:1rem;color:#4a9d4a;font-weight:500;margin-bottom:1rem}.auth-footer{text-align:center;margin-top:2rem;padding-top:1.5rem;border-top:2px solid #e8d5c4}.auth-footer p{margin:.5rem 0;color:#7a6b5d;font-size:.95rem}.auth-footer a{color:#d4a574;text-decoration:none;font-weight:600;transition:color .3s ease}.auth-footer a:hover{color:#c69963;text-decoration:underline}.btn-link{background:none;border:none;color:#d4a574;cursor:pointer;font-size:.9rem;text-decoration:underline;padding:0;margin-top:.5rem}.btn-link:hover{color:#c69963}.forgot-form{display:flex;flex-direction:column;gap:.5rem;margin-top:1rem;padding:1rem;background:#faf8f6;border-radius:10px}.forgot-form input{padding:.5rem .75rem;border:2px solid #e8d5c4;border-radius:8px;font-size:.95rem}.forgot-form .btn-secondary{padding:.5rem;background:#e8d5c4;color:#5a4e44;border:none;border-radius:8px;font-weight:600;cursor:pointer}.forgot-form .btn-secondary:hover{background:#d9c3ad}.muted{color:#7a6b5d}.financier-logos{margin-top:2rem;padding-top:1.5rem;border-top:2px solid #e8d5c4;text-align:center}.logos-title{font-size:.9rem;color:#7a6b5d;margin-bottom:1rem;font-weight:600}.logos-container{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:1.5rem;padding:.5rem}.logos-container img{height:40px;width:auto;max-width:100px;object-fit:contain;filter:grayscale(20%);opacity:.9;transition:all .3s ease}.logos-container img:hover{filter:grayscale(0%);opacity:1;transform:scale(1.05)}@media(max-width:600px){.logos-container{gap:1rem}.logos-container img{height:32px;max-width:80px}}.terms-section{display:flex;flex-direction:column;gap:1rem;padding:1.5rem;background:#faf8f6;border-radius:10px;border:2px solid #e8d5c4}.checkbox-group{display:flex;align-items:flex-start;gap:.75rem}.checkbox-group input[type=checkbox]{margin-top:.25rem;width:18px;height:18px;cursor:pointer;accent-color:#d4a574;flex-shrink:0}.checkbox-group label{font-size:.95rem;color:#5a4e44;line-height:1.5;cursor:pointer}.link-button{background:none;border:none;color:#d4a574;text-decoration:underline;cursor:pointer;font-size:inherit;font-weight:600;padding:0;transition:color .3s ease}.link-button:hover{color:#c69963}.modal-overlay{position:fixed;inset:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem;animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal-content{background:#fff;border-radius:16px;max-width:800px;width:100%;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 20px 60px #0000004d;position:relative;animation:slideUp .3s ease}@keyframes slideUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}.modal-close{position:absolute;top:1rem;right:1rem;background:#e8d5c4;border:none;width:36px;height:36px;border-radius:50%;font-size:1.5rem;line-height:1;cursor:pointer;transition:all .3s ease;z-index:1;color:#5a4e44;font-weight:700}.modal-close:hover{background:#d4a574;color:#fff;transform:rotate(90deg)}.modal-scroll{overflow-y:auto;padding:2rem;flex:1}.modal-actions{display:flex;gap:1rem;padding:1.5rem;border-top:2px solid #e8d5c4;justify-content:flex-end}.modal-actions .btn-primary,.modal-actions .btn-secondary{padding:.75rem 1.5rem;border-radius:8px;font-weight:600;cursor:pointer;transition:all .3s ease}.modal-actions .btn-primary{background:linear-gradient(135deg,#d4a574,#c69963);color:#fff;border:none}.modal-actions .btn-primary:hover{transform:translateY(-2px);box-shadow:0 4px 12px #d4a5744d}.modal-actions .btn-secondary{background:#fff;border:2px solid #d4a574;color:#d4a574}.modal-actions .btn-secondary:hover{background:#faf8f6}.legal-content{color:#3a3430}.legal-content h1{font-size:1.8rem;color:#5a4e44;margin-bottom:1rem}.legal-content h2{font-size:1.3rem;color:#5a4e44;margin-top:2rem;margin-bottom:.75rem}.legal-content h3{font-size:1.1rem;color:#7a6b5d;margin-top:1.5rem;margin-bottom:.5rem}.legal-content p{line-height:1.6;margin-bottom:1rem;color:#5a4e44}.legal-content ul{margin-left:1.5rem;margin-bottom:1rem}.legal-content li{line-height:1.6;margin-bottom:.5rem;color:#5a4e44}.legal-content section{margin-bottom:1.5rem}.legal-meta{font-size:.9rem;color:#a89a8c;font-style:italic;padding:.75rem;background:#faf8f6;border-radius:8px;margin-bottom:2rem}@media(max-width:768px){.modal-content{max-height:95vh}.modal-scroll{padding:1.5rem 1rem}.modal-actions{flex-direction:column}.modal-actions .btn-primary,.modal-actions .btn-secondary{width:100%}.legal-content h1{font-size:1.5rem}.legal-content h2{font-size:1.2rem}.legal-content h3{font-size:1rem}}.terms-update-modal{z-index:2000}.modal-content-large{background:#fff;border-radius:16px;max-width:600px;width:100%;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 20px 60px #0000004d;animation:slideUp .3s ease;overflow:hidden}.modal-header{padding:2rem;border-bottom:2px solid #e8d5c4;background:linear-gradient(135deg,#faf8f6,#f5ede4)}.modal-header h2{margin:0 0 .5rem;color:#5a4e44;font-size:1.5rem}.modal-subtitle{margin:0;color:#7a6b5d;font-size:.95rem;line-height:1.5}.terms-update-content{padding:2rem;display:flex;flex-direction:column;gap:1.5rem;overflow-y:auto;flex:1}.terms-update-item{padding:1.5rem;background:#faf8f6;border-radius:12px;border:2px solid #e8d5c4}.terms-update-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem;gap:1rem}.terms-update-header h3{margin:0;color:#5a4e44;font-size:1.1rem}.version-badge{padding:.25rem .75rem;background:#d4a574;color:#fff;border-radius:20px;font-size:.8rem;font-weight:600;white-space:nowrap}.terms-description{margin:0 0 1rem;color:#7a6b5d;font-size:.95rem;line-height:1.5}.terms-update-item .btn-secondary{width:100%}.terms-update-item .btn-secondary:disabled{background:#d4f4dd;color:#2d5f3d;border-color:#a8d8a8;cursor:default}.modal-warning{padding:1rem 2rem;background:#fff5f0;border-top:2px solid #e8b8a8;color:#c65342;font-size:.9rem;margin:0;text-align:center}.btn-large{width:100%;padding:1rem;font-size:1.05rem}.modal-nested{z-index:2100}@media(max-width:768px){.modal-header{padding:1.5rem}.modal-header h2{font-size:1.3rem}.terms-update-content{padding:1.5rem}.terms-update-header{flex-direction:column;align-items:flex-start}}.irrigation-control{width:100%}.irrigation-header{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}.irrigation-title{margin:0;font-size:1.15rem;color:var(--text-primary, #1a1a2e)}.irrigation-caption{margin:2px 0 0;font-size:.85rem;color:var(--text-muted, #666)}.irrigation-refresh{white-space:nowrap}.irrigation-loading{display:flex;align-items:center;gap:10px;padding:24px;color:var(--text-muted, #666)}.irrigation-empty{padding:24px;text-align:center;background:var(--bg-subtle, #f5f7f4);border:1px dashed var(--border-color, #ccc);border-radius:12px}.irrigation-empty .muted{color:var(--text-muted, #888);font-size:.9rem}.irrigation-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:16px}.irrigation-card{background:var(--card-bg, #fff);border:1px solid var(--border-color, #e0e0e0);border-radius:14px;padding:16px;box-shadow:0 1px 4px #0000000d;display:flex;flex-direction:column;gap:12px}.irrigation-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.irrigation-card-head h4{margin:0;font-size:1.05rem;color:var(--text-primary, #1a1a2e)}.irrigation-eui{font-family:ui-monospace,monospace;font-size:.72rem;color:var(--text-muted, #888)}.irrigation-online{font-size:.72rem;padding:3px 8px;border-radius:999px;white-space:nowrap}.irrigation-online.on{background:var(--primary-light, #e8f5e3);color:var(--primary-color, #4e7a3a)}.irrigation-online.off{background:#f0f0f0;color:#999}.irrigation-valve{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:10px;background:var(--bg-subtle, #f5f7f4)}.valve-info{display:flex;flex-direction:column;gap:3px}.valve-name{font-size:.9rem;color:var(--text-secondary, #444);font-weight:600}.valve-state{font-size:.72rem;font-weight:700;letter-spacing:.03em}.valve-state.open{color:#1f9d55}.valve-state.closed{color:#b04a3a}.valve-actions{display:flex;gap:6px}.btn-valve{border:1px solid var(--border-color, #ddd);background:var(--card-bg, #fff);color:var(--text-secondary, #444);border-radius:8px;padding:7px 12px;font-size:.85rem;cursor:pointer;transition:all .15s ease;min-width:64px}.btn-valve:disabled{opacity:.5;cursor:progress}.btn-valve.open:hover:not(:disabled),.btn-valve.open.active{background:#1f9d55;border-color:#1f9d55;color:#fff}.btn-valve.close:hover:not(:disabled),.btn-valve.close.active{background:#b04a3a;border-color:#b04a3a;color:#fff}.irrigation-both{display:flex;gap:8px}.irrigation-both .btn-secondary{flex:1}.btn-valve.locked:disabled,.btn-secondary.locked:disabled{cursor:not-allowed;opacity:.45}.valve-auto-note{margin:0;font-size:.76rem;line-height:1.45;color:var(--text-muted, #777)}.irrigation-flow{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:10px;border:1px solid var(--border-color, #e0e0e0)}.flow-metric{display:flex;align-items:baseline;gap:5px}.flow-value{font-size:1.5rem;font-weight:700;color:var(--primary-color, #4e7a3a)}.flow-unit{font-size:.8rem;color:var(--text-muted, #888)}.flow-pulses{font-size:.8rem;color:var(--text-muted, #666);text-align:right}.irrigation-flowcfg{display:flex;flex-direction:column;gap:6px}.irrigation-flowcfg label{font-size:.8rem;font-weight:600;color:var(--text-secondary, #444)}.flowcfg-row{display:flex;gap:8px;align-items:stretch}.flowcfg-row input{flex:1 1 auto;min-width:0;width:100%;padding:10px 12px;border-radius:8px;font-size:.95rem;border:1px solid var(--border-color, #ddd);background:var(--card-bg, #fff);color:var(--text-primary, #1a1a2e)}.flowcfg-row .btn-secondary{flex:0 0 auto;width:auto;white-space:nowrap;padding:10px 16px}.flowcfg-hint{margin:0;font-size:.72rem;color:var(--text-muted, #888)}.irrigation-mode{display:flex;flex-direction:column;gap:6px}.irrigation-mode label{font-size:.8rem;font-weight:600;color:var(--text-secondary, #444)}.irrigation-mode select{padding:8px 10px;border-radius:8px;border:1px solid var(--border-color, #ddd);background:var(--card-bg, #fff);color:var(--text-primary, #1a1a2e)}.mode-help{margin:0;font-size:.78rem;color:var(--text-muted, #777)}.mode-note{margin:0;font-size:.76rem;color:#c47f1d}.irrigation-auto{display:flex;flex-direction:column;gap:8px;padding:10px 12px;border:1px solid var(--border-color, #e0e0e0);border-radius:10px;background:var(--bg-subtle, #f5f7f4)}.auto-switch{display:flex;align-items:center;justify-content:space-between;font-weight:600;color:var(--text-secondary, #444);font-size:.9rem}.auto-state{margin:0;font-size:.76rem;color:var(--text-muted, #777)}.auto-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.auto-grid label{display:flex;flex-direction:column;gap:3px;font-size:.75rem;color:var(--text-secondary, #555)}.auto-grid input{padding:8px 10px;border-radius:8px;border:1px solid var(--border-color, #ddd);background:var(--card-bg, #fff);color:var(--text-primary, #1a1a2e);min-width:0}.irrigation-auto .btn-secondary{width:100%}.switch{position:relative;display:inline-block;width:46px;height:26px}.switch input{opacity:0;width:0;height:0}.switch .slider{position:absolute;cursor:pointer;inset:0;background:#ccc;border-radius:26px;transition:.2s}.switch .slider:before{content:"";position:absolute;height:20px;width:20px;left:3px;bottom:3px;background:#fff;border-radius:50%;transition:.2s}.switch input:checked+.slider{background:var(--primary-color, #4e7a3a)}.switch input:checked+.slider:before{transform:translate(20px)}.irrigation-toast{position:fixed;bottom:20px;left:50%;transform:translate(-50%);background:#1a1a2ef2;color:#fff;padding:10px 18px;border-radius:10px;font-size:.9rem;z-index:1000;box-shadow:0 4px 16px #00000040}@media(max-width:480px){.irrigation-valve{flex-direction:column;align-items:stretch}.valve-actions{justify-content:stretch}.btn-valve{flex:1}}.btn-calibrate{display:inline-flex;align-items:center;justify-content:center;padding:6px;background:transparent;border:1px solid var(--border-color, #e0e0e0);border-radius:6px;cursor:pointer;color:var(--text-secondary, #666);transition:all .2s ease}.btn-calibrate:hover{background:var(--primary-color, #4CAF50);color:#fff;border-color:var(--primary-color, #4CAF50)}.calibration-modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.calibration-modal{background:#fff;border-radius:12px;box-shadow:0 20px 40px #0003;max-width:500px;width:100%;max-height:90vh;overflow-y:auto}.calibration-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--border-color, #e0e0e0)}.calibration-header h3{display:flex;align-items:center;gap:8px;margin:0;font-size:1.1rem;color:var(--text-primary, #333)}.btn-close{display:flex;align-items:center;justify-content:center;padding:4px;background:transparent;border:none;cursor:pointer;color:var(--text-secondary, #666);border-radius:4px;transition:all .2s ease}.btn-close:hover{background:#f5f5f5;color:var(--text-primary, #333)}.calibration-body{padding:20px}.calibration-formula{background:linear-gradient(135deg,#f8f9fa,#e9ecef);padding:16px;border-radius:8px;margin-bottom:20px;text-align:center}.formula-label{display:block;font-size:.85rem;color:var(--text-secondary, #666);margin-bottom:8px}.formula{font-size:1.2rem;font-family:SF Mono,Monaco,Consolas,monospace;color:var(--text-primary, #333)}.formula strong{color:var(--primary-color, #4CAF50)}.calibration-inputs{display:flex;flex-direction:column;gap:16px;margin-bottom:20px}.input-group{display:flex;flex-direction:column;gap:4px}.input-group label{font-size:.9rem;font-weight:500;color:var(--text-primary, #333)}.input-group input{padding:10px 12px;border:1px solid var(--border-color, #e0e0e0);border-radius:8px;font-size:1rem;transition:border-color .2s ease}.input-group input:focus{outline:none;border-color:var(--primary-color, #4CAF50);box-shadow:0 0 0 3px #4caf501a}.input-hint{font-size:.75rem;color:var(--text-secondary, #999)}.calibration-preview{background:#f0f7f0;padding:16px;border-radius:8px;margin-bottom:16px}.calibration-preview h4{margin:0 0 12px;font-size:.9rem;color:var(--text-primary, #333)}.preview-row{display:flex;align-items:center;gap:12px}.preview-row input{flex:1;padding:8px 12px;border:1px solid var(--border-color, #e0e0e0);border-radius:6px;font-size:.95rem}.preview-arrow{font-size:1.2rem;color:var(--text-secondary, #999)}.preview-result{flex:1;padding:8px 12px;background:#fff;border-radius:6px;font-weight:500;color:var(--primary-color, #4CAF50);text-align:center}.current-reading{display:flex;gap:8px;padding:12px;background:#fff3e0;border-radius:8px;font-size:.9rem}.reading-label{color:var(--text-secondary, #666)}.reading-value{color:var(--text-primary, #333);font-weight:500}.calibration-message{display:flex;align-items:center;gap:8px;padding:12px;border-radius:8px;font-size:.9rem;margin-top:16px}.calibration-message.error{background:#ffebee;color:#c62828}.calibration-message.success{background:#e8f5e9;color:#2e7d32}.calibration-footer{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-top:1px solid var(--border-color, #e0e0e0);background:#fafafa;border-radius:0 0 12px 12px}.btn-history{display:flex;align-items:center;gap:6px;padding:8px 12px;background:transparent;border:1px solid var(--border-color, #e0e0e0);border-radius:6px;cursor:pointer;color:var(--text-secondary, #666);font-size:.85rem;transition:all .2s ease}.btn-history:hover{background:#fff;border-color:var(--text-secondary, #999)}.footer-actions{display:flex;gap:8px}.btn-cancel{padding:8px 16px;background:transparent;border:1px solid var(--border-color, #e0e0e0);border-radius:6px;cursor:pointer;color:var(--text-secondary, #666);font-size:.9rem;transition:all .2s ease}.btn-cancel:hover{background:#fff;border-color:var(--text-secondary, #999)}.btn-save{display:flex;align-items:center;gap:6px;padding:8px 16px;background:var(--primary-color, #4CAF50);border:none;border-radius:6px;cursor:pointer;color:#fff;font-size:.9rem;font-weight:500;transition:all .2s ease}.btn-save:hover:not(:disabled){background:#43a047}.btn-save:disabled{opacity:.6;cursor:not-allowed}.calibration-history{padding:16px 20px;border-top:1px solid var(--border-color, #e0e0e0);background:#fafafa}.calibration-history h4{margin:0 0 12px;font-size:.95rem;color:var(--text-primary, #333)}.no-history{color:var(--text-secondary, #999);font-style:italic;text-align:center;padding:20px}.calibration-history table{width:100%;border-collapse:collapse;font-size:.85rem}.calibration-history th,.calibration-history td{padding:8px 10px;text-align:left;border-bottom:1px solid var(--border-color, #e0e0e0)}.calibration-history th{font-weight:500;color:var(--text-secondary, #666);background:#fff}.calibration-history td{color:var(--text-primary, #333)}.calibration-history tr:last-child td{border-bottom:none}@media(max-width:480px){.calibration-modal{max-height:100vh;border-radius:0}.calibration-footer{flex-direction:column;gap:12px}.footer-actions{width:100%}.btn-cancel,.btn-save{flex:1;justify-content:center}.calibration-history table{font-size:.75rem}.calibration-history th,.calibration-history td{padding:6px 4px}}.sensor-card{background:#fff;border-radius:12px;box-shadow:0 2px 8px #00000014;border:1px solid var(--border-color, #e0e0e0);overflow:hidden;transition:all .2s ease}.sensor-card:hover{box-shadow:0 4px 16px #0000001f;transform:translateY(-2px)}.sensor-card.offline{opacity:.8}.sensor-card.inactive{opacity:.5}.sensor-card-header{display:flex;align-items:center;gap:12px;padding:16px;border-bottom:1px solid var(--border-color, #f0f0f0)}.sensor-icon-wrapper{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:12px;background:linear-gradient(135deg,#f8f9fa,#e9ecef)}.sensor-icon{width:24px;height:24px}.sensor-icon.temp{color:#ef5350}.sensor-icon.humidity{color:#42a5f5}.sensor-icon.soil{color:#8d6e63}.sensor-icon.wind{color:#78909c}.sensor-icon.light{color:#ffb300}.sensor-icon.rain{color:#5c6bc0}.sensor-icon.pressure{color:#ab47bc}.sensor-icon.voltage{color:#ffc107}.sensor-icon.signal{color:#26a69a}.sensor-icon.default{color:#4caf50}.sensor-info{flex:1;min-width:0}.sensor-name{margin:0;font-size:1rem;font-weight:600;color:var(--text-primary, #333);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sensor-type{font-size:.8rem;color:var(--text-secondary, #999);text-transform:capitalize}.sensor-status{display:flex;align-items:center}.status-icon{padding:4px;border-radius:50%}.status-icon.online{color:#4caf50;background:#e8f5e9}.status-icon.offline{color:#9e9e9e;background:#f5f5f5}.sensor-card-body{padding:16px}.sensor-value{margin-bottom:12px}.value-main{font-size:2rem;font-weight:700;color:var(--text-primary, #333);line-height:1.2}.value-raw{display:block;font-size:.75rem;color:var(--text-secondary, #999);margin-top:4px}.value-no-data{font-size:1.2rem;color:var(--text-secondary, #bbb);font-style:italic}.sensor-meta{display:flex;flex-wrap:wrap;gap:12px}.meta-item{display:flex;align-items:center;gap:4px;font-size:.75rem;color:var(--text-secondary, #999)}.meta-item.calibrated{color:#4caf50}.meta-item.stale{color:#ff9800}.sensor-card-footer{display:flex;justify-content:flex-end;padding:12px 16px;background:#fafafa;border-top:1px solid var(--border-color, #f0f0f0)}.sensors-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;margin-top:16px}.sensors-section{margin-top:32px}.sensors-section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.sensors-section-header h3{display:flex;align-items:center;gap:8px;margin:0;font-size:1.25rem;color:var(--text-primary, #333)}.sensor-count{font-size:.85rem;color:var(--text-secondary, #999);font-weight:400}.sensors-empty{text-align:center;padding:40px 20px;color:var(--text-secondary, #999)}.sensors-empty-icon{width:48px;height:48px;color:#ddd;margin-bottom:12px}.sensors-empty p{margin:0;font-size:.95rem}@media(max-width:480px){.sensor-card-header{padding:12px}.sensor-icon-wrapper{width:40px;height:40px}.sensor-icon{width:20px;height:20px}.sensor-name{font-size:.95rem}.sensor-card-body{padding:12px}.value-main{font-size:1.6rem}.sensors-grid{grid-template-columns:1fr}}.audio-player-widget{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;background:linear-gradient(135deg,#f5f5f5,#eee);border-radius:20px;max-width:280px}.audio-player-widget.playing{background:linear-gradient(135deg,#e3f2fd,#bbdefb)}.audio-player-widget.compact{padding:.35rem .5rem;max-width:200px}.audio-player-widget.error{background:#ffebee;justify-content:center}.error-text{font-size:.75rem;color:#c62828}.btn-play-widget{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:#1976d2;color:#fff;border:none;border-radius:50%;cursor:pointer;transition:all .2s ease;flex-shrink:0}.audio-player-widget.compact .btn-play-widget{width:26px;height:26px}.btn-play-widget:hover:not(:disabled){background:#1565c0;transform:scale(1.05)}.btn-play-widget:disabled{opacity:.5;cursor:not-allowed}.audio-player-widget.playing .btn-play-widget{background:#0d47a1}.progress-container{flex:1;height:28px;position:relative;cursor:pointer;border-radius:4px;overflow:hidden}.audio-player-widget.compact .progress-container{height:22px}.progress-bar{position:absolute;top:0;left:0;height:100%;background:#1976d226;transition:width .1s linear;pointer-events:none}.waveform-visual{display:flex;align-items:center;justify-content:space-around;height:100%;padding:4px 0}.wave-bar{width:2px;background:#bdbdbd;border-radius:1px;transition:background .15s ease}.audio-player-widget.compact .wave-bar{width:1.5px}.wave-bar.played{background:#1976d2}.audio-player-widget.playing .wave-bar.played{background:#0d47a1}.time-display{font-family:monospace;font-size:.8rem;font-weight:500;color:#616161;min-width:32px;text-align:right;flex-shrink:0}.audio-player-widget.compact .time-display{font-size:.7rem;min-width:28px}.audio-player-widget.playing .time-display{color:#1565c0}@media(max-width:480px){.audio-player-widget,.audio-player-widget.compact{max-width:100%}}.audio-recorder{display:flex;flex-direction:column;gap:.5rem}.btn-record{display:flex;align-items:center;gap:.5rem;padding:.75rem 1.25rem;background:linear-gradient(135deg,#4caf50,#43a047);color:#fff;border:none;border-radius:24px;cursor:pointer;font-size:.9rem;font-weight:500;transition:all .2s ease;box-shadow:0 2px 8px #4caf504d}.btn-record:hover:not(:disabled){background:linear-gradient(135deg,#43a047,#388e3c);transform:translateY(-1px);box-shadow:0 4px 12px #4caf5066}.btn-record:disabled{opacity:.5;cursor:not-allowed}.recording-controls{display:flex;align-items:center;gap:1rem;padding:.75rem 1rem;background:#fff5f5;border:2px solid #ef5350;border-radius:24px;animation:pulse-border 1.5s infinite}@keyframes pulse-border{0%,to{border-color:#ef5350}50%{border-color:#ffcdd2}}.recording-indicator{display:flex;align-items:center;gap:.5rem;flex:1}.recording-dot{width:12px;height:12px;background:#ef5350;border-radius:50%;animation:pulse-dot 1s infinite}@keyframes pulse-dot{0%,to{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.8)}}.recording-time{font-family:monospace;font-size:1.1rem;font-weight:600;color:#ef5350}.btn-cancel,.btn-stop{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border:none;border-radius:50%;cursor:pointer;transition:all .2s ease}.btn-cancel{background:#f5f5f5;color:#757575}.btn-cancel:hover{background:#e0e0e0;color:#424242}.btn-stop{background:#ef5350;color:#fff}.btn-stop:hover{background:#e53935;transform:scale(1.05)}.audio-recorder.has-audio{width:100%}.audio-player{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;background:linear-gradient(135deg,#e8f5e9,#c8e6c9);border-radius:24px;border:1px solid #a5d6a7}.btn-play{width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:#4caf50;color:#fff;border:none;border-radius:50%;cursor:pointer;transition:all .2s ease;flex-shrink:0}.btn-play:hover:not(:disabled){background:#43a047;transform:scale(1.05)}.btn-play:disabled{opacity:.5;cursor:not-allowed}.audio-waveform{flex:1;height:32px;position:relative;background:#ffffff80;border-radius:4px;overflow:hidden}.audio-progress{position:absolute;top:0;left:0;height:100%;background:#4caf504d;transition:width .1s linear}.waveform-bars{display:flex;align-items:center;justify-content:space-around;height:100%;padding:4px 0}.waveform-bars .bar{width:2px;background:#a5d6a7;border-radius:1px;transition:background .2s ease}.waveform-bars .bar.active{background:#4caf50}.audio-time{font-family:monospace;font-size:.9rem;font-weight:500;color:#2e7d32;min-width:40px;text-align:right}.btn-delete{width:36px;height:36px;display:flex;align-items:center;justify-content:center;background:transparent;color:#757575;border:none;border-radius:50%;cursor:pointer;transition:all .2s ease;flex-shrink:0}.btn-delete:hover:not(:disabled){background:#ffebee;color:#ef5350}.btn-delete:disabled{opacity:.5;cursor:not-allowed}.audio-error{color:#ef5350;font-size:.85rem;padding:.25rem .5rem}@media(max-width:480px){.audio-player{padding:.5rem .75rem;gap:.5rem}.btn-play,.btn-delete{width:32px;height:32px}.audio-time{font-size:.8rem;min-width:32px}.recording-controls{padding:.5rem .75rem}}.device-hierarchy-card{background:linear-gradient(135deg,#faf8f6,#f5ede4);border:2px solid #e8d5c4;border-radius:12px;padding:1rem;margin-bottom:.75rem;transition:all .2s ease}.device-hierarchy-card:hover{border-color:#d4a574;box-shadow:0 4px 12px #d4a57426}.device-hierarchy-card.is-hub{border-left:4px solid #7fb069}.device-hierarchy-card.is-node{border-left:4px solid #6b98d4}.device-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.device-info{display:flex;align-items:center;gap:.5rem;cursor:pointer;flex:1}.expand-icon{color:#8b7355;display:flex;align-items:center}.device-icon{flex-shrink:0}.device-icon.hub{color:#7fb069}.device-icon.node{color:#6b98d4}.device-icon.other{color:#8b7355}.device-name-section{display:flex;flex-direction:column;gap:.125rem}.device-name{color:#5a4e44;font-size:1rem}.device-type{font-size:.75rem;color:#8b7355}.device-actions{display:flex;align-items:center;gap:.5rem}.status-badge{font-size:.7rem;padding:.2rem .5rem;border-radius:10px;font-weight:500}.status-badge.active{background:#7fb06926;color:#5d8a4a}.status-badge.inactive{background:#dc35451a;color:#dc3545}.btn-delete-device,.btn-delete-node{display:flex;align-items:center;justify-content:center;padding:.4rem;border:none;border-radius:6px;background:#dc35451a;color:#dc3545;cursor:pointer;transition:all .2s ease}.btn-delete-device:hover,.btn-delete-node:hover{background:#dc3545;color:#fff}.btn-delete-device:disabled,.btn-delete-node:disabled{opacity:.5;cursor:not-allowed}.cascade-warning{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;margin-top:.75rem;background:#ffc1071a;border:1px solid rgba(255,193,7,.3);border-radius:8px;font-size:.8rem;color:#856404}.cascade-warning svg{flex-shrink:0;color:#ffc107}.device-content{margin-top:.75rem;padding-top:.75rem;border-top:1px solid rgba(212,165,116,.2)}.section-label{display:flex;align-items:center;gap:.375rem;font-size:.8rem;font-weight:600;color:#8b7355;margin-bottom:.5rem}.sensor-list{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:.5rem}.sensor-list.nested{margin-left:1.5rem;margin-top:.5rem}.sensor-item{display:flex;align-items:center;gap:.5rem;padding:.375rem .75rem;background:#fff;border:1px solid #e8d5c4;border-radius:20px;font-size:.8rem}.sensor-item.inactive{opacity:.5}.sensor-name{color:#5a4e44;font-weight:500}.sensor-kind{color:#8b7355;font-size:.7rem}.nodes-section{margin-top:.75rem}.nodes-list{display:flex;flex-direction:column;gap:.5rem}.nested-node{background:#6b98d40d;border:1px solid rgba(107,152,212,.2);border-radius:10px;padding:.75rem;margin-left:.5rem}.node-header{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem}.node-info{display:flex;align-items:center;flex-wrap:wrap;gap:.3rem .5rem;flex:1;min-width:0}.node-info strong{color:#5a4e44;font-size:.9rem}.dev-eui{font-size:.7rem;color:#8b7355;background:#8b73551a;padding:.125rem .5rem;border-radius:4px;font-family:monospace;max-width:100%;overflow-wrap:anywhere}.btn-delete-node{flex-shrink:0}.empty-message{text-align:center;color:#8b7355;font-size:.85rem;padding:.75rem}.delete-confirm-modal{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.delete-confirm-content{background:#fff;border-radius:16px;padding:1.5rem;max-width:400px;width:90%;box-shadow:0 20px 40px #0003}.delete-confirm-content h3{margin:0 0 1rem;color:#5a4e44;display:flex;align-items:center;gap:.5rem}.delete-confirm-content h3 svg{color:#dc3545}.delete-confirm-content p{color:#666;margin-bottom:1rem}.delete-confirm-warning{background:#ffc1071a;border:1px solid rgba(255,193,7,.3);border-radius:8px;padding:.75rem;margin-bottom:1rem;display:flex;align-items:flex-start;gap:.5rem;font-size:.9rem;color:#856404}.delete-confirm-actions{display:flex;gap:.75rem;justify-content:flex-end;flex-wrap:wrap}.delete-confirm-actions button{padding:.65rem 1rem;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s ease;min-width:140px;white-space:nowrap;text-align:center}.delete-confirm-actions .btn-cancel{background:#f5f5f5;border:1px solid #ddd;color:#666}.delete-confirm-actions .btn-cancel:hover{background:#eee}.delete-confirm-actions .btn-delete{background:#dc3545;border:none;color:#fff}.delete-confirm-actions .btn-delete:hover{background:#c82333}@media(max-width:480px){.device-header{flex-wrap:wrap}.sensor-list{flex-direction:column}.sensor-item{width:100%}.delete-confirm-content{width:calc(100% - 1.25rem);max-width:420px;padding:1rem}.delete-confirm-actions{flex-direction:column;align-items:stretch}.delete-confirm-actions button{width:100%;min-width:0}}.dashboard-container{min-height:100vh;background:linear-gradient(180deg,var(--c-bg) 0%,var(--c-surface) 100%);padding:2rem 1rem;padding-left:max(1rem,env(safe-area-inset-left));padding-right:max(1rem,env(safe-area-inset-right));-webkit-tap-highlight-color:rgba(212,165,116,.2)}.dashboard-content{max-width:1200px;margin:0 auto;display:flex;flex-direction:column;gap:2rem}.dashboard-primary-tabs{position:sticky;top:.75rem;z-index:5;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;padding:.8rem;border-radius:20px;background:#fffcf7;border:1px solid rgba(234,216,199,.9);box-shadow:0 10px 25px #7e61411f}.dashboard-primary-tab{min-height:64px;display:inline-flex;align-items:center;justify-content:center;gap:.65rem;padding:.85rem 1rem;border:1px solid transparent;border-radius:16px;background:transparent;color:var(--c-muted);font-size:1rem;font-weight:700;cursor:pointer;transition:transform .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease}.dashboard-primary-tab:hover{transform:translateY(-1px);background:#ffffffd9;color:var(--c-ink)}.dashboard-primary-tab.active{background:linear-gradient(135deg,#fff,#f7efe5);color:var(--c-riego);border-color:#2f7d4a24;box-shadow:0 8px 20px #2f7d4a1f}.dashboard-tab-panel{display:grid;gap:1.4rem}.dashboard-hero-grid{display:grid;grid-template-columns:1fr;gap:1rem}.weather-alert-card{display:grid;gap:.6rem;padding:1.25rem 1.5rem;border-radius:24px;border:1.5px solid #efc27f;background:linear-gradient(135deg,#fff8ec,#fdeccd);box-shadow:0 12px 32px #b06c2029;animation:weather-alert-in .35s ease}@keyframes weather-alert-in{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}.weather-alert-head{display:flex;align-items:center;gap:.75rem}.weather-alert-icon{flex:0 0 auto;width:46px;height:46px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;background:#b3540a;color:#fff8ec}.weather-alert-kicker{display:block;font-size:.9rem;font-weight:800;letter-spacing:.03em;text-transform:uppercase;color:#8a4a08}.weather-alert-date{display:block;font-size:.85rem;font-weight:600;color:#99672e}.weather-alert-summary{margin:0;font-size:1.15rem;line-height:1.45;font-weight:700;color:#4b2f14}.weather-alert-detail{margin:0;font-size:.98rem;line-height:1.55;color:#6b4d28}.weather-alert-zones{display:flex;flex-wrap:wrap;gap:.4rem}.weather-alert-zone-chip{display:inline-flex;align-items:center;gap:.35rem;padding:.3rem .75rem;border-radius:999px;background:#b3540a1f;border:1px solid rgba(179,84,10,.28);color:#7c440b;font-size:.85rem;font-weight:700}.dashboard-action-card,.dashboard-highlight-card{padding:1.5rem;border-radius:24px;border:1px solid rgba(234,216,199,.95);background:var(--c-surface-raised);box-shadow:0 12px 32px #7e61411a}.dashboard-action-card{background:linear-gradient(135deg,var(--c-surface-raised) 0%,#f6efe6 100%)}.dashboard-action-card.is-regar{background:linear-gradient(135deg,var(--c-surface-raised) 0%,#eef7f0 100%)}.dashboard-highlight-card{display:grid;gap:.8rem;background:linear-gradient(135deg,var(--c-surface-raised) 0%,#f6efe6 100%)}.dashboard-action-card-top,.dashboard-highlight-top,.dashboard-recommendation-top,.dashboard-section-headline{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.dashboard-card-kicker{color:var(--c-text);font-size:.9rem;font-weight:700}.dashboard-card-chip,.dashboard-inline-badge{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:.35rem .75rem;border-radius:999px;background:#ffffffe6;border:1px solid rgba(185,123,49,.16);color:var(--c-ink);font-size:.875rem;font-weight:700}.dashboard-action-title{margin:.3rem 0 0;color:var(--c-ink);font-size:clamp(1.8rem,3vw,2.5rem);line-height:1.05}.dashboard-action-amount{margin:.75rem 0 0;color:var(--c-riego);font-size:clamp(1.2rem,2.4vw,1.7rem);font-weight:700}.dashboard-action-caption,.dashboard-action-detail{margin:0;color:var(--c-muted);line-height:1.55}.dashboard-action-metrics{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1rem}.dashboard-action-metric{display:inline-flex;align-items:center;gap:.5rem;min-height:42px;padding:.55rem .8rem;border-radius:14px;background:#ffffffbf;color:var(--c-ink);font-weight:600}.dashboard-link-button{display:inline-flex;align-items:center;min-height:44px;padding:.4rem .25rem;border:none;background:transparent;color:#a8662e;font-weight:700;text-decoration:underline;text-underline-offset:2px;cursor:pointer}.dashboard-inline-cta{width:fit-content;margin-top:1rem}.section-emphasis{border-radius:22px;border-color:#b97b3124;box-shadow:0 10px 24px #7e614114}.dashboard-empty-panel{padding:1.2rem;border-radius:16px;background:linear-gradient(135deg,var(--c-bg) 0%,#f4ede5 100%);color:var(--c-muted);border:1px dashed #ead8c7}.dashboard-recommendations-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem}.dashboard-recommendations-grid.compact{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.dashboard-rec-search{width:100%;min-height:44px;padding:0 14px;margin-bottom:1rem;border:1px solid var(--c-border);border-radius:12px;background:var(--c-surface-raised);color:var(--c-text);font-size:1rem}.dashboard-rec-search:focus{outline:none;border-color:var(--c-primary)}.dashboard-rec-more{margin-top:1rem;width:100%}.dashboard-recommendation-card{display:grid;gap:.75rem;padding:1.2rem;border-radius:18px;background:linear-gradient(135deg,#fff,#fbf6ef);border:1px solid rgba(234,216,199,.9);content-visibility:auto;contain-intrinsic-size:auto 160px}.dashboard-recommendation-card.featured{border-color:#c6996380;box-shadow:0 10px 24px #d4a5742e}.dashboard-recommendation-card.compact{padding:1rem}.dashboard-recommendation-card h3,.dashboard-highlight-card h3{margin:0;color:var(--c-ink);font-size:1.08rem}.dashboard-recommendation-card p,.dashboard-highlight-card p{margin:0;color:var(--c-ink);line-height:1.55}.dashboard-actions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.dashboard-actions-grid.equipment-view{grid-template-columns:minmax(0,1.2fr) minmax(320px,.95fr)}.dashboard-nested-section{height:100%;padding:1.4rem;border-radius:20px;background:linear-gradient(135deg,var(--c-surface-raised) 0%,#f8f1e8 100%)}.dashboard-secondary-tabs{display:inline-flex;flex-wrap:wrap;gap:.5rem;padding:.35rem;border-radius:14px;background:#f3ece3;max-width:100%}.dashboard-secondary-tab{min-height:44px;padding:.7rem 1rem;border:none;border-radius:12px;background:transparent;color:var(--c-muted);font-weight:700;cursor:pointer}.dashboard-secondary-tab.active{background:#fff;color:var(--c-riego);box-shadow:0 6px 15px #7e61411f}.dashboard-devices-panel{margin-top:1.5rem}.dashboard-devices-list{margin-top:.75rem}.pair-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-top:1rem}.pair-tab{min-height:56px;padding:.9rem 1rem;border-radius:16px;border:1px solid #ead8c7;background:#fff;color:var(--c-muted);font-weight:700;cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.pair-tab:hover{transform:translateY(-1px)}.pair-tab.active.visualizador{color:var(--c-riego);border-color:#2f7d4a38;box-shadow:0 10px 20px #2f7d4a1f}.pair-tab.active.nodo{color:#a8662e;border-color:#a8662e3d;box-shadow:0 10px 20px #a8662e1f}.pair-tab-content{margin-top:1rem;padding:1rem;border-radius:20px;border:1px solid #ead8c7;background:#fff}.pair-tab-content.visualizador{background:linear-gradient(135deg,#fcfffd,#eff8f2);border-color:#2f7d4a2e}.pair-tab-content.nodo{background:linear-gradient(135deg,#fff,#f9f1e8);border-color:#a8662e2e}.pair-tab-intro{margin-bottom:1rem}.pair-form-row{align-items:end}.pair-actions-row{display:flex;align-items:center;flex-wrap:wrap;gap:.75rem;margin-top:1rem}.pair-scan-button.visualizador{background:linear-gradient(135deg,var(--c-riego) 0%,#276a3d 100%)}.pair-scan-button.nodo{background:linear-gradient(135deg,var(--c-primary-dark) 0%,#a8662e 100%)}.pair-warning{display:block;margin-top:.35rem;color:#b45b0b}.pair-scanner-wrap{display:grid;gap:.75rem;margin-top:1rem}.pair-result{margin-top:1rem;padding:.95rem 1rem;border-radius:14px;font-weight:600}.pair-result.success{background:#eaf6ee;border:1px solid #b8dec2;color:#1f5a34}.pair-result.error{background:#fff1ee;border:1px solid #f0b5a8;color:#a23f2f}.pair-result.warning{background:#fff8e7;border:1px solid #f0d28b;color:#8c5b07}.loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:300px;gap:1rem}.spinner{width:40px;height:40px;border:4px solid var(--c-border);border-top-color:var(--c-primary);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.section{background:#fff;border-radius:20px;padding:2rem;box-shadow:0 4px 12px #d4a57414;border:1px solid rgba(212,165,116,.1)}.section-title{margin:0 0 1.5rem;font-size:1.5rem;color:var(--c-text);font-weight:700;display:flex;align-items:center;gap:.5rem}.empty-state{text-align:center;padding:2rem;color:var(--c-muted)}.empty-icon{font-size:3rem;margin:0;display:block}.empty-text{margin:1rem 0 0;font-size:1.1rem}.parcels-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1.5rem;margin-bottom:2rem}.parcel-card{background:linear-gradient(135deg,var(--c-bg) 0%,var(--c-surface) 100%);border:2px solid var(--c-border);border-radius:12px;padding:1.5rem;cursor:pointer;transition:all .3s ease;display:flex;flex-direction:column;gap:.5rem}.parcel-card:hover{border-color:var(--c-primary);box-shadow:0 8px 20px #d4a57433;transform:translateY(-4px)}.parcel-icon{font-size:2.5rem}.parcel-card h3{margin:0;color:var(--c-text);font-size:1.25rem;font-weight:600}.parcel-coords{margin:.5rem 0 0;color:var(--c-muted);font-size:.9rem}.parcel-area{margin:.5rem 0 0;color:var(--c-primary);font-weight:600}.new-parcel-form{margin-top:1.5rem;border:2px solid var(--c-border);border-radius:12px;overflow:hidden}.new-parcel-form summary{padding:1rem;background:linear-gradient(135deg,var(--c-surface) 0%,#ede1d6 100%);cursor:pointer;display:flex;align-items:center;gap:.5rem;font-weight:600;color:var(--c-text);transition:background .3s ease;list-style:none}.new-parcel-form summary:hover{background:linear-gradient(135deg,#ede1d6,#e5d5ca)}.plus-icon{font-size:1.25rem;font-weight:700}.new-parcel-form.open summary{border-bottom:2px solid var(--c-primary)}.form-content{padding:1.5rem;display:flex;flex-direction:column;gap:1rem}.form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.form-group{display:flex;flex-direction:column;gap:.4rem}.form-group label{font-weight:600;color:var(--c-text);font-size:.95rem}.form-group input,.form-group select{padding:.75rem;border:2px solid var(--c-border);border-radius:8px;font-size:1rem;background:var(--c-bg);color:#3a3430;transition:all .3s ease}.form-group input:focus{outline:none;border-color:var(--c-primary);background:#fff;box-shadow:0 0 0 3px #d4a5741a}.form-group select:focus{outline:none;border-color:var(--c-primary);background:#fff;box-shadow:0 0 0 3px #d4a5741a}.button-group{display:flex;gap:1rem;margin-top:1rem;justify-content:flex-end}.btn-primary,.btn-secondary{min-height:44px;padding:.75rem 1.5rem;border:none;border-radius:8px;font-weight:600;cursor:pointer;transition:all .3s ease;font-size:.95rem}.btn-primary{background:linear-gradient(135deg,var(--c-primary) 0%,var(--c-primary-dark) 100%);color:#fff;box-shadow:0 4px 12px #d4a57433}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 6px 20px #d4a5744d}.btn-secondary{background:#fff;border:2px solid var(--c-primary);color:var(--c-primary)}.btn-secondary:hover{background:var(--c-bg)}.btn-secondary-small{padding:.6rem 1.2rem;background:#fff;border:2px solid var(--c-primary);color:var(--c-primary);border-radius:6px;font-weight:600;cursor:pointer;transition:all .3s ease;font-size:.9rem;align-self:flex-start}.btn-secondary-small:hover{background:var(--c-bg)}.dashboard-primary-tab:focus-visible,.dashboard-secondary-tab:focus-visible,.report-type-tab:focus-visible,.pair-tab:focus-visible,.btn-primary:focus-visible,.btn-secondary:focus-visible,.btn-secondary-small:focus-visible,.btn-danger-small:focus-visible,.btn-refresh:focus-visible,.dashboard-link-button:focus-visible,.calendar-parcel-select:focus-visible,.pest-photo-btn:focus-visible,.pest-photo-remove:focus-visible,.image-modal-close:focus-visible{outline:3px solid var(--c-riego);outline-offset:2px}.list{list-style:none;margin:0;padding:0;display:grid;gap:.75rem}.list.slim{gap:.4rem}.muted{color:var(--c-muted)}.small{font-size:.85rem}.mt{margin-top:1rem}.cards-stack{display:grid;gap:1rem}.card{border:2px solid var(--c-border);border-radius:12px;background:var(--c-bg);padding:1rem}.card-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.5rem}.card-body{display:grid;gap:.5rem}.table-wrap{overflow:auto;border:1px solid var(--c-border);border-radius:10px;background:#fff}.table-wrap table{width:100%;border-collapse:collapse}.table-wrap th,.table-wrap td{padding:.6rem .75rem;border-bottom:1px solid #eee1d6;text-align:left;font-size:.9rem}.map-canvas{width:100%;height:320px;border:2px solid var(--c-border);border-radius:12px;overflow:hidden}.qr-canvas{width:100%;max-width:300px;aspect-ratio:1 / 1;border:2px dashed var(--c-primary);border-radius:12px;background:var(--c-bg);margin-top:1rem;overflow:hidden}.plans-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.5rem}.plan-card{background:linear-gradient(135deg,var(--c-bg) 0%,var(--c-surface) 100%);border:2px solid var(--c-border);border-radius:12px;padding:1.5rem;transition:all .3s ease;overflow:visible}.plan-card:hover{border-color:var(--c-primary);box-shadow:0 8px 20px #d4a57433}.plan-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;border-bottom:2px solid var(--c-border);padding-bottom:1rem}.plan-header h3{margin:0;color:var(--c-text)}.plan-status{background:linear-gradient(135deg,var(--c-primary) 0%,var(--c-primary-dark) 100%);color:#fff;padding:.3rem .8rem;border-radius:20px;font-size:.85rem;font-weight:600}.plan-details{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1rem}.plan-details p{margin:0;color:var(--c-muted);font-size:.95rem}.plan-title-actions{display:flex;align-items:center;gap:.75rem}.btn-delete-plan{display:inline-flex;align-items:center;gap:.35rem;background:#fff;border:1px solid #e8b8a8;color:var(--c-alert);border-radius:8px;font-size:.82rem;font-weight:600;padding:.35rem .6rem;cursor:pointer;transition:all .2s ease}.btn-delete-plan:hover{background:#fff5f0;border-color:#d97a64}.btn-delete-plan:disabled{opacity:.6;cursor:not-allowed}.calendar-section-header{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.5rem}.calendar-subtitle{margin:0 0 1rem;color:var(--c-muted)}.calendar-parcel-bar{display:flex;align-items:center;gap:.85rem;flex-wrap:wrap;padding:.9rem 1.1rem;border-radius:18px;border:1px solid rgba(234,216,199,.95);background:linear-gradient(135deg,var(--c-surface-raised) 0%,#f6efe6 100%);box-shadow:0 8px 22px #7e614114}.calendar-parcel-bar-label{display:inline-flex;align-items:center;gap:.45rem;font-weight:700;font-size:.9rem;color:var(--c-text);white-space:nowrap}.calendar-parcel-select{flex:1 1 100%;width:100%;min-width:0;min-height:48px;padding:.8rem 2.4rem .8rem .9rem;border:2px solid var(--c-border);border-radius:12px;font-size:16px;font-weight:600;background-color:var(--c-surface-raised, #fffdf9);color:var(--c-ink, #45362d);cursor:pointer;-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%2345362d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .9rem center;background-size:1.1rem;text-overflow:ellipsis;transition:border-color .15s ease,box-shadow .15s ease}.calendar-parcel-select:hover,.calendar-parcel-select:focus{border-color:var(--c-riego);box-shadow:0 0 0 3px #2f7d4a1f;outline:none}.irrigation-calendar-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:.85rem}.calendar-day-card{border-radius:12px;border:1px solid var(--c-border);background:#fff;padding:.85rem;display:grid;gap:.55rem}.calendar-day-card.needs-water{border-color:var(--c-riego-soft);background:linear-gradient(135deg,#f1f9f0,#e3f3e4)}.calendar-day-card.needs-water .calendar-day-status svg{color:#2e6bb3}.calendar-day-card.no-water{border-color:var(--c-border);background:linear-gradient(135deg,var(--c-surface-raised) 0%,#f6efe6 100%)}.calendar-day-date{color:var(--c-text);font-weight:700;font-size:.95rem;display:flex;align-items:center;justify-content:space-between;gap:.5rem}.calendar-day-card.is-today{border-color:#f2b63d;box-shadow:0 0 0 2px #f2b63d40}.today-badge{display:inline-flex;align-items:center;justify-content:center;padding:.15rem .5rem;border-radius:999px;font-size:.8rem;font-weight:700;color:#7a4f00;background:#ffe29c;border:1px solid #f2b63d}.today-badge.manana{color:var(--c-text);background:#f0e6da;border-color:#e1d1bf}#plan-calendar tbody tr.today-row td{background:#fff4cf}.calendar-day-status{display:inline-flex;align-items:center;gap:.35rem;font-size:.88rem;font-weight:600;color:var(--c-text)}.calendar-day-metrics{display:grid;gap:.35rem}.metric-item{display:inline-flex;align-items:center;gap:.4rem;color:var(--c-muted);font-size:.875rem}.metric-water{color:var(--c-riego);font-weight:600}.metric-water svg{color:#2e6bb3}.error-message{background:#fff5f0;border:2px solid #e8b8a8;border-radius:12px;padding:1rem 1.5rem;color:var(--c-alert);font-weight:500;margin-bottom:1rem}.notice-message{background:#eef7ef;border:2px solid var(--c-riego-soft);border-radius:12px;padding:1rem 1.5rem;color:var(--c-riego);font-weight:600;margin-bottom:1rem}@media(max-width:768px){.dashboard-container{padding:1rem}.dashboard-content{gap:1.5rem}.section{padding:1.5rem}.section-title{font-size:1.25rem}.parcels-grid{grid-template-columns:1fr;gap:1rem}.button-group{flex-direction:column}.btn-primary,.btn-secondary{width:100%}.plans-list,.info-cards{grid-template-columns:1fr}.plan-card{padding:1rem}.calendar-section-header{flex-direction:column;align-items:stretch}}@media(max-width:480px){.plan-card{padding:.75rem}.plan-header{padding-bottom:.75rem;margin-bottom:.75rem;align-items:flex-start}.plan-header h3{font-size:1rem}.plan-title-actions{flex-direction:column;align-items:flex-start;gap:.5rem}.btn-delete-plan{width:100%;justify-content:center;font-size:.8rem}.plan-status{font-size:.75rem;padding:.2rem .6rem}.plan-details{gap:.35rem;margin-bottom:.75rem}.plan-details p{font-size:.85rem}}.calibrate-buttons{display:flex;align-items:center;gap:1rem;margin-top:1rem;flex-wrap:wrap}.cards-stack{display:flex;flex-direction:column;gap:1rem}.card{background:#fff;border:1px solid var(--c-border);border-radius:12px;overflow:hidden}.card-header{background:linear-gradient(135deg,var(--c-bg) 0%,var(--c-surface) 100%);padding:1rem;border-bottom:1px solid var(--c-border)}.card-body{padding:1rem}.list{list-style:none;padding:0;margin:0}.list li{padding:.5rem 0;border-bottom:1px solid #f0ebe6}.list li:last-child{border-bottom:none}.list.slim li{padding:.25rem 0;font-size:.9rem}.btn-danger{padding:.75rem 1.5rem;background:linear-gradient(135deg,var(--c-danger) 0%,#c82333 100%);color:#fff;border:none;border-radius:10px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .3s ease}.btn-danger:hover{background:linear-gradient(135deg,#c82333,#bd2130);transform:translateY(-1px)}.btn-danger-small{min-height:44px;padding:.4rem .9rem;background:var(--c-danger);color:#fff;border:none;border-radius:6px;font-size:.875rem;font-weight:500;cursor:pointer}.btn-danger-small:hover{background:#c82333}.financier-logos-dashboard{margin-top:2rem;padding:2rem;text-align:center;background:linear-gradient(135deg,var(--c-bg) 0%,var(--c-surface) 100%);border-radius:12px;border:1px solid var(--c-border)}.financier-logos-dashboard .logos-title{font-size:.95rem;color:var(--c-muted);margin-bottom:1.5rem;font-weight:600}.financier-logos-dashboard .logos-container{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:2rem;padding:.5rem}.financier-logos-dashboard .logos-container img{height:48px;width:auto;max-width:120px;object-fit:contain;filter:grayscale(20%);opacity:.85;transition:all .3s ease}.financier-logos-dashboard .logos-container img:hover{filter:grayscale(0%);opacity:1;transform:scale(1.08)}@media(max-width:768px){.financier-logos-dashboard{padding:1.5rem}.financier-logos-dashboard .logos-container{gap:1.2rem}.financier-logos-dashboard .logos-container img{height:36px;max-width:90px}}.sensors-section{background:#fff}.sensors-section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.5rem;flex-wrap:wrap;gap:1rem}.sensors-section-header .section-title{margin:0;display:flex;align-items:center;gap:.5rem}.sensors-actions{display:flex;align-items:center;gap:.75rem}.ws-status{display:flex;align-items:center;justify-content:center;padding:.25rem;border-radius:4px;transition:all .3s ease}.ws-status.connected{color:var(--c-riego)}.ws-status.disconnected{color:var(--c-alert);animation:pulse-warning 2s infinite}@keyframes pulse-warning{0%,to{opacity:1}50%{opacity:.5}}.last-update{font-size:.8rem;color:var(--c-muted)}.btn-refresh{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid var(--c-border);border-radius:8px;background:#fff;color:var(--c-text);cursor:pointer;transition:all .2s ease}.btn-refresh:hover:not(:disabled){border-color:var(--c-primary);background:var(--c-bg)}.btn-refresh:disabled{opacity:.5;cursor:not-allowed}.btn-refresh.spinning svg{animation:spin 1s linear infinite}.sensor-count{font-size:.9rem;font-weight:500;color:var(--c-muted);margin-left:.5rem}.sensor-groups{display:flex;flex-direction:column;gap:.75rem}.sensor-device-group{border:1px solid #efe3d6;border-radius:12px;background:#fff;overflow:hidden}.sensor-device-summary{display:flex;align-items:center;gap:.75rem;padding:.85rem 1rem;cursor:pointer;-webkit-user-select:none;user-select:none;list-style:none;transition:background .2s ease}.sensor-device-summary::-webkit-details-marker{display:none}.sensor-device-summary:hover{background:var(--c-bg)}.sensor-device-group[open] .sensor-device-summary{background:var(--c-bg);border-bottom:1px solid #efe3d6}.sensor-device-icon{display:flex;align-items:center;color:var(--c-primary);flex-shrink:0}.sensor-device-info{display:flex;flex-direction:column;min-width:0;flex:1 1 auto}.sensor-device-name{font-weight:600;color:var(--c-text);font-size:.95rem;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sensor-device-parent{font-size:.75rem;color:var(--c-muted)}.sensor-device-count{flex-shrink:0;min-width:1.4rem;height:1.4rem;padding:0 .45rem;display:flex;align-items:center;justify-content:center;background:#f0e6da;color:#8a7866;border-radius:999px;font-size:.78rem;font-weight:600}.sensor-device-preview{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.35rem}.sensor-chip{font-size:.78rem;font-weight:600;color:var(--c-muted);background:#f7f1ea;border:1px solid #efe3d6;border-radius:6px;padding:.1rem .45rem;white-space:nowrap}.sensor-device-summary .chevron{flex-shrink:0;color:#b8a591;transition:transform .2s ease}.sensor-device-group[open] .sensor-device-summary .chevron{transform:rotate(90deg)}.sensor-device-group[open] .sensor-device-preview{display:none}.sensor-device-content{padding:1rem}.sensors-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.25rem}.sensors-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem;color:var(--c-muted);text-align:center}.sensors-empty-icon{width:48px;height:48px;margin-bottom:1rem;opacity:.5}.sensors-empty p{margin:0;font-size:1.1rem}.devices-details{border-top:1px solid rgba(212,165,116,.2);padding-top:1rem}.devices-summary{display:flex;align-items:center;gap:.5rem;cursor:pointer;padding:.75rem 1rem;background:var(--c-bg);border-radius:8px;color:var(--c-text);font-weight:500;transition:background .2s ease;-webkit-user-select:none;user-select:none}.devices-summary:hover{background:var(--c-surface)}.devices-summary .chevron{margin-left:auto;transition:transform .2s ease}.devices-details[open] .devices-summary .chevron{transform:rotate(90deg)}@media(max-width:768px){.sensors-grid{grid-template-columns:1fr}.sensors-section-header{flex-direction:column;align-items:flex-start;gap:.5rem}.sensor-device-content{padding:.75rem}.sensor-device-summary{gap:.5rem;padding:.75rem .85rem}}@media(max-width:480px){.sensors-grid{gap:1rem}}.pest-photo-section{margin:1rem 0;display:flex;justify-content:center}.pest-photo-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;width:120px;height:120px;border:2px dashed var(--c-primary);border-radius:12px;background:linear-gradient(135deg,var(--c-bg) 0%,var(--c-surface) 100%);color:#8b7355;cursor:pointer;transition:all .2s ease}.pest-photo-btn:hover{border-color:var(--c-primary-dark);background:linear-gradient(135deg,var(--c-surface) 0%,#ebe0d4 100%);color:var(--c-text)}.pest-photo-btn span{font-size:.875rem;font-weight:500}.pest-photo-preview{position:relative;width:120px;height:120px;border-radius:12px;overflow:hidden;border:2px solid var(--c-riego);box-shadow:0 4px 12px #2f7d4a33}.pest-photo-preview img{width:100%;height:100%;object-fit:cover}.pest-photo-remove{position:absolute;top:4px;right:4px;width:44px;height:44px;border-radius:50%;background:#dc3545e6;border:none;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s ease}.pest-photo-remove:hover{background:var(--c-danger)}.report-type-tabs{display:flex;gap:.5rem;margin-bottom:1rem;flex-wrap:wrap}.report-type-tab{display:inline-flex;align-items:center;gap:.4rem;flex:1 1 140px;justify-content:center;min-height:44px;padding:.6rem .75rem;border:2px solid var(--c-border);border-radius:10px;background:var(--c-bg);color:#8b7355;font-weight:600;font-size:.9rem;cursor:pointer;transition:all .2s ease}.report-type-tab:hover{border-color:var(--c-primary)}.report-type-tab.active{background:var(--c-riego);border-color:var(--c-riego);color:#fff}.pest-info-card{margin:.5rem 0 1rem;padding:.75rem;border:1px solid var(--c-border);border-radius:12px;background:var(--c-bg)}.pest-info-photos{display:flex;gap:.5rem;flex-wrap:wrap}.pest-info-photo{padding:0;border:none;background:none;cursor:pointer;width:110px;height:110px;border-radius:10px;overflow:hidden;border:2px solid var(--c-border);transition:transform .15s ease,border-color .15s ease}.pest-info-photo:hover{transform:scale(1.02);border-color:var(--c-riego)}.pest-info-photo img{width:100%;height:100%;object-fit:cover;display:block}.pest-info-desc{margin:.6rem 0 0;font-size:.875rem;color:var(--c-text);line-height:1.4}.report-attachments{display:flex;flex-wrap:wrap;align-items:flex-start;gap:1rem;margin:.5rem 0 1rem}.report-attachments .pest-photo-section{margin:0;justify-content:flex-start}.report-audio{flex:1 1 240px;min-width:220px}.report-audio-label{display:block;font-size:.85rem;font-weight:600;color:var(--c-text);margin-bottom:.35rem}.pest-recs-box{margin:.25rem 0 1rem;padding:.75rem .9rem;border:1px solid var(--c-riego-soft);border-radius:10px;background:#f3f9ee}.pest-recs-title{display:flex;align-items:center;gap:.4rem;font-weight:700;font-size:.92rem;color:var(--c-riego);margin-bottom:.4rem}.report-sent-ok{margin-top:.75rem;padding:.6rem .8rem;border-radius:8px;background:#e6f4ea;color:#2e7d46;font-weight:600;font-size:.9rem}.report-sending{margin-top:.75rem;padding:.6rem .8rem;border-radius:8px;background:#fdf6ec;color:#8a6d3b;border:1px solid #f0e0c8;font-weight:600;font-size:.9rem;display:flex;align-items:center;gap:.55rem}.report-sending-spinner{width:16px;height:16px;flex:0 0 auto;border-radius:50%;border:2.5px solid #e2c893;border-top-color:#8a6d3b;animation:report-sending-spin .8s linear infinite}@keyframes report-sending-spin{to{transform:rotate(360deg)}}.report-error{margin-top:.75rem;padding:.6rem .8rem;border-radius:8px;background:#fdecea;color:#c0392b;border:1px solid #f5c6cb;font-weight:600;font-size:.9rem}.image-modal{position:fixed;inset:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:2000;padding:1rem}.image-modal-content{position:relative;max-width:95vw;max-height:90vh}.image-modal-content img{max-width:95vw;max-height:90vh;border-radius:10px;display:block}.image-modal-close{position:absolute;top:-14px;right:-14px;width:44px;height:44px;border-radius:50%;background:#fff;border:none;color:var(--c-ink);cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px #0000004d}@media(max-width:480px){.image-modal-close{top:6px;right:6px}}.calendar-refreshing-hint{display:flex;align-items:center;gap:.4rem;font-size:.8rem;color:#6b7a5e;margin:0 0 .6rem}.calendar-refreshing-hint .spin{animation:avc-cal-spin .9s linear infinite}@keyframes avc-cal-spin{to{transform:rotate(360deg)}}.rain-section .btn-secondary{margin-top:.5rem}.rain-history{margin-top:1rem;padding-top:.75rem;border-top:1px solid #eee1d6}.rain-history-title{margin:0 0 .5rem;font-size:1rem;color:var(--c-text);font-weight:600}.section-caption{margin:-.5rem 0 1.25rem;color:var(--c-muted);line-height:1.5}.status-pills{display:flex;flex-wrap:wrap;gap:.5rem}.status-pill{display:inline-flex;align-items:center;padding:.3rem .7rem;border-radius:999px;font-size:.875rem;font-weight:700}.status-pill.ok{color:#22603d;background:#e8f5eb;border:1px solid #b7dcbf}.status-pill.warn{color:#8a5b00;background:#fff3d9;border:1px solid #f1d08c}.status-pill.neutral{color:var(--c-text);background:#f4ede6;border:1px solid #e1d1bf}.parcel-next-step{margin:.5rem 0 0;color:var(--c-muted);font-size:.92rem;line-height:1.4}.parcel-link-hint{margin-top:auto;color:var(--c-text);font-size:.92rem;font-weight:700}.field-management-section{display:grid;gap:1rem}.field-management-section>.new-parcel-form{order:1}.field-management-section>.field-parcels-grid,.field-management-section>.empty-state{order:2}.field-parcels-grid,.field-plans-list{margin-bottom:0}.field-parcel-card,.field-plan-card{cursor:default}.field-parcel-card:hover,.field-plan-card:hover{transform:none}.field-card-main{display:grid;gap:.2rem}.field-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin-top:auto}.field-card-actions .btn-primary,.field-card-actions .btn-danger-small{width:100%;min-height:44px;white-space:normal;text-align:center}.parcel-plan-groups{display:grid;gap:1.25rem}.parcel-plan-group{border:2px solid var(--c-border);border-radius:16px;background:linear-gradient(135deg,#fffdfb,#f8f2eb);padding:1.25rem;display:grid;gap:1rem}.parcel-plan-group-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.parcel-plan-group-header h3{margin:0;color:var(--c-text)}.plan-empty-state{border:1px dashed #d7c2ad;border-radius:12px;background:#ffffffbf;padding:1rem;display:grid;gap:.75rem}.plan-subtitle{margin:.2rem 0 0;color:var(--c-muted);font-size:.9rem}.plan-actions-inline{justify-content:flex-start;margin-top:.75rem}.plans-list-grouped{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}@media(max-width:768px){.parcel-plan-group-header{flex-direction:column;align-items:stretch}}@media(max-width:980px){.dashboard-hero-grid,.dashboard-actions-grid,.dashboard-actions-grid.equipment-view{grid-template-columns:1fr}}@media(max-width:768px){.dashboard-primary-tabs{top:.5rem;grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-primary-tab{min-height:58px;font-size:.94rem}.dashboard-section-headline,.dashboard-action-card-top,.dashboard-highlight-top,.dashboard-recommendation-top,.actions-headline,.sensors-section-header{flex-direction:column;align-items:stretch}.dashboard-secondary-tabs{display:flex;flex-direction:column;width:100%}.dashboard-secondary-tabs .dashboard-secondary-tab{width:100%}.pair-tabs{grid-template-columns:1fr}.dashboard-action-metrics,.pair-actions-row{flex-direction:column;align-items:stretch}.dashboard-inline-cta,.pair-scan-button.visualizador,.pair-scan-button.nodo{width:100%}.dashboard-content{overflow-x:hidden}.dashboard-tab-panel,.dashboard-actions-grid,.equipment-view,.sensors-grid,.dashboard-nested-section{min-width:0;max-width:100%}.sensors-actions{flex-wrap:wrap;gap:.4rem}.last-update{font-size:.8rem}}@media(max-width:480px){.dashboard-primary-tabs{padding:.55rem;gap:.55rem}.dashboard-primary-tab{gap:.45rem;padding:.75rem .85rem;font-size:.9rem}.dashboard-action-card,.dashboard-highlight-card,.dashboard-nested-section{padding:1rem}.field-card-actions{grid-template-columns:1fr}}.delete-confirm-actions button{min-height:44px}@media(prefers-reduced-motion:reduce){.dashboard-container *,.dashboard-container *:before,.dashboard-container *:after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}@media(hover:none){.parcel-card:hover,.plan-card:hover,.btn-primary:hover,.btn-secondary:hover,.pair-tab:hover,.dashboard-primary-tab:hover,.dashboard-recommendation-card:hover,.pest-info-photo:hover,.financier-logos-dashboard .logos-container img:hover{transform:none}.btn-primary:active,.btn-secondary:active,.dashboard-primary-tab:active,.pair-tab:active,.report-type-tab:active{transform:scale(.98)}}@media(max-width:640px){.dashboard-primary-tabs{position:fixed;inset:auto 0 0;grid-template-columns:repeat(4,1fr);gap:.25rem;padding:.4rem .5rem calc(.4rem + env(safe-area-inset-bottom));border:1px solid var(--c-border);border-bottom:none;border-radius:16px 16px 0 0;box-shadow:0 -6px 20px #7e614129;z-index:900}.dashboard-primary-tab{flex-direction:column;gap:.28rem;min-height:70px;padding:.4rem .2rem;font-size:.82rem;border-radius:12px}.dashboard-primary-tab svg{width:23px;height:23px}.dashboard-primary-tab span{white-space:normal;line-height:1.08;text-align:center}.dashboard-content{padding-bottom:calc(88px + env(safe-area-inset-bottom))}}.plan-cerrado-aviso{margin-top:1rem;padding:16px;border-radius:12px;border:1px solid #e8d5c4;background:#f5ede4;color:#5a4e44;line-height:1.5}.plan-cerrado-titulo{margin:0 0 .35rem;font-weight:600;font-size:1.25rem;color:#45362d}.plan-cerrado-aviso p{margin:0}.plan-item-cerrado .plan-item-title{color:#7a6b5d}.plan-badge-cerrado{display:inline-block;margin-left:.5rem;padding:.15rem .6rem;border-radius:999px;background:#e8d5c4;color:#5a4e44;font-size:.875rem;font-weight:600;vertical-align:middle}.irrigation-settings{background:var(--card-bg, #fff);border-radius:12px;padding:1rem;width:100%;max-width:100%;box-sizing:border-box;overflow:hidden}.irrigation-settings.compact{padding:.75rem;background:transparent}.irrigation-method-selector{margin-bottom:1rem}.irrigation-label{display:block;font-weight:600;font-size:.85rem;margin-bottom:.5rem;color:var(--text-primary, #1a1a2e)}.irrigation-method-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem;margin-bottom:.75rem;width:100%}@media(max-width:640px){.irrigation-method-cards{grid-template-columns:repeat(2,1fr);gap:.4rem}}@media(max-width:360px){.irrigation-method-cards{grid-template-columns:repeat(2,1fr);gap:.3rem}}.irrigation-method-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.25rem;padding:.5rem .25rem;border:2px solid var(--border-color, #e0e0e0);border-radius:8px;background:var(--card-bg, #fff);cursor:pointer;transition:all .2s ease;min-width:0;min-height:60px;overflow:hidden}@media(max-width:640px){.irrigation-method-card{padding:.5rem .2rem;gap:.2rem;border-radius:8px;min-height:55px}}@media(max-width:360px){.irrigation-method-card{padding:.4rem .15rem;min-height:50px}}.irrigation-method-card:hover{border-color:var(--primary-light, #9ed88d);background:var(--bg-hover, #f8faf7)}.irrigation-method-card.active{border-color:var(--primary-color, #7fb069);background:linear-gradient(135deg,#7fb0691a,#9ed88d26);box-shadow:0 2px 8px #7fb06933}.method-icon{font-size:1.25rem;flex-shrink:0;line-height:1}@media(max-width:640px){.method-icon{font-size:1.15rem}}.method-label{font-size:.6rem;font-weight:500;text-align:center;color:var(--text-primary, #1a1a2e);line-height:1.1;word-break:break-word;-webkit-hyphens:auto;hyphens:auto;max-width:100%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}@media(max-width:640px){.method-label{font-size:.55rem;-webkit-line-clamp:2}}@media(max-width:360px){.method-label{font-size:.5rem}}.irrigation-method-desc{font-size:.875rem;color:var(--text-muted, #666);margin:0;padding:.75rem 1rem;background:var(--bg-subtle, #f5f7f4);border-radius:8px;border-left:3px solid var(--primary-color, #7fb069)}.irrigation-params{display:flex;flex-direction:column;gap:1rem}.irrigation-field-group{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}.irrigation-field-group.three-cols{grid-template-columns:repeat(3,1fr)}@media(max-width:600px){.irrigation-field-group,.irrigation-field-group.three-cols{grid-template-columns:1fr;gap:.6rem}}.input-with-unit{display:flex;gap:.5rem;flex-wrap:nowrap}.input-with-unit select{width:auto;min-width:80px;flex-shrink:0}@media(max-width:400px){.input-with-unit{flex-direction:column}.input-with-unit select{min-width:0;width:100%}}.irrigation-field{display:flex;flex-direction:column;gap:.35rem}.irrigation-field label{font-size:.85rem;font-weight:500;color:var(--text-secondary, #444)}.irrigation-field input,.irrigation-field select{padding:.6rem .75rem;border:1px solid var(--border-color, #ddd);border-radius:8px;font-size:.95rem;transition:border-color .2s,box-shadow .2s}.irrigation-field input:focus,.irrigation-field select:focus{outline:none;border-color:var(--primary-color, #7fb069);box-shadow:0 0 0 3px #7fb06926}.input-with-unit{display:flex;gap:.5rem;flex-wrap:wrap}.input-with-unit input{flex:1;min-width:0}.input-with-unit select{width:auto;min-width:100px}.field-hint{font-size:.75rem;color:var(--text-muted, #888)}.irrigation-calibration-section{margin-top:.75rem}.btn-calibrate{display:inline-flex;align-items:center;gap:.5rem;padding:.6rem 1rem;background:var(--bg-subtle, #f5f7f4);border:1px dashed var(--border-color, #ccc);border-radius:8px;font-size:.9rem;color:var(--text-secondary, #555);cursor:pointer;transition:all .2s}.btn-calibrate:hover{background:var(--primary-light, #e8f5e3);border-color:var(--primary-color, #7fb069);color:var(--primary-dark, #5a8f4a)}.irrigation-calc-preview{margin-top:.75rem;padding:.75rem 1rem;background:linear-gradient(135deg,#7fb06914,#7fb06926);border-radius:8px;border-left:3px solid var(--primary-color, #7fb069)}.calc-result{font-size:.9rem;color:var(--text-primary, #333)}.calc-result strong{color:var(--primary-dark, #5a8f4a)}.irrigation-actions{margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--border-color, #eee);display:flex;justify-content:flex-end;gap:.75rem}.calibration-modal-backdrop{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.calibration-modal{background:var(--card-bg, #fff);border-radius:16px;width:100%;max-width:480px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px #0003}.calibration-header{display:flex;justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;border-bottom:1px solid var(--border-color, #eee)}.calibration-header h3{margin:0;font-size:1.15rem;color:var(--text-primary, #1a1a2e)}.close-btn{width:32px;height:32px;border:none;background:var(--bg-subtle, #f5f5f5);border-radius:50%;font-size:1.25rem;color:var(--text-muted, #888);cursor:pointer;transition:all .2s}.close-btn:hover{background:var(--danger-light, #fee);color:var(--danger-color, #d63031)}.calibration-body{padding:1.5rem}.calibration-steps{display:flex;flex-direction:column;gap:1.25rem;margin-bottom:1.5rem}.step{display:flex;gap:1rem;opacity:.5;transition:opacity .2s}.step.active{opacity:1}.step-number{flex-shrink:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:var(--primary-color, #7fb069);color:#fff;border-radius:50%;font-weight:600;font-size:.9rem}.step-content{flex:1}.step-content h4{margin:0 0 .35rem;font-size:1rem;color:var(--text-primary, #1a1a2e)}.step-content p{margin:0 0 .75rem;font-size:.875rem;color:var(--text-muted, #666);line-height:1.5}.calibration-field{margin-top:.5rem}.calibration-field label{display:block;font-size:.8rem;font-weight:500;margin-bottom:.35rem;color:var(--text-secondary, #555)}.calibration-field input{width:100%;padding:.6rem .75rem;border:1px solid var(--border-color, #ddd);border-radius:8px;font-size:1rem}.calibration-field input:focus{outline:none;border-color:var(--primary-color, #7fb069);box-shadow:0 0 0 3px #7fb06926}.calibration-result{padding:1rem;background:linear-gradient(135deg,#7fb0691a,#7fb06933);border-radius:10px;margin-bottom:1.25rem;text-align:center}.calibration-result p{margin:0;font-size:1rem;color:var(--text-primary, #333)}.calibration-result strong{font-size:1.25rem;color:var(--primary-dark, #5a8f4a)}.calibration-actions{display:flex;gap:.75rem;justify-content:flex-end}.irrigation-settings .btn-primary{padding:.65rem 1.25rem;background:linear-gradient(135deg,var(--primary-color, #7fb069),var(--primary-light, #9ed88d));border:none;border-radius:8px;color:#fff;font-weight:600;cursor:pointer;transition:all .2s}.irrigation-settings .btn-primary:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #7fb0694d}.irrigation-settings .btn-primary:disabled{opacity:.6;cursor:not-allowed}.irrigation-settings .btn-secondary{padding:.65rem 1.25rem;background:var(--bg-subtle, #f5f5f5);border:1px solid var(--border-color, #ddd);border-radius:8px;color:var(--text-secondary, #555);font-weight:500;cursor:pointer;transition:all .2s}.irrigation-settings .btn-secondary:hover{background:var(--bg-hover, #eee);border-color:var(--text-muted, #999)}.irrigation-settings.compact .irrigation-method-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:.25rem;margin-bottom:.5rem;width:100%}.irrigation-settings.compact .irrigation-method-card{padding:.4rem .2rem;min-width:0;border-radius:6px;min-height:50px}.irrigation-settings.compact .method-icon{font-size:1rem}.irrigation-settings.compact .method-label{font-size:.5rem;line-height:1.1}.irrigation-settings.compact .irrigation-method-desc{display:none}@media(max-width:520px){.irrigation-settings.compact{padding:.35rem}.irrigation-settings.compact .irrigation-method-cards{grid-template-columns:repeat(2,1fr);gap:.25rem}.irrigation-settings.compact .irrigation-method-card{padding:.4rem .15rem;min-height:48px}.irrigation-settings.compact .method-icon{font-size:.95rem}.irrigation-settings.compact .method-label{font-size:.5rem}}@media(max-width:360px){.irrigation-settings.compact .method-label{font-size:.52rem}.irrigation-settings.compact .irrigation-method-card{padding:.4rem .2rem}}
