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

/* ─── Theme tokens ───────────────────────────────────────────────── */
:root {
  --accent: #0faeae;
  --accent-hover: #0c9494;
  --accent-subtle: rgba(15, 174, 174, 0.12);
  --accent-rgb: 15, 174, 174;
  --success: #4cb820;
  --success-bg: rgba(76, 184, 32, 0.12);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --danger: #dc2626;
  --danger-bg: rgba(220, 38, 38, 0.12);
  --danger-hover: #b91c1c;
  --radius: 6px;
  --sidebar-width: 230px;
  --transition: 0.2s ease;
}

/* Dark (default) */
[data-theme="dark"] {
  --bg-body: #1a1a1a;
  --bg-surface: #222222;
  --bg-surface-hover: #2a2a2a;
  --bg-elevated: #2a2a2a;
  --bg-input: #222222;
  --border: #333333;
  --border-subtle: #2a2a2a;
  --text-primary: #e8e8e8;
  --text-secondary: #999999;
  --text-muted: #b3b3b3;
  --sidebar-bg: #1a1a1a;
  --sidebar-active: rgba(20, 238, 238, 0.15);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --focus-ring: 0 0 0 3px rgba(20, 238, 238, 0.2);
  --accent: #14eeee;
  --accent-hover: #4df4f4;
  --accent-subtle: rgba(20, 238, 238, 0.12);
  --accent-rgb: 20, 238, 238;
  --btn-primary-text: #222222;
  --success: #6fff2c;
  --success-bg: rgba(111, 255, 44, 0.12);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --danger-hover: #f87171;
}

/* Light */
[data-theme="light"] {
  --bg-body: #f4f4f4;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f9f9f9;
  --bg-elevated: #ffffff;
  --bg-input: #ffffff;
  --border: #e0e0e0;
  --border-subtle: #eeeeee;
  --text-primary: #222222;
  --text-secondary: #666666;
  --text-muted: #cccccc;
  --sidebar-bg: #222222;
  --sidebar-active: rgba(15, 174, 174, 0.2);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --focus-ring: 0 0 0 3px rgba(15, 174, 174, 0.15);
  --btn-primary-text: #ffffff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background: var(--bg-body);
  display: flex;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

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

/* ─── Sidebar ────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  z-index: 100;
}
.sidebar-header {
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar-header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.sidebar-brand-sub {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.user-dropdown {
  position: relative;
  margin-top: 0.5rem;
}
.user-dropdown-toggle {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  transition: color 0.15s;
}
.user-dropdown-toggle:hover { color: rgba(255, 255, 255, 0.75); }
.user-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 160px;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.user-dropdown-menu.is-open { display: block; }
.user-dropdown-item {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  box-sizing: border-box;
}
.user-dropdown-item:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
.profile-avatar-wrap { flex-shrink: 0; }
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.profile-avatar-fallback {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-surface-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--border);
}
.nav-links {
  list-style: none;
  padding: 0.75rem 0.75rem;
  flex: 1;
  overflow-y: auto;
}
.nav-links li { margin-bottom: 2px; }
.nav-links li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-links li a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}
.nav-links li a.active {
  background: var(--sidebar-active);
  color: #fff;
}
.nav-icon {
  width: 18px;
  height: 18px;
  opacity: 0.6;
  flex-shrink: 0;
}
.nav-links li a.active .nav-icon { opacity: 1; }
.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ─── Main content ───────────────────────────────────────────────── */
main.with-sidebar {
  margin-left: var(--sidebar-width);
  padding: 2rem 2.5rem;
  flex: 1;
  max-width: calc(100% - var(--sidebar-width));
}
main.full-width { flex: 1; }

/* ─── Page header ────────────────────────────────────────────────── */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
}
.page-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.page-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* ─── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--bg-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.card-header h2 { font-size: 1rem; font-weight: 600; }
.card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

