/* nstock — 단순 단일 사용자 UI */

* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  margin: 0; padding: 0;
  background: #0e1116; color: #d8dee9;
  font-size: 14px; line-height: 1.5;
}
a { color: #88c0d0; text-decoration: none; }
a:hover { text-decoration: underline; }

.app-header {
  display: flex; flex-direction: column;
  background: #161b22; border-bottom: 1px solid #2a3140;
}
.header-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 24px; border-bottom: 1px solid #232a35;
}
.header-bottom {
  display: flex; justify-content: flex-start; align-items: center;
  padding: 8px 24px; background: #1c212b;
}

.app-header .brand { display: flex; align-items: center; font-weight: 700; font-size: 18px; color: #88c0d0; margin-right: 20px; white-space: nowrap; }
.app-header .indices-row { display: flex; align-items: center; flex-wrap: wrap; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
.app-header .indices-row::-webkit-scrollbar { display: none; }
.app-header .indices-row a {
  display: flex; align-items: center;
  padding: 0 12px; height: 16px;
  border-left: 1px solid #3b4252;
  font-size: 12px; font-weight: 500;
  text-decoration: none;
}
.app-header .indices-row a:first-child { border-left: none; padding-left: 0; }
.app-header .indices-row span { white-space: nowrap; }

.app-header nav { display: flex; align-items: center; }
.app-header nav a {
  margin-right: 8px; padding: 6px 14px; border-radius: 6px; color: #d8dee9; font-size: 13px; font-weight: 500;
}
.app-header nav a.active, .app-header nav a:hover { background: #2a3140; color: #fff; }
.app-header nav a.logout { margin-left: auto; color: #6c7a89; font-size: 12px; }

/* Status dots in nav */
.status-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 6px; flex-shrink: 0;
}
.status-dot.open { background: #a3be8c; box-shadow: 0 0 5px #a3be8c; }
.status-dot.closed { background: #bf616a; }

main { padding: 24px; max-width: 1400px; margin: 0 auto; }

h1 { margin-top: 0; font-size: 22px; }
h2 { font-size: 16px; margin-top: 24px; color: #a3aab5; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 10px; border-bottom: 1px solid #2a3140; text-align: left; }
th { background: #161b22; font-weight: 600; color: #a3aab5; }
tr:hover td { background: #161b22; }

button, select, input {
  font: inherit;
  background: #2a3140; color: #d8dee9; border: 1px solid #3a4150;
  padding: 6px 12px; border-radius: 6px;
  cursor: pointer;
}
button:hover { background: #3a4150; }
input[type="text"] { width: 360px; }

.chart-panel {
  background: #0b0f14;
  border: 1px solid #28313f;
  border-radius: 8px;
  padding: 12px;
}
.chart-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.chart-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a3aab5;
  font-size: 12px;
}
.chart-toggle-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.chart-toggle {
  padding: 5px 9px;
  min-width: 52px;
  font-size: 12px;
  border-color: #344051;
  background: #141a23;
  color: #8f98a8;
}
.chart-toggle.active {
  background: #263244;
  color: #d8dee9;
  border-color: #5e81ac;
}
#fit-chart-btn {
  margin-left: auto;
  padding: 5px 11px;
  font-size: 12px;
}
.chart-stat-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  min-height: 36px;
  margin: 8px 0 10px;
  color: #c9d1d9;
  font-size: 12px;
}
.chart-stat-strip .stat {
  min-width: 0;
  padding: 6px 8px;
  background: #111720;
  border: 1px solid #253041;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.chart-stat-strip .stat span {
  display: block;
  color: #7d8796;
  font-size: 10px;
}
.chart-stat-strip .up { color: #a3be8c; }
.chart-stat-strip .down { color: #bf616a; }
.price-chart {
  width: 100%;
  height: clamp(420px, 52vh, 620px);
}
.indicator-chart {
  width: 100%;
  border-top: 1px solid #202838;
}
.rsi-chart { height: 104px; }
.macd-chart { height: 118px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 12px 0; }
.card { background: #161b22; padding: 12px; border-radius: 8px; border: 1px solid #2a3140; }
.card h3 { margin: 0 0 6px 0; font-size: 14px; }
.card .price { font-size: 20px; font-weight: 600; }
.card .change.up { color: #a3be8c; }
.card .change.down { color: #bf616a; }

.signals-table td.score-pos { color: #a3be8c; font-weight: 600; }
.signals-table td.score-neg { color: #bf616a; font-weight: 600; }

.market-tabs button.active { background: #5e81ac; color: #fff; }

.analysis-overview {
  display: none;
  margin-top: 16px;
  padding: 12px;
  background: #121820;
  border: 1px solid #2a3140;
  border-radius: 8px;
}
.analysis-overview.visible { display: block; }
.analysis-overview .overview-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 10px; flex-wrap: wrap;
}
.analysis-overview h2 { margin: 0; font-size: 15px; color: #d8dee9; }
.analysis-overview .meta { color: #8f98a8; font-size: 12px; }
.analysis-overview .overview-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.analysis-overview .overview-item {
  background: #0e1116;
  border: 1px solid #28313f;
  border-radius: 6px;
  padding: 9px 10px;
  min-width: 0;
}
.analysis-overview .overview-item .lbl { display: block; color: #8f98a8; font-size: 11px; margin-bottom: 4px; }
.analysis-overview .overview-item .val { display: block; font-weight: 700; overflow-wrap: anywhere; }
.analysis-overview .overview-item .val.pos { color: #a3be8c; }
.analysis-overview .overview-item .val.neg { color: #bf616a; }
.analysis-overview .overview-item .val.watch { color: #d8dee9; }
.analysis-overview .overview-item .sub { display: block; color: #8f98a8; font-size: 11px; margin-top: 3px; overflow-wrap: anywhere; }

.trade-plan {
  display: none;
  margin-top: 16px;
  padding: 14px;
  background: #101720;
  border: 1px solid #2a3140;
  border-radius: 8px;
}
.trade-plan.visible { display: block; }
.trade-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.trade-plan-title h2 { margin: 0; font-size: 16px; color: #d8dee9; }
.trade-plan-title .meta {
  display: block;
  margin-top: 4px;
  color: #8f98a8;
  font-size: 12px;
}
.trade-action {
  padding: 7px 11px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid #3a4150;
  background: #0e1116;
}
.trade-action.pos { color: #a3be8c; border-color: rgba(163,190,140,0.45); }
.trade-action.neg { color: #bf616a; border-color: rgba(191,97,106,0.45); }
.trade-action.watch { color: #d8dee9; }
.trade-plan-summary {
  margin: 0 0 12px;
  color: #c9d1d9;
  font-size: 13px;
  line-height: 1.55;
}
.trade-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}
.trade-plan-item {
  min-width: 0;
  padding: 9px 10px;
  background: #0e1116;
  border: 1px solid #28313f;
  border-radius: 6px;
}
.trade-plan-item span {
  display: block;
  color: #8f98a8;
  font-size: 11px;
  margin-bottom: 4px;
}
.trade-plan-item b {
  display: block;
  color: #eceff4;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.trade-plan-item small {
  display: block;
  color: #7d8796;
  font-size: 11px;
  margin-top: 3px;
}
.trade-plan-item.positive b { color: #a3be8c; }
.trade-plan-item.negative b { color: #bf616a; }
.trade-plan-foot {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.trade-reasons,
.trade-structure {
  background: #0e1116;
  border: 1px solid #28313f;
  border-radius: 6px;
  padding: 10px;
  min-width: 0;
}
.trade-reasons h3,
.trade-structure h3 {
  margin: 0 0 6px;
  font-size: 12px;
  color: #a3aab5;
}
.trade-reasons ul {
  margin: 0;
  padding-left: 18px;
  color: #d8dee9;
  font-size: 12px;
  line-height: 1.55;
}
.trade-structure p {
  margin: 0;
  color: #d8dee9;
  font-size: 12px;
  line-height: 1.55;
}
.trade-plan-history {
  display: none;
  margin-top: 10px;
  padding: 12px;
  background: #101720;
  border: 1px solid #2a3140;
  border-radius: 8px;
}
.trade-plan-history.visible { display: block; }
.trade-plan-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.trade-plan-history h2 {
  margin: 0;
  font-size: 15px;
  color: #d8dee9;
}
.trade-plan-history .meta {
  color: #8f98a8;
  font-size: 12px;
}
.trade-history-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}
.trade-history-section {
  background: #0e1116;
  border: 1px solid #28313f;
  border-radius: 6px;
  padding: 10px;
  min-width: 0;
}
.trade-history-section h3 {
  margin: 0 0 8px;
  font-size: 12px;
  color: #a3aab5;
}
.trade-history-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}
.trade-history-list li {
  padding: 7px 8px;
  border: 1px solid #202838;
  border-radius: 6px;
  background: #111720;
  font-size: 12px;
  color: #d8dee9;
}
.trade-history-list .row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.trade-history-list .sub {
  display: block;
  margin-top: 4px;
  color: #8f98a8;
  font-size: 11px;
}
.trade-history-list .empty {
  color: #6c7a89;
  font-style: italic;
}

.track-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.track-card {
  background: #161b22; padding: 12px; border-radius: 8px; border: 1px solid #2a3140;
  min-width: 0;
}
.track-card h3 { margin-top: 0; font-size: 14px; color: #88c0d0; }
.track-card ul { list-style: none; padding: 0; margin: 0; }
.track-card li { padding: 6px 0; border-bottom: 1px dotted #2a3140; }
.track-card li.empty { color: #6c7a89; font-style: italic; }
.track-card .targets {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px;
  font-size: 12px; color: #a3aab5; margin-top: 4px;
}
.track-card .targets b { color: #d8dee9; }

.search-results {
  list-style: none; padding: 0; margin: 4px 0;
  background: #161b22; border: 1px solid #2a3140; border-radius: 6px;
  max-height: 240px; overflow-y: auto;
}
.search-results:empty { display: none; }
.search-results li { padding: 6px 12px; cursor: pointer; }
.search-results li:hover { background: #2a3140; }

.strategies-table textarea { width: 100%; min-height: 60px; font-family: monospace; font-size: 12px; }
.strategy-performance-panel {
  margin: 16px 0 24px;
  padding: 14px;
  background: #121820;
  border: 1px solid #2a3140;
  border-radius: 8px;
}
.strategy-performance-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.strategy-performance-head h2 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #d8dee9;
}
.perf-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.perf-card {
  background: #0e1116;
  border: 1px solid #28313f;
  border-radius: 6px;
  padding: 9px 10px;
  min-width: 0;
}
.perf-card .lbl {
  display: block;
  color: #8f98a8;
  font-size: 11px;
  margin-bottom: 4px;
}
.perf-card .val {
  display: block;
  color: #d8dee9;
  font-size: 17px;
  font-weight: 700;
}
.perf-card .sub {
  display: block;
  color: #7d8796;
  font-size: 11px;
  margin-top: 3px;
}
.perf-table td.pos { color: #a3be8c; font-weight: 700; }
.perf-table td.neg { color: #bf616a; font-weight: 700; }

/* 트랙 종합 추천 박스 (Phase 4 후속) */
.verdict {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #2a3140;
  background: #0c1018;
}
.verdict.pos   { border-color: #4d6b3c; background: #14201a; }
.verdict.neg   { border-color: #6b3c3c; background: #20151a; }
.verdict.watch { border-color: #3a4150; }
.verdict-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.reco-badge { font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.reco-badge.pos   { color: #a3be8c; }
.reco-badge.neg   { color: #bf616a; }
.reco-badge.watch { color: #d8dee9; }
.reco-score { font-size: 12px; color: #a3aab5; }
.verdict .ts { font-size: 11px; color: #6c7a89; margin-left: auto; }
.verdict-targets { font-size: 12px; color: #a3aab5; line-height: 1.7; }
.verdict-targets b { color: #d8dee9; }
.verdict-reasons { margin-top: 6px; font-size: 12px; }
.verdict-reasons ul { margin: 4px 0 0; padding-left: 18px; }
.verdict-reasons li { padding: 2px 0; color: #d8dee9; }
.rule-breakdown {
  margin-top: 8px;
  display: grid;
  gap: 5px;
}
.rule-breakdown .rule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  background: #0e1116;
  border: 1px solid #28313f;
  border-radius: 6px;
}
.rule-breakdown .rule-name {
  color: #d8dee9;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.rule-breakdown .rule-meta { color: #8f98a8; font-size: 11px; margin-top: 2px; overflow-wrap: anywhere; }
.rule-breakdown .rule-score { font-size: 12px; font-weight: 700; white-space: nowrap; }
.rule-breakdown .rule-score.pos { color: #a3be8c; }
.rule-breakdown .rule-score.neg { color: #bf616a; }
.rule-breakdown .rule-score.watch { color: #a3aab5; }

@media (max-width: 900px) {
  .track-grid { grid-template-columns: 1fr; }
  #fit-chart-btn { margin-left: 0; }
  .chart-stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-chart { height: 390px; }
  .trade-plan-foot { grid-template-columns: 1fr; }
  .trade-history-grid { grid-template-columns: 1fr; }
}

/* 시그널 리스트 시각 (KST · ET 병기) */
.track-card li .ts { font-size: 11px; color: #6c7a89; }

/* DART 공시 리스트 */
.disclosures { list-style: none; padding: 0; margin: 0; }
.disclosures li {
  padding: 8px 12px;
  border-bottom: 1px dotted #2a3140;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 10px;
  align-items: baseline;
}
.disclosures li.empty { color: #6c7a89; font-style: italic; }
.disclosures .d-date { color: #88c0d0; font-family: monospace; font-size: 12px; }
.disclosures a { color: #d8dee9; }
.disclosures .d-meta { color: #6c7a89; font-size: 11px; }

/* 대시보드 카드: 트랙별 verdict 미니 배지 */
.stock-card .price-row { display: flex; align-items: baseline; gap: 12px; }
.stock-card .price { font-size: 22px; font-weight: 700; }
.stock-card .verdict-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 4px; margin-top: 8px; font-size: 11px;
}
.stock-card .track-mini {
  background: #0e1116; border-radius: 4px; padding: 4px 6px;
  display: flex; flex-direction: column; gap: 2px;
}
.stock-card .track-mini .lbl { color: #6c7a89; font-size: 10px; }
.stock-card .track-mini .val { font-weight: 600; }

.plan-mini {
  min-width: 140px;
  padding: 6px 8px;
  background: #0e1116;
  border: 1px solid #28313f;
  border-radius: 6px;
  font-size: 11px;
  color: #a3aab5;
}
.plan-mini.empty,
.plan-mini.loading { color: #6c7a89; font-style: italic; }
.plan-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  background: #1a202b;
  border: 1px solid #3a4150;
  color: #d8dee9;
}
.plan-badge.pos { color: #a3be8c; border-color: rgba(163,190,140,0.45); }
.plan-badge.neg { color: #bf616a; border-color: rgba(191,97,106,0.45); }
.plan-badge.watch { color: #d8dee9; }
.plan-change {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10px;
  color: #ebcb8b;
  border: 1px solid rgba(235,203,139,0.35);
}
.plan-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 5px;
  color: #d8dee9;
}
.plan-sub {
  margin-top: 4px;
  color: #7d8796;
}

.signals-table td.reasons { font-size: 12px; line-height: 1.5; max-width: 360px; }
.signals-table td.ts { font-size: 12px; color: #a3aab5; white-space: nowrap; }

/* 대시보드: 종목 1행 + 트랙 3 컬럼 */
.verdict-table th { white-space: nowrap; }
.verdict-table td.sym a { font-weight: 600; }
.verdict-table td.px { font-weight: 600; white-space: nowrap; }
.track-cell {
  display: flex; flex-direction: column; gap: 4px;
  padding: 4px 6px;
  background: #0e1116; border-radius: 4px;
  min-width: 220px;
}
.track-cell.empty { color: #6c7a89; font-style: italic; }
.track-cell .reasons { font-size: 11px; color: #a3aab5; line-height: 1.4; }
.track-cell .targets { font-size: 11px; color: #88c0d0; font-family: monospace; margin-top: 2px; }
.track-cell .targets.ref { color: #6c7a89; font-style: italic; }

/* 추천 종목 화면 */
.recommendations-page .muted { color: #6c7a89; font-size: 12px; margin-bottom: 12px; }
.reco-tabs button.active { background: #5e81ac; color: #fff; }
.reco-table th { white-space: nowrap; }
.reco-table .rank { font-weight: 700; color: #88c0d0; text-align: center; }
.reco-table .score { font-family: monospace; }
.reco-table .indices { font-size: 11px; color: #a3aab5; }
.reco-table .metrics { font-size: 12px; color: #d8dee9; }
.reco-table .reasons ul { margin: 0; padding-left: 16px; }
.reco-table .reasons li { font-size: 12px; padding: 1px 0; color: #d8dee9; }
.reco-table .add-wl { padding: 4px 10px; font-size: 12px; }

/* 로그인 페이지 */
.login-page { display: flex; min-height: 100vh; align-items: center; justify-content: center; }
.login-box {
  background: #161b22; padding: 36px 32px; border-radius: 10px;
  border: 1px solid #2a3140; min-width: 320px; max-width: 400px;
}
.login-box h1 { display: flex; align-items: center; justify-content: center; margin: 0 0 12px; }
.login-box .muted { color: #6c7a89; margin: 0 0 18px; font-size: 12px; }
.login-box label { display: block; margin: 12px 0 4px; font-size: 12px; color: #a3aab5; }
.login-box input[type="text"], .login-box input[type="password"] {
  width: 100%; padding: 8px 10px; background: #0e1116; border: 1px solid #3a4150;
  color: #d8dee9; border-radius: 6px; font-size: 14px;
}
.login-box button {
  width: 100%; margin-top: 18px; padding: 10px;
  background: #5e81ac; color: #fff; font-weight: 600; border: 0;
}
.login-box button:hover { background: #6f93bd; }
.login-error {
  background: #2a1a1a; border: 1px solid #6b3c3c; color: #bf616a;
  padding: 8px 12px; border-radius: 6px; font-size: 12px; margin-bottom: 12px;
}
.app-header nav a.logout { color: #6c7a89; font-size: 12px; }

/* 차트 서브 패널 구분선 */
#chart-rsi, #chart-macd {
  border-top: 1px solid #2a3140;
}

/* 차트 범례 */
.chart-legend {
  display: flex; gap: 10px 16px; flex-wrap: wrap; font-size: 11px; color: #a3aab5;
  padding: 4px 0 8px;
}
.chart-legend .legend-item { display: flex; align-items: center; gap: 4px; }
.chart-legend .sma20::before { content: "─"; color: #ebcb8b; }
.chart-legend .sma60::before { content: "─"; color: #d08770; }
.chart-legend .sma120::before { content: "─"; color: #b48ead; }
.chart-legend .bb::before { content: "⋯"; color: #8fbcbb; }
.chart-legend .rsi::before { content: "─"; color: #ebcb8b; }
.chart-legend .macd-line::before { content: "─"; color: #81a1c1; }
.chart-legend .macd-sig::before { content: "─"; color: #bf616a; }
.chart-legend .nxt { color: rgba(88,140,180,0.9); }

/* 뉴스 리스트 */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list .news-item {
  padding: 10px 12px;
  border-bottom: 1px dotted #2a3140;
}
.news-list .news-item:last-child { border-bottom: none; }
.news-list .news-item a {
  color: #d8dee9;
  font-size: 14px;
  line-height: 1.5;
  display: block;
  margin-bottom: 4px;
}
.news-list .news-item a:hover { color: #88c0d0; text-decoration: underline; }
.news-list .news-meta {
  display: flex; gap: 10px; align-items: center;
  font-size: 11px;
}
.news-list .news-source {
  color: #88c0d0;
  font-weight: 600;
}
.news-list .news-date { color: #6c7a89; }
.news-list .empty { color: #6c7a89; font-style: italic; padding: 8px 12px; }

/* 백필 상태 배지 */
.bf-badge {
  display: inline-block; font-size: 11px; padding: 2px 7px;
  border-radius: 10px; white-space: nowrap;
}
.bf-badge.muted   { background: #1e2533; color: #6c7a89; }
.bf-badge.running { background: #1e2a20; color: #ebcb8b; border: 1px solid #4a6030; }
.bf-badge.done    { background: #1a2a1a; color: #a3be8c; border: 1px solid #3a6030; }
.bf-badge.partial { background: #1e2533; color: #88c0d0; border: 1px solid #2a4060; }

/* 분석 결과 배지 */
.v-badge {
  display: inline-block; font-size: 11px; padding: 2px 6px;
  border-radius: 4px; font-weight: 600; margin-bottom: 4px;
}
.v-badge.pos   { background: #1a2a1a; color: #a3be8c; border: 1px solid #3a6030; }
.v-badge.neg   { background: #2a1a1a; color: #bf616a; border: 1px solid #603a3a; }
.v-badge.watch { background: #1e2533; color: #d8dee9; border: 1px solid #3a4150; }
.v-badge.muted { background: #0e1116; color: #6c7a89; border: 1px solid #2a3140; }

.analyze-btn {
  display: block; width: 100%; font-size: 11px; padding: 3px 6px;
  background: #1c212b; border-color: #3a4150;
}
.analyze-btn:hover { background: #2a3140; }

.reset-btn {
  font-size: 11px; padding: 4px 8px;
  background: #2a251e; border-color: #6b5a3c; color: #ebcb8b;
}
.reset-btn:hover { background: #3a3020; }
.reset-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.backfill-btn {
  font-size: 11px; padding: 4px 8px;
  background: #1e2a2a; border-color: #3a6060; color: #88c0d0;
}
.backfill-btn:hover { background: #203030; }
.backfill-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.force-backfill-btn {
  font-size: 11px; padding: 4px 8px;
  background: #2a1a1a; border-color: #603a3a; color: #bf616a;
}
.force-backfill-btn:hover { background: #302020; }
.force-backfill-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.danger-btn { border-color: #6b3c3c; color: #bf616a; }
.danger-btn:hover { background: #2a1a1a; }
