/* ===================== TOKENS ===================== */
:root {
  --gold: #b8952a;
  --gold-light: #d4ac3a;
  --gold-dim: rgba(184,149,42,0.15);
  --gold-border: rgba(184,149,42,0.22);
  --gold-border-strong: rgba(184,149,42,0.5);
  --gold-badge: rgba(184,149,42,0.55);
  --gold-badge-border: rgba(184,149,42,0.18);

  --radius-sm: 3px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 40px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --left-bg: #0f0f0f;
  --left-border: rgba(255,255,255,0.05);
  --left-avatar-bg: #0a0a0a;
  --left-text-primary: #f5f0e8;
  --left-text-dim: rgba(245,240,232,0.45);
  --left-text-muted: rgba(245,240,232,0.28);
  --left-text-faint: rgba(245,240,232,0.15);
  --left-divider: rgba(255,255,255,0.06);
}

[data-theme="dark"] {
  --bg-page: #0a0a0a;
  --bg-right: #111111;
  --bg-bubble-ai: #1e1e1e;
  --bg-bubble-user: #252520;
  --bg-input: #181818;

  --right-text-primary: #f5f0e8;
  --right-text-secondary: rgba(245,240,232,0.55);
  --right-text-tertiary: rgba(245,240,232,0.3);
  --right-text-faint: rgba(245,240,232,0.18);
  --right-text-input: #f5f0e8;
  --right-text-ph: rgba(245,240,232,0.28);
  --right-text-user: #f0ebe0;

  --right-divider: rgba(245,240,232,0.06);
  --right-border-mid: rgba(245,240,232,0.09);
  --right-border-input: rgba(184,149,42,0.22);
  --right-border-focus: rgba(184,149,42,0.55);

  --send-bg: #f5f0e8;
  --send-ic: #0a0a0a;

  --topbar-bg: #0f0f0f;
  --topbar-text: #f5f0e8;
  --topbar-pill-text: rgba(245,240,232,0.35);
  --topbar-btn-bg: rgba(245,240,232,0.05);

  --scrollbar: rgba(184,149,42,0.12);
}

[data-theme="light"] {
  --bg-page: #ede8de;
  --bg-right: #f5f0e8;
  --bg-bubble-ai: #1a1a18;
  --bg-bubble-user: #e0d9cc;
  --bg-input: #ffffff;

  --right-text-primary: #1a1510;
  --right-text-secondary: rgba(26,21,16,0.6);
  --right-text-tertiary: rgba(26,21,16,0.38);
  --right-text-faint: rgba(26,21,16,0.2);
  --right-text-input: #1a1510;
  --right-text-ph: rgba(26,21,16,0.32);
  --right-text-user: #1a1510;

  --right-divider: rgba(26,21,16,0.08);
  --right-border-mid: rgba(26,21,16,0.1);
  --right-border-input: rgba(184,149,42,0.3);
  --right-border-focus: rgba(184,149,42,0.65);

  --send-bg: #1a1510;
  --send-ic: #f5f0e8;

  --topbar-bg: #111111;
  --topbar-text: #f5f0e8;
  --topbar-pill-text: rgba(245,240,232,0.35);
  --topbar-btn-bg: rgba(245,240,232,0.05);

  --scrollbar: rgba(26,21,16,0.1);
}

