/* ==========================================================================
   Daily Notes ("The Brain") & Daily Pulse Configuration Stylesheet
   Self-contained, portable module CSS. Uses host theme variables for config
   panels while rendering the signature Shawarmer burgundy/gold stage for The Brain.
   ========================================================================== */

.dp-root {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding-bottom: 48px;
  box-sizing: border-box;
  color: var(--text, #0B0F11);
}

.dp-root .btn-ghost {
  background: var(--surface, #FFFFFF);
  color: var(--text, #0B0F11);
  border: 1px solid var(--line, #E5E0D7);
}

.dp-root .btn-ghost:hover:not(:disabled) {
  background: var(--line-soft, #EFEBE3);
  border-color: #d6cfc2;
}

/* ── Top Action Strip ───────────────────────────────────────────────────── */
.dp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.dp-topbar-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dp-topbar-title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text, #0B0F11);
}

.dp-topbar-sub {
  font-size: 13px;
  color: var(--text-2, #4C5652);
  margin: 2px 0 0;
}

.dp-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── "The Brain" VFX Stage ──────────────────────────────────────────────── */
.dp-brain-stage {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 36px 28px 28px;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 34%, rgba(164, 28, 78, 0.72) 0%, rgba(114, 15, 51, 0.88) 42%, rgba(44, 5, 19, 0.98) 100%),
    #2b0513;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 24px 60px rgba(20, 2, 9, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  isolation: isolate;
}

.dp-brain-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.dp-stage-overlay-top {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.dp-stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.dp-stage-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fdb813;
  box-shadow: 0 0 10px #fdb813;
}

.dp-stage-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dp-stage-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.dp-stage-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.36);
  transform: translateY(-1px);
}

.dp-stage-btn.amber {
  background: rgba(253, 184, 19, 0.18);
  border-color: rgba(253, 184, 19, 0.5);
  color: #ffe08a;
}

.dp-stage-btn.amber:hover {
  background: rgba(253, 184, 19, 0.28);
}

.dp-stage-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Center Brand Lockup matching reference image */
.dp-brain-hero {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 6px 0 4px;
  flex-wrap: wrap;
  text-align: start;
}

[dir="rtl"] .dp-brain-hero {
  direction: ltr; /* Keep "The Brain" lockup geometry consistent */
}

.dp-brain-icon-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dp-brain-aura {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 184, 19, 0.42) 0%, rgba(255, 130, 160, 0.16) 45%, transparent 72%);
  filter: blur(10px);
  opacity: 0.72;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.dp-brain-stage.is-playing .dp-brain-aura {
  animation: dpAuraPulse 1.8s ease-in-out infinite;
}

@keyframes dpAuraPulse {
  0%, 100% { transform: scale(1); opacity: 0.72; }
  50% { transform: scale(1.14); opacity: 1; }
}

.dp-brain-svg {
  position: relative;
  z-index: 1;
  width: 102px;
  height: 102px;
  filter: drop-shadow(0 0 14px rgba(253, 184, 19, 0.45));
}

.dp-brain-stage.is-playing .dp-brain-circuit-node {
  animation: dpSynapse 1.3s ease-in-out infinite alternate;
}

@keyframes dpSynapse {
  from { opacity: 0.75; }
  to { opacity: 1; filter: drop-shadow(0 0 6px #fdb813); }
}

.dp-brain-wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.dp-brain-title {
  margin: 0;
  font-size: clamp(2.2rem, 4.4vw, 3.45rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.dp-brain-title strong {
  font-weight: 800;
}

.dp-brain-title span {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
}

.dp-tenant-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.dp-tenant-pill-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fdb813;
  box-shadow: 0 0 10px 2px rgba(253, 184, 19, 0.85);
}

/* KPI Snapshot Strip on Stage */
.dp-stage-kpis {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 820px;
}

.dp-stage-kpi-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.dp-stage-kpi-chip b {
  color: #ffe08a;
  font-weight: 700;
}

/* Waveform Scrubber */
.dp-wave-area {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.dp-waveform-track {
  width: 100%;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  cursor: pointer;
  user-select: none;
  touch-action: none;
}

.dp-wave-bar {
  flex: 1 1 0;
  max-width: 6px;
  min-width: 2.5px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 224, 232, 0.42);
  transition: height 0.08s linear, background 0.14s ease, box-shadow 0.14s ease;
}

.dp-wave-bar.is-hot {
  background: linear-gradient(180deg, #ffe082 0%, #fdb813 55%, #ea580c 100%);
  box-shadow: 0 0 12px rgba(253, 184, 19, 0.72);
}

.dp-wave-bar.is-played {
  background: rgba(253, 184, 19, 0.78);
}

/* Floating Audio Controls Dock */
.dp-player-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  max-width: 680px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(18, 3, 9, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.dp-player-left,
.dp-player-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dp-play-main {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #fdb813 0%, #f59e0b 100%);
  color: #2b0513;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(253, 184, 19, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}

.dp-play-main:hover:not(:disabled) {
  transform: scale(1.06);
  box-shadow: 0 6px 22px rgba(253, 184, 19, 0.65);
}

.dp-play-main:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dp-icon-ctl {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.dp-icon-ctl:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
}

.dp-icon-ctl:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.dp-time-readout {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
  font-size: 12.5px;
  color: var(--text-2, #4C5652);
  font-variant-numeric: tabular-nums;
}

.dp-brain-stage .dp-time-readout {
  color: rgba(255, 255, 255, 0.88);
}

.dp-transcript-drawer {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 780px;
  background: rgba(14, 2, 7, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 14px 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1.75;
  direction: rtl;
  text-align: right;
}

.dp-empty-stage {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 520px;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px dashed rgba(255, 255, 255, 0.24);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
}

/* ── Historical Voice Notes Section ─────────────────────────────────────── */
.dp-history-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dp-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.dp-history-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text, #0B0F11);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dp-count-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(47, 143, 232, 0.12);
  color: #196ec0;
}

.dp-history-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dp-search-input {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line, #E5E0D7);
  background: var(--surface, #FFFFFF);
  color: var(--text, #0B0F11);
  font-size: 13px;
  min-width: 220px;
}

.dp-search-input::placeholder {
  color: var(--text-3, #6E7874);
}

.dp-search-input:focus {
  outline: none;
  border-color: var(--brand-primary, #2F8FE8);
  box-shadow: 0 0 0 3px rgba(47, 143, 232, 0.14);
}

.dp-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dp-note-card {
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--line, #E5E0D7);
  border-radius: var(--r-lg, 18px);
  padding: 18px 22px;
  color: var(--text, #0B0F11);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.dp-note-card.is-active {
  border-color: #9e1b47;
  box-shadow: 0 0 0 1px rgba(158, 27, 71, 0.22), 0 8px 22px rgba(126, 24, 61, 0.08);
}

.dp-note-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.dp-note-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
  flex: 1;
}

.dp-note-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(126, 24, 61, 0.26);
  background: rgba(126, 24, 61, 0.08);
  color: #7e183d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.dp-note-play-btn:hover:not(:disabled),
.dp-note-card.is-active .dp-note-play-btn {
  background: #7e183d;
  border-color: #7e183d;
  color: #fdb813;
  transform: scale(1.05);
}

.dp-note-play-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.dp-note-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.dp-note-date-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dp-note-date {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text, #0B0F11);
}

.dp-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  background: #F1EFEA;
  border: 1px solid var(--line, #E5E0D7);
  color: var(--text-2, #4C5652);
}

.dp-pill.ok {
  background: var(--ok-bg, #E6F2EE);
  border-color: #b7dfd1;
  color: var(--ok-fg, #094F41);
}

.dp-pill.warn {
  background: var(--warn-bg, #FAEFE6);
  border-color: #e8cbb5;
  color: #8A4B2A;
}

.dp-pill.err {
  background: var(--danger-bg, #FCEBEA);
  border-color: #f2c3be;
  color: var(--danger, #B4483C);
}

.dp-note-kpis {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-2, #4C5652);
}

.dp-note-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dp-note-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dp-mini-scrubber {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--line-soft, #EFEBE3);
  cursor: pointer;
  overflow: hidden;
}

.dp-mini-scrubber-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7e183d, #e0960c);
  transition: width 0.1s linear;
}

.dp-note-script {
  padding: 12px 14px;
  border-radius: 10px;
  background: #FBFAF7;
  border: 1px solid var(--line, #E5E0D7);
  font-size: 13.5px;
  line-height: 1.75;
  direction: rtl;
  text-align: right;
  color: var(--text, #0B0F11);
}

/* ── Configuration Page ("Configuration Cells") ─────────────────────────── */
.dp-cfg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 960px) {
  .dp-cfg-grid {
    grid-template-columns: 1fr;
  }
}

.dp-card {
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--line, #E5E0D7);
  border-radius: var(--r-lg, 18px);
  padding: 22px;
  color: var(--text, #0B0F11);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dp-card.full {
  grid-column: 1 / -1;
}

.dp-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dp-card-head h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text, #0B0F11);
}

.dp-card-head p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--text-2, #4C5652);
}

.dp-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 640px) {
  .dp-form-grid {
    grid-template-columns: 1fr;
  }
}

.dp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dp-field.full {
  grid-column: 1 / -1;
}

.dp-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2, #4C5652);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.dp-field input,
.dp-field select,
.dp-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--line, #E5E0D7);
  background: var(--surface, #FFFFFF);
  color: var(--text, #0B0F11);
  font-size: 13.5px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dp-field input::placeholder,
.dp-field textarea::placeholder,
.dp-add-row input::placeholder {
  color: var(--text-3, #6E7874);
}

.dp-field input:focus,
.dp-field select:focus,
.dp-field textarea:focus,
.dp-add-row input:focus {
  outline: none;
  border-color: var(--brand-primary, #2F8FE8);
  box-shadow: 0 0 0 3px rgba(47, 143, 232, 0.14);
}

.dp-field textarea {
  min-height: 70px;
  resize: vertical;
}

.dp-pass-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.dp-secret-input {
  -webkit-text-security: disc;
  text-security: disc;
}

.dp-pass-wrap input {
  padding-inline-end: 38px;
}

.dp-pass-eye {
  position: absolute;
  inset-inline-end: 8px;
  background: none;
  border: none;
  color: var(--text-3, #6E7874);
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
}

.dp-pass-eye:hover {
  color: var(--text, #0B0F11);
}

.dp-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dp-preset-btn {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line, #E5E0D7);
  background: #FBFAF7;
  color: var(--text-2, #4C5652);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.dp-preset-btn:hover {
  border-color: var(--brand-primary, #2F8FE8);
  background: #eef6fd;
  color: #196ec0;
}

.dp-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 6px;
}

/* Recipient Configuration Cells */
.dp-add-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 8px;
  align-items: center;
}

@media (max-width: 560px) {
  .dp-add-row {
    grid-template-columns: 1fr;
  }
}

.dp-add-row input {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--line, #E5E0D7);
  background: var(--surface, #FFFFFF);
  color: var(--text, #0B0F11);
  font-size: 13px;
}

.dp-rec-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.dp-rec-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #FBFAF7;
  border: 1px solid var(--line, #E5E0D7);
  color: var(--text, #0B0F11);
}

.dp-rec-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.dp-rec-target {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #0B0F11);
  word-break: break-all;
}

.dp-rec-label {
  font-size: 11.5px;
  color: var(--text-2, #4C5652);
}

.dp-rec-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Switch Toggle */
.dp-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  color: var(--text, #0B0F11);
}

.dp-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.dp-switch-track {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background 0.16s ease;
  flex-shrink: 0;
}

.dp-switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  transition: transform 0.16s ease;
}

.dp-switch input:checked + .dp-switch-track {
  background: #10b981;
}

.dp-switch input:checked + .dp-switch-track::after {
  transform: translateX(16px);
}

/* WhatsApp QR & Pairing Panel */
.dp-wa-qr-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  background: #F4FBF7;
  border: 1px solid #b7e4c7;
  color: var(--text, #0B0F11);
}

.dp-wa-qr-frame {
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line, #E5E0D7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 196px;
  height: 196px;
  flex-shrink: 0;
}

.dp-wa-qr-frame img {
  width: 176px;
  height: 176px;
  display: block;
}

.dp-wa-qr-steps {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2, #4C5652);
}

.dp-wa-qr-steps b {
  color: var(--text, #0B0F11);
}

.dp-wa-pair-code {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--ok-bg, #E6F2EE);
  border: 1px solid #8fd1ba;
  color: var(--ok-fg, #094F41);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.16em;
  width: fit-content;
}

.dp-info-callout {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.55;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E3A5F;
}

.dp-info-callout.warn {
  background: var(--warn-bg, #FAEFE6);
  border-color: #e8cbb5;
  color: #7C3F1E;
}

.dp-btn-danger-ghost {
  background: var(--danger-bg, #FCEBEA);
  color: var(--danger, #B4483C);
  border: 1px solid #f2c3be;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.dp-btn-danger-ghost:hover {
  background: #f9d8d5;
  border-color: #e39e96;
}

@media (prefers-reduced-motion: reduce) {
  .dp-brain-stage.is-playing .dp-brain-aura,
  .dp-brain-stage.is-playing .dp-brain-circuit-node {
    animation: none;
  }
}