/* ─── Stats ──────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}
.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─── Stat info tooltip ──────────────────────────────────────────── */
.stat-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--text-muted);
  color: var(--bg-surface);
  font-size: 0.55rem;
  font-weight: 700;
  font-style: normal;
  cursor: default;
  position: relative;
  flex-shrink: 0;
}
.stat-info::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated, #2a2a2a);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  width: 200px;
  white-space: normal;
  line-height: 1.45;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.stat-info:hover::after {
  opacity: 1;
}

/* ─── Bar chart tooltip ──────────────────────────────────────────── */
.bar-tip {
  position: relative;
}
.bar-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated, #2a2a2a);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.bar-tip:hover::after {
  opacity: 1;
}

/* ─── Tables ─────────────────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  padding: 0.65rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.table td a { color: var(--text-primary); font-weight: 500; }
.table td a:hover { color: var(--accent); }
.table tr:hover td { background: var(--bg-surface-hover); }
.table code { color: var(--accent); background: var(--accent-subtle); padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.8rem; }

/* ─── Badges ─────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-secondary { background: var(--accent-subtle); color: var(--accent); }

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--btn-primary-text, #fff); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.3); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(0.9); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-hover); }
.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #d97706; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-outline:hover { background: var(--bg-surface-hover); color: var(--text-primary); border-color: var(--text-muted); }
.btn-ghost { background: transparent; color: var(--text-secondary); padding: 0.4rem 0.6rem; }
.btn-ghost:hover { background: var(--bg-surface-hover); color: var(--text-primary); }
.btn-sm { padding: 0.3rem 0.6rem; font-size: 0.78rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-icon {
  width: 32px; height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-icon:hover { background: var(--bg-surface-hover); color: var(--text-primary); }

/* ─── Forms ──────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-primary);
  transition: all var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}
.form-group input[type="file"] {
  padding: 0.45rem;
  cursor: pointer;
}
.form-group input[type="file"]::file-selector-button {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  margin-right: 0.75rem;
  transition: background 0.15s, border-color 0.15s;
}
.form-group input[type="file"]::file-selector-button:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent);
}
.form-group small,
.form-group .text-muted {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  display: block;
}
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }
.form-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] { width: auto; accent-color: var(--accent); }

/* ─── Detail grid ────────────────────────────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.detail-full { grid-column: 1 / -1; }
.detail-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}
.detail-value {
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* ─── Key display (activation key) ───────────────────────────────── */
.key-display-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.5rem 0.4rem 0.75rem;
}
.key-display {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.03em;
  user-select: all;
}
.key-masked { color: var(--text-muted); user-select: none; }

/* ─── Alerts ─────────────────────────────────────────────────────── */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.875rem;
  border: 1px solid transparent;
  animation: alertFade 3s ease-in forwards;
}
@keyframes alertFade {
  0%, 70% { opacity: 1; }
  100% { opacity: 0; }
}
.alert-success { background: var(--success-bg); color: var(--success); border-color: rgba(76, 184, 32, 0.2); }
.alert-error { background: var(--danger-bg); color: var(--danger); border-color: rgba(220, 38, 38, 0.2); }
[data-theme="dark"] .alert-success { border-color: rgba(111, 255, 44, 0.2); }
[data-theme="dark"] .alert-error { border-color: rgba(239, 68, 68, 0.2); }

.text-muted { color: var(--text-muted); font-size: 0.875rem; }
.text-danger { color: var(--danger); }

/* ─── Login ──────────────────────────────────────────────────────── */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
}
.login-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
}
.login-card h1 {
  text-align: center;
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.login-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-size: 0.875rem;
}

/* ─── Error page ─────────────────────────────────────────────────── */
.error-page { text-align: center; padding: 4rem 2rem; }
.error-page h1 { font-size: 2rem; margin-bottom: 1rem; }
.error-page p { color: var(--text-muted); margin-bottom: 2rem; }