/* ===================== BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-page);
  color: var(--right-text-primary);
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s, color 0.25s;
  display: flex;
  flex-direction: column;
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 2px; }

/* ===================== TOPBAR ===================== */
.topbar {
  height: clamp(52px, 8vw, 64px);
  background: var(--topbar-bg);
  border-bottom: 0.5px solid var(--left-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(12px, 3.4vw, 32px);
  flex-shrink: 0;
  animation: fadeDown 0.4s var(--ease) both;
  transition: background 0.25s;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.5vw, 12px);
  min-width: 0;
}
.topbar-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--left-avatar-bg);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar-avatar span {
  font-family: 'Playfair Display', serif;
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  color: var(--gold-light);
  line-height: 1;
  letter-spacing: -0.02em;
}
.topbar-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(14px, 2.2vw, 17px);
  font-weight: 600;
  color: var(--topbar-text);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-name em {
  font-style: italic;
  color: var(--gold-light);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.2vw, 10px);
  flex-shrink: 0;
}
.topbar-pill {
  font-size: clamp(8.5px, 1.3vw, 10.5px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--topbar-pill-text);
  border: 0.5px solid var(--gold-border);
  border-radius: 20px;
  padding: 4px clamp(7px, 1.2vw, 12px);
}
.theme-btn {
  width: clamp(30px, 4vw, 34px);
  height: clamp(30px, 4vw, 34px);
  border-radius: 50%;
  background: var(--topbar-btn-bg);
  border: 0.5px solid var(--gold-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, border-color 0.18s;
}
.theme-btn:hover {
  background: var(--gold-dim);
  border-color: var(--gold-border-strong);
}
.theme-btn svg {
  width: clamp(12px, 1.8vw, 14px);
  height: clamp(12px, 1.8vw, 14px);
  stroke: var(--gold-light);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.close-btn svg {
  width: clamp(13px, 2vw, 15px);
  height: clamp(13px, 2vw, 15px);
}

/* ===================== MAIN LAYOUT ===================== */
.main {
  flex: 1;
  display: grid;
  grid-template-columns: 340px 1fr;
  overflow: hidden;
  min-height: 0;
}

/* ===================== LEFT PANEL ===================== */
.left-panel {
  background: var(--left-bg);
  border-right: 0.5px solid var(--left-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background 0.25s;
  animation: slideRight 0.45s var(--ease) both;
}

.left-hero {
  padding: 36px 32px 28px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.left-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 260px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(184,149,42,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.left-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0.5px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(184,149,42,0.1) 60%, transparent 100%);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  animation: fadeUp 0.5s 0.1s var(--ease) both;
}
.eyebrow-bar {
  width: 22px;
  height: 1px;
  background: var(--gold);
}
.eyebrow-txt {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--left-text-primary);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  animation: fadeUp 0.5s 0.18s var(--ease) both;
}
.hero-name em {
  font-style: italic;
  color: var(--gold-light);
  display: inline;
}

.hero-desc {
  font-size: 12.5px;
  font-weight: 300;
  color: var(--left-text-dim);
  line-height: 1.65;
  margin-bottom: 22px;
  animation: fadeUp 0.5s 0.24s var(--ease) both;
}

.hero-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  animation: fadeUp 0.5s 0.3s var(--ease) both;
}
.htag {
  border: 0.5px solid rgba(184,149,42,0.28);
  border-radius: var(--radius-sm);
  padding: 4px 9px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--left-text-muted);
  cursor: pointer;
  transition: all 0.18s;
  user-select: none;
}
.htag:hover,
.htag.active {
  background: rgba(184,149,42,0.1);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* QUICK PROMPTS */
.left-prompts {
  flex: 1;
  overflow-y: auto;
  padding: 20px 32px 24px;
  animation: fadeUp 0.5s 0.42s var(--ease) both;
}
.section-label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--left-text-muted);
  margin-bottom: 12px;
}
.prompt-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prompt-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0.5px solid rgba(184,149,42,0.2);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.18s;
  background: transparent;
  user-select: none;
}
.prompt-item:hover {
  background: var(--gold-dim);
  border-color: rgba(184,149,42,0.45);
}
.prompt-item:hover .prompt-arrow {
  opacity: 1;
  transform: translateX(0);
}
.prompt-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
  flex-shrink: 0;
}
.prompt-text {
  font-size: 12.5px;
  font-weight: 300;
  color: var(--left-text-dim);
  flex: 1;
  line-height: 1.4;
  transition: color 0.18s;
}
.prompt-item:hover .prompt-text {
  color: var(--left-text-primary);
}
.prompt-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.18s;
  color: var(--gold);
  font-size: 13px;
  line-height: 1;
}

/* LEFT FOOTER */
.left-footer {
  padding: 14px 32px;
  border-top: 0.5px solid var(--left-border);
  flex-shrink: 0;
  animation: fadeUp 0.5s 0.48s var(--ease) both;
}
.left-footer-links {
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-link {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--left-text-muted);
  text-decoration: none;
  transition: color 0.18s;
  cursor: pointer;
}
.footer-link:hover {
  color: var(--gold-light);
}
.footer-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--left-text-faint);
}

