/* =============================================================
   PersE — OpenWebUI-inspired Design System
   ============================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font: 'Inter', system-ui, sans-serif;

  /* Background layers */
  --bg-base: #0d0d0d;
  --bg-surface: #161616;
  --bg-elevated: #1f1f1f;
  --bg-hover: #2a2a2a;
  --bg-input: #1c1c1c;

  /* Borders */
  --border: #2e2e2e;
  --border-focus: #7c3aed;

  /* Text */
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #666;

  /* Accent */
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-glow: rgba(124, 58, 237, 0.25);

  /* Status */
  --error: #f87171;
  --success: #34d399;
  --warning: #fbbf24;

  /* Sizing */
  --sidebar-w: 260px;
  --header-h: 52px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: 150ms ease;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* =============================================================
   AUTH PAGES
   ============================================================= */

.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.18) 0%, transparent 65%),
    var(--bg-base);
}

.auth-card {
  width: 400px;
  max-width: 400px;
  padding: 40px 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.auth-brand {
  font-size: 24px;
  font-weight: 700;
  /*background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;*/
  letter-spacing: -0.3px;
}

.auth-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--error);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13.5px;
  margin-bottom: 4px;
}

.auth-success {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--success);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.btn-primary {
  width: 100%;
  padding: 11px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  padding: 8px 16px;
  background: var(--bg-hover);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-secondary:hover {
  background: #333;
}

.btn-danger {
  padding: 7px 14px;
  background: rgba(248, 113, 113, 0.1);
  color: var(--error);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-danger:hover {
  background: rgba(248, 113, 113, 0.18);
}

.btn-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.btn-icon:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.auth-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}

.auth-link:hover {
  color: var(--accent);
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =============================================================
   MAIN APP LAYOUT
   ============================================================= */

.app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* -- Sidebar -- */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition);
}

.sidebar-header {
  padding: 14px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #eeeeee;
  /*background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;*/
}



.sidebar-search {
  padding: 6px 10px 8px;
}

.sidebar-search input {
  width: 100%;
  padding: 7px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
}

.sidebar-search input::placeholder {
  color: var(--text-muted);
}

.sidebar-search input:focus {
  border-color: var(--border-focus);
}

.sidebar-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 8px 12px 4px;
}

.sidebar-conversations {
  flex: 1;
  overflow-y: auto;
  padding: 4px 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.conv-item {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13.5px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.conv-item:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.conv-item.active {
  background: rgba(124, 58, 237, 0.15);
  color: var(--text-primary);
  border-left: 2px solid var(--accent);
}

.conv-item-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-footer {
  padding: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 13.5px;
  width: 100%;
  text-align: left;
  transition: background var(--transition), color var(--transition);
}

.sidebar-user-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

/* -- Main area -- */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--bg-base);
}

/* -- Header -- */
.header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  flex-shrink: 0;
  gap: 12px;
}

.header-center {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  flex: 1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* -- Chat messages -- */
.messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.message-wrapper {
  max-width: 780px;
  margin: 0 auto;
  padding: 2px 20px 8px;
}

.message {
  display: flex;
  gap: 12px;
  padding: 4px 0;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.message.user {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-top: 2px;
}

.message.user .message-avatar {
  background: var(--accent);
}

.message.assistant .message-avatar {
  background: #1a1a2e;
  border: 1px solid var(--border);
  font-size: 18px;
}

.message-body {
  max-width: calc(100% - 56px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.message-bubble {
  padding: 11px 15px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  line-height: 1.65;
  word-break: break-word;
}

.message.user .message-bubble {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md) var(--radius-sm) var(--radius-md) var(--radius-md);
}

.message.assistant .message-bubble {
  background: transparent;
  color: var(--text-primary);
}

.message-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity var(--transition);
}

.message:hover .message-actions {
  opacity: 1;
}

/* Tool calls */
.tool-call {
  margin: 6px 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 13px;
}

.tool-call-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  user-select: none;
  color: var(--text-secondary);
}

.tool-call-header:hover {
  background: var(--bg-hover);
}

.tool-call-name {
  font-family: 'Courier New', monospace;
  color: #a78bfa;
  font-size: 12.5px;
}

.tool-call-body {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
}

/* Markdown rendering */
.message-content h1,
.message-content h2,
.message-content h3 {
  color: var(--text-primary);
  font-weight: 600;
  margin: 12px 0 6px;
  line-height: 1.3;
}

.message-content h1 {
  font-size: 20px;
}

.message-content h2 {
  font-size: 17px;
}

.message-content h3 {
  font-size: 15px;
}

.message-content p {
  margin: 6px 0;
}

.message-content code {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.88em;
  color: #c4b5fd;
}

.message-content pre {
  background: #111;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  overflow-x: auto;
  margin: 10px 0;
  position: relative;
}

.message-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-primary);
  font-size: 13px;
}

