/* yTrade — Main Stylesheet */
:root {
  --bg-primary: #0f1117;
  --bg-secondary: #1a1d27;
  --bg-card: #1e2130;
  --bg-hover: #252838;
  --text-primary: #e8eaed;
  --text-secondary: #9aa0a6;
  --text-muted: #5f6368;
  --accent: #4fc3f7;
  --accent-hover: #29b6f6;
  --green: #00c853;
  --green-bg: rgba(0,200,83,0.12);
  --red: #ff5252;
  --red-bg: rgba(255,82,82,0.12);
  --amber: #ffc107;
  --amber-bg: rgba(255,193,7,0.12);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.3);
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --sidebar-width: 240px;
  --topbar-height: 56px;
}

[data-theme="light"] {
  --bg-primary: #f5f6fa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #f0f1f5;
  --text-primary: #1a1d27;
  --text-secondary: #5f6368;
  --text-muted: #9aa0a6;
  --accent: #1976d2;
  --accent-hover: #1565c0;
  --green: #2e7d32;
  --green-bg: rgba(46,125,50,0.08);
  --red: #c62828;
  --red-bg: rgba(198,40,40,0.08);
  --amber: #f57f17;
  --amber-bg: rgba(245,127,23,0.08);
  --border: rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.15);
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

[dir="rtl"] { direction: rtl; text-align: right; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }

/* Layout */
.app-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 100;
  transition: transform 0.3s;
}
[dir="rtl"] .sidebar { border-right: none; border-left: 1px solid var(--border); }

.sidebar-logo {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo .logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), #7c4dff);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff;
}
.sidebar-logo .logo-text { font-size: 18px; font-weight: 600; color: var(--text-primary); }

.sidebar-nav { flex: 1; padding: 12px 8px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-radius: var(--radius-sm);
  color: var(--text-secondary); cursor: pointer;
  transition: all 0.15s; font-size: 14px; text-decoration: none;
  margin-bottom: 2px;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item.active { background: rgba(79,195,247,0.12); color: var(--accent); }
.nav-item .nav-icon { width: 20px; text-align: center; font-size: 16px; }
.nav-item .badge {
  margin-inline-start: auto;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}
.nav-item .badge-soon {
  background: var(--amber-bg);
  color: var(--amber);
}

.sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid var(--border);
}

/* Main Content */
.main-content {
  margin-inline-start: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
}

/* Topbar */
.topbar {
  height: var(--topbar-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.search-box {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.search-box input {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 16px 8px 36px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
[dir="rtl"] .search-box input { padding: 8px 36px 8px 16px; }
.search-box input:focus { border-color: var(--accent); }
.search-box .search-icon {
  position: absolute;
  left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 14px;
}
[dir="rtl"] .search-box .search-icon { left: auto; right: 12px; }

.search-results {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 4px;
  max-height: 320px;
  overflow-y: auto;
  display: none;
  z-index: 200;
  box-shadow: var(--shadow);
}
.search-results.show { display: block; }
.search-result-item {
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.1s;
}
.search-result-item:hover { background: var(--bg-hover); }
.search-result-item .symbol { font-weight: 600; color: var(--accent); }
.search-result-item .name { color: var(--text-secondary); font-size: 13px; }

.topbar-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }

/* Clock */
.topbar-clock {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  transition: border-color 0.2s;
  user-select: none;
  min-width: 130px;
  justify-content: center;
}
.topbar-clock:hover { border-color: var(--accent); }
.icon-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: none; background: transparent;
  color: var(--text-secondary);
  cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.icon-btn:hover { background: var(--bg-hover); color: var(--text-primary); }

/* Page Content */
.page-content { padding: 24px; }
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.page-title { font-size: 22px; font-weight: 600; }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--border-hover); }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-title { font-size: 15px; font-weight: 600; color: var(--text-secondary); }

/* Grid */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-sidebar { grid-template-columns: 1fr 360px; }

/* Stat Cards */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.stat-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.stat-value { font-size: 24px; font-weight: 600; }
.stat-change { font-size: 13px; margin-top: 4px; }
.positive { color: var(--green); }
.negative { color: var(--red); }
.neutral-color { color: var(--amber); }

/* Watchlist */
.watchlist-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
}
.watchlist-item:last-child { border-bottom: none; }
.watchlist-item:hover { background: var(--bg-hover); margin: 0 -20px; padding: 12px 20px; }
.watchlist-symbol { font-weight: 600; min-width: 80px; }
.watchlist-name { flex: 1; color: var(--text-secondary); font-size: 13px; }
.watchlist-price { font-weight: 500; min-width: 80px; text-align: end; }
.watchlist-change { min-width: 80px; text-align: end; font-size: 13px; font-weight: 500; }

