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

:root {
  --bg: #080c14;
  --surface: #0e1421;
  --surface2: #141c2e;
  --surface3: #1a2338;
  --border: #1e2d45;
  --border2: #263652;

  --teal: #00c9a7;
  --teal-dim: rgba(0, 201, 167, 0.1);
  --teal-glow: 0 0 16px rgba(0, 201, 167, 0.3);

  --rubika: #8b5cf6;
  --rubika-dim: rgba(139, 92, 246, 0.12);

  --done: #10b981;
  --collecting: #f59e0b;
  --pending: #6b7280;
  --waiting: #374151;

  --code-valid: #10b981;
  --code-valid-dim: rgba(16, 185, 129, 0.12);
  --code-invalid: #ef4444;
  --code-invalid-dim: rgba(239, 68, 68, 0.12);
  --code-pending: #f59e0b;
  --code-pending-dim: rgba(245, 158, 11, 0.12);

  --text: #d1d9e6;
  --text2: #8a99b3;
  --text3: #4b5e78;

  --user-bubble: #1a2845;
  --bot-bubble: #0a2820;

  --font-ui: "Vazirmatn", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  /* Firefox thin scrollbars everywhere, matching the webkit rules below */
  scrollbar-width: thin;
  scrollbar-color: var(--border2) transparent;
}

/* ── App grid ── */
.app {
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: 280px 1fr 320px;
  height: 100vh;
  overflow: hidden;
}

/* ── Header ── */
header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 10px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
header h1 {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.06em;
}
.nav-link {
  font-size: 12.5px;
  color: var(--text2);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border2);
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--text);
  border-color: var(--teal);
  background: var(--surface2);
}
.nav-link.active {
  color: var(--teal);
  border-color: var(--teal);
  background: var(--teal-dim);
}
.demo-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.35);
  white-space: nowrap;
}
.header-title-group {
  /* display: flex; */
  /* align-items: center; */
  gap: 14px;
  /* flex-wrap: wrap; */
}
.rotate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0b0f14;
  color: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
html.mobile-blocked,
html.mobile-blocked body {
  overflow: hidden;
}
html.mobile-blocked .app {
  pointer-events: none;
  user-select: none;
  filter: blur(2px);
}
.rotate-overlay.show {
  display: flex;
}
.rotate-icon {
  font-size: 48px;
  margin-bottom: 16px;
  animation: rotate-pulse 1.6s ease-in-out infinite;
}
.rotate-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}
.rotate-sub {
  font-size: 13px;
  color: #9aa5b1;
  margin: 0;
}
@keyframes rotate-pulse {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(90deg); }
}
.desktop-mode-banner {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 99998;
  background: #1a2733;
  color: #fff;
  font-size: 12px;
  padding: 10px 14px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.desktop-mode-banner.show { display: flex; }
#desktop-mode-dismiss {
  background: none; border: none; color: #9aa5b1;
  font-size: 14px; cursor: pointer; padding: 4px 8px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 6px var(--teal);
  animation: pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}
.stat-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--surface2);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text2);
  white-space: nowrap;
}
.stat-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-rubika {
  background: var(--rubika);
}
.dot-teal {
  background: var(--teal);
}

/* ── Sidebar ── */
aside {
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar-filters {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filter-row {
  display: flex;
  gap: 6px;
}
.filter-btn {
  flex: 1;
  padding: 5px 0;
  border-radius: var(--r-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text3);
  font-size: 11px;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover {
  background: var(--surface2);
  color: var(--text2);
  border-color: var(--border2);
}
.filter-btn.active {
  background: var(--teal-dim);
  color: var(--teal);
  border-color: var(--teal);
}
.filter-label {
  font-size: 10px;
  color: var(--text3);
  padding: 0 2px;
  font-family: var(--font-mono);
}
.conv-list {
  flex: 1;
  overflow-y: auto;
}
.conv-item {
  position: relative;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.conv-item:hover {
  background: var(--surface2);
}
.conv-item.active {
  background: var(--teal-dim);
  border-right: 2px solid var(--teal);
}
.conv-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.conv-avatar.rubika {
  background: var(--rubika-dim);
  color: var(--rubika);
}
.conv-meta {
  flex: 1;
  min-width: 0;
}
.conv-name {
  font-weight: 600;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conv-preview {
  color: var(--text3);
  font-size: 11px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conv-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.conv-time {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text3);
}
.flow-badge {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
}
.flow-badge.done {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.flow-badge.collecting {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
}
.flow-badge.pending {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
}
.flow-badge.waiting {
  background: rgba(55, 65, 81, 0.15);
  color: #6b7280;
}
.conv-delete-btn {
  opacity: 0;
  background: transparent;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 4px;
  transition: all 0.15s;
}
.conv-item:hover .conv-delete-btn {
  opacity: 1;
}
.conv-delete-btn:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.14);
}

/* ── Chat panel ── */
main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  border-left: 1px solid var(--border);
}
.chat-header {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.chat-header-name {
  font-weight: 700;
  font-size: 14px;
}
.chat-header-sub {
  font-size: 11px;
  color: var(--text2);
  margin-top: 1px;
  font-family: var(--font-mono);
}
.chat-header-right {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-header-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text3);
}
.chat-delete-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-sm);
  border: 1px solid #ef4444;
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
  font-family: var(--font-ui);
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.chat-delete-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}
.messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text3);
}
.empty-icon {
  font-size: 36px;
  opacity: 0.35;
}
.empty-state p {
  font-size: 12px;
}

