/* Keep the existing icon and theme; allow the guest label to fit. */
.scanner-iconBtn:has([data-graph-entry-label]) {
  width: auto;
  max-width: 100%;
  min-height: 32px;
  height: auto;
  padding: 6px 8px;
  gap: 6px;
  white-space: normal;
}
[data-graph-entry-label] {
  font: inherit;
  line-height: 1.3;
}
.scanner-graph-entry-modal .modal-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 10px;
}
.scanner-graph-entry-modal h4 {
  padding-inline: 16px;
}
.scanner-graph-entry-modal .modal-actions .btn {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  height: auto;
  white-space: normal;
}
html[data-theme="light"] .scanner-graph-entry-modal {
  background: var(--panel-2) !important;
  color: var(--shell-text) !important;
  border-color: var(--shell-line-strong) !important;
}
html[data-theme="light"] .scanner-graph-entry-modal h4,
html[data-theme="light"] .scanner-graph-entry-modal p,
html[data-theme="light"] .scanner-graph-entry-modal .close-x {
  color: var(--shell-text) !important;
}
html[data-theme="light"] .scanner-graph-entry-modal .btn-ghost {
  background: var(--panel-3) !important;
  color: var(--shell-text) !important;
  border-color: var(--shell-line-strong) !important;
}

/* Do not fix/translate body: scanner viewport sections must keep their geometry. */
html:has(.scanner-graph-entry-modal) {
  overflow: hidden !important;
}
.overlay.overlay--clear[data-api-modal][data-band-modal]:has(> .scanner-graph-entry-modal) {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(3, 10, 22, .65) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: auto;
  overscroll-behavior: contain;
}
.overlay.overlay--clear[data-api-modal][data-band-modal]:has(> .scanner-graph-entry-modal)::before,
.overlay.overlay--clear[data-api-modal][data-band-modal]:has(> .scanner-graph-entry-modal)::after {
  display: none !important;
}
