@font-face{font-family:NeedMood;src:url('assets/NeedMoodNiuNiu.ttf') format('truetype');font-display:swap}*{box-sizing:border-box} :root{--cream:#f8f3e9;--paper:#fffdf7;--ink:#40372f;--muted:#9a8e7f;--coral:#c87564;--coral-light:#f3d5cd;--mint:#b9d1bd;--mint-deep:#78977e;--pink:#efd1cc;--sand:#e9d8b8;--line:#e7dfd1;--shadow:0 5px 18px rgba(97,76,52,.07)}body{margin:0;background:var(--cream);color:var(--ink);font-family:NeedMood,'PingFang SC','Microsoft YaHei',sans-serif;font-size:15px;-webkit-font-smoothing:antialiased}button,input,select{font:inherit;color:inherit}button{cursor:pointer;border:0}.app-shell{max-width:620px;margin:0 auto;min-height:100dvh;padding-bottom:calc(92px + env(safe-area-inset-bottom));background:var(--cream);position:relative}.topbar{height:76px;padding:12px 20px;display:flex;align-items:center;justify-content:space-between;background:rgba(255,253,247,.86);border-bottom:1px solid #eee5d8;position:sticky;top:0;z-index:5;backdrop-filter:blur(14px)}.brand{display:flex;align-items:center;gap:10px}.logo{font-family:system-ui;font-size:31px;line-height:1}.brand-name{font-size:18px;font-weight:700;letter-spacing:.2px}.brand-sub,.eyebrow,.mini-kicker{font-family:Georgia,serif;font-size:9px;letter-spacing:1.5px;color:#a28d79}.top-actions{display:flex;gap:9px;align-items:center}.icon-btn{width:39px;height:39px;border-radius:50%;background:#fffdf7;border:1px solid #e7dece;font-size:24px}.quick-add,.soft-btn{background:var(--coral);color:white;border-radius:30px;padding:10px 16px;box-shadow:0 3px 9px #c8756425}.quick-add{font-size:15px}.search-wrap{display:flex;padding:10px 18px;background:#fffaf1;gap:8px}.search-wrap input{flex:1;border:1px solid var(--line);border-radius:18px;padding:10px;background:white;outline:none}.search-wrap button{background:transparent}.hidden{display:none!important}main{padding:18px 17px 26px}.view{display:none}.view.active{display:block;animation:fade .22s ease}@keyframes fade{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:none}}.hello-row{display:flex;justify-content:space-between;align-items:center;padding:8px 3px 15px}.eyebrow{margin-bottom:6px}.hello-row h1,.page-title h1{font-size:24px;margin:0 0 5px;font-weight:600}.hello-row h1 span,.page-title h1 span{color:var(--coral)}.muted{color:var(--muted);font-size:12px;margin:0}.mood-sticker{width:60px;height:60px;border-radius:20px;background:#e6efe3;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:27px;transform:rotate(4deg);box-shadow:var(--shadow)}.mood-sticker small{font-size:10px;color:#82967c}.period-tabs{display:flex;gap:8px;margin:5px 0 14px}.period{padding:8px 17px;border-radius:11px 11px 4px 4px;background:#f0e5d5;color:#8c7c69}.period:nth-child(2){background:#f3dfdc}.period:nth-child(3){background:#e8eee1}.period.active{outline:1.5px solid #b8a88f;color:var(--ink);font-weight:bold;box-shadow:0 3px 0 #d9c9b2}.paper-card{background:var(--paper);border:1px solid #e8e0d2;border-radius:15px;box-shadow:var(--shadow);padding:17px;margin-bottom:17px;position:relative;background-image:radial-gradient(#e8e1d5 0.7px,transparent .7px);background-size:13px 13px}.summary-paper{padding:19px 17px 16px;border-radius:8px 13px 9px 13px}.tape{position:absolute;width:65px;height:18px;background:#edbcb4b9;top:-8px;left:25px;transform:rotate(-3deg);border-left:1px dashed #d9a49a;border-right:1px dashed #d9a49a}.paper-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.section-tag{display:inline-block;background:#f3d9d3;color:#a85f54;padding:4px 10px;font-size:12px;border-radius:3px;transform:rotate(-1deg)}.period-date{font-size:12px;color:#978a78}.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stat-label{font-family:Georgia,serif;font-size:10px;letter-spacing:1px;color:#a29381;display:block;margin-bottom:6px}.summary-grid strong{font-family:Georgia,serif;font-size:22px;display:block;white-space:nowrap}.income{color:#77977e}.expense{color:var(--coral)}.balance-strip{margin-top:15px;background:#eaf0e5;border-radius:9px;padding:10px 12px;display:flex;justify-content:space-between;align-items:center;color:#71866e;font-size:13px}.balance-strip strong{font-family:Georgia,serif;color:#526d58;font-size:17px}.budget-row{margin-top:15px}.budget-top{display:flex;justify-content:space-between;font-size:11px;color:#938674;margin-bottom:7px}.progress{height:8px;border-radius:9px;background:#eee5d9;overflow:hidden}.progress i{display:block;width:0;height:100%;background:linear-gradient(90deg,#a9c9ad,#d6b8a0);border-radius:9px;transition:width .3s}.section-heading{display:flex;justify-content:space-between;align-items:end;margin:22px 2px 11px}.section-heading h2{font-size:18px;margin:2px 0 0}.text-btn{background:transparent;color:#9b806f;font-size:12px;padding:4px}.chart-paper{padding:15px 13px}.chart-title{display:flex;justify-content:space-between;font-size:12px;margin-bottom:12px}.chart-legend{font-size:10px;color:#968a7a}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin:0 3px 0 7px}.mint{background:#a8c5ac}.coral{background:#d88c7e}.trend-chart{height:112px;display:flex;align-items:end;justify-content:space-around;gap:8px;border-bottom:1px solid #e8e0d5;padding:0 3px}.chart-day{height:100%;display:flex;flex-direction:column;justify-content:end;align-items:center;gap:5px;flex:1}.bar-pair{height:88px;display:flex;align-items:end;gap:3px}.bar{width:9px;max-height:88px;border-radius:5px 5px 1px 1px;background:#b8d0bb}.bar.out{background:#e4b0a6}.chart-day small{font-size:9px;color:#9e907f}.empty-chart{align-self:center;margin:auto;color:#aa9a88;font-size:12px}.transaction-list{display:flex;flex-direction:column;gap:9px}.tx-card{background:#fffdf8;border:1px solid #eae2d6;border-radius:12px;padding:12px;display:flex;align-items:center;gap:11px;box-shadow:0 3px 10px #78654b0a}.tx-icon{width:43px;height:43px;border-radius:50%;display:grid;place-items:center;background:#f6e8df;font-size:21px;flex-shrink:0}.tx-icon.income-bg{background:#e7efe4}.tx-info{min-width:0;flex:1}.tx-title{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tx-meta{font-size:10px;color:#a19484;margin-top:4px}.tx-amount{font-family:Georgia,serif;font-size:15px;white-space:nowrap}.tx-amount.out{color:#bd7165}.tx-amount.in{color:#78977e}.empty-state{text-align:center;padding:28px 12px;color:#a49583;background:#fffdf8;border:1px dashed #e5d9c8;border-radius:13px;font-size:13px}.empty-state b{display:block;font-size:24px;margin-bottom:6px}.page-title{padding:8px 3px 17px}.filter-row{display:flex;gap:7px;margin-bottom:13px}.filter-row select{min-width:0;flex:1;background:#fffdf8;border:1px solid #e7ddcf;border-radius:10px;padding:9px 7px;font-size:11px;outline:none}.savings-total{background:linear-gradient(135deg,#e8f0e5,#f4e7df);padding:20px}.big-number{font-family:Georgia,serif;font-size:29px;margin:7px 0;color:#5f7965}.goal-list{display:grid;gap:11px}.goal-card{background:#fffdf8;border:1px solid #e9dfd1;border-radius:14px;padding:15px;box-shadow:var(--shadow)}.goal-top{display:flex;justify-content:space-between;align-items:center}.goal-name{font-size:15px}.goal-emoji{font-size:22px;margin-right:8px}.goal-amount{font-family:Georgia,serif;color:#6f8b74;font-size:13px}.goal-progress{height:9px;background:#eee7dc;border-radius:9px;margin:12px 0 7px;overflow:hidden}.goal-progress i{height:100%;display:block;background:linear-gradient(90deg,#b5cfb8,#d9b7a8);border-radius:9px}.goal-foot{display:flex;justify-content:space-between;color:#a09280;font-size:10px}.goal-actions{display:flex;gap:7px;margin-top:12px}.goal-actions button{background:#f4eee4;border-radius:9px;padding:7px 11px;font-size:11px;color:#8d7966}.soft-btn{font-size:12px;padding:8px 12px}.stats-card{padding:19px}.breakdown{margin-top:16px;display:grid;gap:12px}.break-row{display:grid;grid-template-columns:95px 1fr 70px;align-items:center;gap:8px;font-size:12px}.break-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.break-track{height:8px;background:#f0e9df;border-radius:8px;overflow:hidden}.break-track i{display:block;height:100%;border-radius:8px;background:#b5cdb8}.break-value{text-align:right;color:#907d6c;font-family:Georgia,serif}.monthly-bars{display:flex;align-items:end;gap:9px;height:130px;padding:12px 0 0}.month-col{flex:1;height:100%;display:flex;flex-direction:column;justify-content:end;align-items:center;gap:5px}.month-pair{display:flex;align-items:end;gap:3px;height:95px}.month-pair i{display:block;width:9px;border-radius:4px 4px 0 0;background:#b6cfb8}.month-pair i:last-child{background:#e5b3a9}.month-col small{font-size:9px;color:#9d8e7d}.asset-hero{padding:23px;border-radius:16px;background:linear-gradient(135deg,#e7eee2,#f4e2d9);margin-bottom:18px}.asset-hero .big-number{font-size:32px}.asset-note{font-size:11px;color:#8d927c}.asset-list{display:grid;gap:10px}.asset-item{display:flex;align-items:center;gap:12px;padding:14px;background:#fffdf8;border:1px solid #e9dfd1;border-radius:12px}.asset-icon{width:42px;height:42px;display:grid;place-items:center;background:#f3e8dc;border-radius:13px;font-size:21px}.asset-info{flex:1}.asset-info b{font-size:14px}.asset-info small{display:block;color:#a09280;font-size:10px;margin-top:3px}.asset-value{font-family:Georgia,serif;color:#6d8c73}.profile-hero{display:flex;align-items:center;gap:16px;padding:22px 17px;background:linear-gradient(120deg,#e8efe4,#f4e4dd);border-radius:16px;margin-bottom:18px}.profile-leaf{font-family:system-ui;font-size:45px}.profile-hero h1{font-size:20px;margin:0 0 5px}.profile-hero p{font-size:11px;color:#958879;margin:0}.settings-list{background:#fffdf8;border:1px solid #e9dfd2;border-radius:14px;overflow:hidden}.settings-list button{width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:14px;background:transparent;border-bottom:1px solid #f0e9df}.settings-list button:last-child{border:0}.settings-list button>span:first-child{font-size:20px}.settings-list button>span:nth-child(2){flex:1}.settings-list b{display:block;font-size:13px;font-weight:500}.settings-list small{display:block;font-size:10px;color:#a09280;margin-top:3px}.settings-list strong{font-size:11px;color:#9b806f}.settings-list i{font-style:normal;color:#b7a996}.version-note{text-align:center;color:#b3a695;font-size:10px;line-height:1.8;padding:20px}.bottom-nav{position:fixed;z-index:8;bottom:0;left:50%;transform:translateX(-50%);width:min(620px,100%);padding:9px 9px calc(9px + env(safe-area-inset-bottom));height:calc(75px + env(safe-area-inset-bottom));background:rgba(248,242,231,.96);border-top:1px solid #e8ddcc;display:flex;justify-content:space-around;backdrop-filter:blur(15px)}.nav-item{background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#a79a89;min-width:58px}.nav-item span{font-size:22px;line-height:1.2}.nav-item small{font-size:10px}.nav-item.active{color:#b96658}.nav-item.active span{font-size:25px}.floating-add{position:fixed;z-index:7;bottom:calc(91px + env(safe-area-inset-bottom));right:max(22px,calc((100vw - 580px)/2));width:56px;height:56px;border-radius:50%;background:var(--coral);color:white;font-size:31px;box-shadow:0 5px 15px #a85d4e55;border:3px solid #fff8ef}.modal-backdrop{position:fixed;inset:0;z-index:20;background:#3d332b66;display:flex;align-items:end;justify-content:center}.modal{width:min(620px,100%);max-height:90dvh;overflow:auto;background:#fffaf1;border-radius:22px 22px 0 0;padding:10px 20px calc(22px + env(safe-area-inset-bottom));box-shadow:0 -8px 30px #4b3b2b20}.modal-grabber{width:38px;height:4px;border-radius:4px;background:#dfd2c1;margin:0 auto 16px}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.modal-header h2{margin:0;font-size:21px}.close-modal{width:32px;height:32px;border-radius:50%;background:#f1e8dc}.type-switch{display:flex;gap:8px;margin-bottom:14px}.type-switch button{flex:1;padding:10px;border-radius:10px;background:#f0e8dc;color:#8e806f}.type-switch button.active[data-type=expense]{background:#f0d7d1;color:#a85f53}.type-switch button.active[data-type=income]{background:#e1ecdf;color:#648269}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.field{margin-bottom:12px}.field.full{grid-column:1/-1}.field label{display:block;font-size:11px;color:#958675;margin-bottom:6px}.field input,.field select,.field textarea{width:100%;border:1px solid #e7ddcf;border-radius:11px;padding:11px;background:#fffefa;outline:none;font-size:16px}.field input:focus,.field select:focus,.field textarea:focus{border-color:#b8cbb7;box-shadow:0 0 0 3px #b8cbb722}.primary-btn{width:100%;background:var(--coral);color:white;padding:13px;border-radius:12px;margin-top:4px;box-shadow:0 4px 10px #c8756425}.secondary-btn{background:#eee7db;color:#867866;padding:9px 12px;border-radius:10px;font-size:12px}.toast{position:fixed;z-index:40;left:50%;bottom:calc(160px + env(safe-area-inset-bottom));transform:translate(-50%,12px);opacity:0;pointer-events:none;background:#51463b;color:#fffaf2;padding:10px 17px;border-radius:24px;font-size:12px;transition:.2s;white-space:nowrap}.toast.show{opacity:1;transform:translate(-50%,0)}.tx-card{cursor:pointer}.tx-card:active,.goal-card:active{transform:scale(.995)}
@media(min-width:620px){body{padding:20px 0}.app-shell{border-radius:25px;overflow:hidden;min-height:calc(100dvh - 40px);box-shadow:0 8px 40px #57442a17}.topbar{position:sticky}.bottom-nav{bottom:20px;border-radius:0 0 25px 25px}.floating-add{bottom:110px}.modal{border-radius:22px;margin-bottom:20px}.modal-backdrop{align-items:center}}


/* ===== Nicole's Account V2 · scrapbook journal polish ===== */
@font-face{font-family:NeedMood;src:url('assets/NeedMoodNiuNiu.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap}
:root{--cream:#f8f3e9;--paper:#fffdf8;--ink:#40372f;--muted:#9a8e7f;--coral:#bf7665;--coral-light:#f1d8d2;--mint:#b8cfbd;--mint-deep:#78947d;--pink:#efd4d0;--sand:#e8d7b7;--line:#e7dfd1;--shadow:0 8px 24px rgba(97,76,52,.065)}
/* Apply the uploaded typeface consistently to every interface element. */
html,body,button,input,select,textarea,.app-shell,.app-shell *:not(.logo):not(.emoji):not(svg):not(svg *){font-family:NeedMood,'PingFang SC',sans-serif!important}
body{background:#f8f3e9;color:#40372f;font-size:15px;letter-spacing:.015em}
.app-shell{max-width:620px;background:#f8f3e9;padding-bottom:calc(104px + env(safe-area-inset-bottom))}
.topbar{height:88px;padding:13px 20px;background:rgba(255,253,248,.96);border-bottom:1px solid #e9e0d2}
.brand{gap:13px}.logo{font-family:system-ui!important;font-size:35px}.brand-name{font-size:21px;letter-spacing:.12em;line-height:1.25;font-weight:600}.brand-sub{font-size:10px;letter-spacing:.17em;margin-top:5px}
.quick-add{padding:12px 18px;font-size:15px;border-radius:26px;background:#bf7665;box-shadow:0 5px 12px #bf766526}
.icon-btn{width:43px;height:43px;font-size:25px;border:1px solid #e6ddce}
main{padding:22px 18px 30px}
.hello-row{padding:12px 3px 20px;align-items:center}.eyebrow,.mini-kicker{font-size:11px;letter-spacing:.16em;color:#a48f7b}
.hello-row h1,.page-title h1{font-size:25px;line-height:1.55;letter-spacing:.06em;margin:9px 0 8px;font-weight:700}
.hello-row h1 span,.page-title h1 span{font-family:Georgia,serif!important;font-size:26px}
#todayLabel{font-size:13px;letter-spacing:.12em}
.mood-sticker{width:78px;height:78px;border-radius:28px;background:#e8efe4;font-size:31px}
.mood-sticker small{font-size:11px;letter-spacing:.12em}
.period-tabs{gap:9px;margin:7px 0 17px}
.period{min-width:88px;padding:11px 15px;border-radius:15px 15px 6px 6px;font-size:14px;letter-spacing:.08em;border:1px solid transparent}
.period.active{outline:0;border:2px solid #b9aa92;box-shadow:0 3px 0 #d8c9b4;background:#f0e7d9}
.paper-card{border-radius:20px;padding:20px 18px;background-color:#fffdf8;background-image:radial-gradient(#e9e2d7 .85px,transparent .85px);background-size:15px 15px;border:1px solid #e7dfd1;box-shadow:0 7px 22px rgba(88,70,48,.055)}
.summary-paper{padding:22px 19px 19px;border-radius:20px}
.tape{width:94px;height:25px;top:-10px;left:31px;opacity:.9}
.paper-head{margin-bottom:20px}
.section-tag{padding:6px 13px;font-size:13px;letter-spacing:.09em;border-radius:5px}
.period-date{font-size:13px;letter-spacing:.1em}
.summary-grid{gap:15px}.stat-label{font-size:12px;letter-spacing:.08em;margin-bottom:8px}
.summary-grid strong{font-family:NeedMood!important;font-size:27px;letter-spacing:.01em}
.balance-strip{margin-top:19px;padding:14px 15px;border-radius:15px;font-size:14px;background:#e9f0e6}
.balance-strip strong{font-family:NeedMood!important;font-size:23px}
.budget-row{margin-top:18px}.budget-top{font-size:12px;margin-bottom:9px}.progress{height:10px;background:#eee6dc}
.section-heading{margin:28px 3px 13px;align-items:center}.section-heading h2{font-size:19px;letter-spacing:.08em}.text-btn{font-size:13px}
.chart-paper{padding:18px 16px}.chart-title{font-size:14px;margin-bottom:14px}.chart-legend{font-size:11px}
.tx-card{padding:14px 13px;border-radius:17px;background:#fffdf9;border:1px solid #e9e1d5;gap:12px}
.tx-icon{width:47px;height:47px;font-size:22px;background:#f4e6df}
.tx-title{font-size:15px;letter-spacing:.04em}.tx-meta{font-size:11px;margin-top:5px}
.tx-amount{font-family:NeedMood!important;font-size:17px}
.empty-state{padding:30px 15px;border-radius:18px;font-size:14px;line-height:1.9}
.bottom-nav{height:82px;padding:9px 12px calc(8px + env(safe-area-inset-bottom));background:rgba(246,239,226,.97);border-top:1px solid #e6ddcf;box-shadow:0 -4px 18px #6d594015}
.nav-item{gap:4px}.nav-item span{font-size:25px}.nav-item small{font-size:12px;letter-spacing:.06em}
.floating-add{width:58px;height:58px;right:22px;bottom:calc(105px + env(safe-area-inset-bottom));font-size:27px;line-height:1;display:grid;place-items:center;background:#bf7665;box-shadow:0 5px 16px #7c514333;border:3px solid #fffaf2}
.page-title{padding:12px 3px 20px}.page-title h1{font-size:25px}
.savings-total,.asset-hero{border-radius:20px;padding:24px;background:linear-gradient(135deg,#e7efe5,#f4e5df)}
.big-number{font-family:NeedMood!important;font-size:32px;letter-spacing:.02em}
.goal-card{border-radius:18px;padding:18px;background:#fffdf8}
.goal-name{font-size:16px}.goal-amount{font-family:NeedMood!important;font-size:14px}
.goal-actions button{font-size:12px;padding:9px 13px;border-radius:12px}
.stats-card{padding:20px}
.break-row{grid-template-columns:90px 1fr 76px;font-size:13px}
.break-value{font-family:NeedMood!important}
.asset-item{border-radius:16px}
.settings-list button{border-radius:15px}
.modal{border-radius:25px 25px 0 0}.modal h2{font-size:21px}
input,select,textarea{font-size:16px!important}
button{touch-action:manipulation}
.budget-board{padding:20px 17px 16px;margin-top:2px}
.budget-board-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:15px}
.budget-board-head h3{font-size:18px;margin:9px 0 3px;letter-spacing:.08em}
.budget-board-head p{margin:0;color:#9b8f80;font-size:12px}
.budget-status{padding:5px 10px;background:#e8f1e7;color:#64846a;border-radius:9px;font-size:11px}
.budget-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.budget-mini{min-width:0;padding:12px 10px 11px;border:1px solid #e5ddcf;border-radius:16px;background:#fffdf9;display:flex;flex-direction:column;gap:5px}
.budget-mini.pink{background:#fff8f5}.budget-mini.mint{background:#f5faf3}.budget-mini.sand{background:#fffaf0}
.budget-mini small{font-size:11px;color:#8f8172}
.budget-mini strong{font-size:16px;white-space:nowrap;letter-spacing:-.02em}
.budget-mini span{font-size:10px;color:#a19586;white-space:nowrap}
.budget-mini b{font-size:10px;color:#748c78;font-weight:500}
.mini-progress{height:6px;background:#eee7dc;border-radius:8px;overflow:hidden;margin:3px 0}
.mini-progress i{display:block;height:100%;width:0;background:#c67d6d;border-radius:8px}
.budget-mini.mint .mini-progress i{background:#9bb9a0}.budget-mini.sand .mini-progress i{background:#d4b77e}
.budget-board-foot{margin-top:15px;padding:11px 12px;background:#edf1e8;border-radius:13px;display:flex;justify-content:space-between;gap:8px;align-items:center;color:#74866e;font-size:12px}
.budget-board-foot strong{font-size:15px;white-space:nowrap;color:#526e59}
.stats-donut-wrap{display:grid;grid-template-columns:145px 1fr;gap:14px;align-items:center;margin-top:16px}
.stats-donut{width:140px;height:140px;border-radius:50%;background:conic-gradient(#bf7665 0 32%,#a9c5ad 32% 58%,#dfc18f 58% 78%,#e9dfce 78% 100%);display:grid;place-items:center;position:relative}
.stats-donut:before{content:"";position:absolute;inset:16px;background:#fffdf8;border-radius:50%}
.stats-donut span{position:relative;text-align:center;font-size:11px;line-height:1.7;color:#8e8172}
.stats-donut b{font-size:13px;color:#40372f}
.stats-donut-wrap .breakdown{margin:0;gap:10px}
.stats-donut-wrap .break-row{grid-template-columns:minmax(50px,auto) 1fr;gap:7px}
.stats-donut-wrap .break-track{display:none}
.stats-donut-wrap .break-value{font-size:12px}
@media(max-width:390px){.budget-cards{gap:6px}.budget-mini{padding:10px 7px}.budget-mini strong{font-size:14px}.stats-donut-wrap{grid-template-columns:115px 1fr;gap:10px}.stats-donut{width:112px;height:112px}.stats-donut:before{inset:13px}.stats-donut b{font-size:11px}}
@media(min-width:620px){.bottom-nav{bottom:20px}.floating-add{bottom:110px}}


/* ===== Daily journal page rebuilt to match the supplied reference ===== */
.app-shell:has(#view-home.active)>.app-global-topbar{display:none}
#view-home{margin:-18px -17px 0}
.home-journal-top{height:83px;padding:12px 19px 11px;display:flex;align-items:center;justify-content:space-between;background:#fffdf8;border-bottom:1px solid #e9e0d3}
.journal-select{height:43px;display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid #d9cfbd;border-radius:9px;background:#fffaf0;box-shadow:0 2px 5px #68533b10;position:relative}
.journal-select:before{content:"";position:absolute;width:27px;height:9px;top:-5px;left:11px;background:#e9b9b2c9;transform:rotate(-2deg)}
.journal-book{font-size:17px;color:#a85f54}.journal-select strong{font-size:14px;letter-spacing:.04em}.journal-select small{font-size:10px;color:#827766;background:#f0e8d9;padding:2px 6px;border-radius:8px}.tiny-caret{font-size:11px;color:#948674}
.home-top-actions{display:flex;align-items:center;gap:10px}
.home-top-actions .quick-add{height:42px;padding:0 17px;border-radius:25px;font-size:14px;white-space:nowrap}
.home-top-actions .quick-add span{font-size:17px;margin-right:4px}
.home-top-actions .icon-btn{width:43px;height:43px;font-size:27px;background:#fffdf8}
.period-strip{height:48px;padding:0 19px;display:flex;align-items:center;justify-content:space-between;background:#f3ecdf;border-bottom:1px solid #e5dccd}
.period-caption{font-size:13px;color:#786c5c;display:flex;align-items:center;gap:9px;white-space:nowrap}
.period-caption span{font-size:17px}
.period-strip .period-tabs{margin:0;align-self:stretch;gap:5px;align-items:end}
.period-strip .period{min-width:66px;height:34px;padding:5px 11px;border-radius:10px 10px 0 0;font-size:13px;background:#f4deda;color:#8c766a}
.period-strip .period:nth-child(2){background:#dce9dc;color:#4d634f}
.period-strip .period:nth-child(3){background:#f2e5c7;color:#897750}
.period-strip .period.active{height:38px;outline:1px solid #c7bba5;border:1px solid #c7bba5;border-bottom:0;box-shadow:none;color:#3f382f;font-weight:700}
.home-content{padding:19px 17px 25px}
.journal-note{min-height:145px;position:relative;margin:0 4px 24px;padding:34px 13px 17px 118px;background-color:#fffdf8;background-image:linear-gradient(#dce5e8 1px,transparent 1px),linear-gradient(90deg,#dce5e8 1px,transparent 1px);background-size:22px 22px;border:1px solid #e5dfd1;clip-path:polygon(0 5%,4% 2%,8% 5%,12% 1%,17% 4%,22% 1%,27% 4%,32% 1%,37% 4%,42% 1%,47% 4%,52% 1%,57% 4%,62% 1%,67% 4%,72% 1%,77% 4%,82% 1%,87% 4%,92% 1%,97% 4%,100% 2%,100% 94%,96% 98%,91% 95%,86% 99%,81% 95%,76% 99%,71% 95%,66% 99%,61% 95%,56% 99%,51% 95%,46% 99%,41% 95%,36% 99%,31% 95%,26% 99%,21% 95%,16% 99%,11% 95%,6% 99%,0 95%)}
.note-tape{position:absolute;top:-2px;left:40px;width:58px;height:22px;background:#eab8b2d9;transform:rotate(-4deg);border-left:1px dashed #cf9990;border-right:1px dashed #cf9990}
.note-label{position:absolute;top:0;left:36px;padding:3px 12px;background:#e8b8b3;color:#9d514a;font-size:12px;letter-spacing:.06em;transform:rotate(-2deg)}
.note-cat{position:absolute;left:17px;top:40px;width:73px;height:73px;border-radius:25px;background:#fffaf0;border:2px solid #e3d6c3;box-shadow:0 2px 6px #57442a18;display:grid;place-items:center;font-size:36px}
.note-cat i{position:absolute;font-size:12px;color:#91a994;right:2px;bottom:7px;font-style:normal}
.note-copy{display:flex;flex-direction:column;gap:7px;font-size:13px;line-height:1.65;color:#3f3932}
.note-copy b{font-size:15px;font-weight:700}
.journal-note>em{position:absolute;right:12px;top:30px;color:#a69b8c;font-size:11px;font-style:italic}
.month-ribbon{height:56px;margin:0 auto 0;width:78%;background:#c6ddca;display:flex;align-items:center;justify-content:space-between;padding:0 19px;box-shadow:inset 3px 0 #9ebca4,inset -3px 0 #9ebca4;transform:rotate(-.5deg);position:relative;z-index:1}
.month-ribbon:after{content:"";position:absolute;left:0;right:0;bottom:-5px;height:12px;background:linear-gradient(175deg,transparent 40%,#a7c4ad 42%,transparent 49%);opacity:.5}
.month-ribbon strong{font-family:Georgia,serif!important;font-size:20px;font-weight:500;color:#3e473c}
.month-ribbon button{background:transparent;color:#687c6a;font-size:25px;width:26px;height:34px;line-height:1}
.expense-paper{margin:-5px 0 27px;padding:43px 17px 22px;background:#fffefa;background-image:radial-gradient(#eee9e0 .8px,transparent .8px);background-size:13px 13px;border:1px solid #e4ddcf;clip-path:polygon(0 2%,3% 0,7% 2%,11% 0,15% 2%,19% 0,23% 2%,27% 0,31% 2%,35% 0,39% 2%,43% 0,47% 2%,51% 0,55% 2%,59% 0,63% 2%,67% 0,71% 2%,75% 0,79% 2%,83% 0,87% 2%,91% 0,95% 2%,100% 0,100% 98%,96% 100%,92% 98%,88% 100%,84% 98%,80% 100%,76% 98%,72% 100%,68% 98%,64% 100%,60% 98%,56% 100%,52% 98%,48% 100%,44% 98%,40% 100%,36% 98%,32% 100%,28% 98%,24% 100%,20% 98%,16% 100%,12% 98%,8% 100%,4% 98%,0 100%)}
.paper-summary-head{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:12px;font-weight:600;white-space:nowrap}
.paper-summary-head>span:first-child{display:flex;align-items:center;gap:6px}
.paper-summary-head i{width:9px;height:9px;border-radius:50%;background:#c77b6b;display:inline-block;flex:none}
.paper-summary-head b{color:#71866e;font-weight:600}
.remaining-tag{background:#efdfc5;padding:5px 8px;color:#806b4f;font-size:11px}
.remaining-tag strong{font-weight:600}
.expense-total{font-family:NeedMood!important;font-size:31px;font-weight:700;margin:15px 0 13px;letter-spacing:.01em;color:#39342e}
.budget-progress-wrap{margin-bottom:13px}
.budget-line,.category-progress-line{height:9px;border:1px solid #d9d1c4;background:#eee6d9;overflow:hidden}
.budget-line i,.category-progress-line i{height:100%;display:block;width:0;background:#b8d1bc;border-right:2px solid #91b59a}
.budget-caption{font-size:11px;color:#988d7f;margin-top:8px}
.category-progress-line{margin:0 0 12px;height:8px}
.category-progress-line i{background:#e8b5ae;border-color:#d18d83}
.category-percentage-list{display:grid;gap:8px}
.category-percent-row{display:flex;align-items:center;gap:8px;font-size:14px;color:#37332e}
.category-percent-row i{width:10px;height:10px;border-radius:50%;display:inline-block;flex:none}
.category-percent-row strong{font-weight:500}
.category-empty{font-size:12px;color:#a39787;padding:4px 0}
.monthly-list-heading{display:flex;justify-content:space-between;align-items:center;margin:0 4px 12px;font-size:14px;font-weight:600;color:#51483e}
.monthly-list-heading>span{font-size:11px;color:#a19687;font-weight:400}
.tiny-calendar{color:#b76c5c;margin-right:7px;font-size:17px}
.journal-transactions{display:grid;gap:12px}
.journal-tx{min-height:104px;position:relative;padding:17px 17px 14px 88px;background-color:#fffdf8;background-image:radial-gradient(#eee9e0 .8px,transparent .8px);background-size:13px 13px;border:1px solid #e4ddcf;clip-path:polygon(0 3%,4% 0,8% 3%,12% 0,16% 3%,20% 0,24% 3%,28% 0,32% 3%,36% 0,40% 3%,44% 0,48% 3%,52% 0,56% 3%,60% 0,64% 3%,68% 0,72% 3%,76% 0,80% 3%,84% 0,88% 3%,92% 0,96% 3%,100% 0,100% 96%,96% 100%,92% 97%,88% 100%,84% 97%,80% 100%,76% 97%,72% 100%,68% 97%,64% 100%,60% 97%,56% 100%,52% 97%,48% 100%,44% 97%,40% 100%,36% 97%,32% 100%,28% 97%,24% 100%,20% 97%,16% 100%,12% 97%,8% 100%,4% 97%,0 100%)}
.journal-tx:nth-child(even){background-image:linear-gradient(#dce5e8 1px,transparent 1px),linear-gradient(90deg,#dce5e8 1px,transparent 1px);background-size:21px 21px}
.journal-tx:before{content:"";position:absolute;top:-1px;left:31px;width:70px;height:15px;background:#eab8b2d1;transform:rotate(-2deg)}
.journal-tx:nth-child(even):before{background:#d6c8e8d1;left:auto;right:35px}
.journal-tx .tx-icon{position:absolute;left:17px;top:22px;width:49px;height:49px;border-radius:50%;border:1px solid #d9cbb8;background:#fffaf0;font-size:23px}
.journal-tx .tx-title{font-size:16px;font-weight:600}
.journal-tx .tx-meta{font-size:11px;color:#9e9384;margin-top:12px;text-align:right}
.journal-tx .tx-amount{position:absolute;right:16px;top:22px;font-size:17px;font-weight:600;color:#b96f61}
.journal-tx .tx-info{display:contents}
.journal-tx .tx-title{display:block;max-width:calc(100% - 75px);margin-top:2px}
.journal-tx .tx-meta{position:absolute;right:16px;bottom:17px}
.journal-tx .tx-icon.income-bg{background:#edf4e9}
.journal-transactions .empty-state{background:#fffdf8}
#view-home~*{}
@media(max-width:390px){.home-journal-top{padding:10px 12px}.journal-select{gap:5px;padding:0 8px}.journal-select strong{font-size:12px}.home-top-actions{gap:6px}.home-top-actions .quick-add{padding:0 12px;font-size:12px}.period-strip{padding:0 12px}.period-strip .period{min-width:55px;padding:5px 8px}.home-content{padding:17px 13px 22px}.journal-note{padding-left:105px}.note-cat{left:13px;width:66px;height:66px}.note-copy{font-size:12px}.paper-summary-head{font-size:10px}.remaining-tag{padding:4px 5px}.expense-total{font-size:28px}}
