/* Botlétrehozás – az Ügynök oldal és a Beszélgetések stílusa.
   docs/plans/bot-letrehozas-2-3-felulet-2026-11-25.md, 2.2–2.4. Gazda: B (6.1). A bot-setup.css után tölt, így a régi
   Ügynök-szabályokat (.agent-tabs, .bs-chat-dialog…) itt felülírja; a kiváltott régi szabályokat a C törli a
   bot-setup.css-ből (vagy az összefésüléskor). Minden szín a tokens.css-ből (világos és sötét téma); a kártya 16 px, a mező
   10 px sarkú (bot-ui.css --bu-*). Telefonon (≤ 760 px) egy hasáb, a koppintható elem legalább 44 px. */

/* ── Az oldal kerete ────────────────────────────────────── */
.ag { gap: 0; max-width: 1040px; }
.ag-head { margin-bottom: var(--space-4); }
.ag-head h1 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: var(--weight-bold); letter-spacing: -.015em; color: var(--color-text); }
.ag-head h1:focus { outline: none; }
.ag-link { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 32px; padding: 0 var(--space-1); border: 0; border-radius: var(--radius-sm);
  background: none; color: var(--color-accent-text); font: inherit; font-size: var(--text-sm); font-weight: var(--weight-semibold); cursor: pointer; }
.ag-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ag-link:focus-visible, .ag-icon-btn:focus-visible, .agent-back-link:focus-visible, .ag-look-tab:focus-visible { outline: none; box-shadow: var(--bu-ring); }
.ag-link-quiet { color: var(--color-text-muted); font-weight: var(--weight-medium); }
.ag-soft { background: var(--color-accent-soft); color: var(--color-accent-text); border-color: transparent; }
.ag-soft:hover { background: var(--color-accent-line); }
.ag-muted { color: var(--color-text-muted); }
.ag-icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--radius-md); background: none;
  color: var(--color-text-muted); cursor: pointer; }
.ag-icon-btn:hover { background: var(--color-surface-soft); color: var(--color-text); }
.ag-icon-btn svg { width: 16px; height: 16px; }

/* ── Fülek (Áttekintés · Beszélgetések) és a Csatornák visszalinkje ── */
.agent-tabs { display: flex; gap: var(--space-6); width: auto; max-width: 100%; margin: 0 0 var(--space-6); padding: 0; border: 0; border-bottom: 1px solid var(--color-border);
  border-radius: 0; background: none; overflow-x: auto; scrollbar-width: none; }
.agent-tab { display: inline-flex; align-items: center; gap: var(--space-2); flex: none; min-height: var(--control-height); padding: 0 2px; margin-bottom: -1px;
  border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--color-text-muted); font: inherit; font-size: var(--text-md);
  font-weight: var(--weight-semibold); cursor: pointer; }
.agent-tab:hover { color: var(--color-text); }
.agent-tab[aria-current="page"] { background: none; color: var(--color-text); border-bottom-color: var(--color-accent); }
.agent-tab:focus-visible { outline: none; box-shadow: var(--bu-ring); border-radius: var(--radius-sm); }
.agent-back { margin: 0 0 var(--space-2); }
.agent-back-link { display: inline-flex; align-items: center; gap: 2px; min-height: var(--control-height); margin-left: -6px; padding: 0 var(--space-2) 0 2px; border: 0;
  border-radius: var(--radius-sm); background: none; color: var(--color-text-muted); font: inherit; font-size: var(--text-sm); font-weight: var(--weight-semibold); cursor: pointer; }
.agent-back-link:hover { color: var(--color-text); }
.agent-back-link svg { width: 18px; height: 18px; }
#reach-agent-tabs:empty, #convo-agent-tabs:empty { display: none; }

/* ── Élesítés előtt: egy kártya ─────────────────────────── */
.ag-start { width: 100%; max-width: 620px; margin: var(--space-2) auto 0; padding: 28px; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--bu-radius-card); }
.ag-start h2 { margin: 0; font-size: 22px; line-height: 1.25; font-weight: var(--weight-bold); letter-spacing: -.01em; color: var(--color-text); }
.ag-start-lead { margin: 6px 0 0; color: var(--color-text-muted); }
.ag-steps { display: grid; margin: 22px 0 24px; padding: 0; list-style: none; }
.ag-step { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; min-height: 52px; padding: 6px 0;
  border-top: 1px solid var(--color-border); }
.ag-step:first-child { border-top: 0; }
.ag-step-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--radius-full); border: 1.5px solid var(--color-border-strong);
  color: var(--color-text-muted); font-size: 13px; font-weight: var(--weight-semibold); }
