/* Pályázati CRM – elrendezés. Minden szín, térköz, sarok és árnyék a tokens.css értékeiből. */

/* Inter: ha telepítve van a gépen, azt használja; különben a tokenben megadott Segoe UI / rendszerbetű. */
@font-face { font-family: Inter; font-weight: 400; src: local("Inter"), local("Inter Regular"), local("Inter-Regular"); }
@font-face { font-family: Inter; font-weight: 600; src: local("Inter SemiBold"), local("Inter-SemiBold"); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.link-row { display: flex; gap: var(--space-2); }
.link-row .crm-input { flex: 1; }
.nav__count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--danger);
  color: #ffffff; font-size: 11px; line-height: 20px; font-weight: 600; text-align: center; }
.hir-sor { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--hairline); }
.hir-sor:last-child { border-bottom: 0; }
.hir-sor__pont { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: transparent; }
.hir-sor--uj .hir-sor__pont { background: var(--primary); }
.hir-sor__tartalom { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.hir-sor__cim { color: var(--ink); text-decoration: none; }
.hir-sor--uj .hir-sor__cim { font-weight: 600; }
.hir-sor__cim:hover { color: var(--primary); text-decoration: underline; }
.hir-sor .ico { width: 14px; height: 14px; vertical-align: -2px; }
.hir-erintett > summary { cursor: pointer; list-style: none; display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.hir-erintett > summary::-webkit-details-marker { display: none; }
.hir-erintett[open] > summary { margin-bottom: var(--space-2); }
.table--compact td, .table--compact th { padding: var(--space-1) var(--space-3); height: 32px; }
.card-hir { font-size: 12px; line-height: 16px; color: var(--warning); background: var(--warning-soft); border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2); display: flex; gap: var(--space-1); align-items: center; }
.card-hir .ico { width: 12px; height: 12px; }
.hir-panel { border-color: var(--warning); }
.panel__foot { margin: 0; padding: var(--space-2) var(--space-4) var(--space-3); }
.hir-panel .section-title .ico { width: 16px; height: 16px; vertical-align: -2px; color: var(--warning); }
.hir-valtozas { padding: var(--space-2) var(--space-3); background: var(--warning-soft); border-radius: var(--radius-md); }
.file-row--actions { flex-direction: row; justify-content: space-between; align-items: center; gap: var(--space-3); }
html, body { margin: 0; background: var(--surface); }
body { font-family: var(--font-sans); color: var(--ink); font-size: 14px; line-height: 20px; }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.ico { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.crm-btn .ico { width: 16px; height: 16px; }
a.crm-btn, a.crm-badge { text-decoration: none; }
a.crm-btn--primary:hover { color: #ffffff; }
a.crm-btn--secondary:hover { color: var(--ink); }
.crm-badge .ico { width: 12px; height: 12px; stroke-width: 2; }

/* Típusstílusok */
.page-title { font-size: 22px; line-height: 28px; font-weight: 600; }
.section-title { font-size: 16px; line-height: 24px; font-weight: 600; }
.page-sub { margin-top: 2px; }

/* Keret: bal menü + fejléc + tartalom */
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; background: var(--surface); }
.nav { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4) var(--space-3); border-right: 1px solid var(--hairline); }
.nav__brand { display: flex; align-items: center; gap: 10px; padding: var(--space-1) var(--space-3) var(--space-4); font-size: 15px; font-weight: 600; }
.nav__logo { width: 28px; height: 28px; border-radius: var(--radius-md); background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.nav a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-md); color: var(--ink); text-decoration: none; font-size: 14px; }
.nav a:hover { background: var(--neutral-soft); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav a:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.nav__group { margin: var(--space-4) var(--space-3) var(--space-1); font-size: 12px; font-weight: 600; color: var(--ink-muted); }

.app__main { display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: 0 var(--space-6);
  background: var(--surface-raised); border-bottom: 1px solid var(--hairline); }
.topbar__search { position: relative; width: 380px; max-width: 50%; }
.topbar__search .crm-input { padding-left: 36px; background: var(--surface); }
.topbar__search-icon { position: absolute; left: 10px; top: 9px; color: var(--ink-muted); }
.topbar__right { display: flex; align-items: center; gap: var(--space-4); }
.topbar__bell { color: var(--ink); position: relative; }

.usermenu { position: relative; }
.usermenu summary { display: flex; align-items: center; gap: var(--space-2); cursor: pointer; list-style: none; border-radius: var(--radius-md); padding: var(--space-1); }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:focus-visible { outline: 2px solid var(--primary); }
.usermenu__avatar { width: 30px; height: 30px; font-size: 12px; }
.usermenu__name { font-size: 14px; font-weight: 600; }
.usermenu__panel { position: absolute; right: 0; top: calc(100% + var(--space-1)); min-width: 200px; z-index: 10; padding: var(--space-1);
  background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: var(--radius-md); box-shadow: var(--shadow-dialog); }
.usermenu__panel a, .usermenu__panel button { display: flex; align-items: center; gap: var(--space-2); width: 100%; height: 36px; padding: 0 var(--space-3);
  border: 0; background: none; border-radius: var(--radius-sm); color: var(--ink); font: 400 14px/20px var(--font-sans); text-decoration: none; cursor: pointer; }
.usermenu__panel a:hover, .usermenu__panel button:hover { background: var(--neutral-soft); }

.content { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-6); flex: 1; }
.app-footer { margin-top: auto; padding-top: var(--space-4); font-size: 11px; line-height: 16px; color: var(--ink-muted); text-align: right; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
.back-link { display: inline-block; font-size: 12px; line-height: 16px; margin-bottom: var(--space-1); text-decoration: none; }
.back-link::before { content: "‹ "; }

/* Panelek, táblázatok */
.panel { background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: var(--radius-lg); }
.panel--narrow { max-width: 640px; }
.empty-panel { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); color: var(--ink-muted); }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font: 600 12px/16px var(--font-sans); color: var(--ink-muted); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--hairline); }
.table td { height: 40px; padding: var(--space-2) var(--space-4); border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface); }
.table .num { text-align: right; }
.table__actions { text-align: right; white-space: nowrap; }
.table .empty { color: var(--ink-muted); padding: var(--space-6) var(--space-4); }
.strong-link { font-weight: 600; color: var(--ink); text-decoration: none; }
.strong-link:hover { color: var(--primary); text-decoration: underline; }
.icon-link { color: var(--ink-muted); vertical-align: middle; }
.icon-link .ico { width: 14px; height: 14px; }

