/* In-dialog child policy: one device is the doorway; rules follow the child.
   This spans the existing two-column menu grid and shrinks intrinsically at
   phone widths. No control is positioned over a neighbor or given a fixed
   height; the scroll container in app.css remains the only scroll surface. */
.device-menu-actions > .drp {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  gap: var(--dm-gap);
  padding-top: var(--dm-section-gap);
}
.device-menu-actions > .drp-jumps {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}
.drp-jump { min-width: 0; min-height: 44px; white-space: normal; }
.drp-title { margin: 0 2px; font-size: 16px; line-height: 1.35; color: var(--cloud); }
.drp-note, .drp-help, .drp-preview, .drp-current, .drp-message {
  margin: 0; line-height: 1.45; overflow-wrap: anywhere;
}
.drp-note, .drp-help { color: var(--text-secondary); font-size: 13px; }
.drp-card {
  display: grid; gap: 10px; min-width: 0; padding: 16px;
  border: 1px solid var(--border-subtle); border-radius: 16px;
  background: var(--surface-raised);
}
.drp-card-title { margin: 0; color: var(--cloud); font-size: 15px; line-height: 1.35; }
.drp-retry[hidden] { display: none; }
.drp-check[hidden] { display: none; }
.drp-input, .drp-select { min-width: 0; margin: 0; }
.drp-search { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.drp-search > .drp-input { flex: 1 1 180px; width: auto; }
.drp-search > .drp-button { flex: 0 1 auto; }
.drp-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--cloud); font-size: 13px; line-height: 1.4; }
.drp-check > input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--brand); }
.drp-preview, .drp-current { color: var(--text-primary); font-size: 13px; font-weight: 600; }
.drp-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.drp-button { min-width: 0; min-height: 44px; white-space: normal; }
.drp-actions > .drp-button:first-child { color: var(--done-text); }
.drp-actions > .drp-button:last-child { color: var(--danger-text); }
.drp-message { color: var(--text-primary); font-size: 13px; }
.drp-message:empty { display: none; }
.drp-onboarding { width: 100%; min-height: 44px; color: var(--brand-deep); }
@media (max-width: 420px) {
  .drp-card { padding: 12px; }
  .drp-search > .drp-button { flex: 1 1 100%; }
}
