/* Szabadfi Csevegés – Discord-szerű elrendezés. Témák: sötét (alap), világos, éjfekete; kiemelőszín: --c-accent. */
:root, [data-theme="dark"] {
  /* 0.9.4 (hub 1.12.0): a hub meleg sötét palettája (bg #141211, kártya #1f1c1b, vonal #36302d, szöveg #f1ecea, bordó #1a7f55) */
  --c-rail: #0f0d0d; --c-side: #171413; --c-main: #1f1c1b; --c-input: #2a2523; --c-hover: rgba(255, 240, 230, .05); --c-active: rgba(255, 240, 230, .09);
  --c-text: #e6dfdb; --c-strong: #f1ecea; --c-muted: #b5ada8; --c-faint: #8a817c; --c-line: #36302d; --c-elev: #0f0d0d; --c-card: #171413;
  --c-accent: #1a7f55; --c-accent-soft: rgba(26, 127, 85, .22); --c-mention-bg: rgba(240, 178, 50, .1); --c-mention-bar: #f0b232; --c-link: #f08c80; --c-code: #171413;
  --c-ok: #23a55a; --c-busy: #f23f43; --c-field: #f0b232; --c-away: #b5bac1; --c-call: #8b5cf6;
  --c-font: 15px; --c-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
[data-theme="black"] { --c-rail: #000; --c-side: #0b0a0a; --c-main: #000; --c-input: #181514; --c-card: #0f0d0d; --c-line: #2a2523; --c-elev: #050505; --c-code: #0f0d0d; }
[data-theme="light"] {
  /* a hub világos palettája (bg #f5f3f1, kártya #fff, vonal #e4dfdb, szöveg #1d1b1a, bordó #006039) */
  --c-rail: #e9e5e1; --c-side: #f5f3f1; --c-main: #fff; --c-input: #efebe8; --c-hover: rgba(29, 27, 26, .05); --c-active: rgba(29, 27, 26, .09);
  --c-text: #1d1b1a; --c-strong: #000; --c-muted: #6b6560; --c-faint: #8f8883; --c-line: #e4dfdb; --c-elev: #fff; --c-card: #fff;
  --c-accent: #006039; --c-accent-soft: rgba(0, 96, 57, .12); --c-mention-bg: rgba(240, 178, 50, .14); --c-link: #006039; --c-code: #f5f3f1; --c-shadow: 0 8px 24px rgba(0, 0, 0, .14);
  color-scheme: light;
}
/* automatikus (nincs data-theme: belépés, widget, a chat-téma betöltése előtt): a rendszer szerint */
@media (prefers-color-scheme: light) { :root:not([data-theme]) {
  /* a hub világos palettája (bg #f5f3f1, kártya #fff, vonal #e4dfdb, szöveg #1d1b1a, bordó #006039) */
  --c-rail: #e9e5e1; --c-side: #f5f3f1; --c-main: #fff; --c-input: #efebe8; --c-hover: rgba(29, 27, 26, .05); --c-active: rgba(29, 27, 26, .09);
  --c-text: #1d1b1a; --c-strong: #000; --c-muted: #6b6560; --c-faint: #8f8883; --c-line: #e4dfdb; --c-elev: #fff; --c-card: #fff;
  --c-accent: #006039; --c-accent-soft: rgba(0, 96, 57, .12); --c-mention-bg: rgba(240, 178, 50, .14); --c-link: #006039; --c-code: #f5f3f1; --c-shadow: 0 8px 24px rgba(0, 0, 0, .14);
  color-scheme: light;
} }
/* a meglévő hívásmodul (app.css) változói ehhez a témához – (0,2,0) erősség, hogy az app.css data-theme szabályait is felülírja */
:root:not(.cx-none) { --bg: var(--c-main); --panel: var(--c-side); --text: var(--c-text); --muted: var(--c-muted); --line: var(--c-line); --brand: var(--c-accent); --brand-2: var(--c-accent); --accent: var(--c-accent); }
html, body { height: 100%; }
body { background: var(--c-main); color: var(--c-text); font-size: var(--c-font); overflow: hidden; }
.app-root { height: 100%; display: flex; flex-direction: column; }
.chat-root { flex: 1; min-height: 0; }
.cx-loading { height: 100%; display: grid; place-items: center; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: var(--c-text); background: var(--c-input); border: 1px solid transparent; border-radius: 8px; padding: 8px 10px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--c-accent); outline-offset: -1px; }
input.full, select.full { width: 100%; }
input[type="checkbox"], input[type="radio"] { padding: 0; width: auto; background: none; accent-color: var(--c-accent); }
a { color: var(--c-link); }
.muted { color: var(--c-muted); }
.small { font-size: .87em; }
.ok-text { color: var(--c-ok); }
.ico { fill: currentColor; flex: none; display: block; }
.ib { display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--c-muted); width: 32px; height: 32px; border-radius: 6px; cursor: pointer; flex: none; padding: 0; }
.ib:hover { color: var(--c-strong); background: var(--c-hover); }
.ib.on { color: var(--c-strong); }
.ib:disabled { opacity: .35; cursor: default; }
.btn { background: var(--c-input); border-color: transparent; color: var(--c-text); border-radius: 6px; }
.btn.primary { background: var(--c-accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.1); background: var(--c-accent); }
.btn.danger { background: transparent; border-color: var(--c-busy); color: var(--c-busy); }
.btn:disabled { opacity: .5; cursor: default; }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--c-busy); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; line-height: 1; }
.only-mobile { display: none !important; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--c-line); border-top-color: var(--c-accent); animation: cxspin .8s linear infinite; margin: 24px auto; }
.spinner.small { width: 18px; height: 18px; border-width: 2px; margin: 8px auto; }
@keyframes cxspin { to { transform: rotate(360deg); } }
html[data-conn="bad"] .cx-main::before { content: "Nincs kapcsolat – újracsatlakozás…"; position: absolute; top: 48px; left: 50%; transform: translateX(-50%); z-index: 5; background: var(--c-busy); color: #fff; font-size: 13px; padding: 4px 12px; border-radius: 0 0 8px 8px; }

/* ---------- elrendezés ---------- */
.cx { display: grid; grid-template-columns: auto 1fr auto; height: 100%; }
.cx-nav { display: flex; min-height: 0; height: 100%; }
.cx-main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; background: var(--c-main); }

