/* Pénzügyi Kalauz arculat (penzugyikalauz.hu): Inter + Geist Mono, „BM” piros-narancs, slate szürkék */
@font-face { font-family: "Inter"; src: url("fonts/inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-Bold.woff") format("woff"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geistmono-Regular.woff") format("woff"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geistmono-Bold.woff") format("woff"); font-weight: 600 900; font-display: swap; }
:root {
  --bg: #f7f7f7;
  --card: #ffffff;
  --ink: #0f172a;
  --ink-2: #263142;
  --muted: #64748b;
  --line: #ebebeb;
  --line-2: #d9dde3;
  --brand: #e43c2b;
  --accent: #d83426;
  --accent-hover: #b8291b;
  --accent-ink: #ffffff;
  --accent-soft: #fdeeec;
  --ok: #1f7a4d;
  --ok-bg: #e7f4ec;
  --ok-line: #b7dcc6;
  --warn: #8a4b08;
  --warn-bg: #fff4dc;
  --warn-line: #f0c36d;
  --err: #a8261b;
  --err-bg: #fdecea;
  --edit: #4b3fa8;
  --edit-bg: #f3f1ff;
  --radius: 14px;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --display: Impact, "Haettenschweiler", "Arial Narrow Bold", "Inter", sans-serif;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); line-height: 1.5; font-size: 15px; }
