/* ========================================================================
   My API My Module — Design System
   A premium, production-grade CSS for the Chrome Extension side panel.
   Dark-first with light theme support. Glassmorphism + micro-animations.
   ======================================================================== */

/* ── CSS Custom Properties ─────────────────────────────────────────────── */
:root {
  /* Dark Theme (ChatGPT-like charcoal/slate) */
  --bg-primary: #212121;
  --bg-secondary: #171717;
  --bg-tertiary: #2f2f2f;
  --bg-surface: #2f2f2f;
  --bg-surface-hover: #383838;
  --bg-input: #2f2f2f;
  --bg-overlay: rgba(0, 0, 0, 0.7);

  --text-primary: #ececec;
  --text-secondary: #b4b4b4;
  --text-tertiary: #8e8e8e;
  --text-inverse: #171717;

  --accent: #10a37f;
  --accent-hover: #0d8a6b;
  --accent-muted: rgba(16, 163, 127, 0.12);
  --accent-gradient: linear-gradient(135deg, #10a37f 0%, #0d8a6b 100%);

  --success: #10a37f;
  --success-bg: rgba(16, 163, 127, 0.12);
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.12);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --info: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.12);

  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.05);
  --border-accent: rgba(16, 163, 127, 0.3);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 15px rgba(16, 163, 127, 0.1);

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --transition-fast: 0.12s ease;
  --transition: 0.2s ease;
  --transition-slow: 0.3s ease;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, SF Pro Mono, Menlo, Monaco, Consolas, monospace;

  --sidebar-width: 260px;
  --input-max-height: 200px;

  --scrollbar-track: transparent;
  --scrollbar-thumb: #424242;
  --scrollbar-thumb-hover: #4f4f4f;

  --glass-bg: rgba(33, 33, 33, 0.8);
  --glass-border: rgba(255, 255, 255, 0.04);
  --glass-blur: blur(12px);

  --code-bg: #0d0d0d;
  --code-header-bg: #1e1e1e;

  --msg-user-bg: #2f2f2f;
  --msg-assistant-bg: transparent;
}

/* ── Light Theme ──────────────────────────────────────────────────────── */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f9f9f9;
  --bg-tertiary: #f0f0f0;
  --bg-surface: #f9f9f9;
  --bg-surface-hover: #ececec;
  --bg-input: #ffffff;
  --bg-overlay: rgba(0, 0, 0, 0.2);

  --text-primary: #0d0d0d;
  --text-secondary: #676767;
  --text-tertiary: #9b9b9b;
  --text-inverse: #ffffff;

  --accent: #10a37f;
  --accent-hover: #0d8a6b;
  --accent-muted: rgba(16, 163, 127, 0.08);
  --accent-gradient: linear-gradient(135deg, #10a37f 0%, #0d8a6b 100%);

  --border: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.04);
  --border-accent: rgba(16, 163, 127, 0.25);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 15px rgba(16, 163, 127, 0.05);

  --scrollbar-track: transparent;
  --scrollbar-thumb: #e2e8f0;
  --scrollbar-thumb-hover: #cbd5e1;

  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.04);

  --code-bg: #f8f9fa;
  --code-header-bg: #ececec;

  --msg-user-bg: #f0f0f0;
  --msg-assistant-bg: transparent;
}

/* ── SVG Icon Helper ──────────────────────────────────────────────────── */
.svg-icon {
  width: 1.25em;
  height: 1.25em;
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.logo-icon .svg-icon {
  width: 1.4em;
  height: 1.4em;
}
.btn-new-chat .svg-icon {
  width: 1.1em;
  height: 1.1em;
}
.btn-settings .svg-icon {
  margin-right: 8px;
}


/* ── Reset & Base ─────────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 450px;
  height: 600px;
  min-width: 350px;
  min-height: 400px;
  max-width: 800px;
  max-height: 600px;
  overflow: auto;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.tab-mode, html.tab-mode body {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  resize: none !important;
  overflow: hidden !important;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  font-size: inherit;
}

input, textarea, select {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}
input::placeholder, textarea::placeholder {
  color: var(--text-tertiary);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b96a9' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* ── Scrollbar ────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

/* ── App Layout ───────────────────────────────────────────────────────── */
#app {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ── Sidebar ──────────────────────────────────────────────────────────── */
#sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  transition: transform var(--transition-slow), opacity var(--transition-slow);
  z-index: 20;
}

