/* Geomega 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ó #c63a30) */
  --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: #c63a30; --c-accent-soft: rgba(198, 58, 48, .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ó #9e0000) */
  --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: #9e0000; --c-accent-soft: rgba(158, 0, 0, .12); --c-mention-bg: rgba(240, 178, 50, .14); --c-link: #9e0000; --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ó #9e0000) */
  --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: #9e0000; --c-accent-soft: rgba(158, 0, 0, .12); --c-mention-bg: rgba(240, 178, 50, .14); --c-link: #9e0000; --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 – 0.16.0 óta nincs a felületen; a .rail-ico osztályt a szerver-ikonok (sáv, sorrend, előnézet) használják */
.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: 272px; 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); }

/* 0.16.0: egy sáv – szakaszok (Privát, Csoportok, Szerverek) és lenyitható szerverek */
.sb-head .sb-add { margin-right: 8px; flex: none; }
.side-sec { margin-top: 10px; }
.side-sec + .side-sec { border-top: 1px solid var(--c-line); padding-top: 8px; }
.side-head { padding-left: 4px; }
.srv-block { margin: 2px 0; }
.srv-row { position: relative; display: flex; align-items: center; border-radius: 6px; color: var(--c-text); }
.srv-row:hover { background: var(--c-hover); }
.srv-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; border: 0; background: none; color: inherit; font: inherit; padding: 5px 6px 5px 2px; cursor: pointer; text-align: left; }
.srv-row .caret { color: var(--c-faint); flex: none; }
.srv-ico.rail-ico { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; flex: none; }
.srv-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.srv-row.unread .srv-name { color: var(--c-strong); font-weight: 700; }
.srv-row.unread::before { content: ""; position: absolute; left: -8px; width: 4px; height: 8px; border-radius: 0 4px 4px 0; background: var(--c-strong); }
.srv-row:hover .ch-more { opacity: 1; }
.srv-block > .ch-row, .srv-channels { margin-left: 18px; }
.srv-channels .cat { margin-top: 4px; }
.srv-channels .cat:first-child { margin-top: 0; }

/* 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; }
/* 0.16.0: a kép kitölti a kerek helyét (eddig 72 px fix méret – a felugró ablak 48 px-es helyéből kilógott, rá a névre) */
.welcome .w-ico > .avatar { width: 100% !important; height: 100% !important; font-size: 26px !important; }
.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; min-width: 0; 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 .welcome .w-ico > .avatar { font-size: 18px !important; }
.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; } }

/* ---------- 0.15.0: közös felület-készlet (geomega-ui, Web Awesome) – a téma a csevegés változóiból (sötét/világos/éjfekete a data-theme szerint) ---------- */
:root { --gu-surface: var(--c-main); --gu-bg: var(--c-side); --gu-text: var(--c-text); --gu-muted: var(--c-muted); --gu-line: var(--c-line); --gu-brand: var(--c-accent); --gu-accent: var(--c-accent); --gu-radius: 10px; }

/* 0.19.0: offline – sáv a csevegés fölött (a közös .gu-offline állapotjelzővel), függő („küldésre vár”) üzenet, még nem tárolt beszélgetés */
.offline-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 4px 12px; min-height: 30px; font-size: 13px;
  background: var(--c-elev); color: var(--c-text); border-bottom: 1px solid var(--c-line); }
.offline-strip[hidden], html.dock-mode .offline-strip { display: none; }
.offline-strip .os-note { color: var(--c-muted); }
.msg.pending.queued time { color: var(--c-accent); }
.msgs.offline-empty { display: grid; place-items: center; padding: 24px; text-align: center; }

/* ---------- 0.20.0: az Android app új, natív felülete (html.native-shell – SPEC-uj-felulet 4. „Csevegés”, 10.4) ----------
   A natív keret rajzolja az app-sávot (fülek: Beszélgetések · Hívások · Megbeszélések / csatorna-lapok; műveletek: Hívás, Videó, „⋯”), a „+” gombot és a keresőt;
   itt a saját felső vezérlők rejtve, a célok ≥ 44 px (kesztyűs: ≥ 56 px), az ablakok és menük telefonon alsó lapok. Más környezetben semmi nem változik. */
