:root {
  color-scheme: light;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --primary: #0284c7;
  --primary-hover: #0369a1;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Egységes Portál Fejléc és Menü */
.portal-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  padding: 14px 20px;
}
.portal-header-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.portal-brand {
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
}
.portal-brand:hover { text-decoration: none; color: #0f172a; }
.portal-brand span, .portal-brand i { color: var(--primary); }
.portal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.portal-nav a, .portal-nav .nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 6px;
  transition: all .15s ease-in-out;
}
.portal-nav a:hover, .portal-nav .nav-link:hover {
  color: var(--primary);
  background: #f0f9ff;
  text-decoration: none;
}
.portal-nav a.active, .portal-nav .nav-link.active {
  color: var(--primary);
  font-weight: 700;
  background: #e0f2fe;
}

main { max-width: 1000px; width: 100%; padding: 24px 16px 64px; margin: 0 auto; overflow-wrap: anywhere; flex: 1; }
header, .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
h1 { font-size: 1.65rem; color: #0f172a; margin: 12px 0 6px 0; }
.lead-desc { color: var(--text-muted); margin: 0 0 16px 0; }
h2 { font-size: 1.2rem; margin-top: 24px; color: #0f172a; }
section, article { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin: 18px 0; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
label { display: block; margin: 14px 0; font-weight: 600; color: #334155; }
input, select, textarea, button { font: inherit; }
input:not([type=checkbox]), select, textarea { width: 100%; margin-top: 6px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 10px 12px; background: #ffffff; color: #0f172a; transition: border-color .15s ease; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15); }
textarea { resize: vertical; }
button, .button { display: inline-block; max-width: 100%; cursor: pointer; border: 1px solid var(--primary); background: var(--primary); color: white; border-radius: 8px; padding: 10px 18px; margin: 6px 6px 6px 0; text-decoration: none; font-weight: 600; transition: background-color .15s ease; }
button:hover, .button:hover { background: var(--primary-hover); }
button:disabled { opacity: .55; cursor: default; }
select:disabled, input:read-only { opacity: 1; background: #f1f5f9; color: #64748b; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.check { display: flex; gap: 10px; align-items: baseline; font-weight: 400; color: #334155; }
.hint { font-size: .9rem; color: var(--text-muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.error { border-left: 4px solid #dc2626; padding: 14px; background: #fef2f2; border-radius: 6px; color: #991b1b; }
.success { border-left: 4px solid #16a34a; padding: 14px; background: #f0fdf4; border-radius: 6px; color: #166534; }
.ticket-row { padding: 12px 0; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.text { white-space: pre-wrap; overflow-wrap: anywhere; }
.preview { max-width: 220px; max-height: 160px; object-fit: contain; display: block; border-radius: 6px; }
[hidden] { display: none !important; }

/* Egységes Portál Lábléc */
.portal-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 24px 16px;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: auto;
}
.portal-footer a { color: var(--text-muted); text-decoration: none; margin: 0 6px; }
.portal-footer a:hover { color: var(--primary); text-decoration: underline; }
