:root{--bg:#f7f8f2;--paper:#fff;--ink:#263c31;--muted:#7b8279;--line:#e8ebe2;--green:#344f3d;--lime:#e7eed8;--radius:24px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button{color:inherit}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #93ab69;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid #93ab69;outline-offset:1px}svg{width:22px;height:22px;flex-shrink:0;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.shell{max-width:1440px;margin:auto;display:grid;grid-template-columns:244px 1fr;min-height:100vh}.sidebar{padding:38px 26px;border-right:1px solid var(--line);position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:45px}.brand{display:flex;align-items:center;gap:11px;font-weight:750;font-size:25px;letter-spacing:-1px}.brand img{width:42px;height:42px}.brand small{display:block;font-size:10px;font-weight:500;color:var(--muted);letter-spacing:1.2px;text-transform:uppercase;margin-top:5px}.nav{display:grid;gap:9px}.nav a{display:flex;align-items:center;gap:12px;padding:14px;border-radius:13px;font-size:14px;font-weight:550;color:#7a8176}.nav a.active{color:var(--ink);background:var(--lime)}.nav a:hover{background:#edf0e6}.sidebar-note{margin-top:auto;background:#eef1e6;border-radius:18px;padding:20px;font-size:13px;line-height:1.6;color:#7c8472}.sidebar-note svg{color:#89996f;margin-bottom:10px}.sidebar-note strong{display:block;color:var(--ink);margin-bottom:5px}.workspace{padding:34px 48px 48px;min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;padding-bottom:28px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.family-badge{display:flex;gap:10px;align-items:center;color:var(--ink);font-size:12px;font-weight:600}.avatar{width:34px;height:34px;border-radius:50%;background:#e9ecd8;display:grid;place-items:center}.status-dot{width:6px;height:6px;border-radius:50%;background:#7c9766;display:inline-block;margin-right:6px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:34px 0 27px}.eyebrow{text-transform:uppercase;letter-spacing:1.8px;font-size:10px;font-weight:650;color:#8d957e;margin-bottom:10px}h1{font-size:32px;letter-spacing:-1.1px;line-height:1.2;margin:0 0 10px;font-weight:650}h2{font-size:18px;letter-spacing:-.4px;margin:0}h3{font-size:14px;margin:0}p{line-height:1.6}.subtitle{font-size:13px;color:var(--muted);margin:0}.date-pill{border:1px solid var(--line);border-radius:30px;padding:10px 15px;font-size:12px;white-space:nowrap;display:flex;gap:8px;align-items:center}.date-pill svg{width:16px;height:16px}.columns{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:24px;align-items:start}.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:28px}.form-card{padding:0;overflow:hidden}.amount-area{text-align:center;padding:30px 22px 25px;background:#fdfefb;border-bottom:1px solid var(--line)}.amount-area label{font-size:12px;color:var(--muted)}.amount-row{display:flex;align-items:baseline;justify-content:center;gap:8px;margin:11px 0 9px}.amount-row input{font-size:48px;letter-spacing:-2px;font-weight:600;text-align:center;width:230px;max-width:80%;background:transparent;border:0;color:var(--ink);padding:0;border-radius:5px}.amount-row input::placeholder{color:#c4cab9}.amount-row span{font-size:28px;color:#aab19f}.hint{font-size:11px;color:#969d8c}.form-body{padding:26px}.field{margin-bottom:25px}.field-label{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:650;margin-bottom:12px}.field-label svg{width:16px;height:16px;color:#8a9382}.field-label .optional{margin-left:auto;font-weight:400;color:#a0a697;font-size:10px}.date-input,input.text,textarea,select,input[type=month]{border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:#fff;color:var(--ink);max-width:100%;min-height:44px}.date-input{width:100%}.date-line{display:flex;gap:8px}.date-line input{flex:1;min-width:0}.tiny-btn{border:1px solid var(--line);border-radius:11px;background:#f6f8f0;padding:0 14px;font-size:12px;min-height:44px}.choices{display:flex;flex-wrap:wrap;gap:8px}.choice{border:1px solid var(--line);border-radius:13px;background:#fff;display:flex;align-items:center;gap:7px;font-size:12px;padding:10px 12px;min-height:44px}.choice svg{width:17px;height:17px;color:var(--item)}.choice.selected{background:color-mix(in srgb,var(--item) 11%,white);border-color:var(--item);box-shadow:0 0 0 1px var(--item)}.categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.category{flex-direction:column;gap:8px;padding:13px 5px;font-size:11px;border-radius:14px;min-height:81px}.category .icon-bubble{width:31px;height:31px}.icon-bubble{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;flex-shrink:0;color:var(--item);background:color-mix(in srgb,var(--item) 12%,white)}.icon-bubble svg{width:20px;height:20px}.category span:last-child{max-width:100%;overflow-wrap:anywhere}textarea{width:100%;resize:vertical;min-height:76px;font-size:13px;line-height:1.5}.primary{border:0;background:var(--green);color:#fff;border-radius:13px;padding:14px 20px;min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:13px;font-weight:550}.primary:hover{background:#263d2d}.primary.full{width:100%}.primary svg{width:18px;height:18px}.form-footer{display:flex;gap:10px}.form-footer .primary{flex:1}.secondary{border:1px solid var(--line);background:#fff;border-radius:12px;padding:12px 16px;min-height:44px;font-size:13px}.save-note{text-align:center;color:#929a87;font-size:10px;margin:13px 0 0}.side-stack{display:grid;gap:20px}.month-card{background:#e9eedc;border-color:#e2e8d4;position:relative;overflow:hidden}.month-card .overline{font-size:11px;color:#77846a}.month-total{font-size:30px;letter-spacing:-1.3px;font-weight:600;margin:15px 0 7px;overflow-wrap:anywhere}.month-card .small{font-size:11px;color:#7d8874}.mini-bars{display:flex;align-items:end;gap:8px;height:57px;margin-top:24px}.mini-bars i{flex:1;background:#b9c7a1;border-radius:5px 5px 2px 2px;min-height:3px}.mini-bars i:last-child{background:#607c4a}.side-stack .card{padding:23px}.section-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px}.section-top a{font-size:11px;color:#7d896e}.section-top h2{font-size:14px}.recent-item{display:flex;gap:10px;align-items:center;margin-top:17px}.recent-item .icon-bubble{width:32px;height:32px;border-radius:10px}.recent-item .icon-bubble svg{width:17px;height:17px}.recent-text{min-width:0;flex:1}.recent-text strong{display:block;font-size:11px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-text small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.recent-item b{font-size:11px;white-space:nowrap}.gentle{padding:9px 15px;display:flex;gap:12px;font-size:11px;line-height:1.7;color:#909782}.gentle svg{color:#8f9a7c}.bottom-nav{display:none}.empty{text-align:center;padding:38px 18px;color:var(--muted);font-size:13px;line-height:1.7}.empty svg{width:32px;height:32px;margin-bottom:10px;color:#a7b295}.empty strong{display:block;color:var(--ink);font-size:15px;margin-bottom:6px}.empty .primary{margin-top:18px}.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}.toolbar input,.toolbar select{font-size:13px;min-width:0;flex:1}.toolbar input[type=search]{flex:2}.list-summary{display:flex;align-items:baseline;justify-content:space-between;margin:24px 0 20px;font-size:12px;color:var(--muted)}.list-summary strong{font-size:25px;color:var(--ink);letter-spacing:-.6px}.day-label{font-size:11px;font-weight:600;color:#969d8c;margin:25px 0 10px;text-transform:uppercase;letter-spacing:.8px}.expense-row{width:100%;display:flex;align-items:center;gap:14px;border:0;border-bottom:1px solid var(--line);background:white;padding:17px 18px;text-align:left;min-height:78px}.expense-row:first-child{border-radius:15px 15px 0 0}.expense-row:last-child{border-bottom:0;border-radius:0 0 15px 15px}.expense-row:only-child{border-radius:15px}.expense-row:hover{background:#fcfdf8}.expense-copy{min-width:0;flex:1}.expense-copy strong{font-size:13px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.expense-copy small{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:6px;margin-top:7px}.person-dot{width:6px;height:6px;border-radius:50%;background:var(--item);display:inline-block}.expense-price{font-size:15px;font-weight:600;white-space:nowrap}.expense-row>svg{width:15px;height:15px;color:#a3aa97}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:23px 0}.stat-card{padding:24px}.stat-card:first-child{background:#e9eedc;border-color:#e2e8d4}.stat-card .label{font-size:11px;color:var(--muted)}.stat-card strong{display:block;font-size:28px;letter-spacing:-1px;margin-top:14px;overflow-wrap:anywhere}.stat-card small{display:block;font-size:10px;color:var(--muted);margin-top:7px}.analytics-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.breakdown{display:grid;gap:20px;margin-top:24px}.bar-head{display:flex;gap:9px;align-items:center;font-size:12px;margin-bottom:10px}.bar-head svg{width:17px;height:17px;color:var(--item)}.bar-head b{margin-left:auto;font-size:12px;white-space:nowrap}.bar-head small{width:32px;text-align:right;color:var(--muted);font-size:10px}.track{height:7px;border-radius:20px;background:#f1f3ec;overflow:hidden}.track div{height:100%;min-width:2px;border-radius:20px;background:var(--item)}.daily-chart{display:flex;align-items:flex-end;gap:5px;height:140px;margin-top:25px;padding-bottom:20px}.daily-col{flex:1;height:100%;display:flex;flex-direction:column;justify-content:end;align-items:center;min-width:0;position:relative}.daily-col i{width:100%;max-width:24px;border-radius:4px 4px 0 0;background:#9ead8a;min-height:2px}.daily-col small{font-size:8px;position:absolute;bottom:-18px;color:var(--muted)}.chart-card{margin-top:20px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.settings-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.settings-row:last-child{border:0}.settings-row>span{flex:1;font-size:13px;overflow-wrap:anywhere;min-width:0}.icon-button{border:0;background:transparent;border-radius:10px;width:40px;height:40px;display:grid;place-items:center;color:#8f9787;flex-shrink:0}.icon-button:hover{background:#f0f3e8}.icon-button svg{width:17px;height:17px}.add-small{border:0;background:#eef3e5;border-radius:10px;width:34px;height:34px;display:grid;place-items:center}.settings-note{color:var(--muted);font-size:11px;line-height:1.7;margin:18px 0 0}.logout-row{display:flex;align-items:center;justify-content:space-between;margin-top:25px;gap:20px}.logout-row p{font-size:12px;color:var(--muted)}#toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%,20px);background:#263d2f;color:white;border-radius:13px;padding:14px 22px;font-size:13px;box-shadow:0 8px 35px #263d2f22;opacity:0;pointer-events:none;z-index:100;transition:.2s;max-width:calc(100vw - 32px);width:max-content}#toast.show{opacity:1;transform:translate(-50%,0)}#toast.error{background:#8f493e}dialog{padding:28px;border:1px solid var(--line);border-radius:24px;width:460px;max-width:calc(100% - 30px);max-height:90dvh;color:var(--ink);box-shadow:0 20px 80px #16271d33}dialog::backdrop{background:#182c2455;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.dialog-actions{display:flex;gap:10px;margin-top:22px}.dialog-actions>*{flex:1}.danger{background:#a85748}.danger:hover{background:#914839}.modal-text{font-size:13px;color:var(--muted)}.icon-picker{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.icon-picker .choice{justify-content:center;padding:10px}.color-row{display:flex;gap:12px;align-items:center}.color-row input{width:55px;height:44px;border:1px solid var(--line);background:white;border-radius:9px;padding:4px}.color-row span{font-size:12px;color:var(--muted)}.login-wrap{min-height:100dvh;display:grid;place-items:center;padding:24px}.login-card{max-width:410px;width:100%;padding:36px}.login-card .brand{margin-bottom:35px}.login-card h1{font-size:28px}.login-card form{margin-top:28px}.login-card input{width:100%;margin:0 0 15px}.login-card .subtitle{line-height:1.7}.login-error{font-size:12px;color:#a34b40;margin:12px 0}.loading{min-height:80vh;display:grid;place-items:center;font-size:14px;color:var(--muted)}.inline-error{color:#9c5043;font-size:12px;margin-top:10px}.mobile-brand{display:none}.full-width{width:100%}.trend-head{display:flex;justify-content:space-between;align-items:center}.muted{color:var(--muted);font-size:12px}
@media(min-width:1250px){.categories{grid-template-columns:repeat(3,1fr)}.form-body{padding:28px 32px}.workspace{padding-left:55px;padding-right:55px}}
@media(max-width:1100px){.shell{grid-template-columns:200px 1fr}.sidebar{padding:30px 20px}.workspace{padding:30px}.columns{grid-template-columns:minmax(0,1fr) 235px;gap:18px}.side-stack .card{padding:20px}.brand{font-size:23px}.choice{padding-left:9px;padding-right:9px}.month-total{font-size:26px}}
@media(max-width:900px){.shell{grid-template-columns:170px 1fr}.sidebar{padding:28px 15px}.brand{font-size:21px}.brand img{width:34px;height:34px}.brand small{font-size:8px}.nav a{font-size:12px;padding:12px 9px}.workspace{padding:25px}.columns{grid-template-columns:1fr}.side-stack{grid-template-columns:1fr 1fr}.gentle{display:none}.analytics-grid,.settings-grid{grid-template-columns:1fr}.date-pill{display:none}.stats-grid{gap:10px}.stat-card{padding:19px}.stat-card strong{font-size:23px}}
@media(max-width:640px){.shell{display:block}.sidebar{display:none}.workspace{padding:20px 18px calc(110px + env(safe-area-inset-bottom))}.topbar{padding-bottom:19px}.desktop-crumb{display:none}.mobile-brand{display:flex;font-size:22px}.mobile-brand img{width:33px;height:33px}.mobile-brand small{display:none}.family-badge{font-size:11px}.family-badge .avatar{width:29px;height:29px}.family-badge svg{width:17px;height:17px}.family-badge .status-dot{display:none}.page-head{margin:26px 0 21px;align-items:start}h1{font-size:28px;letter-spacing:-.9px;margin-bottom:8px}.eyebrow{font-size:9px;margin-bottom:8px}.subtitle{font-size:12px;line-height:1.65}.card{border-radius:20px;padding:21px}.form-card{padding:0}.amount-area{padding:25px 18px 21px}.amount-row input{font-size:46px}.form-body{padding:23px 18px}.field{margin-bottom:23px}.choice{font-size:11px;padding:9px 10px;gap:6px}.choices{gap:7px}.choices .choice{flex-grow:1;justify-content:center}.category{padding:12px 4px;font-size:11px}.categories{gap:8px}.field-label{font-size:12px}.form-footer .primary{min-height:51px}.side-stack{grid-template-columns:1fr}.month-card{margin-top:0}.side-stack .recent-card{display:none}.mini-bars{height:36px;margin-top:15px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;padding:9px 9px calc(9px + env(safe-area-inset-bottom));background:#fffffff5;border-top:1px solid #e6eadf;backdrop-filter:blur(16px);z-index:20}.bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:9px;color:#969d8f;width:25%;padding:4px}.bottom-nav a svg{width:21px;height:21px}.bottom-nav a.active{color:#344f3d;font-weight:650}.bottom-nav a.active .nav-icon{background:#eaf0dd}.nav-icon{width:46px;height:28px;border-radius:10px;display:grid;place-items:center}.page-head>.primary{font-size:0;min-width:43px;padding:12px;border-radius:13px;min-height:43px}.page-head>.primary svg{width:19px;height:19px}#toast{bottom:calc(89px + env(safe-area-inset-bottom))}.toolbar{gap:8px}.toolbar input[type=search]{flex-basis:100%;order:-1}.toolbar select{max-width:calc(50% - 4px);flex-basis:calc(50% - 4px)}.toolbar input[type=month]{flex-basis:100%}.expense-row{padding:16px 12px;gap:10px}.expense-price{font-size:14px}.expense-row>svg{display:none}.expense-copy strong{font-size:12px}.expense-copy small{font-size:10px}.stats-grid{grid-template-columns:1fr 1fr}.stat-card:first-child{grid-column:1/-1}.stat-card:first-child strong{font-size:34px}.stat-card strong{font-size:23px}.stat-card{padding:20px}.analytics-grid{gap:16px}.chart-card{padding:20px 14px}.daily-chart{gap:3px}.settings-grid{gap:18px}.logout-row{align-items:flex-start}.logout-row p{margin-top:0}.login-card{padding:28px}.dialog-actions{flex-wrap:wrap}.dialog-actions>*{min-width:100px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:640px){html{scroll-padding-bottom:180px}.workspace{padding-bottom:calc(170px + env(safe-area-inset-bottom))}.form-footer{position:fixed;bottom:calc(71px + env(safe-area-inset-bottom));left:0;right:0;padding:10px 18px;background:#f7f8f2f5;border-top:1px solid var(--line);backdrop-filter:blur(12px);z-index:19}.form-body>.save-note{display:none}.form-body textarea,.toolbar input,.toolbar select,.login-card input,dialog input.text{font-size:16px}.bottom-nav{height:calc(71px + env(safe-area-inset-bottom))}}

/* Compact section headers and amount entry. */
#page{padding-top:24px}.family-badge .section-title{font-size:16px;line-height:1.3;letter-spacing:-.2px;margin:0;font-weight:600}.list-actions{display:flex;justify-content:flex-end;margin-bottom:16px}.amount-area{padding:12px 18px}.amount-row{margin:0;align-items:center;gap:8px}.amount-row input{font-size:32px;letter-spacing:-.8px;width:180px;min-height:44px}.amount-row span{font-size:24px}
@media(max-width:640px){#page{padding-top:18px}.family-badge{gap:8px}.family-badge .section-title{font-size:14px}.amount-area{padding:10px 16px}.amount-row input{font-size:30px;width:174px}.amount-row span{font-size:22px}}

.amount-row .expense-minus{font-size:40px;line-height:1;font-weight:600;color:var(--ink);flex-shrink:0}

/* Amount and date share the first row on every screen. */
.amount-area{display:grid;grid-template-columns:minmax(0,1fr) 170px;gap:16px;align-items:center;text-align:left}.amount-row{min-width:0;justify-content:flex-start;gap:6px}.amount-row input{min-width:0;max-width:none;width:100%;flex:1;text-align:left}.amount-area .date-input{min-width:0;width:100%;font-size:16px;padding:10px 8px}.amount-row .expense-minus{font-size:36px}
@media(max-width:640px){.amount-area{grid-template-columns:minmax(0,1fr) 145px;gap:10px;padding:10px 12px}.amount-row{gap:4px}.amount-row input{font-size:24px;width:100%;letter-spacing:-.5px}.amount-row span{font-size:18px}.amount-row .expense-minus{font-size:30px}}

/* Compact recipient and category controls. */
.person-select{position:relative}.person-select>span{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--item);pointer-events:none;display:flex}.person-select select{width:100%;padding-left:46px;font-size:16px;min-height:48px}.quick-categories,.extra-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-categories .category{flex-direction:row;justify-content:flex-start;gap:9px;min-height:48px;padding:9px 10px;font-size:13px;min-width:0}.quick-categories .category span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}.quick-categories .category .icon-bubble{width:28px;height:28px;border-radius:9px}.more-categories{grid-column:1/-1;min-width:0}.more-toggle{list-style:none;justify-content:flex-start;gap:9px;width:100%;font-size:13px;min-height:48px;padding:10px 14px;cursor:pointer}.more-toggle::-webkit-details-marker{display:none}.more-toggle svg{color:var(--muted)}.more-toggle svg:last-child{margin-left:auto;width:16px;transform:rotate(90deg)}.more-categories[open]>.more-toggle svg:last-child{transform:rotate(-90deg)}.extra-categories{margin-top:9px}.more-toggle:focus-visible{outline:3px solid #93ab69;outline-offset:3px}

/* Two main category rows; More shares the second row. */
.quick-categories{grid-template-columns:repeat(6,minmax(0,1fr))}.quick-categories>.category{grid-column:span 3}.quick-categories>.category:nth-child(n+3){grid-column:span 2}.quick-categories>.more-toggle{grid-column:span 2;min-width:0;justify-content:center;padding:9px 6px;gap:5px}.quick-categories>.more-toggle svg{width:18px;height:18px;margin:0;transform:none}.quick-categories>.extra-categories{grid-column:1/-1;margin-top:0;grid-template-columns:repeat(2,minmax(0,1fr))}.extra-categories[hidden]{display:none}
@media(max-width:640px){.quick-categories>.category:nth-child(n+3){padding:9px 5px;gap:4px;font-size:11px}.quick-categories>.category:nth-child(n+3) .icon-bubble{width:22px;height:26px}.quick-categories>.category:nth-child(n+3) .icon-bubble svg{width:17px;height:17px}.quick-categories>.more-toggle{font-size:12px}}

.order-note{margin:0 0 12px}.sortable-row{display:grid;grid-template-columns:32px minmax(0,1fr) 76px 36px;gap:8px}.sortable-row>.icon-bubble{width:32px;height:32px}.sortable-row>span{font-size:13px}.order-controls{display:flex;align-items:center}.order-controls .icon-button{width:38px;height:44px}.order-controls .icon-button:disabled{opacity:.25;cursor:default}.sortable-row>.icon-button{width:36px;height:44px}.collapse-boundary{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0;padding:5px 0 5px 8px;border-top:2px dashed #a8b590;border-bottom:2px dashed #a8b590;background:#f3f6eb;color:#586c45}.collapse-boundary>span{font-size:12px;font-weight:600}.collapse-boundary .order-controls{margin-right:44px}.settings-grid{align-items:start}
@media(max-width:640px){.sortable-row{gap:6px}.collapse-boundary .order-controls{margin-right:42px}}

.date-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;min-height:44px;width:100%;border:1px solid var(--line);border-radius:12px;background:white;color:var(--ink);font-size:14px;padding:10px}.date-trigger svg{width:18px;height:18px;color:#71816a}.calendar-dialog{width:410px;padding:24px;overflow:auto}.calendar-dialog .dialog-head{margin-bottom:16px}.calendar-dialog .dialog-head h2{font-size:18px}.calendar-navigation{display:flex;align-items:center;gap:4px;margin-bottom:20px}.calendar-navigation>.icon-button{width:40px;height:44px;flex-shrink:0;background:#f4f6ee;color:var(--ink)}.calendar-prev svg{transform:rotate(180deg)}.calendar-period{display:flex;flex:1;min-width:0;gap:3px;justify-content:center}.calendar-period select{padding:8px 4px;border:0;background:transparent;font-size:15px;font-weight:600;min-width:0;max-width:60%}.calendar-weekdays,.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.calendar-weekdays{margin-bottom:8px;text-align:center;font-size:11px;color:var(--muted)}.calendar-weekdays span:nth-last-child(-n+2){color:#a57c70}.calendar-day{min-width:0;min-height:44px;border:0;border-radius:12px;background:transparent;color:var(--ink);font-size:15px;position:relative}.calendar-day:hover{background:#edf2e2}.calendar-day.outside{color:#b5bcac}.calendar-day.today::after{content:'';position:absolute;width:4px;height:4px;border-radius:50%;background:#82945e;bottom:5px;left:calc(50% - 2px)}.calendar-day.selected{background:var(--green);color:white;font-weight:600}.calendar-day.selected.today::after{background:#dbe8bd}.calendar-day:disabled{opacity:.3;cursor:default}.calendar-shortcuts{display:flex;gap:10px;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.calendar-shortcuts button{flex:1}.calendar-shortcuts .secondary{background:#f7f9f1}
@media(max-width:640px){.calendar-dialog{padding:18px 14px;border-radius:22px;max-width:calc(100% - 24px)}.calendar-period select{font-size:16px}.calendar-days{gap:2px}.calendar-day{min-height:44px}.date-trigger{padding:10px 8px}}

.person-cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.person-cards>.choice{grid-column:span 2;justify-content:center;min-width:0}.person-cards>.choice:nth-child(4),.person-cards>.choice:nth-child(5){grid-column:span 3}

/* Pointer-based ordering: touch and mouse share the same handles. */
.sortable-row{grid-template-columns:32px minmax(0,1fr) 44px 36px}.sortable-row>.drag-handle,.drag-handle{width:44px;height:48px;touch-action:none;cursor:grab;color:#849176}.drag-handle svg{width:20px;height:24px}.drag-handle:active{cursor:grabbing}.drag-handle:disabled{cursor:wait}.collapse-boundary>.drag-handle{margin-right:44px}.drag-placeholder{opacity:.25;background:#eef3e4;border-radius:12px;outline:2px dashed #9bab86;outline-offset:-2px}.drag-ghost{position:fixed!important;z-index:1000;pointer-events:none;margin:0!important;padding:13px 0;background:#fff;border:1px solid #a8b590!important;border-radius:12px;box-shadow:0 12px 35px #263c312e;opacity:.98}.drag-ghost.collapse-boundary{padding:5px 0 5px 8px;background:#f3f6eb}.is-reordering,.is-reordering *{user-select:none!important;cursor:grabbing!important}
@media(max-width:640px){.collapse-boundary>.drag-handle{margin-right:42px}}

.description-suggestions{display:flex;flex-wrap:wrap;gap:2px 14px;margin-bottom:7px}.description-suggestion{border:0;border-radius:3px;background:transparent;color:#526447;padding:4px 0;font-size:12px;line-height:20px;min-height:28px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;text-decoration-line:underline;text-decoration-style:dotted;text-decoration-thickness:1px;text-underline-offset:4px}.description-suggestion:hover{background:transparent;color:var(--ink)}

.cashback-input{position:relative}.cashback-input input{width:100%;padding-right:36px;font-size:16px}.cashback-input>span{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:var(--muted)}.cashback-result{font-size:12px;color:#526447;margin-top:8px}.cashback-result:empty{display:none}.cashback-breakdown{font-size:13px;color:var(--muted);margin-top:-8px}

.description-suggestions[hidden]{display:none}.suggestions-status{font-size:11px;color:var(--muted);padding:4px 0}

.cashback-field{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:0 14px}.cashback-field>.field-label{margin:0;white-space:nowrap}.cashback-field>.cashback-input{min-width:0}.cashback-field>.cashback-result{grid-column:2;margin-top:8px}

.month-picker{padding:18px 20px;margin-bottom:20px}.month-picker-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;gap:12px}.month-year{display:flex;align-items:center;gap:7px}.month-year strong{font-size:16px}.month-year .icon-button{width:36px;height:40px}.previous-year svg{transform:rotate(180deg)}.all-months{border:1px solid var(--line);border-radius:11px;min-height:40px;padding:9px 12px;background:white;font-size:12px}.all-months.selected{background:var(--lime);border-color:#a8b590}.month-bars-scroll{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:3px 0 7px;position:relative}.month-bars{display:grid;grid-template-columns:repeat(12,minmax(46px,1fr));gap:6px;min-width:618px}.month-bar-button{display:flex;flex-direction:column;gap:9px;align-items:center;border:0;border-radius:10px;background:transparent;padding:9px 2px 8px;color:var(--muted);min-width:0}.month-bar-button:hover{background:#f2f5ea}.month-bar-button.selected{background:#eaf0dc;color:var(--ink)}.month-bar-value{font-size:10px;white-space:nowrap;line-height:15px}.month-bar-track{height:92px;width:60%;display:flex;align-items:end}.month-bar{display:block;width:100%;background:#b6c4a0;border-radius:5px 5px 2px 2px;min-height:2px}.month-bar-button.selected .month-bar{background:var(--green)}.month-bar.empty-bar{background:#dfe5d7}.month-bar-label{font-size:11px}.month-bar-button.selected .month-bar-label{font-weight:650}.month-picker-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px;color:var(--muted);font-size:10px}.month-picker-caption>span:first-child{font-size:12px;color:var(--ink)}
@media(max-width:640px){.month-picker{padding:12px 12px 16px}.month-bars{min-width:618px}.month-picker-caption{align-items:flex-start}.month-picker-caption>span:last-child{max-width:115px;text-align:right}.month-bars-scroll{padding-bottom:10px}}