html.native-shell .sb-head { display: none; }
html.native-shell .ch-head .only-mobile, html.native-shell .back-abs, html.native-shell .ctabs { display: none !important; }
/* a csatorna-fejléc csak olvasható cím marad (elmerülő módban a natív sáv rejtve van); a vezérlők a natív sávban vannak */
html.native-shell .ch-head { height: auto; min-height: 48px; padding-left: 16px; }
html.native-shell .ch-head .ib { display: none; }
html.native-shell .ch-head .ch-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
html.native-shell .ch-head .ch-actions:empty { display: none; }
html.native-shell .meet-head .btn.small { min-height: 44px; }
html.native-shell .meet-docs { min-height: 44px; }
/* a lista fülei (telefon): a Hívások / Megbeszélések sor helyett fül; a saját profil (státusz, beállítások) a lista tetején, hogy a natív „+” gomb ne takarja */
html.native-shell .native-tabview { flex: 1; width: auto; min-width: 0; }
html.native-shell .nt-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 12px calc(16px + var(--gs-fab-space, 0px)); }
html.native-shell .calls-view-n .calls-host { padding: 12px 12px calc(16px + var(--gs-fab-space, 0px)); }
html.native-shell .sb-scroll { padding-bottom: calc(16px + var(--gs-fab-space, 0px)); }
@media (max-width: 760px) {
  html.native-shell .nav-row { display: none; }
  html.native-shell .cx-side { overflow: hidden; }
  html.native-shell .sb-user { order: -1; border-bottom: 1px solid var(--c-line); padding-bottom: 6px; }
  html.native-shell .cx-nav .cx-side { width: 100%; }
  /* szövegmező: a biztonsági sáv / natív alsó sáv fölött (a billentyűzet nyitásakor az ablak magától átméreteződik: interactive-widget=resizes-content) */
  html.native-shell .composer-wrap { padding-bottom: max(6px, env(safe-area-inset-bottom), var(--gs-bottom, 0px)); }
  html.native-shell .composer { align-items: flex-end; }
  html.native-shell .composer textarea { min-height: 44px; padding: 11px 0; font-size: 16px; }
  /* ablakok: alsó lap (a gombok alul, a hüvelykujj alatt) */
  html.native-shell .cx-modal-bg { padding: 0; align-items: end; justify-items: stretch; background: rgba(0, 0, 0, .5); }
  html.native-shell .cx-modal, html.native-shell .cx-modal.wide, html.native-shell .pcard {
    width: 100%; max-width: 100%; height: auto; max-height: min(92dvh, calc(100% - 16px)); border-radius: 16px 16px 0 0; animation: nt-sheet .18s ease-out;
    padding-bottom: env(safe-area-inset-bottom); }
  html.native-shell .cx-modal::before { content: ""; display: block; flex: none; width: 36px; height: 4px; border-radius: 2px; margin: 8px auto 0; background: var(--c-line); }
  html.native-shell .cx-modal footer { flex-wrap: wrap; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  html.native-shell .cx-modal footer .btn { flex: 1 1 120px; min-height: 48px; }
  html.native-shell .cx-modal footer .muted { flex: 1 0 100%; margin-right: 0; }
  html.native-shell .cx-modal input:not([type="checkbox"]):not([type="radio"]), html.native-shell .cx-modal select, html.native-shell .cx-modal textarea { font-size: 16px; min-height: 44px; }
  /* helyi menük: alsó művelet-lap (+ háttér) */
  html.native-shell .cx-menu-scrim { position: fixed; inset: 0; z-index: 59; background: rgba(0, 0, 0, .45); }
  html.native-shell .cx-menu { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; min-width: 0; max-height: min(70dvh, 560px) !important; border-radius: 16px 16px 0 0;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); z-index: 60; animation: nt-sheet .16s ease-out; background: var(--c-card); border-top: 1px solid var(--c-line); }
  html.native-shell .cx-menu button { min-height: 48px; font-size: 16px; padding: 10px 12px; border-radius: 8px; }
  html.native-shell .cx-menu .mh { padding: 10px 12px 4px; font-size: 12px; }
  html.native-shell .cx-emoji { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto !important; height: min(50dvh, 380px) !important; border-radius: 16px 16px 0 0; z-index: 60;
    padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  /* saját alsó lapok: fogó + látható bezáró gomb (lehúzás: a híd, data-gs-sheet) */
  html.native-shell .cx-menu::before, html.native-shell .cx-emoji::before, html.native-shell .pcard::before { content: ""; position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--c-line); }
  html.native-shell .pcard { position: relative; }
  html.native-shell .pcard::before { background: rgba(255, 255, 255, .6); }
  html.native-shell .cx-sheet-x, html.native-shell .cx-menu button.cx-sheet-x { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; margin: 0 0 0 auto; padding: 0; border: 0; border-radius: 50%; background: var(--c-card); color: var(--c-muted); cursor: pointer; }
  html.native-shell .pcard .cx-sheet-x { position: absolute; top: 4px; right: 4px; background: transparent; color: #fff; }
  html.native-shell .ac { left: 8px; right: 8px; }
  html.native-shell .ac button { min-height: 44px; }
}
@keyframes nt-sheet { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html.native-shell .cx-modal, html.native-shell .cx-menu, html.native-shell .pcard { animation: none; } html.native-shell .cx-nav, html.native-shell .cx-main, html.native-shell .cx-members { transition: none !important; } }
/* célméretek: ≥ 44 px (kesztyűs ≥ 56 px) */
html.native-shell .ib, html.native-shell .cat-head .ib, html.native-shell .ch-more, html.native-shell .att-item .ib, html.native-shell .bar-x { width: 44px; height: 44px; }
html.native-shell .ch-more { opacity: 1; }
html.native-shell .btn, html.native-shell .btn.small, html.native-shell .seg button, html.native-shell .link { min-height: 44px; }
html.native-shell .ch-main, html.native-shell .nav-row, html.native-shell .srv-main, html.native-shell .sb-user .me, html.native-shell .pick-row, html.native-shell .srch-hit { min-height: 48px; }
html.native-shell .cat-head > button:first-child { min-height: 44px; padding-right: 12px; }
html.native-shell .react, html.native-shell .react.add { min-height: 44px; min-width: 44px; justify-content: center; }
html.native-shell .meet-row .btn.small { min-width: 44px; }
html.native-shell .chip button { min-width: 44px; min-height: 44px; }
html[data-gs-size="glove"].native-shell .ib, html[data-gs-size="glove"].native-shell .cat-head .ib, html[data-gs-size="glove"].native-shell .ch-more,
html[data-gs-size="glove"].native-shell .att-item .ib { width: 56px; height: 56px; }
html[data-gs-size="glove"].native-shell .btn, html[data-gs-size="glove"].native-shell .btn.small, html[data-gs-size="glove"].native-shell .seg button,
html[data-gs-size="glove"].native-shell .ch-main, html[data-gs-size="glove"].native-shell .srv-main, html[data-gs-size="glove"].native-shell .sb-user .me,
html[data-gs-size="glove"].native-shell .srch-hit, html[data-gs-size="glove"].native-shell .cx-menu button, html[data-gs-size="glove"].native-shell .ac button { min-height: 56px; }
html[data-gs-size="glove"].native-shell .react, html[data-gs-size="glove"].native-shell .react.add { min-height: 56px; min-width: 56px; }
html[data-gs-size="glove"].native-shell .cat-head > button:first-child { min-height: 56px; }
html[data-gs-size="glove"].native-shell .composer textarea { min-height: 56px; padding: 17px 0; }

/* ---------- 0.20.1 app-sáv 2.1 (SPEC-uj-felulet 10.8): a natív lebegő gomb-oszlop (jobb 72 px, balkezesnél bal; az alsó 260 px-en) szabad marad, a --gs-fab-space 152 px.
   Az oszlop a nav:false / immersive (hívás) nézetekben rejtve – ott a szövegmező és a hívás-vezérlők a megszokott helyen maradnak. ---------- */
html.native-shell .toast { left: 16px; right: 88px; transform: none; width: fit-content; max-width: calc(100% - 104px); margin-inline: auto; bottom: calc(var(--gs-fab-space, 152px) + 12px + env(safe-area-inset-bottom)); }
html.native-shell .meet-toast { left: 16px; right: 88px; margin-inline: auto; width: fit-content; max-width: calc(100% - 104px); bottom: calc(var(--gs-fab-space, 152px) + 12px + env(safe-area-inset-bottom)); }
html.native-shell[data-gs-hand="left"] .toast, html.native-shell[data-gs-hand="left"] .meet-toast { left: 88px; right: 16px; }

/* Asszisztens: jóváhagyó kártya (0.21.0) */
.as-card { max-width: 560px; margin-top: 4px; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-panel, var(--c-bg)); }
.as-card.pending { border-color: #b98a1d; background: color-mix(in srgb, #e0a100 12%, var(--c-panel, var(--c-bg))); }
.as-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-weight: 700; }
.as-what { color: var(--c-muted, inherit); font-weight: 600; font-size: 14px; margin-top: 2px; }
.as-state { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, currentColor 12%, transparent); }
.as-state.done { color: #18794e; } .as-state.failed { color: #c62828; }
.as-fields { display: grid; gap: 5px; margin: 8px 0 0; }
.as-fields > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; }
.as-fields > div.long { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.as-fields dt { color: var(--c-muted, inherit); font-size: 13px; }
.as-fields dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.as-fields .long dd { padding: 7px 9px; border: 1px solid var(--c-line); border-radius: 8px; max-height: 280px; overflow-y: auto; }
.as-card:not(.pending) .as-fields { opacity: .78; }
.as-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.as-err { color: #c62828; font-size: 14px; margin-top: 6px; }
html.native-shell .as-btns .btn { flex: 1 1 0; min-height: 52px; }

/* ---------- 0.24.0 diktálás és hangüzenet (chat/voice.js) – a téma változóiból; a felvétel piros jelzője témánként (--c-rec) ---------- */
:root, [data-theme="dark"], [data-theme="black"] { --c-rec: #f2564b; --c-rec-soft: rgba(242, 86, 75, .18); }
[data-theme="light"] { --c-rec: #c62828; --c-rec-soft: rgba(198, 40, 40, .12); }
@media (prefers-color-scheme: light) { :root:not([data-theme]) { --c-rec: #c62828; --c-rec-soft: rgba(198, 40, 40, .12); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vm-player { color-scheme: dark; } }
:root[data-theme="dark"] .vm-player, :root[data-theme="black"] .vm-player { color-scheme: dark; }
/* diktálás: a mikrofon gomb élőben a hangerővel „lélegzik” (--lvl 0..1 a dictate.js onLevel-jéből) */
.composer .mic { position: relative; }
.composer .mic.on { color: #fff; background: var(--c-rec); box-shadow: 0 0 0 calc(2px + var(--lvl, 0) * 8px) var(--c-rec-soft); transition: box-shadow .08s linear; }
.composer .mic.on:hover { color: #fff; background: var(--c-rec); filter: brightness(1.08); }
.composer .mic.busy { animation: vrec-pulse 1s ease-in-out infinite; }
.composer.dictating { box-shadow: 0 0 0 2px var(--c-rec-soft); }
.composer.dictating textarea { cursor: default; }
.composer .send.voice { color: var(--c-accent); }
/* hangüzenet az üzenetlistában */
.vm { max-width: 520px; display: grid; gap: 4px; margin-top: 2px; }
.vm-player { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 999px; background: var(--c-input); border: 1px solid var(--c-line); min-width: 0; flex-wrap: wrap; }
.vm-play { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--c-accent); color: #fff; cursor: pointer; padding: 0; }
.vm-play:hover { filter: brightness(1.1); }
.vm-play:disabled { opacity: .7; cursor: progress; }
.vm-play .spinner.small, .vrec .spinner.small { width: 16px; height: 16px; border-width: 2px; margin: 0; display: inline-block; vertical-align: -3px; }
.vm-track { flex: 1 1 120px; min-width: 80px; height: 6px; border-radius: 3px; background: var(--c-line); cursor: pointer; position: relative; overflow: hidden; }
.vm-track > i { position: absolute; inset: 0 auto 0 0; background: var(--c-accent); border-radius: 3px; }
.vm-time { font-size: 13px; color: var(--c-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vm-rate { flex: none; border: 1px solid var(--c-line); background: var(--c-card); color: var(--c-text); border-radius: 999px; font-size: 12px; font-weight: 600; padding: 2px 8px; cursor: pointer; min-width: 40px; }
.vm-rate:hover { background: var(--c-hover); }
.vm-err { flex-basis: 100%; color: var(--c-rec); font-size: 13px; padding-left: 4px; }
.vm-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.vm-tag { font-size: 12px; color: var(--c-faint); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.vm-tag a { color: var(--c-faint); }
/* felvétel a szövegmező helyén */
.vrec { background: var(--c-input); border-radius: 8px; padding: 8px 10px; display: grid; gap: 8px; }
.composer-bar + .vrec { border-radius: 0 0 8px 8px; }
.vrec-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vrec-row .vm-player { flex: 1; background: var(--c-card); }
.vrec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c-faint); flex: none; }
.vrec-dot.on { background: var(--c-rec); animation: vrec-pulse 1.2s ease-in-out infinite; }
.vrec-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--c-strong); min-width: 44px; }
.vrec-meter { display: inline-flex; align-items: center; gap: 3px; height: 24px; flex: none; }
.vrec-meter i { width: 4px; border-radius: 2px; background: var(--c-rec); height: calc(4px + var(--lvl, 0) * 20px); opacity: .9; transition: height .08s linear; }
.vrec-meter i:nth-child(2n) { height: calc(4px + var(--lvl, 0) * 14px); }
.vrec-meter i:nth-child(3n) { height: calc(4px + var(--lvl, 0) * 9px); }
.vrec-state { flex: 1; min-width: 0; color: var(--c-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vrec-stop { color: #fff; background: var(--c-rec); width: 40px; height: 40px; border-radius: 50%; }
.vrec-stop:hover { color: #fff; background: var(--c-rec); filter: brightness(1.08); }
.vrec-live { font-size: 14px; line-height: 1.4; max-height: 7.2em; overflow-y: auto; color: var(--c-text); padding: 2px 2px 2px 4px; }
.vrec-label { font-size: 12px; color: var(--c-muted); }
.vrec-text { width: 100%; resize: vertical; min-height: 56px; max-height: 30vh; background: var(--c-card); border: 1px solid var(--c-line); line-height: 1.4; }
.vrec-acts { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.vrec-acts .btn { display: inline-flex; align-items: center; gap: 6px; }
@keyframes vrec-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .vrec-dot.on, .composer .mic.busy { animation: none; } }
/* telefonon: nagyobb, kesztyűvel is eltalálható gombok */
@media (max-width: 760px) {
  .vrec-stop { width: 48px; height: 48px; }
  .vm-play { width: 40px; height: 40px; }
  .vrec-acts .btn { flex: 1 1 0; justify-content: center; min-height: 44px; }
}
html.native-shell .vrec-acts .btn { min-height: 52px; }
html.native-shell .vm-rate { min-height: 32px; }
html[data-gs-size="glove"].native-shell .vrec-stop, html[data-gs-size="glove"].native-shell .vm-play { width: 56px; height: 56px; }