/* ── Bubbles ── */
.bubble-row {
  display: flex;
  flex-direction: column;
  max-width: 72%;
}
.bubble-row.incoming {
  align-self: flex-end;
  align-items: flex-end;
}
.bubble-row.outgoing {
  align-self: flex-start;
  align-items: flex-start;
}
.bubble {
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.bubble-row.incoming .bubble {
  background: var(--user-bubble);
  border: 1px solid var(--border2);
  border-bottom-right-radius: 3px;
}
.bubble-row.outgoing .bubble {
  background: var(--bot-bubble);
  border: 1px solid rgba(0, 201, 167, 0.18);
  border-bottom-left-radius: 3px;
  color: #6ee7c0;
}
.bubble-row.new-msg .bubble {
  animation: glow-in 0.5s ease-out;
}
@keyframes glow-in {
  from {
    box-shadow: var(--teal-glow);
  }
  to {
    box-shadow: none;
  }
}
.bubble-time {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text3);
  margin-top: 3px;
  padding: 0 3px;
}
.dir-label {
  font-size: 9.5px;
  font-weight: 600;
  margin-bottom: 2px;
  padding: 0 3px;
  color: var(--text3);
}
.bubble-row.outgoing .dir-label {
  color: var(--teal);
}

/* ── User info panel ── */
.user-panel {
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.user-panel-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text3);
  text-transform: uppercase;
  flex-shrink: 0;
}
.user-panel-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.panel-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text3);
  font-size: 12px;
  padding: 20px;
  text-align: center;
}

/* avatar block */
.user-avatar-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 0 8px;
}
.user-avatar-big {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}
.user-avatar-big.rubika {
  background: var(--rubika-dim);
  color: var(--rubika);
  border: 1.5px solid var(--rubika);
}
.user-username {
  font-size: 14px;
  font-weight: 700;
}
.user-platform-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.user-platform-tag.rubika {
  background: var(--rubika-dim);
  color: var(--rubika);
}

/* section card */
.info-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow-x: hidden;
}
.info-card-title {
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text3);
  border-bottom: 1px solid var(--border);
  background: var(--surface3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.info-card-title-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}
.info-card-title-badge.valid {
  background: var(--code-valid-dim);
  color: #34d399;
}
.info-card-title-badge.invalid {
  background: var(--code-invalid-dim);
  color: #f87171;
}
.info-card-title-badge.mixed {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
}
.info-card-title-badge.none {
  background: var(--surface3);
  color: var(--text3);
}
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.info-row:last-child {
  border-bottom: none;
}
.info-key {
  color: var(--text3);
  min-width: 110px;
  flex-shrink: 0;
  padding-top: 1px;
}
.info-val {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11.5px;
  word-break: break-all;
  flex: 1;
}
.info-val.empty {
  color: var(--text3);
  font-style: italic;
  font-family: var(--font-ui);
}

/* Personal-info block: was inline max-height/overflow before — now a
   proper class so it gets the same thin scrollbar treatment as every
   other scrollable region instead of the thicker default one. */