/* Favorites Cards — large, clear, click navigates to stock page */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  padding: 4px;
}
.fav-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  min-height: 110px;
}
.fav-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.fav-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fav-card-symbol { font-weight: 700; font-size: 18px; letter-spacing: 0.5px; }
.fav-card-star { color: #f5b942; font-size: 14px; opacity: 0.8; }
.fav-card-name {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fav-card-price {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2px;
}
.fav-card-change {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.fav-card-arrow { font-size: 11px; }
.fav-card-change-abs {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-inline-start: auto;
}

/* Score row in favorite cards (S/M/L compact pills) */
.fav-card-scores {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.fav-card-scores-loading {
  color: var(--text-muted);
  font-weight: 400;
}
.fav-score {
  flex: 1;
  text-align: center;
  padding: 2px 4px;
  border-radius: 4px;
  background: var(--bg-card);
}
.fav-score.pos { color: var(--green, #66bb6a); background: rgba(102,187,106,0.12); }
.fav-score.neg { color: var(--red, #ef5350);   background: rgba(239,83,80,0.12); }
.fav-score.mid { color: var(--text-secondary); background: var(--bg-card); }

/* Model recommendation badge (stock detail page) */
.score-badge {
  margin-bottom: 20px;
  padding: 16px;
}
.score-badge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.score-row {
  margin-bottom: 12px;
}
.score-row:last-of-type { margin-bottom: 8px; }
.score-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 13px;
}
.score-row-tf {
  font-weight: 600;
  margin-inline-end: 6px;
}
.score-row-tf-desc {
  color: var(--text-muted);
  font-size: 11px;
}
.score-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.score-row-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 50px;
  text-align: end;
}
.score-bar-bg {
  height: 6px;
  background: var(--bg-card);
  border-radius: 3px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}
.score-bar-fill.signal-buy     { background: var(--green, #66bb6a); }
.score-bar-fill.signal-sell    { background: var(--red, #ef5350); }
.score-bar-fill.signal-neutral { background: var(--amber, #f59e0b); }
.score-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-card);
  border-radius: 6px;
  padding: 8px 10px;
  margin: 12px 0 8px;
  line-height: 1.5;
}
.score-breakdown-toggle {
  font-size: 12px !important;
  padding: 4px 8px !important;
}
.score-breakdown {
  margin-top: 10px;
  padding: 10px;
  background: var(--bg-card);
  border-radius: 6px;
  font-size: 12px;
}
.breakdown-tf {
  margin-bottom: 10px;
}
.breakdown-tf:last-child { margin-bottom: 0; }
.breakdown-tf-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-secondary);
}
.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
  font-variant-numeric: tabular-nums;
}
.breakdown-item .positive { color: var(--green, #66bb6a); }
.breakdown-item .negative { color: var(--red, #ef5350); }

/* Data Tables */
.table-responsive { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  padding: 8px 12px;
  text-align: start;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}
.data-table tbody tr:hover {
  background: var(--bg-hover);
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Stock Page */
.stock-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
}
.stock-symbol { font-size: 28px; font-weight: 700; }
.stock-name { font-size: 16px; color: var(--text-secondary); }
.stock-price-big { font-size: 36px; font-weight: 700; margin-bottom: 4px; }
.stock-change-big { font-size: 16px; font-weight: 500; }
.extended-hours-price { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 6px 12px; background: var(--bg-hover); border-radius: var(--radius-sm); width: fit-content; }
.eh-label { font-size: 11px; color: var(--amber); font-weight: 600; text-transform: uppercase; }
.eh-price { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.eh-change { font-size: 13px; font-weight: 500; }

/* Chart Container */
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.chart-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
}
.chart-btn {
  padding: 4px 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s;
}
.chart-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.chart-btn.active { background: rgba(79,195,247,0.15); color: var(--accent); }
.chart-separator { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }

/* Indicators Panel */
.indicator-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}
.indicator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.indicator-name { font-size: 13px; font-weight: 600; }
.indicator-help {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.indicator-help:hover { border-color: var(--accent); color: var(--accent); }
.indicator-value { font-size: 18px; font-weight: 600; }
.indicator-signal {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
}
.signal-buy { background: var(--green-bg); color: var(--green); }
.signal-sell { background: var(--red-bg); color: var(--red); }
.signal-neutral { background: var(--amber-bg); color: var(--amber); }

/* Tooltip */
.tooltip-popup {
  position: fixed;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  max-width: 300px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  box-shadow: var(--shadow);
  z-index: 500;
  display: none;
}
.tooltip-popup.show { display: block; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  width: 90%;
  max-width: 480px;
  box-shadow: var(--shadow);
}
.modal-title { font-size: 18px; font-weight: 600; margin-bottom: 16px; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.form-input {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--accent); }
select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 80px; }

/* Buttons */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-success { background: var(--green); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-ghost:hover { border-color: var(--border-hover); color: var(--text-primary); }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* Paper Trade / Forecast */
.trade-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.trade-type {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  min-width: 50px;
  text-align: center;
}
.trade-buy { background: var(--green-bg); color: var(--green); }
.trade-sell { background: var(--red-bg); color: var(--red); }

/* Settings */
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.setting-label { font-size: 14px; }
.setting-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.toggle {
  width: 44px; height: 24px;
  background: var(--border);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle.on { background: var(--accent); }
.toggle::after {
  content: '';
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px; left: 3px;
  transition: transform 0.2s;
}
[dir="rtl"] .toggle::after { left: auto; right: 3px; }
.toggle.on::after { transform: translateX(20px); }
[dir="rtl"] .toggle.on::after { transform: translateX(-20px); }

/* Auth Pages */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-primary);
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 400px;
}
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  [dir="rtl"] .sidebar { transform: translateX(100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-inline-start: 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-sidebar { grid-template-columns: 1fr; }
}

/* Loading Spinner */
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state .empty-text { font-size: 15px; }

/* Watchlist Folders */
.watchlist-folder { margin-bottom: 4px; }
.watchlist-folder-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}
.watchlist-folder-header:hover { background: var(--bg-hover); }
.folder-arrow {
  font-size: 10px;
  color: var(--text-muted);
  min-width: 14px;
  transition: transform 0.2s;
}
.folder-color-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.folder-name { flex: 1; }
.folder-count {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-hover);
  padding: 1px 8px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}
.watchlist-folder-items {
  padding-inline-start: 16px;
  border-inline-start: 2px solid var(--border);
  margin-inline-start: 22px;
}

/* Watchlist Management */
.watchlist-folder-manage {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.watchlist-folder-header-manage {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  margin-bottom: 8px;
}
.watchlist-folder-items-manage { }
.watchlist-item-manage {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  transition: background 0.15s;
}
.watchlist-item-manage:hover { background: var(--bg-hover); }
.watchlist-item-manage .watchlist-symbol { min-width: 70px; font-weight: 600; }
.watchlist-item-manage .watchlist-name { flex: 1; color: var(--text-secondary); }
.watchlist-item-manage .watchlist-price { min-width: 70px; text-align: end; font-weight: 500; }
.watchlist-item-manage .watchlist-change { min-width: 70px; text-align: end; font-size: 12px; }
/* Favorite star */
.fav-star {
  cursor: pointer;
  font-size: 16px;
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
  flex-shrink: 0;
  margin-inline-end: 6px;
}
.fav-star:hover { color: var(--amber); transform: scale(1.2); }
.fav-star.fav-active { color: var(--amber); }

.folder-select {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  min-width: 100px;
}
.folder-select:focus { border-color: var(--accent); outline: none; }
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
