:root{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;color:#273b34;background:#f7f8f5;font-synthesis:none;--green:#285e50;--dark:#233b32;--muted:#75837d;--border:#e9eeea;--bg:#f7f8f5;--shadow:0 18px 55px rgba(47,69,54,.06)}
*{box-sizing:border-box}body{margin:0;min-height:100dvh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}input,select,textarea{color:var(--dark)}input:focus,textarea:focus,select:focus{outline:2px solid #9ac0ae;outline-offset:2px}input[type=checkbox]{accent-color:var(--green)}a{color:var(--green)}.sprite{position:absolute;width:0;height:0;overflow:hidden}.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon.sm{width:17px;height:17px}.icon.lg{width:25px;height:25px}.icon.xl{width:29px;height:29px}.icon.filled{fill:currentColor;stroke:none}
#app{min-height:100dvh}.shell{width:min(100%,660px);margin:0 auto;min-height:100dvh;padding:23px 24px 120px;position:relative}.loading{display:flex;flex-direction:column;gap:12px;min-height:85dvh;justify-content:center;align-items:center;color:var(--muted)}.spinner{width:34px;height:34px;border:3px solid #dae3dc;border-top-color:var(--green);border-radius:50%;animation:rotate .8s linear infinite}@keyframes rotate{to{transform:rotate(360deg)}}
.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px;gap:12px}.brand{display:flex;align-items:center;gap:10px}.brand-icon{width:36px;height:36px;background:#e4ede4;color:var(--green);border-radius:12px;display:grid;place-items:center}.brand-name{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;font-size:21px;font-weight:800;letter-spacing:-.9px}.brand-sub{font-size:11px;color:var(--muted);line-height:1.2;margin-top:-2px}.top-actions{display:flex;align-items:center;gap:8px}.round-button{border:1px solid var(--border);background:white;color:var(--dark);width:42px;height:42px;border-radius:15px;display:grid;place-items:center;position:relative}.round-button.active{color:var(--green);border-color:#cde0d2}.dot{position:absolute;right:8px;top:8px;width:7px;height:7px;background:#de8f77;border-radius:50%;box-shadow:0 0 0 2px white}
.eyebrow{font-weight:800;font-size:11px;color:#6e8778;text-transform:uppercase;letter-spacing:1.5px}.page-title{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;font-size:clamp(27px,6vw,34px);font-weight:800;line-height:1.21;letter-spacing:-1.4px;margin:7px 0 7px;color:var(--dark)}.subtle{font-size:14px;color:var(--muted);line-height:1.5}.heading-space{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:24px}
.card{background:#fff;border:1px solid #ecf0ec;border-radius:24px;box-shadow:var(--shadow)}.hero{background:#e7efe7;overflow:hidden;position:relative;padding:25px;margin-bottom:20px;min-height:174px;border:0}.hero:after{content:'';position:absolute;width:186px;height:186px;border:20px solid rgba(255,255,255,.33);border-radius:50%;right:-95px;top:-75px;pointer-events:none}.hero:before{content:'';position:absolute;width:110px;height:110px;border:18px solid rgba(255,255,255,.28);border-radius:50%;right:32px;bottom:-89px;pointer-events:none}.hero-content{position:relative;z-index:1}.hero-label{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:800;color:#537c64}.hero-title{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;font-size:25px;font-weight:800;letter-spacing:-.8px;line-height:1.24;margin:14px 0 8px;color:#244f3e;max-width:360px}.hero-copy{font-size:13px;color:#4e7760;line-height:1.5}.progress-track{height:7px;background:#cee0d0;border-radius:20px;overflow:hidden;margin-top:16px;max-width:350px}.progress-fill{height:100%;background:#43856d;border-radius:20px;transition:width .25s}
.section-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:26px 0 13px}.section-title{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;font-size:18px;letter-spacing:-.35px;font-weight:800;color:var(--dark);margin:0}.small-note{color:var(--muted);font-size:12px}.pill{display:inline-flex;align-items:center;gap:5px;background:#f0f4ef;color:#648071;border-radius:50px;padding:6px 10px;font-size:11px;font-weight:800;white-space:nowrap}.pill.urgent{background:#fff0e9;color:#b56a4d}.pill.purple{background:#f0edfa;color:#7d6d9c}.pill.good{background:#e8f5ea;color:#398069}.pill.outline{background:#fff;border:1px solid var(--border)}
.reminder{border-radius:21px;padding:19px;background:#f0eaf5;margin:0 0 14px;position:relative}.reminder-top{display:flex;align-items:center;gap:8px;color:#76618b;font-size:12px;font-weight:800}.reminder h3{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;font-size:17px;margin:13px 0 6px;letter-spacing:-.3px}.reminder p{font-size:13px;line-height:1.55;margin:0 0 13px;color:#736980;white-space:pre-wrap;overflow-wrap:anywhere}.reminder-actions{display:flex;gap:8px;flex-wrap:wrap}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;background:var(--green);color:#fff;padding:11px 15px;border-radius:12px;font-size:12px;font-weight:800;min-height:42px}.button.secondary{background:#fff;color:var(--green);border:1px solid var(--border)}.button.ghost{background:transparent;color:var(--green)}.button.danger{background:#fff0ee;color:#a75548}.button.small{min-height:35px;padding:7px 12px;font-size:11px;border-radius:10px}.button.full{width:100%}.button:focus-visible,.round-button:focus-visible,.task-toggle:focus-visible,.nav-button:focus-visible{outline:3px solid #99bfae;outline-offset:2px}
.task-list{display:flex;flex-direction:column;gap:9px}.task-card{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid var(--border);border-radius:17px;padding:15px 14px;min-height:75px}.task-card.done{opacity:.65}.task-toggle{width:26px;height:26px;border:2px solid #cbd9cf;border-radius:9px;background:#fff;flex-shrink:0;display:grid;place-items:center;color:#fff;padding:0}.task-card.done .task-toggle{background:#4f8c70;border-color:#4f8c70}.task-main{flex:1;min-width:0}.task-name{font-weight:800;font-size:13.5px;color:var(--dark);line-height:1.35}.task-card.done .task-name{text-decoration:line-through;color:#728077}.task-meta{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:5px;color:#88928c;font-size:11px}.task-meta .bullet{font-size:8px;color:#bfc9c1}.task-more{width:32px;height:32px;border:0;color:#9ca9a1;background:transparent;border-radius:10px;display:grid;place-items:center}.task-more:hover{background:var(--bg)}.task-more svg{transform:rotate(0deg)}
.day-group{margin-top:17px}.day-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.day-label{font-weight:800;font-size:14px;color:#3b5749;text-transform:capitalize}.day-label.today{color:var(--green)}.day-count{font-size:11px;color:var(--muted)}.segmented{display:flex;background:#ecf0eb;padding:4px;border-radius:13px;gap:3px}.segmented button{background:transparent;color:#7d8b7f;padding:8px 14px;border:0;border-radius:10px;font-weight:800;font-size:12px;flex:1}.segmented button.selected{background:#fff;color:var(--green);box-shadow:0 1px 8px #00000009}.week-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:16px 0}.week-nav .round-button{width:36px;height:36px;border-radius:11px}.week-nav strong{font-size:13px}
.empty{background:white;border:1px dashed #d6e0d5;border-radius:20px;padding:27px 20px;text-align:center}.empty-icon{width:48px;height:48px;border-radius:17px;background:#eaf2e9;color:#508365;display:grid;place-items:center;margin:0 auto 11px}.empty h3{font:800 16px system-ui;margin:5px 0}.empty p{font-size:12px;color:var(--muted);line-height:1.5;margin:8px 0 0}.tiny-empty{color:#9aa69d;font-size:12px;margin:13px 0 21px}.text-button{border:0;background:none;padding:0;color:var(--green);font-weight:800;font-size:12px}
.buyform{display:flex;gap:8px;background:#fff;border:1px solid var(--border);padding:7px;border-radius:16px;margin:19px 0 15px}.buyform input{border:0;outline:none;min-width:0;flex:1;padding:8px 10px;background:transparent;font-size:14px}.buyform .button{padding:10px 13px;min-height:38px}.shopping-list{background:white;border:1px solid var(--border);border-radius:20px;padding:4px 15px}.shop-row{display:flex;align-items:center;gap:11px;min-height:62px;border-bottom:1px solid #f0f3ef}.shop-row:last-child{border-bottom:0}.shop-row label{flex:1;display:flex;align-items:center;gap:10px;cursor:pointer;min-width:0}.shop-row input{width:20px;height:20px}.shop-row span{font-size:13px;font-weight:700;overflow-wrap:anywhere}.shop-row.checked span{text-decoration:line-through;color:#a5ada5}.shop-row small{font-size:11px;color:#9aa69d;margin-left:auto}.shop-row .task-more{width:28px;height:28px}
.product-row{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid var(--border);border-radius:17px;padding:14px;margin:9px 0}.product-icon{background:#edf3ea;color:#5d8665;width:44px;height:44px;border-radius:14px;display:grid;place-items:center}.product-info{flex:1;min-width:0}.product-info strong{display:block;font-size:13px}.product-info small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.stock-controls{display:flex;gap:3px;align-items:center}.stock-controls button{border:1px solid var(--border);background:white;border-radius:10px;width:30px;height:30px;display:grid;place-items:center;font-weight:800;color:var(--green)}.stock-count{font:800 15px system-ui;min-width:20px;text-align:center}.alert-inline{background:#fff8ec;border:1px solid #f5e7c8;color:#936e30;border-radius:13px;padding:12px 14px;font-size:12px;line-height:1.6;margin:12px 0}
.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:4;background:#ffffffed;backdrop-filter:blur(16px);border-top:1px solid #e9ede9;padding:9px max(14px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom));display:flex;justify-content:center;gap:7px}.nav-button{min-width:83px;width:min(31vw,160px);max-width:160px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px 4px;border-radius:13px;border:0;background:transparent;color:#93a096;font-size:10.5px;font-weight:800}.nav-button.selected{background:#e9f0e7;color:var(--green)}.nav-button .icon{width:21px;height:21px}.fab{position:fixed;bottom:93px;right:max(22px,calc((100vw - 660px)/2 + 24px));z-index:3;display:flex;align-items:center;gap:7px;box-shadow:0 8px 25px #285e5038;background:var(--green);border:0;border-radius:17px;color:#fff;padding:13px 17px;font-weight:800;font-size:12px}
.manage-list{display:flex;flex-direction:column;gap:8px}.manage-row{border:1px solid var(--border);background:#fff;border-radius:15px;padding:14px;display:flex;align-items:center;gap:10px}.manage-row .body{flex:1;min-width:0}.manage-row strong{display:block;font-size:13px}.manage-row small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.divider{height:1px;background:var(--border);margin:22px 0}.info-card{background:#ecf2eb;border:1px solid #deeadf;padding:15px;border-radius:16px;margin:10px 0}.info-card h3{font-size:13px;margin:0 0 8px}.info-card p{font-size:12px;line-height:1.55;color:#58745d;margin:0}.pair{display:flex;gap:9px;flex-wrap:wrap}.stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.stat{background:#fff;border:1px solid var(--border);border-radius:17px;padding:15px}.stat-label{color:var(--muted);font-size:11px}.stat-value{font:800 24px system-ui;letter-spacing:-1px;margin:7px 0 3px}.stat-info{font-size:11px;color:var(--muted)}
dialog{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(460px,calc(100% - 24px));max-height:min(84dvh,750px);overflow-y:auto;border:1px solid var(--border);border-radius:24px;padding:23px;background:white;color:var(--dark);box-shadow:0 30px 80px #142e252d}dialog::backdrop{background:rgba(27,43,35,.45);backdrop-filter:blur(4px)}dialog h2{font:800 21px system-ui;letter-spacing:-.7px;margin:1px 0 8px}dialog p{font-size:13px;color:var(--muted);line-height:1.5}.modal-close{border:0;background:#f2f4f1;width:34px;height:34px;display:grid;place-items:center;border-radius:12px;float:right}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-field{display:flex;flex-direction:column;gap:6px;margin:11px 0}.form-field.full{grid-column:1/-1}.form-field label{font-size:11px;color:#52655a;font-weight:800}.form-field input,.form-field select,.form-field textarea{border:1px solid #e3e9e3;border-radius:12px;padding:12px 11px;background:#fafbf9;width:100%;min-width:0;font-size:13px}.form-field textarea{min-height:85px;resize:vertical}.modal-footer{display:flex;gap:9px;margin-top:17px}.modal-footer .button{flex:1}.helper{font-size:11px;color:var(--muted);line-height:1.45}.hint{margin:10px 0;padding:12px;border-radius:13px;background:#f5f7f4;color:#697d71;font-size:12px;line-height:1.5}.inline-select{border:1px solid var(--border);border-radius:10px;padding:9px;background:white}.code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:14px;letter-spacing:1px;user-select:all;overflow-wrap:anywhere}.auth-container{max-width:450px;margin:8vh auto;padding:20px}.auth-mark{width:64px;height:64px;background:#e3eee4;color:var(--green);border-radius:20px;display:grid;place-items:center}.auth-mark .icon{width:31px;height:31px}.auth-container h1{font:800 35px system-ui;letter-spacing:-1.5px;margin:20px 0 8px}.auth-container p{font-size:14px;line-height:1.55;color:var(--muted)}.auth-box{background:#fff;border:1px solid var(--border);border-radius:23px;padding:20px;margin-top:23px;box-shadow:var(--shadow)}.auth-box h2{font:800 17px system-ui;margin:0 0 10px}.auth-action{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}.auth-action .button{flex:1}.auth-footer{font-size:11px;text-align:center;line-height:1.6;color:var(--muted);margin:17px 0}.server-banner{background:#fff6e8;border:1px solid #f3e5ca;border-radius:13px;padding:11px 13px;font-size:12px;color:#916c31;margin-bottom:17px}.demo-banner{background:#f5efe5;border:1px solid #efe3d0;color:#8d775d;border-radius:13px;padding:9px 12px;font-size:11px;margin-bottom:18px;display:flex;justify-content:space-between;gap:6px;align-items:center}.demo-banner button{font-size:11px;border:0;background:transparent;text-decoration:underline;color:#7a6148;font-weight:800}#toast{position:fixed;z-index:20;bottom:calc(98px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%,20px);opacity:0;background:#263d33;color:#fff;padding:12px 18px;box-shadow:0 7px 28px #22382c31;border-radius:13px;font-size:12px;font-weight:700;max-width:calc(100vw - 36px);pointer-events:none;transition:opacity .25s,transform .25s;text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:850px){.shell{padding-top:35px}.bottom-nav{left:calc(50% - 330px);right:calc(50% - 330px);border-radius:19px 19px 0 0;box-shadow:0 -8px 28px #405c4b08}.topbar{margin-bottom:36px}.hero{min-height:190px}.fab{bottom:105px}}
@media(max-width:375px){.shell{padding-left:15px;padding-right:15px}.hero{padding:20px}.reminder{padding:15px}.task-card{padding:13px 10px;gap:10px}.form-grid{grid-template-columns:1fr}.nav-button{min-width:0}.page-title{font-size:28px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* v0.2: un plano grande sin convertir Ajustes en una lista interminable. */
.zone-group{border:1px solid var(--border);border-radius:16px;background:#fff;margin:9px 0;overflow:hidden}
.zone-group>summary{display:flex;align-items:center;gap:9px;cursor:pointer;list-style:none;padding:15px 16px;font-size:13px;font-weight:800;color:var(--dark);user-select:none}
.zone-group>summary::-webkit-details-marker{display:none}
.zone-group>summary:before{content:'+';width:20px;height:20px;border-radius:7px;display:grid;place-items:center;background:#eaf1e9;color:var(--green);font-size:16px;flex-shrink:0}
.zone-group[open]>summary:before{content:'−'}
.zone-group>summary>.pill{margin-left:auto}
.zone-group>.manage-list{padding:0 9px 10px;gap:6px}
.zone-group .manage-row{background:#fdfefd;padding:11px 10px}
.zone-group .product-icon{width:37px;height:37px;min-width:37px;border-radius:11px}
.preset-button{width:100%;margin:4px 0 15px;justify-content:center}
.zone-group>summary:focus-visible{outline:3px solid #99bfae;outline-offset:-3px}

/* Los pendientes antiguos se consultan voluntariamente: no invaden Hoy. */
.pending-group{margin:24px 0 12px}
.pending-group>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:15px;font-weight:800;cursor:pointer;list-style:none;color:var(--dark);padding:11px 0}
.pending-group>summary::-webkit-details-marker{display:none}
.pending-group>.task-list{margin-top:11px}
.pending-group>summary:focus-visible{outline:3px solid #99bfae}
