.digital-workshop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 12px;
  min-height: 720px;
}

.digital-workshop-stage {
  position: relative;
  min-height: 700px;
  border: 1px solid var(--border, #d9e2ec);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, #eef4ff 0%, #f7fafc 45%, #edf2f7 100%);
}

.digital-workshop-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 700px;
}

.digital-workshop-float-label {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, -120%);
  font-size: 11px;
  line-height: 1.3;
  padding: 3px 7px;
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  white-space: nowrap;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
}

.digital-workshop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 10px;
}

.digital-workshop-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.digital-workshop-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #52606d;
}

.digital-workshop-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.digital-workshop-dot.idle { background: #9ae6b4; }
.digital-workshop-dot.busy { background: #63b3ed; }
.digital-workshop-dot.backlog { background: #f6ad55; }
.digital-workshop-dot.error { background: #fc8181; }
.digital-workshop-dot.offline { background: #a0aec0; }

.digital-workshop-status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.06);
}

.digital-workshop-status-dot.idle { background: #68d391; }
.digital-workshop-status-dot.busy { background: #4299e1; }
.digital-workshop-status-dot.backlog { background: #ed8936; }
.digital-workshop-status-dot.error { background: #f56565; }
.digital-workshop-status-dot.offline { background: #a0aec0; }

.digital-workshop-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.digital-workshop-card {
  border: 1px solid var(--border, #d9e2ec);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
}

.digital-workshop-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.digital-workshop-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.digital-workshop-summary span {
  display: block;
  font-size: 11px;
  color: #829ab1;
}

.digital-workshop-summary strong {
  font-size: 18px;
  color: #102a43;
}

.digital-workshop-station-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
}

.digital-workshop-station {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  background: #f8fafc;
  text-align: left;
}

.digital-workshop-station.active {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6 inset;
  background: #eff6ff;
}

.digital-workshop-station-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}

.digital-workshop-station-head strong {
  font-size: 13px;
}

.digital-workshop-station p {
  margin: 0;
  font-size: 12px;
  color: #486581;
}

.digital-workshop-station small {
  display: block;
  margin-top: 4px;
  color: #829ab1;
  font-size: 11px;
}

.digital-workshop-fallback {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  padding: 12px;
}

.digital-workshop.is-lite .digital-workshop-stage canvas {
  display: none;
}

.digital-workshop.is-lite .digital-workshop-fallback {
  display: grid;
  min-height: 700px;
}

@media (max-width: 1100px) {
  .digital-workshop {
    grid-template-columns: 1fr;
  }
}
