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

body {
  background: #1a1a2e;
  color: #e0e0e0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #0f0f23;
  border-bottom: 1px solid #2a2a4a;
}

header h1 { font-size: 20px; color: #fff; }
#last-refresh { font-size: 12px; color: #666; }

#board {
  display: flex;
  gap: 12px;
  padding: 16px;
  min-height: calc(100vh - 60px);
  overflow-x: auto;
}

.column {
  min-width: 240px;
  max-width: 280px;
  flex: 1;
  background: #0f0f23;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.column-header {
  padding: 12px 14px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  border-bottom: 1px solid #2a2a4a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.column-header .count {
  background: #2a2a4a;
  color: #aaa;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
}

.column-body {
  padding: 8px;
  flex: 1;
  min-height: 100px;
  overflow-y: auto;
}

.column-body.drag-over {
  background: rgba(100, 100, 255, 0.08);
  border-radius: 0 0 8px 8px;
}

.card {
  background: #16213e;
  border: 1px solid #2a2a4a;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: grab;
  transition: transform 0.1s, box-shadow 0.1s;
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.card.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
}

.card-company {
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.score-high { background: #1b5e20; color: #a5d6a7; }
.score-mid { background: #e65100; color: #ffcc80; }
.score-low { background: #424242; color: #bdbdbd; }

.source-badge {
  background: #1a237e;
  color: #9fa8da;
  font-size: 10px;
  text-transform: uppercase;
}

.card-signal {
  font-size: 12px;
  color: #999;
  margin: 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.tag {
  background: #2a2a4a;
  color: #aaa;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
}

.card-time {
  font-size: 10px;
  color: #555;
  margin-top: 6px;
}

/* Side Panel */
#panel-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
}

#panel-overlay.hidden { display: none; }

#panel {
  width: 520px;
  max-width: 90vw;
  background: #0f0f23;
  height: 100vh;
  overflow-y: auto;
  padding: 24px;
  border-left: 1px solid #2a2a4a;
  position: relative;
}

#panel-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #888;
  font-size: 28px;
  cursor: pointer;
}

#panel-close:hover { color: #fff; }

#panel h2 {
  font-size: 22px;
  color: #fff;
  margin-bottom: 16px;
}

#panel .section {
  margin-bottom: 20px;
}

#panel .section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  margin-bottom: 6px;
}

#panel .section-value {
  font-size: 14px;
  color: #ccc;
  line-height: 1.5;
}

#panel .section-value a {
  color: #7986cb;
}

#panel textarea {
  width: 100%;
  background: #16213e;
  color: #e0e0e0;
  border: 1px solid #2a2a4a;
  border-radius: 4px;
  padding: 10px;
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
  min-height: 120px;
}

#panel .comment {
  background: #16213e;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 8px;
}

#panel .comment-meta {
  font-size: 11px;
  color: #666;
  margin-bottom: 4px;
}

#panel .comment-text {
  font-size: 13px;
  color: #ccc;
}

#panel .add-comment {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

#panel .add-comment input {
  flex: 1;
  background: #16213e;
  color: #e0e0e0;
  border: 1px solid #2a2a4a;
  border-radius: 4px;
  padding: 8px;
  font-size: 13px;
}

#panel .add-comment button, .copy-btn {
  background: #1a237e;
  color: #9fa8da;
  border: none;
  border-radius: 4px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 12px;
}

#panel .add-comment button:hover, .copy-btn:hover {
  background: #283593;
}

.copy-btn {
  margin-top: 6px;
  display: inline-block;
}

.none-text { color: #555; font-style: italic; }