/* ===================== RIGHT PANEL ===================== */
.right-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-right);
  transition: background 0.25s;
  animation: slideLeft 0.45s var(--ease) both;
}

/* CHAT HEADER STRIP */
.chat-strip {
  padding: 18px 40px 14px;
  border-bottom: 0.5px solid var(--right-divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  transition: border-color 0.25s;
}
.chat-strip-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4caf7a;
  box-shadow: 0 0 0 2px rgba(76,175,122,0.2);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,
  100% { box-shadow: 0 0 0 2px rgba(76,175,122,0.2); }
  50% { box-shadow: 0 0 0 5px rgba(76,175,122,0.08); }
}
.chat-strip-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--right-text-primary);
  letter-spacing: 0.01em;
  transition: color 0.25s;
}
.chat-strip-sub {
  font-size: 11px;
  font-weight: 300;
  color: var(--right-text-tertiary);
  transition: color 0.25s;
}
.model-badge {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--gold-badge);
  border: 0.5px solid var(--gold-badge-border);
  border-radius: 4px;
  padding: 3px 8px;
}

/* MESSAGES */
.messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 32px 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scroll-behavior: smooth;
}

.msg-date {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.msg-date span {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--right-text-tertiary);
  white-space: nowrap;
  transition: color 0.25s;
}
.msg-date::before,
.msg-date::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--right-divider);
  transition: background 0.25s;
}

/* AI message group */
.msg-ai-group {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 680px;
  animation: slideInLeft 0.3s var(--ease) both;
}
.ai-avatar-lg {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--left-avatar-bg);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.ai-avatar-lg span {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  color: var(--gold-light);
  line-height: 1;
  letter-spacing: -0.02em;
}
.ai-avatar-icon {
  width: 24px;
  height: 24px;
  color: var(--gold-light);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.ai-avatar-photo {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.ai-content {
  flex: 1;
  min-width: 0;
}
.ai-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ai-sender {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--right-text-primary);
  letter-spacing: 0.02em;
  transition: color 0.25s;
}
.ai-time {
  font-size: 10.5px;
  font-weight: 300;
  color: var(--right-text-tertiary);
  transition: color 0.25s;
}
.ai-bubble {
  background: var(--bg-bubble-ai);
  border: 0.5px solid rgba(184,149,42,0.1);
  border-radius: var(--radius-sm) var(--radius-lg) var(--radius-lg) var(--radius-lg);
  padding: 14px 18px 16px;
  position: relative;
  display: inline-block;
  max-width: 100%;
  transition: background 0.25s;
}
.ai-bubble::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 40px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 80%);
  border-radius: 1px;
  opacity: 0.35;
}
.ai-bubble-text {
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(245,240,232,0.88);
  line-height: 1.7;
  white-space: normal;
  word-break: break-word;
}
.ai-bubble-text strong {
  font-weight: 500;
  color: var(--gold-light);
}
.ai-bubble-text p {
  margin: 0;
}
.ai-bubble-text p + p {
  margin-top: 8px;
}
.ai-bubble-text ul {
  margin: 8px 0 0 18px;
  padding: 0;
}
.ai-bubble-text li {
  margin: 4px 0;
}
.ai-bubble-text code {
  font-family: 'DM Mono', monospace;
  font-size: 0.92em;
  background: rgba(184,149,42,0.12);
  border: 0.5px solid rgba(184,149,42,0.35);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--gold-light);
}
.ai-bubble-text a {
  color: var(--gold-light);
  text-decoration: underline;
}

/* User message group */
.msg-user-group {
  display: flex;
  justify-content: flex-end;
  animation: slideInRight 0.25s var(--ease) both;
}
.user-inner {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.user-name-row {
  font-size: 10.5px;
  font-weight: 300;
  color: var(--right-text-tertiary);
  transition: color 0.25s;
}
.user-bubble {
  background: var(--bg-bubble-user);
  border: 0.5px solid var(--gold-border);
  border-radius: var(--radius-lg) var(--radius-sm) var(--radius-lg) var(--radius-lg);
  padding: 12px 18px;
  transition: background 0.25s;
}
.user-bubble-text {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--right-text-user);
  line-height: 1.65;
  transition: color 0.25s;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Typing */
.msg-typing {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  animation: slideInLeft 0.3s var(--ease) both;
}
.typing-dots {
  display: flex;
  gap: 5px;
  padding: 14px 18px;
  background: var(--bg-bubble-ai);
  border: 0.5px solid rgba(184,149,42,0.1);
  border-radius: var(--radius-sm) var(--radius-lg) var(--radius-lg) var(--radius-lg);
  align-items: center;
  transition: background 0.25s;
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: dp 1.5s ease-in-out infinite;
}
.dot:nth-child(2) { animation-delay: 0.18s; }
.dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes dp {
  0%,
  60%,
  100% { opacity: 0.2; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1.15); }
}

