:root {
  color-scheme: dark light;
  /* Цвета по умолчанию (тёмная тема) */
  --bg: #090d16;
  --panel: #111827;
  --panel-hover: #1f2937;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f3f4f6;
  --muted: #9ca3af;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.16);
  --danger: #ef4444;
  --user-bubble: #2563eb;
  --user-text: #ffffff;
  --banner-bg: rgba(239, 68, 68, 0.16);
  --banner-text: #fca5a5;
  --banner-border: rgba(239, 68, 68, 0.32);
}

/* Адаптация под светлую тему пользователя */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f9fafb;
    --panel: #ffffff;
    --panel-hover: #f3f4f6;
    --border: rgba(0, 0, 0, 0.1);
    --text: #111827;
    --muted: #6b7280;
    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, 0.1);
    --user-bubble: #2563eb;
    --user-text: #ffffff;
    --banner-bg: #fee2e2;
    --banner-text: #991b1b;
    --banner-border: #fca5a5;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--banner-bg);
  color: var(--banner-text);
  border-bottom: 1px solid var(--banner-border);
  font-size: 0.88rem;
}

.banner[hidden] { display: none; }
.banner-close { border: none; background: none; color: inherit; cursor: pointer; }

.app {
  flex: 1;
  min-height: 0;
  display: flex;
}

/* ======================================================== */
/* 🗂️ SIDEBAR & SESSIONS LIST                               */
/* ======================================================== */

.sidebar {
  flex-shrink: 0;
  width: 280px;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-title { font-size: 1.15rem; font-weight: 700; }
.app-subtitle { font-size: 0.78rem; text-decoration: none; color: var(--accent); }
.app-subtitle:hover { text-decoration: underline; }

.btn-new-chat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-new-chat:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.sessions-list-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sessions-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 8px 6px;
  letter-spacing: 0.05em;
}

.sessions-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.session-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.86rem;
  transition: all 0.15s ease;
  user-select: none;
}

.session-item:hover {
  background: var(--panel-hover);
  color: var(--text);
}

.session-item.active {
  background: rgba(59, 130, 246, 0.15);
  color: var(--text);
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.session-icon { font-size: 0.85rem; flex-shrink: 0; }
.session-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.session-delete-btn {
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.76rem;
  opacity: 0.45;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.session-item:hover .session-delete-btn,
.session-item.active .session-delete-btn {
  opacity: 0.75;
}

.session-delete-btn:hover,
.session-delete-btn:active {
  opacity: 1 !important;
  color: var(--danger);
  background: rgba(239, 68, 68, 0.18);
  transform: scale(1.05);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.15);
}

.settings > summary { cursor: pointer; font-size: 0.84rem; color: var(--muted); padding: 4px 0; }
.settings-body { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.advanced-settings > summary { cursor: pointer; font-size: 0.78rem; color: var(--muted); }
.advanced-body { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; padding-left: 8px; border-left: 2px solid var(--border); }
.field { display: flex; flex-direction: column; gap: 3px; font-size: 0.8rem; }
.field textarea { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 6px; background: var(--bg); color: var(--text); font: inherit; }

.export-chat-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  padding: 6px;
  font-size: 0.8rem;
  cursor: pointer;
}
.export-chat-btn:hover { color: var(--text); border-color: var(--accent); }

/* Main Section */
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mobile-bar {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

@media (max-width: 760px) {
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 290px; max-width: 85vw;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 40;
  }
  .app.sidebar-open .sidebar { transform: translateX(0); }
  .mobile-bar { display: flex; }
  .sidebar-backdrop {
    display: block; position: fixed; inset: 0; z-index: 35;
    background: rgba(0, 0, 0, 0.7); opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .app.sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
}

.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; }
.chat-log { display: flex; flex-direction: column; gap: 20px; max-width: 860px; width: 100%; margin: 0 auto; padding: 30px 16px 80px; min-height: 100%; }

.empty-state {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  max-width: 580px;
  width: 100%;
}

.empty-badge {
  padding: 4px 12px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
}

.empty-hint { color: var(--muted); font-size: 0.92rem; }

/* Центральная карточка */
.center-community-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.center-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 8px;
  margin-bottom: 6px;
}

.center-card-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.center-card-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 14px;
  text-align: left;
  line-height: 1.45;
}