.message-content ul,
.message-content ol {
  padding-left: 20px;
  margin: 6px 0;
}

.message-content li {
  margin: 3px 0;
}

.message-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  color: var(--text-secondary);
  margin: 8px 0;
}

.message-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 10px 0;
}

.message-content th,
.message-content td {
  padding: 8px 12px;
  border: 1px solid var(--border);
  font-size: 13.5px;
}

.message-content th {
  background: var(--bg-elevated);
  font-weight: 600;
}

/* Typing cursor */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 16px;
  background: var(--accent);
  animation: blink 0.9s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Empty state */
.chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 10px;
  color: var(--text-muted);
  text-align: center;
  padding: 40px;
  pointer-events: none;
}

.chat-empty-icon {
  font-size: 48px;
  opacity: 0.4;
}

.chat-empty h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
}

.chat-empty p {
  font-size: 14px;
  max-width: 340px;
}

/* -- Input area -- */
.input-area {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  flex-shrink: 0;
}

.input-box {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px 10px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input-box:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-box textarea {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 14.5px;
  color: var(--text-primary);
  resize: none;
  min-height: 34px;
  max-height: 200px;
  line-height: 1.5;
  scrollbar-width: thin;
}

.input-box textarea::placeholder {
  color: var(--text-muted);
}

.send-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
  color: #fff;
}

.send-btn:hover:not(:disabled) {
  background: var(--accent-hover);
}

.send-btn:active:not(:disabled) {
  transform: scale(0.92);
}

.send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.stop-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
  color: var(--text-secondary);
}

.stop-btn:hover {
  background: rgba(248, 113, 113, 0.15);
  color: var(--error);
  border-color: rgba(248, 113, 113, 0.3);
}

.input-footer {
  max-width: 780px;
  margin: 6px auto 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* =============================================================
   MODAL / PANEL
   ============================================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  animation: fadeOverlay 0.2s ease;
}

@keyframes fadeOverlay {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: min(92vw, 520px);
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px;
  animation: modalSlide 0.25s ease;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 17px;
  font-weight: 600;
}

/* =============================================================
   ADMIN PAGE
   ============================================================= */

.admin-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.admin-sidebar {
  width: 220px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 16px 8px;
}

.admin-sidebar-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
  width: 100%;
  text-align: left;
  transition: background var(--transition), color var(--transition);
}

.admin-sidebar-item:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.admin-sidebar-item.active {
  background: rgba(124, 58, 237, 0.15);
  color: var(--text-primary);
}

.admin-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px;
}

.admin-header {
  margin-bottom: 24px;
}

.admin-header h1 {
  font-size: 22px;
  font-weight: 700;
}

.admin-header p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.admin-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.admin-table th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(46, 46, 46, 0.5);
  color: var(--text-secondary);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.badge-admin {
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
}

.badge-user {
  background: rgba(100, 100, 100, 0.15);
  color: var(--text-muted);
}

.badge-active {
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
}

/* provider active indicator */
.active-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
  box-shadow: 0 0 6px var(--success);
}

/* =============================================================
   PROFILE PANEL
   ============================================================= */

.profile-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.profile-info-row:last-child {
  border-bottom: none;
}

.profile-info-label {
  color: var(--text-muted);
  font-size: 12.5px;
}

.profile-info-value {
  color: var(--text-primary);
  font-weight: 500;
}

/* =============================================================
   SCROLLBAR
   ============================================================= */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #444;
}

/* =============================================================
   UTILITY
   ============================================================= */

.text-muted {
  color: var(--text-muted);
}

.text-error {
  color: var(--error);
}

.text-success {
  color: var(--success);
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.w-full {
  width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Conversation item menu ──────────────────────────────────── */
.conv-menu-wrap {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}

.conv-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 2px 5px;
  font-size: 15px;
  letter-spacing: 1px;
  line-height: 1;
  transition: background var(--transition), color var(--transition);
}

.conv-item:hover .conv-menu-btn,
.conv-item.active .conv-menu-btn {
  display: flex;
}

.conv-menu-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.conv-menu-dropdown {
  z-index: 9999;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  min-width: 130px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.conv-menu-dropdown button {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  text-align: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition);
}

.conv-menu-dropdown button:hover {
  background: var(--bg-hover);
}

.conv-menu-dropdown button.danger {
  color: var(--error);
}

.conv-rename-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  padding: 2px 6px;
  outline: none;
  min-width: 0;
}