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