:root{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;color:#202b32;background:#f3f6f5;font-size:16px}*{box-sizing:border-box}body{margin:0;padding-bottom:calc(82px + env(safe-area-inset-bottom))}header{background:#245b4a;color:#fff;padding:calc(12px + env(safe-area-inset-top)) 16px 12px;position:sticky;top:0;z-index:5}.header-line{display:flex;align-items:center;justify-content:space-between}.brand{font-weight:800;font-size:20px;letter-spacing:.02em}.sub{font-size:12px;opacity:.85;margin-top:2px}.icon-btn{border:1px solid #ffffff66;background:#ffffff18;color:white;border-radius:12px;font-size:23px;width:42px;height:40px}main{max-width:760px;margin:0 auto;padding:14px}.panel h1{font-size:23px;margin:8px 0 16px}.title-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.period-switch{display:flex;align-items:center;gap:8px}.period-switch button{border:0;background:#e5eeeb;color:#245b4a;border-radius:9px;width:34px;height:34px;font-size:16px}.period-switch strong{font-size:14px;white-space:nowrap}.card{background:white;border:1px solid #e1e9e6;border-radius:15px;padding:15px;margin:12px 0;box-shadow:0 2px 8px #173b2b0a}.card h2{font-size:17px;margin:0 0 12px;color:#245b4a}.amount-row{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #edf1ef;font-size:14px}.amount-row:last-child{border-bottom:0}.amount-row strong{font-variant-numeric:tabular-nums;white-space:nowrap}.amount-row.total{font-weight:800;color:#173f32}.amount-row.total strong{font-size:18px}.empty,.hint{font-size:13px;line-height:1.65;color:#66746e}.muted{font-size:13px;color:#63716b}.field{margin:12px 0}label{display:block;font-size:14px;font-weight:650;margin:10px 0 6px}input,select{font:inherit;width:100%;padding:12px;border:1px solid #cbd7d2;border-radius:10px;background:white;color:#1f2b26}button{font:inherit;border:1px solid #cbd7d2;background:#fff;color:#25352e;border-radius:10px;padding:10px 13px;cursor:pointer}button:disabled{opacity:.45}.primary{background:#245b4a;color:white;border-color:#245b4a}.danger{background:#fff1f0;border-color:#e4aaa5;color:#a22d27}.actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.actions button{flex:1;min-width:135px}.hidden{display:none!important}.tabs{position:fixed;bottom:0;left:0;right:0;z-index:10;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;padding:7px 4px calc(7px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #dce5e1;box-shadow:0 -3px 12px #183d2c0c}.tabs button{border:0;background:transparent;padding:9px 1px 7px;border-radius:9px;font-size:10px;white-space:nowrap;color:#59665f}.tabs button.active{background:#e8f1ed;color:#1d634a;font-weight:800}details{border-top:1px solid #edf1ef;padding:12px 0;font-size:14px}details p{font-size:13px;line-height:1.7;color:#59665f}.file-label{display:block;padding:12px;border:1px dashed #8ca99b;border-radius:10px;color:#245b4a;text-align:center}.file-label input{margin-top:8px;border:0;padding:0}#toast{position:fixed;bottom:calc(88px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:#20352c;color:white;padding:10px 16px;border-radius:10px;font-size:13px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:20;max-width:90vw}#toast.show{opacity:1}ul{padding-left:22px;font-size:13px;line-height:1.7}@media(min-width:650px){.tabs{max-width:760px;left:50%;transform:translateX(-50%);border:1px solid #dce5e1;border-bottom:0;border-radius:14px 14px 0 0}.tabs button{font-size:12px}}
