/* ============================================
   HELIUM AI — STYLES
   Dark premium AI chat interface
   ============================================ */

:root {
  /* Colors */
  --bg-primary: #0d0d0d;
  --bg-secondary: #141414;
  --bg-tertiary: #1a1a1a;
  --bg-elevated: #202020;
  --bg-hover: #252525;
  --bg-active: #2a2a2a;

  --border-subtle: rgba(255,255,255,0.06);
  --border-default: rgba(255,255,255,0.1);
  --border-strong: rgba(255,255,255,0.18);

  --text-primary: #f0ede8;
  --text-secondary: #a0998f;
  --text-muted: #5a5550;
  --text-accent: #c8b8a0;

  --accent: #7c6fff;
  --accent-glow: rgba(124, 111, 255, 0.25);
  --accent-soft: rgba(124, 111, 255, 0.12);
  --accent-hover: #9585ff;

  --green: #4ade80;
  --orange: #fb923c;
  --blue: #60a5fa;

  --sidebar-width: 260px;
  --topbar-height: 56px;
  --input-area-height: 120px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 40px rgba(124,111,255,0.15);

  --transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }
a { text-decoration: none; color: inherit; }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ============ SIDEBAR ============ */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: relative;
  z-index: 100;
  transition: transform var(--transition-slow);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 16px var(--accent-glow);
}

.logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.new-chat-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.new-chat-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* Search */
.sidebar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 10px 8px;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--transition);
}

.sidebar-search:focus-within {
  border-color: var(--border-default);
  color: var(--text-secondary);
}

.sidebar-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.8rem;
  width: 100%;
}

.sidebar-search input::placeholder { color: var(--text-muted); }

/* Section Label */
.sidebar-section-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 8px 14px 4px;
}

/* Chat History */
.chat-history {
  flex: 1;
  overflow-y: auto;
  padding: 4px 8px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-secondary);
  font-size: 0.82rem;
  position: relative;
  group: true;
}

.history-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.history-item.active {
  background: var(--bg-active);
  color: var(--text-primary);
}

.history-item svg { flex-shrink: 0; opacity: 0.5; }
.history-item:hover svg, .history-item.active svg { opacity: 1; }

.history-item-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item-delete {
  opacity: 0;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
  flex-shrink: 0;
}

.history-item:hover .history-item-delete { opacity: 1; }
.history-item-delete:hover { background: rgba(255,80,80,0.15); color: #ff5050; }

/* Sidebar Footer */
.sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid var(--border-subtle);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.user-profile:hover { background: var(--bg-hover); }

.avatar {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.user-plan {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.settings-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}

.settings-btn:hover { background: var(--bg-elevated); color: var(--text-primary); }

/* Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
  backdrop-filter: blur(2px);
}

/* ============ MAIN ============ */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* ============ TOPBAR ============ */
.topbar {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  position: relative;
  z-index: 50;
  flex-shrink: 0;
}

.menu-toggle {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
  display: none;
}

.menu-toggle:hover { background: var(--bg-hover); color: var(--text-primary); }

/* Model Selector */
.model-selector {
  position: relative;
}

.model-current {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-default);
  background: var(--bg-tertiary);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Syne', sans-serif;
}

.model-current:hover {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

.model-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.model-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: all var(--transition);
  z-index: 200;
}

.model-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.model-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.model-option:hover { background: var(--bg-hover); }
.model-option.active { background: var(--accent-soft); }

.model-option-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  font-family: 'Syne', sans-serif;
}

