:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif;color-scheme:light;--bg:#f5f7f5;--surface:#fff;--surface2:#f7faf8;--text:#1b2b29;--muted:#7e8a86;--border:#e7eeeb;--primary:#217d71;--primary2:#2f9c89;--primary-soft:#e6f4ef;--strong:#123c36;--shadow:0 6px 24px rgba(19,60,54,.045);--danger:#d56957;--green:#26977d;--purple:#7663b5;--radius:22px}

:root[data-theme="dark"]{color-scheme:dark;--bg:#121b19;--surface:#1b2926;--surface2:#22312d;--text:#eef7f4;--muted:#a4b9b2;--border:#36453f;--primary:#54b9a5;--primary2:#61bba5;--primary-soft:#24463c;--strong:#f1faf6;--shadow:0 9px 26px #0002;--danger:#e78b7c;--green:#65c6a6;--purple:#b8a4ef}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-height:100vh;background:var(--bg);color:var(--text);font-size:14px;-webkit-font-smoothing:antialiased}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.55}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #74bbac;outline-offset:2px}
a{color:inherit;text-decoration:none}
strong{font-weight:760}
.ico{flex-shrink:0;vertical-align:middle}
small{font-size:12px}
.app-layout{display:flex;min-height:100vh}
.sidebar{position:sticky;top:0;left:0;width:254px;flex-shrink:0;height:100vh;background:var(--surface);padding:36px 15px 20px;border-right:1px solid var(--border);display:flex;flex-direction:column;z-index:10}
.brand{display:flex;align-items:center;gap:12px;padding:5px 15px 36px}
.brand-symbol{width:43px;height:43px;display:grid;place-items:center;border-radius:15px;background:linear-gradient(145deg,#237d71,#2fa58e);color:white;font-size:23px;font-weight:900;box-shadow:0 6px 15px #217d7130}
.brand-title{font-size:21px;font-weight:830;letter-spacing:-1px}
.brand-sub{font-size:11px;color:var(--muted);margin-top:2px}
.sidebar-label{font-size:11px;letter-spacing:1.6px;color:var(--muted);font-weight:800;padding:0 18px 12px}
.desktop-nav{display:flex;flex-direction:column;gap:5px}
.nav-link{display:flex;align-items:center;gap:13px;text-align:left;border:0;background:transparent;color:var(--muted);border-radius:14px;padding:14px 16px;font-weight:670;min-height:49px;transition:.15s;white-space:nowrap}
.nav-link:hover{background:var(--surface2);color:var(--text)}
.nav-link.active{background:var(--primary-soft);color:var(--primary)}
.nav-link span{flex:1}
.nav-counter{display:inline-flex;justify-content:center;align-items:center;min-width:20px;padding:2px 6px;border-radius:8px;color:#fff;background:#d88b5a;font-size:11px}
.sidebar-bottom{margin-top:auto;padding:15px 7px}
.side-peek{padding:18px 15px;background:var(--surface2);border:1px solid var(--border);border-radius:16px;display:flex;flex-direction:column;gap:5px}
.side-peek-icon{color:var(--primary)}
.side-peek strong{font-size:12px}
.side-peek small{color:var(--muted);font-size:11px}
.mobile-header,.mobile-nav{display:none}
.main-content{flex:1;min-width:0;max-width:1420px;width:100%;margin:auto;padding:49px clamp(24px,4vw,68px) 86px}
.page-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:27px;flex-wrap:wrap}
.page-head h1{font-size:29px;line-height:1.3;font-weight:830;margin:3px 0 8px;letter-spacing:-1.5px}
.eyebrow{color:var(--primary);font-weight:790;font-size:10px;letter-spacing:2px;margin:0;text-transform:uppercase}
.subtitle{margin:0;color:var(--muted);font-size:13px;line-height:1.55}
.head-right{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.btn{border:0;display:inline-flex;justify-content:center;align-items:center;gap:7px;padding:12px 17px;border-radius:11px;font-weight:760;min-height:43px;line-height:1.3;transition:filter .14s,transform .14s;background:var(--primary);color:white;white-space:nowrap}
.btn:hover,.icon-btn:hover{filter:brightness(.95);transform:translateY(-1px)}
.btn-primary{background:var(--primary);color:white}
.btn-secondary,.btn-light{background:var(--primary-soft);color:var(--primary)}
.btn-light{background:white;color:#176b5f}
.btn-ghost{background:var(--surface2);color:var(--text);border:1px solid var(--border)}
.btn-small{min-height:36px;padding:8px 12px;font-size:12px}
.btn-danger-outline{background:transparent;color:var(--danger);border:1px solid var(--danger)}
.period-nav{display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:5px 6px;border:1px solid var(--border);border-radius:13px;background:var(--surface);min-height:44px}
.period-nav span{font-weight:710;font-size:12px;min-width:80px;text-align:center;line-height:1.2}
.icon-btn{display:inline-grid;place-items:center;width:36px;height:36px;border:0;background:transparent;color:var(--muted);border-radius:10px}
.icon-btn.small{width:30px;height:30px}
.hero-panel{height:238px;position:relative;overflow:hidden;display:flex;align-items:center;padding:33px 39px;background:linear-gradient(110deg,#17675d 0%,#239081 62%,#37a38c 100%);border-radius:var(--radius);color:#fff;box-shadow:0 16px 32px #217d7124}
.hero-content{position:relative;z-index:2}
.eyebrow.light{color:#c7efdf;letter-spacing:.7px;font-size:13px;font-weight:650}
.hero-total{font-size:43px;font-weight:850;letter-spacing:-2px;margin:6px 0 5px}
.hero-content p{color:#c9ede4;margin:0;font-size:12px}
.hero-content p strong{color:#fff;font-weight:700}
.hero-action{background:rgba(255,255,255,.15);border:1px solid #fff6;color:white;border-radius:10px;padding:10px 12px;margin-top:23px;display:inline-flex;align-items:center;gap:10px;font-size:12px;font-weight:720}
.hero-decor{position:absolute;right:20px;top:0;height:100%;width:47%;pointer-events:none}
.hero-circle{border-radius:100%;position:absolute;border:1px solid rgba(255,255,255,.24)}
.hero-circle.c1{width:320px;height:320px;right:0;top:-170px;background:#ffffff0d}
.hero-circle.c2{width:190px;height:190px;right:140px;bottom:-100px;background:#ffffff07}
.hero-curve{position:absolute;right:0;bottom:20px;width:220px}
.summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0 25px}
.metric-card{border:1px solid var(--border);border-radius:18px;background:var(--surface);padding:22px;box-shadow:var(--shadow);min-width:0}
.metric-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;margin-bottom:14px}
.metric-icon.positive{background:#e7f7ef;color:#23775a}
.metric-icon.negative{background:#fff0e8;color:#c67658}
.metric-icon.violet{background:#f1edfc;color:#8772c7}
.metric-label{font-size:13px;color:var(--muted);font-weight:670}
.metric-value{font-size:23px;font-weight:850;letter-spacing:-.9px;margin-top:7px;word-break:break-word}
.metric-value.negative{color:var(--danger)}
.metric-card p{margin:9px 0 0;color:var(--muted);font-size:11px}
.mini-progress{background:var(--border);height:6px;margin-top:16px;border-radius:10px;overflow:hidden}
.mini-progress i{display:block;background:#51b6a1;height:100%;border-radius:10px}
.attention-card{display:flex;align-items:center;gap:17px;background:#fff8ed;border:1px solid #fae7cc;padding:19px 23px;border-radius:17px;margin-bottom:26px;color:#594a39}
.attention-icon{color:#c18a3d;background:#ffefca;border-radius:14px;padding:13px}
.attention-card div:nth-child(2){flex:1}
.attention-card h3{margin:0 0 5px;font-size:14px}
.attention-card p{margin:0;font-size:12px;color:#987f5c}
.home-columns,.analytics-grid,.calendar-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:20px;align-items:start}
.panel{min-width:0;border:1px solid var(--border);background:var(--surface);border-radius:19px;padding:24px 23px;box-shadow:var(--shadow);margin-bottom:20px}
.panel.no-gap{padding:0;overflow:hidden}
.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:18px}
.section-heading h2{font-size:16px;letter-spacing:-.4px;margin:0 0 6px;font-weight:800}
.section-heading p{margin:0;color:var(--muted);font-size:12px}
.text-btn{border:0;color:var(--primary);background:transparent;display:inline-flex;align-items:center;gap:3px;white-space:nowrap;font-size:12px;font-weight:720;padding:2px}
.transaction-list{display:flex;flex-direction:column}
.transaction-row{display:flex;align-items:center;gap:13px;padding:13px 0;border-bottom:1px solid var(--border);min-width:0}
.transaction-row:first-child{padding-top:4px}
.transaction-row:last-child{border-bottom:0}
.transaction-icon{width:40px;height:40px;background:var(--icon-bg,#eee);border-radius:13px;display:grid;place-items:center;flex-shrink:0;font-size:18px;color:#287365}
.transaction-info{flex:1;min-width:0}
.transaction-name{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-weight:740;font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.transaction-info p{margin:6px 0 0;font-size:11px;color:var(--muted);overflow-wrap:anywhere}
.transaction-tail{text-align:right;min-width:fit-content}
.transaction-amount{font-weight:790;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}
.transaction-amount.negative{color:#cf745b}
.transaction-amount.positive{color:#159a7a}
.transaction-amount.neutral{color:var(--muted)}
.row-actions{display:flex;justify-content:flex-end;margin-top:5px;gap:3px}
.row-actions button{width:27px;height:27px;border:0;background:transparent;color:var(--muted);display:grid;place-items:center;border-radius:7px}
.row-actions button:hover{background:var(--surface2);color:var(--text)}
.pill{font-size:10px;font-weight:700;color:var(--muted);background:var(--surface2);border-radius:5px;padding:3px 6px}
.pill.warning{background:#fff1d9;color:#a4762d}
.pill.danger{background:#ffe8e8;color:#bb5353}
.donut-section{display:flex;align-items:center;justify-content:center;gap:18px;margin:24px auto;flex-wrap:wrap}
.donut{width:175px;height:175px;border-radius:50%;display:grid;place-items:center;flex-shrink:0}
.donut-center{background:var(--surface);width:120px;height:120px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.donut-center span{color:var(--muted);font-size:11px}
.donut-center strong{font-size:14px;letter-spacing:-.4px;margin-top:6px}
.donut-legend{min-width:145px;flex:1;max-width:260px}
.donut-legend>div{display:flex;align-items:center;gap:7px;padding:6px 0;font-size:11px}
.donut-legend span:nth-child(2){flex:1;color:var(--muted)}
.donut-legend strong{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:11px}
.legend-dot{height:8px;width:8px;border-radius:3px;flex-shrink:0}
.quick-card{border:1px dashed var(--border);background:var(--surface2);display:flex;gap:12px;align-items:center;border-radius:12px;padding:13px}
.quick-card>span{color:var(--primary)}
.quick-card strong{font-size:12px}
.quick-card p{font-size:11px;color:var(--muted);margin:4px 0 0}
.empty{padding:31px 13px;text-align:center;color:var(--muted)}
.empty-icon{font-size:30px;display:block;margin-bottom:12px}
.empty h3{color:var(--text);font-size:15px;margin:0 0 7px}
.empty p{font-size:12px;margin:0 0 17px;line-height:1.6}
.starter-banner{margin-top:15px;background:var(--primary-soft);display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 24px;border-radius:15px}
.starter-banner strong{color:var(--primary)}
.starter-banner p{color:var(--muted);font-size:12px}
.tabs{display:flex;gap:6px;margin-bottom:18px;overflow-x:auto}
.tab{padding:11px 18px;border:1px solid transparent;color:var(--muted);font-weight:710;border-radius:12px;background:transparent;white-space:nowrap}
.tab.active{background:var(--surface);border-color:var(--border);color:var(--primary);box-shadow:var(--shadow)}
.count-chip{background:#fce5d0;color:#bb7a3b;border-radius:9px;padding:1px 6px;font-size:11px}
.filterbar{display:flex;gap:13px;align-items:center;padding:18px 21px;border-bottom:1px solid var(--border);flex-wrap:wrap}
.search-field{display:flex;align-items:center;gap:9px;padding:0 12px;background:var(--surface2);border:1px solid var(--border);border-radius:11px;flex:1;min-width:220px;min-height:42px;color:var(--muted)}
.search-field input{flex:1;background:transparent;border:0;min-width:0;outline:0;color:var(--text);font-size:12px}
.filter-selects{display:flex;gap:7px;flex-wrap:wrap}
.filter-selects select{max-width:170px;min-height:39px;background:var(--surface);border:1px solid var(--border);border-radius:9px;color:var(--text);padding:6px 8px;font-size:12px}
.list-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 22px;color:var(--muted);font-size:12px}
.list-head strong{color:var(--primary)}
.list-head>div{display:flex;gap:7px}
.transaction-list.full{padding:0 22px 14px}
.transaction-list.full .transaction-row{padding:16px 0}
.centered{text-align:center;padding:20px}
.calendar-layout{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
.calendar-panel{padding:19px}
.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.calendar-weekdays{margin-bottom:10px}
.calendar-weekdays span{font-weight:700;font-size:11px;color:var(--muted);text-align:center;padding:8px 0}
.day-cell{background:var(--surface2);min-height:92px;padding:12px 8px;border:1px solid transparent;border-radius:10px;display:flex;flex-direction:column;text-align:left;gap:5px;color:var(--text);font-size:12px;font-weight:770;overflow:hidden}
.day-cell.muted{background:transparent;pointer-events:none}
.day-cell.today{border-color:#65b2a0}
.day-cell.selected{background:var(--primary-soft);border-color:var(--primary)}
.day-cell small{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;font-weight:700}
.day-expense{color:#d77a62}
.day-income{color:#238e75}
.calendar-note{margin-top:18px;display:flex;gap:9px;align-items:center;color:var(--muted);font-size:11px;line-height:1.4}
.analytic{margin-top:0}
.bar-chart{display:flex;align-items:end;justify-content:space-around;gap:12px;min-height:242px;padding-top:12px}
.bar-item{flex:1;min-width:0;display:flex;flex-direction:column;gap:9px;align-items:center;justify-content:end;height:228px}
.bar-item strong{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}
.bar-track{height:164px;width:min(42px,95%);display:flex;align-items:end;background:var(--surface2);border-radius:8px;overflow:hidden}
.bar-fill{width:100%;background:linear-gradient(#52bba5,#2d8578);border-radius:8px 8px 0 0}
.bar-item small{font-weight:720;color:var(--muted)}
.category-meter{display:grid;grid-template-columns:1fr 155px;align-items:center;gap:10px;margin:21px 0}
.category-name{display:flex;align-items:center;gap:10px}
.category-emoji{font-size:20px}
.category-name strong{display:block;font-size:13px}
.category-name small{display:block;color:var(--muted);margin-top:4px}
.category-amount{display:flex;align-items:center;gap:3px;justify-content:flex-end}
.category-amount strong{font-size:13px}
.category-bar{height:6px;background:var(--surface2);border-radius:10px;grid-column:1/-1;overflow:hidden}
.category-bar i{display:block;height:100%;border-radius:10px}
.asset-hero{background:linear-gradient(110deg,#213d3a,#35796d);border-radius:19px;color:#fff;padding:34px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px;flex-wrap:wrap}
.asset-hero span{font-size:12px;color:#b1d7cc;font-weight:700}
.asset-hero h2{font-size:36px;margin:9px 0;letter-spacing:-1px}
.asset-hero small{color:#d3e4df}
.account-section{margin-bottom:22px}
.account-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.account-card{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:22px;min-width:0;box-shadow:var(--shadow)}
.account-top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px}
.account-symbol{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:#e9f2f1;font-size:21px}
.account-symbol.card{background:#f4ecfc}
.account-symbol.cash{background:#e6f5e9}
.account-name{display:flex;align-items:center;gap:7px;margin-bottom:10px;font-size:12px;color:var(--muted)}
.account-balance{font-size:24px;letter-spacing:-.8px}
.account-card p{font-size:11px;color:var(--muted);margin-top:12px;line-height:1.6}
.info-strip{display:flex;align-items:center;gap:15px}
.info-strip>div{color:var(--primary)}
.info-strip p{flex:1;line-height:1.7;font-size:12px;color:var(--muted)}
.info-strip p strong{color:var(--text)}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.settings-grid .panel{margin:0}
.form-stacked{display:flex;flex-direction:column;gap:16px}
.form-stacked>label,.form-grid>label{display:flex;flex-direction:column;gap:8px;color:var(--text);font-size:12px;font-weight:680}
.form-stacked input:not([type=radio]),.form-stacked textarea,.form-stacked select,.form-grid input,.form-grid select{border:1px solid var(--border);padding:12px 13px;min-height:44px;border-radius:11px;background:var(--surface2);color:var(--text);width:100%;outline:none}
.form-stacked input:focus,.form-stacked textarea:focus,.form-stacked select:focus{border-color:var(--primary)}
.form-stacked textarea{resize:vertical;line-height:1.6}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.form-note,.import-help{line-height:1.65;color:var(--muted);font-size:12px;margin:0;background:var(--surface2);border-radius:11px;padding:13px}
.import-help p{margin:0}
.import-help ul{padding-left:20px}
.import-help code{font-size:11px}
.category-settings{max-height:385px;overflow:auto;display:flex;flex-direction:column}
.category-settings>div{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);min-height:41px;font-size:12px}
.category-settings>div:last-child{border:0}
.category-settings small{color:var(--muted);margin-left:7px}
.settings-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.settings-actions .btn{font-size:12px;white-space:normal}
.notice-box{margin-top:20px;background:var(--surface2);padding:14px;border-radius:11px;display:flex;align-items:flex-start;gap:10px;color:var(--muted);font-size:11px;line-height:1.7}
.notice-box svg{color:#bb9255}
.data-stats{margin:22px 0;font-size:12px;color:var(--muted)}
.data-stats strong{color:var(--text)}
.text-danger{border:0;background:transparent;color:var(--danger);font-weight:750;font-size:12px;padding:8px 0}
.settings-about{line-height:1.7;font-size:12px;color:var(--muted)}
.settings-about strong{color:var(--text)}
.inline-link{display:inline-flex;align-items:center;gap:4px;color:var(--primary);font-weight:700;margin-top:15px}
.modal-open{overflow:hidden}
.modal-backdrop{z-index:110;position:fixed;inset:0;background:#0e201fcc;display:grid;place-items:center;padding:22px;overflow:auto}
.dialog{width:min(100%,570px);background:var(--surface);border-radius:23px;padding:23px 26px;box-shadow:0 30px 100px #0005;max-height:min(92vh,860px);overflow:auto;overscroll-behavior:contain}
.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:21px}
.dialog-head h2{font-size:21px;letter-spacing:-.6px;margin:4px 0 0}
.dialog-content{min-width:0}
.transaction-kind-fieldset{border:0;margin:0;padding:0;min-width:0}
.transaction-kind-fieldset legend{font-size:12px;font-weight:780;margin-bottom:9px;color:var(--text)}
.primary-kinds{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.primary-kinds label{min-width:0}
.primary-kinds span{display:flex!important;align-items:center;justify-content:center;gap:7px;min-height:52px;font-size:15px!important;font-weight:800!important}
.primary-kinds label:has(input[value="expense"]:checked) span{background:#fff0ec;border-color:var(--danger);color:var(--danger)}
.primary-kinds label:has(input[value="income"]:checked) span{background:var(--primary-soft);border-color:var(--primary);color:var(--primary)}
.other-transaction-kinds{margin-top:9px}
.other-transaction-kinds summary{font-size:11px;color:var(--muted);cursor:pointer;padding:5px 1px;list-style-position:inside}
.other-transaction-kinds[open] summary{margin-bottom:7px}
.secondary-kinds span{font-size:11px}
.type-selector{display:flex;gap:7px;flex-wrap:wrap}
.type-selector label{flex:1;min-width:72px}
.type-selector input{position:absolute;opacity:0;width:1px;height:1px}
.type-selector span{display:block;text-align:center;background:var(--surface2);border:1px solid var(--border);padding:10px 3px;border-radius:10px;font-weight:730;font-size:11px}
.type-selector input:checked+span{background:var(--primary-soft);border-color:var(--primary);color:var(--primary)}
.type-selector input:focus-visible+span{outline:3px solid #74bbac}
.amount-entry{display:flex;align-items:center;position:relative}
.amount-entry input{padding-right:32px!important;font-size:18px;font-weight:800;font-variant-numeric:tabular-nums}
.amount-entry>span{position:absolute;right:12px;color:var(--muted)}
.calc-result{font-weight:500;color:var(--muted);font-size:11px}
.calc-result.success{color:var(--primary)}
.muted-hint{color:var(--muted);font-weight:400}
.attached-image img{max-width:160px;max-height:100px;object-fit:contain;border-radius:9px;border:1px solid var(--border);display:block}
.attached-image button{margin-top:4px}
.dialog .form-actions{position:sticky;bottom:-1px;background:var(--surface);z-index:2;padding-bottom:7px}
.form-actions{display:flex;justify-content:flex-end;align-items:center;gap:9px;flex-wrap:wrap;border-top:1px solid var(--border);padding-top:19px;margin-top:5px}
.import-preview{max-height:315px;overflow:auto;margin:12px 0}
.preview-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:11px 2px;border-bottom:1px solid var(--border);font-size:12px}
.preview-row strong{flex:1}
.preview-row span{font-size:11px;color:var(--muted)}
.toast{position:fixed;bottom:25px;right:28px;background:#23463f;color:#fff;border-radius:13px;padding:13px 19px;display:flex;align-items:center;gap:10px;font-size:12px;font-weight:700;box-shadow:0 12px 36px #0003;transform:translateY(120px);opacity:0;transition:transform .24s,opacity .24s;max-width:390px;line-height:1.5;z-index:150;pointer-events:none}
.toast.show{transform:translateY(0);opacity:1}
.toast.error{background:#9d463f}
.boot-error{max-width:650px;margin:20vh auto;background:var(--surface);border:1px solid var(--border);border-radius:19px;padding:42px;text-align:center}
.boot-error h1{font-size:22px}
.boot-error p{color:var(--muted)}

@media(max-width:1180px){.sidebar{width:210px}
.main-content{padding:34px 25px 75px}
.home-columns,.analytics-grid{grid-template-columns:1fr}
.calendar-layout{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
.settings-grid{grid-template-columns:1fr 1fr}
.donut-legend{max-width:390px}
}

@media(max-width:830px){.sidebar{display:none}
.mobile-header{display:flex;position:sticky;top:0;z-index:20;justify-content:space-between;align-items:center;background:var(--surface);border-bottom:1px solid var(--border);height:57px;padding:0 19px}
.mobile-header .mobile-brand{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:780}
.mobile-header .brand-symbol{width:30px;height:30px;border-radius:11px;font-size:17px}
.mobile-header .mobile-sub{font-size:11px;font-weight:650;color:var(--muted)}
.main-content{padding:25px 18px 105px;max-width:730px}
.mobile-nav{display:grid;grid-template-columns:repeat(6,1fr);position:fixed;z-index:30;bottom:0;left:0;right:0;padding:8px 5px max(8px,env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--border);box-shadow:0 -3px 15px #0001}
.mobile-nav .nav-link{padding:5px 1px;min-height:47px;display:flex;flex-direction:column;gap:3px;font-size:9px;font-weight:720;text-align:center}
.mobile-nav .nav-link svg{width:19px;height:19px}
.mobile-nav .nav-counter{position:absolute;margin-left:28px;margin-top:-4px;font-size:8px;min-width:13px;padding:1px 3px}
.mobile-nav .nav-link span{flex:unset}
.calendar-layout{grid-template-columns:1fr}
.toast{bottom:88px;right:12px;left:12px;max-width:none}
.page-head h1{font-size:25px}
.hero-panel{height:208px}
.hero-total{font-size:36px}
.settings-grid{grid-template-columns:1fr 1fr}
}

@media(max-width:560px){.page-head{align-items:flex-start;margin-bottom:19px;gap:12px}
.page-head h1{font-size:24px}
.subtitle{font-size:12px}
.head-right{width:100%;justify-content:space-between}
.head-right .btn{flex:1}
.period-nav{min-width:0;flex:1}
.period-nav span{min-width:0}
.hero-panel{height:196px;padding:25px 23px;border-radius:18px}
.hero-total{font-size:31px}
.hero-decor{opacity:.75}
.hero-content p{font-size:11px}
.hero-action{margin-top:19px}
.summary-grid{gap:9px;margin:12px 0 16px}
.metric-card{padding:14px 11px;border-radius:13px}
.metric-icon{width:28px;height:28px;border-radius:8px;margin-bottom:12px}
.metric-label{font-size:10px}
.metric-value{font-size:15px;letter-spacing:-.6px}
.metric-card p{font-size:9px;margin-top:8px;line-height:1.45}
.mini-progress{margin-top:8px}
.attention-card{padding:14px;gap:8px;flex-wrap:wrap}
.attention-icon{padding:8px}
.attention-card h3{font-size:12px}
.attention-card p{font-size:10px}
.attention-card .btn{margin-left:auto;min-height:32px;font-size:10px}
.panel{padding:19px 16px;border-radius:15px;margin-bottom:14px}
.section-heading h2{font-size:15px}
.home-columns,.analytics-grid{gap:0}
.donut{width:150px;height:150px}
.donut-center{width:106px;height:106px}
.donut-center strong{font-size:12px}
.transaction-row{gap:8px}
.transaction-icon{width:35px;height:35px;font-size:16px;border-radius:10px}
.transaction-name{font-size:12px}
.transaction-info p{font-size:10px}
.transaction-amount{font-size:11px}
.transaction-list.full{padding:0 15px 10px}
.transaction-list.full .transaction-row{padding:14px 0}
.filterbar{padding:13px;gap:8px}
.filter-selects{width:100%}
.filter-selects select{flex:1;min-width:0;width:33%;font-size:11px}
.search-field{min-width:100%}
.list-head{padding:12px 15px}
.list-head .btn{padding:7px;font-size:10px}
.tabs{margin-bottom:12px}
.tab{font-size:12px;padding:9px 12px}
.day-cell{min-height:67px;padding:7px 4px;border-radius:8px;font-size:11px}
.calendar-grid{gap:3px}
.day-cell small{font-size:8px;letter-spacing:-.3px}
.calendar-panel{padding:11px}
.category-meter{grid-template-columns:1fr 95px}
.category-name strong{font-size:11px}
.category-amount strong{font-size:11px}
.asset-hero{padding:25px}
.asset-hero h2{font-size:30px}
.settings-grid{grid-template-columns:1fr;gap:14px}
.settings-actions{grid-template-columns:1fr 1fr}
.settings-actions .btn{font-size:10px;padding:8px}
.dialog{padding:19px 16px;border-radius:17px;max-height:90vh}
.modal-backdrop{padding:10px}
.form-grid{gap:9px}
.form-stacked{gap:12px}
.form-stacked>label{font-size:11px}
.form-stacked input:not([type=radio]),.form-stacked select,.form-stacked textarea{font-size:13px;min-height:42px;padding:10px}
.type-selector{gap:5px}
.type-selector label{min-width:55px}
.type-selector span{font-size:10px;padding:10px 2px}
.form-actions .btn{padding:11px 13px}
.starter-banner{align-items:stretch;flex-direction:column}
.info-strip{flex-wrap:wrap}
.info-strip .btn{margin-left:auto}
}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}
*,*::before,*::after{transition:none!important;animation:none!important}
}

/* Account, Firebase sync and Korean social sign-in */
.sidebar-account-btn{margin:12px 8px 0;width:calc(100% - 16px);border:1px solid var(--border);background:var(--surface2);color:var(--text);border-radius:11px;min-height:42px;display:flex;align-items:center;gap:8px;justify-content:center;font-weight:720;font-size:11px;cursor:pointer}

.account-panel{margin:0 0 18px}
.account-panel .section-heading{align-items:center}
.account-panel h2{font-size:17px}

.social-login-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}

.social-btn{border:1px solid var(--border);border-radius:11px;padding:12px 8px;min-height:48px;font-size:12px;font-weight:800;cursor:pointer;display:flex;gap:7px;align-items:center;justify-content:center}

.social-kakao{background:#fee500;color:#191919;border-color:#fee500}

.social-naver{background:#03c75a;color:#fff;border-color:#03c75a}

.social-google{background:#fff;color:#222;border-color:#ddd}

.social-btn:focus-visible,.sidebar-account-btn:focus-visible{outline:3px solid var(--primary);outline-offset:2px}

.social-btn:hover{filter:brightness(.97)}

.privacy-note{font-size:11px;line-height:1.75;color:var(--muted);margin:11px 0 0}

.cloud-indicator{display:inline-flex;font-size:11px;border-radius:99px;padding:5px 9px;font-weight:750;white-space:nowrap}

.cloud-indicator.ok{background:#e7f6ec;color:#247049}
.cloud-indicator.warn{background:#fff0d8;color:#925b0d}

.account-prompt{border:1px solid var(--border);background:var(--surface);border-radius:12px;padding:12px 16px;font-size:12px;display:flex;align-items:center;gap:8px;margin:0 0 15px;color:var(--muted);flex-wrap:wrap}

.account-prompt button{border:0;color:var(--primary);font-weight:800;background:transparent;cursor:pointer}

@media(max-width:700px){.social-login-grid{grid-template-columns:1fr}
.social-btn{min-height:44px}
.account-panel .section-heading{flex-wrap:wrap}
.account-panel .settings-actions{grid-template-columns:1fr}
}


.social-apple{background:#151515;color:#fff;border-color:#151515}

@media(min-width:701px){.social-login-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}



/* 2026-10-23 Household Budget App Redesign · pastel piggy-bank brand */
:root{
 --bg:#fff8f7;--surface:#fff;--surface2:#fff3f4;--text:#292935;--muted:#8f8992;
 --border:#f3e3e5;--primary:#ff637e;--primary2:#ff8b78;--primary-soft:#fff0f3;
 --strong:#312a31;--shadow:0 12px 34px rgba(122,68,82,.08);--danger:#ef6172;
 --green:#26a979;--purple:#8c72d7;--radius:26px;
}
:root[data-theme="dark"]{
 --bg:#21191d;--surface:#2b2227;--surface2:#35282f;--text:#fff6f7;--muted:#cbb7bd;
 --border:#4c3941;--primary:#ff8298;--primary2:#ffa18f;--primary-soft:#4a2b35;
 --strong:#fff9fa;--shadow:0 14px 38px #0004;--danger:#ff8b9a;--green:#66d3a8;--purple:#bca7ff;
}
body{background:
 radial-gradient(circle at 15% 5%,rgba(255,197,205,.24),transparent 28%),
 radial-gradient(circle at 88% 8%,rgba(255,222,182,.22),transparent 26%),
 var(--bg);}
.sidebar{background:rgba(255,255,255,.92);backdrop-filter:blur(18px);border-right:1px solid #f5e2e5;padding-top:28px}
.brand{padding-bottom:28px}
.brand-symbol{overflow:hidden;background:transparent;box-shadow:0 9px 24px rgba(255,99,126,.22);border-radius:16px}
.brand-symbol img{width:100%;height:100%;display:block}
.brand-title{font-weight:900;color:#2f2930}
.brand-sub{color:#a18a92}
.sidebar-label{color:#c4a7ae}
.nav-link{border-radius:16px;padding:13px 15px}
.nav-link:hover{background:#fff5f6;color:#4a3840}
.nav-link.active{background:linear-gradient(135deg,#fff0f3,#fff7f0);color:#ec5872;box-shadow:inset 0 0 0 1px #ffe0e6}
.nav-counter{background:#ff7d83}
.side-peek{background:linear-gradient(145deg,#fff7f8,#fffaf4);border-color:#f7e1e5}
.sidebar-account-btn{border-color:#f1dfe3;background:#fff;color:#d94e68}
.main-content{max-width:1460px}
.page-head h1{font-weight:900;color:#292935;letter-spacing:-1.8px}
.eyebrow{color:#ff637e}
.btn-primary,.btn{background:linear-gradient(135deg,#ff637e,#ff8b78);box-shadow:0 8px 20px rgba(255,99,126,.20)}
.btn-secondary{background:#fff0f3;color:#e85570;box-shadow:none}
.btn-ghost{background:#fff;border-color:#f0e0e3}
.period-nav{border-color:#f0e0e3;box-shadow:0 6px 18px rgba(122,68,82,.05)}
.hero-panel{
 min-height:278px;height:auto;padding:38px 42px;background:
 radial-gradient(circle at 82% 24%,rgba(255,255,255,.9),rgba(255,255,255,.28) 26%,transparent 27%),
 linear-gradient(120deg,#fff1f4 0%,#fff7f2 46%,#ffe6df 100%);
 color:#2e2930;border:1px solid #f6d9df;box-shadow:0 18px 45px rgba(169,83,101,.11);
}
.eyebrow.light{color:#ee6079;font-weight:850;letter-spacing:.4px}
.hero-total{font-size:48px;color:#2b2930}
.hero-content p{color:#8b7b81;font-size:13px}
.hero-content p strong{color:#463940}
.hero-dot{display:inline-block;margin:0 8px;color:#e5a8b3}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}
.hero-action{margin-top:0;background:#fff;border:1px solid #f5d5db;color:#dd5a71;box-shadow:0 6px 16px rgba(122,68,82,.06)}
.hero-action.primary{background:linear-gradient(135deg,#ff637e,#ff8b78);color:white;border-color:transparent;box-shadow:0 9px 22px rgba(255,99,126,.20)}
.hero-mascot{position:absolute;right:40px;top:18px;width:280px;height:240px;display:grid;place-items:center}
.hero-mascot img{width:190px;height:190px;filter:drop-shadow(0 18px 24px rgba(173,83,101,.16))}
.hero-coin{position:absolute;right:18px;top:7px;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#ffd95d,#f2aa1c);border:6px solid #ffc846;color:#9b6000;font-weight:900;font-size:22px;transform:rotate(8deg);box-shadow:0 10px 18px rgba(183,121,16,.18)}
.hero-bubble{position:absolute;right:12px;bottom:12px;background:#fff;border:1px solid #f3dce0;border-radius:18px;padding:10px 14px;color:#7f6870;font-weight:780;font-size:11px;box-shadow:0 8px 20px rgba(122,68,82,.08)}
.hero-decor{display:none}
.summary-grid{gap:18px}
.metric-card{display:flex;align-items:center;gap:16px;padding:21px 22px;border:0;box-shadow:0 12px 28px rgba(91,63,72,.06)}
.metric-card.income{background:linear-gradient(145deg,#eff9ff,#f8fcff)}
.metric-card.expense{background:linear-gradient(145deg,#fff0f2,#fff8f8)}
.metric-card.budget{background:linear-gradient(145deg,#f3f0ff,#faf9ff)}
.metric-icon{margin:0;width:46px;height:46px;border-radius:15px}
.metric-icon.positive{background:#dff3ff;color:#2786bb}
.metric-icon.negative{background:#ffe1e6;color:#e65f75}
.metric-icon.violet{background:#ebe4ff;color:#8062ce}
.metric-label{font-size:12px}
.metric-value{font-size:24px;margin-top:4px}
.metric-card p{margin-top:5px}
.mini-progress{height:7px;background:#e6def7}
.mini-progress i{background:linear-gradient(90deg,#9a7ce0,#c8a9ee)}
.panel{border:1px solid #f2e4e6;border-radius:22px;box-shadow:0 12px 32px rgba(96,63,72,.055)}
.section-kicker{display:inline-flex;font-size:9px;letter-spacing:1.5px;color:#f1768a;font-weight:900;margin-bottom:5px}
.transaction-icon{border-radius:14px}
.transaction-row{border-color:#f2e7e9}
.transaction-amount.negative{color:#ed6175}
.transaction-amount.positive{color:#28a27c}
.donut-center{box-shadow:0 4px 18px rgba(122,68,82,.06)}
.quick-card.mascot-tip{border:0;background:linear-gradient(135deg,#fff1f4,#fff8ef);padding:15px 16px}
.quick-card.mascot-tip>span{font-size:28px}
.attention-card{background:linear-gradient(135deg,#fff9e8,#fff5ef);border-color:#f8dfc7}
.starter-banner{background:linear-gradient(135deg,#fff0f3,#fff8ed)}
.mobile-header{background:rgba(255,255,255,.92);backdrop-filter:blur(18px);border-bottom-color:#f2e1e4}
.mobile-nav{background:rgba(255,255,255,.96);backdrop-filter:blur(18px);border-top-color:#f2e1e4;box-shadow:0 -8px 28px rgba(104,67,78,.08)}
.mobile-nav .nav-link.active{background:transparent;box-shadow:none;color:#f15c76}
.mobile-nav .nav-link.active svg{background:#ffeef2;border-radius:12px;padding:5px;width:30px;height:30px}
.account-prompt{border-color:#f1dfe3;background:#fffafa}
.form-stacked input:focus,.form-stacked textarea:focus,.form-stacked select:focus{border-color:#ff8298;box-shadow:0 0 0 3px rgba(255,99,126,.10)}
.toast{background:#544048}
@media(max-width:830px){
 .brand-symbol img{width:100%;height:100%}
 .hero-panel{min-height:245px;padding:30px 25px}
 .hero-mascot{right:15px;width:210px;height:210px;opacity:.92}
 .hero-mascot img{width:150px;height:150px}
 .hero-bubble{display:none}
 .hero-coin{width:48px;height:48px;font-size:18px;right:8px}
 .hero-content{max-width:62%}
}
@media(max-width:560px){
 .main-content{padding-top:20px}
 .page-head h1{font-size:25px}
 .hero-panel{min-height:226px;padding:25px 20px;border-radius:22px}
 .hero-total{font-size:32px;letter-spacing:-1.4px}
 .hero-content{max-width:68%}
 .hero-content p{font-size:10px;line-height:1.6}
 .hero-actions{gap:7px;margin-top:17px}
 .hero-action{padding:9px 10px;font-size:10px}
 .hero-mascot{right:-4px;top:17px;width:155px;height:175px}
 .hero-mascot img{width:125px;height:125px}
 .hero-coin{right:0;top:0;width:42px;height:42px;border-width:4px;font-size:16px}
 .summary-grid{grid-template-columns:1fr;gap:9px}
 .metric-card{padding:14px 15px;border-radius:16px}
 .metric-icon{width:38px;height:38px}
 .metric-value{font-size:18px}
 .metric-card p{font-size:10px}
}


/* STITCH-MCP-HOUSEHOLD-BUDGET-20261023 */
:root{
  --bg:#FDF8F9;
  --surface:#FFFFFF;
  --surface2:#FFF6F7;
  --text:#2B1A1E;
  --muted:#7A686B;
  --border:#E8D5D8;
  --primary:#FF5E7E;
  --primary2:#FF7591;
  --primary-soft:#FFF0F3;
  --strong:#2B1A1E;
  --shadow:0 2px 16px rgba(0,0,0,.04);
  --danger:#FF4D71;
  --green:#10B981;
  --purple:#8B5CF6;
  --radius:28px;
}
:root[data-theme="dark"]{
  --bg:#21171b;--surface:#2d2025;--surface2:#38272d;--text:#fff7f8;--muted:#d2b9c0;
  --border:#543941;--primary:#ff7893;--primary2:#ff9b87;--primary-soft:#4a2933;--strong:#fff;
  --danger:#ff8298;--green:#56d4a2;--purple:#b6a1ff;
}
body{font-family:'Manrope',-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Noto Sans KR',sans-serif;background:var(--bg)}
h1,h2,h3,.brand-title,.hero-total,.metric-value,.transaction-name,.transaction-amount{font-family:'Epilogue','Manrope',sans-serif}
.sidebar{width:256px;padding:0 14px 14px;background:rgba(255,255,255,.97);border-right:1px solid rgba(232,213,216,.65);box-shadow:1px 0 16px rgba(255,94,126,.06)}
.brand{height:80px;padding:0 6px;gap:12px;border-bottom:1px solid rgba(243,228,230,.8)}
.brand-symbol{width:44px;height:44px;border-radius:16px;overflow:hidden;background:none;box-shadow:0 8px 24px rgba(255,94,126,.16)}
.brand-symbol img{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.02)}
.brand-title{font-size:18px;font-weight:800;letter-spacing:-.03em}
.brand-sub{font-size:12px;margin-top:5px;color:var(--muted)}
.sidebar-label{display:none}
.desktop-nav{gap:6px;margin-top:20px}
.nav-link{min-height:46px;padding:11px 15px;border-radius:16px;font-size:14px;font-weight:700;color:var(--muted)}
.nav-link:hover{background:#FFF6F7;color:var(--primary)}
.nav-link.active{background:linear-gradient(90deg,#FF5E7E,#FF7591);color:#fff;box-shadow:0 8px 24px rgba(255,94,126,.16)}
.nav-link.active svg{color:#fff}
.nav-counter{background:#fff;color:var(--primary)}
.sidebar-bottom{padding:8px 0 0}
.side-peek{background:linear-gradient(135deg,#FFF0F3,#FFF7E7);border:1px solid rgba(232,213,216,.7);border-radius:18px;padding:15px}
.sidebar-account-btn{border-color:#F1DFE3;background:#fff;color:#D94E68;border-radius:14px}
.main-content{max-width:1360px;padding:28px 32px 96px}
.page-head{margin-bottom:18px;align-items:flex-end}
.page-head h1{font-size:28px;font-weight:900;letter-spacing:-.035em;margin:4px 0 6px}
.eyebrow{display:inline-flex;background:#FFF0F3;padding:5px 10px;border-radius:999px;color:#FF5E7E;letter-spacing:.08em;font-size:10px}
.subtitle{font-size:14px;color:var(--muted)}
.period-nav{background:#FFF6F7;border-color:#F3E4E6;border-radius:14px}
.btn{border-radius:16px;background:linear-gradient(90deg,#FF5E7E,#FF7591);box-shadow:0 8px 24px rgba(255,94,126,.14)}
.btn-secondary,.btn-light{background:#FFF0F3;color:#FF5E7E;box-shadow:none}
.stitch-hero{min-height:260px;height:auto;border-radius:28px;padding:28px 32px;margin-bottom:22px;background:linear-gradient(110deg,#FF5E7E 0%,#FF6F8F 55%,#FFA278 100%);border:0;box-shadow:0 14px 34px rgba(255,94,126,.16);color:#fff}
.stitch-hero .hero-content{max-width:72%}
.hero-pills{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.hero-pills span{padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.24);font-size:12px;font-weight:800}
.hero-pills em{font-style:normal;font-size:12px;font-weight:650;color:rgba(255,255,255,.9)}
.hero-expense-label{font-size:14px;font-weight:750;color:rgba(255,255,255,.92)}
.stitch-hero .hero-total{font-size:42px;line-height:1.12;margin:7px 0 13px;color:#fff;font-variant-numeric:tabular-nums}
.hero-mini-row{display:flex;gap:8px;flex-wrap:wrap}
.hero-mini-row>span{display:inline-flex;gap:7px;align-items:center;padding:7px 11px;border-radius:12px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18);font-size:12px;color:rgba(255,255,255,.88)}
.hero-mini-row strong{color:#fff;font-weight:850}
.hero-actions{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}
.stitch-hero .hero-action{margin:0;padding:11px 16px;border-radius:16px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.24);color:#fff;font-weight:800}
.stitch-hero .hero-action.primary{background:#fff;color:#FF5E7E;border-color:#fff;box-shadow:0 8px 24px rgba(129,32,52,.12)}
.stitch-mascot{position:absolute;right:24px;top:22px;width:240px;height:220px;display:grid;place-items:center;opacity:.36}
.stitch-mascot img{width:220px;height:220px;object-fit:cover;border-radius:40px;box-shadow:none;transform:rotate(-2deg)}
.stitch-kpis{gap:20px;margin:0 0 22px}
.stitch-kpis .metric-card{display:block;background:#fff;border:1px solid rgba(232,213,216,.65);border-radius:24px;padding:22px 24px;box-shadow:0 2px 16px rgba(0,0,0,.04)}
.metric-head{display:flex;align-items:center;gap:8px}
.metric-head .metric-label{font-weight:800;color:var(--text);flex:1}
.metric-head .metric-icon{margin:0;width:38px;height:38px;border-radius:14px}
.metric-dot{width:10px;height:10px;border-radius:50%}
.metric-dot.blue{background:#3B82F6}.metric-dot.pink{background:#FF5E7E}.metric-dot.gold{background:#FFB800}
.stitch-kpis .metric-value{font-size:26px;margin-top:13px;font-weight:850;font-variant-numeric:tabular-nums}
.income-value{color:#1D4ED8}.expense-value{color:#FF5E7E}.budget-value{color:#B45309}
.stitch-kpis .metric-card p{padding-top:13px;margin-top:13px;border-top:1px solid #F3E4E6}
.metric-budget-foot{display:flex;justify-content:space-between;gap:10px;margin-top:11px;font-size:11px;color:var(--muted)}
.metric-budget-foot strong{color:#B45309}
.stitch-kpis .mini-progress{margin-top:9px;height:8px;background:#F8EEDD}
.stitch-kpis .mini-progress i{background:linear-gradient(90deg,#FBBF24,#F59E0B)}
.attention-card{border-radius:20px}
.stitch-split{grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:24px}
.panel{border-radius:24px;border:1px solid rgba(232,213,216,.65);box-shadow:0 2px 16px rgba(0,0,0,.04);padding:24px}
.stitch-section-heading h2{font-family:'Epilogue',sans-serif;font-size:18px;font-weight:800}
.stitch-section-heading p{font-size:12px}
.home-filter-pills{display:flex;gap:4px;background:#FFF6F7;border:1px solid #F3E4E6;border-radius:16px;padding:4px;margin:-3px 0 12px;width:max-content}
.home-filter-pills span{padding:6px 12px;border-radius:12px;font-size:11px;font-weight:750;color:var(--muted)}
.home-filter-pills .active{background:#FF5E7E;color:white}
.transaction-row{padding:12px 3px;border-color:#F3E4E6}
.transaction-icon{width:40px;height:40px;border-radius:16px}
.transaction-name{font-size:13px;font-weight:750}
.transaction-amount{font-weight:850}
.quick-add-row{width:100%;margin-top:10px;border:1px dashed #F0C8D0;background:#FFF8F9;color:#FF5E7E;border-radius:16px;padding:12px;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:800}
.insight-panel .donut{width:168px;height:168px}
.insight-panel .donut-center{width:114px;height:114px}
.mascot-tip{margin-top:12px;border:0!important;background:linear-gradient(135deg,#FFF0F3,#FFF9EC)!important;border-radius:18px!important}
.stitch-secondary-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:0}
.habit-badge{padding:6px 10px;border-radius:999px;background:#FFF0F3;color:#FF5E7E;font-size:11px;font-weight:800}
.habit-days{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin:12px 0}
.habit-days span{height:42px;display:grid;place-items:center;border-radius:14px;background:#FFF6F7;color:#B5A2A7;font-size:11px;font-weight:800}
.habit-days span.done{background:linear-gradient(135deg,#FF5E7E,#FF8B9D);color:#fff;box-shadow:0 5px 14px rgba(255,94,126,.16)}
.habit-note{background:#FFF9F1;border-radius:14px;padding:11px 13px;color:#8B6A41;font-size:12px;font-weight:700}
.habit-link{margin-top:13px}
.category-preview-list{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:8px}
.category-preview-item{display:flex;flex-direction:column;align-items:center;gap:7px;background:#FFF8F9;border-radius:16px;padding:12px 7px;border:1px solid #F6E8EA}
.category-preview-item b{font-size:23px}.category-preview-item em{font-style:normal;font-size:10px;font-weight:750;color:var(--muted);text-align:center}
.category-preview-foot{font-size:11px;color:var(--muted);margin:12px 0 0}
.starter-banner{background:linear-gradient(135deg,#FFF0F3,#FFF9EC);border-radius:20px}
.text-btn{color:#FF5E7E}
.tabs .tab.active{color:#FF5E7E;border-color:#F0D7DC}
.search-field:focus-within{border-color:#FF7F98;box-shadow:0 0 0 3px rgba(255,94,126,.09)}
.bar-fill{background:linear-gradient(#FF7D97,#FF5E7E)}
.day-cell.today{border-color:#FF8298}.day-cell.selected{background:#FFF0F3;border-color:#FF5E7E}
.asset-hero{background:linear-gradient(110deg,#FF5E7E,#FF8C79)}
.account-symbol{background:#FFF0F3}
@media(max-width:1180px){
 .stitch-split{grid-template-columns:1fr}
 .stitch-secondary-grid{grid-template-columns:1fr}
 .stitch-mascot{opacity:.28}
}
@media(max-width:830px){
 .main-content{padding:20px 18px 110px}
 .mobile-header .brand-symbol{overflow:hidden}
 .mobile-header .brand-symbol img{transform:scale(1.03)}
 .stitch-hero{min-height:238px;padding:24px}
 .stitch-hero .hero-content{max-width:72%}
 .stitch-mascot{right:5px;top:28px;width:170px;height:170px;opacity:.28}
 .stitch-mascot img{width:165px;height:165px;border-radius:32px}
 .stitch-kpis{grid-template-columns:1fr 1fr}
 .stitch-kpis .metric-card:last-child{grid-column:1/-1}
}
@media(max-width:560px){
 .page-head{margin-bottom:14px}
 .page-head h1{font-size:23px;line-height:1.25}
 .subtitle{font-size:12px}
 .stitch-hero{min-height:248px;padding:21px 18px}
 .stitch-hero .hero-content{max-width:78%}
 .hero-pills em{display:none}
 .stitch-hero .hero-total{font-size:31px}
 .hero-daily{display:none!important}
 .stitch-mascot{right:-10px;top:35px;width:132px;height:132px;opacity:.24}
 .stitch-mascot img{width:128px;height:128px;border-radius:26px}
 .stitch-kpis{grid-template-columns:1fr;gap:10px}
 .stitch-kpis .metric-card:last-child{grid-column:auto}
 .stitch-kpis .metric-card{padding:16px 17px;border-radius:19px}
 .stitch-kpis .metric-value{font-size:21px}
 .panel{border-radius:20px;padding:18px 16px}
 .home-filter-pills{max-width:100%;overflow-x:auto}
 .category-preview-list{grid-template-columns:repeat(3,1fr)}
 .habit-days{gap:5px}
 .habit-days span{height:36px;border-radius:11px}
}


/* STITCH-DETAIL-PASS-20261023 */
/* Category and financial icon system: one visual language across home, transactions, analytics, settings and assets. */
.category-icon-badge{
  --badge-bg:#F4F1F2;--badge-fg:#6B5D61;
  width:40px;height:40px;min-width:40px;border-radius:14px;
  display:inline-grid;place-items:center;
  background:var(--badge-bg);color:var(--badge-fg);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.66),0 1px 3px rgba(43,26,30,.03);
  vertical-align:middle;
}
.category-icon-badge .ico{width:19px;height:19px;stroke-width:1.85}
.tone-food{--badge-bg:#FFE4E8;--badge-fg:#E23C52}
.tone-cafe{--badge-bg:#FFEBD9;--badge-fg:#E67820}
.tone-grocery{--badge-bg:#E2F8EE;--badge-fg:#16875E}
.tone-transport{--badge-bg:#E3EFFF;--badge-fg:#2F6FDC}
.tone-living{--badge-bg:#E8F7EE;--badge-fg:#258258}
.tone-shopping{--badge-bg:#F0E9FF;--badge-fg:#7753C8}
.tone-health{--badge-bg:#E0F8F5;--badge-fg:#0B8C7B}
.tone-leisure{--badge-bg:#FCE8F3;--badge-fg:#C83C83}
.tone-bill{--badge-bg:#FFF3D8;--badge-fg:#B77608}
.tone-other{--badge-bg:#F0F2F5;--badge-fg:#667085}
.tone-salary{--badge-bg:#E6EEFF;--badge-fg:#315FCC}
.tone-side{--badge-bg:#FFF0D8;--badge-fg:#B96D08}
.tone-income{--badge-bg:#DFF7F2;--badge-fg:#088170}
.tone-refund{--badge-bg:#E1F8EC;--badge-fg:#138A59}
.tone-transfer{--badge-bg:#EEF1F4;--badge-fg:#667085}
.tone-repayment{--badge-bg:#F0E9FF;--badge-fg:#7753C8}

/* Transaction rows */
.transaction-icon.category-icon-badge{
  width:42px;height:42px;min-width:42px;border-radius:15px;
  background:var(--badge-bg)!important;color:var(--badge-fg)!important;font-size:0;
}
.transaction-row{gap:14px;padding:13px 4px}
.transaction-info p{margin-top:4px;color:#88767B}
.transaction-name{letter-spacing:-.01em}
.transaction-tail{padding-left:8px}
.transaction-amount{font-size:14px;letter-spacing:-.02em}
.transaction-amount.negative{color:#ED536F}
.transaction-amount.positive{color:#159A72}
.row-pending{background:linear-gradient(90deg,rgba(255,247,231,.75),transparent);border-radius:14px;padding-left:8px;padding-right:8px}

/* Home category preview */
.category-preview-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.category-preview-item{
  min-height:96px;padding:12px 7px 11px;border-radius:18px;
  background:#FFFDFD;border:1px solid #F4E5E8;
  justify-content:center;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.category-preview-item:hover{transform:translateY(-1px);border-color:#F0CCD4;box-shadow:0 7px 18px rgba(126,62,78,.06)}
.category-preview-icon{width:42px;height:42px;min-width:42px;border-radius:15px}
.category-preview-item em{font-size:11px;font-weight:750;line-height:1.25;color:#715F64}

/* Analytics: legend and meters reuse exact category badges */
.legend-category-icon{width:28px;height:28px;min-width:28px;border-radius:10px}
.legend-category-icon .ico{width:14px;height:14px}
.donut-legend>div{gap:9px;padding:5px 0}
.donut-legend span:nth-child(2){font-weight:650;color:#726166}
.donut-legend strong{font-family:'Epilogue','Manrope',sans-serif;font-weight:750}
.category-meter{grid-template-columns:minmax(0,1fr) 160px;margin:17px 0;gap:9px 12px}
.category-meter-icon{width:38px;height:38px;min-width:38px;border-radius:13px}
.category-name{gap:11px}
.category-name strong{font-family:'Epilogue','Manrope',sans-serif;font-size:13px;font-weight:750}
.category-name small{margin-top:3px;font-size:10px}
.category-bar{height:7px;background:#F8F0F2}
.category-bar i{box-shadow:inset 0 0 0 1px rgba(255,255,255,.15)}

/* Settings category rows */
.category-settings{gap:6px;max-height:410px}
.category-settings>div{
  min-height:54px;padding:7px 8px;border:1px solid transparent;border-radius:14px;
  transition:background .15s,border-color .15s;
}
.category-settings>div:hover{background:#FFF8F9;border-color:#F5E5E8}
.category-setting-main{display:flex;align-items:center;gap:11px;min-width:0}
.category-setting-main>span:last-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.category-setting-main strong{font-size:12px;font-weight:780;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.category-setting-main small{margin:0;font-size:10px}
.category-setting-icon{width:34px;height:34px;min-width:34px;border-radius:12px}
.category-setting-icon .ico{width:16px;height:16px}

/* Account cards now match the same SVG/badge family. */
.account-card{border-radius:22px;border-color:#F0E0E3;padding:22px 21px}
.account-top{margin-bottom:15px}
.account-symbol.category-icon-badge{width:46px;height:46px;min-width:46px;border-radius:16px;font-size:0;background:var(--badge-bg)!important;color:var(--badge-fg)!important}
.account-symbol.category-icon-badge .ico{width:21px;height:21px}
.account-balance{font-family:'Epilogue','Manrope',sans-serif;font-variant-numeric:tabular-nums;font-size:25px}
.account-name .pill{border-radius:8px;padding:4px 7px}

/* More exact Stitch component geometry. */
.page-head{padding-top:1px}
.page-head .head-right{gap:10px}
.period-nav{padding:4px 5px;min-height:42px;box-shadow:none}
.period-nav span{font-family:'Epilogue','Manrope',sans-serif;font-weight:750;min-width:100px}
.icon-btn{border-radius:11px}
.btn{min-height:42px;padding:10px 15px;font-size:13px;font-weight:800}
.stitch-hero{isolation:isolate}
.stitch-hero:before{
  content:"";position:absolute;inset:-40% -10% auto auto;width:420px;height:420px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.18),rgba(255,255,255,0) 68%);z-index:0
}
.stitch-hero:after{
  content:"";position:absolute;right:150px;bottom:-150px;width:310px;height:310px;border:1px solid rgba(255,255,255,.14);
  border-radius:50%;z-index:0
}
.stitch-mascot{z-index:1}
.stitch-mascot img{filter:saturate(.98) drop-shadow(0 16px 24px rgba(123,38,58,.13))}
.stitch-kpis .metric-card{min-height:154px}
.metric-head .metric-icon{box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)}
.metric-icon.positive{background:#E7F0FF;color:#2F6FDC}
.metric-icon.negative{background:#FFE8ED;color:#E74E68}
.metric-icon.violet{background:#FFF2D9;color:#B77608}
.stitch-section-heading{margin-bottom:15px}
.panel{overflow:hidden}
.home-filter-pills{margin-bottom:8px}
.quick-add-row{min-height:44px;transition:background .15s,border-color .15s,transform .15s}
.quick-add-row:hover{background:#FFF1F4;border-color:#EFBCC7;transform:translateY(-1px)}
.mascot-tip{min-height:66px}
.habit-panel,.category-preview{min-height:210px}
.habit-days span{border:1px solid #F5E7E9}
.habit-days span.done{border-color:transparent}
.habit-note{border:1px solid #FAE8CE}
.starter-banner{border:1px solid #F1DCE1}
.search-field,.filter-selects select,.form-stacked input:not([type=radio]),.form-stacked textarea,.form-stacked select,.form-grid input,.form-grid select{
  border-radius:13px;border-color:#EBDCDF;background:#FFFBFC;
}
.filter-selects select{padding:7px 10px}
.tabs{gap:5px}
.tab{border-radius:13px;padding:9px 15px}
.tab.active{background:#FFF0F3;border-color:#F4CCD5;box-shadow:none}
.pill{border-radius:7px}

/* Dark mode keeps category recognition without turning all badges neon. */
:root[data-theme="dark"] .category-preview-item,
:root[data-theme="dark"] .category-settings>div:hover{background:#33252A;border-color:#51373F}
:root[data-theme="dark"] .category-icon-badge{filter:saturate(.8) brightness(.9)}
:root[data-theme="dark"] .search-field,
:root[data-theme="dark"] .filter-selects select,
:root[data-theme="dark"] .form-stacked input:not([type=radio]),
:root[data-theme="dark"] .form-stacked textarea,
:root[data-theme="dark"] .form-stacked select,
:root[data-theme="dark"] .form-grid input,
:root[data-theme="dark"] .form-grid select{background:#33252A;border-color:#51373F}

@media(max-width:830px){
  .category-preview-list{grid-template-columns:repeat(4,minmax(0,1fr))}
  .category-preview-item{min-height:88px}
  .category-preview-icon{width:38px;height:38px;min-width:38px}
}
@media(max-width:560px){
  .category-preview-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .category-preview-item{min-height:84px;padding:10px 5px}
  .category-preview-item em{font-size:10px}
  .category-icon-badge{width:38px;height:38px;min-width:38px;border-radius:13px}
  .transaction-icon.category-icon-badge{width:40px;height:40px;min-width:40px}
  .category-meter{grid-template-columns:minmax(0,1fr) 112px}
  .category-setting-main{gap:9px}
}

.account-brand-row{display:flex;align-items:center;justify-content:space-between;gap:4px}
.account-brand-row>.brand{min-width:0;flex:1;padding-inline:0}
#desktopAccountSlot,#mobileAccountSlot{display:inline-flex;align-items:center;flex:none;min-width:48px;min-height:48px}
.account-panel .settings-actions button{min-height:48px;white-space:normal}
@media(max-width:830px){
 .mobile-header{min-height:calc(57px + env(safe-area-inset-top,0px));height:auto;padding-block-start:env(safe-area-inset-top,0px);padding-inline:max(12px,env(safe-area-inset-left,0px)) max(12px,env(safe-area-inset-right,0px))}
}
