:root{--bg:#f7f5ef;--surface:#fffefa;--surface-2:#f1f3ec;--ink:#253a2c;--muted:#758178;--accent:#42654f;--accent-soft:#e4ecdf;--line:#e6e8df;--red:#bc675b;--red-soft:#f8ece9;--gold:#b4975a;--shadow:0 7px 30px rgba(33,64,45,.045);font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI","Apple SD Gothic Neo","Noto Sans KR",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}html,body{margin:0;min-width:320px;min-height:100%;}body{line-height:1.5}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b0c9b3;outline-offset:2px}input,select,textarea{font-size:16px}a{color:var(--accent)}h1,h2,h3,p{margin:0}h1{font-size:clamp(26px,3.4vw,34px);letter-spacing:-1.2px}h2{font-size:17px;letter-spacing:-.35px}h3{font-size:15px}.small{font-size:12px;color:var(--muted)}.muted{color:var(--muted)}.bold{font-weight:730}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2.1px;text-transform:uppercase;color:#8b9b8a}.app{display:grid;grid-template-columns:252px minmax(0,1fr);max-width:1580px;margin:auto;min-height:100vh}.sidebar{padding:30px 19px;border-right:1px solid var(--line);position:sticky;top:0;height:100vh;display:flex;flex-direction:column;background:rgba(255,254,250,.62)}.brand{font-weight:850;font-size:23px;letter-spacing:-1.3px;padding:5px 10px 33px}.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;background:var(--accent);color:white;border-radius:12px;margin-right:10px;font-size:16px;letter-spacing:0}.brand small{display:block;font-size:10px;letter-spacing:1.9px;margin:7px 0 0 48px;color:var(--muted)}.nav{display:grid;gap:6px}.nav button{border:0;background:transparent;display:flex;align-items:center;gap:14px;text-align:left;padding:14px 16px;color:#657569;font-weight:700;border-radius:13px}.nav button[aria-current="page"],.nav button:hover{background:var(--accent-soft);color:var(--accent)}.nav .ico{font-size:19px;width:24px;text-align:center}.sidebar-foot{margin-top:auto;background:var(--surface-2);border-radius:13px;padding:14px;font-size:12px;color:var(--muted)}.main{padding:31px clamp(22px,4vw,60px) 80px;min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:28px}.top-actions{display:flex;align-items:center;gap:10px}.avatar{width:37px;height:37px;border-radius:13px;background:#dfe8dd;display:grid;place-items:center;color:var(--accent);font-weight:800}.iconbtn{width:39px;height:39px;border:1px solid var(--line);background:var(--surface);border-radius:12px;color:var(--accent);font-size:19px;display:grid;place-items:center}.demo-notice{background:#e8efe5;border:1px solid #d5e4d1;color:#48634e;border-radius:13px;padding:12px 16px;font-size:12px;display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:23px}.demo-notice strong{white-space:nowrap}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:27px 0 13px}.section-title a,.text-link{border:0;background:transparent;color:var(--accent);font-size:12px;font-weight:700;text-decoration:none;cursor:pointer}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:15px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.card{background:var(--surface);border:1px solid var(--line);border-radius:19px;padding:22px;box-shadow:var(--shadow);min-width:0}.hero{border:1px solid #dae4d6;background:linear-gradient(120deg,#fffefa,#eef3e9);border-radius:22px;padding:29px 31px;display:flex;justify-content:space-between;align-items:center;gap:20px;min-width:0}.hero-number{font-size:clamp(35px,5vw,52px);letter-spacing:-2.2px;font-weight:770;margin:8px 0}.mini-select{display:inline-flex;align-items:center;border:1px solid #d5e0d1;background:var(--surface);border-radius:10px;padding:7px 10px;max-width:100%}.mini-select select{border:0;background:transparent;color:var(--accent);font-weight:750;font-size:13px;max-width:100%;outline:none}.hero-side{display:grid;place-items:center;min-width:132px}.hero-side-circle{border:12px solid #e0e9db;border-top-color:#63886c;border-right-color:#9db99b;width:105px;height:105px;border-radius:50%;display:grid;place-items:center;color:var(--accent);font-size:21px}.metric-label{font-size:12px;color:var(--muted)}.metric-number{font-size:clamp(22px,3vw,30px);letter-spacing:-.9px;font-weight:740;margin:10px 0 2px}.positive{color:#3d7660}.negative{color:#bf6b60}.faint{color:#829187}.list{display:grid;gap:0}.list-item{display:flex;align-items:center;gap:12px;padding:14px 2px;border-bottom:1px solid var(--line);min-width:0}.list-item:last-child{border-bottom:0}.bullet{width:40px;height:40px;flex-shrink:0;border-radius:12px;background:var(--surface-2);display:grid;place-items:center;color:var(--accent);font-weight:800}.list-label{flex:1;min-width:0}.list-label strong{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list-label small{font-size:11px;color:var(--muted)}.list-value{font-size:13px;font-weight:750;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}.pill{font-size:10px;background:var(--surface-2);color:var(--accent);padding:4px 8px;border-radius:999px;font-weight:750;white-space:nowrap}.pill.planned{background:#f7efdd;color:#916e2c}.ghost{background:transparent;border:1px solid var(--line);border-radius:11px;padding:9px 13px;color:var(--accent);font-weight:750}.primary{background:var(--accent);border:1px solid var(--accent);color:white;border-radius:12px;padding:12px 17px;font-weight:750}.danger{background:var(--red-soft);color:var(--red);border:1px solid #edd6d1;border-radius:11px;padding:10px 13px;font-weight:700}.controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:18px 0}.controls input,.controls select,.field input,.field select,.field textarea{background:#fff;border:1px solid #dfe4da;border-radius:11px;padding:12px 13px;color:var(--ink);width:100%;min-width:0;outline:none}.controls input{flex:1;min-width:170px}.controls select{width:auto;max-width:100%}.period{display:flex;align-items:center;gap:8px}.period strong{font-size:15px;white-space:nowrap}.period button{border:1px solid var(--line);width:32px;height:32px;border-radius:10px;background:var(--surface);color:var(--accent)}.row-between{display:flex;align-items:center;justify-content:space-between;gap:12px}.stack{display:grid;gap:14px}.status{font-size:12px;color:var(--muted);padding:12px;border-radius:10px;background:var(--surface-2)}.empty{padding:33px;text-align:center;color:var(--muted);font-size:13px}.progress{height:8px;background:#edf1ea;overflow:hidden;border-radius:12px;margin:11px 0 5px}.progress>span{height:100%;display:block;background:#6e9375;border-radius:12px}.cal-layout{display:grid;grid-template-columns:minmax(0,1fr) 255px;gap:17px;align-items:start}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.weekday{text-align:center;font-size:11px;font-weight:780;color:var(--muted);padding:9px 0}.weekday:first-child{color:#c17c72}.day{min-width:0;min-height:89px;border:1px solid #ecede8;border-radius:10px;background:#fffefa;padding:9px 5px;text-align:left;color:var(--ink)}.day:hover,.day.selected{border-color:#96b49b;background:#f0f5ec}.day.outside{opacity:.34}.day.today .day-number{background:var(--accent);color:white}.day-number{width:24px;height:24px;border-radius:8px;display:grid;place-items:center;font-weight:760;font-size:12px}.day-total{font-size:10px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:3px}.day-dot{width:5px;height:5px;border-radius:50%;background:var(--gold);display:inline-block;margin-left:3px}.weekly-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:12px;background:var(--surface-2);border-radius:12px;margin-top:13px}.weekly-summary div{min-width:0}.weekly-summary strong{display:block;font-size:13px;font-variant-numeric:tabular-nums}.bar-row{display:grid;grid-template-columns:minmax(88px,140px) minmax(0,1fr) auto;align-items:center;gap:10px;margin:14px 0;font-size:12px}.bar-row .bar{height:10px;background:#e8eee5;border-radius:10px;overflow:hidden}.bar-row .bar>span{display:block;height:100%;background:#6c9273;border-radius:10px}.bar-row strong{font-variant-numeric:tabular-nums}.analytics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.analytics-section-picker{display:flex;gap:7px;margin:16px 0 22px;flex-wrap:wrap}.analytics-section-picker button{border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:9px 15px;color:var(--muted);font-weight:700}.analytics-section-picker button.active{background:var(--accent-soft);border-color:#c8d8c6;color:var(--accent)}.mobile-analytics-select{display:none}.modal-bg{position:fixed;inset:0;z-index:100;background:rgba(26,41,31,.43);display:grid;place-items:center;padding:20px}.modal{background:var(--surface);border-radius:22px;width:min(100%,530px);max-height:min(90vh,820px);overflow:auto;padding:26px;box-shadow:0 25px 90px #192a2538}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.field{display:grid;gap:6px;margin-bottom:13px}.field label{font-size:12px;font-weight:740;color:#647268}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.error{background:var(--red-soft);color:#a2493d;border-radius:9px;padding:11px;margin:10px 0;font-size:12px}.mobile-nav{display:none}.fab{position:fixed;right:25px;bottom:25px;width:55px;height:55px;border-radius:18px;background:var(--accent);color:white;border:0;box-shadow:0 7px 23px #42654f33;font-size:27px;z-index:10}.trend{display:flex;align-items:end;gap:5px;height:118px;padding-top:15px}.trend>div{flex:1;max-width:40px;background:#87a58b;border-radius:6px 6px 0 0;min-height:2px}.disclosure{font-size:11px;color:#7c8b7a;margin-top:8px}.click-row{width:100%;text-align:left;background:transparent;border:0}.click-row:hover{background:#f9faf5}.hide-mobile{}@media(max-width:1180px){.cal-layout{grid-template-columns:minmax(0,1fr)}.hero-side{display:none}}@media(max-width:880px){.app{display:block}.sidebar{display:none}.main{padding:24px 18px 122px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;z-index:40;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-top:1px solid var(--line);background:rgba(255,254,250,.97);padding:8px 5px calc(7px + env(safe-area-inset-bottom));backdrop-filter:blur(12px)}.mobile-nav button{background:transparent;border:0;border-radius:10px;color:var(--muted);font-size:10px;padding:4px 0;white-space:nowrap}.mobile-nav button[aria-current="page"]{color:var(--accent);background:var(--accent-soft);font-weight:800}.mobile-nav button span{display:block;font-size:20px;margin-bottom:2px}.fab{bottom:calc(88px + env(safe-area-inset-bottom));right:16px}}@media(max-width:640px){.grid2,.grid3,.analytics-grid{grid-template-columns:minmax(0,1fr)}.topbar{margin-bottom:20px}.topbar h1{font-size:26px}.demo-notice{display:block}.demo-notice strong{display:block;margin-bottom:3px}.hero{padding:23px 20px}.hero-number{font-size:39px}.card{padding:18px}.cal-layout .card{padding:14px 9px}.day{min-height:67px;padding:5px 2px}.day-number{font-size:11px;width:21px;height:21px}.day-total{font-size:8px}.weekday{font-size:10px}.weekly-summary strong{font-size:12px}.mobile-analytics-select{display:block;margin:0 0 14px}.analytics-grid .analysis-card{display:none}.analytics-grid .analysis-card.mobile-selected{display:block}.form-grid{grid-template-columns:1fr}.modal-bg{padding:8px;align-items:end}.modal{width:100%;max-height:94vh;border-radius:21px 21px 10px 10px;padding:20px}.hide-mobile{display:none}.controls input{min-width:100%}}
/* M2: usable category and refund allocation editors, 320px+ without overflow. */
.allocation-row{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) auto;gap:9px;align-items:end;margin-bottom:10px}
.allocation-row .field{min-width:0;margin-bottom:0}
.allocation-row .ghost{margin-bottom:0;white-space:nowrap}
.split-summary,.refund-allocations{background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:13px;margin-bottom:12px}
.refund-allocations>strong{font-size:13px}
.refund-allocations>.small{margin:4px 0 13px}
.split-summary .row-between,.refund-allocations .row-between{font-size:12px;padding:5px 0}
.refund-allocations .field{margin:11px 0}
.confirmation-modal{max-width:440px}
@media(max-width:580px){.allocation-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px}.allocation-row .ghost{grid-column:2;justify-self:end}.form-actions{flex-wrap:wrap}.form-actions>.primary,.form-actions>.danger{min-width:0}}
/* Authentication-first cloud build */
.auth-shell{min-height:100dvh;display:grid;place-items:center;padding:24px;background:var(--bg,#f7f5ef)}
.auth-card{width:min(100%,440px);background:var(--card,#fffefa);border:1px solid var(--line,#e6e8df);border-radius:24px;padding:clamp(24px,5vw,44px);box-shadow:var(--shadow,0 8px 30px #0001)}
.auth-card h1{margin:12px 0 14px;font-size:30px;line-height:1.2}
.auth-card .field{margin:18px 0}
.auth-card button.primary{min-height:46px;width:100%;font-size:16px}
.auth-card .text-link{margin-top:15px;display:inline-block}