.center-card-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-community {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-community:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-community.btn-support { border-color: rgba(244, 63, 94, 0.4); color: #fda4af; }
.btn-community.btn-support:hover { background: #f43f5e; color: #fff; border-color: #f43f5e; }

.empty-state-report-btn {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.82rem;
  cursor: pointer;
}
.empty-state-report-btn:hover { color: var(--text); border-color: var(--accent); }

/* ======================================================== */
/* 💬 РАЗДЕЛЕНИЕ СООБЩЕНИЙ                                  */
/* ======================================================== */

.msg {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  width: 100%;
}

.msg.user {
  align-self: flex-end;
  align-items: flex-end;
  max-width: 75%;
}

.msg.assistant {
  align-self: flex-start;
  align-items: flex-start;
  max-width: 85%;
  margin-right: auto;
}

.bubble {
  padding: 12px 16px;
  border-radius: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.msg.user .bubble {
  background: var(--user-bubble);
  color: var(--user-text);
  border-bottom-right-radius: 4px;
  white-space: pre-wrap;
}

.msg.assistant .bubble {
  padding: 0;
  border-radius: 0;
  color: var(--text);
  width: 100%;
}

.md p, .md pre, .md blockquote { margin: 8px 0; }
.md ol { list-style-type: decimal; padding-left: 24px !important; margin: 8px 0; }
.md ul { list-style-type: disc; padding-left: 20px !important; margin: 8px 0; }
.md li { margin: 4px 0; line-height: 1.6; }

/* ⏳ АНИМАЦИЯ ОЖИДАНИЯ */
.assistant-loader {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}

.typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: typing-blink 1.4s infinite ease-in-out both;
}

.typing i:nth-child(1) { animation-delay: -0.32s; }
.typing i:nth-child(2) { animation-delay: -0.16s; }
.typing i:nth-child(3) { animation-delay: 0s; }

@keyframes typing-blink {
  0%, 80%, 100% { transform: scale(0.3); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

.loader-hint {
  font-size: 0.82rem;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 12px;
  border-radius: 8px;
  line-height: 1.4;
  animation: fadeIn 0.3s ease;
  max-width: fit-content;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-files-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.msg-media { max-width: 240px; max-height: 240px; border-radius: 10px; cursor: zoom-in; display: block; }
.msg-doc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
}
.msg-doc-badge:hover { background: var(--panel); border-color: var(--accent); }

.reasoning {
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 8px;
  width: 100%;
}
.reasoning summary {
  cursor: pointer;
  font-weight: 600;
  user-select: none;
  outline: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.reasoning summary::-webkit-details-marker { display: none; }
.reasoning summary::before {
  content: '▶';
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}
.reasoning[open] summary::before { transform: rotate(90deg); }
.reasoning-body { padding-top: 8px; border-top: 1px solid var(--border); margin-top: 6px; }

.turn-footer-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-top: 8px;
  width: 100%;
}

.stats-popover-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
}

.stats-ok-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
}

.status-svg-completed {
  color: #10b981;
  width: 24px;
  height: 24px;
  display: block;
}

.stats-clock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.stats-clock-btn:hover, .stats-popover-wrapper.active .stats-clock-btn {
  background: var(--panel);
  color: var(--accent);
  border-color: var(--accent);
}

.stats-popover {
  position: absolute; bottom: calc(100% + 8px); left: 0;
  min-width: 210px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: none; flex-direction: column; gap: 5px;
  font-family: ui-monospace, monospace; font-size: 0.74rem;
  z-index: 50; backdrop-filter: blur(8px); pointer-events: none;
}
.stats-popover-wrapper:hover .stats-popover, .stats-popover-wrapper.active .stats-popover { display: flex; }
.stats-row { display: flex; align-items: center; justify-content: space-between; }
.stats-row span { color: var(--muted); }
.stats-row b { color: var(--text); }
.stats-row.hardware b { color: var(--accent); }

.msg-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.msg.user .msg-actions {
  justify-content: flex-end;
  margin-top: 4px;
}

.action-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 6px;
  height: 28px;
  padding: 0 8px;
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s ease;
  user-select: none;
}

.action-btn svg { display: block; flex-shrink: 0; }
.action-btn-icon { width: 28px; height: 28px; padding: 0; }
.action-btn:hover { background: var(--panel); color: var(--text); border-color: var(--accent); }
.action-btn-icon:hover { color: var(--danger); border-color: rgba(239, 68, 68, 0.4); }

.inline-editor { display: flex; flex-direction: column; gap: 6px; width: 100%; min-width: 260px; }
.inline-textarea { width: 100%; min-height: 70px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--accent); background: var(--panel); color: var(--text); font: inherit; resize: vertical; }
.inline-editor-btns { display: flex; justify-content: flex-end; gap: 6px; }
.btn-inline-save { background: var(--accent); color: #fff; border: none; border-radius: 6px; padding: 5px 10px; font-size: 0.78rem; font-weight: 600; cursor: pointer; }
.btn-inline-cancel { background: var(--panel); color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 5px 10px; font-size: 0.78rem; cursor: pointer; }

/* ======================================================== */
/* 📱 СТРОКА ВВОДА                                          */
/* ======================================================== */

.composer {
  border-top: 1px solid var(--border);
  background: var(--panel);
  padding: 10px 16px;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
}

.input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

#message {
  flex: 1;
  min-width: 0;
  resize: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.95rem;
  height: 40px;
  min-height: 40px;
  max-height: 200px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.35;
  overflow-y: hidden;
}
#message:focus { outline: none; border-color: var(--accent); }

.icon-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.send-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  flex-shrink: 0;
  border: none;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.send-btn:hover { background: #2563eb; transform: scale(1.03); }
.send-btn.stop { background: var(--danger); }
.send-btn svg { display: block; }

.thinking-wrapper { position: relative; display: inline-flex; flex-shrink: 0; }
.thinking-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}
.thinking-btn:hover { border-color: var(--accent); }
.thinking-btn .icon-brain { color: var(--text); opacity: 0.9; }
.thinking-btn .icon-chevron { color: var(--muted); transition: transform 0.2s; }
.thinking-btn[aria-expanded="true"] .icon-chevron { transform: rotate(180deg); }

.thinking-menu {
  position: absolute; bottom: calc(100% + 8px); right: 0; left: auto; min-width: 170px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 6px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6); display: flex; flex-direction: column; gap: 2px;
  z-index: 60; backdrop-filter: blur(10px);
}
.thinking-menu[hidden] { display: none; }
.thinking-option { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-radius: 8px; cursor: pointer; font-size: 0.82rem; color: var(--text); }
.thinking-option:hover { background: var(--accent-soft); color: var(--accent); }
.thinking-option.selected { background: var(--accent); color: #fff; font-weight: 600; }
.thinking-option small { font-size: 0.7rem; opacity: 0.7; }

@media (max-width: 600px) {
  .composer { padding: 8px 10px; }
  .input-row { gap: 6px; }
  .icon-btn, .thinking-btn, .send-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    justify-content: center;
  }
  .thinking-btn span#thinking-current-label, .thinking-btn .icon-chevron { display: none; }
  #message { height: 38px; min-height: 38px; padding: 8px 10px; }
}