#sidebar.collapsed {
  transform: translateX(-100%);
  opacity: 0;
  width: 0;
  min-width: 0;
  overflow: hidden;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.sidebar-logo .logo-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-new-chat {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  color: white;
  font-size: 18px;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.btn-new-chat:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-glow);
}

.sidebar-search {
  padding: 12px 16px 8px;
}

.sidebar-search input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border-radius: var(--radius-full);
  font-size: 13px;
  background: var(--bg-tertiary);
}

.search-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 13px;
  pointer-events: none;
}

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

.sidebar-section-label {
  padding: 8px 16px 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
}

.chat-list {
  list-style: none;
}

.chat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background var(--transition-fast);
  border-radius: 0;
  position: relative;
  min-height: 40px;
}
.chat-item:hover {
  background: var(--bg-surface-hover);
}
.chat-item.active {
  background: var(--accent-muted);
  border-right: 3px solid var(--accent);
}

.chat-item-icon {
  font-size: 15px;
  flex-shrink: 0;
  color: var(--text-secondary);
}
.chat-item.active .chat-item-icon {
  color: var(--accent);
}

.chat-item-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.chat-item-actions {
  display: none;
  align-items: center;
  gap: 2px;
}
.chat-item:hover .chat-item-actions {
  display: flex;
}

.chat-item-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  font-size: 12px;
  transition: background var(--transition-fast), color var(--transition-fast);
  color: var(--text-secondary);
}
.chat-item-btn:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}
.chat-item-btn.danger:hover {
  background: var(--error-bg);
  color: var(--error);
}

.pin-indicator {
  font-size: 10px;
  color: var(--accent);
  margin-left: 2px;
}

.fav-indicator {
  font-size: 10px;
  color: var(--warning);
  margin-left: 2px;
}

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-settings {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
  width: 100%;
}
.btn-settings:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

/* ── Main Area ────────────────────────────────────────────────────────── */
#main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* ── Top Bar ──────────────────────────────────────────────────────────── */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 10;
  min-height: 52px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-toggle-sidebar {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 16px;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}
.btn-toggle-sidebar:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.top-bar-title {
  font-size: 14px;
  font-weight: 600;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Profile Switcher ─────────────────────────────────────────────────── */
.profile-switcher {
  position: relative;
}

.profile-switcher-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  transition: all var(--transition);
  max-width: 200px;
}
.profile-switcher-btn:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.profile-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--success);
  flex-shrink: 0;
}

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

.profile-chevron {
  font-size: 10px;
  color: var(--text-tertiary);
  transition: transform var(--transition);
}
.profile-switcher.open .profile-chevron {
  transform: rotate(180deg);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 100;
  display: none;
  animation: slideDown 0.15s ease;
}
.profile-switcher.open .profile-dropdown {
  display: block;
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
  font-size: 13px;
}
.profile-dropdown-item:hover {
  background: var(--bg-surface-hover);
}
.profile-dropdown-item.active {
  background: rgba(16, 163, 127, 0.15) !important;
  color: var(--accent) !important;
  font-weight: 600;
}

.profile-dropdown-item .provider-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-weight: 500;
}

/* ── Chat Area ────────────────────────────────────────────────────────── */
#chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.empty-chat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  padding: 40px;
  text-align: center;
}

.empty-chat-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xl);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: var(--shadow-glow);
  animation: float 3s ease-in-out infinite;
}

.empty-chat h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.empty-chat p {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 340px;
  line-height: 1.6;
}

.empty-chat-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--text-secondary);
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.feature-card span:first-child {
  font-size: 16px;
}

/* ── Messages ─────────────────────────────────────────────────────────── */
.messages-container {
  max-width: 768px;
  margin: 0 auto;
  padding: 24px 20px;
}

.message {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  animation: fadeInUp 0.25s ease;
}

.message + .message {
  /* No heavy border between messages */
}

/* ── User message: right-aligned bubble ────────────────────────────── */
.message.user {
  justify-content: flex-end;
}

.message.user .message-content {
  max-width: 85%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.message-bubble {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-xs) var(--radius-lg);
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

.message-bubble p {
  margin: 0;
}

.message.user .message-time {
  margin-top: 4px;
  font-size: 10px;
  color: var(--text-tertiary);
}

/* ── Assistant message: left-aligned with small icon ──────────────── */
.message.assistant {
  align-items: flex-start;
}

.message-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--accent-gradient);
  color: white;
}

.message.assistant .message-content {
  flex: 1;
  min-width: 0;
}