.ag-step-n svg { width: 14px; height: 14px; }
.ag-step-type .ag-step-n { border-style: dashed; }
.ag-step.is-done .ag-step-n { background: var(--color-accent); border: 1.5px solid var(--color-accent); color: var(--color-on-accent); }
.ag-step.is-done .ag-step-n svg { stroke-width: 2.6; }
.ag-step.is-current .ag-step-n { border-color: var(--color-accent); color: var(--color-accent-text); }
.ag-step-name { min-width: 0; font-weight: var(--weight-semibold); color: var(--color-text); overflow-wrap: anywhere; }
.ag-step-sub { display: block; font-size: 13.5px; font-weight: var(--weight-regular); color: var(--color-text-muted); }
.ag-step-state { font-size: 13px; color: var(--color-text-muted); }
.ag-step.is-current .ag-step-state { color: var(--color-accent-text); font-weight: var(--weight-semibold); }
.ag-start-go { width: 100%; min-height: 48px; font-size: var(--text-md); justify-content: center; }
.ag-start-foot { margin: var(--space-3) 0 0; text-align: center; font-size: 13px; color: var(--color-text-muted); }
.ag-start-discard { margin: var(--space-2) 0 0; text-align: center; }
.ag-start-discard .ag-link { color: var(--color-text-muted); font-weight: var(--weight-medium); }

/* ── Élesítés után: állapotsor ─────────────────────────── */
.ag-banner { display: flex; align-items: flex-start; gap: var(--space-2); margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-4); border: 1px solid var(--color-success-border);
  border-radius: var(--bu-radius-field); background: var(--color-success-bg); color: var(--color-text-body); }
.ag-banner > svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--color-success-text); }
.ag-banner p { margin: 0; }
.ag-banner strong { color: var(--color-text); }
.ag-banner strong:focus { outline: none; }
.ag-live { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px 12px 20px; border: 1px solid var(--color-border);
  border-radius: var(--bu-radius-card); background: var(--color-surface); }
.ag-dot { flex: none; width: 10px; height: 10px; border-radius: var(--radius-full); background: var(--color-success-line); box-shadow: 0 0 0 4px var(--color-success-bg); }
.ag-live[data-live="pending"] .ag-dot { background: var(--color-attention-line); box-shadow: 0 0 0 4px var(--color-attention-bg); }
.ag-live-t { display: grid; margin: 0; font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--color-text); }
.ag-live-sub { font-size: 13px; font-weight: var(--weight-regular); color: var(--color-text-muted); }
.ag-weblink { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--color-text-muted); }
.ag-weblink:empty { display: none; }
.ag-weblink > svg { flex: none; width: 16px; height: 16px; }
.ag-weblink code { min-width: 0; padding: 2px 6px; border-radius: var(--radius-xs); background: var(--color-surface-soft); color: var(--color-text-body);
  font-family: var(--font-mono); font-size: 13.5px; overflow-wrap: anywhere; }
.ag-grow { flex: 1; }
.ag-live .btn svg { width: 16px; height: 16px; }
.ag-live-feedback { flex-basis: 100%; margin: 0; font-size: var(--text-sm); color: var(--color-danger-text); }
.ag-live-feedback:empty { display: none; }
.ag-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); margin: var(--space-3) 0 0; padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-info-border); border-radius: var(--bu-radius-field); background: var(--color-info-bg); color: var(--color-text-body); font-size: var(--text-sm); }
.ag-note p { margin: 0; flex: 1 1 240px; }

/* ── Három szerkesztőkártya ────────────────────────────── */
.ag-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--bu-gap); margin-top: var(--space-6); }
.ag-cards.has-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ag-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 18px 18px 16px; border: 1px solid var(--color-border);
  border-radius: var(--bu-radius-card); background: var(--color-surface); }
.ag-card-top { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; }
.ag-card-ic { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: var(--radius-md); background: var(--color-surface-soft); color: var(--color-text-body); }
.ag-card-ic svg { width: 17px; height: 17px; }
.ag-card-t { margin: 0; min-width: 0; font-size: 15.5px; line-height: 1.3; font-weight: var(--weight-semibold); color: var(--color-text); }
.ag-card-s { margin: 0 0 var(--space-2); font-size: var(--text-sm); line-height: 1.4; color: var(--color-text-muted); overflow-wrap: anywhere; }
.ag-card-edit { margin-top: auto; }
.ag-card-edit svg { width: 15px; height: 15px; }
.ag-flag { display: inline-flex; align-items: center; gap: 4px; flex: none; margin-left: auto; padding: 2px 8px; border-radius: var(--radius-full);
  background: var(--color-attention-bg); color: var(--color-attention-text); border: 1px solid var(--color-attention-border); font-size: 12.5px; font-weight: var(--weight-semibold); }
