
.local-chat-page[data-v-ef6c3880c7] {
  container: chat / inline-size;
  min-height: calc(100vh - 84px);
  padding: 12px;
  background: var(--bg);
}
.local-chat-page.chat-dock[data-v-ef6c3880c7] {
  min-height: 0;
  margin: 0;
  padding: 0;
  background: transparent;
}
.chat-dock .chat-shell[data-v-ef6c3880c7] {
  min-height: 0;
  height: 100%;
  max-height: none;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(12, 28, 31, .2);
}
.chat-dock .chat-header[data-v-ef6c3880c7] {
  justify-content: flex-start;
  gap: 4px;
  padding: 4px 8px;
}
.chat-dock .chat-brand[data-v-ef6c3880c7] {
  flex: 1;
  min-width: 0;
}
.chat-dock .chat-brand h1[data-v-ef6c3880c7] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-dock-minimized .chat-title-icon[data-v-ef6c3880c7] {
  display: none;
}
.chat-close-btn[data-v-ef6c3880c7],
.chat-minimize-btn[data-v-ef6c3880c7] { flex: 0 0 auto;
}
.chat-shell[data-v-ef6c3880c7] {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 108px);
  max-height: calc(100vh - 90px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-4);
  box-shadow: var(--shadow);
}
.chat-header[data-v-ef6c3880c7] {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.chat-brand[data-v-ef6c3880c7] {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.chat-title-icon[data-v-ef6c3880c7] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  background: var(--surface);
  color: var(--brand);
}
.chat-avatar-overflow[data-v-ef6c3880c7] {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 132px;
  justify-content: flex-end;
}
.overflow-avatar[data-v-ef6c3880c7] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: -7px;
  border: 2px solid #fff;
  border-radius: var(--r-pill);
  background: var(--tint);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
  font-size: 10px;
  font-weight: 800;
}
.overflow-more[data-v-ef6c3880c7] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: 6px;
  border: 2px solid #fff;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}
