:root{--bg:#f4f4f1;--bg-blur:#f4f4f1c7;--surface:#fff;--surface-2:#efefea;--surface-3:#e6e6e0;--line:#18181214;--line-strong:#18181224;--text:#16171a;--muted:#6c6e75;--faint:#a1a3a9;--accent:#0e9f6e;--accent-soft:#0e9f6e1f;--accent-text:#fff;--school:#5b5bd6;--pro:#d97a1a;--danger:#e5484d;--danger-soft:#e5484d1f;--warn:#d98a00;--warn-soft:#f59e0b29;--ok:#18a058;--ok-soft:#18a0581f;--shadow:0 1px 2px #14140a0a, 0 8px 24px #14140a0f;--shadow-lg:0 24px 64px #0a0a052e;--r-lg:22px;--r:16px;--r-sm:11px;--font:-apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI Variable", "Segoe UI", Roboto, sans-serif;--font-display:-apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI Variable Display", "Segoe UI", sans-serif;--tabbar-h:64px;--safe-b:env(safe-area-inset-bottom,0px);--safe-t:env(safe-area-inset-top,0px);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#0c0d0f;--bg-blur:#0c0d0fc2;--surface:#15171a;--surface-2:#1c1f23;--surface-3:#25282d;--line:#ffffff12;--line-strong:#ffffff21;--text:#f2f2ef;--muted:#8e9198;--faint:#5d6067;--accent:#34d399;--accent-soft:#34d39921;--accent-text:#052e1f;--school:#8b8cf6;--pro:#f5a54a;--danger:#ff6369;--danger-soft:#ff636921;--warn:#fbbf24;--warn-soft:#fbbf2421;--ok:#3dd68c;--ok-soft:#3dd68c1f;--shadow:0 1px 2px #0000004d, 0 8px 24px #00000040;--shadow-lg:0 24px 64px #0009;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--text);font:15px/1.45 var(--font);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;overscroll-behavior-y:none;margin:0}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;background:0 0;border:0;padding:0}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}h1,h2,h3{font-family:var(--font-display);letter-spacing:-.02em;margin:0}::selection{background:var(--accent-soft)}:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}.app{min-height:100dvh}.sidebar{display:none}.main{min-width:0;padding:calc(var(--safe-t) + 8px) 16px calc(var(--tabbar-h) + var(--safe-b) + 28px);max-width:1120px;margin:0 auto}.main.no-tabbar{padding-bottom:calc(var(--safe-b) + 32px)}.space-perso{--space:var(--accent)}.space-school{--space:var(--school)}.space-pro{--space:var(--pro)}.topbar{z-index:20;margin:calc(-1 * (var(--safe-t) + 8px)) -16px 0;padding:calc(var(--safe-t) + 10px) 16px 10px;background:var(--bg-blur);-webkit-backdrop-filter:saturate(1.6)blur(18px);align-items:center;gap:8px;min-height:52px;display:flex;position:sticky;top:0}.topbar .spacer{flex:1}.topbar .crumb{color:var(--muted);font-size:13px;font-weight:600}.page-title{margin:6px 0 18px;font-size:32px;font-weight:750;line-height:1.1}.page-sub{color:var(--muted);margin:-12px 0 18px}.tabbar{z-index:30;padding:6px 6px calc(var(--safe-b) + 4px);height:calc(var(--tabbar-h) + var(--safe-b));background:var(--bg-blur);-webkit-backdrop-filter:saturate(1.6)blur(18px);border-top:1px solid var(--line);justify-content:space-around;align-items:flex-start;display:flex;position:fixed;bottom:0;left:0;right:0}.tab{color:var(--faint);flex-direction:column;flex:1;align-items:center;gap:3px;padding-top:6px;font-size:10.5px;font-weight:600;transition:color .15s;display:flex}.tab.active{color:var(--text)}.tab.active svg{color:var(--space,var(--accent))}.tab-main{background:var(--space,var(--accent));width:54px;height:54px;color:var(--accent-text);box-shadow:0 8px 22px color-mix(in srgb, var(--space,var(--accent)) 40%, transparent);border-radius:18px;flex:none;place-items:center;margin-top:-14px;display:grid}@media (width>=900px){.app{grid-template-columns:248px 1fr;display:grid}.sidebar{border-right:1px solid var(--line);background:var(--surface);flex-direction:column;gap:2px;height:100dvh;padding:22px 14px;display:flex;position:sticky;top:0}.tabbar{display:none}.main{width:100%;padding:8px 40px 48px}.main.no-tabbar{padding-bottom:48px}.topbar{margin:-8px -40px 0;padding:14px 40px 10px}.page-title{margin-top:10px;font-size:36px}}.brand{font-family:var(--font-display);align-items:center;gap:10px;padding:4px 10px 18px;font-size:18px;font-weight:750;display:flex}.brand img{border-radius:9px;width:30px;height:30px}.side-label{color:var(--faint);padding:16px 12px 6px;font-size:11.5px;font-weight:650}.side-link{color:var(--muted);border-radius:11px;align-items:center;gap:11px;padding:9px 12px;font-weight:560;transition:background .15s,color .15s;display:flex}.side-link:hover,.side-link.active{background:var(--surface-2);color:var(--text)}.side-link.active svg{color:var(--space,var(--accent))}.side-link .dot{background:var(--c);border-radius:50%;width:8px;height:8px;margin:0 6px}.side-foot{margin-top:auto}.card{background:var(--surface);border-radius:var(--r-lg);border:1px solid var(--line);box-shadow:var(--shadow)}.pad{padding:18px}.stack{flex-direction:column;gap:12px;display:flex}.stack-lg{flex-direction:column;gap:28px;display:flex}.row{align-items:center;gap:12px;display:flex}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.muted{color:var(--muted)}.small{font-size:13px}.tiny{font-size:12px}.strong{font-weight:650}.ellipsis{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.center{text-align:center}.mt{margin-top:12px}.section-head{justify-content:space-between;align-items:baseline;gap:12px;margin:0 2px 10px;display:flex}.section-head h2{font-size:19px;font-weight:700}.section-head a,.section-head button{color:var(--space,var(--accent));font-size:14px;font-weight:600}.btn{background:var(--surface-2);height:46px;color:var(--text);white-space:nowrap;-webkit-user-select:none;user-select:none;border-radius:14px;justify-content:center;align-items:center;gap:8px;padding:0 18px;font-weight:650;transition:transform 80ms,background .15s,opacity .15s;display:inline-flex}.btn:active{transform:scale(.97)}.btn:disabled{opacity:.45;pointer-events:none}.btn.primary{background:var(--space,var(--accent));color:var(--accent-text)}.btn.danger{background:var(--danger-soft);color:var(--danger)}.btn.ghost{background:0 0}.btn.block{width:100%}.btn.sm{border-radius:11px;height:36px;padding:0 13px;font-size:14px}.btn.lg{border-radius:16px;height:54px;font-size:16px}.icon-btn{width:40px;height:40px;color:var(--text);border-radius:12px;flex:none;place-items:center;transition:background .15s;display:grid}.icon-btn:hover,.icon-btn.filled{background:var(--surface-2)}.field{flex-direction:column;gap:6px;display:flex}.field>span{color:var(--muted);padding-left:2px;font-size:13px;font-weight:600}.input,select.input,textarea.input{border:1px solid var(--line-strong);background:var(--surface);appearance:none;border-radius:13px;outline:none;width:100%;min-height:46px;padding:11px 14px;font-size:16px;transition:border-color .15s,box-shadow .15s}textarea.input{resize:vertical;min-height:90px;line-height:1.45}select.input{background-image:linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);background-position:calc(100% - 19px),calc(100% - 14px);background-repeat:no-repeat;background-size:5px 5px;padding-right:36px}.input:focus{border-color:var(--space,var(--accent));box-shadow:0 0 0 4px var(--accent-soft)}.input-group{gap:8px;display:flex}.grid-2{grid-template-columns:1fr 1fr;gap:12px;display:grid}.search{position:relative}.search svg{color:var(--faint);position:absolute;top:50%;left:13px;transform:translateY(-50%)}.search .input{background:var(--surface-2);border-color:#0000;padding-left:40px}.chips{scrollbar-width:none;gap:8px;margin:-2px;padding:2px;display:flex;overflow-x:auto}.chips::-webkit-scrollbar{display:none}.chip{background:var(--surface-2);height:36px;color:var(--muted);border-radius:999px;flex:none;align-items:center;gap:6px;padding:0 14px;font-size:14px;font-weight:600;transition:background .15s,color .15s;display:inline-flex}.chip.active{background:var(--text);color:var(--bg)}.chip .count{opacity:.65;font-size:12px}.segmented{background:var(--surface-2);border-radius:12px;gap:2px;padding:3px;display:flex}.segmented button{height:36px;color:var(--muted);border-radius:10px;flex:1;font-size:14px;font-weight:600}.segmented button.active{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.badge{white-space:nowrap;background:var(--surface-2);height:24px;color:var(--muted);border-radius:8px;align-items:center;gap:5px;padding:0 9px;font-size:12.5px;font-weight:650;display:inline-flex}.badge.expired{background:var(--danger-soft);color:var(--danger)}.badge.today,.badge.soon{background:var(--warn-soft);color:var(--warn)}.badge.ok{background:var(--ok-soft);color:var(--ok)}.badge.accent{background:var(--accent-soft);color:var(--accent)}.dot-state{background:var(--faint);border-radius:50%;flex:none;width:9px;height:9px}.dot-state.expired{background:var(--danger)}.dot-state.today,.dot-state.soon,.dot-state.urgent{background:var(--warn)}.dot-state.ok{background:var(--ok)}.dot-state.missing{border:1.5px solid var(--faint);background:0 0}.list{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow);overflow:hidden}.list-row{text-align:left;align-items:center;gap:13px;width:100%;padding:12px 14px;transition:background .12s;display:flex;position:relative}.list-row+.list-row:before{content:"";background:var(--line);height:1px;position:absolute;top:0;left:72px;right:0}.list-row.no-thumb+.list-row.no-thumb:before{left:16px}button.list-row:hover,a.list-row:hover{background:var(--surface-2)}.list-row .title{font-weight:620}.list-row .meta{color:var(--muted);font-size:13px}.thumb{background:var(--surface-2);width:46px;height:46px;color:var(--faint);border-radius:12px;flex:none;place-items:center;display:grid;overflow:hidden}.thumb img{object-fit:cover;width:100%;height:100%}.thumb.lg{border-radius:16px;width:76px;height:76px}.thumb.xl{border-radius:22px;width:112px;height:112px}.empty{text-align:center;color:var(--muted);flex-direction:column;align-items:center;gap:12px;padding:44px 20px;display:flex}.empty .icon-wrap{background:var(--surface-2);width:56px;height:56px;color:var(--faint);border-radius:18px;place-items:center;display:grid}.empty h3{color:var(--text);font-size:17px}.stats{grid-template-columns:repeat(3,1fr);gap:10px;display:grid}.stat{border-radius:var(--r);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);flex-direction:column;gap:2px;min-width:0;padding:14px 14px 13px;display:flex}.stat .value{font-family:var(--font-display);letter-spacing:-.03em;font-size:28px;font-weight:750;line-height:1.1}.stat .label{color:var(--muted);font-size:12.5px;font-weight:560}.stat.warn .value{color:var(--warn)}.stat.danger .value{color:var(--danger)}.spaces{grid-template-columns:1fr;gap:14px;display:grid}@media (width>=700px){.spaces{grid-template-columns:repeat(3,1fr)}}.space-card{background:var(--surface);border:1px solid var(--line);min-height:172px;box-shadow:var(--shadow);border-radius:26px;flex-direction:column;justify-content:space-between;padding:22px;transition:transform .15s;display:flex;position:relative;overflow:hidden}.space-card:active{transform:scale(.985)}.space-card:after{content:"";background:radial-gradient(circle, color-mix(in srgb, var(--space) 28%, transparent), transparent 70%);pointer-events:none;border-radius:50%;width:240px;height:240px;position:absolute;top:-110px;right:-90px}.space-card .glyph{background:color-mix(in srgb, var(--space) 16%, transparent);width:46px;height:46px;color:var(--space);border-radius:15px;place-items:center;display:grid}.space-card h2{font-size:24px;font-weight:750}.space-card .info{color:var(--muted);margin-top:2px;font-size:14px}.space-card.disabled{opacity:.62}.apps{grid-template-columns:repeat(4,1fr);gap:14px 8px;display:grid}@media (width>=700px){.apps{grid-template-columns:repeat(6,1fr)}}.app-tile{color:var(--muted);flex-direction:column;align-items:center;gap:7px;font-size:12.5px;font-weight:600;display:flex}.app-tile .ico{background:var(--surface);border:1px solid var(--line);width:60px;height:60px;box-shadow:var(--shadow);color:var(--c,var(--space));border-radius:18px;place-items:center;display:grid}.recipe-grid{grid-template-columns:repeat(auto-fill,minmax(158px,1fr));gap:12px;display:grid}@media (width>=700px){.recipe-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}}.recipe-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow);flex-direction:column;transition:transform .15s;display:flex;overflow:hidden}.recipe-card:active{transform:scale(.98)}.recipe-card .cover{aspect-ratio:4/3;background:var(--surface-2);color:var(--faint);place-items:center;display:grid;position:relative}.recipe-card .cover img{object-fit:cover;width:100%;height:100%}.recipe-card .fav{color:#fbbf24;filter:drop-shadow(0 1px 3px #00000059);position:absolute;top:9px;right:9px}.recipe-card .body{flex-direction:column;gap:7px;padding:11px 12px 13px;display:flex}.recipe-card .title{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-weight:680;line-height:1.25;display:-webkit-box;overflow:hidden}.coverage{background:var(--surface-3);border-radius:5px;height:5px;overflow:hidden}.coverage>div{background:var(--space,var(--accent));border-radius:5px;height:100%}.hero{aspect-ratio:16/10;background:var(--surface-2);color:var(--faint);border-radius:26px;place-items:center;width:100%;max-height:380px;display:grid;position:relative;overflow:hidden}.hero img{object-fit:cover;width:100%;height:100%}.steps{counter-reset:step;flex-direction:column;gap:14px;display:flex}.step{gap:13px;display:flex}.step:before{counter-increment:step;content:counter(step);background:var(--surface-2);border-radius:9px;flex:none;place-items:center;width:28px;height:28px;font-size:13px;font-weight:700;display:grid}.two-col{gap:28px;display:grid}@media (width>=900px){.two-col{grid-template-columns:minmax(0,5fr) minmax(0,7fr);align-items:start}}.sheet-backdrop{z-index:60;background:#0000006b;justify-content:center;align-items:flex-end;animation:.18s fade;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);width:100%;max-height:92dvh;padding:10px 18px calc(var(--safe-b) + 20px);box-shadow:var(--shadow-lg);overscroll-behavior:contain;border-radius:26px 26px 0 0;animation:.26s cubic-bezier(.2,.9,.3,1) rise;overflow-y:auto}.sheet .grabber{background:var(--surface-3);border-radius:3px;width:38px;height:5px;margin:0 auto 12px}.sheet-head{align-items:center;gap:10px;margin-bottom:16px;display:flex}.sheet-head h3{flex:1;font-size:20px}@media (width>=700px){.sheet-backdrop{align-items:center;padding:24px}.sheet{border-radius:26px;max-width:520px;padding:22px 24px 24px;animation:.2s pop}.sheet.wide{max-width:760px}.sheet .grabber{display:none}}@keyframes fade{0%{opacity:0}}@keyframes rise{0%{transform:translateY(100%)}}@keyframes pop{0%{opacity:0;transform:scale(.96)}}.toasts{z-index:80;left:50%;top:calc(var(--safe-t) + 12px);pointer-events:none;flex-direction:column;gap:8px;width:min(420px,100% - 32px);display:flex;position:fixed;transform:translate(-50%)}.toast{pointer-events:auto;background:var(--text);color:var(--bg);box-shadow:var(--shadow-lg);border-radius:14px;align-items:center;gap:10px;padding:12px 16px;font-weight:600;animation:.22s drop;display:flex}.toast.error{background:var(--danger);color:#fff}.toast button{color:inherit;opacity:.8;margin-left:auto;font-weight:700}@keyframes drop{0%{opacity:0;transform:translateY(-14px)}}.camera{aspect-ratio:3/4;background:#000;border-radius:24px;width:100%;max-height:62dvh;position:relative;overflow:hidden}@media (width>=700px){.camera{aspect-ratio:4/3}}.camera video{object-fit:cover;width:100%;height:100%}.camera .frame{border-radius:18px;outline:2px solid #ffffffe6;height:26%;position:absolute;top:34%;left:10%;right:10%;box-shadow:0 0 0 100vmax #00000073}.camera .frame.date{height:20%;top:38%;left:6%;right:6%}.camera .laser{background:var(--accent);height:2px;box-shadow:0 0 12px var(--accent);animation:1.8s ease-in-out infinite scanline;position:absolute;top:47%;left:14%;right:14%}@keyframes scanline{50%{transform:translateY(-38px)}}.camera .cam-actions{justify-content:center;gap:12px;display:flex;position:absolute;bottom:14px;left:0;right:0}.cam-btn{-webkit-backdrop-filter:blur(12px);color:#fff;background:#1414148c;border-radius:999px;align-items:center;gap:8px;height:42px;padding:0 16px;font-size:14px;font-weight:600;display:inline-flex}.cam-btn.on{color:#000;background:#fff}.shutter{background:#fff;border-radius:50%;width:68px;height:68px;box-shadow:0 0 0 4px #ffffff59}.shutter:active{transform:scale(.94)}.camera .cam-msg{color:#fff;text-align:center;place-items:center;padding:24px;font-weight:600;display:grid;position:absolute;inset:0}.capture-preview{background:#000;border-radius:14px;max-height:140px;overflow:hidden}.capture-preview img{object-fit:contain;width:100%;max-height:140px}.date-chip{background:var(--surface-2);text-align:left;border:2px solid #0000;border-radius:14px;flex-direction:column;align-items:flex-start;gap:2px;min-width:132px;padding:11px 14px;display:flex}.date-chip.active{border-color:var(--space,var(--accent));background:var(--accent-soft)}.date-chip .d{font-size:16px;font-weight:700}.stepper{background:var(--surface-2);border-radius:13px;align-items:center;height:46px;display:inline-flex}.stepper button{width:44px;height:46px;color:var(--text);place-items:center;display:grid}.stepper input{text-align:center;background:0 0;border:0;outline:none;width:64px;font-size:17px;font-weight:650}.toggle{background:var(--surface-3);border-radius:999px;flex:none;width:50px;height:30px;transition:background .2s;position:relative}.toggle:after{content:"";background:#fff;border-radius:50%;width:24px;height:24px;transition:transform .2s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #00000040}.toggle.on{background:var(--space,var(--accent))}.toggle.on:after{transform:translate(20px)}.login{place-items:center;min-height:100dvh;padding:24px;display:grid}.login-card{text-align:center;flex-direction:column;gap:18px;width:min(400px,100%);display:flex}.login-card .logo{width:76px;height:76px;box-shadow:var(--shadow-lg);border-radius:22px;margin:0 auto 6px}.login-card h1{font-size:30px}.nutri{color:#fff;text-transform:uppercase;border-radius:8px;place-items:center;width:26px;height:26px;font-size:13px;font-weight:800;display:grid}.nutri-a{background:#038141}.nutri-b{background:#85bb2f}.nutri-c{background:#e5b700}.nutri-d{background:#ee8100}.nutri-e{background:#e63e11}.check{border:2px solid var(--line-strong);color:#0000;border-radius:8px;flex:none;place-items:center;width:26px;height:26px;transition:background .15s,border-color .15s;display:grid}.check.on{background:var(--space,var(--accent));border-color:var(--space,var(--accent));color:var(--accent-text)}.struck{color:var(--faint);text-decoration:line-through}.ing-row{border-radius:var(--r);background:var(--surface-2);grid-template-columns:1fr;gap:8px;padding:12px;display:grid}@media (width>=700px){.ing-row{grid-template-columns:74px 92px 1fr 1fr auto;align-items:center}}.ing-row .input{background:var(--surface)}.spinner{border:2.5px solid var(--surface-3);border-top-color:var(--space,var(--accent));border-radius:50%;width:22px;height:22px;animation:.7s linear infinite spin}.page-loader{place-items:center;padding:80px 0;display:grid}@keyframes spin{to{transform:rotate(360deg)}}.skeleton{background:linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2));background-size:200% 100%;border-radius:12px;animation:1.2s infinite shimmer}@keyframes shimmer{to{background-position:-200% 0}}.kv{grid-template-columns:auto 1fr;gap:8px 16px;font-size:14px;display:grid}.kv dt{color:var(--muted)}.kv dd{text-align:right;margin:0;font-weight:600}hr.sep{background:var(--line);border:0;height:1px;margin:4px 0}