a { color: var(--accent); }
h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.75rem; line-height: 1.15; margin: 0 0 .45rem; letter-spacing: .005em; color: var(--ink); }
h2 { font-size: 1.08rem; font-weight: 700; margin: 1.4rem 0 .6rem; letter-spacing: -.01em; }
.card h2:first-child { margin-top: 0; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem clamp(16px, 4vw, 40px); background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20; min-height: 4.5rem;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; font-family: var(--display); font-size: 1rem; letter-spacing: .02em;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name small { font-family: var(--mono); font-size: .68rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.who { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .9rem; }
.who form { margin: 0; }
.devbar { background: var(--ink-2); color: #fff; text-align: center; font-size: .82rem; padding: .3rem; letter-spacing: .02em; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 24px 16px 80px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(16px, 3vw, 28px); margin-bottom: 18px;
}
.card.narrow { max-width: 460px; margin: 40px auto; }
.center { text-align: center; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.grid2 .card { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.meta { color: var(--muted); font-size: .88rem; margin: 0 0 .6rem; }
.crumbs { margin: 0 0 .8rem; font-size: .9rem; }
.crumbs a { text-decoration: none; }

.stack { display: flex; flex-direction: column; gap: .7rem; }
label { font-weight: 550; font-size: .92rem; }
input[type=text], input[type=email], input[type=tel], input:not([type]), textarea {
  font: inherit; width: 100%; padding: .55rem .75rem; border: 1px solid var(--line-2); border-radius: 8px;
  background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus, button:focus-visible { outline: 3px solid #f6b5ad; outline-offset: 1px; border-color: var(--accent); }
button {
  font: inherit; font-weight: 600; padding: .6rem 1.25rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink); transition: background .15s, border-color .15s;
}
button:hover { background: #f1f2f4; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.primary:hover, a.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button.link { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 500; text-decoration: underline; }

.search { display: flex; gap: .6rem; margin-top: .8rem; }
.search input { flex: 1; }
.list { list-style: none; padding: 0; margin: 1rem 0 0; border-top: 1px solid var(--line); }
.list li { border-bottom: 1px solid var(--line); }
.list a, .list.plain li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem .2rem; text-decoration: none; color: var(--ink); }
.list a:hover { background: var(--accent-soft); }
.list .title { font-weight: 550; }
.list .meta { margin: 0; white-space: nowrap; }
.list.compact a, .list.compact li { padding: .5rem .2rem; }
.list.compact { margin-top: 0; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.2rem; margin: 1rem 0 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 550; }
.docs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .6rem; }
.docs li { display: flex; justify-content: space-between; padding: .6rem .8rem; border-radius: 8px; border: 1px solid var(--line); }
.docs li.ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.docs li.missing { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }

.choices { display: grid; gap: .5rem; }
.choice { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 400; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { margin-top: .25rem; }
.choice em { color: var(--muted); font-style: normal; }
.choice small { display: block; color: var(--muted); }

.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin: 0 0 1rem; overflow-x: auto; }
.tab {
  display: flex; align-items: center; gap: .45rem; padding: .6rem .95rem; white-space: nowrap;
  color: var(--muted); text-decoration: none; font-weight: 550; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--ink); background: #f4f5f7; }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab .count { font-size: .75rem; font-family: var(--mono); font-weight: 600; padding: 0 .45rem; border-radius: 99px; background: #eef0f3; color: var(--muted); }
.tab.active .count { background: var(--accent-soft); color: var(--accent); }
.tab .crm-mark { font-size: .7rem; font-weight: 600; padding: .05rem .4rem; border-radius: 4px; background: #fff4dc; color: var(--warn); }
.empty-tab { padding: 1.2rem 0; }

.flash { padding: .7rem .9rem; border-radius: 8px; margin: .8rem 0; border: 1px solid; }
.flash-hiba { background: var(--err-bg); color: var(--err); border-color: #f3b7b0; }
.flash-info { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.flash-figyelem { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }

.spinner { width: 36px; height: 36px; margin: 0 auto 1rem; border: 4px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

.stats { display: flex; gap: .8rem; margin: 1rem 0; flex-wrap: wrap; }
.stats div { flex: 1; min-width: 110px; padding: .75rem .95rem; border-radius: 12px; background: #fafafa; border: 1px solid var(--line); }
.stats strong { display: block; font-size: 1.4rem; }
.stats span { color: var(--muted); font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }
.stats .warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.stats .empty { background: #f1f0fb; border-color: #cfcaf0; }
.toggle { display: flex; gap: .5rem; align-items: center; font-weight: 400; }

.review { padding: 0; overflow: hidden; }
.fields { width: 100%; border-collapse: collapse; }
.fields th, .fields td { text-align: left; vertical-align: top; padding: .6rem .9rem; border-bottom: 1px solid var(--line); }
.fields thead th { background: #fafafa; font-family: var(--mono); font-weight: 500; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fields tbody th { font-weight: 500; width: 32%; }
.fields tbody th label { font-weight: 500; }
.fields td:last-child { width: 1%; white-space: nowrap; }
.fields tr.group th { background: #f1f2f4; font-family: var(--mono); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.fields tr.has-warning td:nth-child(2) input, .fields tr.has-warning td:nth-child(2) textarea { border-color: var(--warn-line); background: #fffaf0; }
.fields .warning { color: var(--warn); font-size: .84rem; margin-top: .3rem; }
.fields .warning::before { content: "⚠ "; }
.fields input.edited, .fields textarea.edited, .fields select.edited { border-color: #6b5bd2; background: var(--edit-bg); }
.req { color: var(--err); }
.fields tr.skipped th, .fields tr.skipped .badge { color: #9a9f9c; }
.fields tr.skipped input[type=text], .fields tr.skipped textarea { background: #f4f5f7; }
.badge { display: inline-block; font-size: .78rem; padding: .15rem .5rem; border-radius: 99px; background: #eef0f3; color: var(--muted); }
.only-problems .fields tbody tr:not(.todo):not(.group):not(.keep) { display: none; }

.actions {
  position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .9rem; background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
}
.actions .buttons { display: flex; gap: .6rem; flex-wrap: wrap; }
.confirm { display: flex; gap: .5rem; align-items: center; font-weight: 500; }

@media (max-width: 640px) {
  .fields thead { display: none; }
  .fields tr { display: block; border-bottom: 1px solid var(--line); padding: .4rem 0; }
  .fields th, .fields td { display: block; border: 0; width: auto !important; padding: .25rem .9rem; }
  .fields td:last-child { white-space: normal; }
  .search { flex-direction: column; }
}

.who a { color: var(--muted); text-decoration: none; }
.who a:hover { color: var(--accent); }
.code-input { font-size: 1.6rem; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.inline-form { margin: .6rem 0 0; }
.hints { margin: 0; padding-left: 1.1rem; }
.add-user { display: grid; grid-template-columns: 1fr 1.3fr auto auto; gap: .7rem; align-items: end; margin-top: 1rem; }
.add-user div { display: flex; flex-direction: column; gap: .3rem; }
.add-user .toggle { padding-bottom: .55rem; }
@media (max-width: 760px) { .add-user { grid-template-columns: 1fr; } }
.users td, .users th { vertical-align: middle; }
.actions-cell { display: flex; flex-wrap: wrap; gap: .35rem; width: auto !important; white-space: normal !important; }
.actions-cell form { margin: 0; }
.small-btn { font-size: .8rem; padding: .3rem .6rem; font-weight: 550; }
.small-btn.danger { color: var(--err); border-color: #f3b7b0; }
.state { font-size: .82rem; font-weight: 600; padding: .15rem .5rem; border-radius: 99px; white-space: nowrap; }
.state.on { background: var(--ok-bg); color: var(--ok); }
.state.off { background: #eef0f3; color: var(--muted); }
.state.pending { background: #f1f0fb; color: #4b3fa8; }
.state.warn { background: var(--warn-bg); color: var(--warn); }
.nowrap { white-space: nowrap; }
.log td, .log th { width: auto; }

.choice-tools { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
button:disabled { opacity: .5; cursor: not-allowed; }
.form-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .2rem; }
.form-nav a { display: inline-flex; gap: .4rem; align-items: center; padding: .35rem .7rem; border: 1px solid var(--line);
  border-radius: 99px; text-decoration: none; color: var(--ink); font-size: .88rem; background: #fff; }
.form-nav a:hover { border-color: var(--accent); }
.form-nav .warnc { color: var(--warn); font-weight: 650; }
.form-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .9rem; background: #fafafa; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.form-head h2 { margin: 0; font-size: 1.05rem; }
.form-head .buttons { display: flex; gap: .4rem; flex-wrap: wrap; }
.review + .review { margin-top: 18px; }

/* Dokumentumfeltöltés a kitöltés indításakor */
.uploads { border: 1px solid var(--line); border-radius: 8px; padding: .7rem .9rem; }
.uploads summary { cursor: pointer; font-weight: 600; }
.upload-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .6rem; margin-top: .6rem; }
.upload { display: flex; flex-direction: column; gap: .4rem; padding: .7rem .8rem; border: 1px dashed var(--line); border-radius: 8px; font-weight: 400; }
.upload small { display: block; color: var(--muted); }
.upload input[type=file] { max-width: 100%; font-size: .9rem; }
.check-line { display: flex; gap: .5rem; align-items: center; margin-top: .7rem; font-weight: 400; }

/* ---- Dokumentum-checklist ---- */
.head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.head-row .buttons { display: flex; gap: .5rem; flex-wrap: wrap; }
a.button { display: inline-block; font-weight: 600; padding: .6rem 1.25rem; border-radius: 999px; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); text-decoration: none; }
a.button:hover { background: #f4f5f7; }
a.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
a.choice { text-decoration: none; color: var(--ink); }
a.choice:hover { border-color: var(--accent); }
button.secondary { background: #fff; }

.wizard-card { max-width: 760px; margin: 0 auto; }
.wprogress { height: 6px; background: #eef0f3; border-radius: 99px; overflow: hidden; margin: .8rem 0 1.2rem; }
.wprogress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.wizard fieldset { border: 0; padding: 0; margin: 0 0 1.6rem; }
.wizard legend { font-size: 1.15rem; font-weight: 650; margin-bottom: .7rem; padding: 0; }
.opts { display: grid; gap: .5rem; }
.opt { display: flex; gap: .7rem; align-items: center; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; font-weight: 500; font-size: 1rem; background: #fff; }
.opt:hover { border-color: var(--accent); }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opt input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); flex: none; }
.name-row { display: grid; grid-template-columns: 11rem 1fr; gap: .7rem; align-items: center; margin-bottom: .5rem; font-weight: 500; }
.wnav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.js-wizard .wstep { display: none; }
.js-wizard .wstep.current { display: block; }
.js-wizard #wsubmit { display: none; }
.js-wizard.last #wsubmit { display: inline-block; }
.js-wizard.last #wnext { display: none; }
#wizard:not(.js-wizard) #wnext, #wizard:not(.js-wizard) #wback { display: none; }
@media (max-width: 640px) { .name-row { grid-template-columns: 1fr; gap: .2rem; } }

.summary-box { margin: .8rem 0; border: 1px solid var(--line); border-radius: 8px; padding: .6rem .9rem; }
.summary-box summary { cursor: pointer; font-weight: 600; }
.summary-box .facts { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); font-size: .9rem; }
.summary-box textarea { margin: .6rem 0; font-size: .9rem; }
.cl-group h2 { margin-bottom: .2rem; }
.cl-items { list-style: none; margin: 0; padding: 0; }
.cl-item { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.cl-item:first-child { border-top: 0; }
.cl-main { flex: 1; min-width: 0; }
.cl-title { font-weight: 600; }
.who-tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: .1rem .5rem; border-radius: 99px;
  background: #eef0fb; color: #3c4790; margin-left: .2rem; white-space: nowrap; }
.cl-badges { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: .3rem 0 0; }
.badge.opt { background: #f1f0fb; color: #4b3fa8; padding: .15rem .5rem; border: 0; font-size: .78rem; font-weight: 500; cursor: default; display: inline-block; }
.cl-note { margin: .35rem 0 0; color: var(--muted); font-size: .88rem; }
.cl-warn { margin: .35rem 0 0; color: var(--warn); font-weight: 600; font-size: .9rem; }
.cl-comment { margin-top: .45rem; font-size: .88rem !important; padding: .35rem .6rem !important; }
.seg { display: flex; flex: none; align-self: flex-start; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg label { cursor: pointer; font-size: .85rem; font-weight: 600; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: .45rem .7rem; color: var(--muted); }
.seg label + label span { border-left: 1px solid var(--line-2); }
.seg .s-h input:checked + span { background: var(--warn-bg); color: var(--warn); }
.seg .s-m input:checked + span { background: var(--ok); color: #fff; }
.seg .s-n input:checked + span { background: #eef0f3; color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid #f6b5ad; outline-offset: -3px; }
.cl-item.st-megvan .cl-title, .cl-item.st-nem_kell .cl-title { color: var(--muted); }
.cl-item.st-nem_kell .cl-title { text-decoration: line-through; }
.only-missing .cl-item:not(.st-hianyzik) { display: none; }
.only-missing .cl-group:not(:has(.st-hianyzik)) { display: none; }
.delete-form { margin: 1.2rem 0 0; text-align: right; }
@media (max-width: 640px) { .cl-item { flex-direction: column; gap: .5rem; } .seg { align-self: stretch; } .seg label { flex: 1; text-align: center; } }

@media print {
  .topbar, .devbar, .noprint, .actions, .crumbs, .cl-comment:placeholder-shown { display: none !important; }
  body, .card { background: #fff; }
  .card { box-shadow: none; border: 0; padding: 0; margin: 0 0 1rem; }
  .summary-box { border: 0; padding: 0; }
  .summary-box[open] summary, .summary-box summary { font-weight: 650; }
  .cl-item { break-inside: avoid; }
  .seg { border: 0; }
  .seg label:not(:has(input:checked)) { display: none; }
  .seg span { padding: 0 .3rem; border: 1px solid #999; border-radius: 4px; }
  .cl-comment { border: 0 !important; padding: 0 !important; font-style: italic; }
  .only-missing .cl-item:not(.st-hianyzik) { display: flex; }
}
.wstep.needs legend::after { content: " – válassz egyet"; color: var(--err); font-size: .9rem; font-weight: 500; }
.cl-item:not(.noting) .cl-comment:placeholder-shown { display: none; }
.add-note { font-size: .82rem; }
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; row-gap: .4rem; }
  .who { flex-wrap: wrap; gap: .3rem .8rem; font-size: .9rem; }
  .who > span { display: none; }
}
.opt.disabled { opacity: .55; cursor: not-allowed; }
.other-banks { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 .2rem; }
.opt.disabled:hover { border-color: var(--line); }

/* Admin: cégadatok, hibás mezők */
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .7rem 1rem; }
.grid-form label { display: flex; flex-direction: column; gap: .3rem; }
.card h3 { font-size: .95rem; margin: 1rem 0 .5rem; }
.table-wrap { overflow-x: auto; }
.advisors th { font-size: .82rem; white-space: nowrap; }
.advisors td { padding: .25rem .3rem; }
.advisors input { min-width: 120px; padding: .35rem .5rem; font-size: .88rem; }
.advisors td:first-child input { min-width: 230px; }
.form-nav a[aria-current] { border-color: var(--accent); background: var(--accent-soft); }
.small-btn.current { background: var(--accent-soft); color: var(--accent); opacity: 1; }
.advisor-pick { display: flex; flex-direction: column; gap: .35rem; }
.advisor-pick select { font: inherit; padding: .5rem .6rem; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; max-width: 420px; }
.report-btn { border: 0; background: none; padding: .1rem .35rem; margin-left: .3rem; color: #b9b5aa; font-size: 1rem; cursor: pointer; }
.report-btn:hover { color: var(--err); background: none; }
.report-btn.done { color: var(--err); cursor: default; }
.crm-props td, .crm-props th { vertical-align: middle; }
.crm-props tr.saved { color: var(--muted); }
.props-btn { display: flex; justify-content: flex-end; margin-top: .8rem; }
.advisors { display: flex; flex-direction: column; gap: .6rem; }
.adv { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem .7rem; padding: .8rem; border: 1px solid var(--line); border-radius: 8px; }
.adv.empty { border-style: dashed; }
.adv label { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; font-weight: 550; color: var(--muted); }
.adv .w2 { grid-column: span 3; }
.adv input { padding: .35rem .55rem; font-size: .9rem; }
@media (max-width: 760px) { .adv { grid-template-columns: repeat(2, minmax(0, 1fr)); } .adv .w2 { grid-column: span 2; } }
details.adv { display: block; }
details.adv summary { cursor: pointer; padding: .1rem 0; }
.adv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem .7rem; margin-top: .6rem; }
.adv-grid .w2 { grid-column: span 2; }
.adv h4 { margin: .9rem 0 .1rem; font-size: .85rem; }
.bank-codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .6rem; margin-top: .5rem; }
.bank-codes fieldset { border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem .7rem; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.bank-codes legend { font-weight: 650; font-size: .85rem; padding: 0 .3rem; }
.copy-from { display: flex; flex-direction: column; gap: .3rem; margin-top: .8rem; font-size: .85rem; }
.copy-from select { font: inherit; padding: .4rem; border: 1px solid var(--line-2); border-radius: 8px; max-width: 420px; }
@media (max-width: 760px) { .adv-grid { grid-template-columns: 1fr 1fr; } }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 760px) { .ai-grid { grid-template-columns: 1fr; } }
.ai-grid label { display: flex; flex-direction: column; gap: .35rem; }
.ai-grid button { align-self: flex-start; }
.ai-answer { padding: .8rem 1rem; border-radius: 8px; background: #f1f5f9; white-space: pre-wrap; }
.ai-answer.err { background: var(--err-bg); color: var(--err); }
.pre { white-space: pre-wrap; }
.crm-props select { font: inherit; padding: .45rem; border: 1px solid var(--line-2); border-radius: 8px; }
.prescreen h2 { margin-top: 1.2rem; }
.prescreen select { font: inherit; padding: .5rem .6rem; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; }
.grid-form label small { font-weight: 400; }
.checks { list-style: none; padding: 0; margin: .5rem 0 0; }
.checks li { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem 0; border-top: 1px solid var(--line); }
.ck-icon { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 99px; display: grid; place-items: center; font-weight: 700; }
.ck-ok .ck-icon { background: var(--ok-bg); color: var(--ok); }
.ck-hiba .ck-icon { background: var(--err-bg); color: var(--err); }
.ck-figyelem .ck-icon, .ck-hiany .ck-icon { background: var(--warn-bg); color: var(--warn); }
.badge.prod { background: #e8f1fb; color: #1f4f86; font-weight: 600; }
.multi { display: inline-block; margin-left: .35rem; font-size: .72rem; font-weight: 600; padding: .05rem .45rem; border-radius: 99px; background: #eef0fb; color: #3c4790; cursor: help; white-space: nowrap; }
.review-more { margin: 0; border-top: 1px solid var(--line); }
.review-more summary { cursor: pointer; padding: .7rem .9rem; font-weight: 600; color: var(--muted); }
.review-note { padding: .9rem; margin: 0; }
.only-problems .review-more { display: none; }
.choice-select { font: inherit; padding: .5rem .6rem; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; max-width: 100%; }

/* arculati finomítások */
.card { box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.eyebrow { font-family: var(--mono); font-size: .74rem; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin: 0 0 .25rem; }
.badge, .state, .who-tag, .multi { font-family: var(--mono); letter-spacing: .01em; }
.tab.active .count { background: var(--accent-soft); color: var(--accent); }

/* ---- Ellenőrző oldal: teendők, eszközök, néző ---- */
.stats .todo { background: var(--accent-soft); border-color: #f6b5ad; color: var(--accent-hover); }
.stats .done { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.review-toolbar { position: sticky; top: 4.6rem; z-index: 15; display: flex; justify-content: space-between; align-items: center;
  gap: .6rem 1rem; flex-wrap: wrap; margin: 0 0 18px; padding: .6rem .9rem; background: rgba(255,255,255,.97);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 4px 14px rgba(15,23,42,.06); }
.review-toolbar .buttons { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.todo-meter { display: flex; align-items: center; gap: .8rem; flex: 1; min-width: 220px; }
.todo-text { white-space: nowrap; font-size: .92rem; }
.todo-meter .bar { flex: 1; max-width: 260px; height: 8px; background: #eef0f3; border-radius: 99px; overflow: hidden; }
.todo-meter .bar span { display: block; height: 100%; width: 4%; background: var(--ok); transition: width .25s; border-radius: 99px; }
.fields tr.todo > th:first-child { box-shadow: inset 4px 0 0 var(--accent); }
.fields tr.ok-marked > th:first-child { box-shadow: inset 4px 0 0 var(--ok); }
.fields tr.flash-row { background: #fff7e6; transition: background .6s; }
.fields tr.bad td:nth-child(2) input { border-color: var(--accent); background: #fff6f5; }
.row-tools { min-width: 9.5rem; }
.row-tools .badge { margin-bottom: .3rem; }
.tool-btns { display: flex; gap: .15rem; align-items: center; margin-top: .2rem; }
.icon-btn { border: 0; background: none; padding: .1rem .3rem; font-size: 1rem; line-height: 1.2; border-radius: 6px; cursor: pointer; }
.icon-btn:hover { background: #f1f2f4; }
.ok-mark { display: inline-flex; gap: .3rem; align-items: center; font-size: .78rem; font-weight: 500; color: var(--muted); cursor: pointer; font-family: var(--mono); text-transform: uppercase; letter-spacing: .03em; margin-left: .3rem; }
.ok-mark input { accent-color: var(--ok); }
.alt { margin-top: .35rem; font-size: .86rem; color: var(--ink-2); background: #fff4dc; border: 1px solid var(--warn-line); border-radius: 8px; padding: .35rem .55rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.alt .small-btn { padding: .15rem .6rem; }
.fields .warning.live-check { color: var(--accent-hover); }
.fields .warning.check-msg { color: var(--accent-hover); }
form.readonly input[type=text], form.readonly textarea { background: #fafafa; }
.viewer { border: 0; border-radius: var(--radius); padding: 1rem; width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 20px 60px rgba(15,23,42,.35); }
.viewer::backdrop { background: rgba(15,23,42,.55); }
.viewer-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.viewer-body { overflow: auto; max-height: calc(100vh - 210px); border: 1px solid var(--line); border-radius: 10px; background: #f4f5f7; }
.viewer-body img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.viewer-nav { display: flex; justify-content: space-between; margin-top: .6rem; }
#data-letter { margin-top: .6rem; font-size: .92rem; }
.bank-pick { border: 1px solid var(--line); border-radius: 10px; padding: .55rem .8rem; margin: .5rem 0; }
.bank-pick summary { cursor: pointer; }
.bank-pick .choices { margin-top: .6rem; }
.javitasok .old { color: var(--muted); text-decoration: line-through; }
.approval-note { width: 100%; margin: 0; }
.advisor-pick.spaced { margin-top: .8rem; }
.small-btn.danger { color: var(--err); border-color: #f3b7b0; }
@media (max-width: 640px) { .review-toolbar { border-radius: 14px; top: auto; position: static; } .row-tools { min-width: 0; } }
@media print {
  .review-toolbar, .viewer { display: none !important; }
}

/* Admin menü a fejlécben */
.admin-menu { position: relative; }
.admin-menu summary { cursor: pointer; color: var(--muted); list-style: none; }
.admin-menu summary::-webkit-details-marker { display: none; }
.admin-menu summary::after { content: " ▾"; font-size: .8em; }
.admin-menu[open] summary { color: var(--accent); }
.admin-menu .menu { position: absolute; right: 0; top: calc(100% + .6rem); background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15,23,42,.12); padding: .4rem; display: flex; flex-direction: column; min-width: 210px; z-index: 30; }
.admin-menu .menu a { padding: .45rem .7rem; border-radius: 8px; color: var(--ink); }
.admin-menu .menu a:hover { background: #f4f5f7; color: var(--accent); }
.approve-list li a { align-items: center; }

.wrap section[id], .wrap .card[id] { scroll-margin-top: 9.5rem; }
#review-form .actions { position: static; }
a.button.small-btn { padding: .3rem .8rem; font-size: .8rem; }
.who button.link { color: var(--muted); text-decoration: none; font-weight: 500; }
.who button.link:hover { color: var(--accent); }

/* ---- SZK előszűrő ---- */
.szk-form .grid-form .check-line { align-self: end; margin: 0 0 .55rem; }
.check-row { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; margin-top: .6rem; }
.check-row .check-line { margin-top: 0; }
.szk-form:not(.has-cosigner) .adostars-fields { display: none; }
.spaced-top { margin-top: 1rem; }
.szk-list { display: grid; gap: .8rem; margin-top: 1rem; }
.szk-bank { border: 1px solid var(--line); border-left: 5px solid var(--line-2); border-radius: 12px; padding: .9rem 1rem; background: #fff; }
.szk-bank header { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.szk-bank h3 { margin: 0; font-size: 1.08rem; flex: 1; }
.szk-rank { font-family: var(--mono); color: var(--muted); font-weight: 600; }
.fk-chip { font-family: var(--mono); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: .2rem .6rem; border-radius: 99px; }
.fk-konnyen { border-left-color: var(--ok); } .fk-konnyen .fk-chip { background: var(--ok-bg); color: var(--ok); }
.fk-mehet { border-left-color: #d9a520; } .fk-mehet .fk-chip { background: var(--warn-bg); color: var(--warn); }
.fk-kockazatos { border-left-color: var(--accent); } .fk-kockazatos .fk-chip { background: var(--accent-soft); color: var(--accent-hover); }
.szk-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .4rem 1rem; margin: .7rem 0 .4rem; }
.szk-facts dt { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.szk-facts dd { margin: 0; font-weight: 600; }
.szk-why { margin: .5rem 0; }
.szk-notes { margin: .3rem 0 .4rem; padding-left: 1.1rem; font-size: .9rem; color: var(--ink-2); }
.szk-notes li.risk { color: var(--accent-hover); font-weight: 500; }
.szk-ask { margin-top: 1rem; }
.szk-ask h3 { font-size: .95rem; }
.szk-ask ul, .szk-out ul { margin: .3rem 0 .6rem; padding-left: 1.1rem; }
.szk-out { padding: 0 .9rem .6rem 1.8rem; }
.szk-out > li { margin-bottom: .4rem; }
.kb-preview { max-height: 320px; overflow: auto; padding: .8rem; background: #fafafa; border-radius: 8px; }
.grid-form label.check-line { flex-direction: row; align-items: center; gap: .5rem; font-weight: 500; }
.props-btn { gap: .8rem; align-items: center; }

/* SZK interjú */
.iv { padding-top: 1.1rem; }
.iv-head { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: .8rem; }
.iv-num { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand); color: #fff;
  font-family: var(--mono); font-weight: 600; font-size: .9rem; margin-top: .1rem; }
.iv-head h2 { margin: 0 0 .25rem; font-size: 1.05rem; font-family: inherit; text-transform: none; letter-spacing: -.01em; color: var(--ink); }
.iv-ask { margin: 0; font-style: italic; color: var(--ink-2); }
.iv-tip { margin: .3rem 0 0; font-size: .85rem; color: var(--muted); }
.iv-tip::before { content: "Tipp: "; font-weight: 600; color: var(--accent); }
.iv-sub { margin-top: .9rem; border: 1px dashed var(--line-2); border-radius: 10px; padding: .55rem .8rem; }
.iv-sub summary { cursor: pointer; font-weight: 600; }
.iv-sub .iv-ask { margin: .5rem 0 .6rem; }
.szk-form .iv + .iv { margin-top: 12px; }
.szk-price { margin: .3rem 0 .4rem; font-size: .9rem; }
.iv .grid-form { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.szk-notes li.plus { color: var(--ok); }

/* Ügyfél-feltöltés */
.client-card { max-width: 640px; margin: 0 auto; }
.client-upload { border-style: solid; padding: .9rem 1rem; }
.cu-title { font-weight: 600; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.cu-missing { margin-top: 1.2rem; padding: .8rem 1rem; background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 10px; }
.cu-missing h2 { margin: 0 0 .4rem; font-size: 1rem; }
.cu-missing ul { margin: 0; padding-left: 1.1rem; }
.new-link input { margin: .5rem 0; font-family: var(--mono); font-size: .85rem; }
.new-link .buttons { display: flex; gap: .5rem; flex-wrap: wrap; }
.links-table { margin-top: .8rem; }

/* Partneroldal */
.partner-list { display: grid; gap: 12px; }
.partner-ref h2 { margin: 0; }
.stage-chip { font-family: var(--mono); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  padding: .25rem .65rem; border-radius: 99px; background: #eef0f3; color: var(--ink-2); white-space: nowrap; }
.st-jovahagyva .stage-chip, .st-folyositva .stage-chip { background: var(--ok-bg); color: var(--ok); }
.st-lezarult .stage-chip, .st-kesobb .stage-chip { background: #f1f2f4; color: var(--muted); }
.st-bank .stage-chip, .st-dokumentumok .stage-chip, .st-ajanlat .stage-chip { background: var(--accent-soft); color: var(--accent-hover); }
.stage-bar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; list-style: none; padding: 0; margin: .8rem 0 .2rem; }
.stage-bar li { height: 6px; border-radius: 99px; background: #eef0f3; }
.stage-bar li.on { background: var(--brand); }

.advisor-contact { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: .9rem; padding: .75rem .9rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.advisor-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-hover); font-weight: 700; letter-spacing: .02em; }
.advisor-contact.pending .advisor-avatar { background: #eef0f3; color: var(--muted); }
.advisor-who { display: flex; flex-direction: column; min-width: 0; flex: 1 1 200px; }
.advisor-who strong { font-size: 1.02rem; }
.advisor-who .small { overflow-wrap: anywhere; }
.advisor-label { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.advisor-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.advisor-actions .button { min-width: 96px; text-align: center; }
@media (max-width: 560px) { .advisor-actions { width: 100%; } .advisor-actions .button { flex: 1; } }

.ref-tools { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; align-items: flex-start; }
.ref-tool { flex: 1 1 260px; min-width: 0; }
.ref-tool > summary { list-style: none; display: inline-block; cursor: pointer; font-weight: 600; padding: .6rem 1.25rem;
  border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); }
.ref-tool > summary:hover { background: #f4f5f7; }
.ref-tool > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ref-form select { font: inherit; padding: .5rem .6rem; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; }
.ref-tool > summary::-webkit-details-marker { display: none; }
.ref-tool[open] > summary { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-hover); }
.ref-form { display: flex; flex-direction: column; gap: .45rem; margin-top: .6rem; padding: .8rem; border: 1px solid var(--line);
  border-radius: 12px; background: var(--card); }
.ref-form label { font-weight: 600; font-size: .9rem; }
.ref-form label.check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
.ref-form textarea, .ref-form select, .ref-form input[type=file] { width: 100%; }
.ref-form button { align-self: flex-start; }
.ref-events { list-style: none; margin: .8rem 0 0; padding: .6rem 0 0; border-top: 1px dashed var(--line-2); display: grid; gap: .35rem; }
.ref-events li { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; font-size: .88rem; align-items: baseline; }
.ref-events .ev-kind { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ref-events .ev-text { min-width: 0; overflow-wrap: anywhere; }
.ref-events .ev-date { color: var(--muted); font-size: .8rem; white-space: nowrap; }
@media (max-width: 560px) { .ref-events li { grid-template-columns: 1fr; gap: .1rem; } }
.st-folyositva .stage-bar li.on { background: var(--ok); }
.narrow-wide { max-width: 820px; margin-left: auto; margin-right: auto; }
.consent { align-items: flex-start; font-weight: 400; font-size: .92rem; }
.consent input { margin-top: .25rem; }

/* AI-parancssor */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cmd-card { border-top: 4px solid var(--brand); }
.cmd-form { display: flex; gap: .7rem; align-items: flex-end; margin-top: .6rem; }
.cmd-form textarea { flex: 1; resize: vertical; min-height: 3.2rem; }
.cmd-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .7rem 0 .3rem; }
.chip { font-size: .8rem; padding: .25rem .75rem; font-weight: 500; background: #f4f5f7; }
.cmd-quote { font-style: italic; color: var(--ink-2); margin: .2rem 0 .8rem; white-space: pre-wrap; }
.cmd-table td:first-child { width: 2rem; }
.cmd-table tr.cmd-err th, .cmd-table tr.cmd-err td { color: var(--muted); }
@media (max-width: 640px) { .cmd-form { flex-direction: column; align-items: stretch; } }
.cmd-effect { font-size: .82rem; color: var(--muted); margin-top: .25rem; }
.cmd-effect.external { color: var(--ink); font-weight: 600; }
.cmd-mailwarn { margin: .9rem 0 0; padding: .6rem .8rem; border-left: 4px solid var(--warn); background: color-mix(in srgb, var(--warn) 9%, transparent); border-radius: 6px; font-size: .9rem; }

/* ---- Fejléc: Pénzügyi Kalauz logó + LUMEN ---- */
.brand-logo { height: 52px; width: auto; display: block; }
.brand-icon { height: 36px; width: 36px; display: none; border-radius: 4px; }
.brand-sep { width: 1px; align-self: stretch; margin: .35rem .2rem; background: var(--line-2); }
.who a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (max-width: 980px) { .brand-logo { display: none; } .brand-icon { display: block; } }

/* ---- Főoldal: AI-parancssor ---- */
.hub { max-width: 820px; margin: 3vh auto 0; }
.hub-hello { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin: 0 0 .3rem; }
.hub-title { font-size: clamp(2rem, 5vw, 2.9rem); margin-bottom: 1rem; }
.hub-form { background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; padding: .9rem .9rem .7rem;
  box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .35); transition: border-color .15s, box-shadow .15s; }
.hub-form:focus-within { border-color: var(--brand); box-shadow: 0 12px 34px -16px rgba(228, 60, 43, .45); }
.hub-form textarea { width: 100%; border: 0; outline: 0; resize: vertical; min-height: 7.5rem; font: inherit; font-size: 1.05rem; background: transparent; padding: .2rem .3rem; }
.hub-bar { display: flex; gap: .8rem; align-items: center; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: .6rem; margin-top: .3rem; }
.hub-bar .cmd-chips { margin: 0; }
.kbd { font-family: var(--mono); font-size: .7rem; opacity: .75; margin-left: .35rem; }
.hub-note { margin: .7rem .2rem 1.6rem; }
.hub-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; margin-bottom: 1.4rem; }
.hub-links a { display: flex; flex-direction: column; gap: .15rem; padding: .85rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.hub-links a:hover { border-color: var(--brand); transform: translateY(-1px); }
.hub-links span { color: var(--muted); font-size: .85rem; }
.hub-panel { margin-top: 1rem; }
.hub-cmd { font-style: italic; }
@media (max-width: 640px) { .hub-links { grid-template-columns: 1fr; } .hub-bar { flex-direction: column; align-items: stretch; } .kbd { display: none; } }
@media (max-width: 640px) { .list a { flex-wrap: wrap; row-gap: .1rem; } .list .meta { white-space: normal; } }

/* Teljes logó a nyilvános oldalakon (belépés, ügyfél-feltöltés) */
.page-logo { display: block; margin: 0 auto 1.2rem; height: 64px; width: auto; max-width: 100%; }
.client-card .page-logo, .narrow .page-logo { margin-left: 0; }
@media (max-width: 640px) { .page-logo { height: auto; width: 100%; max-width: 340px; } }

/* ---- Ügyfélkapu: az ügy állása és a gyors ellenőrzés ---- */
.cp-status { margin: .6rem 0 1.4rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: #fcfcfd; }
.cp-status h2 { margin: 0 0 .8rem; }
.cp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.cp-steps li { display: flex; align-items: center; gap: .65rem; color: var(--muted); }
.cp-steps .dot { flex: none; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 2px solid var(--line-2); font-size: .8rem; font-weight: 700; background: #fff; }
.cp-steps li.done { color: var(--ink-2); }
.cp-steps li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.cp-steps li.now { color: var(--ink); font-weight: 700; }
.cp-steps li.now .dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.cp-next { margin: .9rem 0 0; padding-top: .8rem; border-top: 1px dashed var(--line-2); }
.cp-check { margin: 0 0 .8rem; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--ok-line); background: var(--ok-bg); }
.cp-check.bad { border-color: var(--warn-line); background: var(--warn-bg); }
.cp-check h3 { margin: 0 0 .4rem; font-size: .98rem; }
.cp-check ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .3rem; }
.cp-check li.bad { color: var(--warn); font-weight: 600; }
.cp-check li.good { color: var(--ok); }
.cp-advisor { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 0 0 1.4rem; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.cp-advisor .eyebrow { margin: 0 0 .15rem; }
.cp-advisor p { margin: 0; }
.cp-adv-name { font-weight: 700; font-size: 1.05rem; }
.cp-adv-btns { display: flex; gap: .5rem; }
.cp-adv-btns .button { text-decoration: none; }
@media (max-width: 640px) { .cp-adv-btns { width: 100%; } .cp-adv-btns .button { flex: 1; text-align: center; } }

/* ---- Mit csináljak ma? ---- */
.focus { margin: 0 0 1.4rem; }
.focus-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.focus-head h2 { margin: 0; }
.focus-head .eyebrow { margin: 0 0 .1rem; }
.focus-head p { margin: 0; display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.focus-head form.inline { display: inline; }
.focus-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.focus-item { display: flex; gap: 1rem; justify-content: space-between; align-items: center; padding: .65rem .2rem .65rem .8rem; border-bottom: 1px solid var(--line); border-left: 4px solid var(--line-2); }
.focus-item.p0 { border-left-color: var(--err); }
.focus-item.p2 { border-left-color: var(--brand); }
.focus-item.p3 { border-left-color: #f0a35e; }
.focus-item.more { display: none; }
.focus-name { font-weight: 650; color: var(--ink); text-decoration: none; }
.focus-name:hover { color: var(--accent); }
.focus-status { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-left: .3rem; }
.focus-why { color: var(--ink-2); font-size: .88rem; margin-top: .1rem; }
.focus-item.p0 .focus-why { color: var(--err); font-weight: 600; }
.focus-actions { display: flex; gap: .4rem; flex: none; }
.focus-actions form { margin: 0; }
.focus-more { margin-top: .6rem; }
.focus-empty { margin: .4rem 0 0; color: var(--ok); font-weight: 600; }
@media (max-width: 640px) { .focus-item { flex-direction: column; align-items: stretch; } .focus-actions { justify-content: flex-end; } }

/* ---- Pipeline-takarító ---- */
.focus-clean { margin: 1rem 0 0; display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.clean-scan { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-top: .6rem; }
.clean-filter { margin-top: .8rem; max-width: 320px; }
.clean-progress { margin-top: .8rem; }
.clean-progress .bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: .5rem 0; }
.clean-progress .bar i { display: block; height: 100%; width: 3%; background: var(--brand); transition: width .4s; }
.clean-summary { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.clean-tag { font-size: .8rem; padding: .15rem .55rem; border-radius: 99px; background: #f1f2f4; }
.clean-bulk { margin: .8rem 0 .4rem; display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.clean-list { list-style: none; margin: .4rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.clean-item { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: .8rem .2rem; border-bottom: 1px solid var(--line); }
.clean-opts { border: 0; margin: 0; padding: 0; display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; max-width: 430px; }
.clean-opt { position: relative; cursor: pointer; }
.clean-opt input { position: absolute; opacity: 0; pointer-events: none; }
.clean-opt span { display: inline-block; font-size: .8rem; padding: .3rem .6rem; border: 1.5px solid var(--line-2); border-radius: 99px; background: #fff; white-space: nowrap; }
.clean-opt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.clean-opt input:checked + span { color: #fff; font-weight: 600; border-color: transparent; }
.clean-opt.t-hivd input:checked + span { background: #2563eb; }
.clean-opt.t-level input:checked + span { background: #0f766e; }
.clean-opt.t-parkol input:checked + span { background: #b45309; }
.clean-opt.t-lezar input:checked + span { background: var(--err); }
.clean-opt.t-hagy input:checked + span { background: var(--muted); }
.clean-opt.disabled span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.clean-foot { margin-top: 1rem; }
.clean-effects { margin: 0 0 .8rem; padding-left: 1.1rem; }
.clean-letter pre { white-space: pre-wrap; font-family: inherit; background: #f8f9fb; border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; font-size: .9rem; }
@media (max-width: 760px) { .clean-item { grid-template-columns: 1fr; } .clean-opts { justify-content: flex-start; max-width: none; } }
.vis-form { display: grid; gap: .3rem; min-width: 210px; }
.vis-form .check-line { font-size: .82rem; }
.subst-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .2rem; flex-wrap: wrap; }
.subst-row form.inline { display: inline; margin-left: .6rem; }
.adv-company { display: block; max-width: 420px; margin: .4rem 0 .8rem; font-weight: 600; }
.offer-card { border-top: 4px solid #7c5cff; }
.offer-table input[type=text] { width: 100%; min-width: 160px; }
/* Vezetői képernyő / jutalék */
.lead-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.month-nav { display: flex; gap: 10px; align-items: center; }
.month-nav a { padding: 2px 10px; border: 1px solid #d8dbe6; border-radius: 8px; text-decoration: none; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 14px 0; }
.kpi { background: #f6f7fb; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.kpi span { font-size: .82rem; color: #5b6275; }
.kpi strong { font-size: 1.35rem; }
.kpi em { font-style: normal; font-size: .82rem; color: #5b6275; }
.kpi.accent { background: linear-gradient(135deg, #eef0ff, #f6ecff); border: 1px solid #d9d2ff; }
.lead-table td.num, .lead-table th.num, .split-table td.num { text-align: right; white-space: nowrap; }
.lead-table .bar-col { width: 22%; }
.lead-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.lead-actions { align-items: center; flex-wrap: wrap; }
.payout-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.payout-sum { font-size: 1.3rem; }
.payout-pay { display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin-top: 10px; }
.pill { display: inline-block; font-size: .75rem; padding: 1px 8px; border-radius: 999px; background: #eef0f6; color: #444b5e; font-weight: 600; vertical-align: middle; }
.pill.warn { background: #fff4d6; color: #8a5a00; }
.pill.ok { background: #e2f6e9; color: #1d6b3a; }
.deal-form { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.deal-form .span2 { grid-column: span 2; }
.split-table input, .split-table select { width: 100%; }
.split-table input.short, .prob-grid input.short { max-width: 90px; }
.prob-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 16px; }
.prob-grid label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .9rem; }
@media (max-width: 640px) { .deal-form .span2 { grid-column: auto; } .lead-table .bar-col { display: none; } .lead-table, .split-table { font-size: .85rem; } }
.lead-table .bar { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.lead-table .bar i { display: block; height: 100%; width: 3%; background: linear-gradient(90deg, var(--brand), #7c5cff); border-radius: 99px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lead-split { grid-template-columns: 1fr; }
.xsell-table select.cat-pick { min-width: 150px; }
.xsell-table input[name$="_product"] { min-width: 200px; }
.clawback { margin-top: 18px; background: #fff8e8; border: 1px solid #f1dcaa; border-radius: 10px; padding: 10px 14px; }
.clawback summary { cursor: pointer; font-weight: 600; }
.catalog-table td input.short { max-width: 100px; }
.xsell-table { min-width: 860px; }
.xsell-table select[name$="_kind"] { min-width: 140px; }
.xsell-table select[name$="_bank"] { min-width: 105px; }
.xsell-table select[name$="_mode"] { min-width: 64px; }
.xsell-table input[name$="_amount"] { min-width: 105px; }
.xsell-table input[name$="_value"] { min-width: 80px; }
.xsell-table input[name$="_product"] { min-width: 220px; }
.cat-pick-label { display: block; margin: 6px 0 10px; font-weight: 600; }
.cat-pick-label select { display: block; width: 100%; max-width: 640px; margin-top: 4px; }
.xsell-table th, .xsell-table td { padding-left: 6px; padding-right: 6px; }
.xsell-table { min-width: 800px; }
.xsell-table input[name$="_product"] { min-width: 200px; }
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.chips-row .chip { text-decoration: none; }
.chips-row .chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.amount-table input { max-width: 170px; text-align: right; }
.amount-table tr.sub td { border-top: 0; }
.sync-info { margin-top: 12px; font-size: .9rem; background: #f6f7fb; border-radius: 10px; padding: 8px 12px; }
.sync-info.warn { background: #fff8e8; border: 1px solid #f1dcaa; }
.sync-info summary { cursor: pointer; }
.checklist-why li.no { color: #8a5a00; }
.checklist-why li.ok { color: #1d6b3a; }
.forras-pick { border: 1px solid #e3e6ef; border-radius: 10px; padding: 10px 14px; margin: 8px 0 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.forras-pick legend { font-weight: 600; padding: 0 6px; }
.forras-pick small { flex-basis: 100%; }
.who-pick { min-width: 220px; }
.partner-table input:not(.short) { min-width: 150px; }
.partner-table th:first-child, .partner-table td:first-child { width: 48px; }
.partner-table select { min-width: 170px; }
.partner-table input.short { min-width: 80px; }
.partner-table { min-width: 900px; }
.rules-table { min-width: 1350px; }
.rules-table tr.rule-sep td { border-top: 2px solid #c9cfe0; }
.rules-table input[name$="person"] { min-width: 190px; }
.rules-table input[name$="excp"] { min-width: 180px; }
.rules-table input[name$="note"] { min-width: 160px; }
.rules-table { min-width: 1600px; }
.rules-table select[name$="cat"] { min-width: 200px; }
.rules-table select[name$="mode"] { min-width: 200px; }
.rules-table select[name$="bank"] { min-width: 120px; }
.rules-table input.short { min-width: 72px; }
.rules-table input[name$="excv"] { margin-top: 4px; }
.partner-table select[name$="_net"] { min-width: 150px; }
.cmd-mail { margin-top: .6rem; padding: .6rem .75rem; background: #f6f7fb; border-radius: 10px; display: flex; flex-direction: column; gap: .4rem; }
.cmd-mail input, .cmd-mail textarea { width: 100%; font: inherit; }
.mail-preview { white-space: pre-wrap; font: inherit; margin: 0; }
.cmd-saved { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.saved-cmd { display: inline-flex; align-items: center; gap: 2px; }
.fix-group { border: 1px solid #e6e8ef; border-radius: 12px; padding: 12px 14px; margin: 10px 0; box-shadow: none; }
.learn-box { margin-top: .6rem; }
.learn-box p { margin: .3rem 0 0; }
.learn-feedback { margin-top: .6rem; }
.learn-feedback summary { cursor: pointer; color: var(--muted, #5b6275); }
.learn-feedback form { margin-top: .4rem; gap: .4rem; }
.hub-idea { margin: 4px 0 6px; }
.flash { overflow-wrap: anywhere; word-break: break-word; }

/* ⚑ jelzés párbeszédablak */
.report-dialog { max-width: 520px; width: calc(100% - 32px); border: 1px solid var(--border, #d0d5dd); border-radius: 12px; padding: 20px; }
.report-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.report-dialog h3 { margin: 0 0 4px; }
.report-dialog .report-types { border: 0; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.report-dialog .report-types label { display: block; font-weight: normal; }
.report-dialog textarea { width: 100%; }
.report-dialog .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.acc-table td.num, .acc-table th.num { text-align: right; white-space: nowrap; }

/* Okmányvarázsló */
.vz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin: 1rem 0; }
.vz-item { margin: 0; border: 1px solid var(--border, #d0d5dd); border-radius: 10px; padding: .6rem; background: #fff; display: flex; flex-direction: column; gap: .5rem; }
.vz-item.vz-warn { border-color: #d9542b; }
.vz-item figcaption { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.vz-item select { flex: 1 1 100%; }
.vz-img { width: 100%; height: 180px; object-fit: contain; background: #f3f4f6; border-radius: 6px; transition: transform .2s; }
.vz-adj { display: flex; flex-wrap: wrap; gap: .4rem; flex: 1 1 100%; }
.vz-adj label { flex: 1 1 45%; font-size: .85rem; display: flex; flex-direction: column; gap: .15rem; }
.vz-all { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: flex-end; margin: .8rem 0 0; }
.vz-all label { font-size: .85rem; display: flex; flex-direction: column; gap: .15rem; }
.vz-img.rot-90 { transform: rotate(90deg); } .vz-img.rot-180 { transform: rotate(180deg); } .vz-img.rot-270 { transform: rotate(270deg); }

/* Keltezzek? */
.keltezes-pick { border: 1px solid var(--border, #d0d5dd); border-radius: 10px; padding: .5rem .9rem .7rem; margin: .8rem 0; }
.keltezes-pick legend { font-weight: 600; padding: 0 .3rem; }
.keltezes-pick .check-line { display: flex; gap: .5rem; align-items: center; margin: .25rem 0; }

/* Útválasztó */
.ut-box { background: var(--soft, #f4f6f8); border-radius: 10px; padding: .6rem .9rem; margin: .4rem 0 1rem; }
.ut-box p { margin: .2rem 0; }
.ut-banks, .ut-flags { border: 1px solid var(--border, #d0d5dd); border-radius: 10px; padding: .5rem .9rem .7rem; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.ut-banks legend, .ut-flags legend { font-weight: 600; padding: 0 .3rem; }
.ut-loans-wrap { overflow-x: auto; }
.ut-loans select, .ut-loans input[type=text] { width: 100%; min-width: 9rem; }
.ut-fut { white-space: nowrap; } .ut-fut input { width: 4.5rem; }
.ut-forms li, .ut-mell li { margin: .3rem 0; }
.ut-bekero { width: 100%; font-family: inherit; }
.ut-loans select, .ut-loans input { padding: .45rem .5rem; border: 1px solid var(--border, #d0d5dd); border-radius: 8px; font: inherit; background: #fff; }
.ut-loans td { vertical-align: middle; }
.ut-fut select { width: auto; min-width: 0; }
.ut-cond summary { cursor: pointer; margin: .3rem 0; }
.ut-cel-pick { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; max-width: 32rem; }
.ut-cel-pick select { padding: .5rem; border: 1px solid var(--border, #d0d5dd); border-radius: 8px; font: inherit; font-weight: 400; }
.ut-javasolt { border-color: var(--accent, #d9542b); }
.ut-extra { max-height: 22rem; overflow-y: auto; }

/* Letöltés előtti ellenőrzés */
.precheck { border-left: 4px solid #d9542b; }
.dl-status { margin: .5rem 0 0; font-size: .92rem; min-height: 1.2em; }
.dl-status.busy { color: var(--muted, #555); }
.dl-status.busy::before { content: ""; display: inline-block; width: .8em; height: .8em; margin-right: .45em; vertical-align: -.05em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: dlspin .8s linear infinite; }
.dl-status.ok { color: #1f7a3a; font-weight: 600; }
.dl-status.warn { color: #b3261e; font-weight: 600; }
@keyframes dlspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dl-status.busy::before { animation: none; } }
.precheck-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.precheck-list li { padding: .5rem .7rem; border-radius: 8px; }
.pc-hiba { background: #fdecea; } .pc-figyelem { background: #fff6e0; }

/* ==========================================================================
   Barátibb felület (2026. október): fejléc, „Ma” kezdőlap, ügyfél-lépéssáv, mobil alsó menü
   ========================================================================== */
:root { --bg: #f5f6f8; --line: #e6e8ec; --muted: #5b6576; --soft: #eef1f5; --radius: 16px;
        --urgent: #b42318; --urgent-bg: #fdecea; --today: #8a4b08; --today-bg: #fff4dc; --later: #475467; --later-bg: #eef1f5; }
h1 { font-family: "Inter", system-ui, sans-serif; font-weight: 700; text-transform: none; font-size: 1.9rem; letter-spacing: -.02em; line-height: 1.2; }
.wrap { max-width: 1120px; }
.wrap.wrap-wide { max-width: 1280px; }
.lead { font-size: 1.06rem; color: var(--muted); margin: .2rem 0 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Fejléc */
.topbar { gap: 1.2rem; min-height: 4.25rem; }
.mainnav { display: flex; align-items: center; flex-wrap: wrap; gap: .2rem; flex: 1; margin-left: .8rem; }
.mainnav > a, .more-menu > summary { padding: .55rem .9rem; border-radius: 10px; color: #334155; text-decoration: none; font-size: .95rem; font-weight: 500; cursor: pointer; list-style: none; }
.mainnav > a:hover, .more-menu > summary:hover { background: var(--soft); color: var(--ink); }
.mainnav > a[aria-current="page"], .more-menu > summary.on { background: var(--accent-soft); color: var(--urgent); font-weight: 600; text-decoration: none; }
.more-menu { position: relative; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-menu > summary::after { content: " ▾"; font-size: .75em; }
.more-menu .menu, .user-menu .menu { position: absolute; top: calc(100% + .5rem); background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .12); padding: .4rem; min-width: 220px; z-index: 40; display: flex; flex-direction: column; }
.more-menu .menu { left: 0; }
.more-menu .menu a, .user-menu .menu a, .user-menu .linklike { padding: .6rem .8rem; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: .95rem; text-align: left; }
.more-menu .menu a:hover, .user-menu .menu a:hover, .user-menu .linklike:hover { background: var(--soft); color: var(--urgent); }
.admin-menu summary::after { content: " ▾"; }
.mode-switch { display: flex; background: var(--soft); border-radius: 12px; padding: 3px; gap: 2px; margin: 0; }
.mode-switch button { border: 0; background: transparent; border-radius: 9px; padding: .45rem .8rem; font-size: .88rem; font-weight: 500; color: #475467; min-height: 36px; }
.mode-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.user-menu { position: relative; }
.user-menu > summary { list-style: none; cursor: pointer; }
.user-menu > summary::-webkit-details-marker { display: none; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; font-size: .9rem; letter-spacing: .02em; }
.user-menu .menu { right: 0; }
.user-menu form { margin: 0; }
.user-menu .linklike { width: 100%; border: 0; background: none; font: inherit; cursor: pointer; display: block; }
.user-menu-who { display: flex; flex-direction: column; padding: .5rem .8rem .7rem; margin: 0 0 .3rem; border-bottom: 1px solid var(--line); }
.user-menu-who span { font-size: .82rem; color: var(--muted); word-break: break-all; }
.mode-switch-mobile { display: none; }

/* Gombok */
button.dark, a.button.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
button.dark:hover, a.button.dark:hover { background: #1e293b; }
button.ghost { background: #fff; border-color: var(--line-2); color: var(--ink); }
.task-actions button, .task-actions a.button { min-height: 44px; border-radius: 12px; padding: .6rem 1rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; }

/* „Ma” kezdőlap */
.ma-head { margin: .4rem 0 1.1rem; }
.ma-head h1 { font-size: 2.1rem; margin: 0; }
.t-urgent { color: var(--urgent); }
.ma-cmd { display: flex; gap: .6rem; align-items: flex-end; background: #fff; border: 1px solid var(--line-2); border-radius: 16px; padding: .5rem .5rem .5rem 1rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.ma-cmd:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ma-cmd textarea { flex: 1; border: 0; outline: none; resize: none; font: inherit; font-size: 1.05rem; padding: .7rem 0; min-height: 2.6rem; max-height: 12rem; background: transparent; field-sizing: content; }
.ma-cmd button.primary { border-radius: 12px; min-height: 48px; padding: .6rem 1.4rem; font-size: 1rem; }
.ma-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: .7rem 0 1.6rem; }
.ma-chips .chip { background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: .45rem .9rem; font-size: .88rem; color: #334155; min-height: 38px; }
.ma-chips .chip:hover { border-color: var(--accent); color: var(--urgent); }
.ma-chips .chip-saved { border-style: dashed; }
.ma-grid { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.ma-tasks { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: .75rem; }
.ma-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ma-tasks-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.ma-tasks-head h2 { margin: 0; font-size: 1.25rem; }
.progress, .bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress > span, .bar > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.bar { background: var(--soft); }
.bar > span { background: #94a3b8; }
.bar > span.accent { background: var(--accent); }
.task-list { list-style: none; margin: .2rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.task-card { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.task-card.more { display: none; }
.task-body { flex: 1 1 260px; min-width: 0; }
.task-name { font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
a.task-name:hover { color: var(--urgent); text-decoration: underline; }
.task-status { font-size: .8rem; color: var(--muted); margin-left: .4rem; }
.task-why { margin: .15rem 0 0; color: #475467; font-size: .95rem; }
.task-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.task-actions form { margin: 0; }
.pill { display: inline-block; font-size: .8rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; white-space: nowrap; }
.pill-surgos { color: var(--urgent); background: var(--urgent-bg); }
.pill-ma { color: var(--today); background: var(--today-bg); }
.pill-raer { color: var(--later); background: var(--later-bg); }
.pill-ok { color: var(--ok); background: var(--ok-bg); }
.empty-state { background: #fff; border: 1px dashed var(--line-2); border-radius: 16px; padding: 28px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: .2rem; }
.ma-foot { margin: .3rem 0 0; }
.ma-note { margin-top: 2rem; }
.side-card { margin: 0; }
.side-card h2 { margin: 0 0 .8rem; font-size: 1.1rem; }
.stage-list { list-style: none; margin: 0 0 .9rem; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.stage-row { display: flex; justify-content: space-between; font-size: .95rem; margin-bottom: .3rem; }
.side-link { font-weight: 600; text-decoration: none; }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quick { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  font: inherit; text-align: left; min-height: 96px; color: var(--ink); text-decoration: none; font-weight: 600; cursor: pointer; }
.quick:hover { border-color: var(--accent); background: #fff; color: var(--urgent); }
.quick svg, .bottom-nav svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.learn-feedback summary { cursor: pointer; font-weight: 600; }
.w0 { width: 0; } .w5 { width: 5%; } .w10 { width: 10%; } .w15 { width: 15%; } .w20 { width: 20%; } .w25 { width: 25%; } .w30 { width: 30%; }
.w35 { width: 35%; } .w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; } .w55 { width: 55%; } .w60 { width: 60%; } .w65 { width: 65%; }
.w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; } .w95 { width: 95%; } .w100 { width: 100%; }

/* Ügyfél: lépéssáv + következő lépés */
.steps { list-style: none; margin: 0 0 18px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.steps li { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.steps .bar { height: 6px; }
.steps .st { font-size: .78rem; font-weight: 600; }
.steps .nm { font-weight: 600; font-size: .95rem; }
.steps li.done .bar > span { background: var(--ok); width: 100%; }
.steps li.done .st { color: var(--ok); }
.steps li.now .bar > span { background: var(--accent); width: 100%; }
.steps li.now .st { color: var(--urgent); }
.steps li.todo .st, .steps li.todo .nm { color: var(--muted); }
.steps li.todo .bar > span { width: 0; }
.steps-now { display: none; }
.next-card { background: var(--ink); color: #fff; border-radius: 18px; padding: 22px 24px; margin: 0 0 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.next-card .nx-text { flex: 1 1 320px; }
.next-card .nx-eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fca59a; margin: 0; }
.next-card h2 { margin: .2rem 0 .2rem; font-size: 1.35rem; color: #fff; }
.next-card p { margin: 0; color: #cbd5e1; }
.next-card .button, .next-card button { min-height: 48px; border-radius: 12px; padding: .7rem 1.3rem; font-weight: 600; text-decoration: none; }
.next-card a.button.primary { border-color: var(--accent); }
.client-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.client-head h1 { margin: 0 0 .4rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { background: #fff; border: 1px solid var(--line); padding: .3rem .7rem; border-radius: 999px; font-size: .85rem; color: #334155; }

/* Telefonra telepítés */
.page-head { margin: .4rem 0 1.4rem; }
.page-head h1 { margin: 0; }
.setup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-bottom: 18px; }
.setup-grid .card { margin: 0; }
.setup-card.is-current { border: 2px solid var(--accent); }
.setup-steps { margin: .4rem 0 .8rem; padding-left: 1.3rem; display: flex; flex-direction: column; gap: .45rem; }
.push-state { font-weight: 600; }
.device-list .meta { margin-left: .5rem; }
.offline-page { text-align: center; padding-top: 12vh; max-width: 520px; }
.offline-page img { border-radius: 22px; }

/* Vezetői: figyelmet kér */
.attention { list-style: none; margin: 0; padding: 0; }
.attention li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 14px 0; border-top: 1px solid var(--soft); }
.attention li:first-child { border-top: 0; }
.attention .at-body { flex: 1 1 260px; min-width: 0; }
.attention .at-body strong { display: block; font-size: 1rem; }
.attention .at-body span { color: var(--muted); font-size: .92rem; }
.attention a.button { min-height: 44px; border-radius: 10px; text-decoration: none; display: inline-flex; align-items: center; }
.kpi.alert { background: var(--accent-soft); border: 1px solid #f5c2bb; }
.kpi.alert strong, .kpi.alert span { color: #8f1c13; }
.payout-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.payout-switch a { display: flex; flex-direction: column; gap: .3rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; text-decoration: none; color: var(--ink); }
.payout-switch a:hover { border-color: var(--ink); }
.payout-switch a span { color: var(--muted); font-size: .9rem; }
.payout-switch a strong { font-size: 1.6rem; }
.payout-switch a em { font-style: normal; font-weight: 600; font-size: .9rem; color: var(--today); }
.payout-switch a em.ok { color: var(--ok); }

/* Mobil: alsó menüsor, összecsukott fejléc */
.bottom-nav { display: none; }
@media (max-width: 760px) {
  .topbar { flex-wrap: nowrap; min-height: 3.6rem; padding: .5rem 14px; }
  .mainnav, .mode-switch { display: none; }
  .mode-switch-mobile { display: block; }
  .brand-name small { display: none; }
  .wrap { padding-bottom: 110px; }
  .bottom-nav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: #fff; border-top: 1px solid var(--line); padding: 6px 6px calc(8px + env(safe-area-inset-bottom)); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; min-height: 48px; font-size: .74rem; color: #475467; text-decoration: none; }
  .bottom-nav svg { stroke: #475467; }
  .bottom-nav a[aria-current="page"] { color: var(--urgent); font-weight: 600; }
  .bottom-nav a[aria-current="page"] svg { stroke: var(--accent); }
  .ma-head h1 { font-size: 1.65rem; }
  .ma-cmd { padding-left: .8rem; }
  .ma-cmd button.primary { padding: .6rem 1rem; }
  .task-card { padding: 14px; }
  .task-actions { width: 100%; }
  .task-actions > *:first-child { flex: 1; }
  .task-actions > *:first-child > button, .task-actions > a.button, .task-actions > button { width: 100%; justify-content: center; }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 12px; }
  .steps { margin-bottom: 6px; }
  .steps .nm, .steps .st { display: none; }
  .steps-now { display: block; margin: 0 0 14px; font-size: .9rem; color: var(--muted); }
  .steps-now strong { color: var(--ink); }
  .payout-switch { grid-template-columns: 1fr; }
}
@media print { .bottom-nav, .user-menu, .mode-switch { display: none !important; } }
.payout-tools { margin: 0 0 .4rem; align-items: center; }
.lead-attention { margin-bottom: 18px; }
.lead-attention .card { margin: 12px 0 0; }
.ma-saved { margin-top: -1rem; align-items: center; }
.saved-cmd { display: inline-flex; align-items: center; gap: .2rem; }
.camera-pick { display: none; }
@media (max-width: 760px) { .camera-pick { display: block; } }

/* Átfogó ellenőrzés (október 20.): mezőméretek, táblák, fejléc */
.users { min-width: 860px; }
.users .actions-cell { display: flex; flex-wrap: wrap; gap: .35rem; min-width: 170px; }
.split-table input, .split-table select { width: 100%; min-width: 7.5rem; }
.split-table input.short, .split-table input[inputmode="decimal"] { min-width: 5.5rem; max-width: 7rem; }
.split-table input[data-ft] { min-width: 8.5rem; max-width: 11rem; }
.split-table select { min-width: 9.5rem; width: auto; }
.split-table td { vertical-align: middle; }
.split-table input[type="checkbox"], .split-table input[type="radio"] { width: auto; min-width: 0; }
.catalog-table td input.short { min-width: 5.5rem; max-width: 7rem; }
.catalog-table { min-width: 1100px; }
.partner-table input[name$="email"] { min-width: 230px; }
.partner-table input[name$="phone"] { min-width: 150px; }
.partner-table input[name$="net"] { min-width: 180px; }
.partner-table { min-width: 1250px; }
.choice-select { min-width: 0; }
select.choice-select { padding-right: 2rem; }
/* fejléc: a széles logó csak nagy képernyőn, hogy a menü egy sorban maradjon */
@media (max-width: 1500px) { .brand-logo { display: none; } .brand-icon { display: block; } }
.mainnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav > a, .more-menu > summary { white-space: nowrap; }
.mainnav .more-menu .menu { position: fixed; top: auto; }
@media (max-width: 1100px) { .mode-switch button { padding: .45rem .55rem; font-size: .82rem; } .mainnav > a, .more-menu > summary { padding: .5rem .6rem; } }

.user-menu .menu { max-height: calc(100vh - 6rem); overflow-y: auto; }
.admin-sub { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .3rem; }
.admin-sub > summary { padding: .6rem .8rem; border-radius: 9px; cursor: pointer; font-weight: 600; list-style: none; }
.admin-sub > summary::-webkit-details-marker { display: none; }
.admin-sub > summary::after { content: " ▾"; font-size: .75em; }
.admin-sub > summary:hover { background: var(--soft); }
.admin-links { display: flex; flex-direction: column; padding-left: .4rem; }
.mainnav { overflow: visible; }
.mainnav .more-menu .menu { position: absolute; top: calc(100% + .5rem); }
/* Okmányvarázsló: kézi kivágás */
.crop-stage { position: relative; display: inline-block; max-width: 100%; margin: .6rem 0 1rem; touch-action: none; user-select: none; }
.crop-stage img { display: block; max-width: 100%; max-height: calc(100vh - 340px); border-radius: 8px; }
.crop-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.crop-shade { fill: rgba(216, 52, 38, .12); stroke: #d83426; stroke-width: 3; vector-effect: non-scaling-stroke; }
.crop-handle { fill: #fff; stroke: #d83426; stroke-width: 4; vector-effect: non-scaling-stroke; cursor: grab; }
.crop-handle:focus { outline: none; fill: #d83426; }
.crop-buttons { flex-wrap: wrap; }

/* Ügyfél-adatlap: gyors műveletek */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; margin: 1rem 0 1.2rem; }
.quick-actions .qa { display: flex; gap: .6rem; align-items: center; padding: .7rem .8rem; border: 1px solid var(--border, #d0d5dd);
  border-radius: 12px; background: #fff; color: inherit; text-decoration: none; min-height: 3.6rem; }
.quick-actions .qa:hover, .quick-actions .qa:focus-visible { border-color: var(--accent, #e04a2b); box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.quick-actions .qa-main { border-color: var(--accent, #e04a2b); background: #fff6f3; }
.quick-actions .qa-ic { font-size: 1.35rem; line-height: 1; }
.quick-actions strong { display: block; font-size: .95rem; }
.quick-actions small { display: block; color: var(--muted, #667085); font-size: .8rem; line-height: 1.25; }
.tars-only[hidden] { display: none !important; }

/* Összecsukható kártya (pl. hiánylevél) */
details.fold > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: "▸"; color: var(--muted, #667085); width: 1em; }
details.fold[open] > summary::before { content: "▾"; }
details.fold > summary .eyebrow { flex-basis: 100%; margin: 0 0 .1rem 1.6em; }
details.fold > summary .fold-title { font-size: 1.25rem; font-weight: 700; }
details.fold[open] > summary .fold-hint { display: none; }
details.fold[open] > summary { margin-bottom: .6rem; }

/* Adásvételi ellenőrzés */
.av-flag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .2rem 1rem; }
.av-score { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 .8rem; }
.av-chip { padding: .3rem .7rem; border-radius: 999px; font-weight: 600; font-size: .9rem; background: #f2f4f7; }
.av-chip.bad { background: #fdecea; color: #b3261e; } .av-chip.warn { background: #fff4e5; color: #8a5300; } .av-chip.ok { background: #e8f5ec; color: #1f7a3a; }
.av-items { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.av-item { display: grid; grid-template-columns: 1.6rem 1fr; gap: .5rem; padding: .6rem .7rem; border-radius: 10px; border: 1px solid var(--border, #e4e7ec); }
.av-item.av-hianyzik, .av-item.av-hibas { border-color: #f1b5ad; background: #fffafa; }
.av-item.av-bizonytalan { border-color: #f5d39a; background: #fffcf5; }
.av-item.av-nem_vonatkozik { opacity: .7; }
.av-ic { font-size: 1.05rem; line-height: 1.4; text-align: center; }
.av-note { margin: .25rem 0 0; }
.av-quote { margin: .4rem 0 0; padding: .35rem .7rem; border-left: 3px solid var(--border, #d0d5dd); color: #475467; font-size: .9rem; background: #f9fafb; }
.av-more summary { cursor: pointer; color: var(--muted, #667085); margin-top: .3rem; }
.av-table td.av-ic { width: 2rem; }
.av-table tr.av-hibas th, .av-table tr.av-hibas td { color: #b3261e; }
#av-letter { width: 100%; font-family: inherit; }

/* --- Hitelközvetítési nyilvántartás (/nyilvantartas) --- */
.ny-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; margin: 1rem 0; }
.ny-tile { border: 1px solid var(--line-2); border-radius: 12px; padding: .7rem .85rem; background: #fff; display: flex; flex-direction: column; gap: .15rem; }
.ny-tile span { font-size: .78rem; color: var(--muted); }
.ny-tile strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.ny-tile small { font-size: .78rem; color: var(--muted); }
.ny-tile.warn { background: #fff8e6; border-color: #f2d48a; }
.ny-tile.ok { background: #ecf8f0; border-color: #a9dcb9; }
.ny-tile.bad { background: #fdecea; border-color: #f2b8b2; }
.ny-filters { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: flex-end; margin: .8rem 0; }
.ny-filters label { display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); gap: .2rem; min-width: 0; }
.ny-filters label.check-line { flex-direction: row; align-items: center; color: var(--ink); }
.ny-filters input, .ny-filters select { min-width: 8.5rem; max-width: 100%; }
.ny-filters .buttons { margin: 0; }
.ny-bulk { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: flex-end; margin: .5rem 0 .8rem; }
.ny-bulk label { display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); gap: .2rem; }
.ny-table td, .ny-table th { vertical-align: top; }
.ny-table .num, .ny-table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ny-table tfoot th, .ny-table tfoot td { border-top: 2px solid var(--line-2); font-weight: 600; }
.ny-table tr.ny-teendo td:first-child { box-shadow: inset 3px 0 0 #e8a33a; }
.ny-matrix td { min-width: 4.2rem; }
.ny-st { display: inline-block; font-size: .76rem; padding: .12rem .5rem; border-radius: 99px; background: #eef1f5; color: #334155; white-space: nowrap; }
.ny-st.ny-zold { background: #dcf3e3; color: #13612e; }
.ny-st.ny-sarga { background: #fff1c2; color: #7a5300; }
.ny-st.ny-piros { background: #fde2df; color: #9b1c12; }
.ny-st.ny-kek { background: #dde9f8; color: #1f4f86; }
.ny-st.ny-ok { background: #f1f2f4; color: #3c4656; }
.ny-pst { font-weight: 550; }
.ny-p-kifizetheto { color: #13612e; }
.ny-p-fuggo { color: #7a5300; }
.ny-p-kifizetve, .ny-p-bm, .ny-p-nem_esedekes, .ny-p-ceg, .ny-p-tulaj { color: var(--muted); }
.ny-p-nincs_szabaly, .ny-p-elbukott { color: #9b1c12; }
.ok-text { color: #13612e; }
.warning-text { color: #9b4a00; }
.ny-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .6rem 1rem; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem 1rem; margin: 0; }
.ny-grid legend { font-weight: 600; padding: 0 .3rem; }
.ny-grid label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; }
.ny-grid label.check-line { flex-direction: row; align-items: center; }
.ny-grid .wide { grid-column: 1 / -1; }
.ny-pair { border-top: 1px solid var(--line); padding: .7rem 0; }
.ny-cand { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; padding: .3rem 0 .3rem 1rem; }
.ny-partner { border-top: 1px solid var(--line); padding: .4rem 0; }
.compact-table { width: auto; margin: .6rem 0; }
@media (max-width: 640px) {
  .ny-filters label { flex: 1 1 45%; }
  .ny-filters input, .ny-filters select { min-width: 0; width: 100%; }
}
.ny-filters input[type=checkbox], .ny-bulk input[type=checkbox] { min-width: 0; width: auto; }
.ny-filters label.check-line { gap: .4rem; align-self: center; }
/* Áttekintés, riportok, Bankmonitor */
a.ny-tile { text-decoration: none; color: inherit; }
a.ny-tile:hover { border-color: #b8bfca; }
.ny-two { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; }
.ny-main { flex: 999 1 520px; min-width: 0; }
.ny-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.ny-side .card { margin: 0; }
.ny-att { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; padding: .85rem 0; border-top: 1px solid var(--line); }
.ny-att-text { flex: 1 1 260px; }
.ny-att-tag { font-family: var(--mono); font-size: .72rem; font-weight: 500; padding: .2rem .5rem; border-radius: 99px; }
.ny-att-surgos { background: #fdecea; color: #9b1c12; }
.ny-att-ma { background: #fff4dc; color: #6b4300; }
.ny-att-het { background: #eef1f5; color: #475467; }
.ny-big { font-size: 1.5rem; font-weight: 700; margin: .3rem 0 .8rem; font-variant-numeric: tabular-nums; }
.ny-bar-row { display: flex; justify-content: space-between; gap: .5rem; font-size: .9rem; margin-top: .55rem; }
svg.ny-bar { display: block; width: 100%; height: 8px; margin-top: .25rem; }
.ny-bar-bg { fill: #eef1f5; }
.ny-bar-fg { fill: #1f4f86; }
svg.ny-chart { display: block; width: 100%; height: auto; margin-top: .8rem; }
.ny-axis { stroke: #d9dde3; stroke-width: 1; }
.ny-col-a { fill: #1f4f86; }
.ny-col-b { fill: #e8a33a; }
.ny-col-lbl { font-size: 18px; fill: #5b6576; font-family: inherit; }
svg.ny-chart a:hover .ny-col-a { fill: #163a63; }
.ny-key { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; vertical-align: -1px; }
.ny-key-a { background: #1f4f86; }
.ny-key-b { background: #e8a33a; }
.ny-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .8rem; margin-top: 1rem; }
.ny-card { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem; border: 1px solid var(--line-2); border-radius: 14px; text-decoration: none; color: var(--ink); background: #fff; }
.ny-card:hover { border-color: #b8bfca; }
.ny-card span { font-size: .88rem; color: var(--muted); }
.ny-card.muted-card { background: #f8f9fb; }
.ny-bm-head { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-start; }
.ny-bm-head > div { flex: 1 1 420px; }
.ny-upload { display: flex; flex-direction: column; gap: .5rem; flex: 0 1 320px; }
.ny-hito td, .ny-hito th { vertical-align: top; }
.ny-hito .ok-text, .ny-hito .warning-text { font-weight: 600; }
.ny-src { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .6rem; margin: .8rem 0; }
.ny-src > div { border: 1px solid var(--line-2); border-radius: 12px; padding: .7rem .9rem; font-size: .9rem; }
.ny-src > div.on { border-color: #a9dcb9; background: #f3fbf5; }
.ny-src .eyebrow { margin: 0 0 .2rem; }
.ny-total { border-top: 2px solid var(--ink); padding-top: .5rem; margin-top: .8rem; }
.ny-hist { margin: .4rem 0 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.ny-two > form.card, .ny-two > section.card { margin: 0; }
.ny-bm-table { min-width: 860px; table-layout: fixed; width: 100%; }
.ny-bm-table th:nth-child(1) { width: 26%; }
.ny-bm-table th:nth-child(2) { width: 12%; }
.ny-bm-table th:nth-child(3) { width: 24%; }
.ny-bm-table th:nth-child(4) { width: 20%; }
.ny-bm-table th:nth-child(5) { width: 18%; }
.ny-bm-table td { overflow-wrap: anywhere; }
.ny-bm-table td:last-child form { display: flex; flex-direction: column; align-items: stretch; gap: .4rem; }
.ny-bm-table td:last-child .small-btn, .ny-bm-table td:last-child select, .ny-bm-table td:last-child input { width: 100%; max-width: 100%; box-sizing: border-box; }
.ny-bar-row strong { white-space: nowrap; }
.ny-bm-table td.num, .ny-bm-table th.num { white-space: normal; }

/* ---- Gördülékenyebb kitöltés: lépésjelző, beállítások egy sorban, ragadó indítógomb, összecsukott eszközök ---- */
.fill-steps { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem .5rem; margin: 0 0 .9rem; padding: 0; counter-reset: none; }
.fill-steps li { display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; font-weight: 600; color: var(--muted);
  padding: .25rem .7rem .25rem .3rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.fill-steps li .fs-n { display: inline-grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%;
  background: var(--bg); color: var(--muted); font-size: .76rem; }
.fill-steps li.done { color: var(--ok); border-color: var(--ok-line); }
.fill-steps li.done .fs-n { background: var(--ok-bg); color: var(--ok); }
.fill-steps li.now { color: var(--ink); border-color: var(--accent); background: var(--accent-soft); }
.fill-steps li.now .fs-n { background: var(--accent); color: var(--accent-ink); }
.fill-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; align-items: start; }
.fill-settings .keltezes-pick { margin: 0; }
.fill-settings .advisor-pick { border: 1px solid var(--line-2); border-radius: 10px; padding: .5rem .9rem .7rem; font-weight: 600; }
.fill-settings .advisor-pick select { max-width: none; width: 100%; font-weight: 400; }
.start-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center;
  margin: .4rem calc(-1 * clamp(16px, 3vw, 28px)) calc(-1 * clamp(16px, 3vw, 28px)); padding: .8rem clamp(16px, 3vw, 28px); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius); }
.start-bar #start-btn { min-width: 260px; }
@media (max-width: 760px) { .start-bar { bottom: 64px; } .start-bar #start-btn { width: 100%; min-width: 0; } #start-hint { display: none; } }
.tools-head { margin: 1.6rem 0 .6rem; font-size: 1rem; color: var(--muted); font-weight: 600; letter-spacing: .01em; }
.tool-card { padding-top: .8rem; padding-bottom: .8rem; }
.tool-card > details.fold > summary { cursor: pointer; padding: .2rem 0; }
.tool-card .fold-title { font-size: 1rem; font-weight: 650; }
.tool-card > details.fold[open] > summary { margin-bottom: .6rem; }
.tool-card #kereszt, .tool-card .card { box-shadow: none; border: 0; padding: 0; margin: 0; }
.progress-head { display: flex; gap: 1rem; align-items: center; margin: .4rem 0 1rem; }
.progress-head .spinner { margin: 0; flex: none; }
.progress-head h1 { margin: 0; }
.stage-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .45rem; }
.stage-list li { display: flex; align-items: center; gap: .6rem; color: var(--muted); }
.stage-list .sl-dot { display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  border: 2px solid var(--line-2); font-size: .72rem; flex: none; }
.stage-list li.done { color: var(--ink-2); }
.stage-list li.done .sl-dot { border-color: var(--ok); background: var(--ok); color: #fff; }
.stage-list li.now { color: var(--ink); font-weight: 600; }
.stage-list li.now .sl-dot { border-color: var(--accent); background: var(--accent-soft); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px var(--accent-soft); } }
@media (prefers-reduced-motion: reduce) { .stage-list li.now .sl-dot { animation: none; } }
.form-nav a.nav-add { border-color: var(--accent); color: var(--accent); font-weight: 600; }

/* ---- Vezetői döntési sor ---- */
.dn-groups { display: grid; gap: .6rem; margin: 1rem 0; }
.dn-group, .dn-banner { display: grid; grid-template-columns: 3.4rem 1fr auto; gap: .9rem; align-items: center; padding: .8rem 1rem;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; color: inherit; text-decoration: none; }
.dn-group:hover, .dn-banner:hover { border-color: var(--accent); background: var(--accent-soft); }
.dn-group.empty { opacity: .6; pointer-events: none; }
.dn-n { font-size: 1.6rem; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.dn-t { display: block; font-weight: 650; }
.dn-group small, .dn-banner small { display: block; color: var(--muted); }
.dn-go { font-size: 1.3rem; color: var(--accent); }
.dn-banner { margin: 0 0 1rem; border-color: var(--accent); background: var(--accent-soft); }
.dn-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-top: 1rem; }
.dn-head h2 { margin: .1rem 0 0; font-variant-numeric: tabular-nums; }
.dn-bar svg { display: block; width: 100%; height: 6px; margin: .7rem 0 0; }
.dn-bar-bg { fill: var(--line); } .dn-bar-fg { fill: var(--accent); }
.dn-card .dn-actions, .dn-card .dn-why { max-width: 900px; }
.dn-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.dn-side { border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; }
.dn-side h3 { margin: .1rem 0 .3rem; }
.dn-amount { font-size: 1.35rem; font-weight: 750; margin: .4rem 0 0; font-variant-numeric: tabular-nums; }
.dn-amount small { display: block; font-size: .8rem; font-weight: 400; color: var(--muted); }
.dn-why { margin: 1rem 0 .8rem; padding: .6rem .8rem; background: var(--warn-bg); border-left: 3px solid var(--warn-line); border-radius: 6px; }
.dn-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.dn-actions label { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; font-weight: 600; }
.dn-cands { display: grid; gap: .5rem; margin: 0 0 .8rem; }
.dn-cand { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; }
.dn-nav { display: flex; justify-content: space-between; gap: .6rem; margin-top: 1.2rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.dn-empty { text-align: center; padding: 1.4rem 0; display: grid; gap: .6rem; justify-items: center; }
@media (max-width: 700px) { .dn-compare { grid-template-columns: 1fr; } .dn-group, .dn-banner { grid-template-columns: 2.6rem 1fr auto; } }
.ny-more-filters { flex-basis: 100%; }
.ny-more-filters > summary { cursor: pointer; color: var(--muted); font-size: .9rem; padding: .2rem 0; }
.ny-more-filters > .ny-filters { margin-top: .5rem; }
.dn-sample { margin: 0 0 1rem; padding-left: 1.1rem; }

/* Személyi kölcsön adatbekérő (ügyféloldal): a választók ugyanolyan nagyok, mint a szövegmezők */
.szk-adatlap select { width: 100%; padding: .55rem .75rem; border: 1px solid var(--line-2); border-radius: 8px;
  background: #fff; font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); }

/* Partner QR-jelentkezés */
.join-card { max-width: 560px; margin-inline: auto; }
.join-form { display: flex; flex-direction: column; gap: .45rem; margin-top: 1rem; }
.join-form label { font-weight: 600; font-size: .92rem; margin-top: .35rem; }
.join-form input[type=text], .join-form input[type=email], .join-form input[type=tel], .join-form select {
  font: inherit; font-size: 16px; padding: .65rem .75rem; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; width: 100%; }
.join-form label.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; font-size: .88rem; margin-top: .6rem; }
.join-form button { margin-top: .8rem; padding: .8rem 1.25rem; font-size: 1rem; }
.join-perks { margin: 1rem 0 0; padding-left: 1.1rem; display: grid; gap: .3rem; }
.qr-code-card { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.qr-img { flex: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.qr-info { flex: 1 1 280px; min-width: 0; }
.qr-info h2 { margin: 0 0 .2rem; }
.qr-url code { font-size: .8rem; overflow-wrap: anywhere; }
.qr-info .buttons { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.join-why { list-style: none; padding: 0; margin: 1rem 0 .4rem; gap: .55rem; }
.join-why li { padding: .6rem .75rem; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: .93rem; }
.join-why li strong { display: block; }
.join-sub { font-size: 1.05rem; margin: 1.2rem 0 0; }

/* Tudástár */
.kb-confid { background: var(--warn-bg); color: var(--ink); border-radius: 10px; padding: .6rem .8rem; font-size: .9rem; margin: .6rem 0 0; }
.kb-confid b { color: var(--warn); }
.kb-form textarea { width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid var(--line-2); border-radius: 10px; resize: vertical; }
.kb-examples, .kb-banks { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0; }
.chip-btn { font: inherit; font-size: .85rem; padding: .3rem .7rem; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); cursor: pointer; text-align: left; }
.chip-btn:hover { border-color: var(--accent); }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.kb-answer { margin-top: 1rem; border-left: 4px solid var(--ok); background: var(--ok-bg); border-radius: 10px; padding: .9rem 1rem; }
.kb-answer.uncertain { border-left-color: var(--warn); background: var(--warn-bg); }
.kb-answer h3 { margin: .8rem 0 .3rem; font-size: .95rem; }
.kb-answer ul { margin: 0; padding-left: 1.2rem; }
.kb-answer-text { white-space: pre-line; line-height: 1.55; }
.kb-q-echo { font-style: italic; color: var(--muted); margin: 0 0 .5rem; }
.kb-refs { margin: .8rem 0 0; }
#kb-search { width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid var(--line-2); border-radius: 10px; }
.kb-toc { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .88rem; margin-top: .4rem; }
.kb-toc a { color: var(--ink-2); }
.kb-points { list-style: none; margin: 0; padding: 0; }
.kb-point { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.kb-point:first-child { border-top: 0; }
.kb-point p { margin: 0; line-height: 1.5; }
.kb-point:target { background: #fff7e6; border-radius: 8px; }
.kb-bank { font-family: var(--mono); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: .2rem; }
.kb-point.bank-r .kb-bank { color: var(--accent); }
.kb-src { font-size: .8rem; color: var(--muted); margin-top: .2rem !important; }
.kb-flag { display: inline-block; font-size: .74rem; font-weight: 600; padding: .05rem .5rem; border-radius: 99px; vertical-align: 1px; background: #eef0f3; color: var(--ink-2); }
.kb-flag.fontos { background: var(--accent-soft); color: var(--accent-hover); }
.kb-flag.eltero { background: var(--err-bg); color: var(--err); }
.kb-flag.nyitott, .kb-flag.banki { background: var(--warn-bg); color: var(--warn); }
p.kb-flag { display: block; border-radius: 8px; padding: .3rem .6rem; margin: 0 0 .5rem; }
.kb-sources { padding-left: 1.1rem; line-height: 1.6; }
.kb-hidden { display: none !important; }
@media (max-width: 600px) { .kb-point { grid-template-columns: 1fr; gap: .2rem; } }

/* Forrás-mix riport */
.mix-filter { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: flex-end; margin-top: .6rem; }
.mix-filter label { display: grid; gap: .2rem; font-size: .85rem; }
.mix-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.mix-kpis div { display: grid; gap: .15rem; }
.mix-kpis strong { font-size: 1.5rem; }
.mix-table td.num { white-space: nowrap; }
.mix-kpis { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.mix-table { font-size: .9rem; }
.mix-table th, .mix-table td { padding-left: .5rem; padding-right: .5rem; }
.mix-table tbody th { white-space: nowrap; }
.mix-table thead th { letter-spacing: 0; }
.mix-warn { background: var(--warn-bg); font-size: .9rem; }
.mix-warn p { margin: .2rem 0; }
@media (min-width: 900px) { .mix-kpis { grid-template-columns: 1.4fr repeat(4, 1fr); } }

/* Szerződések online aláírása */
.contract-text { max-width: 760px; line-height: 1.55; }
.contract-text h2 { font-size: 1.35rem; margin: 0 0 .8rem; }
.contract-text h3 { font-size: 1.02rem; margin: 1.3rem 0 .5rem; }
.contract-text table { font-size: .88rem; }
.contract-text td, .contract-text th { vertical-align: top; }
.contract-sign form { display: grid; gap: .45rem; max-width: 520px; }
.contract-sign form.inline { display: inline; }
.contract-issue { display: grid; gap: .4rem; max-width: 720px; margin-top: .8rem; }
.contract-banner { display: flex; gap: .8rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
