/* slot-board 専用 — 既存 sugudasu.css の構造は変更しない */
.sg-usecase {
  padding: 0.875rem 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}
.sb-empty {
  margin: 0;
  padding: 1rem 0.25rem;
}
.sb-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.8125rem;
}
.sb-summary.hidden {
  display: none;
}
.sb-summary--ok {
  border-color: #86efac;
  background: #ecfdf5;
  color: #065f46;
}
.sb-summary--over {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}
.sb-summary__badge {
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.45;
}
.sb-lanes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.sb-empty.hidden {
  display: none;
}
.sb-lane {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  overflow: hidden;
}
.sb-lane--over {
  border-color: #f87171;
  background: #fef2f2;
}
.sb-lane--flash {
  animation: sb-flash 0.6s ease-in-out 2;
}
@keyframes sb-flash {
  0%,
  100% {
    background: #fef2f2;
  }
  50% {
    background: #fecaca;
  }
}
.sb-lane__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}
.sb-lane--over .sb-lane__head {
  background: #fee2e2;
}
.sb-lane__title {
  font-weight: 700;
  font-size: 0.875rem;
  color: #0f172a;
  min-width: 4rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.sb-lane__meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
}
.sb-lane--over .sb-lane__meta {
  color: #b91c1c;
}
.sb-lane__over-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #b91c1c;
}
.sb-lane__body {
  min-height: 2.5rem;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.sb-item {
  padding: 0.5rem 0.625rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  font-size: 0.8125rem;
  cursor: grab;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.sb-item:active {
  cursor: grabbing;
}
.sb-item.dragging {
  opacity: 0.5;
}
.sb-lane__body.drag-over {
  outline: 2px dashed #a78bfa;
  outline-offset: -2px;
  background: #f5f3ff;
}
.sb-inline {
  font-size: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  padding: 0.25rem 0.4rem;
  max-width: 12rem;
}
.sb-inline--limit {
  width: 4rem;
}
.sb-lane__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-left: auto;
}
.sb-lane__actions button {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 0.375rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
}
.sb-lane__actions button:hover {
  background: #f1f5f9;
}

.sb-pools {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.sb-zone {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  overflow: hidden;
}
.sb-zone__head {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}
.sb-zone__body {
  min-height: 2.5rem;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.sb-zone__body.drag-over,
.sb-lane__body.drag-over {
  outline: 2px dashed #38bdf8;
  outline-offset: -2px;
  background: #f0f9ff;
}
.sb-item--selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgb(37 99 235 / 0.25);
}
.sb-lane--place-target,
.sb-zone--place-target {
  outline: 2px dashed #38bdf8;
  outline-offset: 2px;
}
.sb-place-btn {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid #38bdf8;
  background: #e0f2fe;
  color: #075985;
  cursor: pointer;
}
.sb-item__evidence {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  color: #64748b;
  white-space: pre-wrap;
}
.sb-item__evidence--masked {
  filter: blur(4px);
  user-select: none;
}
.sb-readonly .sb-item {
  cursor: default;
}
.sb-toolbar {
  padding: 0.5rem 0;
}
