:root{
  --bg:#3f3f3f;
  --top:#5a5a5a;
  --text:#eaeaea;
  --card:#ffffff;
  --cardText:#222;
  --muted:#666;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 4px;
  --max: 980px;
}
*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
.topbar{
  background: var(--top);
  padding: 14px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.tabs{
  display:flex;
  gap:22px;
  align-items:flex-end;
  font-size: 15px;
}
.tab{
  color: var(--text);
  text-decoration:none;
  padding: 6px 2px;
  opacity:.9;
}
.tab.active{
  opacity:1;
  border-bottom: 2px solid #fff;
}
.loginlink{
  color: var(--text);
  text-decoration:none;
  opacity:.9;
}
.loginlink:hover,.tab:hover{ opacity:1; }

.page{
  flex:1;
  display:flex;
  justify-content:center;
  padding: 36px 18px;
}

.card{
  width:min(var(--max), 100%);
  background: var(--card);
  color: var(--cardText);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 34px;
}

h1{
  font-size: 22px;
  margin: 0 0 12px 0;
  font-weight: 700;
}

p{ margin: 10px 0; line-height: 1.5; }
.muted{ color: var(--muted); }

pre{
  background:#f3f3f3;
  border:1px solid #e2e2e2;
  padding:12px 14px;
  border-radius:4px;
  overflow:auto;
  margin: 10px 0 14px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.section-title{ margin-top: 18px; font-weight: 700; }

.form{ max-width: 520px; }
.field{ margin: 12px 0; }
label{ display:block; font-weight:600; margin-bottom:6px; }
input{
  width:100%;
  padding:10px 12px;
  border:1px solid #d9d9d9;
  border-radius:4px;
  font-size: 14px;
}
button{
  border:0;
  border-radius:4px;
  padding:10px 14px;
  background:#2f2f2f;
  color:#fff;
  cursor:pointer;
  font-weight:600;
}
button:hover{ filter: brightness(1.05); }

.row{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.links a{
  color:#1a1a1a;
  opacity:.8;
}
.links a:hover{ opacity:1; }

.notice{
  margin-top: 12px;
  padding:10px 12px;
  border-radius:4px;
  background:#f6f6f6;
  border:1px solid #e6e6e6;
  color:#222;
}
.notice.ok{ border-color:#b6e2c0; background:#eef9f1; }
.notice.err{ border-color:#f2b7b7; background:#fff0f0; }

.small{ font-size: 13px; }

@media (max-width: 520px){
  .card{ padding: 20px 18px; }
  .tabs{ gap:14px; }
}


.inputgroup{
  display:flex;
  width:100%;
}
.inputgroup input{
  flex:1;
  border-top-right-radius:0;
  border-bottom-right-radius:0;
}
.inputgroup .suffix{
  display:flex;
  align-items:center;
  padding:0 12px;
  border:1px solid #d9d9d9;
  border-left:0;
  border-top-right-radius:4px;
  border-bottom-right-radius:4px;
  background:#f3f3f3;
  color:#333;
  font-size:14px;
  white-space:nowrap;
}


.tablewrap{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
}
table.data{
  width:100%;
  border-collapse: collapse;
  min-width: 860px; /* admin táblákhoz: legyen görgethető mobilon */
}
table.data th, table.data td{
  padding:8px;
  border-bottom:1px solid #f0f0f0;
  vertical-align: top;
}
table.data thead th{
  border-bottom:1px solid #e6e6e6;
}
.cell-meta{
  max-width: 520px;
  white-space: normal;
  word-break: break-word;
}
.cell-ip{
  white-space: nowrap;
}