/* Űrlapok */
.form { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.form--narrow { max-width: 480px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-6); max-width: 880px; }
.field--wide { grid-column: 1 / -1; }
.form-actions { display: flex; gap: var(--space-2); padding-top: var(--space-2); }
textarea.crm-input { height: auto; padding: var(--space-2) var(--space-3); resize: vertical; }
.radio-row { display: flex; gap: var(--space-4); min-height: 36px; align-items: center; }
.check-label { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 14px; cursor: pointer; }
.check-label input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); }
.crm-field .check-label { min-height: 36px; margin-top: 20px; }
.crm-field .radio-row .check-label { margin-top: 0; min-height: 0; }
.check-list { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); padding: var(--space-2) var(--space-3);
  border: 1px solid var(--hairline); border-radius: var(--radius-md); max-height: 200px; overflow-y: auto; }
.crm-field .check-list .check-label { margin-top: 0; min-height: 0; }

/* Üzenetek */
.messages { display: flex; flex-direction: column; gap: var(--space-2); }
.message { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: 14px; background: var(--primary-soft); color: var(--primary); }
.message--success { background: var(--success-soft); color: var(--success); }
.message--error { background: var(--danger-soft); color: var(--danger); }
.message--warning { background: var(--warning-soft); color: var(--warning); }

/* Megerősítő ablak */
.dialog-backdrop { display: grid; place-items: start center; padding-top: 64px; }
.dialog { width: 440px; max-width: 100%; padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3);
  background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-dialog); }

/* Belépés */
.login { min-height: 100vh; display: grid; place-items: center; padding: var(--space-6); background: var(--surface); }
.login__card { width: 380px; max-width: 100%; padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4);
  background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: var(--radius-lg); }