.file-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.preview { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: var(--bg); }
.preview-img { width: 56px; height: 56px; }
.preview-thumb { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.preview-doc {
  display: flex; align-items: center; gap: 6px; padding: 6px 28px 6px 10px;
  font-size: 0.78rem; cursor: pointer;
}
.preview-remove {
  position: absolute; top: 2px; right: 2px; width: 16px; height: 16px;
  border: none; border-radius: 50%; background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 0.65rem; cursor: pointer;
}

/* ======================================================== */
/* 🎯 МОДАЛЬНЫЕ ОКНА                                        */
/* ======================================================== */
dialog,
.incident-dialog,
.report-dialog {
  position: fixed !important;
  inset: 0 !important;
  margin: auto !important;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel) !important;
  color: var(--text) !important;
  padding: 22px;
  max-width: min(92vw, 540px);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  outline: none !important;
}

dialog::backdrop,
.incident-dialog::backdrop,
.report-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.incident-badge { display: inline-flex; padding: 3px 10px; border-radius: 99px; font-size: 0.75rem; font-weight: 700; margin-bottom: 10px; }
.creator-tribute-card { display: flex; align-items: center; gap: 12px; padding: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; }
.creator-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); flex-shrink: 0; }
.creator-tribute-title { font-weight: 700; font-size: 0.95rem; color: #f3f4f6; }
.creator-handle-link { color: #3b82f6 !important; text-decoration: underline !important; font-weight: 600; margin-left: 4px; }
.creator-handle-link:hover { color: #60a5fa !important; }
.creator-tribute-sub { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

.endpoint-badge-link {
  color: var(--accent) !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
}

.btn-modal-action { width: 100%; padding: 10px 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; }

.like-guide-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: 12px;
  margin-top: 10px;
}

.creator-link { color: var(--accent); text-decoration: underline; font-weight: 700; }
.creator-link:hover { color: #60a5fa; }

/* Snippet Code Modal */
#snippet-modal { max-width: min(92vw, 680px); }
.snippet-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
#snippet-modal-code {
  max-height: 50vh; overflow-y: auto; background: #090d16; padding: 12px;
  border-radius: 8px; font-size: 0.8rem; font-family: ui-monospace, monospace; color: #93c5fd;
}
.snippet-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

.report-dialog textarea { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 10px; background: var(--bg); color: var(--text); resize: vertical; }
.report-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.report-btn-secondary { border: 1px solid var(--border); background: var(--panel); color: var(--text); border-radius: 8px; padding: 6px 14px; cursor: pointer; }
.report-btn-primary { border: none; background: var(--accent); color: #fff; border-radius: 8px; padding: 6px 14px; font-weight: 600; cursor: pointer; }

/* Lightbox & Overlay */
.lightbox { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.85); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 95vw; max-height: 95vh; border-radius: 8px; }
.lightbox-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border: none; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 1.1rem; cursor: pointer; }
.drop-overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(59, 130, 246, 0.16); backdrop-filter: blur(4px); pointer-events: none; }
.drop-overlay[hidden] { display: none; }
.drop-message { padding: 20px 32px; border: 2px dashed var(--accent); border-radius: 14px; background: var(--panel); color: var(--accent); font-weight: 600; }