[data-birth] {
  display: grid;
  grid-template-columns: 1fr 1.55fr 1fr;
  gap: .4rem;
  padding: 0;
  margin: .5rem 0;
  min-inline-size: 0;
  border: 0;
}
.access-page [data-birth] { --birth-background: #0f1d2b; }
[data-birth] legend {
  padding: 0;
  margin-bottom: .3rem;
}
[data-birth] select {
  min-width: 0;
  width: 100%;
  min-height: 2.5rem;
  padding: .4rem;
  color: inherit;
  background: var(--birth-background, #151f2b);
  border: 1px solid #435768;
  border-radius: .5rem;
  font: inherit;
  font-size: max(1rem, 1em);
}
[data-whatsapp-mx] { margin: .25rem 0; }
[data-copy-box] [data-copy-field] { user-select: text; -webkit-user-select: text; }
[data-copy-status]:empty { margin: 0; }
[data-whatsapp-mx][hidden], [data-copy-share][hidden] { display: none; }

:where(button, select, textarea, input:not([type=checkbox], [type=radio], [type=range], [type=hidden], [type=file])) {
  font: inherit;
  color: inherit;
  background-color: #172532;
  border: 1px solid #526778;
  border-radius: .55rem;
  padding: .45rem .65rem;
}
:where(button, select, input[type=checkbox], input[type=radio], summary) { cursor: pointer; }
:where(input[type=checkbox], input[type=radio], progress) { accent-color: #72d6bf; }
:where(button, input, select, textarea, summary):focus-visible { outline: 2px solid #72d6bf; outline-offset: 2px; }
summary { color: inherit; border-radius: .45rem; }
:where(.access-page, .family, .ubicacion-menor, .ge-dialog) :is(h1, h2, h3, button, summary, strong) { font-weight: 500; }

.ge-dialog {
  width: min(26rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  box-sizing: border-box;
  color: #eef8f5;
  background: #152633;
  border: 1px solid #52736f;
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: 0 .8rem 2rem #09161baa;
}
.ge-dialog::backdrop { background: #08141ac9; }
.ge-dialog-card h2 { font-size: 1.4rem; margin: 0; }
.ge-dialog-card p { margin: .65rem 0; }
.ge-dialog-card [role=status]:empty { display: none; }
.ge-dialog-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.ge-dialog .ge-primary, .ge-dialog .ge-secondary { min-height: 2.6rem; padding: .5rem .8rem; }
.ge-dialog-actions :is(.ge-primary, .ge-secondary) { justify-content: center; text-align: center; }
.ge-dialog .ge-primary { background: #9ae3cd; border-color: #9ae3cd; color: #102b29; }
.ge-dialog .ge-secondary { background: #213541; border-color: #52736f; color: #eef8f5; }

.ge-family-children { display: grid; gap: .45rem; grid-template-columns: minmax(0, 1fr); }
.ge-family-children > :is(h3, p, div, a, details) { position: static; grid-column: 1; margin: 0; }
.ge-family-children > :is(a, details) { justify-self: start; }
.ge-setup { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
.ge-setup p { flex-basis: 100%; margin: 0; font-size: .9em; }
.family .ge-tutor-card { display: grid; gap: .55rem; align-content: start; }
.family .ge-tutor-card :is(h2, p, dl) { margin: 0; }
.family .ge-overview { display: grid; gap: .3rem; }
.family .ge-tutor-card > button { justify-self: start; }
.family .ge-tutor-card .ge-setup p { flex-basis: auto; }
.family .ge-setup [data-action="setup_deshacer"] {
  min-height: 36px;
  border-color: transparent;
  background: transparent;
  text-decoration: underline;
}
.family .ge-tutor-more > div { display: grid; gap: .55rem; }
.family .ge-tutor-more > div > button { justify-self: start; }
@media (min-width: 700px) {
  .family .ge-tutor-more[open] { padding: 0; border: 0; }
  .family .ge-tutor-more[open] > summary { display: none; }
}
.family :is([popover], [data-setup-global], .family-main) .control.primary {
  justify-content: center;
  text-align: center;
  background: #9ae3cd;
  border-color: #9ae3cd;
  color: #102b29;
}
.family #setup-menor .ge-dialog-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.family #setup-menor [role=status]:empty { display: none; }
.family .ge-permission { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .45rem; align-items: center; }
.family .ge-permission [data-permiso-estado] { font-size: .85rem; }
.family .ge-switch { padding: .2rem; min-height: 2rem; width: 3rem; border-radius: 2rem; justify-self: end; }
.family .ge-switch span { display: block; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: currentColor; }
.family .ge-switch[aria-checked=true] { color: #173137; background: #90dfc5; }
.family .ge-switch[aria-checked=true] span { margin-inline-start: auto; }
.family .ge-notice, .ge-location { border: 1px solid #658281; border-radius: .7rem; padding: .7rem; }
.family .ge-notice :is(h3, ul) { margin: 0 0 .35rem; }
.ge-activities { margin-block: .7rem; padding: .7rem; }
.ge-activities :is(h2, p) { margin: 0 0 .4rem; }
.ge-activities ul, .ge-calm-links { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; list-style: none; }
.ge-activity { display: grid; gap: .7rem; padding: 1rem; }
.ge-activity textarea { box-sizing: border-box; width: 100%; }
.ge-activity fieldset { display: grid; gap: .45rem; }
.ge-activity [role=status]:empty, .ge-activity [data-actividad-siguiente]:empty { display: none; }
@media (max-width: 700px) {
  .home:has(.ge-activities) { grid-template-rows: auto; align-content: start; gap: .65rem; }
  .home:has(.ge-activities) .hero { min-height: min(15rem, 34svh); }
  .home:has(.ge-activities) .hero-info { padding: .75rem; }
  .home:has(.ge-activities) .guide { min-height: auto; }
  .home:has(.ge-activities) .ge-activities { margin: 0; }
  .home:has(.ge-activities) .ge-activities .control { min-height: 2.4rem; }
}
.family .app:has(.ge-status-slot) { height: 100dvh; min-height: 0; }
.family .app:has(.ge-status-slot) > .family-main {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-block-end: 76px;
  scroll-padding-block-end: 76px;
}
.family .ge-status-slot {
  display: grid;
  min-height: 32px;
  flex: none;
  place-items: center;
  padding: 3px 16px;
  color: #b6e9e0;
}
.family .ge-status-slot:has(p:not([hidden])) { border-top: 1px solid var(--line); }
.family .ge-status-slot p { margin: 0; text-align: center; font-size: .9rem; }
.ge-key-shell {
  display: grid;
  min-height: 100svh;
  place-items: center;
  box-sizing: border-box;
  padding: 1.25rem 1rem 4.5rem;
}
.ge-key-card {
  box-sizing: border-box;
  width: min(100%, 26rem);
  background: #152633;
  border: 1px solid #52736f;
  border-radius: 1rem;
  padding: clamp(1.05rem, 5vw, 1.65rem);
  box-shadow: 0 .75rem 2rem #0b19288c;
}
.ge-key-card h1 { margin: .55rem 0 .65rem; font-size: clamp(1.5rem, calc(5.4vw * var(--ge-letra, 1)), 2rem); font-weight: 500; line-height: 1.15; }
.ge-key-card .ge-key-brand { color: #a9c9d5; font-size: .85rem; margin: 0; }
.ge-key-card .ge-dialog-actions { margin-top: 1rem; }
.ge-key-card .ge-primary, .ge-key-card .ge-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .45rem .75rem;
  border: 1px solid #52736f;
  border-radius: .6rem;
  text-decoration: none;
  font: inherit;
}
.ge-key-card .ge-primary { color: #102b29; background: #9ae3cd; border-color: #9ae3cd; }
.ge-key-card .ge-secondary { color: #edf8f5; background: #213541; }
.ge-key-card [data-confirmacion-estado]:not(:empty) { margin-bottom: 0; color: #b6e9e0; }
.ge-family-children h3, .family .ge-tutor-card h2 { font-weight: 500; }
.ge-elecciones { display: flex; flex-wrap: wrap; gap: .4rem; }
.ge-elecciones > button { width: auto; min-height: 44px; text-align: start; font-weight: 500; }
.ge-elecciones > button[aria-pressed="true"] { outline: 2px solid currentColor; outline-offset: -2px; }
.ge-pegar:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-block: .3rem; }
.ge-pegar [role="status"]:empty { display: none; }
.ge-pegar [data-ge-pegar] { width: auto; min-height: 2.75rem; padding: .35rem .75rem; }
[data-ge-campo] { min-width: 0; }
[data-ge-campo]:not([hidden]):has(> .ge-pegar:not([hidden])) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: .5rem;
  align-items: end;
}
[data-ge-campo] > .ge-pegar:not([hidden]) { display: contents; }
[data-ge-campo] > .ge-pegar [role="status"] { grid-column: 1 / -1; }
[data-cofre-frase]:empty { display: none; }
