:root {
  color-scheme: light dark;
  --bg: #f6f7f9; --surface: #ffffff; --text: #1d232b; --muted: #5d6773; --line: #d9dee4;
  --accent: #1f5fbf; --accent-text: #ffffff; --ok: #1d7a45; --warn: #9a5b00; --bad: #b3261e;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14171b; --surface: #1d2127; --text: #e7eaee; --muted: #9aa4af; --line: #343a42; --accent: #6ea2ff; --accent-text: #0d1117; --ok: #5fcf8e; --warn: #f0b45a; --bad: #ff8a80; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.brand { font-size: 16px; }
nav { display: flex; flex-wrap: wrap; gap: 4px; }
nav a { color: var(--text); text-decoration: none; padding: 6px 10px; border-radius: 6px; }
nav a[aria-current="page"] { background: var(--accent); color: var(--accent-text); }
.who { margin-left: auto; color: var(--muted); display: flex; gap: 8px; align-items: center; }
main { max-width: 1180px; margin: 0 auto; padding: 20px 16px 60px; }
h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 17px; margin: 28px 0 10px; }
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
a.card { color: var(--text); text-decoration: none; }
.stat strong { display: block; font-size: 26px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
button, .button { font: inherit; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
button.danger { color: var(--bad); }
button:disabled { opacity: .55; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
form.inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
label { display: grid; gap: 3px; font-size: 13px; color: var(--muted); }
input, select, textarea { font: inherit; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--text); min-width: 0; }
textarea { width: 100%; min-height: 70px; }
pre { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px; overflow-x: auto; font-size: 13px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line); }
.tag.ok { color: var(--ok); border-color: currentColor; }
.tag.warn { color: var(--warn); border-color: currentColor; }
.tag.bad { color: var(--bad); border-color: currentColor; }
.notice { padding: 10px 12px; border-radius: 6px; border: 1px solid var(--warn); color: var(--warn); margin-bottom: 14px; }
.error { padding: 10px 12px; border-radius: 6px; border: 1px solid var(--bad); color: var(--bad); margin-bottom: 14px; }
#toast { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 6px; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: calc(100% - 32px); }
#toast.shown { opacity: 1; }
label.check { display: flex; gap: 4px; align-items: center; color: var(--text); }
fieldset { border: 1px solid var(--line); border-radius: 6px; margin: 12px 0; padding: 8px 12px 12px; }
legend { color: var(--muted); font-size: 13px; padding: 0 4px; }
.login { max-width: 360px; margin: 60px auto; display: grid; gap: 12px; }
a { color: var(--accent); }

/* The provisioner command on the Jelentkezések page */
.command { margin-top: 6px; }
.command code { word-break: break-all; }
