:root{color-scheme:light;--page:#f4f7fc;--surface:#fff;--ink:#192b43;--muted:#52647a;--line:#dce4ee;--accent:#2563eb;--accent-wash:#e9f0ff;--teal:#087f8c;--danger:#b4233b;--radius:14px;--shadow:0 10px 36px #152f5514;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;font-size:15px;line-height:1.65}
*{box-sizing:border-box}body{margin:0;background:var(--page);color:var(--ink)}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;min-height:44px;border:0;border-radius:10px;padding:9px 16px;background:var(--accent);color:#fff;font-weight:600;transition:background .15s,transform .15s}button:hover{background:#1d4ed8}button:active{transform:translateY(1px)}button:disabled{opacity:.55;cursor:wait}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}:focus-visible{outline:3px solid #0891b2;outline-offset:3px}input,textarea,select{width:100%;border:1px solid #b8c7da;border-radius:9px;padding:10px 12px;background:var(--surface);color:var(--ink);min-height:46px}textarea{resize:vertical;min-height:150px;line-height:1.8}input::placeholder,textarea::placeholder{color:#65778d}label{display:block;margin:16px 0 6px;font-size:.9rem;font-weight:600}form>:first-child{margin-top:0}h1,h2,h3,p{margin:0}h1{font-size:1.8rem;font-weight:650;line-height:1.35;letter-spacing:-.025em;text-wrap:balance}h2{font-size:1.05rem;line-height:1.5;font-weight:650}h3{font-size:1rem}small{font-size:.8rem}.app{max-width:1120px;margin:auto;padding:0 30px 80px}.masthead{display:flex;align-items:center;justify-content:space-between;height:82px}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);font-size:1.2rem;font-weight:650}.brand:hover{text-decoration:none}.brand small{margin-left:5px;color:var(--muted);font-size:.85rem;font-weight:400}.connection{font-size:.82rem;color:var(--muted);min-height:30px;display:flex;align-items:center;gap:7px}.connection::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--teal);flex-shrink:0}.connection.offline::before{background:#a36100}main{padding-top:12px}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:10px 0 25px}.page-head p{color:var(--muted);margin-top:8px}.date-label{color:var(--teal);font-size:.86rem;margin-bottom:6px}.today-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(290px,.85fr);gap:22px;align-items:start}.column{display:grid;gap:22px;min-width:0}.surface{background:var(--surface);border-radius:var(--radius);padding:22px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}.section-head small{color:var(--muted);font-weight:400}.text-button{background:transparent;color:var(--accent);padding:4px 9px;font-size:.86rem;font-weight:500}.text-button:hover{background:var(--accent-wash)}.secondary{background:#e9eef6;color:var(--ink)}.secondary:hover{background:#dce6f3}.muted{color:var(--muted);font-size:.88rem}.empty{padding:20px 0;color:var(--muted);font-size:.92rem}.task-list{display:grid;gap:0}.task-row{display:flex;align-items:flex-start;gap:12px;padding:14px 0;border-top:1px solid var(--line)}.task-row:first-child{border-top:0;padding-top:0}.task-row:last-child{padding-bottom:0}.task-check{width:24px;height:24px;min-height:24px;flex-shrink:0;margin-top:2px;border:1.5px solid #9aaec7;border-radius:7px;background:transparent;padding:0;color:var(--accent);font-size:17px}.task-check:hover{background:var(--accent-wash)}.task-check.done{background:var(--accent);border-color:var(--accent);color:white}.task-text{flex:1;min-width:0;overflow-wrap:anywhere}.task-title{line-height:1.65}.task-meta{font-size:.78rem;color:var(--muted);margin-top:3px}.task-text.done .task-title{text-decoration:line-through;color:var(--muted)}.task-edit{margin:-4px -8px 0 0;min-height:36px}.prose{font-size:.94rem;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.prose p+p{margin-top:12px}.prose h3{margin:18px 0 8px}.suggestions{background:#edf4ff}.suggestions .section-head{color:#204d89}.reply-form{margin-top:18px}.reply-form textarea{min-height:90px;background:#ffffffb8}.form-actions{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:16px}.form-actions .muted{max-width:70%}.metrics{display:grid;grid-template-columns:1fr 1fr;gap:18px 22px}.metric .name{font-size:.8rem;color:var(--muted);margin-bottom:3px}.metric .value{font-size:1.4rem;line-height:1.4;font-weight:600;font-variant-numeric:tabular-nums}.metric .value small{font-size:.8rem;font-weight:400;margin-left:3px}.metric .stamp{font-size:.74rem;color:var(--muted);margin-top:3px}.metric-note{font-size:.78rem;color:var(--muted);margin-top:18px;line-height:1.8}.mini-stats{display:flex;gap:20px;flex-wrap:wrap;padding-top:15px;margin-top:18px;border-top:1px solid var(--line);font-size:.84rem;color:var(--muted)}.mini-stats strong{color:var(--ink);font-weight:600;margin-right:4px}.navigation{display:flex;gap:8px;margin:22px 0;position:sticky;bottom:12px;background:#fff;border-radius:14px;padding:6px;box-shadow:var(--shadow);width:max-content;max-width:100%;margin-left:auto;margin-right:auto}.navigation button{display:flex;align-items:center;gap:8px;background:transparent;color:var(--muted);font-weight:500;min-width:140px;justify-content:center}.navigation button span{font-size:1.3rem;line-height:1}.navigation button[aria-current=page]{background:var(--accent-wash);color:var(--accent)}.navigation button:hover{background:#f1f5fb}.capture-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(270px,.8fr);gap:22px}.inline-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.capture-editor{min-height:260px}.job{padding:13px 0;border-bottom:1px solid var(--line)}.job:last-child{border-bottom:0}.job-text{font-size:.9rem;white-space:pre-wrap;overflow-wrap:anywhere;max-height:7em;overflow:auto}.job-state{font-size:.78rem;color:var(--teal);margin-top:7px}.job-state.error{color:var(--danger)}.pending{background:#fff5dc;padding:12px 15px;border-radius:10px;margin:0 0 18px;font-size:.87rem;color:#73500c}.pending button{color:#73500c}.login{max-width:440px;margin:65px auto 0}.login h1{font-size:2rem;line-height:1.5;max-width:13ch}.login .intro{margin:18px 0 30px;color:var(--muted)}.login form{padding:25px;background:var(--surface);border-radius:var(--radius)}.login button{width:100%;margin-top:18px}.login-note{font-size:.78rem;margin-top:18px;color:var(--muted)}.feedback{position:fixed;left:50%;bottom:100px;transform:translateX(-50%);background:#20334d;color:white;padding:12px 20px;border-radius:10px;box-shadow:var(--shadow);max-width:min(90vw,500px);z-index:10;font-size:.9rem}.feedback.error{background:#8c253b}dialog{border:0;border-radius:16px;box-shadow:0 16px 60px #102b4c3d;padding:26px;max-width:520px;width:calc(100% - 32px);color:var(--ink);background:var(--surface)}dialog::backdrop{background:#142f4c66}dialog>form{margin-top:24px;text-align:right}dialog h2{font-size:1.2rem;margin-bottom:14px}dialog p{margin-top:12px}.account-actions{display:grid;gap:10px;margin-top:18px}.share-url{display:block;overflow-wrap:anywhere;user-select:all;background:var(--page);border-radius:9px;padding:12px;margin-top:14px;font-size:.85rem}.shared-compose{max-width:680px;margin-bottom:22px}.shared-toolbar{display:flex;gap:10px;margin-bottom:18px}.readonly-note{margin-bottom:20px}.record-editor{margin-top:18px}.record-fields{display:flex;gap:8px}.record-fields select{flex:1}.record-fields input{width:90px}.health-sharing{margin-top:18px}
@media(min-width:760px){.navigation{position:static;margin-top:32px}.page-head h1{max-width:22ch}.surface.wide{grid-column:1/-1}}
@media(max-width:759px){.app{padding:0 18px 95px}.masthead{height:70px}.brand{font-size:1.1rem}.brand img{width:32px;height:32px}.connection{font-size:.76rem}main{padding-top:7px}.page-head{margin:12px 0 22px;gap:10px}.page-head p{font-size:.88rem}h1{font-size:1.55rem}.today-grid,.capture-layout{grid-template-columns:1fr;gap:16px}.column{gap:16px}.surface{padding:20px}.navigation{position:fixed;left:12px;right:12px;bottom:max(10px,env(safe-area-inset-bottom));width:auto;margin:0;z-index:5;justify-content:space-between;padding:5px}.navigation button{min-width:0;flex:1;flex-direction:column;gap:1px;font-size:.73rem;padding:5px 9px;min-height:54px}.navigation button span{font-size:1.35rem}.metrics{gap:18px 28px}.login{margin-top:35px}.login h1{font-size:1.85rem}.login form{padding:22px}.capture-editor{min-height:210px}.feedback{bottom:92px}.inline-fields{gap:12px}.form-actions .muted{font-size:.76rem}.metric .value{font-size:1.35rem}}
@media(prefers-color-scheme:dark){:root{color-scheme:dark;--page:#111c2b;--surface:#1b2a3e;--ink:#e5edf9;--muted:#aabbd0;--line:#354960;--accent:#8fb8ff;--accent-wash:#243d61;--teal:#75d6d0;--danger:#ffb0c0}button{background:#3a75d9;color:#fff}button:hover{background:#4c88eb}input,textarea,select{border-color:#526a86}input::placeholder,textarea::placeholder{color:#a1b2c9}.secondary{background:#344960;color:var(--ink)}.secondary:hover{background:#415b78}.text-button{background:transparent;color:var(--accent)}.text-button:hover{background:var(--accent-wash)}.navigation{background:var(--surface)}.navigation button:hover{background:#243d61}.suggestions{background:#20344f}.suggestions .section-head{color:#acd0ff}.reply-form textarea{background:var(--surface)}.pending{background:#443719;color:#f0d49c}.pending button{color:#f0d49c}.task-check.done{background:#3a75d9;border-color:#3a75d9}.feedback{background:#dce9fa;color:#172940}.feedback.error{background:#7e2438;color:#fff}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
[hidden]{display:none!important}
.phone-usage{margin-bottom:20px}.phone-usage summary{display:flex;justify-content:space-between;align-items:center;gap:12px;cursor:pointer;min-height:32px;font-weight:600}.phone-usage summary .muted{font-size:.78rem;font-weight:400}.phone-usage p{margin-top:14px}.usage-app{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line);gap:12px;font-size:.87rem}.usage-apps{margin:12px 0}.checkin-form label,.habit-form label{margin-top:14px}.checkin-form h2,.habit-form h2{margin-bottom:12px}.checkin-form>p,.habit-form>p{font-size:.86rem}.checkin-fields:empty{display:none}.habit-field{border:1px solid var(--line);border-radius:10px;padding:12px 16px;margin:18px 0}.habit-field legend{padding:0 7px;font-size:.8rem;color:var(--muted)}.habit-form>.secondary{margin-top:16px}dialog{max-height:calc(100dvh - 40px);overflow:auto}button,input,select{min-height:44px}
@media(max-width:759px){.phone-usage{padding:15px 18px}.phone-usage summary{align-items:flex-start;flex-direction:column;gap:4px}.navigation button{padding:5px 4px}}
.shared-toolbar button[aria-pressed=true]{background:var(--accent-wash);font-weight:600}.empty{padding:10px 0}
svg{width:22px;height:22px;flex-shrink:0}.navigation button>span{font-size:.78rem}.navigation button>svg{width:23px;height:23px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;padding:9px;background:transparent;color:var(--ink)}.icon-button:hover{background:var(--accent-wash);color:var(--accent)}#account{width:44px;padding:9px;display:flex;align-items:center;justify-content:center}.view-header{display:flex;gap:9px;align-items:center;margin:10px 0 24px;min-height:48px}.view-header h1{flex:1;font-size:1.5rem;margin:0}.view-header>.icon-button:first-child{margin-left:-12px}.view-header>h1:first-child{margin-right:auto}.view-header>button:last-child{margin-left:auto}.space-people{display:flex;gap:36px;align-items:center;justify-content:center;padding:0 0 26px}.space-people>div{display:flex;flex-direction:column;align-items:center;gap:10px;font-size:.9rem}.person-avatar{display:inline-flex;width:54px;height:54px;border-radius:50%;align-items:center;justify-content:center;background:var(--accent-wash);color:var(--accent);font-size:1.15rem;font-weight:600;flex-shrink:0}.person-avatar.tone-1{background:color-mix(in srgb,var(--teal) 13%,var(--surface));color:var(--teal)}.shared-hub{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}.shared-module{background:var(--surface);border-radius:var(--radius);padding:16px 22px 22px}.module-head{display:flex;align-items:center;gap:8px;text-align:left;min-height:48px;width:100%;padding:4px 0;background:transparent;color:var(--ink)}.module-head:hover{background:transparent;color:var(--accent)}.module-head h2{flex:1;font-size:1.05rem;font-weight:600}.module-head .muted{font-size:.78rem}.module-head svg{width:18px;height:18px;color:var(--muted)}.shared-preview-row{display:flex;align-items:center;gap:12px;background:transparent;color:var(--ink);text-align:left;width:100%;padding:15px 0;border-bottom:1px solid var(--line);font-size:.9rem}.shared-preview-row:hover{color:var(--accent);background:transparent}.shared-preview-row>span:nth-child(2){flex:1}.preview-check{width:18px;height:18px;flex-shrink:0;border:1.5px solid var(--muted);border-radius:5px}.module-empty{background:transparent;color:var(--accent);display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:120px}.featured-habit{display:flex;align-items:center;justify-content:space-between;width:100%;padding:8px 0;background:transparent;color:var(--muted);font-size:.85rem}.featured-habit svg{width:16px;height:16px}.habit-people{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px 0 0}.habit-person{display:flex;flex-direction:column;align-items:center;gap:8px;padding:4px 5px}.habit-person>strong{font-size:.9rem;font-weight:500}.habit-person>small{font-size:.75rem}.person-count{font-size:1.5rem;font-weight:600;font-variant-numeric:tabular-nums}.person-count small{font-size:.75rem;font-weight:400;color:var(--muted)}.person-check{padding:6px 20px;min-height:38px;font-size:.83rem}.invite-person{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:transparent;color:var(--accent);font-size:.83rem}.invite-avatar{border:1px dashed var(--line);background:transparent}.habit-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px}.habit-project .habit-people{padding-top:14px}.habit-overview{max-width:500px;margin:0 auto 28px}.habit-overview .habit-people{padding:0}.month-panel{background:var(--surface);border-radius:var(--radius);padding:12px 14px 18px;margin-bottom:26px}.month-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.month-head h2{font-size:1rem}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.weekday{text-align:center;padding:10px 0;color:var(--muted);font-size:.78rem}.calendar-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;height:52px;padding:6px 0;background:transparent;color:var(--ink);font-size:.9rem;border-radius:9px;font-weight:400}.calendar-day:hover{background:var(--accent-wash);color:var(--accent)}.calendar-day.selected{background:var(--accent);color:var(--surface)}.calendar-day.today:not(.selected){color:var(--accent);font-weight:650}.calendar-day:disabled{opacity:.35}.day-dots{height:5px;display:flex;gap:4px}.day-dots i{width:4px;height:4px;border-radius:50%;background:transparent}.day-dots i.has-record.tone-0{background:var(--accent)}.day-dots i.has-record.tone-1{background:var(--teal)}.calendar-day.selected .day-dots i.has-record{background:currentColor}.day-records{padding:0 3px}.day-records>.section-head{margin-bottom:7px}.record-line{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:transparent;color:var(--ink);padding:17px 0;border-bottom:1px solid var(--line);border-radius:0}.record-line:hover{background:transparent;color:var(--accent)}.record-line>.person-avatar{width:36px;height:36px;font-size:.85rem}.record-line>div{flex:1;min-width:0}.record-line strong{font-size:.9rem;font-weight:500}.record-line .muted{font-size:.78rem;margin-left:10px}.record-line p{font-size:.82rem;margin-top:6px;line-height:1.6}.record-line .record-note{max-height:3.2em;overflow:hidden;white-space:pre-wrap}.record-line>svg{width:17px;height:17px;color:var(--muted)}.record-owner{display:flex;align-items:center;gap:10px;font-size:.9rem;margin:18px 0}.record-owner .person-avatar{width:36px;height:36px;font-size:.85rem}.record-owner>.muted{margin-left:auto;font-size:.8rem}.record-detail dl{display:grid;grid-template-columns:auto 1fr;gap:14px 20px;margin:25px 0;font-size:.9rem}.record-detail dt{color:var(--muted)}.record-detail dd{margin:0}.record-detail-note{white-space:pre-wrap;overflow-wrap:anywhere;margin:22px 0}.record-detail>button{width:100%;margin-top:12px}.settings-profile{display:flex;align-items:center;gap:18px;margin:5px 0 26px}.settings-group{background:var(--surface);border-radius:var(--radius);padding:0 20px}.settings-row{display:flex;align-items:center;gap:8px;text-align:left;background:transparent;color:var(--ink);width:100%;padding:21px 0;border-bottom:1px solid var(--line);border-radius:0;font-weight:400}.settings-row:last-child{border-bottom:0}.settings-row:hover{background:transparent;color:var(--accent)}.settings-row>span{flex:1}.settings-row small{max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.settings-row svg{width:17px;height:17px;color:var(--muted)}.settings-version{display:block;text-align:center;color:var(--muted);margin:30px 0}.checkin-form .inline-fields label{margin-top:14px}.checkin-form .form-actions{margin-top:22px}button:disabled:hover{color:inherit}
@media(max-width:759px){.shared-hub{grid-template-columns:1fr;gap:20px}.view-header{margin:9px 0 24px}.view-header h1{font-size:1.45rem}.shared-module{padding:14px 20px 20px}.habit-list{grid-template-columns:1fr}.navigation button>span{font-size:.73rem}.navigation button>svg{width:22px;height:22px}.month-grid{gap:3px}.month-panel{padding:10px 10px 16px}.settings-row{padding:20px 0}.habit-overview{margin-bottom:22px}}
.space-people{gap:6px;padding:0;margin-left:auto}.space-people .person-avatar{width:32px;height:32px;font-size:.8rem}.module-empty{min-height:76px}.person-check{min-height:44px}.month-title{display:flex;align-items:center;justify-content:center;gap:8px;background:transparent;color:var(--ink);font-size:.95rem;padding:8px}.month-title:hover{background:var(--accent-wash);color:var(--accent)}.month-title svg{width:17px;height:17px;color:var(--muted)}
.archived-habits{margin-top:26px;color:var(--muted);font-size:.85rem}.archived-habits summary{padding:12px 0;cursor:pointer}.archived-habits .settings-row{color:var(--muted)}
.device-list{margin:22px 0}.device-list .device-name{min-width:0;overflow-wrap:anywhere}.device-list .settings-row{padding:8px 0}
