/* Kivitelezői Portál – arculat: fő szín piros, minden további szín a piros árnyalata.
   A kontrasztarányokat a tools/kontraszt.py méri (WCAG 2.1 AA). */

:root {
  --red-50: #fff5f5;
  --red-100: #ffe3e5;
  --red-150: #fdd5d9;
  --red-200: #fbc2c8;
  --red-300: #f5969f;
  --red-400: #ec5f6c;
  --red-500: #dc2f43;
  --red-600: #c8102e;   /* fő szín */
  --red-700: #a50d26;
  --red-800: #830b20;
  --red-900: #5e0a18;
  --red-950: #33050d;

  --ink: #2a0a10;
  --ink-muted: #6b3a42;
  --line: #f1d4d7;
  --line-strong: #e7b3b9;
  --surface: #ffffff;
  --page: #fff8f8;
  --focus: #ff4d5e;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(94, 10, 24, .06);
  --shadow: 0 1px 2px rgba(94, 10, 24, .05), 0 8px 24px rgba(94, 10, 24, .07);
  --shadow-lg: 0 18px 48px rgba(94, 10, 24, .18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--page);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { max-width: 100%; }
a { color: var(--red-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red-900); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; color: var(--red-950); margin: 0 0 .5em; }
h1 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); letter-spacing: -.01em; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; margin-top: 1.2em; }
p { margin: 0 0 .9em; }
code, pre { font-family: var(--mono); font-size: .86em; }
code { background: var(--red-50); border: 1px solid var(--line); border-radius: 5px; padding: 0 .3em; color: var(--red-900); }
pre.json, pre.mail-body {
  background: var(--red-50); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .8em 1em; white-space: pre-wrap; word-break: break-word; overflow-x: auto; margin: .5em 0;
}
hr { border: 0; border-top: 1px solid var(--line); margin: 1.1em 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--red-900); color: #fff; padding: .5em 1em; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }
.muted { color: var(--ink-muted); }
.small { font-size: .86rem; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.inline { display: inline; }
.project-card-actions { margin-top: 0; justify-content: flex-start; border-top: 0; padding-top: 8px; }
.section-spaced { margin-top: 24px; }
.filters-flush { padding: 0 0 12px; }
.form-inline { display: inline-flex; gap: 6px; align-items: center; vertical-align: middle; }
.form-inline input { width: 150px; }
.actions-cell { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.placeholder { color: var(--red-700); font-weight: 600; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
.main { flex: 1; padding-block: 28px 56px; }

/* ------------------------------------------------------------ fejléc */
.dev-banner {
  background: repeating-linear-gradient(135deg, var(--red-900) 0 14px, var(--red-800) 14px 28px);
  color: #fff; text-align: center; font-size: .85rem; padding: .35em 1em;
}
.dev-banner a { color: #fff; font-weight: 700; }
.topbar {
  background: linear-gradient(120deg, var(--red-900), var(--red-700) 55%, var(--red-600));
  color: #fff; box-shadow: 0 2px 10px rgba(51, 5, 13, .25); position: sticky; top: 0; z-index: 50;
}
.topbar-inner { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.1rem; letter-spacing: .01em; }
.brand:hover { color: #fff; }
.brand img { border-radius: 10px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.mainnav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.mainnav > a, .usermenu > a, .linklike {
  color: #fff; text-decoration: none; padding: .45em .8em; border-radius: 8px; font-weight: 600; font-size: .95rem;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.mainnav > a:hover, .usermenu > a:hover, .linklike:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.mainnav > a.active, .usermenu > a.active { background: rgba(255, 255, 255, .2); box-shadow: inset 0 -2px 0 #fff; }
.usermenu { display: flex; align-items: center; gap: 2px; margin-left: 10px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .3); }
.usermenu-name { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; opacity: .95; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 6px; }
.nav-toggle { display: none; margin-left: auto; background: rgba(255, 255, 255, .14); border: 0; border-radius: 8px; width: 44px; height: 40px; cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 20px; height: 2px; background: #fff; margin: 0 auto; position: relative; content: ""; }
.nav-toggle-bar::before { position: absolute; top: -6px; }
.nav-toggle-bar::after { position: absolute; top: 6px; }
.subnav { background: var(--red-50); border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; gap: 4px; overflow-x: auto; padding-block: 6px; }
.subnav a { white-space: nowrap; text-decoration: none; padding: .35em .75em; border-radius: 999px; font-size: .88rem; color: var(--red-800); font-weight: 600; }
.subnav a:hover { background: var(--red-100); }
.subnav a.active { background: var(--red-600); color: #fff; }

/* ------------------------------------------------------------ gombok */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2;
  padding: .7em 1.2em; border-radius: 10px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red-600); color: #fff; box-shadow: 0 2px 6px rgba(200, 16, 46, .25); }
.btn-primary:hover { background: var(--red-700); color: #fff; }
.btn-secondary { background: #fff; color: var(--red-700); border-color: var(--red-300); }
.btn-secondary:hover { background: var(--red-50); border-color: var(--red-600); color: var(--red-800); }
.btn-dark { background: var(--red-900); color: #fff; }
.btn-dark:hover { background: var(--red-950); color: #fff; }
.btn-danger { background: var(--red-800); color: #fff; }
.btn-danger:hover { background: var(--red-950); color: #fff; }
.btn-ghost { background: transparent; color: var(--red-700); border-color: transparent; }
.btn-ghost:hover { background: var(--red-100); color: var(--red-900); }
.btn-light { background: #fff; color: var(--red-700); }
.btn-light:hover { background: var(--red-50); color: var(--red-900); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-lg { padding: .85em 1.5em; font-size: 1.02rem; }
.btn-sm { padding: .45em .85em; font-size: .88rem; }
.btn-xs { padding: .25em .6em; font-size: .8rem; border-radius: 7px; }
.btn-block { width: 100%; }
.btn .icon { flex: none; }

/* ------------------------------------------------------------- ikonok */
.icon { display: inline-block; vertical-align: -3px; flex: none; }
.icon-lg { width: 30px; height: 30px; }

/* -------------------------------------------------------- kártyák, rács */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 20px;
}
.card > :last-child { margin-bottom: 0; }
.card h2 { display: flex; align-items: center; gap: .45em; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 0 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 > .card, .grid-3 > .card { margin-bottom: 20px; }
.span-2 { grid-column: span 2; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head > div:first-child { max-width: 820px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 800; color: var(--red-600); margin-bottom: .35em; }
.back { display: inline-flex; align-items: center; gap: .3em; text-decoration: none; font-weight: 600; font-size: .9rem; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.detail-side { min-width: 0; }

/* ------------------------------------------------------------- jelvények */
.badge {
  display: inline-flex; align-items: center; gap: .3em; font-size: .76rem; font-weight: 700;
  padding: .22em .65em; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; vertical-align: middle;
}
.badge .icon { width: 13px; height: 13px; vertical-align: -2px; }
.badge-project-draft { background: #fff; color: var(--red-800); border: 1.5px dashed var(--red-300); }
.badge-project-published { background: var(--red-600); color: #fff; }
.badge-project-closed { background: var(--red-900); color: #fff; }
.badge-application-submitted { background: #fff; color: var(--red-700); border-color: var(--red-600); }
.badge-application-in_review { background: var(--red-200); color: var(--red-950); }
.badge-application-accepted { background: var(--red-700); color: #fff; }
.badge-application-rejected { background: var(--red-50); color: var(--red-800); border-color: var(--red-200); text-decoration: line-through; text-decoration-thickness: 1px; }
.badge-application-withdrawn { background: var(--red-100); color: var(--ink-muted); }
.badge-expired { background: var(--red-100); color: var(--red-800); }
.badge-soon { background: var(--red-150); color: var(--red-900); border-color: var(--red-300); }
.badge-neutral { background: var(--red-50); color: var(--red-800); border-color: var(--line); }
.badge-active { background: var(--red-600); color: #fff; }
.badge-inactive { background: var(--red-950); color: #fff; }
.badge-blocked { background: repeating-linear-gradient(135deg, #111 0 8px, #2a2a2a 8px 16px); color: #ffd400; border-color: #ffd400; letter-spacing: .04em; }
.applicant-blocked { border: 3px solid #111; border-left-width: 8px; background: #fffdf0; }
.blocked-banner { display: flex; gap: .7em; align-items: flex-start; margin: -4px 0 16px; padding: .8em 1em; border-radius: var(--radius-sm);
  background: repeating-linear-gradient(135deg, #111 0 14px, #262626 14px 28px); color: #fff; }
.blocked-banner .icon { color: #ffd400; flex: none; margin-top: 2px; }
.blocked-banner strong { display: block; color: #ffd400; font-size: 1.05rem; }
.blocked-banner a { color: #ffd400; font-weight: 700; margin-left: .3em; }
.blocked-banner .blocked-reason { display: block; margin-top: .3em; font-style: italic; }
.chip { display: inline-block; background: var(--red-600); color: #fff; border-radius: 999px; padding: .15em .7em; margin: 0 .3em .35em 0; font-size: .82rem; font-weight: 600; }
.chip-soft { background: var(--red-100); color: var(--red-900); }

/* ---------------------------------------------------------- figyelmeztetés */
.flashes { margin-bottom: 18px; }
.alert {
  display: flex; gap: .7em; align-items: flex-start; padding: .85em 1.1em; border-radius: var(--radius-sm);
  margin-bottom: 12px; border: 1px solid var(--line); border-left-width: 5px; background: #fff;
}
.alert .icon { margin-top: 2px; }
.alert-success { background: var(--red-50); border-color: var(--red-200); border-left-color: var(--red-700); color: var(--red-950); }
.alert-success .icon { color: var(--red-700); }
.alert-error { background: var(--red-700); border-color: var(--red-800); border-left-color: var(--red-950); color: #fff; }
.alert-warning { background: var(--red-100); border-color: var(--red-200); border-left-color: var(--red-500); color: var(--red-950); }
.alert-warning .icon { color: var(--red-700); }
.alert-info { background: #fff; border-color: var(--red-200); border-left-color: var(--red-300); color: var(--ink); }
.alert-info .icon { color: var(--red-600); }

/* ------------------------------------------------------------- űrlapok */
.form-layout { max-width: 980px; }
.form-section h2 { font-size: 1.12rem; }
.section-no {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--red-600); color: #fff; font-size: .85rem; font-weight: 800;
}
.field { margin-bottom: 16px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35em; color: var(--red-950); padding: 0; }
.req { color: var(--red-600); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=search],
input[type=date], input[type=number], input[type=url], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: .62em .8em;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 5em; }
input:hover, select:hover, textarea:hover { border-color: var(--red-300); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red-600); box-shadow: 0 0 0 3px rgba(200, 16, 46, .15); }
input[readonly] { background: var(--red-50); }
select { appearance: none; -webkit-appearance: none; padding-right: 2.2em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a50d26' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7em center; background-size: 16px; }
.help { font-size: .8rem; color: var(--ink-muted); margin: .3em 0 0; }
.field-error { font-size: .84rem; color: var(--red-700); font-weight: 700; margin: .35em 0 0; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red-600); background: var(--red-50); }
.has-error.check-group { border-left: 4px solid var(--red-600); padding-left: 12px; }
.check, .radio, .field > label.check, .field > label.radio { display: flex; gap: .55em; align-items: flex-start; cursor: pointer; font-weight: 500; margin-bottom: .35em; }
.check input, .radio input, .check-tile input { accent-color: var(--red-600); width: 18px; height: 18px; margin-top: .15em; flex: none; }
.inline-check { display: inline-flex; align-items: center; margin: 0; font-size: .9rem; }
.check-tools { display: flex; align-items: center; gap: 6px; margin: .2em 0 .6em; flex-wrap: wrap; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.check-tile {
  display: flex; gap: .55em; align-items: center; padding: .55em .75em; border: 1.5px solid var(--line);
  border-radius: 10px; cursor: pointer; background: #fff; font-weight: 500; font-size: .92rem; transition: all .12s;
}
.check-tile:hover { border-color: var(--red-300); background: var(--red-50); }
.check-tile:has(input:checked) { border-color: var(--red-600); background: var(--red-100); color: var(--red-950); font-weight: 700; }
.password-wrap { display: flex; gap: 6px; align-items: center; }
.password-wrap input { flex: 1; }
.meter { height: 6px; background: var(--red-100); border-radius: 999px; margin-top: 8px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--red-300); transition: width .2s, background .2s; }
.meter span.lvl-2 { background: var(--red-500); }
.meter span.lvl-3 { background: var(--red-700); }
.rules { list-style: none; padding: 0; margin: .5em 0 0; display: flex; gap: .4em 1em; flex-wrap: wrap; color: var(--ink-muted); }
.rules li::before { content: "○ "; }
.rules li.ok { color: var(--red-800); font-weight: 700; }
.rules li.ok::before { content: "● "; }
.rules li.rule-info { flex-basis: 100%; }
.rules li.rule-info::before { content: "· "; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 8px 0 24px; }
.form-actions-center { justify-content: center; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.dropzone {
  border: 2px dashed var(--red-300); border-radius: var(--radius); background: var(--red-50);
  padding: 18px; text-align: center; transition: background .15s, border-color .15s; position: relative;
}
.dropzone.drag { background: var(--red-100); border-color: var(--red-600); }
.dropzone input[type=file] { display: block; margin: 8px auto; max-width: 100%; font: inherit; }
.dropzone-list { list-style: none; padding: 0; margin: 10px 0 0; text-align: left; }
.dropzone-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: .3em .6em; background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-top: 4px; font-size: .86rem; }
.dropzone-list li.bad { border-color: var(--red-600); color: var(--red-800); font-weight: 700; }
.dropzone-list li > span:first-child { flex: 1 1 auto; overflow-wrap: anywhere; }
.dropzone-remove {
  flex: none; width: 22px; height: 22px; border-radius: 50%; border: 0; background: none;
  color: var(--red-600); font-size: .9rem; line-height: 1; cursor: pointer; padding: 0;
}
.dropzone-remove:hover { background: var(--red-100); }
.fee-confirm { background: var(--red-50); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.fee-confirm .field { margin: 0; }
details > summary { cursor: pointer; color: var(--red-700); font-weight: 600; }
.danger-zone { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.warning-text { color: var(--red-800); font-weight: 600; }

/* ------------------------------------------------------------- szűrők */
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px; }
.filters select, .filters input[type=search] { width: auto; min-width: 170px; flex: 0 1 auto; }
.filters.compact { padding: 0; background: none; border: 0; box-shadow: none; margin: 0; }
.filter-search { position: relative; flex: 1 1 260px; }
.filter-search .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--red-600); }
.filter-search input[type=search] { width: 100%; padding-left: 2.3em; }
.result-count { margin: 4px 2px 10px; }

/* ------------------------------------------------------------ táblázatok */
.table-wrap { overflow-x: auto; padding: 0; }
.card.table-wrap { padding: 0; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th {
  text-align: left; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red-800);
  background: var(--red-50); padding: .75em 1em; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: .75em 1em; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fffafa; }
.table.compact td, .table.compact th { padding: .5em .7em; }
tr.revoked td { opacity: .55; }
.card > .table-wrap { margin: 0 -24px; }
.card > .table-wrap .table th:first-child, .card > .table-wrap .table td:first-child { padding-left: 24px; }

/* ------------------------------------------------------ projektkártyák */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.project-card { display: flex; flex-direction: column; margin: 0; transition: box-shadow .15s, transform .15s, border-color .15s; border-top: 4px solid var(--red-600); }
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--red-200); border-top-color: var(--red-700); }
.project-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.case { font-family: var(--mono); font-size: .8rem; color: var(--ink-muted); display: inline-flex; align-items: center; gap: .2em; }
.case .icon { width: 14px; height: 14px; }
.project-title { font-size: 1.12rem; margin-bottom: .6em; }
.project-title a { color: var(--red-950); text-decoration: none; }
.project-title a:hover { color: var(--red-700); text-decoration: underline; }
.meta { list-style: none; padding: 0; margin: 0 0 14px; color: var(--ink-muted); font-size: .9rem; display: grid; gap: 4px; }
.meta .icon { color: var(--red-600); width: 16px; height: 16px; }
.meta .ekr { color: var(--red-800); font-weight: 700; }
.project-card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px dashed var(--line); }
.fee { display: inline-flex; align-items: baseline; gap: .35em; flex-wrap: wrap; }
.fee-amount { font-weight: 800; color: var(--red-700); font-size: 1.1em; white-space: nowrap; }
.fee-basis { font-size: .78rem; color: var(--ink-muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px 22px; margin: 16px 0; }
.facts > div { border-left: 3px solid var(--red-200); padding-left: 12px; }
.facts dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); font-weight: 700; display: flex; align-items: center; gap: .3em; }
.facts dt .icon { color: var(--red-600); width: 15px; height: 15px; }
.facts dd { margin: .2em 0 0; font-weight: 600; }
.facts.compact { grid-template-columns: 1fr; gap: 10px; }
.detail-main h1 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.quote { background: var(--red-50); border-left: 4px solid var(--red-300); padding: .6em .9em; border-radius: 0 8px 8px 0; }
.prose { max-width: 75ch; }
.prose table { margin: 1em 0; }
.file-list { list-style: none; padding: 0; margin: 0 0 12px; }
.file-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: .6em .2em; border-bottom: 1px solid var(--line); }
.file-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; word-break: break-word; }
.file-link .icon { color: var(--red-600); }
.hash { font-size: .72rem; background: none; border: 0; color: var(--ink-muted); }
.hash-long { word-break: break-all; }
.apply-card { border: 2px solid var(--red-600); }
.decision-card { border-top: 4px solid var(--red-700); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: .55em 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list li a { font-weight: 700; }
.plain { padding-left: 1.1em; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--red-200); }
.timeline li { position: relative; padding: 0 0 12px 12px; }
.timeline li::before { content: ""; position: absolute; left: -23px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--red-600); box-shadow: 0 0 0 3px #fff; }
.timeline-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }

/* -------------------------------------------------------- statisztikák */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat {
  display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
}
a.stat:hover { border-color: var(--red-300); color: var(--ink); }
.stat-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); font-weight: 700; }
.stat-value { font-size: 2.2rem; font-weight: 800; color: var(--red-700); line-height: 1.1; }
.stat-sub { font-size: .82rem; color: var(--ink-muted); }
.stat-strong { background: linear-gradient(135deg, var(--red-700), var(--red-600)); border-color: var(--red-700); }
.stat-strong .stat-label, .stat-strong .stat-sub, .stat-strong .stat-value { color: #fff; }
.coverage { display: grid; gap: 6px; }
.coverage-row { display: grid; grid-template-columns: 190px minmax(80px, 1fr) 120px 140px; gap: 10px; align-items: center; font-size: .88rem; }
.coverage-bar { height: 10px; background: var(--red-50); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.coverage-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red-400), var(--red-700)); border-radius: 999px; }
.coverage-num { color: var(--ink-muted); white-space: nowrap; }
.coverage-num.hot { color: var(--red-700); font-weight: 800; }
.param-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.param-current { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.param-value { font-size: 1.4rem; font-weight: 800; color: var(--red-700); }
.request-open { border-left: 5px solid var(--red-600); }
.legal-note { margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--line); }
.checklist { background: var(--red-50); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.checklist legend { padding: 0 4px; }
.confirm-box { border-left: 5px solid var(--red-500); }
.auth-card.wide { max-width: 560px; }
.setup-steps { padding-left: 1.2em; margin: 0 0 14px; }
.qr-box { display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 10px 0; }
.qr-box svg.qr { width: 220px; height: 220px; max-width: 100%; }
.mfa-reset { display: flex; gap: 4px; margin-top: 6px; }
.mfa-reset input { padding: .3em .5em; font-size: .8rem; min-width: 0; }

/* ----------------------------------------------------------- nyitóoldal */
.hero {
  background:
    radial-gradient(1100px 380px at 85% -10%, rgba(255, 255, 255, .16), transparent 60%),
    linear-gradient(135deg, var(--red-950) 0%, var(--red-800) 45%, var(--red-600) 100%);
  color: #fff; padding-block: 56px 64px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08;
  background-image: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 64px), repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 64px);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; }
.hero h1 span { color: var(--red-200); display: block; }
.hero .eyebrow { color: var(--red-200); }
.hero .lead { font-size: 1.1rem; color: #ffe9eb; max-width: 60ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 18px; }
.hero-note { display: flex; align-items: center; gap: .45em; color: #ffe9eb; font-size: .95rem; }
.hero-card { display: flex; flex-direction: column; align-items: center; }
.mock-card {
  background: #fff; color: var(--ink); border-radius: 18px; padding: 22px; width: 100%; max-width: 380px;
  box-shadow: 0 30px 60px rgba(20, 0, 5, .45); transform: rotate(-2deg); border-top: 5px solid var(--red-600);
}
a.mock-link { display: block; text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.mock-link:hover { color: var(--ink); transform: rotate(-1deg) translateY(-3px); box-shadow: 0 36px 70px rgba(20, 0, 5, .5); }
a.mock-link:focus-visible { outline-color: #fff; }
.mock-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mock-case { font-family: var(--mono); font-size: .78rem; color: var(--ink-muted); }
.mock-title { font-weight: 800; font-size: 1.15rem; color: var(--red-950); }
.mock-meta { color: var(--ink-muted); font-size: .9rem; margin: 6px 0 12px; display: flex; align-items: center; gap: .3em; }
.mock-meta .icon { color: var(--red-600); }
.mock-fee { font-size: 1.6rem; font-weight: 800; color: var(--red-700); }
.mock-fee small { font-size: .8rem; color: var(--ink-muted); font-weight: 600; }
.mock-foot { display: flex; align-items: center; gap: .4em; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--ink-muted); font-size: .88rem; }
.mock-btn { margin-left: auto; background: var(--red-600); color: #fff; font-weight: 700; padding: .45em .9em; border-radius: 8px; }
.mock-caption { font-size: .75rem; color: var(--red-200); margin-top: 14px; }
.steps h2 { text-align: center; font-size: 1.6rem; margin: 10px 0 20px; }
.step-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { position: relative; padding-top: 30px; margin: 0; }
.step-no {
  position: absolute; top: -16px; left: 22px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red-500), var(--red-800)); color: #fff; font-weight: 800; font-size: 1.1rem; box-shadow: var(--shadow);
}
.features h2 .icon { color: var(--red-600); }
.county-cloud { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.county-cloud li { background: var(--red-50); border: 1px solid var(--line); color: var(--red-900); border-radius: 999px; padding: .2em .7em; font-size: .82rem; font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: .5em; }
.ticks .icon { color: var(--red-600); margin-top: 3px; }

/* ----------------------------------------------------- hitelesítő oldalak */
.auth-wrap { display: grid; place-items: center; padding-block: 12px; }
.auth-card { width: 100%; max-width: 460px; padding: 32px 32px 26px; border-top: 5px solid var(--red-600); }
.auth-card h1 { font-size: 1.55rem; }
.auth-icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--red-100); color: var(--red-700);
}
.auth-card.center .auth-icon { margin-inline: auto; }
.auth-icon.success { background: var(--red-600); color: #fff; }
.auth-icon.danger { background: var(--red-900); color: #fff; }
.admin-auth { border-top-color: var(--red-950); background: linear-gradient(180deg, var(--red-50), #fff 120px); }
.field-label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35em; color: var(--red-950); }
.danger-zone.card { border-left: 5px solid var(--red-800); }
.auth-links { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; font-size: .9rem; align-items: center; text-align: center; }
.error-page { max-width: 560px; margin: 30px auto; text-align: center; }
.error-code { font-size: 4.5rem; font-weight: 900; line-height: 1; color: var(--red-200); letter-spacing: -.03em; }
.empty { text-align: center; padding: 42px 20px; background: #fff; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); }
.empty .icon { color: var(--red-400); }
.empty h3 { margin-top: .5em; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 18px 0; flex-wrap: wrap; }
.mail summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.mail-subject { font-weight: 700; color: var(--red-900); }

/* ------------------------------------------------------------- lábléc */
.footer { background: var(--red-950); color: #f7d9dc; padding-block: 28px; margin-top: auto; }
.footer a { color: #fff; }
.footer .muted { color: #d9a9af; }
.footer-inner { display: grid; grid-template-columns: 1.1fr 1.3fr .8fr; gap: 24px; align-items: start; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand strong { color: #fff; }
.impresszum { display: grid; gap: 2px; }
.impresszum strong { color: #fff; margin-bottom: 4px; }
.impresszum .placeholder { color: var(--red-200); }
.footer-links { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }

/* ------------------------------------------------------------- reszponzív */
@media (max-width: 1024px) {
  .detail-layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .coverage-row { grid-template-columns: 150px minmax(60px, 1fr) 100px 120px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .mainnav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--red-900); padding: 10px 16px 16px; box-shadow: 0 12px 24px rgba(0, 0, 0, .25); }
  .mainnav.open { display: flex; }
  .usermenu { flex-direction: column; align-items: stretch; margin: 8px 0 0; padding: 8px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .25); }
  .usermenu .linklike { text-align: left; width: 100%; }
  .topbar-inner { position: relative; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { align-items: flex-start; }
  .coverage-row { grid-template-columns: 1fr 1fr; }
  .coverage-bar { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 560px) {
  .container { padding-inline: 16px; }
  .card { padding: 18px 16px; }
  .card > .table-wrap { margin: 0 -16px; }
  .stats { grid-template-columns: 1fr; }
  .step-list { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .filters select, .filters input[type=search] { width: 100%; min-width: 0; }
  .filters .btn { width: 100%; }
  .auth-card { padding: 26px 18px; }
  .brand-text { font-size: 1rem; }
  .param-current { align-items: flex-start; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media print {
  .topbar, .subnav, .footer, .dev-banner, .btn, form { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; }
}

/* Korlátozott adatkezelés (megőrzés miatt zárolt azonosító adatok) – R5-B4 */
.restricted-notice form { display: grid; gap: .75rem; max-width: 36rem; }
.restricted-notice .alert { margin-bottom: .75rem; }

/* Felugró ablak (pl. elutasítás indoklása) */
.dialog { border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 22px; width: min(520px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); }
.dialog::backdrop { background: rgba(51, 5, 13, .45); }
.dialog h2 { margin-top: 0; }
.dialog .form-actions { margin-bottom: 0; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
