@font-face{font-family:Pretendard;src:url('./assets/pretendard.woff2') format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:Symbols;src:url('./assets/symbols.woff2') format('woff2');font-weight:400;font-display:block}
:root{font-family:Pretendard,"Noto Sans KR",system-ui,sans-serif;color:#202139;background:#f7f8fc;font-size:100%;font-synthesis:none;--surface:#fff;--muted:#686c81;--quiet:#777a90;--line:#e9eaf3;--purple:#6742df;--purple-dark:#512db8;--sidebar:232px;--header:68px}
*{box-sizing:border-box}
body{margin:0;min-width:320px}
[hidden]{display:none!important}
button,input,select{font:inherit}
button,a,input,select{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.55}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #9876ff;outline-offset:3px}
button{border:0}
h1,h2,h3,p{margin:0}
a{color:inherit}
.symbol{font-family:Symbols;font-size:22px;font-weight:400;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;direction:ltr;font-feature-settings:"liga";-webkit-font-smoothing:antialiased;flex-shrink:0}
.skip-link{position:fixed;z-index:20;left:1rem;top:.75rem;background:#fff;padding:.75rem 1rem;transform:translateY(-150%);border-radius:8px}
.skip-link:focus{transform:none}
.sidebar{width:var(--sidebar);height:100dvh;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);z-index:5;display:flex;flex-direction:column;padding:25px 16px 20px}
.brand{color:#22213a;background:none;display:flex;align-items:center;gap:11px;text-align:left;padding:3px 8px;margin:0 0 38px;width:max-content}
.brand-icon{background:linear-gradient(145deg,#8d68f4,#633ce1);color:white;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;box-shadow:0 4px 9px #6942d83b}
.brand-icon .symbol{font-size:24px}
.brand strong{display:block;font-size:1.17rem;font-weight:800;letter-spacing:-.055em}
.brand small{display:block;margin-top:3px;color:#77778e;font-size:.62rem;font-weight:740;letter-spacing:.115em}
.menu-label{color:#75798f;font-size:.78rem;font-weight:700;margin:0 0 9px 12px}
.nav-item{display:flex;align-items:center;gap:11px;width:100%;height:46px;margin:3px 0;border-radius:9px;text-align:left;padding:0 12px;background:none;color:#53586f;font-size:.9375rem;font-weight:600}
.nav-item .symbol{font-size:20px}
.nav-item:hover{background:#f7f5ff;color:var(--purple-dark)}
.nav-item[aria-current=page]{background:#f0ebff;color:#5831c7;font-weight:750}
.sidebar-bottom{margin-top:auto}
.demo-box{margin:0 2px;padding:14px 13px 12px;background:#f8f6ff;border:1px solid #eee9fa;border-radius:13px}
.demo-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:#eee8ff;color:#653ed6;margin-bottom:9px}
.demo-icon .symbol{font-size:18px}
.demo-box strong{display:block;font-size:.875rem;letter-spacing:-.02em}
.demo-box p{margin:5px 0 9px;color:var(--muted);font-size:.8125rem;line-height:1.48}
.demo-link{display:inline-block;color:#5d37c8;background:none;font-size:.825rem;font-weight:750;padding:3px 0}
.demo-link:hover{text-decoration:underline}
.layout{margin-left:var(--sidebar)}
.topbar{height:var(--header);position:sticky;top:0;z-index:4;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 32px;border-bottom:1px solid var(--line)}
.topbar-left,.topbar-right,.profile{display:flex;align-items:center;gap:12px}
.topbar-left{font-size:.875rem;color:#4e526a}
.topbar-left strong{color:#262840;font-weight:750}
.crumb-divider{color:#9497a9;font-size:17px}
.period-wrap{position:relative}
.period-trigger{display:flex;align-items:center;gap:8px;background:white;border:1px solid #e5e6f0;border-radius:8px;color:#353752;min-height:38px;padding:0 9px 0 11px;font-size:.875rem;font-weight:680;white-space:nowrap}
.period-trigger:hover,.period-trigger[aria-expanded=true]{border-color:#b5a3ef;color:#5430c7}
.period-trigger .symbol{font-size:17px;color:#655a86}
.period-trigger .period-chevron{font-size:17px;color:#787b92;margin-left:2px}
.period-panel{position:absolute;z-index:7;right:0;top:calc(100% + 8px);width:235px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 10px 27px #26203d22;display:grid;gap:12px}
.top-divider{height:26px;width:1px;background:var(--line);margin-inline:2px}
.profile{gap:8px;color:#373951;font-size:.875rem;font-weight:700;white-space:nowrap}
.profile-avatar{background:#eee8ff;color:#5931bf;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:.75rem;font-weight:800}
.mobile-menu{display:none!important}
main{padding:28px 32px 42px;max-width:1576px;margin:0 auto;outline:none}
.hero{isolation:isolate;position:relative;overflow:hidden;min-height:194px;display:flex;align-items:center;padding:23px 30px;border-radius:17px;color:#fff;background:linear-gradient(115deg,#241858,#342174 67%,#261c59);margin-bottom:22px}
.hero::before{content:"";position:absolute;z-index:-2;inset:0 0 0 37%;background:url('./assets/hero.webp') 63% 51%/cover no-repeat}
.hero::after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,#261a5b 0%,#281b5c 32%,#2b1e5cde 43%,#2b1e5c20 68%,#291b5820 100%);pointer-events:none}
.hero-content{max-width:550px}
.hero-label{display:inline-flex;align-items:center;gap:6px;color:#f0eaff;background:#ffffff19;border:1px solid #e5d9ff38;padding:4px 9px;border-radius:6px;font-size:.8125rem;font-weight:650}
.hero-label .symbol{font-size:15px}
.hero h1{font-size:clamp(1.65rem,3vw,2.18rem);letter-spacing:-.055em;font-weight:780;line-height:1.14;margin:9px 0 7px}
.hero p{font-size:.9375rem;color:#ddd3fb;line-height:1.52}
.hero .button{margin-top:15px;min-height:37px;border-radius:7px;padding-inline:12px}
.button{min-height:41px;display:inline-flex;justify-content:center;align-items:center;gap:7px;border-radius:8px;white-space:nowrap;padding:0 13px;font-size:.875rem;font-weight:740;text-decoration:none}
.button .symbol{font-size:18px}
.primary{background:#6944df;color:#fff;border:1px solid #6944df}
.primary:hover{background:#5933cf;border-color:#5933cf}
.white{background:#fff;color:#5730bc;border:1px solid #fff}
.white:hover{background:#f1eaff;border-color:#f1eaff}
.outline{background:#fff;border:1px solid #e3e4ee;color:#45465e}
.outline:hover{border-color:#bbaaf2;background:#faf8ff;color:#5731bb}
.text-button{padding:4px 0;color:#5d37cc;background:none;font-size:.875rem;font-weight:740;white-space:nowrap}
.text-button:hover{text-decoration:underline}
.icon-button{width:34px;height:34px;border-radius:8px;background:transparent;color:#626780;display:inline-grid;place-items:center;padding:0}
.icon-button:hover{color:#5730bc;background:#f2edff}
.icon-button .symbol{font-size:20px}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:19px}
.metric,.panel{border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:0 2px 4px #39336e04}
.metric{min-width:0;padding:16px 17px 14px}
.metric-top{display:flex;align-items:center;justify-content:space-between;gap:6px}
.metric-label{color:#53576e;font-size:.875rem;font-weight:690;white-space:nowrap}
.metric-icon{width:33px;height:33px;border-radius:8px;display:grid;place-items:center;flex-shrink:0}
.metric-icon .symbol{font-size:18px}
.metric-icon.violet{background:#eee8ff;color:#7048dd}
.metric-icon.blue{background:#e9f1ff;color:#3f66cf}
.metric-icon.teal{background:#e5f7f0;color:#188163}
.metric-icon.orange{background:#fff0e2;color:#b96124}
.metric-value{margin-top:1px;font-weight:810;font-size:clamp(1.29rem,2vw,1.7rem);line-height:1.18;letter-spacing:-.042em;font-variant-numeric:tabular-nums;white-space:nowrap}
.metric-foot{margin-top:8px;min-height:18px;color:var(--muted);font-size:.795rem;line-height:1.3;white-space:nowrap}
.metric-foot strong{font-weight:750}
.metric-foot .positive{color:#0a7759}
.metric-foot .negative{color:#99521f}
.metric-foot .symbol{font-size:14px;vertical-align:-2px}
.dashboard-middle{display:grid;grid-template-columns:minmax(0,2fr) minmax(250px,1fr);gap:15px;margin-bottom:19px}
.chart-panel,.progress-panel{padding:18px 19px 16px;min-width:0}
.panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px;min-width:0}
.panel-head h2,.panel h2{font-size:1.075rem;font-weight:780;letter-spacing:-.027em}
.panel-subtitle{font-size:.83rem;color:var(--muted);margin-top:5px}
.chart-legend{display:flex;gap:11px;flex-wrap:wrap;justify-content:flex-end}
.legend-item{display:inline-flex;align-items:center;gap:5px;color:#515670;font-size:.765rem;font-weight:630;white-space:nowrap}
.legend-item::before{content:"";display:block;width:9px;height:9px;border-radius:3px;background:#7954e7}
.legend-item.payout::before{background:#cfc0ff}
.chart{--plot-height:151px;display:grid;grid-template-columns:35px minmax(0,1fr);grid-template-rows:var(--plot-height) 24px;column-gap:9px;margin-top:17px}
.chart-unit{color:var(--quiet);font-size:.72rem;font-weight:640;grid-column:1/-1;margin-bottom:5px}
.chart:has(.chart-unit){grid-template-rows:auto var(--plot-height) 24px;margin-top:11px}
.chart-scale{display:flex;height:calc(var(--plot-height) + 4px);margin-top:-4px;flex-direction:column;justify-content:space-between;align-items:flex-end;color:#686b82;font-size:.74rem;font-variant-numeric:tabular-nums}
.chart-plot{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));position:relative;min-width:0;height:var(--plot-height);border-bottom:1px solid #e8e9f3;background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#edeef6 calc(25% - 1px),#edeef6 25%)}
.bar-group{display:flex;align-items:flex-end;justify-content:center;gap:6px;position:relative;min-width:0}
.bar{height:var(--bar);background:linear-gradient(#835cf1,#7549e5);width:min(18px,27%);border-radius:4px 4px 0 0;display:block}
.bar.payout-bar{background:#cfc0ff}
.bar-group.active .bar:not(.payout-bar){background:linear-gradient(#7448e9,#572ec7)}
.bar-group.active .payout-bar{background:#bb9efa}
.bar-group:hover .bar,.bar-group:focus-visible .bar{filter:saturate(1.35);opacity:.87}
.chart-tip{position:absolute;z-index:2;bottom:calc(var(--bar) + 8px);left:50%;transform:translateX(-50%);background:#302357;color:#fff;font-size:.75rem;font-weight:650;padding:6px 8px;border-radius:6px;white-space:nowrap;display:none;line-height:1.45;pointer-events:none}
.bar-group:last-child .chart-tip{left:auto;right:0;transform:none}
.bar-group:first-child .chart-tip{left:0;transform:none}
.bar-group:hover .chart-tip,.bar-group:focus-visible .chart-tip{display:block}
.chart-months{grid-column:2;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:end;text-align:center;color:#676b82;font-size:.8125rem;font-weight:610}
.chart-months .active{color:#5d38ca;font-weight:780}
.progress-copy{margin-top:16px;display:flex;justify-content:space-between;align-items:baseline;gap:8px;color:#5a5c75;font-size:.875rem;font-weight:630}
.progress-copy b{font-size:1.365rem;color:#6040d0;font-weight:800}
.progress-track{height:8px;background:#ede8fa;border-radius:20px;overflow:hidden;margin:6px 0 12px}
.progress-track span{display:block;background:#754ee7;height:100%;border-radius:20px}
.progress-line{display:flex;align-items:center;justify-content:space-between;padding:8px 0;color:#4d5169;font-size:.875rem;font-weight:630}
.progress-line+.progress-line{border-top:1px solid #f0f0f6}
.progress-line b{color:#272942;font-weight:780}
.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:8px;background:#9b9eb0;vertical-align:1px}
.status-dot.teal{background:#3aac88}.status-dot.amber{background:#efa94c}
.table-panel{overflow:hidden}
.table-panel>.panel-head{padding:16px 19px}
.table-scroll{overflow:auto}
table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:.875rem}
thead{background:#f8f8fc;color:#666b83}
th{font-weight:690;padding:11px 13px;border-block:1px solid #eff0f6}
td{padding:11px 13px;border-bottom:1px solid #f0f0f5;color:#444861}
th:first-child,td:first-child{padding-left:19px}
th:last-child,td:last-child{padding-right:19px}
tr:last-child td{border-bottom:0}
tbody tr:hover{background:#fcfbff}
.numeric{text-align:right;font-variant-numeric:tabular-nums}
.money-highlight{color:#5732c7;font-weight:780}
.row-action{text-align:right}
.creator{display:flex;align-items:center;gap:9px}
.creator-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;font-size:.8125rem;font-weight:820;flex-shrink:0}
.creator strong{display:block;font-size:.9rem;color:#292a44;font-weight:750}
.creator small{display:block;color:var(--muted);font-size:.76rem;margin-top:2px}
.tag{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border-radius:6px;font-size:.75rem;line-height:1.3;font-weight:730;white-space:nowrap;color:#555a75;background:#eeeef5}
.tag.teal{background:#e6f6ef;color:#116c51}.tag.amber{background:#fff1d8;color:#89520c}.tag.blue{background:#eaf0ff;color:#3d56a3}.tag.violet{background:#efe9ff;color:#5832bb}.tag.gray{background:#eeeef4;color:#595d70}
.tag .status-dot{width:6px;height:6px;margin-right:0}
.view-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin:3px 0 22px}
.view-head h1{font-size:clamp(1.65rem,3vw,2.08rem);letter-spacing:-.055em;margin-bottom:6px}
.view-head p{color:var(--muted);font-size:1rem;line-height:1.5}
.action-group{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.note{background:#f1ecff;color:#50338c;border:1px solid #e8dfff;border-radius:10px;padding:11px 13px;margin-bottom:17px;display:flex;align-items:center;gap:8px;font-size:.875rem;line-height:1.45}
.note .symbol{font-size:19px}
.note .text-button{margin-left:auto}
.toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:0 19px 14px}
.control,.field input,.field select{min-height:40px;border:1px solid #e0e1ec;border-radius:8px;background:white;color:#30324b;padding:8px 10px;min-width:0;width:100%;font-size:.925rem}
select.control,.field select{appearance:none;padding-right:33px;background:#fff}
.select-wrap{position:relative;display:block}
.select-wrap::after{content:"";position:absolute;width:7px;height:7px;border:solid #696c84;border-width:0 1.5px 1.5px 0;right:13px;top:calc(50% - 5px);transform:rotate(45deg);pointer-events:none}
.searchbox{display:flex;align-items:center;position:relative;min-width:190px}
.searchbox .symbol{position:absolute;left:9px;color:#71758b;font-size:17px;pointer-events:none}
.searchbox input{padding-left:32px}
.empty-cell{text-align:center;color:var(--muted);padding:35px 16px;white-space:normal}
dialog{width:min(730px,calc(100% - 24px));max-height:calc(100dvh - 32px);border:1px solid var(--line);border-radius:16px;padding:0;color:#22243e;box-shadow:0 22px 90px #160f3e42}
dialog.compact{width:min(510px,calc(100% - 24px))}
dialog::backdrop{background:#19102b70}
.modal-head{padding:17px 20px 15px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:flex-start;gap:9px}
.modal-head h2{font-size:1.26rem;font-weight:800;letter-spacing:-.035em;margin-top:3px}
.modal-head p{font-size:.875rem;color:var(--muted);margin-top:5px;line-height:1.4}
.modal-body{padding:17px 20px 20px}
.modal-actions{border-top:1px solid var(--line);padding:12px 20px;display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.field{display:grid;gap:5px;min-width:0;font-size:.875rem;color:#474960;font-weight:680}
.field input::placeholder,.control::placeholder{color:#818399}
.field-help{font-size:.79rem;color:var(--muted);font-weight:500}
.settle-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(235px,.85fr);gap:16px;align-items:start}
.expense-head{margin:15px 0 7px;display:flex;align-items:center;justify-content:space-between;font-size:.875rem;font-weight:720}
.expense-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(73px,.65fr) 30px;gap:5px;align-items:center;margin-bottom:7px}
.expense-row .icon-button{width:30px}
.expense-row .control{min-height:35px;font-size:.82rem}
.expense-empty{font-size:.84rem;color:var(--muted);margin:4px 0 8px}
.preview{background:#f8f6ff;border:1px solid #ece5ff;border-radius:11px;padding:12px}
.preview h3{color:#5634aa;font-size:.94rem;margin-bottom:8px}
.breakdown{margin:0;font-size:.875rem}
.breakdown div{display:flex;justify-content:space-between;gap:8px;padding:6px 0;color:#50516d}
.breakdown dt{font-weight:620}
.breakdown dd{margin:0;text-align:right;color:#252641;font-weight:720;white-space:nowrap}
.breakdown .payout-total{border-top:1px solid #ded4f7;margin-top:5px;padding-top:9px;color:#5532be}
.breakdown .payout-total dd{color:#5631c5;font-size:1.15rem}
.modal-meta{margin-bottom:11px;display:flex;flex-wrap:wrap;gap:6px}
.modal-note{color:var(--muted);font-size:.84rem;line-height:1.6;margin-top:11px}
.modal-copy{color:#4e5066;line-height:1.62;font-size:.95rem}
.modal-copy p+p,.modal-copy ul{margin-top:9px}
.modal-copy ul{padding-left:19px;margin-bottom:0}
.form-error{color:#9d2842;font-size:.86rem;margin:10px 0 0}
.history-toolbar{align-items:end}
.history-toolbar .field{min-width:min(100%,185px)}
.toast{position:fixed;z-index:10;right:24px;bottom:23px;background:#312457;color:#fff;padding:11px 15px;border-radius:9px;font-size:.9rem;font-weight:650;box-shadow:0 7px 24px #2519333a}
@media(max-width:1170px){:root{--sidebar:208px}.topbar{padding-inline:24px}main{padding-inline:24px}.metrics{gap:10px}.metric{padding-inline:12px}.dashboard-middle{gap:10px}.metric-foot{font-size:.75rem}}
@media(max-width:960px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-value{font-size:1.52rem}.dashboard-middle{grid-template-columns:minmax(0,1.45fr) minmax(220px,1fr)}.chart-panel,.progress-panel{padding-inline:13px}.chart-legend{gap:5px}.chart-panel .panel-head{align-items:flex-start}.chart-months{font-size:.74rem}}
@media(max-width:780px){:root{--header:60px;--sidebar:224px}.layout{margin-left:0}.sidebar{display:none;top:var(--header);height:calc(100dvh - var(--header));box-shadow:7px 0 30px #271b4420}.sidebar.open{display:flex}.topbar{padding-inline:15px}.topbar-left,.topbar-right{gap:6px}.mobile-menu{display:inline-grid!important}main{padding:16px 15px 30px}.hero{padding-inline:20px}.profile-text,.top-divider{display:none}.topbar{z-index:6}.hero h1{font-size:1.82rem}}
@media(max-width:570px){.top-section,.crumb-divider{display:none}.hero{min-height:179px}.hero::before{left:20%;opacity:.72}.hero::after{background:linear-gradient(90deg,#261a5b 0%,#281b5cef 38%,#291b584d 100%)}.hero p{font-size:.875rem}.dashboard-middle{grid-template-columns:minmax(0,1fr)}.chart-panel,.progress-panel{padding-inline:14px}.metrics{gap:8px}.metric-value{font-size:1.3rem}.metric-label{font-size:.82rem}.metric-icon{width:27px;height:27px}.metric-icon .symbol{font-size:16px}.metric-foot{white-space:normal}.view-head{align-items:flex-start;flex-direction:column}.settle-grid,.form-grid{grid-template-columns:minmax(0,1fr)}.modal-body,.modal-head,.modal-actions{padding-inline:12px}.note{flex-wrap:wrap}.note .text-button{margin-left:0}.chart{--plot-height:132px}.period-trigger{padding-inline:7px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important}}
