@import"https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&display=swap";:root{font-family:Noto Sans JP,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#252b26;background:#f6f7f4;font-synthesis:none;text-rendering:optimizeLegibility;font-weight:400;--green:#27845b;--green-bg:#eaf5ed;--orange:#c77726;--orange-bg:#fff1df;--line:#e6e9e2;--muted:#778077;--surface:#fff;--accent:#27664b}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}.app-shell{min-height:100vh}.sidebar{width:250px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:26px 16px;display:flex;flex-direction:column;gap:7px;z-index:2}.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:17px;color:#24583f;padding:0 9px 27px}.brand svg{width:25px;height:25px}.nav-label,.eyebrow{font-size:10px;font-weight:700;letter-spacing:.12em;color:#8a9388}.nav-label{padding:0 10px 8px}.nav-button{display:flex;align-items:center;gap:12px;border:0;background:transparent;color:#5f695f;padding:12px 11px;border-radius:9px;text-align:left;font-size:13px}.nav-button svg{width:18px;height:18px}.nav-button:hover,.nav-button.active{background:#edf5ee;color:#245e42}.nav-button.active{font-weight:700}.sidebar-bottom{margin-top:auto;display:flex;flex-direction:column;gap:12px;padding:10px}.ghost,.text-button{border:0;background:transparent;color:#526358;padding:5px;display:inline-flex;align-items:center;gap:7px}.main{margin-left:250px;padding:32px clamp(18px,4vw,56px);max-width:1700px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.topbar h1{font-size:25px;letter-spacing:-.04em;margin:7px 0 0}.month-switch{display:flex;align-items:center;gap:13px;white-space:nowrap}.month-switch strong{font-size:14px}.icon-button{border:1px solid var(--line);background:#fff;border-radius:8px;width:35px;height:35px;display:grid;place-items:center;color:#58665a}.icon-button svg{width:17px}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:18px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px;display:flex;flex-direction:column;gap:10px;min-width:0}.stat-card>span{font-size:12px}.stat-card strong{font-size:clamp(17px,2vw,24px);letter-spacing:-.03em;overflow-wrap:anywhere}.panel{background:#fff;border:1px solid var(--line);border-radius:13px;padding:23px;margin-bottom:18px;min-width:0}.panel h2{font-size:16px;margin:0 0 17px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.section-head h2{margin:0}.section-head p{margin:5px 0 0}.muted{color:var(--muted)}.small{font-size:11px}.secondary,.primary{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:8px;padding:10px 14px;font-size:12px;font-weight:600}.secondary{background:#fff;border:1px solid #dce3d9;color:#405748}.primary{background:#286347;border:1px solid #286347;color:#fff}.primary:hover{background:#1d5037}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.weekday{text-align:center;padding:9px 0;font-size:11px;color:#7c857c}.day{min-width:0;min-height:87px;border:1px solid #e9ece6;background:#fff;border-radius:7px;padding:7px 5px;display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;overflow:hidden}.day:not(.empty):hover{border-color:#8bad96;background:#fbfdfb}.day.empty{background:#fafbf9;border-color:transparent}.day-number{font-size:11px;color:#606b60;margin-bottom:2px}.expense{color:var(--orange)!important}.income{color:var(--green)!important}.day .expense,.day .income{font-size:clamp(8px,.9vw,11px);font-weight:600;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.form-panel{max-width:900px}.entry-form,.search-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.field{display:flex;flex-direction:column;gap:8px;min-width:0}.field label,.login label{font-size:12px;font-weight:600;color:#4e5a50}.field input,.field select,.field textarea,.login input,.month-input{border:1px solid #dfe4dc;background:#fff;border-radius:8px;padding:11px 12px;width:100%;min-width:0;color:#27332a;outline:none;font-size:13px}.field input:focus,.field select:focus,.field textarea:focus,.login input:focus{border-color:#6e9b7c;box-shadow:0 0 0 3px #e9f3eb}.full{grid-column:1/-1}.segmented{display:flex;gap:5px;background:#f3f5f1;padding:4px;border-radius:9px}.segmented button{flex:1;border:0;background:transparent;border-radius:6px;padding:9px;color:#697269;font-size:12px}.segmented button.selected{background:#fff;color:#265c40;box-shadow:0 1px 4px #182d1b13;font-weight:700}.check-field{grid-column:1/-1;display:flex;align-items:center;gap:9px;font-size:13px}.check-field input{accent-color:#286347;width:16px;height:16px}.form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:9px;padding-top:6px}.table-wrap{overflow:auto;width:100%}table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}th{font-size:10px;font-weight:600;color:#899187;background:#fafbf9;white-space:nowrap}td,th{padding:12px 10px;border-bottom:1px solid #edf0eb}tbody tr:last-child td{border-bottom:0}td{white-space:nowrap}td .memo{max-width:240px;white-space:normal;margin-top:4px}td.amount{font-weight:700}.actions{display:flex;gap:7px}.text-button{font-size:11px;white-space:nowrap}.text-button:hover{color:#1e6b45}.text-button.danger{color:#b45d50}.empty-state{padding:32px;text-align:center;color:#8a9289;font-size:13px}.search-grid{margin:18px 0 24px}.results-head{margin-top:26px}.notice{display:flex;justify-content:space-between;align-items:center;gap:15px;background:#edf5ee;border:1px solid #d7e9d9;border-radius:8px;padding:12px 15px;font-size:12px;margin-bottom:17px}.notice button{background:none;border:0;color:#365f43}.category-row{display:grid;grid-template-columns:100px minmax(50px,1fr) auto 42px;align-items:center;gap:15px;padding:14px 0;border-bottom:1px solid #edf0eb;font-size:12px}.bar-track{height:7px;background:#f0f2ee;border-radius:20px;overflow:hidden}.bar-fill{height:100%;background:#6da27d;border-radius:20px}.budget-form{align-items:end;border-bottom:1px solid var(--line);padding-bottom:22px}.budget-row{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:16px 0;border-bottom:1px solid #edf0eb;font-size:13px}.budget-row p{margin:6px 0 0}.credit-form{display:grid;grid-template-columns:1fr 1.5fr auto;gap:14px;align-items:end}.credit-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0 16px}.credit-cards .stat-card{padding:16px}.credit-cards .stat-card strong{font-size:17px}footer{font-size:11px;color:#8a9289;padding:8px 0 24px}.center{min-height:100vh;display:grid;place-items:center;padding:20px;background:#f6f7f4}.login,.setup{width:min(100%,420px);padding:32px}.login .brand{padding:0 0 9px}.login>p{margin:0 0 24px;font-size:12px}.login label{display:flex;flex-direction:column;gap:8px;margin:17px 0}.login .primary{width:100%;margin-top:7px}.login .small{margin-top:18px;line-height:1.7}.error{color:#b53d32!important;font-size:12px!important}.setup ol{padding-left:22px;font-size:13px;line-height:2}.setup code{background:#f0f2ed;padding:2px 4px;border-radius:3px}@media(max-width:1050px){.sidebar{width:210px}.main{margin-left:210px;padding:25px 22px}.day{min-height:72px}.panel{padding:18px}.credit-cards .stat-card strong{font-size:14px}}@media(max-width:760px){.sidebar{position:sticky;width:100%;height:auto;inset:auto;padding:10px 12px;display:flex;flex-direction:row;align-items:center;overflow-x:auto;border-right:0;border-bottom:1px solid var(--line);gap:5px}.sidebar .brand{padding:0 8px 0 2px;white-space:nowrap;font-size:13px}.sidebar .brand svg{width:20px}.nav-label,.sidebar-bottom{display:none}.nav-button{padding:9px;white-space:nowrap;font-size:11px;gap:6px}.nav-button svg{width:16px}.main{margin-left:0;padding:20px 12px}.topbar{align-items:flex-start;flex-direction:column;gap:14px}.topbar h1{font-size:22px}.month-switch{align-self:flex-end;margin-top:-49px}.stats{gap:7px}.stat-card{padding:13px 10px;border-radius:9px;gap:8px}.stat-card>span{font-size:10px}.stat-card strong{font-size:15px}.panel{padding:15px;margin-bottom:13px}.calendar-grid{gap:3px}.day{min-height:63px;padding:5px 3px;border-radius:5px;gap:4px}.day .expense,.day .income{font-size:8px}.weekday{font-size:10px}.entry-form,.search-grid{grid-template-columns:1fr;gap:14px}.full,.check-field,.form-actions{grid-column:auto}.category-row{grid-template-columns:75px minmax(30px,1fr) auto 30px;gap:7px;font-size:10px}.credit-form,.credit-cards{grid-template-columns:1fr}.credit-cards .stat-card strong{font-size:19px}.section-head{align-items:flex-start;flex-wrap:wrap}.table-wrap{margin:0 -5px;width:calc(100% + 10px)}td,th{padding:10px 8px}.budget-row{font-size:11px}.login,.setup{padding:24px}}
