:root {
  --bg: #f4f5f7; --card: #fff; --text: #1d2330; --muted: #6b7280; --line: #e3e6ea;
  --accent: #1f6feb; --ok-bg: #e7f6ec; --ok: #1a7f37; --err-bg: #fdecec; --err: #c62828; --warn: #b45309;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 24px; background: #1d2330; color: #fff; }
header h1 { margin: 0; font-size: 18px; }
nav a { color: #c9d1d9; text-decoration: none; margin-left: 18px; }
nav a.active, nav a:hover { color: #fff; }
main { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin-bottom: 20px; }
h2 { margin: 0 0 14px; font-size: 16px; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 13px; }
input, select { font: inherit; padding: 8px 10px; border: 1px solid #c8cdd3; border-radius: 6px; background: #fff; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
input.big { font-size: 22px; font-family: ui-monospace, Consolas, monospace; letter-spacing: 1px; text-transform: uppercase; }
.grid { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.grid .full { grid-column: 1 / -1; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.row.between { justify-content: space-between; align-items: center; }
.row .grow { flex: 1; min-width: 180px; }
label.check { flex-direction: row; align-items: center; font-weight: 400; }
.preview { font-size: 18px; }
.preview strong { font-family: ui-monospace, Consolas, monospace; }
button { font: inherit; padding: 8px 16px; border-radius: 6px; border: 1px solid #c8cdd3; background: #fff; cursor: pointer; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; padding: 10px 28px; font-weight: 600; }
button.link { border: 0; background: none; padding: 0; color: var(--accent); }
.danger { color: var(--err) !important; }
.msg { padding: 10px 14px; border-radius: 6px; margin: 0 0 16px; }
.msg.ok { background: var(--ok-bg); color: var(--ok); }
.msg.error { background: var(--err-bg); color: var(--err); }
.warn { color: var(--warn); font-weight: 600; }
.muted, .hint { color: var(--muted); }
.hint { font-size: 13px; margin: 12px 0 0; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }
td.actions { display: flex; gap: 12px; }
td.actions form { display: inline; }
a { color: var(--accent); }
pre.json { background: #0d1117; color: #e6edf3; padding: 16px; border-radius: 6px; overflow-x: auto; font-size: 13px; margin: 0; }
.login { max-width: 340px; margin: 12vh auto; background: #fff; padding: 28px; border-radius: 8px; border: 1px solid var(--line); }
.login form { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
td.wide { width: 100%; } td.wide input { width: 100%; min-width: 220px; }
