.boxg-app {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  background: #ffffff;
  color: #0f172a;
  font-family: var(--font-sans, Inter, sans-serif);
}
.boxg-panel {
  padding: 20px;
  background: #f8fafc;
  border-right: 1px solid #d8e1ec;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.boxg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.boxg-field { display: flex; flex-direction: column; gap: 4px; }
.boxg-field.is-full { grid-column: 1 / -1; }
.boxg-field label { font-size: 12px; font-weight: 600; color: #334155; }
.boxg-input, .boxg-select {
  height: 36px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
}
.boxg-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #d8e1ec;
  border-radius: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
}
.boxg-metrics span { display: block; font-size: 10px; color: #64748b; }
.boxg-actions { display: flex; flex-direction: column; gap: 8px; }
.boxg-btn {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.boxg-btn.is-primary { background: #1d4ed8; border-color: #1d4ed8; color: #ffffff; }
.boxg-btn.is-primary:hover { background: #1e40af; }
.boxg-btn.is-teal { background: #0f766e; border-color: #0f766e; color: #ffffff; }
.boxg-btn.is-teal:hover { background: #115e59; }
.boxg-stage {
  display: flex;
  flex-direction: column;
  background: #0b1220;
  min-height: 480px;
}
.boxg-stage-bar {
  padding: 10px 16px;
  background: #162032;
  border-bottom: 1px solid #334155;
  color: #cbd5e1;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.boxg-canvas { width: 100%; height: 460px; display: block; }
@media (max-width: 860px) {
  .boxg-app { grid-template-columns: 1fr; }
  .boxg-panel { border-right: 0; border-bottom: 1px solid #d8e1ec; }
  .boxg-canvas { height: 340px; }
}