/* ICT AI nyilvántartó – arculat az icteuropa.hu nyilvános oldalának globális színeire és betűtípusára építve.
   (2026. 10. 11-én a honlap stíluslapjából kiolvasott értékek; arculati kézikönyv birtokában itt pontosítható.) */

@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/libre-franklin-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/libre-franklin-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/libre-franklin-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/libre-franklin-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/libre-franklin-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/libre-franklin-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --brand: #00B6DE;          /* ICT elsődleges */
  --brand-light: #4EDFFF;    /* ICT másodlagos */
  --brand-dark: #007E9A;
  --ink: #1B2026;            /* ICT akcentus / sötét */
  --text: #1D3557;           /* ICT szövegszín */
  --text-2: #4B6065;
  --muted: #72898F;
  --line-strong: #A4B6BA;
  --line: #D1DDE0;
  --bg-2: #ECF3F5;
  --bg: #F5F9FA;
  --white: #FFFFFF;
  --warn-bg: #FFF4D6;
  --warn-line: #E8B931;
  --warn-ink: #6B4E00;
  --danger: #B42318;
  --danger-bg: #FDECEA;
  --ok: #157F4F;
  --ok-bg: #E6F5EC;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(27,32,38,.06), 0 4px 16px rgba(27,32,38,.06);
  --sidebar-w: 248px;
  --header-h: 60px;
  font-family: "Libre Franklin", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); }
a { color: var(--brand-dark); }
a:hover { color: var(--text); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .75em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }

/* ---------- gombok */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; cursor: pointer;
  font: inherit; font-weight: 600; font-size: .93rem; padding: 8px 16px; border-radius: 4px; background: var(--white);
  color: var(--ink); border-color: var(--line-strong); text-decoration: none; min-height: 38px; }
