:root { --green:#294c3b; --line:#dfe2df; --muted:#69716b; --paper:#fff; }
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:#252b27; font:14px/1.6 -apple-system,BlinkMacSystemFont,'Segoe UI','Malgun Gothic',sans-serif; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; color:inherit; border:1px solid #d6dbd7; background:#fff; border-radius:4px; padding:7px 12px; }
button:hover { background:#f2f4f2; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:2px solid #52765e; outline-offset:3px; }
aside { position:fixed; inset:0 auto 0 0; width:194px; padding:30px 18px; background:#f5f6f4; border-right:1px solid var(--line); }
.brand { display:block; color:#272e28; text-decoration:none; font-size:19px; font-weight:700; letter-spacing:-.7px; padding:0 10px; }
nav { margin-top:33px; }
nav button { display:block; width:100%; margin:4px 0; padding:10px 12px; text-align:left; border:0; background:transparent; color:#626b64; border-radius:4px; }
nav button.active { background:#e6ece7; color:#264a34; font-weight:600; }
main { margin-left:194px; padding:0 40px 32px; max-width:1420px; }
header { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:76px; border-bottom:1px solid var(--line); color:var(--muted); font-size:12px; }
header b { color:#353e37; font-weight:500; }
.tools { display:flex; align-items:center; gap:8px; }
.month { display:flex; align-items:center; gap:10px; white-space:nowrap; }
.month input { width:148px; padding:6px 8px; }
.quiet { font-size:12px; padding:6px 10px; }
.intro { padding:26px 0 16px; }
h1 { font-size:25px; line-height:1.4; letter-spacing:-.7px; margin:0; font-weight:650; }
p { color:var(--muted); line-height:1.7; }
.intro p { margin:6px 0 0; font-size:13px; }
.intro p:empty { display:none; }
.notice { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:11px; color:var(--muted); margin-bottom:14px; }
.notice button { border:0; padding:4px 0 4px 10px; background:transparent; font-size:11px; text-decoration:underline; text-underline-offset:3px; }
.overview-list { border-top:1px solid #aeb8b0; }
.panel { padding:23px 0 20px; border-bottom:1px solid var(--line); }
.panel-head { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:12px; }
.panel-head h2 { font-size:16px; font-weight:650; line-height:1.5; margin:0; }
.panel-head small { display:block; font-size:12px; font-weight:400; color:var(--muted); margin-top:3px; }
.panel-head button { font-size:12px; padding:6px 11px; }
.primary { background:var(--green); border-color:var(--green); color:white; }
.primary:hover { background:#365d46; }
.rows { display:flex; flex-direction:column; }
.row { display:flex; align-items:center; gap:14px; min-height:65px; padding:12px 0; border-top:1px solid #edf0ec; }
.row:first-child { border-top:0; }
.datebox { display:flex; gap:4px; align-items:baseline; flex-shrink:0; width:66px; font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums; }
.datebox strong { font-weight:600; font-size:15px; color:#383f39; }
.row .detail { flex:1; min-width:0; }
.detail b { display:block; font-weight:500; overflow-wrap:anywhere; }
.detail small { display:block; color:var(--muted); font-size:12px; margin-top:2px; overflow-wrap:anywhere; }
.amount { text-align:right; min-width:105px; font-variant-numeric:tabular-nums; font-weight:600; white-space:nowrap; }
.edit { font-size:11px; padding:4px 7px; color:#626b64; }
.badge { display:inline-block; text-align:center; min-width:60px; padding:3px 6px; border-radius:3px; font-size:11px; background:#eef0ed; color:#58665b; }
button.badge { border-color:transparent; }
.badge.warn { background:#f8eee7; color:#8d4a24; }
.row.done .detail b { text-decoration:line-through; color:#838b84; }
.check { flex:0 0 17px; width:17px; height:17px; accent-color:var(--green); margin:0; }
.empty { color:var(--muted); font-size:12px; padding:6px 0 10px; }
.stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:8px 0 0; padding:16px 0; border-top:1px solid #aeb8b0; border-bottom:1px solid var(--line); gap:18px; }
.stat { padding:0 16px 0 0; border-right:1px solid var(--line); }
.stat:last-child { border:0; }
.stat small { color:var(--muted); font-size:12px; }
.stat strong { display:block; font-size:22px; font-weight:600; margin:6px 0; font-variant-numeric:tabular-nums; letter-spacing:-.5px; }
.stat span { color:var(--muted); display:block; font-size:11px; }
.budget { display:grid; grid-template-columns:1fr 1fr; gap:16px; max-width:800px; }
.budget label { font-size:12px; }
input,select,textarea { width:100%; min-width:0; background:#fff; color:#252b27; border:1px solid #cdd4ce; border-radius:4px; padding:9px; }
.budget input { margin-top:6px; }
.form-field { display:block; margin:16px 0; font-size:12px; }
.form-field input,.form-field select,.form-field textarea { margin-top:6px; }
dialog { max-width:480px; width:calc(100% - 32px); color:#252b27; background:#fff; border:1px solid var(--line); border-radius:6px; padding:25px; }
dialog::backdrop { background:#18231c66; }
.dialog-top,.dialog-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.dialog-top h2 { font-size:20px; margin:0; }
.dialog-top button { border:0; font-size:23px; padding:0 4px; }
.dialog-actions { justify-content:flex-end; margin-top:22px; }
.danger { margin-right:auto; color:#a13b2e; }
#toast { display:none; position:fixed; bottom:24px; left:50%; transform:translateX(-50%); padding:10px 18px; background:#293e30; color:#fff; border-radius:4px; z-index:5; }
.filters { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.filters button { font-size:12px; }
.filters button.selected { border-color:#78927e; background:#edf2ec; }
.negative { color:#9a4c2f; }
.more { margin-top:12px; font-size:12px; }
@media(max-width:1050px) { aside { width:170px; padding:25px 12px; } .brand { font-size:17px; } main { margin-left:170px; padding:0 25px 25px; } .stats { grid-template-columns:1fr 1fr; } .stat:nth-child(2) { border:0; } }
@media(max-width:720px) { aside { position:static; width:auto; padding:20px 18px 0; border-right:0; border-bottom:1px solid var(--line); } .brand { padding:0; font-size:19px; } nav { display:flex; overflow:auto; gap:4px; margin-top:15px; } nav button { width:auto; white-space:nowrap; font-size:12px; padding:9px 10px; } main { margin:0; padding:0 18px 24px; } header { padding:13px 0; flex-wrap:wrap; gap:12px; min-height:0; } .tools { flex-wrap:wrap; } .month input { width:135px; } h1 { font-size:23px; } .intro { padding:22px 0 12px; } .intro p { font-size:12px; } .panel { padding:19px 0 16px; } .row { gap:8px; flex-wrap:wrap; } .datebox { width:52px; font-size:11px; } .amount { min-width:82px; font-size:12px; } .row .detail { min-width:110px; } .detail small { font-size:11px; } .badge { min-width:52px; font-size:10px; } .edit { font-size:10px; padding:4px 6px; } .budget { grid-template-columns:1fr; } .stats { gap:16px 10px; } .stat { padding-right:10px; } .stat strong { font-size:20px; } }
