.design-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.4fr) minmax(240px, 0.9fr);
  gap: 1rem;
}
@media (max-width: 1100px) {
  .design-grid { grid-template-columns: 1fr; }
}
.ds-panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
}
.ds-prompt {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  background: rgba(10,10,15,0.65);
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 0.5rem;
  color: #e2e8f0;
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
}
.ds-btn {
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(52,211,153,0.35);
  background: rgba(16,185,129,0.15);
  color: #34d399;
  font-size: 0.82rem;
  cursor: pointer;
}
.ds-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.ds-btn.secondary {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
  color: #cbd5e1;
}
.portal-panel { padding: 0.5rem; min-height: 0; }
#design-canvas-wrap {
  position: relative;
  min-height: 420px;
  height: min(52vh, 520px);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: #060a10;
  flex: 1;
  cursor: grab;
}
#design-canvas { width: 100%; height: 100%; display: block; }
.metric-pill {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 0.75rem;
  padding: 0.45rem 0.85rem;
  min-width: 6.5rem;
}
.metric-pill .metric-label { display: block; font-size: 0.65rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.04em; }
.metric-pill .metric-value { font-size: 1.1rem; font-weight: 700; color: #fbbf24; }
.canvas-hud {
  position: absolute;
  top: 8px; left: 10px;
  font-size: 0.72rem;
  color: rgba(232,238,247,0.85);
  pointer-events: none;
  line-height: 1.45;
}
.asset-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; max-height: 280px; overflow-y: auto; }
.asset-item {
  padding: 0.5rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.25);
  font-size: 0.78rem;
}
.asset-item .meta { color: #94a3b8; font-size: 0.7rem; margin-top: 0.2rem; }
.job-list { list-style: none; margin: 0; padding: 0; max-height: 200px; overflow-y: auto; }
.job-item { padding: 0.5rem; border-radius: 0.5rem; border: 1px solid rgba(255,255,255,0.08); margin-bottom: 0.35rem; cursor: pointer; font-size: 0.78rem; }
.job-item.active { border-color: #34d399; }
.graph-pre { font-family: ui-monospace, monospace; font-size: 0.7rem; background: rgba(0,0,0,0.35); padding: 0.5rem; border-radius: 0.5rem; max-height: 140px; overflow: auto; white-space: pre-wrap; }
.badge-live { background: rgba(52,211,153,0.12); color: #34d399; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.72rem; }
.badge-off { background: rgba(148,163,184,0.12); color: #94a3b8; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.72rem; }