:root {
  --bg: #0F1535; --card: #1C2350; --text: #E3E8F1; --muted: #AEB9CC; --border: #333C63;
  --gold: #F0B44A; --on-gold: #12203A; --ok: #10B981; --err: #EF4444; --gray: #7C869C;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 "IBM Plex Sans", system-ui, "Segoe UI", sans-serif; }
a { color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
main { max-width: 1200px; margin: 0 auto; padding: 24px; }
main.narrow { max-width: 420px; padding-top: 10vh; }
h1 { font-size: 24px; margin: 0 0 16px; overflow-wrap: anywhere; }
h2 { font-size: 17px; margin: 0 0 12px; }
main > h2 { margin-top: 28px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 20px; margin-bottom: 20px; overflow-x: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 20px; }
.grid .card { margin: 0; }
.muted { color: var(--muted); }
.mono { font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 13px; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
label { display: block; color: var(--muted); margin: 12px 0 4px; }
input, select, textarea { width: 100%; padding: 9px 10px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 6px; font: inherit; }
textarea { min-height: 110px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
button { margin-top: 14px; padding: 9px 16px; background: var(--gold); color: var(--on-gold); border: 0; border-radius: 6px; font: inherit; font-weight: 600; cursor: pointer; }
button.plain { margin: 0; background: transparent; color: var(--muted); border: 1px solid var(--border); font-weight: 400; }
button.danger { background: var(--err); color: #fff; }
.alert { border: 1px solid var(--err); border-radius: 6px; padding: 10px 12px; margin-bottom: 16px; }
.alert.warn { border-color: var(--gold); }
.lamp { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: middle; background: var(--gray); }
.lamp.green { background: var(--ok); }
.lamp.yellow { background: var(--gold); }
.lamp.red { background: var(--err); }
.nowrap, td.mono { white-space: nowrap; }
pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; max-height: 420px; overflow-y: auto; }
details summary { cursor: pointer; color: var(--muted); margin-top: 12px; }
.tag { display: inline-block; padding: 1px 8px; border: 1px solid var(--border); border-radius: 10px; font-size: 12px; color: var(--muted); }
.tag.gold { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
tr.soon td { background: rgba(240, 180, 74, 0.08); }
form.inline { display: flex; gap: 12px; align-items: end; margin-bottom: 20px; flex-wrap: wrap; }
form.inline label { margin: 0 0 4px; }
form.inline select { width: auto; min-width: 240px; }
form.inline button, form.row button { margin-top: 0; }
form.row { display: flex; gap: 8px; align-items: center; margin: 0; }
form.row select { width: auto; min-width: 160px; }
ul { margin: 0; padding-left: 20px; }

/* felső menüsor */
header.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px; padding: 0 24px; min-height: 60px; background: var(--card); border-bottom: 1px solid var(--border); box-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
header.top .brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex-shrink: 0; }
header.top .brand img { display: block; }
header.top .brand span { display: flex; flex-direction: column; line-height: 1.1; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
header.top .brand b { font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--text); font-weight: 600; }
header.top nav { display: flex; align-self: stretch; gap: 4px; flex-wrap: wrap; }
header.top nav a { display: flex; align-items: center; padding: 0 12px; color: var(--muted); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
header.top nav a:hover { color: var(--text); }
header.top nav a.active { color: var(--gold); border-bottom-color: var(--gold); }
header.top .account { margin-left: auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
header.top .who { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
header.top form { margin: 0; }
header.top button.plain { padding: 6px 12px; font-size: 13px; }
header.top button.plain:hover { color: var(--text); border-color: var(--muted); }
.login-mark { display: block; margin: 0 auto 8px; }
@media (max-width: 760px) {
  header.top { flex-wrap: wrap; gap: 8px 16px; padding: 8px 16px; }
  header.top nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  header.top nav a { padding: 8px 10px; white-space: nowrap; }
  header.top .who { display: none; }
}
