:root {
  --bg:#f9fafb;
  --card:#ffffff;
  --up:#22c55e;
  --down:#ef4444;
  --text:#111827;
  --muted:#6b7280;
  --shadow:0 4px 10px rgba(0,0,0,0.05);

  --lineA:#008080;
  --lineB:#3b82f6;
  --lineC:#f97316;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  margin: 0;
  padding: 10px;
  color: var(--text);
  font-size: 18px;
}

header {
  text-align: center;
  margin-bottom: 20px;
}
h1 {
  margin: 0;
  font-size: 28px;
}
.subtitle {
  margin: 5px 0 10px 0;
  color: var(--muted);
  font-size: 16px;
}
.controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}
.btn.export {
  background: #3b82f6;
  color: #fff;
}

.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.line-card {
  background: var(--card);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.line-card h2 {
  margin: 0 0 15px 0;
  font-size: 22px;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  color: white;
}

.line-card.line-A h2 { background: var(--lineA); }
.line-card.line-B h2 { background: var(--lineB); }
.line-card.line-C h2 { background: var(--lineC); }

.component {
  padding: 14px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px #e5e7eb;
  margin-bottom: 14px;
  background: #fff;
}

.comp-name {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 18px;
}

.toggleBtn {
  font-size: 18px;
  font-weight: bold;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
}

.note {
  margin-top: 6px;
  display: none;
}
.note textarea {
  width: 100%;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  resize: none;
  background: #f3f4f6;
  color: #374151;
  min-height: 40px;
}

footer {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