.ag-flag svg { width: 13px; height: 13px; }

/* ── Csatornák és az üzenetek megjelenése ──────────────── */
.ag-sec { margin-top: 28px; }
.ag-sec-t { margin: 0 0 var(--space-2); font-size: 15px; font-weight: var(--weight-semibold); color: var(--color-text-muted); }
.ag-chan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; align-items: start; }
.ag-chans { display: grid; margin: 0; padding: 0; list-style: none; }
.ag-chan { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; gap: var(--space-3); align-items: center; min-height: 52px; border-top: 1px solid var(--color-border); }
.ag-chan:first-child { border-top: 0; }
.ag-chan-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-full); background: var(--color-surface-soft); color: var(--color-text); }
.ag-chan-ic svg { width: 17px; height: 17px; }
.ag-chan-n { min-width: 0; font-weight: var(--weight-semibold); color: var(--color-text); }
.ag-chan-s { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--color-text-muted); white-space: nowrap; }
.ag-chan-s.is-ok { color: var(--color-success-text); font-weight: var(--weight-semibold); }
.ag-chan-s i { width: 7px; height: 7px; border-radius: var(--radius-full); background: var(--color-success-line); }
.ag-chan .btn { min-height: 36px; }
.ag-look { display: grid; gap: 10px; min-width: 0; }
.ag-look-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.ag-look-t { margin: 0; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-text); }
.ag-look-tabs { display: inline-flex; gap: 2px; }
.ag-look-tab { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--radius-md); background: none;
  color: var(--color-text-muted); cursor: pointer; }
.ag-look-tab svg { width: 18px; height: 18px; }
.ag-look-tab:hover { background: var(--color-surface-soft); color: var(--color-text); }
.ag-look-tab[aria-selected="true"] { background: var(--color-accent-soft); color: var(--color-accent-text); }
.ag-look-panel { display: grid; gap: 10px; }
.ag-look-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); min-width: 0; margin: 0; padding: 0; border: 0; }
.ag-pv { position: relative; display: grid; gap: 6px; min-width: 0; padding: 6px 6px 8px; border: 1px solid var(--color-border); border-radius: var(--bu-radius-field);
  background: var(--color-surface); color: var(--color-text); font-size: 13px; font-weight: var(--weight-medium); text-align: center; cursor: pointer; }
.ag-pv input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.ag-pv:hover:not(.is-off) { border-color: var(--color-border-strong); }
.ag-pv:has(input:checked) { border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-soft); color: var(--color-accent-text); font-weight: var(--weight-semibold); }
.ag-pv:has(input:focus-visible) { box-shadow: var(--bu-ring); }
.ag-pv.is-off { cursor: not-allowed; color: var(--color-text-muted); }
.ag-pv.is-off .ag-rz { opacity: .55; }
.ag-rz { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 100%; height: 64px; padding: 9px 12px; border-radius: var(--radius-md); background: var(--color-surface-soft); }
.ag-rz-b { display: block; width: 72%; height: 9px; border-radius: 5px; background: var(--color-border-strong); }
.ag-rz-s { width: 46%; }
.ag-rz-card { display: grid; gap: 3px; padding: 5px; border: 1px solid var(--color-border-strong); border-radius: 6px; background: var(--color-surface); }
.ag-rz-card i { display: block; height: 4px; border-radius: 2px; background: var(--color-border-strong); }
.ag-rz-card i:first-child { width: 60%; background: var(--color-text-muted); }
.ag-rz-p { display: flex; gap: 4px; }
.ag-rz-p i { display: block; width: 22px; height: 8px; border-radius: 4px; background: var(--color-accent-line); }
.ag-look-s { margin: 0; font-size: 13px; line-height: 1.45; color: var(--color-text-muted); }
.ag-look-s b { color: var(--color-text); font-weight: var(--weight-semibold); }
.ag-look-s svg { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
.ag-look-status { margin: 0; font-size: 12.5px; color: var(--color-text-muted); }
.ag-look-status:empty { display: none; }

/* ── Részletek (összecsukva) ───────────────────────────── */
.ag-more { margin-top: 28px; border-top: 1px solid var(--color-border); }
.ag-more > summary { display: flex; align-items: center; gap: var(--space-2); min-height: 52px; list-style: none; cursor: pointer; font-weight: var(--weight-semibold); color: var(--color-text-muted); }
.ag-more > summary::-webkit-details-marker { display: none; }
.ag-more > summary:hover { color: var(--color-text); }
.ag-more > summary:focus-visible { outline: none; box-shadow: var(--bu-ring); border-radius: var(--radius-sm); }
.ag-more > summary svg { width: 18px; height: 18px; transition: transform var(--duration-fast) var(--ease-out); }
.ag-more[open] > summary svg { transform: rotate(90deg); }
.ag-more-body { padding-bottom: var(--space-5); }
.ag-more-t { margin: 0 0 var(--space-1); font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-text); }
.ag-versions { margin: 0; padding: 0; list-style: none; }
.ag-versions li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; min-height: 40px; padding: 4px 0;
  border-top: 1px solid var(--color-border); font-size: var(--text-sm); }
