:root{--page: #eceef1;--paper: #fff;--surface: #f5f6f8;--ink: #1b1d21;--ink-2: #4a4f57;--muted: #8a9099;--line: #e7e9ec;--gold: #a8761a;--gold-soft: #f8f0de;--red: #d2453a;--red-soft: #fceeec;--green: #1e8e5e;--num: -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;--text: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;color-scheme:light dark}@media(prefers-color-scheme:dark){:root{--page: #0e0f11;--paper: #17191c;--surface: #202328;--ink: #f1f2f4;--ink-2: #c3c7cd;--muted: #868c95;--line: #2a2d32;--gold: #d9a845;--gold-soft: #2b2414;--red: #f0675b;--red-soft: #33201e;--green: #3dbb83}}*{box-sizing:border-box;margin:0;padding:0}html,body{background:var(--page);color:var(--ink);font-family:var(--text);-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit;color:inherit}button{background:none;border:0;cursor:pointer}button:disabled{opacity:.5;cursor:default}:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:8px}.n{font-family:var(--num);font-variant-numeric:tabular-nums;letter-spacing:-.01em}.unit{font-size:.5em;font-weight:500;color:var(--muted);margin-left:3px}.app{max-width:480px;margin:0 auto;min-height:100dvh;background:var(--paper);display:flex;flex-direction:column}.scroll{flex:1;padding:20px 20px 24px}.title-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.title-row h1{font-size:26px;font-weight:700}.chip{font-size:12px;padding:5px 10px;border-radius:999px;background:var(--surface);color:var(--ink-2)}.tabbar{position:sticky;bottom:0;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);background:var(--paper);padding:8px 6px calc(10px + env(safe-area-inset-bottom))}.tab{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px;color:var(--muted);min-height:44px}.tab svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.tab.on{color:var(--ink);font-weight:600}.tab.on svg{stroke:var(--gold)}.tab{position:relative}.tab .dot{position:absolute;top:2px;left:calc(50% + 10px);width:7px;height:7px;border-radius:50%;background:var(--red)}.bal{display:flex;align-items:baseline;justify-content:space-between;padding:14px 16px;border-radius:14px;background:var(--surface)}.bal .k{font-size:13px;color:var(--muted)}.bal .v{font-size:20px;font-weight:600}.msg{margin:18px 0 12px 48px;background:var(--ink);color:var(--paper);padding:12px 14px;border-radius:18px 18px 4px;font-size:15px;line-height:1.55;white-space:pre-wrap}.ai-note{font-size:12px;color:var(--muted);margin:0 0 10px 2px;display:flex;align-items:center;gap:6px}.ai-note b{width:6px;height:6px;border-radius:50%;background:var(--gold)}.card{border:1px solid var(--line);border-radius:20px;padding:6px 16px;margin-bottom:10px}.line{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px;color:var(--ink-2)}.line:last-child{border-bottom:0}.line .who{font-size:12px;color:var(--muted);margin-top:2px}.line input{width:84px;text-align:right;padding:6px 8px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font-family:var(--num);font-weight:600;font-size:15px}.line .x{width:28px;height:28px;border-radius:50%;color:var(--muted);font-size:18px}.plus{color:var(--gold)}.missing{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 10px}.missing span{font-size:13px;padding:6px 12px;border-radius:999px;border:1px dashed var(--red);color:var(--red);background:var(--red-soft)}.warn{font-size:13px;color:var(--red);background:var(--red-soft);padding:10px 12px;border-radius:10px;margin-bottom:10px;line-height:1.5}.ok{font-size:13px;color:var(--green);padding:10px 2px}.empty{text-align:center;color:var(--muted);font-size:14px;line-height:1.7;padding:32px 12px}.compose{position:sticky;bottom:0;padding:10px 16px 12px;border-top:1px solid var(--line);background:var(--paper)}.confirm{width:100%;height:48px;border-radius:14px;background:var(--ink);color:var(--paper);font-size:15px;font-weight:600;display:flex;justify-content:center;align-items:center;gap:8px}.confirm .n{font-weight:500;opacity:.7;font-size:13px}.inputbar{margin-top:10px;display:flex;gap:8px;align-items:flex-end}.inputbar textarea{flex:1;min-height:44px;max-height:140px;resize:none;border-radius:22px;background:var(--surface);border:0;padding:11px 16px;font-size:16px;line-height:1.4}.send{height:44px;padding:0 18px;border-radius:22px;background:var(--ink);color:var(--paper);font-weight:600}.hero .k{font-size:14px;color:var(--muted)}.hero .big{font-size:52px;font-weight:700;line-height:1.05;margin-top:4px;letter-spacing:-.03em}.people{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.people>div{background:var(--surface);border-radius:14px;padding:12px 14px}.people .k{font-size:12px;color:var(--muted)}.people .v{font-size:17px;font-weight:600;margin-top:3px}.alert{margin-top:14px;border:1px solid var(--red);background:var(--red-soft);border-radius:14px;padding:12px 14px;font-size:13px;line-height:1.6;color:var(--ink-2)}.alert b{color:var(--red)}button.alert{width:100%;text-align:left}.alert u{color:var(--ink);text-underline-offset:3px;margin-left:4px}.compare{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:16px;overflow:hidden}.compare>div{padding:12px 12px 10px}.compare>div+div{border-left:1px solid var(--line)}.compare .k{font-size:12px;color:var(--muted)}.compare .v{font-size:19px;font-weight:700;margin-top:2px}.compare .s{font-size:11px;color:var(--muted);margin-top:2px;min-height:14px}.compare .ne{background:var(--red-soft)}.compare .ne .v{color:var(--red)}.compare .eq .v{color:var(--green)}.gap{margin-top:12px;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;border:1px dashed var(--red);border-radius:14px;padding:12px 14px}.gap .t{font-size:14px;font-weight:600}.gap .d{font-size:13px;color:var(--ink-2);margin-top:4px;line-height:1.55}.mini{height:36px;padding:0 14px;border-radius:10px;background:var(--ink);color:var(--paper);font-size:13px;font-weight:600}.seg{margin-top:18px;display:inline-flex;background:var(--surface);border-radius:10px;padding:3px}.seg button{padding:7px 14px;border-radius:8px;font-size:13px;color:var(--ink-2)}.seg button.on{background:var(--paper);color:var(--ink);font-weight:600;box-shadow:0 1px 2px #00000014}.tag{font-size:11px;margin-left:8px;padding:2px 7px;border-radius:6px;background:var(--surface);color:var(--muted);font-weight:500}.tag.pending{background:var(--red-soft);color:var(--red)}.tag.claimed{background:var(--gold-soft);color:var(--gold)}.part{display:grid;grid-template-columns:1fr 92px 32px;gap:8px;margin-bottom:8px}.part input{height:42px;border-radius:10px;border:1px solid var(--line);background:var(--paper);padding:0 12px;font-size:16px;min-width:0}.part input.n{text-align:right;font-weight:600}.part .x{color:var(--muted);font-size:20px}.add{color:var(--gold);font-size:14px;padding:6px 0}.left{font-size:13px;color:var(--red);margin:8px 0 12px}.left.eq{color:var(--green)}.search{width:100%;margin-top:16px;height:42px;border-radius:12px;background:var(--surface);border:0;padding:0 14px;font-size:16px}.day{font-size:12px;color:var(--muted);margin:18px 0 4px}.flow{width:100%;text-align:left;display:grid;grid-template-columns:34px 1fr auto;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line)}.ic{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font-size:13px;font-weight:600;background:var(--surface);color:var(--ink-2)}.ic.in{background:var(--gold-soft);color:var(--gold)}.flow .t{font-size:14px}.flow .d{font-size:12px;color:var(--muted);margin-top:2px}.flow .n{font-size:15px;font-weight:600}.flow .n.pos{color:var(--gold)}.flow.dead .t,.flow.dead .n{text-decoration:line-through;color:var(--muted)}.ghost{width:100%;height:46px;border-radius:14px;border:1px solid var(--line);margin-top:18px;font-size:14px;font-weight:500}.sheet-bg{position:fixed;inset:0;background:#00000059;display:flex;align-items:flex-end;justify-content:center;z-index:10}.sheet{width:100%;max-width:480px;background:var(--paper);border-radius:22px 22px 0 0;padding:20px 20px calc(20px + env(safe-area-inset-bottom))}.sheet h2{font-size:20px;margin-bottom:12px}.src{margin-top:10px;padding:10px 12px;border-radius:10px;background:var(--surface);font-size:13px;color:var(--ink-2);line-height:1.55}.q{font-size:15px;font-weight:600;margin:18px 0 10px}.reasons{display:flex;flex-wrap:wrap;gap:8px}.reasons button{padding:9px 14px;border-radius:999px;border:1px solid var(--line);font-size:14px;min-height:40px}.reasons button.on{border-color:var(--ink);background:var(--ink);color:var(--paper)}.hint{font-size:13px;color:var(--ink-2);margin-top:14px;line-height:1.6}.entry{width:100%;margin-top:14px;display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:14px 14px 14px 16px;border-radius:14px;background:var(--surface);text-align:left;font-size:15px;font-weight:600}.entry .m{font-size:13px;font-weight:400;color:var(--muted);text-align:right}.entry .m b{color:var(--red);font-weight:600}.entry svg,.back svg{width:18px;height:18px;stroke:var(--muted);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.back{display:inline-flex;align-items:center;gap:2px;font-size:14px;color:var(--ink-2);margin:-4px 0 10px -4px;min-height:36px}.drop{display:grid;gap:6px;place-items:center;text-align:center;padding:26px 18px;border:1.5px dashed var(--line);border-radius:18px;cursor:pointer;transition:border-color .2s,background .2s}.drop:hover{border-color:var(--gold);background:var(--gold-soft)}.drop.busy{cursor:progress;opacity:.7}.drop input{position:absolute;width:1px;height:1px;opacity:0}.drop:focus-within{outline:2px solid var(--gold);outline-offset:2px}.drop b{font-size:16px}.drop span{font-size:13px;color:var(--muted);line-height:1.6;max-width:300px}.files{margin-top:12px;display:grid;gap:6px}.file{display:flex;align-items:center;gap:4px;font-size:13px}.file .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink-2)}.preview{margin-top:14px;border:1px solid var(--line);border-radius:18px;padding:16px}.pv{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px}.pv .n{font-weight:600}.preview .warn{margin:10px 0 0}.after{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.after>div{background:var(--surface);border-radius:12px;padding:10px 12px}.after .k{font-size:12px;color:var(--muted)}.after .v{font-size:18px;font-weight:700;margin-top:2px}.h2{font-size:20px;font-weight:700}.todo{width:100%;text-align:left;display:grid;grid-template-columns:30px 1fr;gap:12px;align-items:start;padding:12px 0;border-bottom:1px solid var(--line)}.todo .code{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:var(--surface);font-size:13px;font-weight:600;color:var(--ink-2)}.todo .t{font-size:14px;line-height:1.45}.todo .d{font-size:12px;color:var(--muted);margin-top:3px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.answer{width:100%;border-radius:12px;border:1px solid var(--line);background:var(--paper);padding:10px 12px;font-size:16px;line-height:1.5;resize:vertical}.sheet .d{font-size:13px;color:var(--muted)}.login{min-height:100dvh;display:grid;place-items:center;padding:24px}.login form{width:100%;max-width:340px;display:grid;gap:12px}.login h1{font-size:28px;font-weight:700;margin-bottom:4px}.login h1 i{display:inline-block;width:12px;height:12px;border-radius:3px;background:var(--gold);margin-right:10px}.login p{color:var(--muted);font-size:14px;margin-bottom:12px}.login input{height:48px;border-radius:12px;border:1px solid var(--line);background:var(--paper);padding:0 14px;font-size:16px}@media(prefers-reduced-motion:no-preference){.card,.msg,.ai-note{animation:rise .4s cubic-bezier(.2,.7,.2,1) both}.sheet{animation:up .25s cubic-bezier(.2,.7,.2,1) both}@keyframes rise{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes up{0%{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}}.neg{color:var(--red)!important}.muted{color:var(--muted)}.link{color:var(--gold);font-size:14px;font-weight:500;padding:6px 0;margin-left:8px}.hero .sub{font-size:13px;color:var(--ink-2);margin-top:8px;line-height:1.55}.hero .sub b{color:var(--ink)}.loading{display:flex;gap:6px;justify-content:center;padding:48px 0}.loading i{width:8px;height:8px;border-radius:50%;background:var(--line)}@media(prefers-reduced-motion:no-preference){.loading i{animation:blink 1s infinite ease-in-out}.loading i:nth-child(2){animation-delay:.15s}.loading i:nth-child(3){animation-delay:.3s}@keyframes blink{0%,to{background:var(--line)}50%{background:var(--muted)}}}.tr{display:inline-flex;align-items:center;gap:6px}.gear{width:36px;height:36px;display:grid;place-items:center;border-radius:10px}.gear svg{width:20px;height:20px;stroke:var(--ink-2);fill:none;stroke-width:1.7;stroke-linecap:round}.people>button{text-align:left;background:var(--surface);border-radius:14px;padding:12px 14px;transition:background .15s}.people>button:hover{background:var(--gold-soft)}.people>button .k{font-size:12px;color:var(--muted)}.people>button .v{font-size:17px;font-weight:600;margin-top:3px}.entry .m b{color:var(--red)}.sheet.tall{max-height:88dvh;overflow-y:auto}.sheet-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.sheet-h h2{margin-bottom:0}.sheet-h .x{width:36px;height:36px;font-size:22px;color:var(--muted);border-radius:50%}.dotsep{font-style:normal;color:var(--muted);margin:0 6px}.field{display:grid;grid-template-columns:84px 1fr auto;gap:10px;align-items:center;padding:6px 0;font-size:14px;color:var(--ink-2)}.field input,.field select{height:42px;min-width:0;border-radius:10px;border:1px solid var(--line);background:var(--paper);padding:0 12px;font-size:16px;color:var(--ink)}.field em{font-style:normal;font-size:13px;color:var(--muted)}.field.pickorder{grid-template-columns:84px 1fr;margin-top:6px}.steps{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin-top:12px}.steps div{height:4px;border-radius:2px;background:var(--line)}.steps div.done{background:var(--ink)}.steps div.now{background:var(--red)}.step-l{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin-top:6px;font-size:11px;color:var(--muted)}.step-l span.now{color:var(--red);font-weight:600}.order{width:100%;text-align:left;display:block;padding:14px 16px;margin-top:10px;border:1px solid var(--line);border-radius:18px;transition:border-color .15s,background .15s}.order:hover{border-color:var(--ink-2)}.order.gap{border-color:var(--red);background:var(--red-soft)}.order .h{display:flex;justify-content:space-between;gap:10px;font-size:15px;font-weight:600}.order .h i{font-style:normal;color:var(--muted);margin:0 6px}.order .h .n{font-size:15px}.order .d{font-size:12px;color:var(--muted);margin-top:4px}.kv{margin-top:14px;border-top:1px solid var(--line)}.kv div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);font-size:14px}.kv span{color:var(--muted)}.kv b{font-weight:600;text-align:right}.kv em{font-style:normal}.acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.acts button{height:40px;padding:0 16px;border-radius:12px;border:1px solid var(--line);font-size:14px;font-weight:500}.acts button.pri{background:var(--ink);color:var(--paper);border-color:var(--ink)}.acts button.danger{color:var(--red);border-color:transparent;margin-left:auto}.act{margin-top:14px;padding:14px;border-radius:16px;background:var(--surface)}.act .field input{background:var(--paper)}.row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.confirm.red{background:var(--red)}.flow.static{cursor:default}.mini.ghosty{background:transparent;color:var(--ink);border:1px solid var(--line)}.gold{margin-top:14px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.gold>div{background:var(--surface);border-radius:14px;padding:12px 14px}.gold .k{font-size:12px;color:var(--muted)}.gold .v{font-size:18px;font-weight:700;margin-top:3px}.gold .v small{font-size:11px;font-weight:400;color:var(--muted)}.gold .s{font-size:12px;color:var(--ink-2);margin-top:3px}.gold .split{grid-column:1 / -1;background:none;padding:0 2px;font-size:12px;color:var(--muted);font-family:var(--num)}.transit{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.transit .t{font-size:14px}.transit .d{font-size:12px;color:var(--muted);margin-top:2px}.transit .n{font-weight:600}.remind{width:100%;text-align:left;margin-bottom:14px;padding:11px 14px;border-radius:12px;background:var(--red-soft);color:var(--ink-2);font-size:13px;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.remind b{color:var(--red);margin-right:2px}.rm{width:100%;text-align:left;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px;line-height:1.5}.rm:disabled{opacity:1;cursor:default}.rm.gap span,.rm.due span{color:var(--red)}.rm svg{width:16px;height:16px;flex:none;stroke:var(--muted);fill:none;stroke-width:2}.person{width:100%;text-align:left;display:grid;grid-template-columns:40px 1fr 18px;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.person .t{font-size:15px;font-weight:600}.person .d{font-size:12px;color:var(--muted);margin-top:3px}.person svg{width:18px;height:18px;stroke:var(--muted);fill:none;stroke-width:2}.av{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--surface);font-weight:700;color:var(--ink-2)}.av.big{width:56px;height:56px;border-radius:16px;font-size:22px;background:var(--gold-soft);color:var(--gold)}.who{display:grid;grid-template-columns:56px 1fr auto;gap:14px;align-items:center;margin-bottom:16px}.who h1{font-size:24px}.who .d{font-size:13px;color:var(--muted);margin-top:2px}.two{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.two>div{border:1px solid var(--line);border-radius:16px;padding:14px}.two>div.owe{border-color:var(--red);background:var(--red-soft)}.two .k{font-size:12px;color:var(--muted)}.two .v{font-size:24px;font-weight:700;margin-top:4px;letter-spacing:-.02em}.two .v small{font-size:13px;font-weight:500;color:var(--muted)}.two .s{font-size:12px;color:var(--ink-2);margin-top:3px}.pl{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.pl .t{font-size:15px;font-weight:600}.pl .d{font-size:12px;color:var(--muted);margin-top:3px;line-height:1.5}.pl>.n{font-size:16px;font-weight:700;white-space:nowrap}.mon{display:inline-flex;align-items:center;gap:4px;background:var(--surface);border-radius:10px;padding:3px}.mon button{width:32px;height:32px;border-radius:8px;font-size:18px}.mon span{min-width:48px;text-align:center;font-weight:600;font-size:14px}.stepper{display:flex;align-items:center;gap:10px;padding:10px 0;font-size:14px;color:var(--ink-2)}.stepper button{width:36px;height:36px;border-radius:10px;border:1px solid var(--line);font-size:18px}.stepper b{min-width:32px;text-align:center;font-size:17px;color:var(--ink)}.addrow{display:grid;grid-template-columns:1fr 96px auto;gap:8px;margin-top:10px}.addrow input,.addrow select{height:40px;min-width:0;border-radius:10px;border:1px solid var(--line);background:var(--paper);padding:0 10px;font-size:15px}.checks{margin-top:10px;display:grid;gap:6px;font-size:13px}.checks div{padding-left:22px;position:relative;color:var(--ink-2);line-height:1.5}.checks div:before{position:absolute;left:0;top:0;font-weight:700}.checks .ok2:before{content:"✓";color:var(--green)}.checks .no2:before{content:"!";color:var(--red);left:5px}.pairs{margin-top:14px;border:1px solid var(--gold);background:var(--gold-soft);border-radius:16px;padding:14px}.pair{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}.pair .t{font-size:14px;font-weight:600}.pair .d{font-size:12px;color:var(--muted);margin-top:2px}.warn .link{margin-left:10px;color:var(--red);text-decoration:underline}@media(prefers-reduced-motion:no-preference){.order,.person,.pl{animation:rise .35s cubic-bezier(.2,.7,.2,1) both}}
