*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0}body{background:#171514;color:#211d1b;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;overflow:hidden;overscroll-behavior:none}:root{--safe-top: max(env(safe-area-inset-top), 22px);--safe-bottom: max(env(safe-area-inset-bottom), 8px);--tabbar-height: calc(58px + var(--safe-bottom))}button,input,select{font:inherit}button{min-height:40px;border:0;border-radius:12px;padding:0 14px;background:#211d1b;color:#fff8ef;font-weight:800}button:active{transform:translateY(1px)}input,select{width:100%;min-height:44px;border:1px solid #dfd2c8;border-radius:12px;padding:0 12px;background:#fff;color:#211d1b}.app{width:100%;height:100dvh;overflow:hidden;background:#f7f2ed}.view{height:calc(100dvh - var(--tabbar-height));overflow:auto;-webkit-overflow-scrolling:touch}.loading{display:grid;min-height:100dvh;place-items:center;background:#f7f2ed;color:#211d1b;padding:24px}.tabbar{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;height:var(--tabbar-height);padding:8px 10px var(--safe-bottom);border-top:1px solid #e2d8d0;background:#fffaf6}.tabbar button{min-height:42px;padding:0 4px;background:transparent;color:#746861;font-size:12px}.tabbar button.active{background:#211d1b;color:#fff8ef}.update-bar{position:fixed;z-index:20;left:12px;right:12px;top:calc(var(--safe-top) + 8px);display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:8px 10px 8px 14px;border:1px solid rgb(255 248 239 / .28);border-radius:16px;background:#171514e6;color:#fff8ef}.update-bar button{min-height:34px;background:#fff8ef;color:#211d1b}.page{min-height:100%;padding:calc(var(--safe-top) + 18px) 18px 28px}.page h1{margin:0;color:#201d1b;font-size:30px;line-height:36px}.page>p{margin:6px 0 0;color:#70665f;line-height:20px}.stack{display:grid;gap:12px;margin-top:16px}.card{display:grid;gap:12px;padding:16px;border:1px solid #eadfd6;border-radius:18px;background:#fffaf6}.card h2{margin:0;color:#201d1b;font-size:16px;line-height:22px}.eyebrow{color:#756a62;font-size:12px;font-weight:900}.hint{margin:0;color:#756a62;font-size:13px;line-height:18px}.metric{color:#201d1b;font-size:30px}.progress{height:12px;overflow:hidden;border-radius:99px;background:#eadfd6}.progress i{display:block;height:100%;border-radius:inherit;background:#2b6f83}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.quick-grid button{min-height:38px;background:#e5f0f2;color:#1f5665}.inline-form{display:grid;grid-template-columns:1fr auto;align-items:end;gap:10px}.field{display:grid;gap:6px}.field span{color:#4f4640;font-size:12px;font-weight:800}.list{gap:0}.row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;padding:10px 0;border-bottom:1px solid #eadfd6}.row:last-child{border-bottom:0}.row div{min-width:0}.row b,.row small{display:block}.row small{margin-top:4px;color:#756a62}.row button{flex:0 0 auto;background:#eee5dc;color:#211d1b}.split{display:flex;justify-content:space-between;margin:0;color:#4f4640}.mini-bars{display:grid;gap:10px}.mini-bar{display:grid;grid-template-columns:48px 1fr 64px;align-items:center;gap:10px;color:#4f4640;font-size:12px}.mini-bar div,.category-bar div{height:10px;overflow:hidden;border-radius:99px;background:#eadfd6}.mini-bar i,.category-bar i{display:block;height:100%;border-radius:inherit;background:#2b6f83}.mini-bar b{text-align:right}.month-head{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px}.month-head strong{text-align:center;color:#201d1b;font-size:18px}.month-head button{min-height:34px;background:#eee5dc;color:#211d1b}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.stats-grid span{display:grid;gap:4px;min-height:62px;align-content:center;padding:10px;border-radius:14px;background:#f1e7df}.stats-grid b{color:#201d1b;font-size:13px;line-height:17px}.stats-grid small{color:#756a62;font-size:11px}.category-bar{display:grid;gap:7px}.category-bar p{display:flex;justify-content:space-between;gap:12px;margin:0;color:#4f4640;font-size:13px}.category-bar b{color:#201d1b}.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}.chips button{flex:0 0 auto;min-height:34px;background:#eee5dc;color:#4f4640;font-size:12px}.chips button.active{background:#211d1b;color:#fff8ef}.character{position:relative;height:100%;min-height:calc(100dvh - var(--tabbar-height));overflow:hidden;background:#171514}.character.morning{background:#3a2a20}.character.afternoon{background:#223034}.character.night{background:#171721}.character-image,.scene-tint{position:absolute;inset:0;width:100%;height:100%}.character-image{object-fit:cover}.scene-tint{pointer-events:none}.morning .scene-tint{background:#5c341a29}.afternoon .scene-tint{background:#1c343a2e}.night .scene-tint{background:#0c0e1847}.empty-scene{position:absolute;inset:0;display:flex;align-items:flex-end;padding:calc(var(--safe-top) + 28px) 28px 28px;color:#fff8ef;font-size:48px;font-weight:900}.action-menu-wrap{position:absolute;top:calc(var(--safe-top) + 16px);right:14px;z-index:5}.menu-button{width:36px;min-height:36px;border:1px solid rgb(255 248 239 / .25);border-radius:18px;padding:0;background:#14110f7a;color:#fff8ef;font-size:11px}.action-menu{position:absolute;top:44px;right:0;display:grid;gap:6px;width:166px;padding:8px;border:1px solid rgb(255 248 239 / .18);border-radius:16px;background:#14110fc7;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.action-menu button,.menu-toggle{display:flex;align-items:center;justify-content:space-between;min-height:36px;border-radius:10px;padding:0 10px;background:#fff8efe6;color:#211d1b;font-size:12px;font-weight:800}.menu-toggle input{width:18px;min-height:18px;accent-color:#211d1b}.scene-switch{position:absolute;top:calc(var(--safe-top) + 92px);left:12px;display:grid;gap:8px}.scene-switch button{width:34px;min-height:34px;border:1px solid rgb(255 248 239 / .18);border-radius:17px;padding:0;background:#14110f5c}.scene-switch button.active{background:#fff8efeb;color:#211d1b}.character-bottom{position:absolute;left:14px;right:14px;bottom:calc(var(--safe-bottom) + 14px);display:grid;gap:8px}.quote{padding:12px 14px;border:1px solid rgb(255 248 239 / .16);border-radius:16px;background:#14110f94;color:#fff8ef}.quote span{color:#fff8ef9e;font-size:11px;font-weight:900}.quote p{margin:6px 0 0;font-size:16px;font-weight:800;line-height:24px}@media(min-width:720px){.app{max-width:430px;max-height:920px;margin:0 auto;box-shadow:0 0 0 1px #00000014,0 24px 80px #00000038}}
