* { box-sizing: border-box; }

:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17202a;
  background: #f4f6f8;
}

body { margin: 0; }

.container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 28px 18px 60px;
}

.card {
  background: white;
  border: 1px solid #dfe4ea;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 3px 14px rgba(0,0,0,.04);
}

.hidden { display: none !important; }

h1 { margin: 4px 0 10px; }
h2 { margin-top: 0; }

.eyebrow {
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 700;
  opacity: .6;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.statement-pool {
  min-height: 110px;
  padding: 12px;
  border: 2px dashed #cbd3dc;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: #fafbfc;
}

.statement {
  background: white;
  border: 1px solid #bfc7d0;
  border-radius: 9px;
  padding: 11px 12px;
  cursor: grab;
  user-select: none;
  line-height: 1.35;
  box-shadow: 0 2px 5px rgba(0,0,0,.05);
}

.statement.selected {
  outline: 3px solid #8ab4f8;
}

.statement:active { cursor: grabbing; }

.qgrid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(105px, 1fr));
  gap: 8px;
  align-items: start;
}

.qcolumn {
  min-height: 280px;
  border: 2px solid #d6dce2;
  border-radius: 10px;
  background: #fafbfc;
  padding: 8px;
}

.qcolumn.over { border-style: dashed; }

.qcolumn h3 {
  text-align: center;
  margin: 2px 0 8px;
  font-size: 18px;
}

.slot-count {
  text-align: center;
  font-size: 12px;
  opacity: .65;
  margin-bottom: 8px;
}

.qcolumn .statement {
  margin-bottom: 8px;
  font-size: 13px;
  cursor: grab;
}

button {
  border: 0;
  border-radius: 9px;
  padding: 11px 17px;
  font-weight: 700;
  cursor: pointer;
}

.primary {
  background: #17202a;
  color: white;
}

.primary:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.progress {
  height: 8px;
  background: #e8edf2;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 18px;
}

.progress::before {
  content: "";
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: #17202a;
}

.grid-help {
  margin-top: 14px;
  font-size: 13px;
  opacity: .65;
}

.question {
  margin: 0 0 20px;
}

.question label {
  display: block;
  font-weight: 650;
  margin-bottom: 7px;
}

input, textarea, select {
  width: 100%;
  max-width: 680px;
  border: 1px solid #cbd3dc;
  border-radius: 8px;
  padding: 10px 11px;
  font: inherit;
}

textarea { min-height: 100px; }

.status { margin-top: 12px; }
