.p2d-app {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  background: #ffffff;
  color: #0f172a;
  font-family: var(--font-sans, Inter, sans-serif);
}
.p2d-panel {
  padding: 20px;
  background: #f8fafc;
  border-right: 1px solid #d8e1ec;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.p2d-drop {
  border: 2px dashed #94a3b8;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  background: #ffffff;
  cursor: pointer;
}
.p2d-drop.is-over { border-color: #1d4ed8; background: #eff6ff; }
.p2d-drop strong { display: block; font-size: 14px; margin-bottom: 4px; }
.p2d-drop span { font-size: 12px; color: #475569; }
.p2d-field { display: flex; flex-direction: column; gap: 4px; }
.p2d-field label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  display: flex;
  justify-content: space-between;
}
.p2d-input, .p2d-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;
}
.p2d-range { width: 100%; accent-color: #1d4ed8; }
.p2d-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.p2d-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}
.p2d-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;
}
.p2d-metrics span { display: block; font-size: 10px; color: #64748b; }
.p2d-actions { display: flex; flex-direction: column; gap: 8px; }
.p2d-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;
}
.p2d-btn:hover { background: #f1f5f9; }
.p2d-btn.is-primary { background: #1d4ed8; border-color: #1d4ed8; color: #ffffff; }
.p2d-btn.is-primary:hover { background: #1e40af; }
.p2d-btn.is-teal { background: #0f766e; border-color: #0f766e; color: #ffffff; }
.p2d-btn.is-teal:hover { background: #115e59; }
.p2d-stage {
  display: flex;
  flex-direction: column;
  background: #0b1220;
  min-height: 480px;
}
.p2d-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;
}
.p2d-canvas { width: 100%; height: 460px; display: block; }
@media (max-width: 860px) {
  .p2d-app { grid-template-columns: 1fr; }
  .p2d-panel { border-right: 0; border-bottom: 1px solid #d8e1ec; }
  .p2d-canvas { height: 340px; }
}