/* ── Message meta row (time + actions) ────────────────────────────── */
.message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  opacity: 1;
  transition: opacity var(--transition);
}

.message .message-meta {
  opacity: 1;
}

.message-meta .message-time {
  font-size: 10px;
  color: var(--text-tertiary);
}

.message-actions {
  display: flex;
  gap: 2px;
}

.msg-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.msg-action-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

/* Legacy fallback */
.message-time {
  font-size: 10px;
  color: var(--text-tertiary);
}

.message-body {
  font-size: 14px;
  line-height: 1.7;
  word-break: break-word;
}

.message-body p {
  margin-bottom: 10px;
}
.message-body p:last-child {
  margin-bottom: 0;
}

.message-body h1, .message-body h2, .message-body h3,
.message-body h4, .message-body h5, .message-body h6 {
  margin: 16px 0 8px;
  font-weight: 600;
}
.message-body h1 { font-size: 1.4em; }
.message-body h2 { font-size: 1.25em; }
.message-body h3 { font-size: 1.1em; }

.message-body ul, .message-body ol {
  margin: 8px 0;
  padding-left: 24px;
}

.message-body li {
  margin-bottom: 4px;
}

.message-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 16px;
  margin: 10px 0;
  background: var(--accent-muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
}

.message-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}
.message-body th, .message-body td {
  padding: 8px 12px;
  border: 1px solid var(--border);
  text-align: left;
}
.message-body th {
  background: var(--bg-surface);
  font-weight: 600;
}

.message-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

.message-body strong { font-weight: 600; }
.message-body em { font-style: italic; }

.message-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Inline Code ──────────────────────────────────────────────────────── */
.message-body code:not(.code-block code) {
  background: var(--bg-surface);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.88em;
  border: 1px solid var(--border);
}

/* ── Code Blocks ──────────────────────────────────────────────────────── */
.code-block {
  margin: 12px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--code-header-bg);
  font-size: 12px;
  color: var(--text-secondary);
}

.code-lang {
  font-weight: 500;
  text-transform: lowercase;
}

.btn-copy-code {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.btn-copy-code:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}
.btn-copy-code.copied {
  color: var(--success);
}

.code-block pre {
  margin: 0;
  padding: 14px;
  background: var(--code-bg);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
}

.code-block code {
  font-family: var(--font-mono);
  color: var(--text-primary);
}