.ag-versions li:first-child { border-top: 0; }
.ag-versions b { color: var(--color-text); font-weight: var(--weight-semibold); }
.ag-versions span { color: var(--color-text-muted); }
.ag-chip { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: var(--radius-full); background: var(--color-neutral-bg); color: var(--color-neutral-text);
  font-size: 12.5px; font-weight: var(--weight-semibold); }
.ag-chip.is-ok { background: var(--color-success-bg); color: var(--color-success-text); }
.ag-fresh { margin: var(--space-4) 0 0; }
.ag-fresh .btn svg { width: 15px; height: 15px; }

@media (max-width: 760px) {
  .ag-head h1 { font-size: var(--text-2xl); }
  .agent-tabs { margin-bottom: var(--space-4); }
  .ag-start { padding: 20px 18px; }
  .ag-start h2 { font-size: 20px; }
  .ag-live { padding: 14px 16px; }
  .ag-grow { display: none; }
  .ag-weblink { flex-basis: 100%; }
  .ag-live .btn { flex: 1; justify-content: center; }
  .ag-icon-btn { width: var(--control-height); height: var(--control-height); }
  .ag-cards, .ag-cards.has-4 { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .ag-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px var(--space-3); padding: 14px 14px 14px 16px; }
  .ag-card-top { grid-column: 1; }
  .ag-card-s { grid-column: 1; margin: 0; }
  .ag-card-edit { grid-column: 2; grid-row: 1 / span 2; margin: 0; min-height: var(--control-height); }
  .ag-card-edit svg { display: none; }
  .ag-chan-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .ag-chan { min-height: 56px; }
  .ag .btn.btn-sm, .ag .btn, .ag-link { min-height: var(--control-height); }
  .ag-look-tab { width: var(--control-height); height: var(--control-height); }
  .ag-versions li { grid-template-columns: auto minmax(0, 1fr); }
  .ag-versions li > :last-child { grid-column: 1 / -1; justify-self: start; }
}

/* ── Beszélgetések (2.4): két hasáb asztalon, telefonon lista → nézet ── */
.cv-wrap { display: grid; grid-template-columns: 340px minmax(0, 1fr); min-height: 560px; height: calc(100dvh - 220px); border: 1px solid var(--color-border);
  border-radius: var(--bu-radius-card); background: var(--color-surface); overflow: hidden; }
.cv-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--color-border); }
.cv-tools { padding: var(--space-3); border-bottom: 1px solid var(--color-border); }
.cv-search { position: relative; display: block; }
.cv-search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--color-text-muted); pointer-events: none; }
.cv-search .input { width: 100%; padding-left: 38px; border-radius: var(--bu-radius-field); }
.cv-wrap #convos-list { flex: 1; min-height: 0; max-height: none; overflow-y: auto; }
.cv-wrap .convo-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: start; width: 100%; padding: 12px 16px; border: 0;
  border-left: 3px solid transparent; border-bottom: 1px solid var(--color-border); border-radius: 0; background: none; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.cv-wrap .convo-row:hover { background: var(--color-surface-soft); }