.login__brand { padding: 0; }
.login__submit { justify-content: center; }
.ketlepcsos-lepesek { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: var(--space-2); }
.ketlepcsos-qr { align-self: center; background: #fff; border-radius: var(--radius-md); line-height: 0; }
.ketlepcsos-kulcs { user-select: all; word-break: break-all; }
.inline-form { display: inline; }

/* ---------- 2–4. mérföldkő: közös elemek ---------- */
.nowrap { white-space: nowrap; }
.strong { font-weight: 600; }
.small-muted { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.small-link { font-size: 13px; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning); }
.text-success { color: var(--success); }
.mb-12 { margin-bottom: var(--space-3); }
.mt-12 { margin-top: var(--space-3); }
.mt-16 { margin-top: var(--space-4); }
.gap-16 { gap: var(--space-4); }
.stack-6 { display: flex; flex-direction: column; gap: 6px; }
.stack-8 { display: flex; flex-direction: column; gap: var(--space-2); }
.stack-10 { display: flex; flex-direction: column; gap: 10px; }
.stack-12 { display: flex; flex-direction: column; gap: var(--space-3); }
.stack-16 { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.content { gap: var(--space-4); }
.breadcrumb { font-size: 13px; color: var(--ink-muted); }
.page-head--top { align-items: flex-start; }
.icon-btn { padding: 0 var(--space-2); color: var(--ink); }
.bell-count { position: absolute; top: 2px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--danger); color: #ffffff; font-size: 10px; line-height: 16px; font-weight: 600; text-align: center; }

.panel__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: 14px var(--space-4); border-bottom: 1px solid var(--hairline); }
.panel__title { font-size: 16px; line-height: 24px; font-weight: 600; padding: 14px var(--space-4); border-bottom: 1px solid var(--hairline); }
.panel--pad { padding: var(--space-4); }
.panel__form { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--hairline); display: flex; flex-direction: column; gap: var(--space-3); background: var(--surface); }
.panel .empty, section > .empty { padding: var(--space-4); color: var(--ink-muted); font-size: 13px; }
.row-muted td { color: var(--ink-muted); }
.col-check { width: 36px; }
.badge-stack { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.badge-stack a { text-decoration: none; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.search-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); align-items: start; }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1100px; }
.form-grid--tight { gap: 10px; max-width: none; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
/* A dátummezőben az év, a hónap és a nap is mindig látsszon (keskeny hasábban se vágódjon le a nap). */
input[type="date"].crm-input { min-width: 160px; padding-right: var(--space-2); }
.form-actions--end { justify-content: flex-end; padding-top: 0; }
.form-section { border: 0; margin: 0; padding: 0 0 var(--space-4); border-bottom: 1px solid var(--hairline); display: flex; flex-direction: column; gap: var(--space-3); }
.form-section legend { padding: 0; margin-bottom: var(--space-3); }
.crm-input--multi { height: auto; padding: var(--space-1); }
.crm-input--file { height: auto; padding: 6px; }
select.crm-input { padding-right: var(--space-2); }

/* Adatlap tények */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px var(--space-4); margin: 0; }
.facts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts--1 { grid-template-columns: 1fr; gap: 10px; }
.facts dt { font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.facts dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }

/* Statisztikák */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.stat-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: var(--space-4); color: var(--ink); text-decoration: none; display: block; }
.stat--link:hover { border-color: var(--border-strong); color: var(--ink); }
.stat__label { font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.stat__figure { font-size: 24px; line-height: 32px; font-weight: 600; margin-top: var(--space-1); }
.stat__sub { font-size: 12px; color: var(--ink-muted); }
.count-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) var(--space-6); }
.count-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); text-decoration: none; color: var(--ink); padding: 2px 0; }

/* Listasorok */
.list-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--hairline); color: var(--ink); text-decoration: none; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: var(--surface); color: var(--ink); }
.notif-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--hairline); font-size: 14px; }
.notif-row:last-child { border-bottom: 0; }
.notif-row a { color: var(--ink); text-decoration: none; }
.notif-row a:hover { color: var(--primary); text-decoration: underline; }
.notif-row--read { color: var(--ink-muted); }
.notif-row--read a { color: var(--ink-muted); }
.notif-row__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.notif-row__dot--lost { background: var(--danger); }
.notif-row__dot--warn { background: var(--warning); }
.notif-row--read .notif-row__dot { background: var(--hairline); }

