:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;color:#322d29;background:#fbf8f2;font-synthesis:none;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}
html{min-height:100%;background:#fbf8f2}
body{min-width:320px;min-height:100vh;margin:0;overflow-x:hidden}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.45;cursor:not-allowed}
a{color:inherit}
[hidden]{display:none!important}
.ambient{position:fixed;pointer-events:none;z-index:-1;border-radius:50%;filter:blur(4px)}
.ambient-one{width:340px;height:340px;right:-160px;top:-160px;background:#ffe9d9}
.ambient-two{width:280px;height:280px;left:-190px;bottom:20%;background:#eaf0e7}
.app-shell{width:min(100%,560px);min-height:100vh;margin:0 auto;padding-bottom:calc(102px + env(safe-area-inset-bottom));background:rgba(251,248,242,.8)}
.topbar{height:86px;padding:calc(12px + env(safe-area-inset-top)) 24px 12px;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:10px}.brand-icon{width:42px;height:42px;border-radius:15px;background:#f8e1cf;display:grid;place-items:center;font-size:23px;transform:rotate(-6deg)}
.brand-name{display:block;font-size:18px;font-weight:800;letter-spacing:-.6px}.brand-subtitle{display:block;font-size:10px;letter-spacing:2px;color:#9b8c80;margin-top:2px}
.icon-button{border:1px solid #eee7df;background:#fffaf5;width:40px;height:40px;border-radius:14px;font-size:20px;color:#706257}
.view{padding:0 20px 24px;animation:fadein .25s ease}
@keyframes fadein{from{opacity:.45;transform:translateY(5px)}to{opacity:1;transform:none}}
.eyebrow{text-transform:uppercase;color:#b77a59;letter-spacing:2.5px;font-weight:800;font-size:10px;margin:0 0 8px}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:10px 4px 22px}
.page-head h1{font-size:31px;line-height:1.22;margin:0;letter-spacing:-1.2px;font-weight:830}.page-head p{margin:7px 0 0;color:#9a8d83;font-size:13px}
.small-action{border:0;background:#f1e9df;color:#80614e;border-radius:12px;padding:9px 12px;font-size:12px;font-weight:700;white-space:nowrap}
.date-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 15px}
.date-strip button{border:0;background:#f0e8dd;width:34px;height:34px;border-radius:11px;color:#726557;font-size:20px}
.date-center{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:750}.date-center input{border:0;background:none;color:#795f50;font-size:12px;width:113px}
.cat-switch{display:flex;gap:8px;overflow:auto;padding:0 2px 12px;scrollbar-width:none}.cat-switch::-webkit-scrollbar{display:none}
.cat-chip{display:flex;align-items:center;gap:7px;white-space:nowrap;border:1px solid #e8dfd4;color:#8d8075;background:#fffaf5;border-radius:999px;padding:8px 13px;font-size:12px;font-weight:750}
.cat-chip.active{color:#7b442d;border-color:#edc6ae;background:#fff1e5;box-shadow:0 4px 10px #eabf9b25}
.hero-card{position:relative;overflow:hidden;background:#e88f65;color:#fff;border-radius:25px;padding:23px 24px;margin:3px 0 25px;box-shadow:0 14px 28px #c0785127}
.hero-card::after{content:"✦";position:absolute;font-size:145px;right:-13px;top:-58px;color:#ffffff22;transform:rotate(10deg)}
.hero-card .overline{font-size:11px;letter-spacing:2px;color:#ffeadb;font-weight:800}.hero-card h2{font-size:31px;letter-spacing:-1px;margin:7px 0 3px;line-height:1.12}.hero-card p{margin:7px 0 0;color:#fff3e9;font-size:12px;max-width:80%;line-height:1.5}
.hero-progress{height:7px;border-radius:999px;background:#ffffff56;margin:19px 0 2px;overflow:hidden;width:80%}.hero-progress span{display:block;height:100%;background:#fff;border-radius:999px}
.section-title{display:flex;align-items:center;justify-content:space-between;margin:23px 4px 11px}
.section-title h2{font-size:17px;letter-spacing:-.4px;margin:0;font-weight:800}.section-title small{color:#aa9b8e;font-size:11px}
.event-list{display:flex;flex-direction:column;gap:10px}.event-card,.item-card,.history-card{display:flex;align-items:center;background:#fffdfa;border:1px solid #f0e9e1;box-shadow:0 4px 15px #6c4f3610;border-radius:20px;padding:14px 14px;gap:12px}
.event-card.done{background:#f8f8f2;opacity:.76}.event-card.overdue{border-color:#f1c1aa}
.event-time{font-weight:830;font-size:14px;width:43px;align-self:flex-start;margin-top:15px;letter-spacing:-.3px}
.event-symbol,.item-symbol{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:14px;background:#fce9db;font-size:21px}
.event-info,.item-info,.history-info{min-width:0;flex:1}.event-info strong,.item-info strong,.history-info strong{display:block;font-size:13px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.event-info small,.item-info small,.history-info small{display:block;color:#9b8d80;font-size:11px;margin-top:4px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.complete-button{border:0;background:#e88f65;color:white;border-radius:12px;padding:9px 11px;white-space:nowrap;font-size:11px;font-weight:800;box-shadow:0 3px 8px #d97d532b}
.done-check{width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:#d9e9d8;color:#548566;font-weight:900}
.ghost-button{border:0;background:transparent;color:#a56a4e;font-size:12px;font-weight:750;padding:8px 2px}
.empty{padding:32px 20px;text-align:center;border:1px dashed #dfd4c7;border-radius:20px;background:#fffaf5;color:#9b8c7e;font-size:13px;line-height:1.7}.empty .emoji{font-size:31px;display:block;margin-bottom:9px}.empty strong{display:block;color:#65574d;font-size:15px;margin-bottom:3px}.empty button{border:0;background:#e88f65;color:white;padding:10px 16px;border-radius:11px;font-size:12px;font-weight:800;margin-top:11px}
.tip-card{display:flex;align-items:center;gap:13px;background:#eef1e8;border-radius:19px;padding:15px;margin-top:22px;color:#546650}.tip-card .tip-icon{font-size:24px}.tip-card strong{font-size:12px}.tip-card p{font-size:11px;margin:3px 0 0;line-height:1.45}
.pill{display:inline-flex;align-items:center;background:#f4ede6;color:#8f725c;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:800;white-space:nowrap}
.toolbar{display:flex;gap:8px;margin-bottom:14px}.primary-button{border:0;border-radius:14px;background:#e88f65;color:white;padding:13px 16px;font-size:13px;font-weight:800;box-shadow:0 6px 14px #d37b5325}.secondary-button{border:1px solid #eaded1;border-radius:14px;background:#fffdf9;color:#795c4c;padding:12px 15px;font-size:13px;font-weight:750}
.toolbar .primary-button{flex:1}.card-stack{display:flex;flex-direction:column;gap:10px}.item-card{padding:15px;align-items:flex-start}.item-symbol{margin-top:1px}.item-card .card-action{border:0;background:#f8f2eb;color:#8b6c58;border-radius:10px;padding:8px 9px;font-size:11px;font-weight:800}.item-card.paused{opacity:.55}
.item-meta{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}.item-meta .pill{background:#f9f2ea}
.history-card{align-items:flex-start}.history-date{width:54px;flex:none;text-align:center;color:#ac7460;font-size:11px;font-weight:750}.history-date strong{display:block;font-size:19px;color:#46392f;line-height:1.1;margin-bottom:3px}.history-card .card-action{border:0;background:#f7f0e9;color:#8b6b56;border-radius:10px;padding:8px 10px;font-size:11px;font-weight:700}
.setting-card{background:#fffdfa;border:1px solid #f0e9e1;border-radius:20px;padding:16px;margin-bottom:12px;box-shadow:0 4px 15px #6c4f3610}.setting-card h3{font-size:14px;margin:0 0 4px}.setting-card p{font-size:11px;color:#95877a;line-height:1.6;margin:0 0 13px}.setting-card .row{display:flex;align-items:center;justify-content:space-between;gap:12px}.setting-card .row p{margin:3px 0 0}.setting-card button{white-space:nowrap}
.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#dcbca9;margin-right:4px}.status-dot.good{background:#79a87c}
.bottom-nav{position:fixed;z-index:15;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,560px);display:grid;grid-template-columns:repeat(4,1fr);padding:10px 8px calc(10px + env(safe-area-inset-bottom));background:#fffcf7ed;backdrop-filter:blur(18px);border-top:1px solid #eee7df;box-shadow:0 -6px 30px #614a3810}
.nav-button{background:none;border:0;color:#aa9b8d;display:flex;align-items:center;flex-direction:column;gap:4px;padding:4px 0 2px;font-size:10px;font-weight:750}.nav-button.active{color:#c56c45}.nav-icon{font-size:23px;height:26px;line-height:24px;font-weight:400}.nav-button.active .nav-icon{font-weight:900}
.auth-screen{min-height:100vh;min-height:100dvh;display:flex;align-items:center;flex-direction:column;justify-content:center;padding:24px 20px calc(30px + env(safe-area-inset-bottom))}.auth-card{max-width:420px;width:100%;background:#fffdf9;border-radius:29px;padding:31px 28px;box-shadow:0 18px 60px #78563b1e;border:1px solid #f1e8de}.auth-mark{width:70px;height:70px;border-radius:23px;background:#f9dfce;display:grid;place-items:center;font-size:39px;margin-bottom:28px;transform:rotate(-7deg)}.auth-card h1{font-size:34px;letter-spacing:-1.5px;line-height:1.23;margin:0;color:#362e29}.auth-intro{font-size:13px;line-height:1.85;color:#8d7e72;margin:16px 0 26px}.auth-loading{font-size:12px;color:#a98b75}.auth-note{font-size:11px;color:#b3a395;margin-top:25px;letter-spacing:2px}.auth-form h2{font-size:15px;margin:0 0 16px}.auth-form .field{margin-bottom:13px}.auth-actions{display:flex;flex-direction:column;gap:9px;margin-top:19px}.auth-actions button{width:100%}.text-link{border:0;background:none;color:#ae6547;font-size:12px;font-weight:750;padding:8px}
.field{display:flex;flex-direction:column;gap:6px;margin:0 0 14px}.field label{font-size:11px;font-weight:800;color:#786b61}.field input,.field select,.field textarea{width:100%;padding:12px 13px;border:1px solid #e9dfd3;border-radius:12px;background:#fffdfa;color:#3d332d;outline:none;font-size:13px}.field textarea{min-height:76px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:#e2a282;box-shadow:0 0 0 3px #eaa88426}.field small{font-size:10px;color:#a29285}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form-note{font-size:11px;color:#958779;line-height:1.6;background:#f8f3ec;border-radius:11px;padding:10px;margin:3px 0 15px}
.modal{border:0;border-radius:24px 24px 0 0;box-shadow:0 0 0 100vmax #21170f75,0 -20px 60px #21170f20;background:#fffdf9;padding:0;position:fixed;top:auto;bottom:0;left:0;width:min(100%,560px);max-width:560px;max-height:90dvh;overflow:auto;margin:0 auto;color:#382f29}.modal::backdrop{background:#21170f75}.modal-body{padding:21px 22px calc(24px + env(safe-area-inset-bottom))}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.modal-head h2{font-size:19px;margin:0}.modal-close{border:0;background:#f5eee6;border-radius:10px;width:32px;height:32px;color:#8b7767;font-size:19px}.modal-actions{display:flex;gap:9px;margin-top:20px}.modal-actions button{flex:1}.slot-line{display:flex;gap:8px;margin-bottom:7px}.slot-line input{flex:1}.slot-line button{width:36px;border:0;border-radius:10px;background:#f6e9e0;color:#ac7458}.add-slot{border:0;background:#f6eee5;color:#a0664b;border-radius:10px;font-size:11px;font-weight:800;padding:9px 12px}.choice-row{display:flex;gap:7px;flex-wrap:wrap}.choice{border:1px solid #e7ded4;background:#fffaf5;color:#907e70;border-radius:12px;padding:9px 11px;font-size:11px;font-weight:800}.choice.active{border-color:#e4a582;background:#fff0e4;color:#9f583d}.code-box{font-size:17px;font-weight:850;letter-spacing:1px;word-break:break-all;padding:16px;background:#f6eee5;border-radius:13px;margin:11px 0;text-align:center}.help-text{font-size:11px;line-height:1.7;color:#8f8175}.notice{padding:10px 12px;border-radius:12px;background:#fff2e5;color:#905e46;font-size:11px;line-height:1.6;margin-bottom:12px}.offline-banner{background:#fff0d9;color:#9e6739;padding:9px 13px;border-radius:11px;font-size:11px;line-height:1.5;margin:0 0 13px}
.toast{position:fixed;z-index:100;left:50%;bottom:calc(93px + env(safe-area-inset-bottom));transform:translate(-50%,12px);max-width:calc(100vw - 40px);min-width:120px;background:#342d28;color:#fff;border-radius:13px;padding:10px 15px;box-shadow:0 9px 22px #241b1640;text-align:center;font-size:12px;opacity:0;pointer-events:none;transition:.22s ease}.toast.visible{opacity:1;transform:translate(-50%,0)}
@media(min-width:700px){.app-shell{margin:25px auto;min-height:calc(100vh - 50px);border-radius:30px;box-shadow:0 20px 60px #6d503628;border:1px solid #f0e7dd;overflow:hidden}.bottom-nav{bottom:25px;border-radius:0 0 30px 30px}.modal{bottom:20px;border-radius:24px;max-height:80vh}.auth-screen{min-height:100vh}}