/* ── Syntax Highlighting ──────────────────────────────────────────────── */
.token-keyword { color: #c678dd; }
.token-string { color: #98c379; }
.token-number { color: #d19a66; }
.token-comment { color: #5c6370; font-style: italic; }
.token-function { color: #61afef; }
.token-operator { color: #56b6c2; }
.token-punctuation { color: #abb2bf; }
.token-type { color: #e5c07b; }
.token-property { color: #e06c75; }
.token-tag { color: #e06c75; }
.token-attr { color: #d19a66; }
.token-builtin { color: #56b6c2; }
.token-regex { color: #98c379; }
.token-boolean { color: #d19a66; }

/* (Message action styles consolidated in the Messages section above) */

/* ── Streaming Cursor ─────────────────────────────────────────────────── */
.streaming-cursor {
  display: inline-block;
  width: 7px;
  height: 16px;
  background: var(--accent);
  border-radius: 1px;
  margin-left: 2px;
  animation: blink 0.8s ease-in-out infinite;
  vertical-align: text-bottom;
}

/* ── File Attachments in Messages ─────────────────────────────────────── */
.message-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.message-file-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-secondary);
}

.message-image-preview {
  max-width: 300px;
  max-height: 200px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  cursor: pointer;
  transition: transform var(--transition);
}
.message-image-preview:hover {
  transform: scale(1.02);
}

/* ── Scroll to Bottom ─────────────────────────────────────────────────── */
.scroll-bottom-btn {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 5;
  display: none;
  transition: all var(--transition);
  animation: fadeInUp 0.2s ease;
}
.scroll-bottom-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}
.scroll-bottom-btn.visible {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Input Area ───────────────────────────────────────────────────────── */
#input-area {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.input-container {
  max-width: 768px;
  margin: 0 auto;
}

.input-toggles {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.toggle-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}
.toggle-chip:hover {
  border-color: var(--accent);
}
.toggle-chip.active {
  background: var(--accent-muted);
  border-color: var(--accent);
  color: var(--accent);
}

.file-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.file-preview-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  animation: fadeInUp 0.15s ease;
}

.file-preview-chip .remove-file {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: 10px;
  color: var(--text-tertiary);
  transition: all var(--transition-fast);
}
.file-preview-chip .remove-file:hover {
  background: var(--error-bg);
  color: var(--error);
}

.image-preview-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
}

.input-box {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.input-box textarea {
  flex: 1;
  resize: none;
  border: none;
  background: transparent;
  padding: 4px 0;
  min-height: 24px;
  max-height: var(--input-max-height);
  line-height: 1.5;
  font-size: 14px;
}
.input-box textarea:focus {
  box-shadow: none;
}

.input-actions-left {
  display: flex;
  align-items: center;
  gap: 2px;
}

.input-actions-right {
  display: flex;
  align-items: center;
  gap: 2px;
}

.input-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.input-btn:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.btn-send {
  background: var(--accent-gradient);
  color: white;
  border-radius: var(--radius-md);
}
.btn-send:hover {
  background: var(--accent-gradient);
  opacity: 0.95;
  transform: scale(1.05);
  color: white;
}
.btn-send:disabled {
  opacity: 0.4;
  transform: none;
  cursor: not-allowed;
}

.btn-stop {
  background: var(--error);
  color: white;
}
.btn-stop:hover {
  background: var(--error);
  opacity: 0.95;
  color: white;
}

.input-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-tertiary);
}

.input-regenerate {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  cursor: pointer;
  margin: 0 auto 8px;
  transition: all var(--transition);
  display: none;
}
.input-regenerate.visible {
  display: flex;
}
.input-regenerate:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

/* ── Drag & Drop Overlay ──────────────────────────────────────────────── */
.drop-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-overlay);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: fadeIn 0.15s ease;
}
.drop-overlay.visible {
  display: flex;
}

.drop-overlay-inner {
  padding: 40px 60px;
  border: 2px dashed var(--accent);
  border-radius: var(--radius-xl);
  background: var(--accent-muted);
  text-align: center;
}

.drop-overlay-inner span {
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
}

.drop-overlay-inner p {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 15px;
}

/* ── Settings Modal ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.15s ease;
}
.modal-overlay.visible {
  display: flex;
}

.modal {
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: scaleIn 0.2s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 17px;
  font-weight: 700;
}

.btn-close-modal {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 16px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.btn-close-modal:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.modal-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.modal-tab {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
}
.modal-tab:hover {
  color: var(--text-primary);
}
.modal-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

/* ── Profile Cards ────────────────────────────────────────────────────── */
.profiles-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}
.profile-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}
.profile-card.active-profile {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.profile-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.profile-card-info {
  flex: 1;
  min-width: 0;
}

.profile-card-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.profile-card-meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-card-actions {
  display: flex;
  gap: 4px;
}

.profile-card-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.profile-card-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}
.profile-card-btn.danger:hover {
  background: var(--error-bg);
  color: var(--error);
}

.btn-add-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px;
  transition: all var(--transition);
  width: 100%;
  margin-top: 4px;
}
.btn-add-profile:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-muted);
}

/* ── Profile Form ─────────────────────────────────────────────────────── */
.profile-form {
  display: none;
}
.profile-form.visible {
  display: block;
  animation: fadeInUp 0.2s ease;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.api-key-wrapper {
  position: relative;
}

.api-key-wrapper input {
  padding-right: 40px;
}

.btn-toggle-key {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  font-size: 13px;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}
.btn-toggle-key:hover {
  color: var(--text-primary);
}

.model-input-wrapper {
  display: flex;
  gap: 8px;
}

.model-input-wrapper select {
  flex: 1;
}

.model-input-wrapper input {
  flex: 1;
}

.advanced-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition);
}
.advanced-toggle:hover {
  color: var(--text-primary);
}
.advanced-toggle .chevron {
  font-size: 10px;
  transition: transform var(--transition);
}
.advanced-toggle.open .chevron {
  transform: rotate(90deg);
}

.advanced-settings {
  display: none;
  padding: 12px 0;
}
.advanced-settings.visible {
  display: block;
  animation: fadeInUp 0.15s ease;
}

.slider-group {
  margin-bottom: 14px;
}

.slider-group .slider-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.slider-group label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.slider-group .slider-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  font-family: var(--font-mono);
}