/* csapatsáv */
.cx-rail { width: 72px; background: var(--c-rail); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; overflow-y: auto; scrollbar-width: none; }
.cx-rail hr { width: 32px; border: 0; border-top: 2px solid var(--c-line); margin: 0; }
.rail-item { position: relative; border: 0; background: none; padding: 0; cursor: pointer; width: 72px; display: grid; place-items: center; }
.rail-ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--c-main); color: var(--c-text); font-weight: 700; font-size: 18px; transition: border-radius .15s, background .15s; overflow: hidden; }
.rail-ico.team { color: #fff; }
.rail-ico.sm { width: 28px; height: 28px; font-size: 12px; }
.rail-item:hover .rail-ico, .rail-item.active .rail-ico { border-radius: 16px; }
.rail-item.home .rail-ico { color: var(--c-text); }
.rail-item.home.active .rail-ico, .rail-item.home:hover .rail-ico { background: var(--c-accent); color: #fff; }
.rail-item.add .rail-ico { color: var(--c-ok); }
.rail-item.add:hover .rail-ico { background: var(--c-ok); color: #fff; }
.rail-item .pill { position: absolute; left: 0; width: 4px; height: 0; border-radius: 0 4px 4px 0; background: var(--c-strong); transition: height .15s; }
.rail-item.unread .pill { height: 8px; }
.rail-item:hover .pill { height: 20px; }
.rail-item.active .pill { height: 40px; }
.rail-item .badge { position: absolute; right: 10px; bottom: -2px; border: 3px solid var(--c-rail); height: 22px; border-radius: 11px; }

/* csatornalista */
.cx-side { width: 240px; background: var(--c-side); display: flex; flex-direction: column; min-height: 0; }
.sb-head { height: 48px; flex: none; display: flex; align-items: center; border-bottom: 1px solid var(--c-elev); box-shadow: 0 1px 0 rgba(0, 0, 0, .1); }
.sb-title { flex: 1; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 16px; border: 0; background: none; cursor: pointer; font-weight: 700; color: var(--c-strong); min-width: 0; }
.sb-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-title:hover { background: var(--c-hover); }
.sb-title.static { cursor: default; }
.sb-title.static:hover { background: none; }
.sb-scroll { flex: 1; overflow-y: auto; padding: 8px 8px 16px; scrollbar-width: thin; }
.sb-empty { color: var(--c-muted); font-size: 13px; padding: 8px; }
.cat { margin-top: 12px; }
.cat-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 4px 0; color: var(--c-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.cat-head > button:first-child { display: flex; align-items: center; gap: 2px; border: 0; background: none; color: inherit; font: inherit; text-transform: inherit; cursor: pointer; padding: 0; }
.cat-head > span { padding-left: 8px; }
.cat-head > button:first-child:hover { color: var(--c-strong); }
.cat-head .ib { width: 22px; height: 22px; }
.caret { display: inline-block; transition: transform .15s; }
.caret.closed { transform: rotate(-90deg); }
.ch-row { position: relative; display: flex; align-items: center; border-radius: 6px; margin: 1px 0; color: var(--c-muted); }
.ch-row:hover { background: var(--c-hover); color: var(--c-text); }
.ch-row.active { background: var(--c-active); color: var(--c-strong); }
.ch-row.unread { color: var(--c-strong); }
.ch-row.unread .ch-name { font-weight: 700; }
.ch-row.unread:not(.active)::before { content: ""; position: absolute; left: -8px; width: 4px; height: 8px; border-radius: 0 4px 4px 0; background: var(--c-strong); }
.ch-row.muted { opacity: .55; }
.ch-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; border: 0; background: none; color: inherit; padding: 6px 8px; cursor: pointer; text-align: left; }
.ch-main:disabled { cursor: default; }
.ch-ico { color: var(--c-faint); flex: none; display: grid; }
.ch-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-more { width: 26px; height: 26px; opacity: 0; margin-right: 4px; }
.ch-row:hover .ch-more, .ch-row.active .ch-more, .ch-more:focus-visible { opacity: 1; }
.nav-row { width: 100%; border: 0; background: none; gap: 10px; padding: 9px 8px; cursor: pointer; text-align: left; margin-bottom: 6px; }
.ch-row.dm .ch-main { padding: 5px 8px; gap: 10px; }
.dm-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dm-sub { font-size: 12px; color: var(--c-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-when { font-size: 11px; color: var(--c-faint); }

/* saját panel */
.sb-user { flex: none; display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: var(--c-card); min-height: 52px; padding-bottom: max(6px, env(safe-area-inset-bottom)); }
.sb-user .me { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px; border-radius: 6px; cursor: pointer; text-align: left; }
.sb-user .me:hover { background: var(--c-hover); }
.me-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.me-text b { color: var(--c-strong); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-text span { font-size: 12px; color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* profilkép + státusz */
.avatar { position: relative; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 600; flex: none; user-select: none; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.sdot { position: absolute; right: -2px; bottom: -2px; width: 34%; height: 34%; min-width: 10px; min-height: 10px; border-radius: 50%; border: 3px solid var(--c-side); background: var(--c-faint); box-sizing: content-box; }
.sdot.inline { position: static; display: inline-block; width: 10px; height: 10px; min-width: 0; min-height: 0; border: 0; margin-right: 6px; vertical-align: middle; }
.sdot.online { background: var(--c-ok); }
.sdot.busy { background: var(--c-busy); }
.sdot.field { background: var(--c-field); }
.sdot.away { background: var(--c-away); }
.sdot.incall { background: var(--c-call); }
.sdot.offline { background: transparent; box-shadow: inset 0 0 0 3px var(--c-faint); }
.sdot.bot { display: none; }
.cx-main .sdot, .ch-head .sdot { border-color: var(--c-main); }
.cx-members .sdot { border-color: var(--c-side); }
.sb-user .sdot { border-color: var(--c-card); }

/* ---------- csatorna ---------- */
.ch-head { height: 48px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--c-elev); box-shadow: 0 1px 0 rgba(0, 0, 0, .1); min-width: 0; }
.ch-title { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.ch-title b { color: var(--c-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-title .topic { color: var(--c-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 1px solid var(--c-line); padding-left: 10px; }
.ch-actions { display: flex; gap: 2px; }
.msgs { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0 0 8px; position: relative; overscroll-behavior: contain; scrollbar-width: thin; }
.msgs.loading { display: grid; place-items: center; }
.welcome { padding: 32px 16px 8px; }
.welcome .w-ico { width: 68px; height: 68px; border-radius: 50%; background: var(--c-input); display: grid; place-items: center; margin-bottom: 8px; color: var(--c-strong); }
.welcome h2 { color: var(--c-strong); font-size: 26px; text-transform: none; letter-spacing: 0; margin: 4px 0; }
.welcome p { color: var(--c-muted); margin: 0; }
.older { min-height: 40px; }
.day { display: flex; align-items: center; margin: 16px 16px 8px; color: var(--c-muted); font-size: 12px; font-weight: 600; }
.day::before, .day::after { content: ""; flex: 1; border-top: 1px solid var(--c-line); }
.day span { padding: 0 8px; }
.new-divider { display: flex; align-items: center; margin: 8px 16px 4px; color: var(--c-busy); font-size: 12px; font-weight: 700; }
.new-divider::before { content: ""; flex: 1; border-top: 1px solid var(--c-busy); }
.new-divider span { padding-left: 6px; }

.msg { position: relative; padding: 2px 48px 2px 0; margin-top: 0; }
.msg.head { margin-top: 16px; }
[data-density="compact"] .msg.head { margin-top: 6px; }
.msg:hover { background: rgba(0, 0, 0, .06); }
[data-theme="light"] .msg:hover { background: rgba(6, 6, 7, .03); }
.msg.mentioned { background: var(--c-mention-bg); box-shadow: inset 2px 0 0 var(--c-mention-bar); }
.msg.flash { animation: cxflash 1.6s ease-out; }
@keyframes cxflash { 0%, 40% { background: var(--c-accent-soft); } }
.msg-row { display: flex; }
.gutter { width: 72px; flex: none; display: flex; justify-content: center; padding-top: 2px; }
.hover-time { visibility: hidden; font-size: 11px; color: var(--c-faint); line-height: 22px; }
.msg:hover .hover-time { visibility: visible; }
.content { flex: 1; min-width: 0; }
.meta { display: flex; align-items: baseline; gap: 8px; line-height: 22px; }
.author { font-weight: 600; }
.meta time { font-size: 12px; color: var(--c-faint); }
.tag { font-size: 10px; font-weight: 700; background: var(--c-accent); color: #fff; border-radius: 3px; padding: 0 4px; }
.body { line-height: 1.375; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; color: var(--c-text); }
.body.jumbo { font-size: 44px; line-height: 1.2; }
.body.action { font-style: italic; color: var(--c-muted); }
.body.deleted { font-style: italic; color: var(--c-faint); }
.body code { background: var(--c-code); border-radius: 4px; padding: 1px 4px; font-size: .88em; font-family: ui-monospace, Consolas, monospace; }
.body pre { background: var(--c-code); border: 1px solid var(--c-line); border-radius: 6px; padding: 8px; margin: 4px 0; overflow-x: auto; white-space: pre; }
.body pre code { background: none; padding: 0; }
.edited { font-size: 11px; color: var(--c-faint); }
.mention { background: var(--c-accent-soft); color: var(--c-strong); border-radius: 3px; padding: 0 2px; font-weight: 500; }
.mention.self { background: rgba(250, 168, 26, .3); color: var(--c-strong); }
.reply-ref { display: flex; align-items: center; gap: 6px; margin-left: 36px; padding-left: 36px; position: relative; font-size: 13px; color: var(--c-muted); cursor: pointer; min-width: 0; }
.reply-ref::before { content: ""; position: absolute; left: 0; top: 50%; width: 30px; height: 10px; border-left: 2px solid var(--c-line); border-top: 2px solid var(--c-line); border-top-left-radius: 6px; }
.reply-ref span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply-ref:hover span { color: var(--c-strong); }
.reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.react { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 7px; border-radius: 8px; border: 1px solid transparent; background: var(--c-input); cursor: pointer; color: var(--c-muted); }
.react b { font-size: 13px; }
.react.mine { background: var(--c-accent-soft); border-color: var(--c-accent); color: var(--c-strong); }
.react.add { opacity: 0; }
.msg:hover .react.add { opacity: 1; }
.msg-tools { position: absolute; right: 12px; top: -14px; display: none; background: var(--c-main); border: 1px solid var(--c-line); border-radius: 8px; box-shadow: var(--c-shadow); padding: 2px; z-index: 2; }
.msg:hover .msg-tools { display: flex; }
.msg.pending .body { color: var(--c-faint); }
.msg.failed .body { color: var(--c-busy); }
.pend-act { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; color: var(--c-busy); flex-wrap: wrap; }
.jump { position: sticky; bottom: 8px; left: 100%; margin-right: 16px; float: right; display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--c-accent); color: #fff; border-radius: 16px; padding: 6px 12px; font-weight: 600; cursor: pointer; box-shadow: var(--c-shadow); z-index: 3; }
[data-density="compact"] .gutter { width: 56px; }
[data-density="compact"] .msg.head .gutter .avatar { width: 28px !important; height: 28px !important; font-size: 12px !important; }

/* szövegmező */
.composer-wrap { flex: none; padding: 0 16px; position: relative; padding-bottom: max(0px, env(safe-area-inset-bottom)); }
.composer { display: flex; align-items: flex-end; gap: 4px; background: var(--c-input); border-radius: 8px; padding: 4px 6px 4px 14px; }
.composer.editing { box-shadow: 0 0 0 2px var(--c-accent); }
.composer textarea { flex: 1; resize: none; border: 0; background: none; outline: none; padding: 9px 0; max-height: 40vh; line-height: 1.375; min-height: 22px; }
.composer textarea:focus { outline: none; }
.composer .send.ready { color: var(--c-accent); }
.composer.ro { margin: 0 16px 16px; color: var(--c-muted); padding: 12px 14px; display: flex; gap: 8px; align-items: center; }
.composer-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--c-card); border-radius: 8px 8px 0 0; padding: 4px 4px 4px 14px; font-size: 13px; color: var(--c-muted); }
.composer-bar span { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.composer-bar + .composer { border-radius: 0 0 8px 8px; }
.typing { height: 24px; font-size: 12px; color: var(--c-muted); display: flex; align-items: center; gap: 6px; }
.dots { display: inline-flex; gap: 2px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--c-muted); animation: cxdot 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes cxdot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.ac { position: absolute; left: 16px; right: 16px; bottom: calc(100% - 4px); background: var(--c-card); border-radius: 8px; box-shadow: var(--c-shadow); padding: 6px; z-index: 6; max-height: 320px; overflow-y: auto; }
.ac button { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 6px 8px; border-radius: 4px; cursor: pointer; text-align: left; }
.ac button.sel { background: var(--c-active); }
.ac button span { color: var(--c-muted); font-size: 13px; }
.ac-at { width: 22px; text-align: center; color: var(--c-muted); font-weight: 700; }

/* emoji-választó, menü */
.cx-emoji { position: fixed; z-index: 60; background: var(--c-card); border-radius: 8px; box-shadow: var(--c-shadow); overflow-y: auto; padding: 8px; border: 1px solid var(--c-line); }
.ep-title { font-size: 11px; font-weight: 700; color: var(--c-muted); text-transform: uppercase; margin: 6px 4px 4px; }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); }
.ep-grid button { border: 0; background: none; font-size: 22px; height: 38px; border-radius: 6px; cursor: pointer; }
.ep-grid button:hover { background: var(--c-hover); }
.cx-menu { position: fixed; z-index: 60; min-width: 200px; width: 230px; background: var(--c-elev); border-radius: 6px; box-shadow: var(--c-shadow); padding: 6px; overflow-y: auto; }
[data-theme="light"] .cx-menu { border: 1px solid var(--c-line); }
.cx-menu button { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 7px 8px; border-radius: 3px; cursor: pointer; text-align: left; color: var(--c-text); font-size: 14px; }
.cx-menu button:hover { background: var(--c-accent); color: #fff; }
.cx-menu button.danger { color: var(--c-busy); }
.cx-menu button.danger:hover { background: var(--c-busy); color: #fff; }
.cx-menu button.on { font-weight: 600; }
.cx-menu hr { border: 0; border-top: 1px solid var(--c-line); margin: 4px; }
.cx-menu .mh { font-size: 11px; font-weight: 700; color: var(--c-muted); text-transform: uppercase; padding: 6px 8px 2px; }
.mi-pad { width: 18px; text-align: center; }

/* tagok */
.cx-members { width: 240px; background: var(--c-side); display: none; flex-direction: column; min-height: 0; }
.cx-members.open { display: flex; }
.mem-scroll { flex: 1; overflow-y: auto; padding: 8px; }
.cx-members h4 { font-size: 12px; text-transform: uppercase; color: var(--c-muted); margin: 16px 8px 4px; }
.mem { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 6px 8px; border-radius: 6px; cursor: pointer; text-align: left; }
.mem:hover { background: var(--c-hover); }
.mem.off { opacity: .45; }
.mem-text { min-width: 0; display: flex; flex-direction: column; }
.mem-text b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mem-text span { font-size: 12px; color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mem-head { height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 16px; border-bottom: 1px solid var(--c-elev); }

/* profilkártya, ablakok */
.cx-modal-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .6); display: grid; place-items: center; padding: 16px;
  grid-template-columns: minmax(0, 1fr); } /* különben a rács oszlopa a 760 px-es ablakhoz nő, és a max-width: 100% telefonon nem fog */
.pcard { width: 320px; max-width: 100%; background: var(--c-card); border-radius: 10px; overflow: hidden; box-shadow: var(--c-shadow); }
.pc-banner { height: 60px; background: var(--c-accent); }
.pc-av { margin: -40px 0 0 16px; }
.pc-av .avatar { box-shadow: 0 0 0 6px var(--c-card); }
.pc-av .sdot { border-color: var(--c-card); }
.pc-body { padding: 8px 16px 16px; }
.pc-body h3 { margin: 4px 0 0; color: var(--c-strong); }
.pc-user { color: var(--c-muted); font-size: 14px; }
.pc-user .role { color: var(--c-accent); font-weight: 600; }
.pc-status { margin: 10px 0; font-size: 14px; }
.pc-actions { display: flex; gap: 8px; }
.pc-actions .btn.primary { flex: 1; }
.cx-modal { width: 460px; max-width: 100%; max-height: calc(100% - 32px); display: flex; flex-direction: column; background: var(--c-main); border-radius: 10px; box-shadow: var(--c-shadow); overflow: hidden; }
.cx-modal.wide { width: 760px; height: min(640px, calc(100% - 32px)); }
.cx-modal header { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 8px 20px; }
.cx-modal h3 { margin: 0; color: var(--c-strong); font-size: 19px; }
.cx-modal-body { padding: 4px 20px 16px; overflow-y: auto; flex: 1; min-height: 0; }
.cx-modal footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 16px; background: var(--c-side); }
.cx-modal footer .muted { margin-right: auto; font-size: 13px; }
.split { display: flex; gap: 16px; height: 100%; min-height: 0; }
.split-body { flex: 1; min-width: 0; overflow-y: auto; }
.tabs-v { display: flex; flex-direction: column; gap: 2px; width: 170px; flex: none; }
.tabs-v button { border: 0; background: none; text-align: left; padding: 7px 10px; border-radius: 4px; cursor: pointer; color: var(--c-muted); }
.tabs-v button:hover { background: var(--c-hover); color: var(--c-text); }
.tabs-v button.on { background: var(--c-active); color: var(--c-strong); }
.fld { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; }
.fl { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--c-muted); }
.fh { font-size: 12px; color: var(--c-faint); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; margin-top: 12px; }
.row input { flex: 1; min-width: 160px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--c-input); padding: 3px; border-radius: 8px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; color: var(--c-muted); }
.seg button.on { background: var(--c-main); color: var(--c-strong); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.sw.on { box-shadow: 0 0 0 2px var(--c-main), 0 0 0 4px var(--c-strong); }
.sw.custom { position: relative; overflow: hidden; background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red); }
.sw.custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.check { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; cursor: pointer; }
.prof-top { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.prof-top h3 { margin: 0; color: var(--c-strong); }
.prof-top .row { margin-top: 8px; }
.order { list-style: none; padding: 0; margin: 0 0 12px; }
.order li, .members-admin li { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px solid var(--c-line); }
.order li b, .members-admin li b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.members-admin { list-style: none; padding: 0; margin: 0 0 12px; }
.chip { font-size: 11px; background: var(--c-input); color: var(--c-muted); border-radius: 10px; padding: 1px 8px; }
.team-preview { display: grid; place-items: center; margin-bottom: 12px; }
.team-preview .rail-ico { width: 64px; height: 64px; font-size: 24px; border-radius: 20px; }
.picker .pick-list { max-height: 300px; overflow-y: auto; margin-top: 8px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 6px; cursor: pointer; }
.pick:hover { background: var(--c-hover); }
.pick b { font-weight: 500; }
.empty-state { margin: auto; text-align: center; color: var(--c-muted); padding: 24px; }
.empty-state h2 { color: var(--c-strong); text-transform: none; letter-spacing: 0; font-size: 20px; }
.big-ico { display: grid; place-items: center; color: var(--c-faint); }
.cx-main.empty { display: flex; }
.back-abs { position: absolute; left: 8px; top: 8px; }

/* hívásnapló-nézet: a meglévő hívásmodul DOM-ja */
.calls-host { flex: 1; overflow-y: auto; padding: 16px; }
.calls-host .tab.calls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.calls-host .people, .calls-host .call-log { background: var(--c-side); border-radius: 10px; padding: 12px; }
.calls-host input[type="search"] { width: 100%; }
.calls-host h2 { color: var(--c-muted); }
.toast { z-index: 80; }
.call { z-index: 70; }
.banner { z-index: 20; }

/* ---------- telefon ---------- */
@media (max-width: 760px) {
  .only-mobile { display: inline-grid !important; }
  header.only-mobile { display: flex !important; }
  .cx { display: block; position: relative; overflow: hidden; }
  .cx-nav, .cx-main { position: absolute; inset: 0; transition: transform .2s ease; }
  .cx-nav .cx-side { flex: 1; width: auto; }
  .cx.pane-nav .cx-main { transform: translateX(100%); }
  .cx.pane-chat .cx-nav { transform: translateX(-30%); visibility: hidden; transition: transform .2s ease, visibility 0s .2s; }
  .cx-members { position: absolute; inset: 0 0 0 auto; width: min(320px, 86vw); z-index: 30; box-shadow: var(--c-shadow); transform: translateX(105%); transition: transform .2s ease; display: flex; }
  .cx-members.open { transform: none; }
  .msg { padding-right: 8px; }
  .gutter { width: 60px; }
  .msg-tools { display: none !important; }
  .msg { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; } /* hosszú nyomás = menü (benne: Szöveg másolása) */
  .react.add { opacity: 1; }
  .ch-more { opacity: 1; }
  .composer-wrap { padding: 0 8px; padding-bottom: max(4px, env(safe-area-inset-bottom)); }
  .ch-title .topic { display: none; }
  .cx-modal.wide { height: calc(100% - 16px); }
  .split { flex-direction: column; }
  .tabs-v { flex-direction: row; width: auto; overflow-x: auto; flex: none; }
  .tabs-v button { white-space: nowrap; }
  .calls-host .tab.calls { grid-template-columns: 1fr; }
  .cx-modal-bg { padding: 8px; }
}
@media (pointer: coarse) {
  .ch-main { padding: 9px 8px; }
  .ib { width: 40px; height: 40px; }
}

/* ---------- csevegés-sáv („ismerőssáv”) a hub jobb szélén + ablakok a sáv mellett, alul ---------- */
html.dock-mode, html.dock-mode body { background: transparent !important; overflow: hidden; }
html.dock-mode .app-root, html.dock-mode .chat-root { height: 100%; }
.dk { position: fixed; inset: 0; }
.dk-wins { position: absolute; right: calc(var(--bar) + 10px); bottom: 0; display: flex; align-items: flex-end; gap: 10px; }
.bar { position: absolute; top: 0; right: 0; bottom: 0; width: var(--bar); background: var(--c-side); border-left: 1px solid var(--c-line); display: flex; flex-direction: column; }
.bar-head { height: 48px; flex: none; display: flex; align-items: center; gap: 2px; padding: 0 6px 0 14px; border-bottom: 1px solid var(--c-elev); }
.bar.narrow .bar-head { flex-direction: column; height: auto; padding: 8px 0; gap: 6px; }
.bar-head b { flex: 1; color: var(--c-strong); }
.bar-tog { display: grid; transform: rotate(90deg); }
.bar-tog.w { transform: rotate(-90deg); }
.bar-search { padding: 8px 10px 4px; }
.bar-search input { width: 100%; padding: 6px 10px; }
.bar-scroll { flex: 1; overflow-y: auto; padding: 6px 6px 12px; scrollbar-width: thin; }
.bar h4 { font-size: 11.5px; text-transform: uppercase; color: var(--c-muted); margin: 10px 8px 4px; font-weight: 700; }
.bar hr { border: 0; border-top: 1px solid var(--c-line); margin: 8px 6px; }
.bar-row { position: relative; display: flex; align-items: center; border-radius: 8px; margin: 1px 0; }
.bar-row:hover { background: var(--c-hover); }
.bar-row.open { background: var(--c-active); }
.bar-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 6px 8px; cursor: pointer; text-align: left; color: var(--c-text); border-radius: 8px; width: 100%; }
.bar.narrow .bar-main { justify-content: center; padding: 6px 0; }
.bar-main.off { opacity: .5; }
.bar-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.bar-text b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-strong); }
.bar-row.unread .bar-text b { font-weight: 700; }
.bar-text small { font-size: 11.5px; color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-main .badge { flex: none; }
.bar.narrow .bar-main .badge { position: absolute; top: 2px; right: 6px; }
.bar-x { width: 22px; height: 22px; opacity: 0; margin-right: 4px; }
.bar-row:hover .bar-x { opacity: 1; }
.bar .sdot { border-color: var(--c-side); }
.dk-team { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 20px; }
.dk-team.sm { width: 28px; height: 28px; font-size: 14px; flex: none; }
.dk-win { position: relative; width: 328px; height: 455px; display: flex; flex-direction: column; background: var(--c-main); border-radius: 10px 10px 8px 8px; box-shadow: 0 6px 28px rgba(0, 0, 0, .45); overflow: hidden; border: 1px solid var(--c-line); }
.dk-win.drag { outline: 2px dashed var(--c-accent); outline-offset: -4px; }
/* magától felugrott ablak új üzenettel (0.12.0): a fejléc villog, amíg bele nem kattintanak */
.dk-win.fresh { box-shadow: 0 0 0 2px var(--c-accent), 0 6px 28px rgba(0, 0, 0, .45); }
.dk-win.fresh .dk-bar { animation: dk-fresh 1s ease-in-out infinite alternate; }
@keyframes dk-fresh { from { background: var(--c-side); } to { background: color-mix(in srgb, var(--c-accent) 35%, var(--c-side)); } }
@media (prefers-reduced-motion: reduce) { .dk-win.fresh .dk-bar { animation: none; background: color-mix(in srgb, var(--c-accent) 25%, var(--c-side)); } }
.dk-bar { height: 48px; flex: none; display: flex; align-items: center; gap: 0; padding: 0 4px 0 6px; border-bottom: 1px solid var(--c-elev); background: var(--c-side); }
.dk-bar .ib { width: 28px; height: 28px; }
.dk-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px; border-radius: 6px; cursor: pointer; text-align: left; color: inherit; }
.dk-title:hover { background: var(--c-hover); }
.dk-title.static { cursor: default; padding-left: 10px; }
.dk-title.static:hover { background: none; }
.dk-t { min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.dk-t b { color: var(--c-strong); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-t small { color: var(--c-muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-win .msgs .gutter { width: 52px; }
.dk-win .msg { padding-right: 8px; }
.dk-win .msg.head .gutter .avatar { width: 32px !important; height: 32px !important; font-size: 13px !important; }
.dk-win .welcome { padding: 16px 12px 4px; }
.dk-win .welcome h2 { font-size: 18px; }
.dk-win .welcome .w-ico { width: 48px; height: 48px; }
.dk-win .composer-wrap { padding: 0 8px; }
.dk-win .msg-tools { right: 6px; }
.dk-win .ac { left: 8px; right: 8px; }
.dk-to { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--c-line); color: var(--c-muted); }
.dk-to input { flex: 1; background: transparent; padding: 6px; }
.dk-list { flex: 1; overflow-y: auto; padding: 6px; }
.dk-pick { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 6px 8px; border-radius: 6px; cursor: pointer; text-align: left; color: var(--c-text); }
.dk-pick:hover { background: var(--c-hover); }
.dk-pick .muted { margin-left: auto; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40%; }
.drop-hint { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; background: rgba(0, 0, 0, .55); pointer-events: none; }
.drop-hint > div { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; text-align: center; padding: 16px; border: 2px dashed rgba(255, 255, 255, .6); border-radius: 12px; }
.drop-hint span { font-size: 13px; opacity: .85; }
html.dock-mode .toast { left: auto; right: 0; bottom: 0; transform: none; width: var(--bar, 248px); max-width: none; border-radius: 0; } /* a sávon belül (a kattintható területen) */
/* átlátszó keret: a beágyazott dokumentum színsémája egyezzen a hubéval (különben a böngésző átlátszatlanul festi) */
html.dock-mode { color-scheme: normal !important; }

/* ---------- csatolmányok ---------- */
.cx-main.drag { outline: 2px dashed var(--c-accent); outline-offset: -6px; }
.composer .plus { color: var(--c-muted); margin-left: -8px; }
.att-tray { background: var(--c-card); border-radius: 8px 8px 0 0; padding: 8px 10px 6px; display: flex; flex-direction: column; gap: 6px; }
.att-tray + .composer, .att-tray + .composer-bar { border-radius: 0 0 8px 8px; }
.att-items { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.att-item { position: relative; flex: none; width: 150px; display: grid; grid-template-columns: 40px 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 8px; background: var(--c-input); border-radius: 8px; padding: 6px; overflow: hidden; }
.att-item img, .att-ico { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 6px; object-fit: cover; display: grid; place-items: center; font-size: 24px; }
.att-item .ib { grid-row: 1 / 3; grid-column: 3; width: 24px; height: 24px; }
.att-name { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-strong); }
.att-meta { font-size: 11px; color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-item.error .att-meta { color: var(--c-busy); }
.att-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--c-accent); transition: width .2s; }
.att-edit { font-size: 12.5px; color: var(--c-text); display: flex; align-items: center; gap: 6px; }
.atts { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; max-width: 520px; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px; }
.img-grid.one { grid-template-columns: minmax(0, 360px); }
.img-cell { border: 0; padding: 0; background: var(--c-input); border-radius: 8px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1; max-height: 360px; }
.img-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-acts { font-size: 12px; color: var(--c-muted); }
.link { border: 0; background: none; padding: 0; color: var(--c-link); cursor: pointer; font: inherit; font-size: inherit; text-decoration: none; }
.file-card { display: flex; align-items: center; gap: 10px; background: var(--c-card); border: 1px solid var(--c-line); border-radius: 8px; padding: 8px 6px 8px 10px; cursor: grab; }
.fc-ico { font-size: 28px; }
.fc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fc-name { color: var(--c-link); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.fc-name:hover { text-decoration: underline; }
.fc-meta { font-size: 12px; color: var(--c-muted); }
.fc-act { display: flex; }
.fc-act a.ib { text-decoration: none; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .88); display: grid; grid-template-rows: auto 1fr; }
.lightbox header { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: #fff; }
.lightbox header b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox header .ib { color: #ddd; }
.lightbox img { max-width: calc(100% - 32px); max-height: calc(100% - 24px); margin: auto; object-fit: contain; }
.lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #ccc; font-size: 13px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 8px; }
.crumbs button { border: 0; background: var(--c-input); border-radius: 6px; padding: 3px 8px; cursor: pointer; font-size: 13px; }
.crumbs button:not(:last-child)::after { content: " ›"; color: var(--c-muted); }
.browse { max-height: 50vh; overflow-y: auto; }
.br-row { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 7px 8px; border-radius: 6px; cursor: pointer; text-align: left; }
.br-row:hover { background: var(--c-hover); }
.br-row.sel { background: var(--c-active); }
.br-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-ico { font-size: 20px; }
.br-row input { pointer-events: none; }

/* ---------- szavazás ---------- */
.poll { background: var(--c-card); border: 1px solid var(--c-line); border-radius: 10px; padding: 10px 12px; max-width: 440px; margin-top: 2px; }
.poll-q { display: flex; align-items: center; gap: 8px; color: var(--c-strong); }
.poll-meta { font-size: 12px; color: var(--c-muted); margin: 2px 0 8px; }
.poll-opt { position: relative; width: 100%; display: flex; align-items: center; gap: 8px; border: 1px solid var(--c-line); background: var(--c-main); border-radius: 8px; padding: 7px 10px; margin: 4px 0; cursor: pointer; overflow: hidden; text-align: left; }
.poll-opt i { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--c-accent) 22%, transparent); transition: width .3s; }
.poll-opt > *:not(i) { position: relative; }
.poll-opt.chosen { border-color: var(--c-accent); }
.poll-opt.picked { border-style: dashed; border-color: var(--c-accent); }
.poll-opt.closed { cursor: default; }
.po-text { flex: 1; }
.po-check { color: var(--c-accent); width: 18px; }
.poll-act { display: flex; gap: 6px; margin-top: 6px; }

/* ---------- keresés, gyorsváltó ---------- */
.cx-search { width: 340px; background: var(--c-side); display: flex; flex-direction: column; min-height: 0; }
.srch-in { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.srch-in input:not([type="checkbox"]) { width: 100%; }
.srch-res { flex: 1; overflow-y: auto; padding: 0 8px 12px; }
.srch-hit { width: 100%; text-align: left; border: 0; background: var(--c-main); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.srch-hit:hover { background: var(--c-input); }
.sh-top { display: flex; justify-content: space-between; font-size: 12px; }
.sh-who { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.sh-body { font-size: 13.5px; color: var(--c-text); max-height: 4.2em; overflow: hidden; white-space: pre-wrap; }
.check.small { font-size: 12.5px; margin: 0; }
.pick-list.qs { max-height: 50vh; overflow-y: auto; margin-top: 8px; }
.dk-pick.sel { background: var(--c-active); }
.dk-pick .badge { margin-left: 6px; }
@media (max-width: 760px) {
  .cx-search { position: absolute; inset: 0; width: auto; z-index: 30; }
  .att-item { width: 130px; }
}
.file-card.folder .fc-name { text-align: left; font-size: inherit; }
.br-row .br-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; color: inherit; }
/* levélkártya (a Levelezésből behúzva) */
.mailcard { background: var(--c-card); border: 1px solid var(--c-line); border-left: 3px solid var(--c-link); border-radius: 8px; padding: 8px 12px; max-width: 560px; margin-top: 2px; }
.mc-subj { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--c-strong); }
.mc-meta { font-size: 12.5px; color: var(--c-muted); margin: 2px 0 6px; display: flex; flex-direction: column; }
.mc-text { white-space: pre-wrap; font-size: 14px; color: var(--c-text); overflow-wrap: anywhere; }
.mc-text.clip { max-height: 9.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.mc-more { margin-top: 4px; font-size: 13px; }
.mc-skip { font-size: 12px; color: var(--c-busy); margin-top: 4px; }
.mc-act { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.mv { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mv > * { flex: none; }
.mv-head { font-size: 13.5px; display: flex; flex-direction: column; gap: 2px; color: var(--c-text); }
.mv-head b { color: var(--c-muted); font-weight: 600; }
.mv-remote { margin-top: 4px; font-size: 12.5px; color: var(--c-muted); }
.mv-box { overflow-x: auto; overflow-y: hidden; border: 1px solid var(--c-line); border-radius: 8px; background: #fff; min-width: 0; max-width: 100%; }
.mv-frame { display: block; width: 100%; height: 320px; border: 0; background: #fff; }
.mv-zoom { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.mv-zoom .btn { padding: 3px 9px; }
.mv-att { font-size: 13px; }

/* ---------- csatorna-lapok ---------- */
.ctabs { flex: none; display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--c-line); overflow-x: auto; scrollbar-width: none; background: var(--c-main); }
.ctab { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 9px 12px 8px; cursor: pointer; color: var(--c-muted); border-bottom: 2px solid transparent; font-weight: 500; white-space: nowrap; }
.ctab:hover { color: var(--c-text); }
.ctab.on { color: var(--c-strong); border-bottom-color: var(--c-accent); }
.ctab.add { padding: 6px 8px; }
.tab-body { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.files-tab { overflow-y: auto; padding: 12px 16px; }
.ft-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ft-head input { flex: 1; max-width: 420px; }
.ft-row { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.ft-who { font-size: 12px; color: var(--c-muted); padding-left: 2px; }
.embed-tab .et-bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 13px; border-bottom: 1px solid var(--c-line); }
.grow { flex: 1; }
.et-frame { flex: 1; width: 100%; border: 0; background: #fff; }
.et-out, .doc-card { margin: auto; text-align: center; max-width: 440px; padding: 24px; }
.doc-card .dc-ico { font-size: 48px; }
.doc-card .row { justify-content: center; }
.tab-del { position: absolute; right: 12px; bottom: 10px; z-index: 2; opacity: .75; }
.doc-tab { padding: 0; }
.office-host { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.office-box { flex: 1; min-height: 0; }
.office-box > div, .office-box iframe { width: 100%; height: 100%; border: 0; }
.office-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--c-muted); }
.office-layer { position: fixed; inset: 0; z-index: 85; background: var(--c-main); display: flex; flex-direction: column; }
.office-layer header { flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-bottom: 1px solid var(--c-line); }
/* húzás a hubon át (a Levelezésből): a célpont kiemelése */
/* a jel a saját háttér FÖLÉ kerül (a háttérszín cseréje átlátszóvá tette a dokk-ablakot – a keret alatt a hub látszott) */
.hub-drop { outline: 3px dashed var(--c-link) !important; outline-offset: -3px; background-image: linear-gradient(color-mix(in srgb, var(--c-link) 10%, transparent), color-mix(in srgb, var(--c-link) 10%, transparent)) !important; }
.confirm-p { margin: 0 0 8px; overflow-wrap: anywhere; }

/* ---------- megbeszélések (0.10.0) ---------- */
.meet-card { display: flex; align-items: center; gap: 12px; max-width: 520px; margin-top: 4px; padding: 12px 14px; border: 1px solid var(--c-line); border-left: 4px solid var(--c-accent); border-radius: 10px; background: var(--c-card); }
.meet-ico { color: var(--c-accent); display: grid; place-items: center; }
.meet-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.meet-main b { color: var(--c-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meet-main .muted { font-size: 13px; }
.meet-act { display: flex; gap: 6px; flex: none; }
.meet-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--c-line); }
.meet-row:last-child { border-bottom: 0; }
.meet-h { margin: 14px 0 4px; font-size: 14px; color: var(--c-strong); }
.meet-h:first-child { margin-top: 0; }
.meet-link { display: flex; gap: 8px; align-items: center; margin: 6px 0 10px; }
.meet-link code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--c-input); padding: 7px 9px; border-radius: 8px; font-size: 13px; }
.meet-when { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.meet-when input { flex: 1; min-width: 180px; }
.meet-pick .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.meet-pick .chips:empty { display: none; }
.meet-pick .chip { display: inline-flex; align-items: center; gap: 4px; background: var(--c-accent-soft); color: var(--c-strong); border-radius: 999px; padding: 2px 4px 2px 10px; font-size: 13px; }
.meet-pick .chip button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 16px; line-height: 1; padding: 0 4px; }
.meet-pick .pick-list { display: flex; flex-direction: column; margin-top: 4px; border: 1px solid var(--c-line); border-radius: 8px; overflow: hidden; }
.meet-pick .pick-row { border: 0; background: var(--c-card); color: var(--c-text); text-align: left; padding: 8px 10px; cursor: pointer; font: inherit; }
.meet-pick .pick-row:hover, .meet-pick .pick-row.on { background: var(--c-hover); }
.meet-toast { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 12px; max-width: min(440px, calc(100vw - 32px)); padding: 12px 14px; background: var(--c-card); color: var(--c-text); border: 1px solid var(--c-line); border-left: 4px solid var(--c-accent); border-radius: 12px; box-shadow: var(--c-shadow); }
.meet-toast > .ico { color: var(--c-accent); flex: none; }
/* 0.11.0: megbeszélés-beszélgetés */
.avatar.group.meet { background: var(--c-accent); color: #fff; }
.meet-head { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; }
.meet-head .btn { display: inline-flex; align-items: center; gap: 4px; }
.meet-docs { max-width: 210px; font-size: 12px; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--c-line); background: var(--c-input); color: var(--c-text); }
@media (max-width: 760px) { .meet-docs { max-width: 120px; } }
