#bp-aviso, #bp-confirmacion {
  color: #172b3b;
  background: #f1f5f7;
  border-bottom: 1px solid #dbe3e8;
  font-family: inherit;
}
#bp-aviso[hidden], #bp-confirmacion[hidden], #bp-dialogo:not([open]) { display: none; }
.bp-bar {
  width: min(1320px, calc(100% - clamp(2rem, 8vw, 8rem)));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem 1.4rem;
  padding-block: .52rem;
}
.bp-copy h2 { margin: 0; font-family: inherit; font-size: .87rem; font-weight: 650; line-height: 1.4; letter-spacing: -.01em; }
.bp-copy p { color: #455666; font-size: .78rem; line-height: 1.45; margin: .1rem 0 0; }
.bp-actions { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; flex: 0 0 auto; }
.bp-bar button, #bp-dialogo button {
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  min-height: 44px;
  font-size: .81rem;
  font-weight: 620;
  line-height: 1.25;
}
.bp-choice { padding: .45rem .8rem; background: white; color: #123b5d; border: 1px solid #a9bac8; border-radius: 5px; }
.bp-choice:hover { border-color: #0a4d8c; background: #f8fbfd; }
.bp-config { color: #0a4d8c; border: 0; background: transparent; padding: .4rem .6rem; text-decoration: underline; text-underline-offset: .16em; }
.bp-bar button:focus-visible, #bp-dialogo :is(input, button):focus-visible { outline: 2px solid #0a4d8c; outline-offset: 2px; }
#bp-confirmacion .bp-bar { justify-content: flex-start; padding-block: .2rem; font-size: .81rem; }
.bp-inline-status { display: block; margin-block: .3rem; color: inherit; font-size: .78rem; line-height: 1.5; }

#bp-dialogo {
  width: min(560px, calc(100% - 2rem));
  max-width: none;
  max-height: min(90vh, 780px);
  max-height: min(90dvh, 780px);
  box-sizing: border-box;
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  color: #172b3b;
  background: #fffefb;
  border: 1px solid #d7dfe4;
  border-radius: 12px;
  box-shadow: 0 20px 70px #10253738;
  font-family: inherit;
}
#bp-dialogo.bp-inline-dialog { position: static; margin: 1.5rem auto; }
#bp-dialogo::backdrop { background: rgb(18 37 53 / 62%); }
html:has(#bp-dialogo:modal) { overflow: hidden; }
.bp-dialog-head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem clamp(1.15rem, 4vw, 1.85rem);
  background: #142e46; color: #fff;
}
.bp-dialog-head h2 { font-size: clamp(1.25rem, 3.3vw, 1.65rem); line-height: 1.15; letter-spacing: -.035em; font-weight: 620; margin: 0; color: inherit; }
.bp-dialog-head h2:focus { outline: none; }
#bp-dialogo .bp-close { width: 44px; padding: .76rem; flex: none; color: inherit; background: transparent; border: 0; border-radius: 50%; }
#bp-dialogo .bp-close svg { width: 100%; height: 100%; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
#bp-dialogo .bp-close:hover { background: #ffffff20; }
#bp-dialogo .bp-close:focus-visible { outline-color: #fff; }
.bp-dialog-body { padding: 1rem clamp(1.15rem, 4vw, 1.85rem) 1.6rem; }
.bp-list { margin: 0; }
.bp-list > div { display: grid; grid-template-columns: minmax(6.5rem, .75fr) minmax(0, 2fr); gap: .75rem; padding: .7rem 0; border-bottom: 1px solid #e0e4e6; }
.bp-list dt, .bp-list dd { font-size: .84rem; line-height: 1.5; }
.bp-list dt { font-weight: 650; }
.bp-list dd { margin: 0; color: #465764; }
.bp-scope, .bp-storage, .bp-state { font-size: .82rem; line-height: 1.5; color: #465764; }
.bp-scope { margin: 1rem 0; }
.bp-state { font-weight: 600; color: #172b3b; margin: 0 0 .5rem; }
.bp-radios { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem; border: 0; padding: 0; min-width: 0; margin: 0; }
.bp-radios legend { padding: 0; font-size: .83rem; font-weight: 650; }
.bp-radios label { min-height: 44px; display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; font-size: .85rem; }
.bp-radios input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: #0a4d8c; }
.bp-storage { margin: .45rem 0 .95rem; }
#bp-dialogo .bp-save { padding: .68rem 1.15rem; color: #fff; background: #0a4d8c; border: 1px solid #0a4d8c; border-radius: 5px; }
#bp-dialogo .bp-save:hover:not(:disabled) { background: #073e72; }
#bp-dialogo .bp-save:disabled { color: #53616b; background: #e6ebee; border-color: #d6dde0; cursor: default; }

@media (max-width: 760px) {
  #bp-aviso .bp-bar { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .bp-actions {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    width: min(100%, 27rem);
  }
}
@media (max-width: 420px) {
  .bp-actions { gap: .15rem .35rem; }
  .bp-choice { padding-inline: .55rem; }
  .bp-config { padding-inline: .35rem; }
  #bp-dialogo { width: calc(100% - 1rem); max-height: calc(100vh - 1rem); max-height: calc(100dvh - 1rem); }
  .bp-list > div { grid-template-columns: minmax(5.7rem, .8fr) minmax(0, 1.8fr); gap: .5rem; }
}
