:root { --fg: #1d2330; --muted: #667085; --bg: #f7f8fa; --card: #fff; --line: #e3e6ea; --accent: #2557a7; --pos: #137a3a; --neg: #b42318; --warnbg: #fff4e5; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--fg); background: var(--bg); }
main { max-width: 960px; margin: 0 auto; padding: 16px; }
a { color: var(--accent); }
.devbar { background: #b42318; color: #fff; text-align: center; font-weight: 600; padding: 4px; font-size: 14px; }
.top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.top nav { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.brand { font-weight: 700; text-decoration: none; color: var(--fg); }
h1 { font-size: 1.6rem; margin: 8px 0 12px; } h2 { font-size: 1.15rem; margin: 24px 0 8px; }
.muted { color: var(--muted); } .hint { color: var(--neg); font-size: 0.85rem; margin: 0; }
.ok { background: #e7f6ec; padding: 8px 12px; border-radius: 6px; }
.warn { background: var(--warnbg); border-left: 4px solid #f79009; padding: 8px 12px; border-radius: 6px; }
.balance { display: flex; align-items: baseline; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; width: fit-content; }
.balance .num { font-size: 2.6rem; font-weight: 700; } .balance .label { color: var(--muted); }
.table { width: 100%; border-collapse: collapse; background: var(--card); }
.table th, .table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table.small { font-size: 0.85rem; } .table code { white-space: pre-wrap; word-break: break-word; }
.pos { color: var(--pos); font-weight: 600; } .neg { color: var(--neg); font-weight: 600; }
tr.reversed td, tr.inactive td, li.retracted .body { color: var(--muted); } li.retracted .body { text-decoration: line-through; }
tr.flag td { background: var(--warnbg); }
.tag { display: inline-block; font-size: 0.75rem; padding: 0 6px; border-radius: 10px; background: #eef1f5; color: var(--muted); }
.notes, .list { list-style: none; padding: 0; } .notes li, .list li { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.notes .meta { font-size: 0.8rem; color: var(--muted); } .notes .body { white-space: pre-wrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 12px 0; }
.card h2 { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 8px; } .stack label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .inline { display: inline; }
input, textarea, select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
textarea { min-height: 80px; }
button, .button { font: inherit; padding: 6px 14px; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
button.small { padding: 2px 10px; font-size: 0.85rem; } button.danger { background: var(--neg); border-color: var(--neg); }
button.link { background: none; border: none; color: var(--accent); padding: 0; text-decoration: underline; }
