/* AKSON messenger */
.akson-msg-fab {
  position: fixed;
  bottom: 24px;
  right: 190px;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  padding: 10px 18px 10px 16px;
  min-height: 60px;
  background: #fff;
  border: 1px solid rgba(0, 65, 102, 0.2);
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0, 32, 51, 0.12);
  cursor: pointer;
  font: 600 14px/1.2 "Segoe UI", system-ui, sans-serif;
  color: #002d4d;
  user-select: none;
}
.akson-msg-fab:hover { background: #f5fafc; border-color: rgba(0, 112, 186, 0.35); box-shadow: 0 6px 16px rgba(0, 32, 51, 0.18); }
.akson-msg-fab.on {
  border-color: rgba(0, 112, 186, 0.55);
  box-shadow: 0 4px 14px rgba(0, 112, 186, 0.22);
}
.akson-msg-fab.solo { right: 24px; }
.akson-msg-fab.has-unread { border-color: rgba(220, 38, 38, 0.45); }
.akson-msg-fab-badge,
.akson-panel-unread,
.akson-chat-unread {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: #dc2626; color: #fff; font-size: 11px; font-weight: 800; line-height: 1;
}
.akson-msg-fab-badge {
  position: absolute; top: -4px; right: -4px;
  box-shadow: 0 0 0 2px #fff;
}
.akson-panel-unread { margin-left: 6px; vertical-align: middle; font-size: 10px; }
.akson-msg-row.has-unread .akson-msg-name { font-weight: 800; }
.akson-msg-row.is-pinned { background: #f8fbff; }
.akson-msg-row-assistant {
  position: sticky; top: 0; z-index: 2;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(120deg, #e8f4ff 0%, #f3eeff 35%, #e9fff6 70%, #e8f4ff 100%);
  background-size: 300% 100%;
  animation: aksonAssistantBg 6s ease infinite;
  border-bottom: 1px solid rgba(99, 102, 241, 0.28);
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.12), 0 4px 14px rgba(67, 56, 202, 0.08);
}
.akson-msg-row-assistant::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg,
    transparent 0%, transparent 42%,
    rgba(255,255,255,0.0) 46%,
    rgba(255,255,255,0.7) 50%,
    rgba(255,255,255,0.0) 54%,
    transparent 58%, transparent 100%);
  background-size: 220% 100%;
  animation: aksonAssistantGlare 2.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
.akson-msg-row-assistant > * { position: relative; z-index: 2; }
.akson-msg-row-assistant .akson-msg-name {
  background: linear-gradient(90deg, #4338ca, #0369a1, #0d9488);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
.akson-msg-av-assistant {
  background: linear-gradient(135deg, #6366f1, #0ea5e9, #14b8a6);
  color: #fff; font-size: 11px; font-weight: 800;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.65), 0 0 12px rgba(99,102,241,0.35);
}
@keyframes aksonAssistantBg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes aksonAssistantGlare {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}
.akson-pin-ico-inline { font-size: 11px; opacity: 0.75; }
/* Hide only the floating «Помощник» FAB — keep the open panel fully usable */
body.akson-has-assistant-row [class*="_toggle_1l2zz"] {
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
}
body.akson-has-assistant-row [class*="_widget_1l2zz"] {
  /* keep container; panel must remain visible and interactive */
  z-index: 2147483015 !important;
}
.akson-reply-quote { border-left: 3px solid rgba(0,112,186,.45); padding-left: 8px; margin-bottom: 6px; }
.akson-reply-author { display: block; font-size: 11px; font-weight: 700; color: #0369a1; margin-bottom: 2px; }
.akson-chat-win.theme-dark .akson-reply-author { color: #7dd3fc; }
.akson-chat-bubble.mine .akson-reply-quote {
  border-left-color: rgba(255,255,255,.55);
}
.akson-chat-bubble.mine .akson-reply-author {
  color: #e0f2fe;
}
.akson-chat-bubble.mine .akson-reply-body {
  color: rgba(255,255,255,.88);
  opacity: 1;
}
.akson-reply-body {
  display: block; font-size: 11px; opacity: .9;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.akson-reply-meta .akson-reply-author,
.akson-reply-meta .akson-reply-text { display: block; }
.akson-reply-meta .akson-reply-author { font-weight: 700; color: #0369a1; }
.akson-reply-meta .akson-reply-text {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: #002033; font-weight: 600;
}
.akson-msg-fab-ico {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #0070ba, #004077);
  color: #fff; display: grid; place-items: center;
  font-size: 16px; font-weight: 800; flex-shrink: 0;
}
.akson-msg-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: min(380px, calc(100vw - 32px));
  max-height: min(520px, calc(100vh - 120px));
  z-index: 2147483000;
  display: none;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0, 65, 102, 0.15);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 32, 51, 0.15);
  overflow: hidden;
  font-family: "Segoe UI", system-ui, sans-serif;
}
.akson-msg-panel.open { display: flex; }
.akson-msg-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid #e8eef5;
  background: #f7fafc; flex-shrink: 0;
}
.akson-msg-panel-head h3 { margin: 0; font-size: 14px; font-weight: 700; color: #002033; }
.akson-msg-panel-head button {
  border: 0; background: transparent; color: #64748b;
  font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px;
}
.akson-msg-panel-actions { display: flex; align-items: center; gap: 4px; }
.akson-msg-panel-head #aksonNotifyBtn.on { color: #0369a1; }
.akson-msg-panel-head #aksonGroupBtn {
  display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 8px;
}
.akson-msg-panel-head #aksonGroupBtn:hover { background: rgba(0, 112, 186, 0.08); color: #0070ba; }
.akson-msg-av-group {
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  color: #fff;
}
.akson-msg-av.sm { width: 32px; height: 32px; font-size: 11px; }
.akson-msg-row.is-group .akson-msg-name::after {
  content: " · группа"; font-weight: 500; color: #64748b; font-size: 11px;
}
.akson-notify-bar {
  padding: 8px 12px; border-bottom: 1px solid #e8eef5; background: #f8fafc;
  font-size: 12px; line-height: 1.35; color: #475569; flex-shrink: 0;
}
.akson-notify-bar.denied { background: #fffbeb; color: #92400e; }
.akson-notify-bar button {
  width: 100%; border: 1px solid #bae6fd; background: #e0f2fe; color: #0369a1;
  border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 12px;
  font-weight: 700; cursor: pointer;
}
.akson-notify-bar button:hover { background: #bae6fd; }
.akson-msg-list { flex: 1; overflow: auto; min-height: 0; }
.akson-msg-empty, .akson-msg-err {
  padding: 20px 16px; color: #64748b; font-size: 13px; text-align: center;
}
.akson-msg-err { color: #b91c1c; }
.akson-msg-row {
  display: flex; align-items: center; gap: 10px;
  width: 100%; border: 0; background: #fff; text-align: left;
  padding: 10px 12px; cursor: pointer; font: inherit; color: #002033;
  border-bottom: 1px solid #f1f5f9;
}
.akson-msg-row:hover { background: #eef6fb; }
.akson-msg-av {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: #004077; color: #fff; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; overflow: hidden;
}
.akson-msg-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.akson-msg-meta { min-width: 0; flex: 1; }
.akson-msg-name {
  font-size: 13px; font-weight: 700; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.akson-msg-preview {
  font-size: 12px; color: #64748b; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.akson-msg-side {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  min-width: 72px; max-width: 96px;
}
.akson-msg-online {
  width: 10px; height: 10px; border-radius: 50%;
  background: #94a3b8; box-shadow: 0 0 0 2px #fff;
}
.akson-msg-online.on { background: #22c55e; }
.akson-msg-seen {
  font-size: 10px; color: #94a3b8; text-align: right; line-height: 1.2;
}

.akson-chat-win {
  position: fixed;
  width: 360px;
  height: 420px;
  min-width: 280px;
  min-height: 260px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  z-index: 2147483000;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0, 65, 102, 0.18);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 32, 51, 0.2);
  overflow: hidden;
  font-family: "Segoe UI", system-ui, sans-serif;
}
.akson-chat-win.theme-dark {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}
.akson-chat-win.dragging, .akson-chat-win.resizing { opacity: 0.97; }
.akson-chat-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 8px 10px 12px;
  background: #004077; color: #fff;
  cursor: move; user-select: none; flex-shrink: 0;
}
.akson-chat-win.theme-dark .akson-chat-head { background: #020617; }
.akson-chat-head .akson-msg-av {
  width: 32px; height: 32px; font-size: 11px;
  background: rgba(255,255,255,.18);
}
.akson-chat-title {
  flex: 1; min-width: 0;
  font-size: 13px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer; text-decoration: underline transparent;
}
.akson-chat-title:hover { text-decoration-color: rgba(255,255,255,.7); }
.akson-chat-actions { display: flex; gap: 4px; flex-shrink: 0; }
.akson-chat-close, .akson-chat-gear {
  border: 0; background: rgba(255,255,255,.12); color: #fff;
  width: 28px; height: 28px; border-radius: 8px;
  font-size: 15px; line-height: 1; cursor: pointer;
}
.akson-chat-close:hover, .akson-chat-gear:hover { background: rgba(255,255,255,.22); }
.akson-chat-body {
  flex: 1; min-height: 0; overflow: auto;
  padding: 12px; background: #f4f7fa;
  display: flex; flex-direction: column; gap: 8px;
}
.akson-chat-win.theme-dark .akson-chat-body { background: #1e293b; }
.akson-chat-bubble-wrap {
  display: flex; width: 100%; max-width: 100%;
  align-items: flex-end; gap: 8px;
}
.akson-chat-bubble-wrap.mine { justify-content: flex-end; }
.akson-chat-bubble-wrap.theirs { justify-content: flex-start; }
.akson-bubble-av {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: #004077; color: #fff; display: grid; place-items: center;
  font-size: 10px; font-weight: 800; overflow: hidden;
}
.akson-bubble-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.akson-chat-bubble {
  max-width: 82%; padding: 8px 10px; border-radius: 12px;
  font-size: 13px; line-height: 1.35; word-break: break-word;
  white-space: pre-wrap;
}
.akson-chat-bubble-wrap.with-av .akson-chat-bubble { max-width: calc(82% - 36px); }
.akson-chat-bubble.mine {
  background: #0070ba; color: #fff;
  border-bottom-right-radius: 4px;
}
.akson-chat-bubble.theirs {
  background: #fff; color: #002033;
  border: 1px solid #e2e8f0; border-bottom-left-radius: 4px;
}
.akson-chat-win.theme-dark .akson-chat-bubble.theirs {
  background: #334155; color: #e2e8f0; border-color: #475569;
}
.akson-chat-time { display: block; margin-top: 4px; font-size: 10px; opacity: 0.7; }
.akson-msg-ticks {
  display: inline-block; margin-left: 6px; font-size: 11px; letter-spacing: -1px;
  opacity: 0.85; vertical-align: baseline;
}
.akson-msg-ticks.read { color: #7dd3fc; opacity: 1; }
.akson-chat-bubble.mine .akson-msg-ticks:not(.read) { color: rgba(255,255,255,.85); }
.akson-chat-foot {
  display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 10px;
  border-top: 1px solid #e8eef5; background: #fff; flex-shrink: 0;
}
.akson-chat-foot-row {
  display: flex; flex-direction: row; align-items: flex-end; gap: 8px;
}
.akson-chat-attach {
  border: 1px solid #d1d5db; border-radius: 8px; height: 40px; width: 40px;
  background: #f8fafc; color: #475569; cursor: pointer; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1; padding: 0;
}
.akson-chat-attach:hover { background: #eef6fb; border-color: #0070ba; color: #0070ba; }
.akson-chat-win.theme-dark .akson-chat-attach {
  background: #1e293b; border-color: #475569; color: #cbd5e1;
}
.akson-attach-preview {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 8px;
}
.akson-attach-chip {
  display: flex; align-items: center; gap: 6px; max-width: 100%;
  background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 8px;
  padding: 4px 6px; font-size: 11px; color: #334155;
}
.akson-chat-win.theme-dark .akson-attach-chip {
  background: #334155; border-color: #475569; color: #e2e8f0;
}
.akson-attach-chip img {
  width: 36px; height: 36px; object-fit: cover; border-radius: 6px; flex-shrink: 0;
}
.akson-attach-chip .name {
  max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.akson-attach-chip .rm {
  border: 0; background: transparent; color: #94a3b8; cursor: pointer;
  font-size: 14px; line-height: 1; padding: 0 2px;
}
.akson-bubble-atts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.akson-bubble-atts a.file {
  display: inline-flex; align-items: center; gap: 6px;
  color: inherit; text-decoration: underline; font-size: 12px; font-weight: 600;
}
.akson-bubble-atts img.photo {
  display: block; max-width: 100%; max-height: 220px; border-radius: 8px;
  cursor: zoom-in; background: rgba(0,0,0,.04);
}
.akson-lightbox {
  position: fixed; inset: 0; z-index: 2147483040;
  background: rgba(15, 23, 42, 0.82);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; cursor: zoom-out;
}
.akson-lightbox img {
  max-width: min(960px, 100%); max-height: calc(100vh - 48px);
  border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.akson-chat-win.theme-dark .akson-chat-foot {
  background: #0f172a; border-top-color: #334155;
}
.akson-chat-foot-row textarea {
  flex: 1; min-width: 0; height: 40px; min-height: 40px; max-height: 120px;
  box-sizing: border-box; resize: none;
  border: 1px solid #d1d5db; border-radius: 8px;
  padding: 8px 10px; font: inherit; font-size: 13px; line-height: 22px;
  background: #fff; color: #002033;
  margin: 0; vertical-align: bottom;
}
.akson-chat-win.theme-dark .akson-chat-foot-row textarea {
  background: #1e293b; border-color: #475569; color: #e2e8f0;
}
.akson-chat-foot-row textarea:focus { outline: none; border-color: #0070ba; }
.akson-chat-foot-row button {
  border: 0; border-radius: 8px; height: 40px; width: 44px; min-width: 44px;
  padding: 0; box-sizing: border-box;
  background: #0070ba; color: #fff;
  font: 700 14px/40px "Segoe UI", system-ui, sans-serif;
  cursor: pointer; flex-shrink: 0; align-self: flex-end;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0;
}
.akson-chat-foot-row button:hover { background: #005a96; }

.akson-chat-resize {
  position: absolute; z-index: 3;
}
.akson-chat-resize.n { top: 0; left: 8px; right: 8px; height: 6px; cursor: ns-resize; }
.akson-chat-resize.s { bottom: 0; left: 8px; right: 8px; height: 6px; cursor: ns-resize; }
.akson-chat-resize.e { top: 8px; right: 0; bottom: 8px; width: 6px; cursor: ew-resize; }
.akson-chat-resize.w { top: 8px; left: 0; bottom: 8px; width: 6px; cursor: ew-resize; }
.akson-chat-resize.ne { top: 0; right: 0; width: 12px; height: 12px; cursor: nesw-resize; }
.akson-chat-resize.nw { top: 0; left: 0; width: 12px; height: 12px; cursor: nwse-resize; }
.akson-chat-resize.se { bottom: 0; right: 0; width: 12px; height: 12px; cursor: nwse-resize; }
.akson-chat-resize.sw { bottom: 0; left: 0; width: 12px; height: 12px; cursor: nesw-resize; }

.akson-chat-settings {
  display: none; position: absolute; top: 48px; right: 10px; z-index: 5;
  width: 240px; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 10px; box-shadow: 0 10px 28px rgba(0,32,51,.18);
  padding: 10px 12px; color: #002033;
}
.akson-chat-settings.open { display: block; }
.akson-chat-win.theme-dark .akson-chat-settings {
  background: #1e293b; border-color: #475569; color: #e2e8f0;
}
.akson-chat-settings h4 {
  margin: 0 0 10px; font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; color: #64748b;
}
.akson-seg {
  display: flex; width: 100%; border: 1px solid #dbe3ea; border-radius: 8px;
  overflow: hidden; margin-bottom: 10px; background: #f8fafc;
}
.akson-chat-win.theme-dark .akson-seg { border-color: #475569; background: #0f172a; }
.akson-seg button {
  flex: 1; border: 0; background: transparent; padding: 8px 6px;
  font: 700 11px/1.2 "Segoe UI", system-ui, sans-serif; cursor: pointer; color: #64748b;
}
.akson-seg button.on { background: #0070ba; color: #fff; }
.akson-set-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 12px; font-weight: 600; margin-bottom: 8px;
}

.akson-msg-toast-wrap {
  position: fixed; right: 16px; top: 72px; z-index: 2147483010;
  display: flex; flex-direction: column; gap: 8px;
  width: min(320px, calc(100vw - 24px)); pointer-events: none;
}
.akson-msg-toast {
  pointer-events: auto; cursor: pointer;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,32,51,.16);
  padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start;
  animation: aksonToastIn .2s ease;
}
.akson-msg-toast:hover { border-color: #0070ba; }
.akson-msg-toast .t-name { font-size: 13px; font-weight: 700; color: #002033; }
.akson-msg-toast .t-body { font-size: 12px; color: #64748b; margin-top: 2px; }
@keyframes aksonToastIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

.akson-profile-backdrop {
  position: fixed; inset: 0; z-index: 2147483020;
  background: rgba(15, 40, 60, 0.35); display: none;
}
.akson-profile-backdrop.open { display: block; }
.akson-profile-card {
  position: fixed; z-index: 2147483021; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, calc(100vw - 32px));
  background: #fff; border-radius: 14px; border: 1px solid #e2e8f0;
  box-shadow: 0 16px 40px rgba(0,32,51,.22);
  padding: 18px; font-family: "Segoe UI", system-ui, sans-serif;
}
.akson-profile-card .akson-msg-av { width: 64px; height: 64px; font-size: 18px; margin: 0 auto 12px; }
.akson-profile-card h3 { margin: 0 0 6px; text-align: center; font-size: 16px; color: #002033; }
.akson-profile-card .p-row {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 6px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px;
}
.akson-profile-card .p-row span { color: #64748b; }
.akson-profile-card .p-row b { color: #002033; font-weight: 650; text-align: right; }
.akson-profile-close {
  position: absolute; top: 10px; right: 10px; border: 0; background: #f1f5f9;
  width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 16px;
}

.akson-ctx-menu {
  position: fixed; z-index: 2147483030;
  min-width: 168px; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 10px; box-shadow: 0 10px 28px rgba(0,32,51,.18);
  padding: 6px; display: flex; flex-direction: column; gap: 2px;
}
.akson-ctx-menu button {
  border: 0; background: transparent; text-align: left;
  padding: 8px 10px; border-radius: 8px; font: 600 13px/1.2 "Segoe UI", system-ui, sans-serif;
  color: #002033; cursor: pointer;
}
.akson-ctx-menu button:hover { background: #eef6fb; color: #0070ba; }

.akson-pinned-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: #fffbeb; border-bottom: 1px solid #fde68a;
  font-size: 12px; color: #92400e; flex-shrink: 0;
}
.akson-chat-win.theme-dark .akson-pinned-bar {
  background: #422006; border-bottom-color: #78350f; color: #fde68a;
}
.akson-pin-text {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1;
}
.akson-reply-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; margin-bottom: 6px;
  background: #f1f5f9; border-radius: 8px; font-size: 12px; color: #475569;
}
.akson-chat-win.theme-dark .akson-reply-bar { background: #334155; color: #cbd5e1; }
.akson-reply-meta { flex: 1; min-width: 0; }
.akson-reply-text {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: #002033; font-weight: 600;
}
.akson-chat-win.theme-dark .akson-reply-text { color: #e2e8f0; }
.akson-reply-cancel {
  border: 0; background: transparent; color: #64748b; font-size: 18px;
  cursor: pointer; line-height: 1; padding: 0 4px;
}
.akson-reply-quote {
  border-left: 3px solid rgba(0,112,186,.45);
  padding-left: 8px; margin-bottom: 6px;
  font-size: 11px; opacity: .85; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.akson-chat-bubble.deleted { opacity: .7; font-style: italic; }
.akson-bubble-sender {
  font-size: 11px; font-weight: 700; margin-bottom: 4px; color: #0369a1;
}
.akson-chat-win.theme-dark .akson-bubble-sender { color: #7dd3fc; }
.akson-edited { font-size: 10px; opacity: .75; }

.akson-group-backdrop {
  position: fixed; inset: 0; z-index: 2147483025;
  background: rgba(15, 40, 60, 0.35); display: none;
}
.akson-group-backdrop.open { display: block; }
.akson-group-dialog {
  position: fixed; z-index: 2147483026; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 48px));
  display: none; flex-direction: column;
  background: #fff; border-radius: 14px; border: 1px solid #e2e8f0;
  box-shadow: 0 16px 40px rgba(0,32,51,.22);
  padding: 18px; font-family: "Segoe UI", system-ui, sans-serif;
}
.akson-group-dialog h3 { margin: 0 0 14px; font-size: 16px; color: #002033; }
.akson-grp-lab {
  display: block; font-size: 12px; font-weight: 700; color: #64748b; margin: 0 0 6px;
}
.akson-group-dialog input[type="text"],
.akson-group-dialog input[type="search"] {
  width: 100%; box-sizing: border-box; border: 1px solid #d1d5db;
  border-radius: 8px; padding: 10px; font: inherit; font-size: 13px; margin-bottom: 12px;
}
.akson-grp-users {
  flex: 1; min-height: 120px; max-height: 280px; overflow: auto;
  border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 14px;
}
.akson-grp-user {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-bottom: 1px solid #f1f5f9; cursor: pointer;
}
.akson-grp-user:hover { background: #f8fafc; }
.akson-grp-user-info { flex: 1; min-width: 0; }
.akson-grp-user-info b {
  display: block; font-size: 13px; color: #002033;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.akson-grp-user-info span {
  display: block; font-size: 11px; color: #64748b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.akson-grp-check {
  width: 22px; height: 22px; border: 2px solid #cbd5e1; border-radius: 6px;
  background: #fff; color: #0070ba; font-weight: 800; font-size: 14px;
  display: grid; place-items: center; cursor: pointer; flex-shrink: 0;
}
.akson-grp-check.on { border-color: #0070ba; background: #e0f2fe; }
.akson-grp-actions { display: flex; justify-content: flex-end; gap: 8px; }
.akson-grp-actions button {
  border-radius: 8px; padding: 9px 14px; font: 700 13px/1 "Segoe UI", system-ui, sans-serif;
  cursor: pointer; border: 1px solid transparent;
}
.akson-grp-actions .cancel {
  background: #f1f5f9; color: #475569; border-color: #e2e8f0;
}
.akson-grp-actions .save {
  background: #0070ba; color: #fff;
}
.akson-grp-actions .save:hover { background: #005a96; }

.akson-chat-title-action { cursor: pointer; }

.akson-group-members-card { max-height: min(520px, calc(100vh - 48px)); display: flex; flex-direction: column; }
.akson-group-members-sub {
  margin: 0 0 12px; text-align: center; font-size: 13px; color: #64748b;
}
.akson-group-members-list {
  flex: 1; min-height: 0; overflow: auto; margin: 0 -4px; padding: 0 4px;
}
.akson-group-member-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: 0; background: #fff; text-align: left; padding: 8px 6px;
  border-bottom: 1px solid #f1f5f9; cursor: pointer; font: inherit; color: #002033;
  border-radius: 8px;
}
.akson-group-member-row:hover { background: #eef6fb; }
.akson-group-member-meta { min-width: 0; flex: 1; }
.akson-group-member-meta b {
  display: block; font-size: 13px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.akson-group-member-meta > span {
  display: block; font-size: 11px; color: #64748b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.akson-member-status { margin-top: 2px; font-size: 10px !important; color: #94a3b8 !important; }
.akson-member-status.on { color: #16a34a !important; }
.akson-member-tag {
  display: inline-block; margin-left: 4px; padding: 1px 6px;
  border-radius: 999px; background: #e0f2fe; color: #0369a1;
  font-size: 10px; font-weight: 700; vertical-align: middle;
}

@media (max-width: 720px) {
  .akson-msg-fab { right: 16px; bottom: 88px; }
  .akson-msg-panel { right: 12px; bottom: 148px; }
}