/* ─── Theme toggle ───────────────────────────────────────────────── */
.theme-toggle {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  transition: all var(--transition);
  font-size: 1rem;
  line-height: 1;
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

/* ─── Tooltip (for copy feedback) ────────────────────────────────── */
.copy-tooltip {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--btn-primary-text, #fff);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.copy-tooltip.show { opacity: 1; }

/* ─── Scrollbar (dark mode) ──────────────────────────────────────── */
[data-theme="dark"] ::-webkit-scrollbar { width: 6px; }
[data-theme="dark"] ::-webkit-scrollbar-track { background: transparent; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ─── Selection ──────────────────────────────────────────────────── */
::selection { background: var(--accent-subtle); color: var(--accent); }

/* ─── Table overflow wrapper ─────────────────────────────────────── */
.card { overflow-x: auto; }

/* ─── Hamburger button (mobile only) ────────────────────────────── */
.hamburger {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text-primary);
  line-height: 1;
}
.hamburger svg { display: block; width: 20px; height: 20px; }

/* ─── Modal ──────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  padding: 1.5rem;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.modal-header h2 { font-size: 1.1rem; }
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.25rem;
}
.modal-close:hover { color: var(--text-primary); }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* alert-danger */
.alert-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  animation: fadeOut 4s forwards;
}

/* Sidebar mobile overlay */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 150;
}
.sidebar-backdrop.is-open { display: block; }

/* ─── Feature Request inline button (injected into page-header) ── */
.fr-fab-inline svg { flex-shrink: 0; }

/* ─── Feature Request Filters ───────────────────────────────────── */
.fr-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.fr-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.fr-filter-select {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  cursor: pointer;
}
.fr-filter-select:focus {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ─── Feature Request Radio ─────────────────────────────────────── */
.fr-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-primary);
}
.fr-radio-label input[type="radio"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  margin: 0;
}

/* ─── Feature Request Inline Selects ────────────────────────────── */
.fr-inline-select {
  padding: 3px 6px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  appearance: auto;
}
.fr-priority-critical { background: var(--danger); color: #fff; border-color: var(--danger); }
.fr-priority-high { background: var(--warning); color: #fff; border-color: var(--warning); }
.fr-priority-medium { background: var(--bg-surface-hover); color: var(--text-primary); }
.fr-priority-low { background: var(--bg-surface); color: var(--text-secondary); }
.fr-status-new { background: var(--bg-surface-hover); color: var(--text-primary); }
.fr-status-in_review { background: var(--accent); color: #fff; border-color: var(--accent); }
.fr-status-in_progress { background: var(--warning); color: #fff; border-color: var(--warning); }
.fr-status-released { background: var(--success); color: #fff; border-color: var(--success); }

/* ─── Feature Request Detail ────────────────────────────────────── */
.fr-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}
.fr-detail-row:last-child { border-bottom: none; }
.fr-detail-label { color: var(--text-secondary); }

/* ─── Feature Request Comments ─────────────────────────────────── */
.fr-comment {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.fr-comment:last-child { border-bottom: none; }
.fr-comment-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.fr-comment-date {
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-left: auto;
}
.fr-comment-body {
  white-space: pre-wrap;
  font-size: 0.88rem;
  line-height: 1.5;
}
.fr-unread-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 6px;
  vertical-align: middle;
}
.fr-comment-count {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-left: 4px;
  opacity: 0.7;
}
.fr-comment-form {
  margin-top: 8px;
}
.fr-comment-form form {
  display: flex;
  flex-direction: column;
}
.fr-comment-form textarea {
  width: 100%;
  resize: vertical;
}
.fr-comment-form-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.fr-comment-form-top {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .page-header { flex-wrap: wrap; gap: 8px; }
  .fr-filters { flex-direction: column; align-items: flex-start; }
  .hamburger { display: flex; align-items: center; justify-content: center; }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 160;
  }
  .sidebar.is-open { transform: translateX(0); }

  main.with-sidebar { margin-left: 0; padding: 1rem; padding-top: 56px; max-width: 100%; }
  .detail-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