/* Feladatsor */
.task-row { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--space-3); align-items: start; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--hairline); }
.task-row:last-child { border-bottom: 0; }
.task-row__check { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--success); cursor: pointer; }
.task-row__title { display: block; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.task-row__title:hover { color: var(--primary); }
.task-row__title--done { text-decoration: line-through; color: var(--ink-muted); }
.task-row__meta { font-size: 12px; color: var(--ink-muted); }
.task-row__meta .text-danger, .task-row__meta .text-warning { font-weight: 600; }

/* Napló */
.naplo-uj { display: flex; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--hairline); }
.naplo-uj select { width: 130px; flex-shrink: 0; }
.naplo-uj input { flex-grow: 1; width: auto; }
.naplo-sor { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--hairline); }
.naplo-sor:last-child { border-bottom: 0; }
.naplo-sor__meta { font-size: 12px; color: var(--ink-muted); }
.naplo-sor__szoveg { font-size: 14px; overflow-wrap: anywhere; }
.naplo-sor__badge { margin-right: 6px; }
.mini-log { padding: 10px var(--space-4); border-bottom: 1px solid var(--hairline); font-size: 13px; }
.mini-log:last-child { border-bottom: 0; }

/* Kapcsolattartók, fájlok */
.contact { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--hairline); }
.contact:last-child { border-bottom: 0; }
.contact__head { justify-content: space-between; }
.contact__links { font-size: 13px; margin-top: var(--space-1); }
.file-list { display: flex; flex-direction: column; }
.file-row { display: flex; flex-direction: column; gap: 2px; padding: 10px var(--space-4); border-bottom: 1px solid var(--hairline); }
.file-row:last-child { border-bottom: 0; }
.file-row.file-row--actions { flex-direction: row; justify-content: space-between; align-items: center; gap: var(--space-3); }
.file-row--actions > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.doc-file-row { display: flex; align-items: center; gap: var(--space-1); }
.doc-file-row .crm-btn--sm { padding: 2px 6px; min-height: 0; }
.file-row .crm-doc__file { font-size: 13px; }
.file-row .ico { width: 14px; height: 14px; }
.file-row__meta { font-size: 12px; }
.doc-toggle { display: contents; }
.doc-toggle .crm-check { cursor: pointer; padding: 0; }
.doc-toggle .crm-check:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.doc-upload { margin: 0; }

/* Szűrők */
.filters-wrap > summary { list-style: none; width: max-content; }
.filters-wrap > summary::-webkit-details-marker { display: none; }
.filters-wrap[open] > summary { margin-bottom: var(--space-2); }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); padding: var(--space-3) var(--space-4);
  background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: var(--radius-lg); }
.filters__field { width: 180px; }
.filters__field--wide { width: 260px; }
.filters__field .crm-field__help { display: none; }
.filters__check { height: 36px; }
.filters__actions { display: flex; gap: var(--space-2); margin-left: auto; }
.pager { display: flex; align-items: center; justify-content: center; gap: var(--space-3); }

/* Nézetváltó */
.seg { display: inline-flex; padding: 3px; background: var(--neutral-soft); border-radius: var(--radius-md); }
.seg__btn { background: transparent; color: var(--ink-soft); text-decoration: none; }
.seg__btn[aria-pressed="true"] { background: var(--surface-raised); color: var(--primary); box-shadow: var(--shadow-card); }

/* Kanban */
.kanban { display: flex; gap: var(--space-3); align-items: flex-start; overflow-x: auto; padding-bottom: var(--space-2); }
.kanban__col { width: 272px; flex-shrink: 0; transition: background-color .12s; }
.kanban__col--prep { background: var(--lavender-soft); } .kanban__col--prep .crm-col__head { color: var(--lavender); }
.kanban__col--active { background: var(--primary-soft); } .kanban__col--active .crm-col__head { color: var(--primary); }
.kanban__col--warn { background: var(--warning-soft); } .kanban__col--warn .crm-col__head { color: var(--warning); }
.kanban__col--won { background: var(--success-soft); } .kanban__col--won .crm-col__head { color: var(--success); }
.kanban__col--lost { background: var(--danger-soft); } .kanban__col--lost .crm-col__head { color: var(--danger); }
.kanban__col--neutral { background: var(--neutral-soft); }
.kanban__col.is-over { outline: 2px solid var(--primary); outline-offset: -2px; }
.kanban__cards { min-height: 48px; }
.kanban__card { color: var(--ink); text-decoration: none; cursor: grab; }
.kanban__card:hover { border-color: var(--border-strong); color: var(--ink); }
.kanban__card.is-dragging { box-shadow: var(--shadow-dialog); opacity: .85; }
.kanban__card .crm-card__foot .crm-row { gap: 6px; }

