.baby-account-panel {
  --account-ink: #173b48;
  --account-blue: #327daf;
  --account-teal: #2f8e87;
  margin-block: 1.25rem 1.75rem;
  padding: clamp(1.1rem, 2.8vw, 2rem);
  border: 1px solid #d8e4ec;
  border-radius: 1.7rem;
  background:
    radial-gradient(circle at 95% 0%, rgba(142, 210, 225, .2), transparent 34%),
    linear-gradient(145deg, #fff, #f7fbfd);
  color: var(--account-ink);
  box-shadow: 0 1rem 3rem rgba(30, 71, 91, .08);
}

.baby-account-panel--active {
  border-color: #b8d9d0;
  background:
    radial-gradient(circle at 95% 0%, rgba(112, 196, 169, .2), transparent 34%),
    linear-gradient(145deg, #fff, #f4fbf8);
}

.baby-account-panel__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.baby-account-eyebrow {
  margin: 0 0 .35rem;
  color: #22618b;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.baby-account-panel h2,
.baby-account-panel h3 {
  margin: 0;
  color: var(--account-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.025em;
}

.baby-account-panel h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.baby-account-panel h3 {
  margin-bottom: .8rem;
  font-size: 1.45rem;
}

.baby-account-panel__heading p:last-child {
  max-width: 48rem;
  margin: .55rem 0 0;
  color: #56717b;
  line-height: 1.55;
}

.baby-account-status-pill {
  flex: 0 0 auto;
  max-width: min(22rem, 44vw);
  padding: .55rem .8rem;
  overflow: hidden;
  border-radius: 999px;
  background: #dff4ec;
  color: #1b6356;
  font-size: .78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.baby-account-status-pill--local {
  background: #e7f2fb;
  color: #225d84;
}

.baby-account-panel__forms,
.baby-account-panel__active-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.baby-account-panel__card {
  display: grid;
  align-content: start;
  gap: .7rem;
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 1px solid #dce6ec;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, .9);
}

.baby-account-panel__admin-note {
  border-color: #c9ddea;
  background: linear-gradient(135deg, #fff, #f1f7fb);
}

.baby-account-panel__admin-note p {
  max-width: 48rem;
  margin: 0;
  color: #47636e;
  line-height: 1.6;
}

.baby-account-panel__card > label:not(.baby-account-check) {
  display: grid;
  gap: .35rem;
  color: #294a58;
  font-size: .84rem;
  font-weight: 800;
}

.baby-account-panel__card label small {
  color: #6a7e86;
  font-weight: 600;
}

.baby-account-panel input[type="email"],
.baby-account-panel input[type="password"] {
  width: 100%;
  min-height: 3rem;
  padding: .65rem .8rem;
  border: 1px solid #aebfc9;
  border-radius: .75rem;
  background: #fff;
  color: #173b48;
  font: inherit;
}

.baby-account-check {
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: .6rem;
  align-items: start;
  color: #3d5965;
  font-size: .79rem;
  font-weight: 600;
  line-height: 1.45;
}

.baby-account-check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .08rem;
}

.baby-account-check--optional {
  padding: .75rem;
  border-radius: .75rem;
  background: #f4f1fb;
}

.baby-account-check a,
.baby-account-reset {
  color: #17699a;
  text-underline-offset: .15em;
}

.baby-account-button,
.baby-account-link-button {
  min-height: 2.8rem;
  padding: .65rem 1rem;
  border-radius: 999px;
  font: inherit;
  font-size: .84rem;
  font-weight: 850;
  cursor: pointer;
}

.baby-account-button {
  border: 1px solid var(--account-blue);
  background: var(--account-blue);
  color: #fff;
}

.baby-account-button--secondary {
  border-color: var(--account-teal);
  background: var(--account-teal);
}

.baby-account-link-button {
  border: 1px solid #bfd0d9;
  background: transparent;
  color: #315a6c;
}

.baby-account-button:hover,
.baby-account-button:focus-visible {
  filter: brightness(.92);
}

.baby-account-panel button:focus-visible,
.baby-account-panel input:focus-visible,
.baby-account-panel a:focus-visible {
  outline: .18rem solid #d89e3f;
  outline-offset: .18rem;
}

.baby-account-button:disabled {
  cursor: wait;
  opacity: .6;
}

.baby-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.baby-account-panel ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #47636e;
  line-height: 1.6;
}

.baby-account-small,
.baby-account-message,
.baby-account-reset {
  margin: 0;
  color: #647a84;
  font-size: .75rem;
  line-height: 1.5;
}

.baby-account-message:not(:empty) {
  padding: .65rem .75rem;
  border-radius: .65rem;
  background: #edf5f8;
  color: #315867;
}

.baby-account-hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .baby-account-panel__heading {
    display: grid;
  }

  .baby-account-status-pill {
    max-width: 100%;
    justify-self: start;
  }

  .baby-account-panel__forms,
  .baby-account-panel__active-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .baby-account-panel * {
    scroll-behavior: auto !important;
  }
}
[data-account-conflict][hidden], [data-account-use-local][hidden] { display: none !important; }
.baby-account-notice { position: fixed; z-index: 100; bottom: 1rem; right: 1rem; max-width: 24rem; width: calc(100% - 2rem); padding: 1rem; background: #fff; border: 2px solid #245069; border-radius: 1rem; box-shadow: 0 8px 24px #0002; color: #183747; }
.baby-account-notice p { margin: 0 0 .5rem; }
.baby-account-notice a { color: #183747; text-decoration: underline; display: inline-flex; align-items: center; min-height: 44px; }

[data-account-recovery][hidden] { display: none !important; }
.baby-account-recovery { margin-top: 1rem; }
.baby-account-recovery summary { cursor: pointer; padding: .6rem 0; font-weight: 600; }
.baby-account-recovery label { display: grid; gap: .5rem; margin: 1rem 0; }
.baby-account-recovery select { max-width: 100%; min-width: 0; padding: .7rem; border: 1px solid #cddbdc; border-radius: .65rem; background: #fff; color: #183747; }
