body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #eef3f9;
  color: #10233c;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #10233c;
  color: #fff;
  padding: 14px 20px;
  gap: 10px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mode-toggle {
  display: flex;
  gap: 6px;
}

.mode-btn {
  width: auto;
  margin: 0;
  background: #355e94;
  padding: 6px 10px;
}

.mode-btn.active {
  background: #0f77d6;
}

.topbar-link {
  color: #d7e8ff;
  text-decoration: none;
  font-weight: 600;
}

.topbar-link:hover {
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 16px auto;
  padding: 0 12px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}

.container.narrow {
  max-width: 480px;
  display: block;
  margin-top: 40px;
}

.card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #d9e2ef;
  box-shadow: 0 4px 16px rgba(15, 32, 64, 0.08);
  padding: 14px;
}

.card-wide {
  grid-column: 1 / -1;
}

h1, h2 {
  margin-top: 0;
}

.kanban-col h3 {
  margin: 0 0 8px 0;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #20456f;
}

.help {
  margin: 0 0 8px 0;
  color: #3a4f6d;
  font-size: 0.92rem;
}

.steps {
  margin: 0 0 10px 20px;
  padding: 0;
}

.steps li {
  margin-bottom: 6px;
}

label {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
}

input, select, textarea, button {
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  margin-bottom: 8px;
  padding: 8px;
  border: 1px solid #bcc8db;
  border-radius: 6px;
  font: inherit;
}

button {
  cursor: pointer;
  background: #173f73;
  color: #fff;
  border: none;
}

button:hover {
  background: #1f5397;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.row > button,
.row > div {
  flex: 1;
  min-width: 220px;
}

pre {
  white-space: pre-wrap;
  max-height: 240px;
  overflow: auto;
  background: #f2f6fb;
  border: 1px solid #d7e2f2;
  border-radius: 6px;
  padding: 10px;
}

.result-box {
  background: #f8fbff;
  border: 1px solid #d7e2f2;
  border-radius: 6px;
  padding: 10px;
  font-size: 0.92rem;
}

.result-box table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.result-box th,
.result-box td {
  border-bottom: 1px solid #d9e2ef;
  text-align: left;
  padding: 6px 4px;
  vertical-align: top;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 6px;
}

.metric {
  background: #ffffff;
  border: 1px solid #d9e2ef;
  border-radius: 6px;
  padding: 6px;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.kanban-col {
  background: #f8fbff;
  border: 1px solid #d7e2f2;
  border-radius: 8px;
  padding: 8px;
}

.kanban-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 120px;
}

.kanban-item {
  background: #fff;
  border: 1px solid #d9e2ef;
  border-radius: 6px;
  padding: 8px;
}

.kanban-item .title {
  font-weight: 700;
  font-size: 0.9rem;
}

.kanban-item .meta {
  font-size: 0.82rem;
  color: #40587a;
}

.fit-high {
  color: #0f5b2f;
}

.fit-medium {
  color: #8a5b00;
}

.fit-low {
  color: #7a2031;
}

details {
  margin-top: 8px;
}

summary {
  cursor: pointer;
  color: #1f5397;
}

.job-link {
  color: #0f77d6;
  text-decoration: none;
  font-weight: 600;
}

.job-link:hover {
  text-decoration: underline;
}

.muted {
  color: #6b7f99;
}

.status {
  min-height: 20px;
  color: #0f5b2f;
  font-size: 0.93rem;
}

.expert-only {
  display: none;
}

body.expert-mode .expert-only {
  display: block;
}

@media (max-width: 980px) {
  .kanban-board {
    grid-template-columns: 1fr;
  }
}