.chat-header h1[data-v-ef6c3880c7] {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}
.icon-btn[data-v-ef6c3880c7],
.composer-tool[data-v-ef6c3880c7],
.send-btn[data-v-ef6c3880c7] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.icon-btn[data-v-ef6c3880c7] {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--brand);
}
.icon-btn[data-v-ef6c3880c7]:disabled,
.composer-tool[data-v-ef6c3880c7]:disabled,
.send-btn[data-v-ef6c3880c7]:disabled {
  opacity: .45;
}
.chat-layout[data-v-ef6c3880c7] {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 0;
  flex: 1;
}
.mobile-author-bar[data-v-ef6c3880c7],
.mobile-author-search[data-v-ef6c3880c7] { display: none;
}
.chat-participants[data-v-ef6c3880c7] {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  padding: 10px;
  overflow: auto;
  background: var(--surface-2);
  border-right: 1px solid var(--border);
}
.participant-row[data-v-ef6c3880c7] {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 4px 7px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-2);
  color: var(--text);
  text-align: left;
}
.participant-row[data-v-ef6c3880c7]:hover {
  background: var(--surface);
  border-color: var(--border);
}
.participant-row.active[data-v-ef6c3880c7] {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.participant-avatar[data-v-ef6c3880c7] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--r-pill);
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
}
.participant-row.active .participant-avatar[data-v-ef6c3880c7] {
  background: var(--brand);
  color: #fff;
}
.participant-name[data-v-ef6c3880c7] {
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.participant-count[data-v-ef6c3880c7] {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: var(--r-pill);
  background: rgba(23,55,61,.08);
  color: inherit;
  font-size: 10.5px;
  font-weight: 800;
  text-align: center;
}
.chat-main[data-v-ef6c3880c7] {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.chat-feed[data-v-ef6c3880c7] {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 0;
}
.messages-panel[data-v-ef6c3880c7] {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  padding: 14px;
  overflow: auto;
  overscroll-behavior: contain;
  overflow-anchor: none;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}
.empty-state[data-v-ef6c3880c7] {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  min-height: 260px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}
.chat-date-divider[data-v-ef6c3880c7],
.chat-unread-divider[data-v-ef6c3880c7] {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin: 8px 0 2px;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: center;
}
.chat-date-divider[data-v-ef6c3880c7]::before,
.chat-date-divider[data-v-ef6c3880c7]::after,
.chat-unread-divider[data-v-ef6c3880c7]::before,
.chat-unread-divider[data-v-ef6c3880c7]::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--border);
}
.chat-unread-divider[data-v-ef6c3880c7] {
  color: var(--brand);
}
.chat-unread-divider[data-v-ef6c3880c7]::before,
.chat-unread-divider[data-v-ef6c3880c7]::after {
  border-color: currentColor;
}
.chat-next-page[data-v-ef6c3880c7] {
  align-self: center;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.message[data-v-ef6c3880c7] {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  max-width: min(760px, 82%);
}
.message.own[data-v-ef6c3880c7] {
  align-self: flex-end;
  justify-content: flex-end;
}
.message-avatar[data-v-ef6c3880c7] {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: var(--r-pill);
  background: var(--tint);
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
}
.message-body[data-v-ef6c3880c7] {
  min-width: 0;
}
.message-sender[data-v-ef6c3880c7] {
  margin: 0 0 4px 2px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}
.message-bubble[data-v-ef6c3880c7] {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-5) var(--r-5) var(--r-5) var(--r-1);
  background: var(--surface);
}
.message.own .message-bubble[data-v-ef6c3880c7] {
  border-color: var(--brand);
  border-radius: var(--r-5) var(--r-5) var(--r-1) var(--r-5);
  background: var(--brand);
  color: #fff;
}
.message-bubble p[data-v-ef6c3880c7] {
  margin: 0;
  padding: 10px 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.attachment[data-v-ef6c3880c7] {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-width: 230px;
  max-width: 360px;
  padding: 10px;
  color: inherit;
  text-align: left;
}
.attachment-preview[data-v-ef6c3880c7] {
  display: grid;
  grid-column: 1 / -1;
  place-items: center;
  height: clamp(96px, 25dvh, 180px);
  overflow: hidden;
  border-radius: var(--r-3);
  background: var(--surface-3);
}
.attachment-image[data-v-ef6c3880c7] {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.attachment-preview + .attachment-meta[data-v-ef6c3880c7] {
  grid-column: 1 / -1;
}
.attachment-icon[data-v-ef6c3880c7] {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-3);
  background: var(--tint);
  color: var(--brand);
}
.message.own .attachment-icon[data-v-ef6c3880c7] {
  background: rgba(255,255,255,.16);
  color: #fff;
}
.attachment-meta[data-v-ef6c3880c7] {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.attachment-meta strong[data-v-ef6c3880c7] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attachment-meta small[data-v-ef6c3880c7] {
  margin-top: 2px;
  color: var(--text-muted);
}
.message.own .attachment-meta small[data-v-ef6c3880c7] {
  color: rgba(255,255,255,.76);
}
.message-time[data-v-ef6c3880c7] {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
}
.message-actions[data-v-ef6c3880c7] {
  position: relative;
}
.message-action-toggle[data-v-ef6c3880c7],
.message-delete-btn[data-v-ef6c3880c7] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--r-2);
}
.message-action-toggle[data-v-ef6c3880c7] {
  width: 44px;
  color: var(--text-muted);
  font-size: 13px;
}
.message-action-toggle[data-v-ef6c3880c7]:hover,
.message-action-toggle[aria-expanded="true"][data-v-ef6c3880c7] {
  background: var(--surface-3);
  color: var(--text);
}
.message-delete-btn[data-v-ef6c3880c7] {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 100%;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--danger);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.jump-to-latest[data-v-ef6c3880c7] {
  position: absolute;
  right: 12px;
  bottom: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.chat-connection[data-v-ef6c3880c7] {
  padding: 6px 12px;
  color: var(--text-muted);
  font-size: 12px;
}
.chat-error[data-v-ef6c3880c7] {
  margin: 10px 14px 0;
  padding: 9px 11px;
  border: 1px solid var(--tint-red);
  border-radius: var(--r-3);
  background: #fff7f7;
  color: var(--danger);
  font-weight: 800;
}
.selected-file[data-v-ef6c3880c7] {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 14px 0;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  background: var(--surface-2);
  color: var(--brand);
}
.selected-file span[data-v-ef6c3880c7] {
  min-width: 0;
  overflow: hidden;
  flex: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}
.selected-file small[data-v-ef6c3880c7] {
  color: var(--text-muted);
}
.selected-file button[data-v-ef6c3880c7] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-muted);
}
.composer[data-v-ef6c3880c7] {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: end;
  gap: 9px;
  padding: 14px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.file-input[data-v-ef6c3880c7] {
  display: none;
}
.composer-tool[data-v-ef6c3880c7],
.send-btn[data-v-ef6c3880c7] {
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--r-pill);
}
.composer-tool[data-v-ef6c3880c7] {
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--brand);
}
.send-btn[data-v-ef6c3880c7] {
  gap: 6px;
  padding: 0 14px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}
