import "react";
import { jsx } from "react/jsx-runtime";
//#region editors/power-chat-editor/components/Avatar.tsx
const COLORS = [
	"#5865f2",
	"#57f287",
	"#fee75c",
	"#eb459e",
	"#ed4245",
	"#3ba55d",
	"#faa61a",
	"#9b59b6",
	"#e67e22",
	"#1abc9c"
];
function hashCode(str) {
	let hash = 0;
	for (let i = 0; i < str.length; i++) hash = str.charCodeAt(i) + ((hash << 5) - hash);
	return Math.abs(hash);
}
function getInitials(name) {
	if (name.startsWith("0x") || name.startsWith("0X")) return name.replace(/[^a-fA-F0-9]/g, "").slice(-2).toUpperCase();
	if (name.startsWith("did:")) return name.replace(/[^a-zA-Z0-9]/g, "").slice(-2).toUpperCase();
	return name.trim().split(/\s+/).map((w) => w[0]).join("").toUpperCase().slice(0, 2);
}
function Avatar({ name, size = 40, className = "" }) {
	const color = COLORS[hashCode(name) % COLORS.length];
	const initials = getInitials(name);
	return /* @__PURE__ */ jsx("div", {
		className: `flex shrink-0 items-center justify-center rounded-full font-semibold text-white ${className}`,
		style: {
			width: size,
			height: size,
			backgroundColor: color,
			fontSize: size * .4
		},
		children: initials
	});
}
//#endregion
//#region editors/power-chat-editor/components/PowerChatStyles.tsx
function PowerChatStyles() {
	return /* @__PURE__ */ jsx("style", { children: `
/* PowerChat - Discord-like Dark Theme */

.powerchat-root {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  background: #313338;
  color: #f2f3f5;
  font-family: "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.375;
  overflow: hidden;
}

.powerchat-channel-editor {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  background: #313338;
  color: #f2f3f5;
  font-family: "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.375;
  overflow: hidden;
}

.powerchat-container {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
.powerchat-sidebar {
  width: 240px;
  min-width: 240px;
  background: #1e1f22;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.powerchat-sidebar-header {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #1a1b1e;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2), 0 1.5px 0 rgba(0,0,0,0.05);
}

.powerchat-sidebar-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: #f2f3f5;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.powerchat-sidebar-channels {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.powerchat-sidebar-channels::-webkit-scrollbar { width: 4px; }
.powerchat-sidebar-channels::-webkit-scrollbar-thumb { background: #1a1b1e; border-radius: 2px; }

.powerchat-category { margin-bottom: 2px; }

.powerchat-category-header {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 16px 8px 4px 2px;
  border: none;
  background: none;
  color: #949ba4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-transform: uppercase;
}

.powerchat-category-header:hover { color: #dbdee1; }

.powerchat-category-arrow { transition: transform 0.15s ease; }
.powerchat-category-arrow.collapsed { transform: rotate(-90deg); }

.powerchat-channel-item {
  display: flex;
  align-items: center;
  gap: 6px;
  width: calc(100% - 16px);
  margin: 1px 8px;
  padding: 6px 8px;
  border: none;
  background: none;
  color: #949ba4;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  text-align: left;
}

.powerchat-channel-item:hover { background: rgba(79,84,92,0.32); color: #dbdee1; }
.powerchat-channel-item.active { background: rgba(79,84,92,0.6); color: #f2f3f5; }

.powerchat-channel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  color: #949ba4;
}

.powerchat-hash { font-size: 18px; font-weight: 500; opacity: 0.7; }

.powerchat-channel-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.powerchat-empty-channels { padding: 16px; text-align: center; color: #949ba4; font-size: 13px; }

/* Drag and drop */
.powerchat-channel-item[draggable="true"] { cursor: grab; }
.powerchat-channel-item[draggable="true"]:active { cursor: grabbing; opacity: 0.5; }
.powerchat-drop-indicator {
  height: 2px; margin: 0 8px; background: #5865f2; border-radius: 1px;
  box-shadow: 0 0 4px rgba(88, 101, 242, 0.5);
}
.powerchat-drop-zone { height: 8px; flex-shrink: 0; }
.powerchat-text-muted { color: #6d6f78; font-size: 12px; margin-top: 4px; }

/* Main area */
.powerchat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.powerchat-header {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid #1f2023;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2), 0 1.5px 0 rgba(0,0,0,0.05);
  background: #313338;
  flex-shrink: 0;
}

.powerchat-header-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.powerchat-header-icon { display: flex; align-items: center; color: #949ba4; }
.powerchat-header-hash { font-size: 22px; font-weight: 600; color: #949ba4; }
.powerchat-header-name { font-size: 16px; font-weight: 700; color: #f2f3f5; margin: 0; white-space: nowrap; }
.powerchat-header-divider { color: #3f4147; font-size: 18px; }
.powerchat-header-topic { color: #949ba4; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.powerchat-header-right { display: flex; align-items: center; gap: 4px; }

.powerchat-header-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: none;
  background: none;
  color: #b5bac1;
  cursor: pointer;
  border-radius: 4px;
  font-size: 13px;
}
.powerchat-header-btn:hover { background: rgba(79,84,92,0.4); color: #f2f3f5; }
.powerchat-header-btn.active { color: #f2f3f5; }

.powerchat-content { flex: 1; display: flex; overflow: hidden; }
.powerchat-chat-area { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* Message List */
.powerchat-message-list { flex: 1; overflow-y: auto; padding: 16px 0; }
.powerchat-message-list::-webkit-scrollbar { width: 8px; }
.powerchat-message-list::-webkit-scrollbar-track { background: #2b2d31; border-radius: 4px; }
.powerchat-message-list::-webkit-scrollbar-thumb { background: #1a1b1e; border-radius: 4px; }

.powerchat-welcome { padding: 16px 16px 0; margin-bottom: 16px; }
.powerchat-welcome-icon {
  width: 68px; height: 68px; border-radius: 50%; background: #5865f2;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 700; color: #fff; margin-bottom: 8px;
}
.powerchat-welcome h3 { font-size: 32px; font-weight: 700; margin: 8px 0; color: #f2f3f5; }
.powerchat-welcome p { color: #949ba4; font-size: 14px; margin: 0; }

/* Date separator */
.powerchat-date-separator { display: flex; align-items: center; padding: 0 16px; margin: 16px 0 8px; }
.powerchat-date-line { flex: 1; height: 1px; background: #3f4147; }
.powerchat-date-text { padding: 0 8px; font-size: 12px; font-weight: 700; color: #949ba4; white-space: nowrap; }

/* Message Item */
.powerchat-message { padding: 2px 48px 2px 72px; position: relative; min-height: 1.375em; }
.powerchat-message:hover { background: rgba(0,0,0,0.06); }
.powerchat-message.first-in-group { margin-top: 16px; padding-top: 2px; }

.powerchat-reply-context {
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 4px; margin-left: -32px;
  font-size: 13px; color: #949ba4;
}
.powerchat-reply-line {
  width: 28px; height: 12px;
  border-left: 2px solid #4e5058; border-top: 2px solid #4e5058;
  border-radius: 6px 0 0 0; margin-top: 6px; margin-right: 4px;
  border-right: none; border-bottom: none;
}
.powerchat-reply-author { font-weight: 600; color: #b5bac1; cursor: pointer; }
.powerchat-reply-author:hover { color: #f2f3f5; }
.powerchat-reply-text { color: #949ba4; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 400px; }
.powerchat-reply-text:hover { color: #dbdee1; }

.powerchat-message-row { display: flex; gap: 16px; align-items: flex-start; position: relative; }
.powerchat-message .powerchat-message-row > *:first-child { position: absolute; left: -56px; }

.powerchat-message-time-gutter {
  position: absolute; left: -56px; width: 40px;
  font-size: 11px; color: transparent; text-align: right;
  line-height: 1.375; padding-top: 2px;
}
.powerchat-message:hover .powerchat-message-time-gutter { color: #949ba4; }

.powerchat-message-content { flex: 1; min-width: 0; }
.powerchat-message-header { display: flex; align-items: baseline; gap: 8px; }
.powerchat-author-name { font-weight: 600; font-size: 15px; color: #f2f3f5; cursor: pointer; }
.powerchat-author-name:hover { text-decoration: underline; }
.powerchat-timestamp { font-size: 12px; color: #949ba4; }
.powerchat-pin-badge { font-size: 12px; cursor: default; }
.powerchat-message-text { color: #dbdee1; word-break: break-word; white-space: pre-wrap; }
.powerchat-edited { font-size: 11px; color: #949ba4; margin-left: 4px; }
.powerchat-inline-link { color: #00a8fc; text-decoration: none; }
.powerchat-inline-link:hover { text-decoration: underline; }

/* Message actions */
.powerchat-message-actions {
  position: absolute; top: -16px; right: 16px;
  display: flex; background: #2b2d31; border: 1px solid #1e1f22;
  border-radius: 4px; overflow: visible;
  box-shadow: 0 2px 8px rgba(0,0,0,0.24); z-index: 10;
}
.powerchat-message-actions button {
  padding: 4px 8px; border: none; background: none;
  color: #b5bac1; cursor: pointer; font-size: 16px; line-height: 1;
}
.powerchat-message-actions button:hover { background: rgba(79,84,92,0.4); color: #f2f3f5; }
.powerchat-emoji-picker-popup { position: absolute; top: 100%; right: 0; margin-top: 4px; z-index: 100; }

/* Reactions */
.powerchat-reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.powerchat-reaction {
  display: flex; align-items: center; gap: 4px;
  padding: 2px 6px; border: 1px solid transparent; border-radius: 8px;
  background: rgba(79,84,92,0.3); cursor: pointer; font-size: 14px; color: #dbdee1;
}
.powerchat-reaction:hover { border-color: rgba(79,84,92,0.6); background: rgba(79,84,92,0.5); }
.powerchat-reaction.active { background: rgba(88,101,242,0.15); border-color: #5865f2; }
.powerchat-reaction-count { font-size: 12px; font-weight: 600; min-width: 9px; text-align: center; }

/* Link Previews */
.powerchat-link-preview {
  display: flex; margin-top: 4px; max-width: 520px;
  border-radius: 4px; overflow: hidden; background: #2b2d31; text-decoration: none;
}
.powerchat-link-accent { width: 4px; background: #5865f2; flex-shrink: 0; }
.powerchat-link-body { padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.powerchat-link-domain { font-size: 12px; color: #949ba4; }
.powerchat-link-url { font-size: 14px; color: #00a8fc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.powerchat-media-preview { margin-top: 4px; max-width: 400px; border-radius: 8px; overflow: hidden; }
.powerchat-media-preview img { max-width: 100%; max-height: 300px; display: block; border-radius: 8px; }

/* Emoji Picker */
.powerchat-emoji-picker {
  background: #2b2d31; border: 1px solid #1e1f22; border-radius: 8px;
  width: 352px; box-shadow: 0 8px 32px rgba(0,0,0,0.4); overflow: hidden;
}
.powerchat-emoji-tabs { display: flex; border-bottom: 1px solid #3f4147; padding: 0 4px; overflow-x: auto; }
.powerchat-emoji-tab {
  padding: 8px 10px; border: none; background: none; color: #949ba4;
  cursor: pointer; font-size: 12px; font-weight: 600; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.powerchat-emoji-tab:hover { color: #f2f3f5; }
.powerchat-emoji-tab.active { color: #f2f3f5; border-bottom-color: #5865f2; }
.powerchat-emoji-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px;
  padding: 8px; max-height: 250px; overflow-y: auto;
}
.powerchat-emoji-grid::-webkit-scrollbar { width: 4px; }
.powerchat-emoji-grid::-webkit-scrollbar-thumb { background: #1a1b1e; border-radius: 2px; }
.powerchat-emoji-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: none; background: none;
  cursor: pointer; font-size: 22px; border-radius: 4px;
}
.powerchat-emoji-btn:hover { background: rgba(79,84,92,0.4); }

/* Message Input */
.powerchat-input-area { padding: 0 16px 24px; flex-shrink: 0; }
.powerchat-reply-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: #2b2d31; border-radius: 8px 8px 0 0;
  font-size: 13px; color: #b5bac1;
}
.powerchat-reply-bar strong { color: #f2f3f5; }
.powerchat-reply-cancel { border: none; background: none; color: #949ba4; cursor: pointer; font-size: 16px; padding: 0 4px; }
.powerchat-reply-cancel:hover { color: #f2f3f5; }

.powerchat-input-row { position: relative; }
.powerchat-input-wrapper {
  display: flex; align-items: flex-end; gap: 4px;
  background: #383a40; border-radius: 8px; padding: 4px 12px;
}
.powerchat-reply-bar + .powerchat-input-row .powerchat-input-wrapper { border-radius: 0 0 8px 8px; }
.powerchat-textarea {
  flex: 1; background: none; border: none; outline: none;
  color: #dbdee1; font-family: inherit; font-size: 15px;
  line-height: 1.375; padding: 8px 0; resize: none;
  max-height: 200px; min-height: 20px;
}
.powerchat-textarea::placeholder { color: #6d6f78; }

.powerchat-input-btn {
  border: none; background: none; color: #b5bac1; cursor: pointer;
  font-size: 20px; padding: 6px 4px; border-radius: 4px; display: flex; align-items: center;
}
.powerchat-input-btn:hover { color: #f2f3f5; }
.powerchat-send-btn {
  border: none; background: none; color: #5865f2; cursor: pointer;
  padding: 6px 4px; border-radius: 4px; display: flex; align-items: center;
}
.powerchat-send-btn:hover { color: #7289da; }
.powerchat-send-btn:disabled { color: #4e5058; cursor: default; }
.powerchat-input-emoji-popup { position: absolute; bottom: 100%; left: 0; margin-bottom: 8px; z-index: 100; }

/* Member List */
.powerchat-members {
  width: 240px; min-width: 240px; background: #2b2d31;
  overflow-y: auto; padding: 8px 0;
}
.powerchat-members::-webkit-scrollbar { width: 4px; }
.powerchat-members::-webkit-scrollbar-thumb { background: #1a1b1e; border-radius: 2px; }
.powerchat-members-header {
  padding: 8px 16px; font-size: 12px; font-weight: 700;
  color: #949ba4; text-transform: uppercase; letter-spacing: 0.02em;
}
.powerchat-member-group { margin-bottom: 8px; }
.powerchat-member-role {
  padding: 16px 16px 4px; font-size: 12px; font-weight: 700;
  color: #949ba4; text-transform: uppercase; letter-spacing: 0.02em;
}
.powerchat-member-item {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 16px; cursor: pointer; border-radius: 4px; margin: 0 8px;
}
.powerchat-member-item:hover { background: rgba(79,84,92,0.32); }
.powerchat-member-info { display: flex; flex-direction: column; min-width: 0; }
.powerchat-member-name {
  font-size: 14px; font-weight: 500; color: #949ba4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.powerchat-member-item:hover .powerchat-member-name { color: #dbdee1; }
.powerchat-member-role-badge { font-size: 11px; color: #6d6f78; }
.powerchat-empty-members { padding: 16px; text-align: center; color: #949ba4; font-size: 13px; }

/* No channel selected state */
.powerchat-no-channel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #313338;
}
.powerchat-no-channel-inner {
  text-align: center;
  color: #949ba4;
}
.powerchat-no-channel-icon {
  width: 80px; height: 80px; border-radius: 50%; background: #5865f2;
  display: flex; align-items: center; justify-content: center;
  font-size: 42px; font-weight: 700; color: #fff; margin: 0 auto 16px;
}
.powerchat-no-channel h3 {
  font-size: 24px; font-weight: 700; color: #f2f3f5; margin: 0 0 8px;
}
.powerchat-no-channel p {
  font-size: 14px; margin: 0;
}

/* Settings Panel */
.powerchat-settings-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.6);
  display: flex; align-items: center; justify-content: center;
}
.powerchat-settings-panel {
  background: #313338; border-radius: 8px; width: 480px; max-width: 90vw;
  max-height: 80vh; overflow-y: auto; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.powerchat-settings-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #3f4147;
}
.powerchat-settings-header h3 {
  font-size: 18px; font-weight: 700; color: #f2f3f5; margin: 0;
}
.powerchat-settings-close {
  border: none; background: none; color: #949ba4; cursor: pointer;
  font-size: 18px; padding: 4px 8px; border-radius: 4px;
}
.powerchat-settings-close:hover { color: #f2f3f5; background: rgba(79, 84, 92, 0.4); }

.powerchat-settings-section { padding: 16px 20px; }
.powerchat-settings-section h4 {
  font-size: 13px; font-weight: 700; color: #b5bac1; text-transform: uppercase;
  letter-spacing: 0.02em; margin: 0 0 12px;
}

.powerchat-settings-toggle-group { display: flex; gap: 8px; }
.powerchat-settings-toggle {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 1px solid #3f4147; border-radius: 6px;
  background: none; color: #b5bac1; cursor: pointer; font-size: 14px;
  flex: 1; transition: all 0.15s ease;
}
.powerchat-settings-toggle:hover { border-color: #5865f2; color: #f2f3f5; }
.powerchat-settings-toggle.active {
  border-color: #5865f2; background: rgba(88, 101, 242, 0.15); color: #f2f3f5;
}
.powerchat-settings-hint {
  font-size: 13px; color: #949ba4; margin: 8px 0 0;
}

.powerchat-settings-members { display: flex; flex-direction: column; gap: 4px; }
.powerchat-settings-member {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 6px;
}
.powerchat-settings-member:hover { background: rgba(79, 84, 92, 0.2); }
.powerchat-settings-member-info { flex: 1; min-width: 0; }
.powerchat-settings-member-name {
  font-size: 14px; font-weight: 500; color: #f2f3f5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: block;
}
.powerchat-settings-role-select {
  padding: 4px 8px; border: 1px solid #3f4147; border-radius: 4px;
  background: #2b2d31; color: #b5bac1; font-size: 13px; cursor: pointer;
  outline: none;
}
.powerchat-settings-role-select:focus { border-color: #5865f2; }
.powerchat-settings-role-select option { background: #2b2d31; color: #dbdee1; }
.powerchat-settings-remove {
  border: none; background: none; color: #949ba4; cursor: pointer;
  font-size: 14px; padding: 4px; border-radius: 4px; opacity: 0;
  transition: opacity 0.15s;
}
.powerchat-settings-member:hover .powerchat-settings-remove { opacity: 1; }
.powerchat-settings-remove:hover { color: #f23f43; background: rgba(242, 63, 67, 0.1); }

/* Add member autocomplete */
.powerchat-add-member { margin-bottom: 4px; }
.powerchat-add-member-row { display: flex; gap: 8px; align-items: flex-start; }
.powerchat-add-member-input-wrap { flex: 1; position: relative; }
.powerchat-add-member-input {
  width: 100%; padding: 8px 12px; border: 1px solid #3f4147; border-radius: 6px;
  background: #1e1f22; color: #f2f3f5; font-size: 14px; outline: none;
  font-family: inherit;
}
.powerchat-add-member-input:focus { border-color: #5865f2; }
.powerchat-add-member-input::placeholder { color: #6d6f78; }
.powerchat-add-member-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px;
  background: #1e1f22; border: 1px solid #3f4147; border-radius: 6px;
  max-height: 200px; overflow-y: auto; z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.powerchat-add-member-option {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 12px; border: none; background: none;
  color: #dbdee1; cursor: pointer; text-align: left;
}
.powerchat-add-member-option:hover { background: rgba(79, 84, 92, 0.3); }
.powerchat-add-member-option-info { display: flex; flex-direction: column; min-width: 0; }
.powerchat-add-member-option-name { font-size: 14px; font-weight: 500; color: #f2f3f5; }
.powerchat-add-member-option-id {
  font-size: 11px; color: #949ba4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.powerchat-add-member-empty {
  padding: 12px; text-align: center; color: #949ba4; font-size: 13px;
}

/* Create document button in sidebar */
.powerchat-create-section {
  padding: 4px 0;
}
.powerchat-create-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px 8px;
  border: 1px dashed #4e5058;
  border-radius: 4px;
  background: none;
  color: #949ba4;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}
.powerchat-create-btn:hover {
  border-color: #5865f2;
  color: #dbdee1;
  background: rgba(88, 101, 242, 0.1);
}
.powerchat-create-inline { padding: 2px 8px; }
.powerchat-create-btn-inline {
  display: flex; align-items: center; gap: 4px;
  width: calc(100% - 16px); margin: 1px 8px;
  padding: 4px 8px; border: none; background: none;
  color: #6d6f78; font-size: 12px; cursor: pointer;
  border-radius: 4px; text-align: left;
}
.powerchat-create-btn-inline:hover { color: #dbdee1; background: rgba(79,84,92,0.32); }
.powerchat-create-input-icon {
  display: flex; align-items: center; justify-content: center;
  width: 20px; flex-shrink: 0;
}
.powerchat-create-input-row {
  display: flex; gap: 4px; align-items: center;
}
.powerchat-create-input {
  flex: 1; padding: 6px 8px; border: 1px solid #5865f2; border-radius: 4px;
  background: #1e1f22; color: #f2f3f5; font-size: 13px; outline: none;
  font-family: inherit;
}
.powerchat-create-input::placeholder { color: #6d6f78; }
.powerchat-create-confirm, .powerchat-create-cancel {
  border: none; background: none; cursor: pointer; font-size: 14px;
  padding: 4px 6px; border-radius: 4px; color: #949ba4;
}
.powerchat-create-confirm:hover { color: #23a559; background: rgba(35, 165, 89, 0.1); }
.powerchat-create-cancel:hover { color: #f23f43; background: rgba(242, 63, 67, 0.1); }
.powerchat-create-confirm:disabled { color: #4e5058; cursor: default; }

/* DocumentToolbar dark theme override */
.powerchat-channel-editor > div:first-of-type,
.powerchat-root .powerchat-main > div:first-child > div:first-of-type {
  background: #2b2d31 !important;
  border-bottom: 1px solid #1f2023;
}

/* Voice channel sidebar */
.powerchat-voice-users {
  padding: 2px 0 4px 36px;
}
.powerchat-voice-user {
  display: flex; align-items: center; gap: 6px;
  padding: 2px 8px; font-size: 13px; color: #949ba4;
}
.powerchat-voice-user-name {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.powerchat-voice-muted-icon { display: flex; align-items: center; flex-shrink: 0; }

/* Voice Room */
.powerchat-voice-room {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #313338; padding: 32px;
}
.powerchat-voice-room-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 32px;
}
.powerchat-voice-room-header h2 {
  font-size: 24px; font-weight: 700; color: #f2f3f5; margin: 0;
}
.powerchat-voice-participants-grid {
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: center; margin-bottom: 40px;
  max-width: 600px;
}
.powerchat-voice-participant-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 16px; border-radius: 12px;
  background: #2b2d31; min-width: 120px;
  transition: all 0.2s ease;
}
.powerchat-voice-participant-card.self {
  outline: 2px solid #5865f2; outline-offset: 2px;
}
.powerchat-voice-avatar-wrap { position: relative; }
.powerchat-voice-mute-badge {
  position: absolute; bottom: -2px; right: -2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #f23f43; display: flex; align-items: center;
  justify-content: center;
}
.powerchat-voice-participant-name {
  font-size: 14px; font-weight: 500; color: #dbdee1;
  text-align: center; max-width: 100px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.powerchat-voice-empty {
  text-align: center; color: #949ba4; padding: 40px;
}
.powerchat-voice-empty p { margin: 12px 0 0; font-size: 14px; }

/* Voice Controls */
.powerchat-voice-controls {
  display: flex; gap: 12px; align-items: center;
  padding: 16px; background: #1e1f22; border-radius: 12px;
}
.powerchat-voice-control-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: none; background: #2b2d31; color: #b5bac1;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: all 0.15s ease;
}
.powerchat-voice-control-btn:hover { background: #3f4147; color: #f2f3f5; }
.powerchat-voice-control-btn.active { background: #f23f43; color: #fff; }
.powerchat-voice-control-btn.mic-test.active { background: #23a559; color: #fff; }
.powerchat-voice-control-btn.disconnect { background: #f23f43; color: #fff; }
.powerchat-voice-control-btn.disconnect:hover { background: #d83c3e; }
.powerchat-voice-join-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 24px; border: none; border-radius: 8px;
  background: #23a559; color: #fff; font-size: 16px;
  font-weight: 600; cursor: pointer; transition: background 0.15s;
}
.powerchat-voice-join-btn:hover { background: #1a8f4a; }

/* Channel kind toggle */
.powerchat-create-kind-toggle {
  display: flex; border: 1px solid #3f4147; border-radius: 4px; overflow: hidden;
}
.powerchat-create-kind-toggle button {
  padding: 4px 8px; border: none; background: none;
  color: #949ba4; cursor: pointer; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  min-width: 28px;
}
.powerchat-create-kind-toggle button:hover { color: #dbdee1; background: rgba(79,84,92,0.3); }
.powerchat-create-kind-toggle button.active { color: #f2f3f5; background: #5865f2; }

/* Responsive */
@media (max-width: 900px) {
  .powerchat-sidebar { width: 60px; min-width: 60px; }
  .powerchat-sidebar-header h2 { display: none; }
  .powerchat-category-header span { display: none; }
  .powerchat-channel-name { display: none; }
  .powerchat-channel-item { justify-content: center; padding: 8px; }
  .powerchat-members { display: none; }
}
@media (max-width: 600px) {
  .powerchat-sidebar { display: none; }
}
    ` });
}
//#endregion
export { Avatar as n, PowerChatStyles as t };

//# sourceMappingURL=PowerChatStyles-YoQHnBRk.mjs.map