.model-option-icon.pro { background: linear-gradient(135deg, var(--accent), #a78bfa); color: white; }
.model-option-icon.flash { background: linear-gradient(135deg, var(--orange), #fbbf24); color: white; }
.model-option-icon.nano { background: linear-gradient(135deg, var(--blue), #34d399); color: white; }

.model-option-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.model-option-name {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-primary);
}

.model-option-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.check-icon { color: var(--accent); flex-shrink: 0; }

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.icon-btn:hover { background: var(--bg-hover); color: var(--text-primary); }

/* ============ CHAT AREA ============ */
.chat-area {
  flex: 1;
  overflow-y: auto;
  position: relative;
  scroll-behavior: smooth;
}

/* ============ WELCOME SCREEN ============ */
.welcome-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.welcome-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(124,111,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.welcome-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 680px;
  width: 100%;
  animation: fadeInUp 0.6s ease both;
}

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

.welcome-logo {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.welcome-logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  animation: spin-slow 8s linear infinite;
}

.welcome-logo-ring::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

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

.welcome-logo-inner {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-tertiary));
  border: 1px solid var(--border-default);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.welcome-title {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  text-align: center;
}

.welcome-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Suggestion Grid */
.suggestion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.suggestion-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.4;
  animation: fadeInUp 0.6s ease both;
}

.suggestion-card:nth-child(1) { animation-delay: 0.05s; }
.suggestion-card:nth-child(2) { animation-delay: 0.1s; }
.suggestion-card:nth-child(3) { animation-delay: 0.15s; }
.suggestion-card:nth-child(4) { animation-delay: 0.2s; }
.suggestion-card:nth-child(5) { animation-delay: 0.25s; }
.suggestion-card:nth-child(6) { animation-delay: 0.3s; }

.suggestion-card:hover {
  background: var(--bg-elevated);
  border-color: var(--border-default);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.suggestion-icon { font-size: 1.2rem; }

/* ============ MESSAGES ============ */
.messages-container {
  display: none;
  flex-direction: column;
  padding: 24px 0 16px;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.messages-container.visible { display: flex; }

.message {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  animation: messageIn 0.3s ease both;
  position: relative;
}

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

.message:hover { background: rgba(255,255,255,0.015); border-radius: var(--radius-md); }

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}

.message.user .message-avatar {
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  color: white;
}

.message.assistant .message-avatar {
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-tertiary));
  border: 1px solid var(--border-default);
  color: var(--accent);
}

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

.message-role {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.message-content {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-primary);
}

.message-content p { margin-bottom: 12px; }
.message-content p:last-child { margin-bottom: 0; }

.message-content code {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.85em;
  font-family: 'Courier New', monospace;
  color: var(--accent-hover);
}

.message-content pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  overflow-x: auto;
  margin: 12px 0;
  position: relative;
}

.message-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
}

.copy-code-btn {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.copy-code-btn:hover { background: var(--bg-hover); color: var(--text-primary); }

.message-content ul, .message-content ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

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

.message-content strong { color: var(--text-primary); font-weight: 600; }

.message-actions {
  display: flex;
  gap: 4px;
  margin-top: 10px;
  opacity: 0;
  transition: opacity var(--transition);
}

.message:hover .message-actions { opacity: 1; }

.msg-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  color: var(--text-muted);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.msg-action-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

/* ============ TYPING INDICATOR ============ */
.typing-indicator {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  animation: messageIn 0.3s ease both;
}

.typing-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-tertiary));
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.typing-body { padding-top: 8px; }

.typing-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* ============ INPUT AREA ============ */
.input-area {
  padding: 12px 16px 16px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.input-wrapper {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-box {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 10px 12px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.input-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-md);
}

.input-tools { display: flex; align-items: center; }

.tool-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}

.tool-btn:hover { background: var(--bg-hover); color: var(--text-secondary); }

textarea#messageInput {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.92rem;
  line-height: 1.6;
  resize: none;
  max-height: 200px;
  overflow-y: auto;
  padding: 4px 0;
}

textarea#messageInput::placeholder { color: var(--text-muted); }

.input-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.char-count {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.send-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--transition);
  flex-shrink: 0;
}

.send-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: scale(1.05);
  box-shadow: 0 0 16px var(--accent-glow);
}

.send-btn:disabled {
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: not-allowed;
}

.input-disclaimer {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============ EMPTY STATE ============ */
.empty-history {
  padding: 20px 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* ============ SCROLL TO BOTTOM ============ */
.scroll-bottom-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

.scroll-bottom-btn.visible { opacity: 1; pointer-events: all; }
.scroll-bottom-btn:hover { background: var(--bg-hover); color: var(--text-primary); }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    z-index: 200;
  }

  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .menu-toggle { display: flex; }

  .suggestion-grid { grid-template-columns: repeat(2, 1fr); }
  .welcome-title { font-size: 1.5rem; }

  .messages-container { padding: 16px 0 8px; }
  .message { padding: 12px 16px; }
}

@media (max-width: 480px) {
  .suggestion-grid { grid-template-columns: 1fr; }
  .char-count { display: none; }
}

/* ============ SELECTION ============ */
::selection {
  background: var(--accent-soft);
  color: var(--text-primary);
}

/* ============ FOCUS VISIBLE ============ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}