.btn:hover { background: var(--bg-2); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--brand); color: var(--ink); border-color: var(--brand); border-radius: 4px 4px 4px 22px; padding-left: 20px; }
.btn.primary:hover { background: var(--brand-light); border-color: var(--brand-light); }
.btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.dark:hover { background: #32383F; }
.btn.danger { color: var(--danger); border-color: #E4B4AE; }
.btn.danger:hover { background: var(--danger-bg); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--bg-2); }
.btn.sm { min-height: 30px; padding: 4px 10px; font-size: .85rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-dark); cursor: pointer; text-decoration: underline; }
.icon-btn { background: none; border: 0; padding: 6px; border-radius: 4px; cursor: pointer; color: inherit; display: inline-flex; }
.icon-btn:hover { background: var(--bg-2); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- űrlapok */
label { font-weight: 600; font-size: .9rem; color: var(--ink); display: block; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.field .err { font-size: .84rem; color: var(--danger); margin-top: 4px; font-weight: 600; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); background: #FFFBFA; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], input[type=url],
select, textarea { font: inherit; color: var(--text); background: #fff; border: 1px solid var(--line-strong); border-radius: 4px;
  padding: 8px 10px; width: 100%; min-height: 38px; }
textarea { min-height: 84px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8FA2A7; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 2px solid rgba(0,182,222,.25); outline-offset: 0; }
.counter { float: right; font-weight: 400; color: var(--muted); font-size: .8rem; }
.counter.over { color: var(--danger); font-weight: 700; }
.radio-group { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-group label, .check { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; color: var(--text); margin: 0; cursor: pointer; }
.check input, .radio-group input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand-dark); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0 16px; }
@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* ---------- elrendezés */
.app-header { height: var(--header-h); background: var(--ink); color: #fff; display: flex; align-items: center; gap: 16px;
  padding: 0 16px; position: sticky; top: 0; z-index: 40; }
.app-header .logo { height: 18px; width: auto; display: block; }
.app-header .title { font-weight: 600; font-size: 1rem; letter-spacing: .01em; color: #fff; padding-left: 16px; border-left: 1px solid #3A4249; white-space: nowrap; }
.app-header .icon-btn { color: #fff; }
.app-header .icon-btn:hover { background: #32383F; }
.user-menu { position: relative; }
.user-menu > button { background: none; border: 1px solid #3A4249; color: #fff; border-radius: 4px; padding: 6px 10px; font: inherit; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.user-menu > button:hover { background: #32383F; }
.user-menu .menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; color: var(--text); border: 1px solid var(--line);
  border-radius: 6px; box-shadow: var(--shadow); min-width: 240px; padding: 6px; z-index: 60; }
.user-menu .menu .who { padding: 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: .88rem; }
.user-menu .menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; font: inherit; border-radius: 4px; cursor: pointer; color: var(--text); }
.user-menu .menu button:hover { background: var(--bg-2); }
.mode-banner { background: var(--warn-bg); color: var(--warn-ink); border-bottom: 2px solid var(--warn-line); font-weight: 700;
  text-align: center; padding: 6px 12px; font-size: .9rem; letter-spacing: .02em; position: sticky; top: var(--header-h); z-index: 39; }
.mode-banner .small { font-weight: 400; }
.layout { display: flex; min-height: calc(100vh - var(--header-h)); }
.sidebar { width: var(--sidebar-w); flex: none; background: #fff; border-right: 1px solid var(--line); padding: 16px 10px; }
.sidebar nav a, .sidebar nav button.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 4px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .93rem; width: 100%; background: none; border: 0; font-family: inherit; cursor: pointer; text-align: left; }
.sidebar nav a:hover, .sidebar nav button.nav-item:hover { background: var(--bg-2); }
.sidebar nav a.active { background: var(--bg-2); color: var(--ink); box-shadow: inset 3px 0 0 var(--brand); }
.sidebar nav svg { width: 18px; height: 18px; flex: none; color: var(--brand-dark); }
.sidebar .sub { margin: 2px 0 6px 18px; border-left: 1px solid var(--line); padding-left: 8px; }
.sidebar .sub a { font-weight: 400; padding: 7px 10px; }
.sidebar .chev { margin-left: auto; transition: transform .15s; }
.sidebar .open .chev { transform: rotate(90deg); }
.content { flex: 1; min-width: 0; padding: 20px 24px 40px; }
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: var(--header-h); bottom: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); overflow-y: auto; }
  .sidebar.show { transform: none; }
  .content { padding: 16px; }
  .app-header .title { display: none; }
}
@media (min-width: 901px) { .menu-toggle { display: none !important; } .sidebar.collapsed { display: none; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.page-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin: 0; }
.page-head .spacer { flex: 1; }
.breadcrumb { font-size: .88rem; margin-bottom: 8px; }

/* ---------- üzletágválasztó */
.units { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-bottom: 18px; }
.unit-btn { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 8px 10px; cursor: pointer; display: flex;
  flex-direction: column; align-items: center; gap: 6px; font: inherit; color: var(--ink); min-height: 104px; position: relative; }
.unit-btn:hover:not(:disabled) { border-color: var(--brand); box-shadow: var(--shadow); }
.unit-btn svg { width: 34px; height: 34px; color: var(--brand-dark); }
.unit-btn .uname { font-weight: 700; font-size: .78rem; letter-spacing: .03em; text-align: center; word-break: break-word; }
.unit-btn .ucount { font-size: .75rem; color: var(--muted); }
.unit-btn.selected { border-color: var(--brand); background: #E8F9FD; box-shadow: inset 0 -3px 0 var(--brand); }
.unit-btn:disabled { cursor: not-allowed; background: #F1F4F5; color: #9AA9AD; border-style: dashed; }
.unit-btn:disabled svg { color: #B6C3C6; }
.unit-btn.all svg { color: var(--ink); }
.unit-btn.new { border-style: dashed; color: var(--brand-dark); }

/* ---------- eszköztár, szűrők */
.toolbar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.search-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
@media (max-width: 760px) { .search-row { grid-template-columns: 1fr; } }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-box input { padding-left: 36px; }
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; align-items: end; }
.filters label { font-size: .8rem; font-weight: 600; color: var(--text-2); }
.actions-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 10px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; }
.seg button { background: #fff; border: 0; padding: 7px 14px; font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; color: var(--text); display: inline-flex; gap: 6px; align-items: center; }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg svg { width: 16px; height: 16px; }
.result-info { font-size: .9rem; color: var(--text-2); margin-bottom: 10px; display: flex; gap: 6px 16px; flex-wrap: wrap; }
.result-info strong { color: var(--ink); }
.summary-strip { background: #E8F9FD; border: 1px solid #B5E9F5; border-radius: var(--radius); padding: 8px 12px; color: var(--ink); font-size: .9rem; margin-bottom: 10px; }

/* ---------- táblázat (erős cellaszegélyek nélkül, rögzített fejléc és első oszlop) */
.table-wrap { overflow: auto; max-height: calc(100vh - 160px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .9rem; }
table.data th { position: sticky; top: 0; z-index: 2; background: var(--bg-2); color: var(--ink); text-align: left; font-weight: 700;
  font-size: .8rem; padding: 10px 12px; vertical-align: bottom; white-space: normal; min-width: 90px; line-height: 1.3; border-bottom: 1px solid var(--line); }
table.data td { padding: 10px 12px; vertical-align: top; border-bottom: 1px solid #E7EEF0; }
table.data tr:last-child > td { border-bottom: 0; }
table.data tbody tr.main:hover > td { background: #FAFDFE; }
table.data .sticky-col { position: sticky; left: 0; z-index: 1; background: #fff; min-width: 200px; max-width: 280px; box-shadow: 1px 0 0 var(--line); }
table.data th.sticky-col { z-index: 3; background: var(--bg-2); }
table.data td.desc { min-width: 240px; max-width: 360px; }
table.data td.exp { width: 40px; }
table.data tr.detail > td { background: #F9FBFC; padding: 6px 12px 14px 52px; }
table.data tr.detail .sticky-col { background: #F9FBFC; }
table.sub { border-collapse: collapse; width: 100%; font-size: .87rem; background: #fff; border: 1px solid #E3EBED; border-radius: 4px; }
table.sub th { text-align: left; font-size: .78rem; color: var(--text-2); font-weight: 700; padding: 7px 10px; background: #F3F7F8; white-space: normal; line-height: 1.25; }
table.sub td { padding: 7px 10px; border-top: 1px solid #EEF3F4; vertical-align: middle; }
.app-name { font-weight: 700; color: var(--ink); }
.app-name a, a.app-name { color: var(--ink); text-decoration: none; }
.app-name a:hover, a.app-name:hover { text-decoration: underline; color: var(--brand-dark); }
.role-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { display: inline-block; background: var(--bg-2); color: var(--text); border-radius: 12px; padding: 2px 9px; font-size: .8rem; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 10px; padding: 1px 8px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.badge.wait { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid #F1D27B; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.arch { background: #EEF0F1; color: #59666A; }
.badge.test { background: #F3E8FF; color: #6B21A8; }
.badge.link { background: #FFF0E6; color: #9A3412; }
.hc-cell { display: flex; align-items: center; gap: 6px; min-width: 150px; }
.hc-cell input { width: 84px; min-height: 30px; padding: 4px 8px; }
.pager { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }

/* ---------- csempék */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 8px;
  cursor: pointer; position: relative; box-shadow: var(--shadow); text-align: left; font: inherit; color: inherit; }
.tile:hover { border-color: var(--brand); }
.tile::before { content: ""; position: absolute; left: 0; top: 0; width: 26px; height: 26px; background: var(--brand); border-radius: 8px 0 26px 0; opacity: .9; }
.tile h3 { margin: 0 0 0 22px; font-size: 1.02rem; }
.tile .creator { font-size: .84rem; color: var(--text-2); }
.tile .desc { font-size: .9rem; color: var(--text); flex: 1; overflow-wrap: anywhere; }
.tile .foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }

/* ---------- adatlap */
dl.props { display: grid; grid-template-columns: 220px 1fr; gap: 8px 16px; margin: 0; }
dl.props dt { font-weight: 600; color: var(--text-2); font-size: .88rem; }
dl.props dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 700px) { dl.props { grid-template-columns: 1fr; } dl.props dd { margin-bottom: 8px; } }
.inactive-link { color: var(--muted); text-decoration: line-through dotted; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.kpi .label { font-size: .82rem; color: var(--text-2); font-weight: 600; }
.kpi .value { font-size: 1.7rem; font-weight: 700; color: var(--ink); line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .unit { font-size: .85rem; color: var(--muted); font-weight: 400; }
.kpi.accent { border-top: 4px solid var(--brand); }
.kpi.warn { border-top: 4px solid var(--warn-line); }

/* ---------- munkaköri sorok az űrlapon */
.role-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.role-picker label { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; border: 1px solid var(--line-strong); border-radius: 18px;
  padding: 5px 12px; cursor: pointer; background: #fff; margin: 0; }
.role-picker label.on { background: #E8F9FD; border-color: var(--brand); font-weight: 600; }
.role-picker label.disabled { opacity: .5; cursor: not-allowed; }
.role-row { border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 6px; padding: 12px 14px; margin-bottom: 10px; background: #FCFEFE; }
.role-row.removing { border-left-color: var(--danger); background: #FFF8F7; }
.role-row h4 { margin: 0 0 10px; display: flex; gap: 8px; align-items: center; }

/* ---------- értesítések, panelek, ablakok */
.alert { border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; border: 1px solid; }
.alert.error { background: var(--danger-bg); border-color: #F3B8B1; color: #7A1C13; }
.alert.info { background: #E8F9FD; border-color: #B5E9F5; color: var(--ink); }
.alert.ok { background: var(--ok-bg); border-color: #A8DDBE; color: #0E5535; }
.alert.warn { background: var(--warn-bg); border-color: #F1D27B; color: var(--warn-ink); }
.warning-panel { background: #fff; border: 2px solid var(--warn-line); border-left-width: 8px; border-radius: 8px; padding: 16px 18px; margin-bottom: 18px;
  box-shadow: 0 6px 24px rgba(107,78,0,.14); position: relative; }
.warning-panel h2 { margin: 0 0 6px; font-size: 1.15rem; display: flex; gap: 8px; align-items: center; }
.warning-panel .close { position: absolute; right: 8px; top: 8px; }
.toast-host { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; box-shadow: var(--shadow); font-size: .92rem; }
.toast.error { background: var(--danger); }
.toast.ok { background: var(--ok); }
.modal-back { position: fixed; inset: 0; background: rgba(27,32,38,.45); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 12px; overflow-y: auto; }
.modal { background: #fff; border-radius: 8px; width: min(640px, 100%); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal.wide { width: min(980px, 100%); }
.modal header { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal header h2 { margin: 0; font-size: 1.1rem; flex: 1; }
.modal .body { padding: 16px 18px; }
.modal footer { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.code-box { font-family: Consolas, "Courier New", monospace; font-size: 1.4rem; letter-spacing: .08em; background: var(--bg-2); border: 1px dashed var(--line-strong);
  border-radius: 6px; padding: 14px; text-align: center; color: var(--ink); user-select: all; overflow-wrap: anywhere; }

/* ---------- belépési oldalak */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 0 16px 40px; background:
  linear-gradient(180deg, var(--ink) 0, var(--ink) 220px, var(--bg) 220px); }
.auth-top { width: 100%; max-width: 440px; padding: 36px 0 26px; color: #fff; }
.auth-top img { height: 20px; }
.auth-top .t { font-size: 1.5rem; font-weight: 700; margin-top: 16px; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 8px; box-shadow: var(--shadow); padding: 24px; border: 1px solid var(--line); }
.auth-card h1 { font-size: 1.25rem; }
.auth-links { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; font-size: .92rem; }
.auth-mode { margin-top: 14px; }

/* ---------- napló */
pre.json { background: #F6F8F9; border: 1px solid var(--line); border-radius: 4px; padding: 8px; font-size: .78rem; white-space: pre-wrap; max-height: 240px; overflow: auto; margin: 6px 0 0; }
.perm-tree { border: 1px solid var(--line); border-radius: 6px; max-height: 360px; overflow: auto; padding: 8px 12px; }
.perm-tree fieldset { border: 0; padding: 4px 0 8px; margin: 0; }
.perm-tree legend { font-weight: 700; font-size: .85rem; color: var(--ink); padding: 0; margin-bottom: 4px; }
.perm-tree .roles { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-left: 4px; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; }
.section-title h2 { margin: 0; }
.loading { padding: 40px; text-align: center; color: var(--muted); }
.settings-section { margin-bottom: 18px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch input { width: 42px; height: 22px; appearance: none; background: #C9D5D8; border-radius: 12px; position: relative; cursor: pointer; transition: background .15s; margin: 0; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch input:checked { background: var(--brand-dark); }
.switch input:checked::after { left: 23px; }
footer.app-foot { color: var(--muted); font-size: .78rem; margin-top: 30px; }
@media (max-width: 900px) { .desktop-only { display: none !important; } }
.user-menu > button svg { width: 18px; height: 18px; display: block; }
.user-menu > button span { display: inline-flex; }
.warning-panel h2 svg { width: 26px; height: 26px; color: #B7791F; flex: none; }
.unit-btn.all:disabled svg { color: #B6C3C6; }
.page-head h1 + .row { margin-top: 6px; }
.row-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; min-width: 170px; }
.row-actions .btn { white-space: nowrap; }
@media (max-width: 600px) { .user-menu > button .uname { display: none; } .app-header { gap: 8px; padding: 0 10px; } }

/* =====================================================================  Vibe Coding projektek */
.nav-badge { margin-left: auto; background: var(--danger); color: #fff; border-radius: 10px; font-size: .72rem; font-weight: 700; padding: 0 7px; line-height: 18px; min-width: 18px; text-align: center; }
.lead { font-size: 1.02rem; color: var(--text); max-width: 900px; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.st-badge { display: inline-flex; align-items: center; border-radius: 10px; padding: 1px 9px; font-size: .76rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.st-idea { background: #EEF2F6; color: #3B4A5A; border-color: #C9D4DE; }
.st-assessment { background: #FFF4D6; color: #6B4E00; border-color: #F1D27B; }
.st-approved { background: #E0F6F4; color: #0F6157; border-color: #9ED9D1; }
.st-development { background: #E8F9FD; color: #00627A; border-color: #9FE3F2; }
.st-testing { background: #F1EBFF; color: #5B2BA6; border-color: #CDB8F7; }
.st-live { background: var(--ok-bg); color: #0E5535; border-color: #A8DDBE; }
.st-retired, .st-merged { background: #EEF0F1; color: #59666A; border-color: #D3D9DB; }
.st-rejected { background: var(--danger-bg); color: #7A1C13; border-color: #F3B8B1; }
.st-suspended { background: #FFF0E6; color: #9A3412; border-color: #F6C29E; }
.lvl-badge { display: inline-flex; border-radius: 4px; padding: 0 7px; font-size: .74rem; font-weight: 700; border: 1px solid var(--line-strong); color: var(--ink); background: #fff; white-space: nowrap; }
.lvl-badge.lvl-2 { border-color: #E8B931; }
.lvl-badge.lvl-3 { border-color: var(--danger); color: #7A1C13; }
.lvl-badge.lvl-none { border-style: dashed; color: var(--muted); font-weight: 600; }
.flag { display: inline-block; font-size: .72rem; font-weight: 600; border-radius: 8px; padding: 0 7px; background: var(--bg-2); color: var(--text-2); }
.flag.warn { background: var(--warn-bg); color: var(--warn-ink); }
.flag.muted { color: var(--muted); }
.warn-ink { color: var(--warn-ink); }

/* kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kcol { background: #EEF4F6; border: 1px solid var(--line); border-radius: 8px; min-height: 120px; }
.kcol.side { background: #F6F3EF; }
.kcol header { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 6px; }
.kcount { font-weight: 700; color: var(--text-2); font-size: .85rem; }
.kbody { display: flex; flex-direction: column; gap: 8px; padding: 4px 8px 10px; }
.kempty { color: var(--muted); text-align: center; padding: 10px; }
.pcard { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: 6px; padding: 9px 10px; text-decoration: none; color: var(--text); box-shadow: 0 1px 2px rgba(27,32,38,.05); }
.pcard:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--text); }
.pc-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pc-code { font-family: Consolas, "Courier New", monospace; font-size: .76rem; color: var(--muted); }
.pc-name { font-weight: 700; color: var(--ink); line-height: 1.3; }
.pc-meta { font-size: .8rem; color: var(--text-2); }
.pc-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.st-border-idea { border-left-color: #8DA2B5; }
.st-border-assessment { border-left-color: #E8B931; }
.st-border-approved { border-left-color: #2BA99B; }
.st-border-development { border-left-color: var(--brand); }
.st-border-testing { border-left-color: #8B5CF6; }
.st-border-live { border-left-color: var(--ok); }
.st-border-retired, .st-border-merged { border-left-color: #A0AAAE; }
.st-border-rejected { border-left-color: var(--danger); }
.st-border-suspended { border-left-color: #EA7A2E; }
.pbar { height: 5px; background: var(--bg-2); border-radius: 3px; overflow: hidden; margin-top: 3px; }
.pbar.lg { height: 8px; margin-bottom: 6px; }
.pbar span { display: block; height: 100%; background: var(--brand); border-radius: 3px; }

/* fázisléptető */
.stepper-wrap { overflow-x: auto; margin: 6px 0 16px; padding: 4px 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.stepper { list-style: none; display: grid; grid-template-columns: repeat(13, minmax(68px, 1fr)); margin: 0; padding: 8px 4px; min-width: 900px; }
.step { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.step::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.step:first-child::before { display: none; }
.step.done::before, .step.current::before { background: var(--ok); }
.step button { background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font: inherit; color: inherit; position: relative; z-index: 1; }
.step .dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; background: #fff; border: 2px solid var(--line-strong); color: var(--text-2); }
.step .lbl { font-size: .72rem; line-height: 1.15; color: var(--text-2); max-width: 84px; }
.step.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.step.current .dot { background: var(--brand); border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 4px rgba(0,182,222,.22); }
.step.current .lbl { font-weight: 700; color: var(--ink); }
.step.skipped .dot { border-style: dashed; color: #A9B6BA; background: #F7F9FA; }
.step.skipped .lbl { color: #A9B6BA; text-decoration: line-through; }
.step.legacy .dot { background: repeating-linear-gradient(45deg, #EEF0F1, #EEF0F1 3px, #fff 3px, #fff 6px); color: var(--muted); }
.step.stopped .dot { background: var(--danger); border-color: var(--danger); color: #fff; }
.step.sel .lbl { text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.gate { font-size: .66rem; font-weight: 700; border: 1px solid var(--line-strong); color: var(--muted); padding: 0 5px; border-radius: 3px; background: #fff; }
.gate.ok { background: var(--ok-bg); color: var(--ok); border-color: #A8DDBE; }
.gate.wait { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }

/* projektoldal */
.pgrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .pgrid { grid-template-columns: 1fr; } }
.pcol-main .card + .card, .pcol-side .card + .card { margin-top: 16px; }
.side-card h2 { font-size: 1.05rem; }
.current-card { border-top: 4px solid var(--brand); }
ul.reqs { list-style: none; padding: 0; margin: 0 0 8px; }
ul.reqs li { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; border-bottom: 1px dashed #E3EBED; }
ul.reqs li .ic { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: .8rem; font-weight: 700; }
ul.reqs li.ok .ic { background: var(--ok-bg); color: var(--ok); }
ul.reqs li.no .ic { background: var(--warn-bg); color: var(--warn-ink); }
ul.reqs li.no { font-weight: 600; }
.gate-box { border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; background: #FBFDFD; margin-top: 12px; }
.gate-box h3 { margin-bottom: 2px; }
.gate-roles { margin: 6px 0 0; padding-left: 18px; }
.decide-box { border: 2px solid var(--brand); border-radius: 8px; padding: 12px 14px; margin-top: 12px; background: #F5FCFE; }
.decide-box .radio-group { margin-bottom: 10px; }
.dec { display: inline-flex; border-radius: 8px; padding: 0 8px; font-size: .76rem; font-weight: 700; }
.dec-approved, .dec-continue, .dec-extend { background: var(--ok-bg); color: var(--ok); }
.dec-conditional { background: #E0F6F4; color: #0F6157; }
.dec-returned { background: var(--warn-bg); color: var(--warn-ink); }
.dec-rejected, .dec-retire { background: var(--danger-bg); color: var(--danger); }
.dec-merge { background: #EEF0F1; color: #475569; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 7px 10px; font: inherit; font-size: .86rem; font-weight: 600; color: var(--text-2); cursor: pointer; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--brand); }
.tabs button.na { color: #A9B6BA; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.fgrid .wide { grid-column: 1 / -1; }
@media (max-width: 700px) { .fgrid { grid-template-columns: 1fr; } }
.field.ro { padding: 6px 0; border-bottom: 1px dashed #E3EBED; }
.ro-label { font-weight: 600; font-size: .82rem; color: var(--text-2); }
.checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
fieldset.proc-roles { border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; margin: 6px 0 12px; }
fieldset.proc-roles legend { font-weight: 700; color: var(--ink); padding: 0 4px; }
.person { padding: 8px 0; border-bottom: 1px dashed #E3EBED; display: flex; flex-direction: column; gap: 4px; }
.person:last-child { border-bottom: 0; }
.kbar { margin-bottom: 10px; }
.kbar-track { height: 10px; background: var(--bg-2); border-radius: 0 5px 5px 0; overflow: hidden; margin-top: 3px; }
.kbar-track span { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.kbar-track span.base { background: #8DA2B5; }
.kbar-track span.post { background: var(--brand); }
.kpi-saved .value { font-size: 1.6rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi-saved .unit { font-size: .9rem; color: var(--muted); font-weight: 400; }
ul.links, ul.assets, ul.decs, ul.tasks, ul.plain { list-style: none; padding: 0; margin: 0 0 10px; }
ul.links li { display: flex; align-items: center; gap: 4px; padding: 3px 0; overflow-wrap: anywhere; }
ul.links svg { width: 14px; height: 14px; color: var(--brand-dark); }
ul.assets li, ul.decs li, ul.tasks li { padding: 7px 0; border-bottom: 1px dashed #E3EBED; }
ul.assets li.old, ul.decs li.old { opacity: .6; }
ul.plain li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed #E3EBED; }
.upload { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.upload select { width: auto; }
.add-row { align-items: flex-end; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.add-row .field { margin-bottom: 0; min-width: 160px; }
.comment-box { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 12px; }
.comment-box textarea { min-height: 54px; }
ol.timeline { list-style: none; padding: 0; margin: 0; }
ol.timeline li.ev { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #EEF3F4; }
.ev-ic { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-2); display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--brand-dark); }
.ev-ic svg { width: 15px; height: 15px; }
.ev-decision .ev-ic { background: var(--ok-bg); color: var(--ok); }
.ev-status .ev-ic, .ev-override .ev-ic { background: #E8F9FD; }
.ev-comment .ev-ic { background: #F3E8FF; color: #6B21A8; }
.chan { margin-left: 6px; font-size: .7rem; font-weight: 700; background: #F3E8FF; color: #6B21A8; border-radius: 6px; padding: 0 6px; }
.dropdown { position: relative; }
.dropdown .menu { position: absolute; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: 4px; min-width: 240px; z-index: 20; }
.dropdown .menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; font: inherit; border-radius: 4px; cursor: pointer; color: var(--text); }
.dropdown .menu button:hover { background: var(--bg-2); }
.similar .alert { margin-top: 4px; }

/* dashboard */
.dash-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.dash-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dash-grid .card + .card { margin-top: 0; }
@media (max-width: 1000px) { .dash-grid, .dash-grid.three { grid-template-columns: 1fr; } }
.hbars { display: flex; flex-direction: column; gap: 2px; }
.hbar { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 10px; padding: 5px 4px; border-radius: 4px; text-decoration: none; color: var(--text); }
.hbar:hover { background: var(--bg-2); color: var(--text); }
.hb-label { font-size: .86rem; font-weight: 600; }
.hb-track { height: 14px; }
.hb-fill { display: block; height: 100%; background: var(--brand); border-radius: 0 4px 4px 0; }
.hb-fill.side { background: #A0AAAE; }
.hb-val { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.role-card { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.role-card h3 { font-size: .98rem; margin-bottom: 4px; }
table.matrix td, table.matrix th { vertical-align: top; }
table.matrix td label.check { display: flex; margin: 2px 0; }
.dsum { margin: 10px 0 4px; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; background: #fff; }
.dsum summary { font-weight: 700; cursor: pointer; color: var(--ink); }
.dsum dl.props { grid-template-columns: 200px 1fr; margin-top: 8px; font-size: .88rem; }
