*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Hiragino Sans,Noto Sans JP,sans-serif;background:#f6f7f9;color:#1a1d21;line-height:1.6}main{max-width:640px;margin:0 auto;padding:24px 16px 64px}h1{font-size:1.4rem}h2{font-size:1.05rem;margin:0 0 12px}section.card{background:#fff;border:1px solid #e3e6ea;border-radius:12px;padding:16px;margin-bottom:16px}button{font:inherit;padding:8px 14px;border-radius:8px;border:1px solid #cfd4da;background:#fff;cursor:pointer}button.primary{background:#2563eb;border-color:#2563eb;color:#fff}button.danger{background:#fff;border-color:#dc2626;color:#dc2626}button:disabled{opacity:.5;cursor:default}input,select{font:inherit;padding:8px 10px;border:1px solid #cfd4da;border-radius:8px;width:100%}form.row{display:flex;flex-direction:column;gap:8px}.amount{font-size:2rem;font-weight:700}.muted{color:#6b7280;font-size:.85rem}.error{color:#dc2626;font-size:.9rem}ul.plain{list-style:none;padding:0;margin:0}ul.plain li{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid #eef0f2}.stack{display:flex;flex-direction:column;gap:8px}.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.tx-row{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid #eef0f2;gap:8px}.tx-main{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 auto}.tx-side{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex-shrink:0}.tx-actions{display:flex;gap:6px}.tx-actions button{padding:4px 10px;font-size:.85rem}.tx-title{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-amount{font-weight:700;white-space:nowrap}.tx-amount.expense{color:#dc2626}.tx-amount.income{color:#16a34a}.tx-amount.transfer{color:#6b7280}.dialog-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;z-index:40}.dialog-content{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:50;background:#fff;border-radius:12px;padding:20px;width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow-y:auto}.dialog-title{font-size:1.05rem;font-weight:600;margin:0 0 12px}[data-radio-group-item][data-state=checked]{background:#2563eb;border-color:#2563eb;color:#fff}input[type=date],input[type=month]{min-height:42px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff}@media (max-width: 480px){main{padding:16px 12px 48px}h1{font-size:1.15rem}section.card{padding:14px 12px;border-radius:10px}button{padding:7px 11px;font-size:.9rem}.amount{font-size:1.5rem}.tx-title{white-space:normal}}
