#guest-tools:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid #dbe3ea;
}
#guest-tools button {
  font: inherit;
  font-weight: 600;
  min-height: 38px;
  border-radius: 5px;
  border: 1px solid #beced9;
  color: #15334b;
  background: #f5f9fb;
  cursor: pointer;
}
#guest-tools button:hover { background: #e2e8f0; }
#network-choice:not([hidden]) { display: block; margin-top: 10px; }
#network-select { max-width: 100%; font: inherit; }
#guest-dialog {
  width: min(1040px, calc(100% - 40px));
  max-width: 100%;
  max-height: calc(100% - 32px);
  padding: 0;
  border: 1px solid #bdcbd7;
  border-radius: 10px;
  color: #152d40;
  background: white;
  box-shadow: 0 16px 70px #11273a44;
}
#guest-dialog::backdrop { background: #152b3f80; }
.guest-head {
  padding: 14px 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dbe3ea;
}
.guest-head h2 { font-size: 20px; margin: 0; }
#guest-close { padding: 4px 12px; white-space: nowrap; }
.guest-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 12px 20px; background: #f8fafc; }
.guest-filters label { width: min(100%, 25rem); min-width: 0; }
#guest-object-label { margin-top: 0; color: #64748b; }
#guest-picking { padding: 0 16px; }
#guest-pick, #guest-pick-cancel { min-height: 32px; font: inherit; cursor: pointer; }
#guest-object { max-width: 100%; }
#guest-content { padding: 16px 20px; min-height: 8rem; }
#guest-content section { padding: 0; border: 0; }
@media (max-width: 640px) {
  #guest-dialog { width: 100%; max-height: 100dvh; border-radius: 0; }
  .guest-head, .guest-filters, #guest-content { padding: 12px; }
  #guest-object { width: 100%; font-size: 16px; }
}