.composer textarea[data-v-ef6c3880c7] {
  min-width: 0;
  min-height: 44px;
  max-height: 120px;
  resize: vertical;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-5);
  outline: none;
  background: var(--surface-2);
  color: var(--text);
}
.composer textarea[data-v-ef6c3880c7]:focus {
  border-color: var(--brand-2);
  background: var(--surface);
}
@media (max-width: 860px) {
.local-chat-page[data-v-ef6c3880c7] {
    padding: 0;
}
.chat-shell[data-v-ef6c3880c7] {
    min-height: calc(100vh - 64px);
    max-height: none;
    border-radius: 0;
    border-width: 0;
}
}
@container chat (max-width: 860px) {
.chat-layout[data-v-ef6c3880c7] {
    display: flex;
    flex-direction: column;
}
.chat-main[data-v-ef6c3880c7] {
    flex: 1;
}
.chat-avatar-overflow[data-v-ef6c3880c7] {
    display: none;
}
.mobile-author-bar[data-v-ef6c3880c7] {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
    padding: 4px 8px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}
.author-control[data-v-ef6c3880c7] {
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--r-2);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}
.author-control.active[data-v-ef6c3880c7] {
    background: var(--surface);
    border-color: var(--border-strong);
}
.author-toggle[data-v-ef6c3880c7] {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.author-toggle span[data-v-ef6c3880c7] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.author-toggle svg[data-v-ef6c3880c7] { flex: 0 0 auto;
}
.chat-participants[data-v-ef6c3880c7] {
    display: none;
    position: absolute;
    z-index: 2;
    top: 53px;
    left: 8px;
    right: 8px;
    max-height: min(320px, max(108px, calc(var(--chat-viewport-height, 100dvh) - 190px)));
    overscroll-behavior: contain;
    border: 1px solid var(--border);
    border-radius: var(--r-2);
    box-shadow: var(--shadow);
}
.chat-participants.author-filter-open[data-v-ef6c3880c7],
  .mobile-author-search[data-v-ef6c3880c7] {
    display: flex;
}
.mobile-author-search[data-v-ef6c3880c7],
  .chat-participants .participant-row[data-v-ef6c3880c7] { flex: 0 0 auto;
}
.all-messages-row[data-v-ef6c3880c7] { display: none;
}
.mobile-author-search input[data-v-ef6c3880c7] {
    width: 100%;
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--r-2);
    background: var(--surface);
    color: var(--text);
}
.author-empty[data-v-ef6c3880c7] {
    margin: 6px 4px;
    color: var(--text-muted);
    font-size: 13px;
}
.composer[data-v-ef6c3880c7] {
    gap: 6px;
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
}
.composer textarea[data-v-ef6c3880c7] {
    resize: none;
}
.message[data-v-ef6c3880c7] {
    max-width: 94%;
}
.attachment[data-v-ef6c3880c7] {
    min-width: 210px;
}
}
@media (max-width: 767px) {
.chat-dock .chat-close-btn[data-v-ef6c3880c7] {
    margin-inline-start: 4px;
}
.composer[data-v-ef6c3880c7] {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
}
.send-btn[data-v-ef6c3880c7] { padding: 0;
}
.send-btn span[data-v-ef6c3880c7] { display: none;
}
}

.app[data-chat-panel="expanded"],
.app > .chat-dock {
  --chat-dock-width: clamp(340px, 30vw, 452px);
  --chat-dock-reserved: clamp(238px, 45dvh, 370px);
  --chat-cookie-space: 52px;
  --chat-tabbar-height: 0px;
}

.app > .chat-dock {
  position: fixed;
  z-index: 40;
  inset-block: 12px var(--chat-cookie-space);
  inset-inline-end: 12px;
  width: calc(var(--chat-dock-width) - 12px);
}

.app > .chat-dock.chat-dock-minimized {
  inset-block-start: auto;
  width: 224px;
}

@media (min-width: 1160px) {
  .app[data-chat-panel="expanded"]:not([data-frame="mobile"]) {
    grid-template-columns: var(--sidebar-w, 232px) minmax(0, 1fr) var(--chat-dock-width);
  }
}

@media (max-width: 1159px) {
  .app[data-chat-panel="expanded"] > .main {
    padding-bottom: calc(var(--chat-dock-reserved) + var(--chat-tabbar-height) + var(--chat-cookie-space) + 12px);
  }

  .app > .chat-dock {
    --chat-dock-height: min(
      calc(var(--chat-viewport-height, 100dvh) - var(--chat-tabbar-height) - var(--chat-cookie-space) - 16px),
      clamp(238px, calc(var(--chat-viewport-height, 100dvh) * .45), 370px)
    );
    inset-block: calc(var(--chat-viewport-top, 0px) + var(--chat-viewport-height, 100dvh) - var(--chat-tabbar-height) - var(--chat-cookie-space) - var(--chat-dock-height) - 8px) auto;
    inset-inline: 8px;
    width: auto;
    height: var(--chat-dock-height);
  }

  .app > .chat-dock.chat-dock-minimized {
    --chat-dock-height: 54px;
    inset-block-start: calc(var(--chat-viewport-top, 0px) + var(--chat-viewport-height, 100dvh) - var(--chat-tabbar-height) - var(--chat-cookie-space) - var(--chat-dock-height) - 8px);
    inset-inline-start: auto;
  }
}

@media (max-width: 767px) {
  .app[data-chat-panel="expanded"],
  .app > .chat-dock {
    --chat-cookie-space: 48px;
    --chat-tabbar-height: calc(60px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 768px) {
  .app[data-frame="mobile"][data-chat-panel="expanded"] > .main {
    padding-bottom: calc(var(--chat-dock-reserved) + 72px);
  }

  .app[data-frame="mobile"] > .chat-dock {
    position: absolute;
    inset-block: auto 68px;
    inset-inline: 8px;
    width: auto;
    height: var(--chat-dock-reserved);
  }

  .app[data-frame="mobile"] > .chat-dock.chat-dock-minimized {
    inset-block-start: auto;
    inset-inline-start: auto;
    width: 224px;
    height: 54px;
  }
}

.sb-item[data-chat-trigger] { min-height: 44px; }
