:root{--bg: #F3F4F5;--surface: #FFFFFF;--surface-2: #ECEEF0;--hero: #1B1E22;--hero-ink: #F3F4F5;--hero-muted: #A9B0B8;--hero-line: #3A3F46;--ink: #15171A;--muted: #5F6670;--faint: #7A818A;--line: #ECEEF0;--line-strong: #DDE0E4;--accent: #C2410C;--accent-ink: #FFFFFF;--accent-text: #C2410C;--accent-soft: #FBEDE6;--accent-soft-ink: #7C2D12;--invert: #15171A;--invert-ink: #F3F4F5;--danger: #B42318;--art-far: #A3AAB2;--art-steel: #6B737C;--art-steel-thin: #B4BAC1;--art-pad: #D5D9DE;--art-stack: #C9CED4;--art-stack-line: #B4BAC1;--art-load-ring: #9A3412;--art-shadow: #E4E7EA;--font: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;--radius: 20px;--tabbar-h: 64px;color-scheme:light}@media (prefers-color-scheme: dark){:root:not([data-theme=light]){--bg: #111315;--surface: #1C1F23;--surface-2: #24282D;--hero: #24282D;--hero-ink: #EEF0F2;--hero-muted: #A0A7AF;--hero-line: #454B52;--ink: #EEF0F2;--muted: #A0A7AF;--faint: #8E959D;--line: #2A2E33;--line-strong: #33383E;--accent: #EB6A32;--accent-ink: #1A0B04;--accent-text: #F08A5D;--accent-soft: #3A2216;--accent-soft-ink: #F5B08E;--invert: #EEF0F2;--invert-ink: #111315;--danger: #F97066;--art-far: #6B737C;--art-steel: #7D858E;--art-steel-thin: #4B5158;--art-pad: #3E434A;--art-stack: #3A3F46;--art-stack-line: #4B5158;--art-load-ring: #B8461A;--art-shadow: #2A2E33;color-scheme:dark}}:root[data-theme=dark]{--bg: #111315;--surface: #1C1F23;--surface-2: #24282D;--hero: #24282D;--hero-ink: #EEF0F2;--hero-muted: #A0A7AF;--hero-line: #454B52;--ink: #EEF0F2;--muted: #A0A7AF;--faint: #8E959D;--line: #2A2E33;--line-strong: #33383E;--accent: #EB6A32;--accent-ink: #1A0B04;--accent-text: #F08A5D;--accent-soft: #3A2216;--accent-soft-ink: #F5B08E;--invert: #EEF0F2;--invert-ink: #111315;--danger: #F97066;--art-far: #6B737C;--art-steel: #7D858E;--art-steel-thin: #4B5158;--art-pad: #3E434A;--art-stack: #3A3F46;--art-stack-line: #4B5158;--art-load-ring: #B8461A;--art-shadow: #2A2E33;color-scheme:dark}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}[hidden]{display:none!important}html,body{margin:0;background:var(--bg);color:var(--ink)}body{font-family:var(--font);font-size:16px;line-height:1.4;font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}a{color:var(--accent-text)}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media (prefers-reduced-motion: reduce){*{animation:none!important;transition:none!important}}.app{max-width:520px;margin:0 auto;min-height:100dvh;position:relative}.screen{padding:calc(env(safe-area-inset-top,0px) + 20px) 20px calc(var(--tabbar-h) + env(safe-area-inset-bottom,0px) + 96px);display:flex;flex-direction:column;gap:20px}.screen.no-tabs{padding-bottom:calc(env(safe-area-inset-bottom,0px) + 120px)}.head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px}.head-text{display:flex;flex-direction:column;gap:2px;min-width:0}.eyebrow{font-size:14px;color:var(--muted);font-weight:500}.title{font-size:26px;font-weight:800;letter-spacing:-.02em;margin:0;line-height:1.15}.title-md{font-size:22px;font-weight:800;letter-spacing:-.01em;margin:0}.section-title{font-size:18px;font-weight:700;margin:0}.row-between{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.stack{display:flex;flex-direction:column;gap:10px}.muted{color:var(--muted)}.small{font-size:14px}.tiny{font-size:13px}.strong{font-weight:700}.big-number{font-size:52px;font-weight:800;letter-spacing:-.03em;line-height:1}.num-xl{font-size:44px;font-weight:800;letter-spacing:-.02em;line-height:1.05}.card{background:var(--surface);border-radius:var(--radius);padding:16px}.card.flush{padding:4px 16px}.hero{background:var(--hero);color:var(--hero-ink);border-radius:22px;padding:20px;display:flex;flex-direction:column;gap:18px}.hero .muted{color:var(--hero-muted)}.notice{display:flex;align-items:center;gap:12px;background:var(--accent-soft);color:var(--accent-soft-ink);border-radius:16px;padding:14px 16px;font-size:15px}.notice svg{color:var(--accent-text);flex-shrink:0}.error-bar{position:fixed;left:50%;transform:translate(-50%);top:calc(env(safe-area-inset-top,0px) + 12px);z-index:40;width:min(480px,calc(100% - 32px));background:var(--invert);color:var(--invert-ink);border-radius:14px;padding:12px 14px;display:flex;gap:12px;align-items:center;font-size:14px}.error-bar button{background:none;border:0;color:inherit;font-weight:700;padding:4px 8px}.list-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink);background:none;border-left:0;border-right:0;border-top:0;width:100%;text-align:left}.list-row:last-child{border-bottom:0}.list-row .grow{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.list-row .name{font-size:16px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list-row .meta{font-size:14px;color:var(--muted)}.list-row .value{font-size:15px;font-weight:700;text-align:right;min-width:52px}.chev{color:var(--faint);flex-shrink:0}.btn{height:58px;border-radius:18px;border:0;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-size:18px;font-weight:700;text-decoration:none;padding:0 18px;white-space:nowrap}@media (max-width: 380px){.btn{font-size:17px;padding:0 14px}}.btn-primary{background:var(--accent);color:var(--accent-ink)}.btn-primary:disabled{opacity:.55;cursor:default}.btn-secondary{background:var(--surface);color:var(--ink)}.btn-invert{background:var(--invert);color:var(--invert-ink)}.btn-block{width:100%}.btn-text{background:none;border:0;height:44px;padding:0 12px;font-size:15px;font-weight:600;color:var(--ink);display:inline-flex;align-items:center;gap:8px;text-decoration:none}.btn-text.accent{color:var(--accent-text);font-weight:700}.icon-btn{width:44px;height:44px;border-radius:50%;border:0;background:var(--surface);color:var(--ink);display:grid;place-items:center;flex-shrink:0;text-decoration:none}.icon-btn.invert{background:var(--invert);color:var(--invert-ink)}.pill-btn{height:44px;padding:0 16px;border-radius:999px;border:0;background:var(--surface);color:var(--ink);font-size:15px;font-weight:700}.avatar{width:44px;height:44px;border-radius:50%;background:var(--invert);color:var(--invert-ink);display:grid;place-items:center;font-weight:700;font-size:15px;text-decoration:none;flex-shrink:0}.bottom-actions{position:fixed;left:0;right:0;bottom:0;z-index:20;padding:12px 20px calc(env(safe-area-inset-bottom,0px) + 24px);background:linear-gradient(to top,var(--bg) 70%,transparent)}.bottom-actions .in{max-width:480px;margin:0 auto;display:flex;flex-direction:column;gap:10px;align-items:center}.bottom-actions.over-tabs{bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom,0px));padding-bottom:12px}.seg{display:inline-flex;background:var(--surface-2);border-radius:10px;padding:3px;flex-shrink:0}.card .seg{background:var(--bg)}.seg button{height:32px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:14px;font-weight:600}.seg button[aria-pressed=true]{background:var(--invert);color:var(--invert-ink);font-weight:700}.seg.sm button{height:28px;padding:0 10px;font-size:13px}.seg.wide{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;width:100%}.seg.soft button[aria-pressed=true]{background:var(--surface);color:var(--ink)}.field{display:flex;flex-direction:column;gap:8px}.label{font-size:14px;font-weight:600;color:var(--muted)}.input{height:56px;border-radius:16px;border:1px solid var(--line-strong);background:var(--surface);padding:0 16px;font-size:17px;color:var(--ink);width:100%}.input:focus{border-color:var(--accent);outline:none}.input-soft{height:44px;border-radius:12px;border:0;background:var(--bg);padding:0 12px;font-size:18px;font-weight:700;color:var(--ink);width:100%;min-width:0}.input-soft:focus{outline:2px solid var(--accent)}.bare-number{border:0;padding:0;background:transparent;font-size:44px;font-weight:800;color:var(--ink);letter-spacing:-.02em;width:100%;min-width:0}.bare-number:focus{outline:none}.stepper{background:var(--surface);border-radius:var(--radius);padding:14px 14px 14px 18px;display:flex;align-items:center;gap:12px}.stepper .body{flex:1;min-width:0;display:flex;flex-direction:column}.stepper .val{display:flex;align-items:center;gap:8px}.step-btn{width:56px;height:56px;border-radius:16px;border:0;display:grid;place-items:center;flex-shrink:0;background:var(--bg);color:var(--ink)}.step-btn.plus{background:var(--invert);color:var(--invert-ink)}.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:30;background:var(--bg);border-top:1px solid var(--line-strong);padding-bottom:env(safe-area-inset-bottom,0px)}.tabbar .in{max-width:520px;margin:0 auto;height:var(--tabbar-h);display:grid;grid-template-columns:repeat(4,1fr)}.tabbar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:12px;font-weight:600;color:var(--faint);text-decoration:none}.tabbar a.active{color:var(--ink);font-weight:700}.week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.week .d{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12px;color:var(--hero-muted)}.week .dot{width:34px;height:34px;border-radius:50%;border:1.5px dashed var(--hero-line)}.week .dot.past{border-style:solid}.week .dot.on{background:var(--hero-ink);border:0}.week .dot.today{border-color:var(--hero-ink)}.week .dot.today.on{background:var(--accent)}.week .d.today{color:var(--hero-ink);font-weight:700}.chip{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:700;background:var(--accent-soft);color:var(--accent-text)}.chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -20px;padding:0 20px}.chips::-webkit-scrollbar{display:none}.chip-btn{height:38px;padding:0 14px;border-radius:999px;border:0;background:var(--surface);color:var(--muted);font-size:14px;font-weight:600;white-space:nowrap;flex-shrink:0}.chip-btn[aria-pressed=true]{background:var(--invert);color:var(--invert-ink);font-weight:700}.bar{height:10px;border-radius:999px;background:var(--line);overflow:hidden}.bar>i{display:block;height:100%;border-radius:999px;background:var(--accent)}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.empty{text-align:center;padding:28px 16px;color:var(--muted);display:flex;flex-direction:column;gap:6px;align-items:center}.empty strong{color:var(--ink);font-size:17px}.art-tile{background:var(--bg);border-radius:12px;overflow:hidden}.card .art-tile{background:var(--bg)}.center-screen{min-height:100dvh;display:grid;place-items:center;padding:24px;text-align:center}.spinner{width:32px;height:32px;border-radius:50%;border:3px solid var(--line-strong);border-top-color:var(--accent);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.chart{display:block;width:100%;height:auto}.chart text{fill:var(--faint);font-size:11px;font-family:var(--font)}.del-btn{background:none;border:0;color:var(--faint);width:36px;height:36px;border-radius:10px;display:grid;place-items:center;flex-shrink:0}.del-btn.confirm{color:var(--danger);background:var(--surface-2);width:auto;padding:0 10px;font-size:13px;font-weight:700}.demo-bar{position:sticky;top:0;z-index:45;background:var(--accent-soft);color:var(--accent-soft-ink);font-size:12px;font-weight:700;text-align:center;padding:calc(env(safe-area-inset-top,0px) + 4px) 12px 4px}.rest{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#1b1e22;color:#f3f4f5;display:flex;flex-direction:column;align-items:center;padding:calc(env(safe-area-inset-top,0px) + 56px) 20px calc(env(safe-area-inset-bottom,0px) + 28px)}.rest .pr{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;background:#c2410c;color:#fff;padding:6px 12px;border-radius:999px}.rest .ring{position:relative;width:min(280px,72vw);aspect-ratio:1;margin-top:40px}.rest .ring svg{width:100%;height:100%}.rest .ring .center{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.rest .clock{font-size:72px;font-weight:800;letter-spacing:-.03em;line-height:1}.rest .adj{display:flex;gap:12px;margin-top:36px}.rest .adj button{width:96px;height:52px;border-radius:16px;border:0;background:#2c3036;color:#f3f4f5;font-size:17px;font-weight:700}.rest .next{margin-top:auto;width:100%;max-width:480px;display:flex;flex-direction:column;gap:14px}.rest .next .card{background:#24282d;color:#f3f4f5;display:flex;justify-content:space-between;align-items:center}.rest .skip{height:60px;border-radius:18px;border:0;background:#f3f4f5;color:#15171a;font-size:18px;font-weight:700}.rest .muted{color:#a9b0b8}.machine-art{display:block;width:100%;height:auto}.art-figure{fill:none;stroke:var(--ink);stroke-linecap:round;stroke-linejoin:round}.art-far{fill:none;stroke:var(--art-far);stroke-linecap:round;stroke-linejoin:round}.art-head{fill:var(--ink);stroke:none}.art-steel{fill:none;stroke:var(--art-steel);stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}.art-steel-thin{fill:none;stroke:var(--art-steel-thin);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.art-pad{fill:none;stroke:var(--art-pad);stroke-width:8;stroke-linecap:round;stroke-linejoin:round}.art-part{fill:var(--art-pad);stroke:var(--art-steel);stroke-width:1;stroke-linecap:round;stroke-linejoin:round}.art-backpad{fill:var(--art-pad);stroke:none;opacity:.75}.art-stack{fill:var(--art-stack);stroke:var(--art-steel);stroke-width:1;stroke-linecap:round;stroke-linejoin:round}.art-stack-line{fill:none;stroke:var(--art-stack-line);stroke-width:1;stroke-linecap:round;stroke-linejoin:round}.art-load{fill:var(--accent);stroke:none}.art-load-line{fill:none;stroke:var(--accent);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.art-load-ring{fill:none;stroke:var(--art-load-ring);stroke-width:1;stroke-linecap:round;stroke-linejoin:round}.art-hole{fill:var(--surface);stroke:none}.art-arrow{fill:none;stroke:var(--accent);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.art-shadow{fill:var(--art-shadow);stroke:none}
