@import './components/canvas/Canvas.css';
.screener-page {
  padding: 24px;
  color: var(--text, #e5e7eb);
  background: var(--bg, #0b0f17);
  min-height: 100vh;
}

.screener-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.screener-header h1 {
  font-size: 28px;
  margin: 0 0 4px 0;
}

.screener-header .meta {
  color: #9ca3af;
  font-size: 13px;
  margin: 0;
}

.screener-header nav a {
  margin-left: 12px;
  color: #9ca3af;
  text-decoration: none;
}

.screener-grid {
  display: grid;
  grid-template-columns: 320px 1fr 280px;
  gap: 24px;
}

@media (max-width: 1023px) {
  .screener-page { padding: 16px; }
  .screener-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .screener-grid { grid-template-columns: 1fr; gap: 16px; }
  .screener-left { order: 1; }
  .screener-center { order: 2; }
  .screener-right { order: 3; }
  .screener-table { font-size: 12px; }
  .screener-table th, .screener-table td { padding: 6px 4px; }
}

@media (max-width: 640px) {
  .screener-page { padding: 12px; }
  .screener-card { padding: 12px; }
}

.screener-loading { padding: 80px; text-align: center; color: #9ca3af; }

.screener-card {
  background: #0f1623;
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}
.screener-card h3 { margin: 0 0 12px 0; font-size: 15px; }

.node-card {
  background: #0a0f1a;
  border: 1px solid #1f2937;
  border-radius: 6px;
  padding: 10px;
  font-size: 13px;
}
.node-card-header { font-weight: 500; margin-bottom: 6px; }
.weight-row, .param-row { display: flex; align-items: center; gap: 6px; margin-top: 6px; }

.screener-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
}
.screener-table th { text-align: left; padding: 8px; background: #0a0f1a; color: #9ca3af; font-weight: 500; border-bottom: 1px solid #1f2937; }
.screener-table td { padding: 8px; border-bottom: 1px solid #1a2230; vertical-align: middle; }
.screener-table tr:hover { background: #0a0f1a; }

/* === 결과 표 헤더 === */
.screener-result-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
.screener-warn {
  background: #7c2d12;
  color: #fde68a;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}

/* === 모바일 카드 layout === */
.screener-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.screener-mcard {
  background: #0a0f1a;
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.screener-mcard-head {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
}
.screener-mcard-rank {
  font-size: 16px;
  font-weight: 700;
  color: #fbbf24;
  text-align: center;
}
.screener-mcard-name-main {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}
.screener-mcard-name-sub {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
  font-family: monospace;
}
.screener-mcard-score {
  text-align: right;
}
.screener-mcard-score-val {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.screener-mcard-score-lbl {
  font-size: 10px;
  color: #6b7280;
  margin-top: 2px;
}
.screener-mcard-delta {
  display: flex;
  justify-content: space-around;
  font-size: 11px;
  color: #9ca3af;
  background: #0f1623;
  padding: 4px 8px;
  border-radius: 4px;
}
.screener-mcard-delta span { display: flex; gap: 4px; align-items: center; }
.screener-mcard-chips { padding: 0; }
.screener-mcard-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  font-size: 12px;
  padding-top: 6px;
  border-top: 1px solid #1f2937;
}
.screener-mcard-prices > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.screener-mcard-prices .lbl {
  color: #6b7280;
  font-size: 11px;
}
.screener-out-divider {
  text-align: center;
  color: #6b7280;
  font-size: 11px;
  padding: 12px 0 4px;
}