/* ===================== INPUT ZONE ===================== */
.input-zone {
  padding: 16px 40px 28px;
  flex-shrink: 0;
  border-top: 0.5px solid var(--right-divider);
  background: var(--bg-right);
  transition: background 0.25s, border-color 0.25s;
}
.mobile-prompt-row {
  display: none;
}
.mobile-prompt-chip {
  flex-shrink: 0;
  border: 0.5px solid var(--gold-border);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 300;
  color: var(--right-text-secondary);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.mobile-prompt-chip:hover {
  border-color: var(--gold-border-strong);
  color: var(--right-text-primary);
  background: var(--gold-dim);
}
.input-bar {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--right-border-input);
  border-radius: var(--radius-pill);
  padding: 8px 8px 8px 22px;
  gap: 10px;
  transition: border-color 0.2s, background 0.25s;
}
.input-bar:focus-within {
  border-color: var(--right-border-focus);
}
.input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13.5px;
  font-weight: 300;
  color: var(--right-text-input);
  font-family: 'DM Sans', sans-serif;
  caret-color: var(--gold);
  transition: color 0.25s;
}
.input-field::placeholder {
  color: var(--right-text-ph);
}

.input-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.input-shortcut {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--right-text-tertiary);
  border: 0.5px solid var(--right-border-mid);
  border-radius: 4px;
  padding: 3px 7px;
  line-height: 1.4;
  transition: color 0.25s, border-color 0.25s;
}
.send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--send-bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, transform 0.1s;
  flex-shrink: 0;
}
.send-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.send-btn:hover {
  background: var(--gold);
}
.send-btn:active {
  transform: scale(0.92);
}
.send-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--send-ic);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.18s;
}
.send-btn:hover svg {
  stroke: var(--left-avatar-bg);
}
.input-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.input-meta-left {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--right-text-tertiary);
  transition: color 0.25s;
}
.input-meta-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.meta-link {
  font-size: 10px;
  font-weight: 400;
  color: var(--right-text-tertiary);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.18s;
  letter-spacing: 0.06em;
}
.meta-link:hover {
  color: var(--gold-light);
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===================== RESPONSIVE FALLBACK ===================== */
@media (max-width: 860px) {
  .main { grid-template-columns: 1fr; }
  .left-panel { display: none; }
  .topbar {
    height: clamp(52px, 14vw, 60px);
    padding: 0 16px;
  }
  .topbar-name { font-size: 22px; }
  .topbar-pill { font-size: 10px; }
  .theme-btn {
    width: 38px;
    height: 38px;
  }
  .theme-btn svg {
    width: 17px;
    height: 17px;
  }
  .close-btn svg {
    width: 18px;
    height: 18px;
  }
  .messages-area { padding: 20px 20px 16px; }
  .input-zone { padding: 12px 20px 20px; }
  .chat-strip { padding: 14px 20px; }
  .input-shortcut { display: none; }
  .input-field { font-size: 16px; }
  .mobile-prompt-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
  }
  .mobile-prompt-row::-webkit-scrollbar { display: none; }
}

@media (max-width: 480px) {
  .topbar { padding: 0 12px; }
  .topbar-pill { display: none; }
}

@media (max-width: 370px) {
  .topbar { padding: 0 10px; }
  .topbar-name { font-size: 22px; }
  .topbar-right { gap: 6px; }
  .theme-btn {
    width: 36px;
    height: 36px;
  }
  .theme-btn svg {
    width: 16px;
    height: 16px;
  }
  .close-btn svg {
    width: 17px;
    height: 17px;
  }
}

/* ===================== SELECTION ===================== */
::selection {
  background: rgba(184,149,42,0.22);
  color: var(--right-text-primary);
}
