:root { --blue:#0a66c2; --bg:#f3f6f9; --card:#fff; --text:#1d2226; --muted:#5e6b7a; --line:#dfe5ec; --ok:#1f7a3f; --warn:#b4480e; }
* { box-sizing:border-box; }
html,body { margin:0; background:var(--bg); color:var(--text); font:16px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; }
.top { display:flex; align-items:center; justify-content:space-between; padding:calc(env(safe-area-inset-top) + 12px) 16px 12px; background:var(--blue); color:#fff; }
.brand { color:#fff; text-decoration:none; font-weight:700; font-size:18px; }
#nav a { color:#fff; opacity:.9; margin-left:14px; text-decoration:none; font-size:14px; }
main { max-width:560px; margin:0 auto; padding:16px; padding-bottom:calc(env(safe-area-inset-bottom) + 24px); }
.foot { text-align:center; color:var(--muted); font-size:13px; padding:12px; }
.foot a { color:var(--muted); }
h1 { font-size:22px; margin:8px 0 12px; }
h2 { font-size:17px; margin:20px 0 8px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:14px; margin-bottom:12px; }
.muted { color:var(--muted); }
.small { font-size:13px; }
label { display:block; font-weight:600; margin:12px 0 4px; }
input,textarea,select { width:100%; padding:11px; border:1px solid var(--line); border-radius:8px; font:inherit; background:#fff; }
textarea { min-height:120px; }
.row { display:flex; gap:10px; }
.row > * { flex:1; }
.btn { display:inline-block; width:100%; text-align:center; padding:12px 14px; margin-top:12px; border:0; border-radius:10px; background:var(--blue); color:#fff; font:inherit; font-weight:600; text-decoration:none; cursor:pointer; }
.btn.secondary { background:#fff; color:var(--blue); border:1px solid var(--blue); }
.btn.ok { background:var(--ok); }
.btn:disabled { opacity:.5; cursor:default; }
.check { display:flex; gap:10px; align-items:flex-start; font-weight:400; }
.check input { width:auto; margin-top:4px; }
.msg { padding:10px 12px; border-radius:8px; margin-top:10px; }
.msg.error { background:#fdecea; color:#8a1c0f; }
.msg.ok { background:#e6f4ea; color:var(--ok); }
.msg.info { background:#e8f0fe; color:#174ea6; }
.list a { display:block; color:inherit; text-decoration:none; }
.item { padding:12px 0; border-top:1px solid var(--line); }
.item:first-child { border-top:0; }
.badge { display:inline-block; padding:2px 8px; border-radius:999px; font-size:12px; background:#eef2f6; color:var(--muted); }
.badge.due { background:#fff1e6; color:var(--warn); }
.balance { font-size:34px; font-weight:700; }
.post-text { white-space:pre-wrap; max-height:200px; overflow:auto; font-size:14px; color:#333; }