.cv-wrap .convo-row[aria-current="true"] { background: var(--color-accent-soft); border-left-color: var(--color-accent); }
.cv-wrap .convo-row:focus-visible { outline: none; box-shadow: inset var(--bu-ring); }
.cv-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--color-surface-soft); color: var(--color-text-muted); }
.cv-av svg, .cv-av img { width: 18px; height: 18px; }
.cv-row-main { display: grid; min-width: 0; }
.cv-row-n { font-weight: var(--weight-semibold); color: var(--color-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-row-l { font-size: 13.5px; color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-row-meta { display: grid; justify-items: end; gap: 4px; font-size: 12.5px; color: var(--color-text-muted); white-space: nowrap; }
.cv-row-main .badge { justify-self: start; margin-top: 4px; }
.cv-view { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.cv-head { display: flex; align-items: center; gap: var(--space-3); padding: 12px 16px; border-bottom: 1px solid var(--color-border); }
.cv-head .cv-av { width: 40px; height: 40px; }
.cv-title { flex: 1; min-width: 0; }
.cv-title h2 { margin: 0; font-size: var(--text-md); font-weight: var(--weight-semibold); color: var(--color-text); overflow-wrap: anywhere; }
.cv-title h2:focus { outline: none; }
.cv-title p { margin: 0; font-size: 13px; color: var(--color-text-muted); }
.cv-back { display: none; }
.cv-head .btn svg { width: 16px; height: 16px; }
.cv-view .convo-log { flex: 1; min-height: 0; background: var(--color-surface); padding: 16px 20px; }
.cv-view .convo-guest p { background: var(--color-bubble-in); color: var(--color-bubble-in-text); border-color: transparent; }
.cv-view .convo-bot p { background: var(--color-accent-soft); color: var(--color-text); }
.cv-empty { display: grid; place-items: center; align-content: center; gap: var(--space-2); flex: 1; padding: var(--space-8); text-align: center; color: var(--color-text-muted); }
.cv-empty svg { width: 28px; height: 28px; }
.cv-ticket { padding: var(--space-3) 16px 0; }
.cv-ticket:empty { display: none; }
@media (max-width: 860px) {
  .cv-wrap { display: block; height: auto; min-height: 0; max-height: none; border: 0; border-radius: 0; background: none; overflow: visible; }
  .cv-list, .cv-view { border: 1px solid var(--color-border); border-radius: var(--bu-radius-card); background: var(--color-surface); overflow: hidden; }
  .cv-wrap #convos-list { max-height: none; overflow: visible; }
  .cv-wrap.is-open .cv-list { display: none; }
  .cv-wrap:not(.is-open) .cv-view { display: none; }
  .cv-back { display: inline-grid; place-items: center; width: var(--control-height); height: var(--control-height); margin-left: -8px; padding: 0; border: 0;
    border-radius: var(--radius-md); background: none; color: var(--color-text); cursor: pointer; }
  .cv-back svg { width: 20px; height: 20px; }
  .cv-view .convo-log { padding: 12px; max-height: none; }
  .cv-head .btn { min-height: var(--control-height); }
  /* UI-hibák (2026-11-30): telefonon a fejléc egy sorban (vissza, jel, név, „Kérés”; a név nem szorul ki), és görgetéskor a
     felső sáv alatt marad (--cv-top: a felső sáv magassága, user.js). Az overflow: clip a ragadós fejlécet nem töri meg. */
  .cv-view { overflow: clip; }
  .cv-head { gap: var(--space-2); padding: 10px 12px; position: sticky; top: var(--cv-top, 0px); z-index: 5; background: var(--color-surface); }
  .cv-head :is(.cv-back, .cv-av, .btn) { flex: none; }
  .cv-title { flex: 1 1 0; }
  .cv-title :is(h2, p) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}

/* A Beszélgetések címsora: a tulajdonosnál (fülsorral) csak a képernyőolvasónak szól, a munkatársnál látszik. */
.cv-pagehead { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
#convo-agent-tabs:not(:empty) + .cv-pagehead { display: none; }
/* A tulajdonosnál a Beszélgetések az Ügynök oldal füle: lap nélkül, az Áttekintés kerete szerint (cím, fülek). */
.user-workspace #view-conversations:has(> #convo-agent-tabs:not(:empty)) { margin: 0; padding: var(--space-4); background: none; border: 0; border-radius: 0; }
.user-workspace #view-conversations > #convo-agent-tabs { max-width: 1240px; margin: 0 auto; }
#view-conversations:has(> #convo-agent-tabs:not(:empty)) > .cv-wrap { max-width: 1240px; margin: 0 auto; }
/* UI-hibák (2026-11-30): asztalon a kártya kitölti a képernyő magasságát (a fülsor alatt; korábban 900 px-nél megállt). */
@media (min-width: 1001px) { #view-conversations:has(> #convo-agent-tabs:not(:empty)) > .cv-wrap { height: calc(100dvh - 166px); } }
#convo-agent-tabs .ag-head h1:focus { outline: none; }
@media (min-width: 761px) { .user-workspace #view-conversations:has(> #convo-agent-tabs:not(:empty)) { padding: var(--space-6); } }

/* A Ma oldal első lépései (9. O2): a fejléc alatt, a napi lap előtt. */
.home-onboarding:not([hidden]) { margin-top: var(--space-6); }
.home-onboarding .onboarding-checklist { margin-bottom: 0; }
.home-onboarding .onboarding-fold { margin-bottom: 0; }
.home-onboarding:not([hidden]) + * { margin-top: var(--space-6); }
