:root{--bg: #f4f6f5;--card: #ffffff;--ink: #1b2420;--muted: #5d6b64;--line: #d9e0dc;--accent: #1f5c42;--accent-soft: #e3efe8;--bad: #a3261b;--bad-soft: #fbe9e7;--warn-soft: #fff6dc;--radius: 10px;font-family:system-ui,-apple-system,Segoe UI,Hiragino Sans,Noto Sans JP,sans-serif;color:var(--ink);background:var(--bg);-webkit-text-size-adjust:100%}*{box-sizing:border-box}body{margin:0;background:var(--bg)}h1{font-size:1.05rem;margin:0}h3{font-size:.95rem;margin:1.25rem 0 .5rem;color:var(--muted)}h4.day{font-size:.8rem;color:var(--muted);margin:1rem 0 .3rem}button,input,select{font:inherit;color:inherit}input,select{width:100%;min-height:44px;padding:.5rem .6rem;border:1px solid var(--line);border-radius:8px;background:var(--card)}input:focus-visible,select:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}button{min-height:44px;padding:.5rem .9rem;border-radius:8px;border:1px solid var(--line);background:var(--card);cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button.primary{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}button.danger{color:var(--bad);border-color:var(--bad)}button.link{border:none;background:none;color:var(--accent);padding-left:0}button.icon{width:44px;padding:0;font-size:1.2rem}label{display:flex;flex-direction:column;gap:.25rem;font-size:.8rem;color:var(--muted)}label input,label select{color:var(--ink);font-size:1rem}.muted{color:var(--muted)}.bad{color:var(--bad)}.center{display:grid;place-items:center;min-height:100vh;gap:1rem}.shell{min-height:100vh;padding-bottom:calc(72px + env(safe-area-inset-bottom))}.top{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;background:var(--card);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:2}.pill{font-size:.75rem;padding:.15rem .5rem;border-radius:99px;background:var(--accent-soft);color:var(--accent)}.nav{position:fixed;bottom:0;left:0;right:0;z-index:3;display:grid;grid-template-columns:repeat(4,1fr);background:var(--card);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}.nav button{border:none;border-radius:0;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:.72rem;min-height:60px;background:none}.nav button span{font-size:1.2rem;line-height:1}.nav button[aria-current=page]{color:var(--accent);font-weight:600}.main{padding:1rem;max-width:720px;margin:0 auto}.main.split .listpane{display:none}@media(min-width:900px){.shell{display:grid;grid-template-columns:200px 1fr;grid-template-rows:auto 1fr;padding-bottom:0}.top{grid-column:1 / -1}.nav{position:sticky;top:52px;align-self:start;display:flex;flex-direction:column;border-top:none;border-right:1px solid var(--line);height:calc(100vh - 52px);padding:.5rem}.nav button{flex-direction:row;justify-content:flex-start;gap:.6rem;font-size:.95rem;min-height:44px;border-radius:8px;padding:0 .75rem}.nav button[aria-current=page]{background:var(--accent-soft)}.main{max-width:1200px;width:100%;margin:0}.main.split{display:grid;grid-template-columns:minmax(320px,1fr) minmax(420px,1.2fr);gap:1.5rem;align-items:start}.main.split .listpane{display:block}.editpane{position:sticky;top:68px;max-height:calc(100vh - 84px);overflow:auto;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:1rem}}.monthnav{display:grid;grid-template-columns:44px 1fr 44px;gap:.5rem;margin-bottom:1rem}.monthnav input{text-align:center}.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem}.kpis div{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:.6rem;display:flex;flex-direction:column;gap:.2rem;min-width:0}.kpis span{font-size:.72rem;color:var(--muted)}.kpis strong{font-size:1.15rem;overflow-wrap:anywhere}.notice{background:var(--warn-soft);border-radius:8px;padding:.5rem .75rem;font-size:.85rem;margin:.5rem 0}.bars,.kv,.txlist{list-style:none;margin:0;padding:0}.bars>li{background:var(--card);border:1px solid var(--line);border-radius:8px;margin-bottom:.4rem}.bars summary{display:grid;grid-template-columns:1fr auto;padding:.6rem .75rem .9rem;position:relative;cursor:pointer;list-style:none}.bars summary::-webkit-details-marker{display:none}.bars .bamt{font-weight:600;font-variant-numeric:tabular-nums}.bars .bar{position:absolute;left:.75rem;bottom:.4rem;height:4px;border-radius:2px;background:var(--accent);max-width:calc(100% - 1.5rem)}.bars details ul{list-style:none;margin:0;padding:0 .75rem .6rem}.bars details li,.kv li{display:flex;justify-content:space-between;gap:1rem;padding:.3rem 0;font-size:.9rem;font-variant-numeric:tabular-nums}.kv li{border-bottom:1px solid var(--line)}.search{margin-bottom:.5rem}.txlist li button{width:100%;text-align:left;display:grid;grid-template-columns:1fr auto;gap:.15rem .75rem;border-radius:8px;margin-bottom:.35rem;padding:.6rem .75rem}.txlist li button[aria-current=true]{border-color:var(--accent);background:var(--accent-soft)}.tstore{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tamt{text-align:right;font-weight:600;font-variant-numeric:tabular-nums}.tamt small,.tstore small{font-weight:400;color:var(--muted)}.tcats{font-size:.78rem;color:var(--muted);grid-column:1}.badge{grid-column:2;justify-self:end;font-size:.7rem;padding:.05rem .45rem;border-radius:99px;background:var(--warn-soft);border:1px solid #e5cf8a}.entry{display:flex;flex-direction:column;gap:.75rem}.entry h3{margin:.5rem 0 0}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}.span2{grid-column:1 / -1}.seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;border:1px solid var(--line);border-radius:8px;overflow:hidden}.seg button{border:none;border-radius:0;background:var(--card)}.seg button[aria-pressed=true]{background:var(--accent);color:#fff;font-weight:600}.seg.small button{min-height:38px;font-size:.85rem}.lines{display:flex;flex-direction:column;gap:.5rem}.line{display:grid;grid-template-columns:1fr 7.5rem 44px;grid-template-areas:"name amt del" "cat cat chk" "alloc alloc alloc";gap:.35rem;padding:.5rem;background:var(--card);border:1px solid var(--line);border-radius:8px}.lname{grid-area:name}.lamt{grid-area:amt;text-align:right;font-variant-numeric:tabular-nums}.lcat{grid-area:cat}.line .icon{grid-area:del}.line .chk{grid-area:chk}.lcat[data-missing=true]{border-color:var(--bad);background:var(--bad-soft)}.chk{flex-direction:row;align-items:center;gap:.3rem;font-size:.75rem}.chk input{width:auto;min-height:0}.alloc{grid-area:alloc;display:flex;gap:.6rem;justify-content:flex-end;font-size:.8rem;font-variant-numeric:tabular-nums}input.big{font-size:1.35rem;font-weight:600;text-align:right}.fx{background:var(--accent-soft);padding:.6rem;border-radius:8px}.recon{display:grid;grid-template-columns:1fr auto;gap:.25rem 1rem;margin:0;background:var(--card);border:1px solid var(--line);border-radius:8px;padding:.75rem;font-variant-numeric:tabular-nums}.recon dt{color:var(--muted)}.recon dd{margin:0;text-align:right}.recon dd.big{font-size:1.35rem;font-weight:700}.problems{margin:0;padding:.6rem .75rem;list-style:none;background:var(--bad-soft);color:var(--bad);border-radius:8px;font-size:.88rem}.actions{display:flex;flex-wrap:wrap;gap:.5rem}.actions .primary{flex:1 1 100%}@media(min-width:900px){.main:not(.split) .line{grid-template-columns:1fr 8rem 14rem auto 44px;grid-template-areas:"name amt cat chk del" "alloc alloc alloc alloc alloc"}.actions .primary{flex:0 0 auto}}.settings{display:flex;flex-direction:column;gap:.75rem;max-width:480px}.toast{position:fixed;left:50%;transform:translate(-50%);bottom:calc(80px + env(safe-area-inset-bottom));z-index:5;padding:.6rem 1rem;border-radius:8px;background:var(--ink);color:#fff;font-size:.9rem;max-width:calc(100% - 2rem)}.toast.error{background:var(--bad)}@media(min-width:900px){.toast{bottom:1.5rem}}.small{font-size:.8rem}button.pill{min-height:32px;border:none;cursor:pointer;max-width:60vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pill.sync-error,.pill.sync-otherUser,.pill.has-conflicts{background:var(--bad-soft);color:var(--bad)}.pill.sync-offline,.pill.sync-signedOut{background:var(--warn-soft);color:#6b5300}.pill.sync-off{background:var(--line);color:var(--muted)}.banner{border-radius:8px;padding:.6rem .75rem;font-size:.88rem;background:var(--accent-soft)}.banner.warn{background:var(--warn-soft)}.banner.bad{background:var(--bad-soft);color:var(--bad)}.banner ul{margin:.3rem 0 0;padding-left:1.1rem}.banner .actions{margin-top:.5rem}.capture{display:flex;flex-wrap:wrap;gap:.5rem}.capture button{flex:1 1 8rem}.thumbs{display:flex;gap:.5rem;overflow-x:auto;padding-bottom:.25rem}.thumb{position:relative;margin:0;flex:0 0 auto}.thumb img{display:block;height:140px;width:auto;border-radius:6px;border:1px solid var(--line);background:#fff}.thumb .icon{position:absolute;top:4px;right:4px;min-height:32px;width:32px;background:#ffffffe6}.thumb-empty{height:140px;width:100px;display:grid;place-items:center;text-align:center;font-size:.75rem;color:var(--muted);border:1px dashed var(--line);border-radius:6px;padding:.25rem}@media(min-width:900px){.editpane .thumb img{height:320px}}.alloc .hint{margin-right:auto;color:var(--accent)}.lcat[data-suggested]{border-color:var(--accent)}.bocrow{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}.section-head{display:flex;align-items:baseline;justify-content:space-between}.section-head h3{margin-bottom:.5rem}.budgets .brow{display:grid;grid-template-columns:1fr auto;padding:.6rem .75rem .9rem;position:relative;gap:.5rem}.budgets .bar.over{background:var(--bad)}.budget-editor{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:.75rem;margin-bottom:.75rem;display:flex;flex-direction:column;gap:.6rem}input[aria-invalid=true]{border-color:var(--bad)}.badges{grid-column:2;justify-self:end;display:flex;gap:.3rem}.badges .badge{grid-column:auto}.badge.conflict{background:var(--bad-soft);border-color:var(--bad);color:var(--bad)}.signin,.syncbox{display:flex;flex-direction:column;gap:.6rem}.syncbox p{margin:0}.spending-charts{display:grid;gap:1rem;margin:1.25rem 0}.chart-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:1rem;min-width:0}.chart-heading{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem}.chart-heading h3{color:var(--ink);margin:0}.chart-heading>span{color:var(--muted);font-size:.8rem;white-space:nowrap}.chart-key{display:flex;gap:1rem;margin:.8rem 0 .2rem;font-size:.8rem}.chart-key span{display:inline-flex;align-items:center;gap:.35rem}.chart-key i{width:.65rem;height:.65rem;border-radius:3px;display:inline-block}.chart-card svg{display:block;width:100%;height:auto;overflow:visible}.chart-card svg text{font-size:12px;fill:var(--muted)}.chart-bar{cursor:pointer}.chart-bar:hover{opacity:.7}.chart-card>p{margin:.6rem 0 0}.chart-table{overflow-x:auto;margin-top:.5rem;font-size:.8rem}.chart-table summary{cursor:pointer;color:var(--accent);padding:.5rem 0}.chart-table table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}.chart-table th,.chart-table td{padding:.5rem .3rem;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}.chart-table th:first-child{text-align:left}.chart-table button{min-height:32px;padding:.2rem .4rem}.correction-toggle{display:flex;flex-direction:row;align-items:center;gap:.5rem}.correction-toggle input{width:20px;min-height:20px}@media(max-width:480px){.chart-card{padding:.65rem}.chart-heading{flex-wrap:wrap}h1{font-size:.95rem}}