.info-scroll-260 {
  max-height: 260px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Promo code history */
.code-list {
  display: flex;
  flex-direction: column;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
}
.code-entry {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.code-entry:last-child {
  border-bottom: none;
}
.code-entry:hover {
  background: var(--surface3);
}
.code-entry-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.code-entry-num {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text3);
  min-width: 18px;
}
.code-value {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  flex: 1;
  letter-spacing: 0.04em;
}
.code-value.valid {
  color: #34d399;
}
.code-value.invalid {
  color: #f87171;
}
.code-value.pending {
  color: #fcd34d;
}
.code-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.code-status-tag.valid {
  background: var(--code-valid-dim);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.code-status-tag.invalid {
  background: var(--code-invalid-dim);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.code-status-tag.pending {
  background: var(--code-pending-dim);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.code-entry-times {
  display: flex;
  gap: 12px;
  padding-right: 26px;
}
.code-time-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.code-time-label {
  font-size: 9px;
  color: var(--text3);
  font-family: var(--font-mono);
}
.code-time-val {
  font-size: 10px;
  color: var(--text2);
  font-family: var(--font-mono);
}
.code-empty {
  padding: 16px 12px;
  text-align: center;
  color: var(--text3);
  font-size: 11.5px;
}
.code-summary {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface3);
}
.code-summary-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}
.code-summary-pill.valid {
  background: var(--code-valid-dim);
  color: #34d399;
}
.code-summary-pill.invalid {
  background: var(--code-invalid-dim);
  color: #f87171;
}
.code-summary-pill.pending {
  background: var(--code-pending-dim);
  color: #fcd34d;
}

/* flow state bar */
.flow-state-block {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flow-state-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text3);
}
.flow-progress {
  display: flex;
  gap: 4px;
  align-items: center;
}
.flow-step {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border2);
  transition: background 0.3s;
}
.flow-step.active {
  background: var(--collecting);
}
.flow-step.complete {
  background: var(--teal);
}
.flow-current {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
}
.flow-current span {
  color: var(--teal);
}

/* danger zone in user panel */
.danger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 8px 0;
  border-radius: var(--r-md);
  border: 1px solid #ef4444;
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.danger-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* ── Toolbar ── */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-right: auto;
  margin-bottom: auto;
}
.input-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--r-sm);
  padding: 3px 3px 3px 10px;
}
.input-group-label {
  font-size: 11px;
  color: var(--text3);
  white-space: nowrap;
}
.input-group input[type="number"],
.input-group input[type="text"] {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
}
.input-group input[type="number"] {
  width: 70px;
  text-align: center;
}
#export-date {
  width: 96px;
  text-align: center;
}
#export-date::placeholder {
  color: var(--text3);
}
.tool-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--text2);
  font-family: var(--font-ui);
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.tool-btn:hover {
  background: var(--surface3);
  color: var(--text);
  border-color: var(--teal);
}
.tool-btn.teal {
  background: var(--teal-dim);
  color: var(--teal);
  border-color: var(--teal);
}
.tool-btn.teal:hover {
  background: rgba(0, 201, 167, 0.2);
}
.tool-btn.amber {
  background: rgba(245, 158, 11, 0.1);
  color: #fcd34d;
  border-color: #f59e0b;
}
.tool-btn.amber:hover {
  background: rgba(245, 158, 11, 0.2);
}
.tool-btn.violet {
  background: var(--rubika-dim);
  color: #c4b5fd;
  border-color: var(--rubika);
}
.tool-btn.violet:hover {
  background: rgba(139, 92, 246, 0.2);
}
.tool-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.tool-btn .spinner {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: spin 0.7s linear infinite;
  display: none;
}
.tool-btn.loading .spinner {
  display: inline-block;
}
.tool-btn.loading .btn-icon {
  display: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: var(--r-md);
  font-size: 12.5px;
  font-family: var(--font-ui);
  background: var(--surface3);
  border: 1px solid var(--border2);
  color: var(--text);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
}
.toast.ok {
  border-color: var(--teal);
  color: var(--teal);
}
.toast.err {
  border-color: #ef4444;
  color: #f87171;
}

/* ── Misc ── */
.platform-badge {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 5px;
}
.platform-badge.rubika {
  background: var(--rubika-dim);
  color: #a78bfa;
}
.loading {
  color: var(--text3);
  font-size: 11.5px;
  padding: 16px;
  text-align: center;
  font-family: var(--font-mono);
}
.stat_rapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 0.75rem;
}

/* ════════════════════════════════════
   SCROLLBARS — unified thin style
   Applied to every scrollable region: sidebar conv-list, chat
   messages-area, right-side user-panel-body, code-list, and the
   260px personal-info block. Previously some of these relied on the
   browser default (thick, mismatched) scrollbar; now every region
   below shares the same 3px, rounded, low-contrast thumb so nothing
   looks broken or out of place.
   ════════════════════════════════════ */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--dim, var(--text3));
}

.conv-list::-webkit-scrollbar,
.messages-area::-webkit-scrollbar,
.user-panel-body::-webkit-scrollbar,
.code-list::-webkit-scrollbar,
.info-scroll-260::-webkit-scrollbar {
  width: 3px;
}
.conv-list::-webkit-scrollbar-thumb,
.messages-area::-webkit-scrollbar-thumb,
.user-panel-body::-webkit-scrollbar-thumb,
.code-list::-webkit-scrollbar-thumb,
.info-scroll-260::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 2px;
}
.scrollable {
  scrollbar-width: thin;
  scrollbar-color: var(--border2) transparent;
}

/* ── Responsive: collapse the 3-column grid on narrow / mobile screens ── */