/* Fázissor */
.phase-bar { display: flex; flex-wrap: wrap; gap: var(--space-1); list-style: none; padding: 0; margin: 0 0 var(--space-4); counter-reset: fazis; }
.phase-bar__step { font-size: 12px; line-height: 16px; padding: 3px var(--space-2); border-radius: var(--radius-sm); background: var(--neutral-soft); color: var(--ink-muted); }
.phase-bar__step.is-done { background: var(--lavender-soft); color: var(--lavender); }
.phase-bar__step.is-current { background: var(--primary); color: #ffffff; font-weight: 600; }
.deadline-list { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--hairline); }
.deadline-list__row { justify-content: space-between; font-size: 13px; }

/* Menü a „…” gombhoz */
.more-menu { position: relative; }
.more-menu > summary { list-style: none; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-menu .usermenu__panel { min-width: 220px; }

/* Wiki panel */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(43, 52, 69, 0.22); display: flex; justify-content: flex-end; z-index: 50; }
.drawer-backdrop__close { position: absolute; inset: 0; }
.drawer { position: relative; width: 560px; max-width: 100%; height: 100%; background: var(--surface-raised); box-shadow: var(--shadow-dialog); display: flex; flex-direction: column; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--hairline); }
.drawer__kicker { font-size: 12px; font-weight: 600; color: var(--lavender); }
.drawer__body { padding: 20px var(--space-6); overflow-y: auto; flex: 1; }
.drawer__form { display: flex; flex-direction: column; gap: var(--space-3); }
.drawer__foot { padding: var(--space-3) var(--space-6); border-top: 1px solid var(--hairline); font-size: 12px; color: var(--ink-muted); }
.wiki-editor { font-family: ui-monospace, Consolas, monospace; font-size: 13px; line-height: 20px; min-height: 360px; }
.wiki { font-size: 14px; line-height: 22px; display: flex; flex-direction: column; gap: var(--space-3); }
.wiki h1, .wiki h2, .wiki h3, .wiki h4 { font-size: 14px; line-height: 20px; font-weight: 600; margin: var(--space-2) 0 0; }
.wiki h1 { font-size: 16px; }
.wiki ul, .wiki ol { margin: 0; padding-left: 20px; }
.wiki p { margin: 0; }
.wiki--small { font-size: 13px; line-height: 20px; gap: var(--space-1); }
.wiki-teaser { background: var(--lavender-soft); border-radius: var(--radius-lg); padding: 14px var(--space-4); display: flex; flex-direction: column; gap: 6px; }
.wiki-teaser__head { justify-content: space-between; }
.wiki-teaser__kicker { font-size: 12px; font-weight: 600; color: var(--lavender); }

/* Átbeszélés */
.review-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: 14px var(--space-4); background: var(--primary-soft); border-radius: var(--radius-lg); }
.review-bar__title { align-items: baseline; gap: var(--space-3); }
.review-bar__h1 { font-size: 20px; line-height: 28px; font-weight: 600; }
.review-bar__kor { font-size: 13px; color: var(--ink-soft); }
.progress { width: 240px; height: 6px; border-radius: 3px; background: var(--surface-raised); }
.progress__bar { height: 6px; border-radius: 3px; background: var(--primary); }
.progress__label { font-size: 13px; font-weight: 600; color: var(--primary); }
.review-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.review-head { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) 20px; }
.review-head__name { font-size: 20px; line-height: 28px; font-weight: 600; }
.review-head__side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2); }
.review-closed { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: 14px 20px; }
.review-closed a { color: var(--ink); text-decoration: none; }
.review-p__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.review-p__title { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); text-decoration: none; }
.review-p__title:hover { color: var(--primary); }
.review-step { display: grid; grid-template-columns: minmax(0, 1fr) 170px auto; gap: var(--space-3); align-items: start; }
.review-step__save { margin-top: 20px; }
.banner { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--primary-soft); color: var(--ink); border-radius: var(--radius-lg); }

dialog.dialog { border: 0; padding: var(--space-6); }
dialog.dialog:not([open]) { display: none; }
dialog.dialog::backdrop { background: rgba(43, 52, 69, 0.22); }
