:root{--bg: #f6f5f2;--surface: #ffffff;--surface-2: #efede8;--text: #1d1d1b;--muted: #6b6b66;--line: #e2e0da;--accent: #1f3d2b;--accent-text: #ffffff;--warn: #b4541f;--warn-bg: #fbeee4;--done: #9a9a94;--shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .06);--radius: 18px;--tap: 56px;--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);color-scheme:light}@media(prefers-color-scheme:dark){:root{--bg: #121412;--surface: #1c1f1c;--surface-2: #262a26;--text: #ecece6;--muted: #a3a59e;--line: #2f332f;--accent: #8fd4a6;--accent-text: #10241a;--warn: #f0a070;--warn-bg: #3a2418;--done: #6e716b;--shadow: 0 1px 2px rgba(0, 0, 0, .4);color-scheme:dark}}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;background:var(--bg);color:var(--text)}body{font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,Segoe UI,Roboto,sans-serif;font-size:17px;line-height:1.4;-webkit-font-smoothing:antialiased;overscroll-behavior-y:none}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}.app{max-width:680px;margin:0 auto;min-height:100dvh;padding:calc(var(--safe-top) + 8px) 16px calc(var(--safe-bottom) + 110px)}.topbar{display:flex;align-items:center;gap:8px;min-height:52px;margin-bottom:8px}.topbar h1{font-size:24px;margin:0;flex:1;letter-spacing:-.01em}.topbar .sub{color:var(--muted);font-size:15px}.icon-btn{width:44px;height:44px;border-radius:50%;border:0;background:var(--surface-2);display:grid;place-items:center;font-size:20px;flex:none}.greeting{font-size:28px;font-weight:700;letter-spacing:-.02em;margin:4px 0 0}.tabs{display:flex;background:var(--surface-2);border-radius:14px;padding:4px;margin:8px 0 16px}.tabs button{flex:1;border:0;background:transparent;padding:10px;border-radius:11px;font-weight:600;color:var(--muted)}.tabs button[aria-selected=true]{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:4px 0;margin-bottom:16px}.card.pad{padding:16px}.section-title{font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:700;margin:20px 4px 8px;display:flex;align-items:center;gap:8px}.section-title.warn{color:var(--warn)}.row{display:flex;align-items:center;gap:12px;min-height:var(--tap);padding:8px 16px;border-bottom:1px solid var(--line)}.row:last-child{border-bottom:0}.row .body{flex:1;min-width:0}.row .title{font-weight:550;overflow-wrap:anywhere}.row .meta{color:var(--muted);font-size:14px}.row.done .title{text-decoration:line-through;color:var(--done)}.row-link{background:none;border:0;text-align:left;width:100%}.row-link:not(.row){padding:0}button.row{border-bottom:1px solid var(--line)}button.row:last-child{border-bottom:0}.dot{width:10px;height:10px;border-radius:50%;flex:none}.empty{color:var(--muted);text-align:center;padding:20px 16px}.chev{color:var(--muted);font-size:20px}.check{width:44px;height:44px;flex:none;border-radius:50%;border:2.5px solid var(--line);background:transparent;display:grid;place-items:center;transition:transform .1s}.check:active{transform:scale(.9)}.check.on{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.check svg{width:22px;height:22px}.habit-strip{display:flex;flex-wrap:wrap;gap:10px;padding:2px 2px 8px}.habit-chip{flex:none;display:flex;align-items:center;gap:8px;padding:10px 16px 10px 10px;border-radius:999px;border:2px solid var(--line);background:var(--surface);font-weight:600;min-height:52px}.habit-chip .mini{width:30px;height:30px;border-radius:50%;border:2px solid var(--line);display:grid;place-items:center}.habit-chip.on{border-color:var(--hc, var(--accent))}.habit-chip.on .mini{background:var(--hc, var(--accent));border-color:var(--hc, var(--accent));color:#fff}.habit-chip .streak{color:var(--muted);font-weight:500;font-size:14px}.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}.tile{border:0;border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);min-height:96px;padding:14px;text-align:left;display:flex;flex-direction:column;justify-content:space-between;border-top:5px solid var(--tc)}.tile .emoji{font-size:28px}.tile .name{font-weight:700}.btn{border:0;border-radius:14px;min-height:var(--tap);padding:0 20px;font-weight:650;background:var(--surface-2);display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn.primary{background:var(--accent);color:var(--accent-text)}.btn.danger{background:transparent;color:var(--warn)}.btn.block{width:100%}.btn.small{min-height:40px;padding:0 14px;font-size:15px;border-radius:11px}.btn:disabled{opacity:.5}.btn.whatsapp{background:#25d366;color:#06301a}.stack{display:flex;flex-direction:column;gap:12px}.inline{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.fab{position:fixed;right:max(20px,calc(50% - 320px));bottom:calc(var(--safe-bottom) + 24px);width:64px;height:64px;border-radius:50%;border:0;background:var(--accent);color:var(--accent-text);font-size:34px;line-height:1;box-shadow:0 6px 20px #00000040;z-index:20}label.field,div.field{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:15px}.field .hint{font-weight:400;color:var(--muted);font-size:14px}input[type=text],input[type=number],input[type=date],input[type=time],select,textarea{width:100%;min-height:52px;border-radius:12px;border:1.5px solid var(--line);background:var(--surface);padding:12px 14px;font-size:17px;-moz-appearance:none;appearance:none;-webkit-appearance:none}textarea{min-height:120px;resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:transparent}.seg{display:flex;flex-wrap:wrap;gap:8px}.seg button{border:1.5px solid var(--line);background:var(--surface);border-radius:12px;min-height:48px;padding:0 14px;font-weight:600}.seg button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.seg.days button{width:44px;padding:0}.switch{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;font-weight:600}.switch input{width:52px;height:32px;-moz-appearance:none;appearance:none;-webkit-appearance:none;background:var(--line);border-radius:999px;position:relative;flex:none;transition:background .15s}.switch input:after{content:"";position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:50%;background:#fff;transition:transform .15s;box-shadow:0 1px 3px #0000004d}.switch input:checked{background:var(--accent)}.switch input:checked:after{transform:translate(20px)}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000059;z-index:50;display:flex;align-items:flex-end;justify-content:center}.sheet{background:var(--bg);width:100%;max-width:680px;max-height:92dvh;overflow-y:auto;border-radius:22px 22px 0 0;padding:12px 16px calc(var(--safe-bottom) + 20px)}.sheet .grab{width:40px;height:5px;background:var(--line);border-radius:3px;margin:0 auto 12px}.sheet h2{margin:0 0 16px;font-size:22px}.cal-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.cal-head h2{font-size:19px;margin:0;text-align:center}.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.cal-dow{text-align:center;font-size:12px;color:var(--muted);font-weight:700;padding:4px 0}.cal-day{border:0;background:var(--surface);border-radius:12px;min-height:54px;padding:6px 2px;display:flex;flex-direction:column;align-items:center;gap:4px;font-weight:600}.cal-day.out{opacity:.35}.cal-day.today{outline:2px solid var(--accent)}.cal-day.sel{background:var(--accent);color:var(--accent-text)}.cal-dots{display:flex;gap:3px;flex-wrap:wrap;justify-content:center}.cal-dots .dot{width:6px;height:6px}.week .cal-day{min-height:76px}.heat{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.heat div{aspect-ratio:1;border-radius:6px;background:var(--surface-2);font-size:11px;display:grid;place-items:center;color:var(--muted)}.heat div.hit{background:var(--hc, var(--accent));color:#fff}.heat div.na{background:transparent}.badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:13px;font-weight:700;background:var(--warn-bg);color:var(--warn)}.animal-photo{width:56px;height:56px;border-radius:16px;object-fit:cover;background:var(--surface-2);display:grid;place-items:center;font-size:28px;flex:none}.big-photo{width:100%;max-height:260px;object-fit:cover;border-radius:var(--radius)}.steps{display:flex;gap:6px;margin:8px 0 20px}.steps span{flex:1;height:5px;border-radius:3px;background:var(--line)}.steps span.on{background:var(--accent)}.notice{background:var(--surface-2);border-radius:14px;padding:14px 16px;font-size:15px}.muted{color:var(--muted)}.center{text-align:center}.big-number{font-size:40px;font-weight:800;letter-spacing:-.03em}.toast{position:fixed;left:50%;transform:translate(-50%);bottom:calc(var(--safe-bottom) + 100px);background:var(--text);color:var(--bg);padding:12px 18px;border-radius:14px;z-index:60;font-weight:600;display:flex;gap:14px;align-items:center;justify-content:space-between;width:calc(100% - 32px);max-width:440px}.toast button{white-space:nowrap;background:none;border:0;color:inherit;font-weight:800;text-decoration:underline}
