@charset "UTF-8";:root{--bg: #12161f;--surface: #1b2130;--surface-2: #252c3d;--line: #323a4e;--text: #f5f5f7;--muted: #a3abbd;--accent: #e8b45a;--on-accent: #12161f;--danger: #ff7b7b;--up: #5fd38d;--down: #ff7b7b;--warn: #fab219;--radius: 14px;--nav-h: calc(66px + env(safe-area-inset-bottom)) ;color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text);font:16px/1.4 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}a{color:inherit;text-decoration:none}h1{font-size:1.5rem;margin:0;letter-spacing:-.02em;overflow-wrap:anywhere}h2{font-size:1.05rem;margin:0;display:flex;align-items:center;gap:8px}p{margin:0}button{font:inherit;color:inherit;cursor:pointer}input,select,textarea{font:inherit;color:var(--text);background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:10px 12px;width:100%;min-width:0}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:1px}label{display:flex;flex-direction:column;gap:6px;font-size:.9rem;color:var(--muted)}ul{list-style:none;padding:0;margin:0}.muted{color:var(--muted)}.small{font-size:.85rem}.center{text-align:center;padding:2rem}.grow{flex:1;min-width:0}.spacer{flex:1}.stack{display:flex;flex-direction:column;gap:12px}.row{display:flex;gap:8px;align-items:center}.row.wrap{flex-wrap:wrap}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.card{background:var(--surface);border-radius:var(--radius);padding:16px;margin-bottom:14px}.link{color:var(--accent)}.desc{white-space:pre-wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;padding:10px 16px;font-weight:600;white-space:nowrap}.btn:disabled{opacity:.5;cursor:default}.btn-primary{background:var(--accent);color:var(--on-accent)}.btn-light{background:#fff;color:#12161f}.btn-ghost{background:var(--surface-2)}.btn-danger-text{background:none;color:var(--danger);padding:8px}.btn-danger{background:var(--danger);color:#12161f;padding:8px 12px}.btn-block{width:100%}.btn-sm{padding:7px 12px;font-size:.875rem}.btn-text{background:none;border:0;color:var(--muted);padding:6px 8px}.icon-btn{display:inline-grid;place-items:center;width:36px;height:36px;flex:none;border-radius:10px;border:0;background:none;color:var(--muted)}.icon-btn:hover{background:var(--surface-2)}.icon{display:inline-grid;place-items:center;flex:none}.icon svg{width:1.1em;height:1.1em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.icon-btn .icon svg{width:20px;height:20px}.settings-save{align-self:flex-end}.shell-main{max-width:720px;margin:0 auto;padding:16px 16px calc(var(--nav-h) + 16px)}.page-head{display:flex;align-items:center;gap:8px;margin:4px 0 16px}.section-title{margin:20px 0 10px}.section-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:20px 0 10px}.empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:15vh 16px 0;max-width:460px;margin:0 auto}.empty-icon{color:var(--accent)}.icon-lg .icon svg{width:56px;height:56px;stroke-width:1.5}.notice{background:var(--surface-2);padding:10px 12px;border-radius:10px}.notice.error{color:var(--danger)}.dot{--c: var(--accent);display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--c);flex:none}.list-item{display:flex;align-items:center;gap:8px;background:var(--surface);border-radius:12px;padding:10px 12px;margin-bottom:8px}.danger-zone{border:1px solid color-mix(in srgb,var(--danger) 40%,transparent)}.danger-zone app-confirm-button{align-self:flex-start}.hero-card{display:flex;flex-direction:column;gap:6px}.hero-number{font-size:3.25rem;line-height:1.05;font-weight:700;letter-spacing:-.03em}.hero-card .btn-block{margin-top:8px}.bar{display:block;height:6px;border-radius:3px;background:var(--surface-2);overflow:hidden}.bar>span{display:block;height:100%;border-radius:3px}.meters{display:flex;flex-direction:column;gap:12px;margin-top:12px}.meters li{display:grid;grid-template-columns:1fr auto;gap:4px 8px}.meters .bar{grid-column:span 2}.meter-label{display:flex;align-items:center;gap:8px;min-width:0}.meter-value{font-weight:600;font-variant-numeric:tabular-nums}.filters{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}.filters.grid-2{display:grid}.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}.chip{flex:none;border:0;border-radius:999px;padding:6px 14px;font-size:.875rem;background:var(--surface-2);color:var(--muted)}.chip.on{background:var(--accent);color:var(--on-accent);font-weight:600}.segmented{display:flex;background:var(--surface-2);border-radius:12px;padding:3px}.segmented button{flex:1;border:0;background:none;padding:6px;border-radius:10px;color:var(--muted);font-size:.875rem}.segmented button.on{background:var(--bg);color:var(--text);font-weight:600}.line-chart{display:block}.line-chart-canvas{height:280px;width:100%}.legend{display:flex;flex-direction:column;gap:2px;margin-top:10px;border-top:1px solid var(--line);padding-top:8px}.legend-item{display:flex;align-items:center;gap:10px;width:100%;min-height:36px;padding:4px 6px;border:0;border-radius:8px;background:none;text-align:left}button.legend-item:hover{background:var(--surface-2)}.legend-item b{font-variant-numeric:tabular-nums;font-weight:600}.legend-item.off{color:var(--muted)}.legend-item.off .legend-mark{background:var(--line)!important}.legend-mark{width:16px;height:3px;border-radius:2px;flex:none}.legend-main{font-weight:600}.goal-group{margin-bottom:8px}.goal-group .section-row{margin-top:12px}.goal-row{display:flex;align-items:center;gap:12px;background:var(--surface);border-radius:12px;padding:12px;margin-bottom:8px}.goal-link{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.goal-top{display:flex;justify-content:space-between;gap:8px}.goal-top b{font-variant-numeric:tabular-nums}.goal-title{display:flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere}.goal-actions{margin-top:24px}.tag{display:inline-flex;align-items:center;gap:4px;font-size:.8rem}.year{margin:18px 0 8px;color:var(--muted)}.event{display:flex;align-items:center;gap:12px;background:var(--surface);border-radius:12px;padding:12px;margin-bottom:8px}.event-icon{display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:50%;background:var(--surface-2);color:var(--muted)}.event-body{display:flex;flex-direction:column;gap:2px;min-width:0}.event-title{font-weight:600;overflow-wrap:anywhere}.event-note{white-space:pre-wrap;overflow-wrap:anywhere}.event-value{display:flex;flex-direction:column;align-items:flex-end;flex:none;font-variant-numeric:tabular-nums}.t-up,.t-achieved{color:var(--up)}.t-down,.t-lost{color:var(--down)}.t-stalled{color:var(--warn)}.history-row{display:flex;align-items:center;gap:2px}.history-row app-event-row{display:block}.sheet-backdrop{position:fixed;inset:0;background:#0009;z-index:20}.sheet{position:fixed;z-index:21;left:0;right:0;bottom:0;max-height:90vh;overflow:auto;margin:0 auto;max-width:560px;background:var(--surface);border-radius:20px 20px 0 0;padding:16px 16px calc(20px + env(safe-area-inset-bottom))}.sheet-head{display:flex;align-items:center;justify-content:space-between}.sheet-sub{margin-top:-10px}.percent-field{display:flex;align-items:center;gap:12px}.percent-field input[type=range]{flex:1;padding:0;accent-color:var(--accent);background:none;border:0}.percent-box{display:flex;align-items:center;gap:4px;color:var(--text);flex:none}.percent-box input{width:72px;text-align:right}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:10;display:flex;justify-content:space-around;align-items:center;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:#0e1119;border-top:1px solid var(--line)}.bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:2px;flex:1;font-size:.72rem;color:var(--muted);padding:2px 0}.bottom-nav a.active{color:var(--accent);font-weight:600}.bottom-nav .icon svg{width:24px;height:24px}.auth-page{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:16px}.auth-card{width:100%;max-width:380px;display:flex;flex-direction:column;gap:14px;margin:0}.divider{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:.85rem}.divider:before,.divider:after{content:"";flex:1;border-top:1px solid var(--line)}.auth-links{display:flex;justify-content:space-between;flex-wrap:wrap}.dev-box{border-top:1px dashed var(--line);padding-top:12px}.brand{display:inline-flex;align-items:center;gap:10px;font-weight:800;font-size:1.3rem}.brand-dot{width:16px;height:16px;border-radius:50%;border:3px solid var(--accent)}
