:root{font-family:Inter,Segoe UI,Microsoft YaHei,sans-serif;color:#24334a;background:#f3f6fa;font-synthesis:none;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;background:#fff;border:1px solid #dce3ec;padding:8px 13px;border-radius:7px;color:#37465d;transition:.15s}button:hover{border-color:#688be8;background:#f4f7ff}button:disabled{opacity:.5;cursor:not-allowed}button.primary{background:#315ed4;color:#fff;border-color:#315ed4;font-weight:600}button.primary:hover{background:#254db5}input,select,textarea{width:100%;padding:10px 12px;border:1px solid #d8e0eb;border-radius:7px;background:#fff;color:#26354b;min-width:0}input:focus,select:focus,textarea:focus{outline:2px solid #c5d5ff;border-color:#5277d5}label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:500;margin-bottom:16px}h1,h2,h3,p{margin-top:0}h1{font-size:27px;letter-spacing:-.5px;margin-bottom:0}h2{font-size:18px;margin-bottom:8px}h3{font-size:14px;margin-bottom:14px}p{line-height:1.7}.muted{color:#8490a2;font-size:12px;font-weight:400}.eyebrow{letter-spacing:2px;font-size:11px;color:#718199;font-weight:600;margin-bottom:10px}header{height:78px;padding:0 4%;background:#fff;border-bottom:1px solid #e5eaf1;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;align-items:center;gap:12px;font-weight:700;font-size:17px}.brand small{display:block;font-size:9px;letter-spacing:2px;color:#8795a9;margin-top:5px}.brand-mark{display:inline-grid;place-items:center;width:56px;height:56px;background:#315ed4;color:#fff;border-radius:15px;font-size:28px;font-weight:600}.brand-mark.small{width:38px;height:38px;font-size:20px;border-radius:10px}.user-tools{display:flex;gap:13px;align-items:center}.user-tools button{border:0;font-size:12px}main{max-width:1440px;margin:auto;padding:32px 4%}.page-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.panel{background:#fff;border:1px solid #e3e9f1;border-radius:12px;padding:24px;margin-bottom:22px;box-shadow:0 3px 12px #26395703}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}.section-head p{margin-bottom:0}.project-tabs{display:flex;gap:8px;margin:25px 0 18px;overflow:auto}.project-tabs button{padding:12px 23px;border-color:transparent;background:#e8edf5;font-weight:600;white-space:nowrap}.project-tabs button.selected{background:#315ed4;color:#fff}.segmented{display:flex;border-radius:8px;padding:3px;background:#f0f3f8}.segmented button{border:0;background:transparent;white-space:nowrap}.segmented .active{background:#fff;color:#315ed4;box-shadow:0 1px 5px #0000000e}.ai-box{background:#f7f9fe;border:1px solid #e3eafa;border-radius:9px;padding:18px;margin-bottom:22px}.ai-box label{margin-bottom:10px}.ai-box p{margin:10px 0 0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.form-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.submit-row{display:flex;justify-content:space-between;align-items:center;margin-top:4px}.recent{margin-top:24px;border-top:1px solid #edf0f5;padding-top:20px}.recent h3 span{margin-left:8px}.recent-row{display:grid;grid-template-columns:185px 1fr auto;gap:16px;font-size:12px;padding:10px 0;border-bottom:1px solid #f3f5f9}.recent-row>span:first-child{color:#8793a5}.income{color:#17816c}.expense{color:#c56538}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.stats>div{background:#f8fafc;padding:20px;border:1px solid #edf1f6;border-radius:9px}.stats span{font-size:12px;color:#748298}.stats strong{display:block;font-size:27px;font-variant-numeric:tabular-nums;margin-top:13px;letter-spacing:-.5px}.stats small{display:block;font-size:11px;color:#8a96a7;font-weight:400;margin-top:9px}.stats.compact{grid-template-columns:repeat(4,1fr);margin-bottom:22px}.stats.compact strong{font-size:20px}.stats.compact strong small{display:inline;font-size:14px}.stats .tint{background:#f1f5ff;border-color:#e1e9fd}.date-filter{display:flex;align-items:center;gap:8px}.date-filter input{font-size:12px;max-width:150px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}th{text-align:left;background:#f7f9fc;color:#78859a;font-weight:500;padding:13px 12px}td{padding:15px 12px;border-bottom:1px solid #edf1f6}td small{display:block;color:#8d99a9;margin-top:6px}.note-cell{white-space:normal;min-width:160px;max-width:320px;line-height:1.6}.amount{font-variant-numeric:tabular-nums;font-weight:600}.right{text-align:right}.badge{font-size:11px;padding:4px 8px;border-radius:5px;background:#edf2fa}.badge.income{background:#eaf7f2}.badge.expense{background:#fff2e9}.actions{display:flex;align-items:center;gap:8px}.actions button{font-size:12px}.danger{color:#b75555}.voided{color:#9da6b3;background:#fcfcfd}.voided .amount{text-decoration:line-through}.pagination{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:18px;font-size:12px}.empty{text-align:center;color:#96a1b1;padding:32px}.section-head>select{max-width:150px}details{margin-top:14px}summary{cursor:pointer;font-weight:600;padding:5px 0 12px}summary span{margin-left:10px}.log-row{display:grid;grid-template-columns:180px 160px 1fr;gap:15px;border-top:1px solid #edf1f6;padding:14px 0;font-size:12px;overflow-wrap:anywhere}.log-row>span:first-child{color:#8b97a7}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}.admin-grid>div+div{border-left:1px solid #e7edf4;padding-left:30px}.chips{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0 18px}.chips button{font-size:11px}.check{display:flex;flex-direction:row;align-items:center;gap:7px}.check input{width:auto}.members{display:flex;gap:12px;flex-wrap:wrap}.message{display:flex;justify-content:space-between;align-items:center;border-radius:8px;padding:12px 16px;margin-bottom:18px;font-size:13px}.error{color:#b34141;background:#fff0f0;padding:10px;border-radius:6px}.success{color:#19765e;background:#eaf7f0}.warning{color:#9d701b}.message button{background:transparent;border:0;color:inherit}a{color:#315ed4;text-decoration:none}a:hover{text-decoration:underline}footer{text-align:center;font-size:11px;color:#99a4b5;padding:12px 0 8px}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#17283b66;display:flex;align-items:center;justify-content:center;z-index:100;padding:20px;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.modal{background:#fff;border-radius:14px;padding:28px;max-width:580px;width:100%;max-height:90vh;overflow:auto}.modal h2{margin-bottom:18px}.modal .actions{justify-content:flex-end;margin-top:20px}.login-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;align-items:center;max-width:1050px;margin:auto;padding:35px;gap:100px}.login-intro h1{font-size:43px;line-height:1.4;margin-bottom:20px}.login-intro .eyebrow{margin-top:25px}.login-intro>p:last-child{color:#7c8ba2}.login-card{padding:40px;background:#fff;border-radius:16px;border:1px solid #e0e7f1;box-shadow:0 20px 70px #1d417312}.login-card h2{font-size:22px}.login-card>.muted{margin-bottom:28px}.wide{width:100%;padding:12px}.center{display:grid;place-items:center;min-height:100vh;color:#8390a3}@media(max-width:900px){.form-grid.four,.stats.compact{grid-template-columns:repeat(2,1fr)}.section-head{flex-wrap:wrap}.login-page{gap:35px}.login-intro h1{font-size:32px}.stats strong{font-size:22px}.admin-grid{grid-template-columns:1fr}.admin-grid>div+div{border-left:0;padding-left:0;border-top:1px solid #e7edf4;padding-top:20px}}@media(max-width:600px){header{height:auto;min-height:75px;padding:15px 5%;gap:14px;flex-wrap:wrap}.user-tools{gap:7px}.page-title{display:block}.page-title>.muted{display:block;margin-top:12px}h1{font-size:23px}main{padding:22px 14px}.panel{padding:18px 14px}.stats{grid-template-columns:1fr}.stats strong{font-size:25px}.stats.compact{grid-template-columns:1fr 1fr}.stats.compact>div{padding:13px}.stats.compact strong{font-size:17px}.form-grid,.form-grid.four{grid-template-columns:1fr}.recent-row{grid-template-columns:1fr auto}.recent-row>span:first-child{grid-column:1/-1}.submit-row{gap:14px}.date-filter{width:100%}.date-filter input{width:38%}.login-page{display:flex;flex-direction:column;gap:25px;align-items:stretch;padding:30px 20px}.login-intro h1{font-size:29px}.login-intro h1 br{display:none}.login-card{padding:27px}.log-row{grid-template-columns:1fr}.project-tabs button{padding:11px 16px}}.page-jump{display:flex;gap:6px}.page-jump input{width:65px;padding:6px}.pagination{flex-wrap:wrap}button{white-space:nowrap}.date-filter button{flex-shrink:0}:root{color:#21364b;background:#eef3f8;--navy: #173b57;--teal: #087f79;--line: #dbe5ed}body{background:radial-gradient(ellipse at 92% 0%,#d5eee980,transparent 42%),radial-gradient(ellipse at 0% 24%,#dce4f580,transparent 38%),#eef3f8;min-height:100vh}button{border-radius:9px;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease}button:hover:not(:disabled){border-color:#76a8b7;background:#edf7f7;box-shadow:0 3px 10px #173b5710;transform:translateY(-1px)}button:active:not(:disabled){transform:translateY(0)}button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #269eaa;outline-offset:3px}button:disabled{transform:none;box-shadow:none}button.primary{background:linear-gradient(120deg,#173b57,#146577);border-color:#214d65;box-shadow:0 4px 12px #173b571a}button.primary:hover:not(:disabled){background:linear-gradient(120deg,#214e6d,#087f79);color:#fff;border-color:#146577}input,select,textarea{border-color:var(--line);border-radius:9px;transition:border-color .16s ease,box-shadow .16s ease}input:focus,select:focus,textarea:focus{outline:none;border-color:#258b94;box-shadow:0 0 0 3px #259b9b1c}input[type=checkbox]{accent-color:var(--teal)}header{background:#14364e;color:#f5fafc;border-bottom:3px solid #49b9ac;box-shadow:0 4px 20px #173b5717}.brand small{color:#aac8d6}.brand-mark{background:linear-gradient(145deg,#2cb9a8,#1d647d);box-shadow:0 5px 15px #0b4e6529,inset 0 1px #ffffff40}header .user-tools button{background:#ffffff0d;color:#e7f4f8;border:1px solid #ffffff26}header .user-tools button:hover:not(:disabled){background:#ffffff20}header .muted{color:#bfd2dc}.page-title{padding:4px 0 4px 17px;border-left:3px solid #1c9c90}.eyebrow{color:#32766f;letter-spacing:2.5px}h1{color:#173b57}.muted{color:#65778a}.panel{border-color:#dce6ed;border-radius:16px;box-shadow:0 4px 20px #173b5706}.section-head h2{color:#23485e;letter-spacing:.2px}.project-tabs{padding:4px 2px 8px}.project-tabs button{background:#ffffffa6;border:1px solid #dbe5ed;border-radius:11px}.project-tabs button.selected,.project-tabs button.selected:hover{background:#173b57;color:#fff;border-color:#173b57;box-shadow:inset 0 -3px #42baa9,0 4px 12px #173b5720}.segmented{background:#edf2f6;border-radius:11px;padding:4px}.segmented .active{color:#165e69;box-shadow:0 2px 6px #173b5712}.segmented button:first-child.active{color:#574b99;background:#f7f4ff}.ai-box{background:linear-gradient(115deg,#f1f5ff,#f8f5ff 65%,#edf9f7);border-color:#dcdff1;border-left:3px solid #9183cf;border-radius:12px;animation:reveal .18s ease-out}.ai-box textarea{background:#ffffffd9}.ai-box button{color:#59498e;border-color:#cfc6e5;background:#ffffffb3}.stats>div{border-radius:13px;background:#f4f7fa;border-color:#e1e9ef;border-top:3px solid #a7bccb}.stats:not(.compact)>div:first-child{background:linear-gradient(120deg,#eaf7f2,#f5fbf8);border-color:#cfe8df;border-top-color:#2c9d84}.stats:not(.compact)>div:nth-child(2){background:linear-gradient(120deg,#fff3e9,#fffaf5);border-color:#f1dfcf;border-top-color:#d79964}.stats:not(.compact)>div:last-child{background:linear-gradient(120deg,#eaf0f9,#f4f7fc);border-color:#d4e0f0;border-top-color:#5d84b4}.stats span{color:#586e7c}.stats small{color:#667b89}.stats strong{font-weight:650;letter-spacing:-.7px}.income{color:#087a61}.expense{color:#ae592d}.stats.compact>.tint:nth-child(2){background:#fff8e9;border-color:#efdfb7;border-top-color:#c89c3e}.stats.compact>.tint:nth-child(2) strong{color:#986917}.stats.compact>.tint:nth-child(4){background:#eef4fd;border-color:#d3e1f5;border-top-color:#648fd0}.stats.compact>.tint:nth-child(4) strong{color:#345f9d}.table-wrap{border:1px solid #e1e9ef;border-radius:11px}th{background:#eef3f7;color:#526c7d}tbody tr:nth-child(2n):not(.voided){background:#f8fafc}tbody tr{transition:background-color .15s ease}tbody tr:hover:not(.voided){background:#edf7f6}td small,.recent-row>span:first-child{color:#687e8e}.badge{border-radius:6px}.badge.income{background:#e1f3eb}.badge.expense{background:#ffecdc}.recent-row{padding:12px 8px;border-radius:7px}.recent-row:hover{background:#f3f8fa}summary{color:#315e72}.log-row{border-left:2px solid #b4d4d3;padding-left:12px}.message{border:1px solid transparent;animation:reveal .18s ease-out}.message.success{background:#e8f6ef;border-color:#b8dfcf}.message.error{border-color:#efc6c6}.overlay{background:#102d4766;animation:fade-in .15s ease-out}.modal{border-top:4px solid #319e96;box-shadow:0 22px 80px #0b233f38;animation:reveal .2s ease-out}.login-card{border-top:4px solid #3aaa9d;box-shadow:0 22px 65px #173b5714}.login-intro h1{color:#173b57}.login-intro>p:last-child{color:#61788a}@keyframes reveal{0%{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}button:hover:not(:disabled){transform:none}}@media(max-width:600px){.panel{border-radius:13px}.page-title{padding-left:12px}.stats strong{overflow-wrap:anywhere}.date-filter{flex-wrap:wrap}}header .badge{color:#d6f3ec;background:#ffffff12;border:1px solid #ffffff29}.project-tabs button.selected{animation:fade-in .18s ease-out}