.slider-group input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  outline: none;
  border: none;
  padding: 0;
}
.slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background: var(--accent);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.toggle-switch {
  width: 40px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--border);
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
}
.toggle-switch.active {
  background: var(--accent);
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background: white;
  transition: transform var(--transition);
}
.toggle-switch.active::after {
  transform: translateX(18px);
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.btn-primary {
  padding: 8px 20px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  color: white;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  opacity: 0.9;
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  padding: 8px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
}
.btn-secondary:hover {
  background: var(--bg-surface-hover);
}

.btn-danger {
  padding: 8px 20px;
  border-radius: var(--radius-md);
  background: var(--error-bg);
  color: var(--error);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
}
.btn-danger:hover {
  background: var(--error);
  color: white;
}

/* ── Appearance Tab ───────────────────────────────────────────────────── */
.theme-options {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.theme-option {
  flex: 1;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 13px;
}
.theme-option:hover {
  border-color: var(--border-light);
}
.theme-option.active {
  border-color: var(--accent);
  background: var(--accent-muted);
}
.theme-option span {
  display: block;
  font-size: 24px;
  margin-bottom: 6px;
}

/* ── Shortcuts Tab ────────────────────────────────────────────────────── */
.shortcuts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shortcut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.shortcut-item:last-child {
  border-bottom: none;
}

.shortcut-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.shortcut-keys {
  display: flex;
  gap: 4px;
}

.kbd {
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-primary);
}

/* ── Toast Notifications ──────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  animation: slideInRight 0.25s ease;
  min-width: 200px;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--error); }
.toast.info { border-left: 3px solid var(--info); }

.toast-icon {
  font-size: 16px;
}

/* ── Confirm Dialog ───────────────────────────────────────────────────── */
.confirm-dialog {
  padding: 24px;
  text-align: center;
  max-width: 360px;
}

.confirm-dialog h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.confirm-dialog p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.confirm-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

/* ── Chat Rename Input ────────────────────────────────────────────────── */
.rename-input {
  width: 100%;
  padding: 4px 8px;
  font-size: 13px;
  border-radius: var(--radius-xs);
  background: var(--bg-input);
  border: 1px solid var(--accent);
}

/* ── Loading States ───────────────────────────────────────────────────── */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 0;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--text-tertiary);
  animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

/* ── Animations ───────────────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Utility Classes ──────────────────────────────────────────────────── */
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Theme Transition ─────────────────────────────────────────────────── */
.theme-transitioning,
.theme-transitioning * {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* ── Model Input Wrapper Custom Styling ── */
.model-input-wrapper button#btn-fetch-models {
  padding: 0 12px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}
.model-input-wrapper button#btn-fetch-models:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}
.model-input-wrapper button#btn-fetch-models:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Auth Overlay ─────────────────────────────────────────────────────── */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.auth-overlay.hidden {
  display: none !important;
}

.auth-card {
  width: 100%;
  max-width: 360px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.3s ease;
}

.auth-logo {
  margin-bottom: 16px;
  display: inline-block;
}

#auth-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

#auth-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.auth-form {
  display: flex;
  flex-direction: column;
}

.auth-switch {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── Generated Images styling ─────────────────────────────────────────── */
.generated-image-container {
  position: relative;
  display: inline-block;
  max-width: 100%;
  border-radius: var(--radius-lg);
  margin: 12px 0 6px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  min-width: 250px;
  min-height: 250px;
}

.generated-image-container.loading {
  min-height: 250px;
}

.gen-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  transition: filter var(--transition-slow);
}

.generated-image-container.loading .gen-image {
  filter: blur(12px) brightness(0.6);
}

.image-spinner-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.generated-image-container.loading .image-spinner-wrapper {
  display: flex;
}

.image-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: img-spin 0.8s linear infinite;
}

@keyframes img-spin {
  to { transform: rotate(360deg); }
}

.btn-image-download {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  z-index: 6;
}

.generated-image-container:hover .btn-image-download {
  opacity: 1;
  transform: translateY(0);
}

.btn-image-download:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.btn-image-regenerate {
  position: absolute;
  bottom: 12px;
  right: 48px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  z-index: 6;
}

.generated-image-container:hover .btn-image-regenerate {
  opacity: 1;
  transform: translateY(0);
}

.btn-image-regenerate:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* Collapsible Thinking Accordion */
.thinking-details {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 12px 0;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-secondary);
}
.thinking-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-tertiary);
  user-select: none;
  outline: none;
  display: list-item;
}
.thinking-details summary:hover {
  color: var(--text-primary);
}
.thinking-content {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}


