.pb-account-overlay,
.pb-pin-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(39, 23, 11, .72);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.pb-account-overlay[hidden],
.pb-pin-overlay[hidden] { display: none !important; }
.pb-account-panel,
.pb-pin-panel {
  width: min(100%, 620px);
  max-height: min(90dvh, 900px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(20px, 5vw, 34px);
  border: 2px solid #e1b649;
  border-radius: 22px;
  background: #fef9ee;
  color: #3a1a08;
  box-shadow: 0 20px 70px rgba(20, 10, 3, .38);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.pb-account-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eadbb8;
}
.pb-account-eyebrow {
  margin: 0 0 4px;
  color: #9a6b24;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pb-account-header h2,
.pb-pin-panel h2 {
  margin: 0;
  color: #3a1a08;
  font-size: clamp(1.35rem, 5vw, 1.8rem);
  line-height: 1.15;
}
.pb-account-close {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid #ddc99f;
  border-radius: 50%;
  background: #fffdf7;
  color: #563319;
  font-size: 26px;
  cursor: pointer;
}
.pb-account-content { padding-top: 16px; }
.pb-account-auth-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pb-account-sync {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 18px;
  padding: 12px 14px;
  border: 1px solid #e5d7b8;
  border-radius: 12px;
  background: #fffdf8;
}
.pb-account-sync p { margin: 4px 0 0; color: #785d42; font-size: .85rem; }
.pb-account-content p,
.pb-pin-panel p {
  margin: 0 0 12px;
  line-height: 1.55;
}
.pb-account-lead { font-size: 1rem; }
.pb-account-disclosure {
  margin: 16px 0;
  padding: 16px;
  border-left: 4px solid #dcae36;
  border-radius: 8px;
  background: #f6edd8;
  font-size: .9rem;
  line-height: 1.55;
}
.pb-account-disclosure p { margin: 7px 0 0; }
.pb-account-footnote,
.pb-account-muted { color: #785d42; font-size: .88rem; }
.pb-account-section {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid #eadbb8;
}
.pb-account-section h3 { margin: 0 0 7px; font-size: 1.02rem; }
.pb-import-list { display: grid; gap: 8px; margin: 12px 0; }
.pb-import-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px;
  border: 1px solid #e5d7b8;
  border-radius: 12px;
  background: #fffdf8;
  cursor: pointer;
}
.pb-import-item input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #b68118; }
.pb-import-item span,
.pb-account-children li span { display: grid; gap: 3px; }
.pb-import-item small,
.pb-account-children small { color: #826748; font-size: .8rem; }
.pb-account-children { display: grid; gap: 8px; padding: 0; list-style: none; }
.pb-account-children li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eee2c8;
}
.pb-button {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #bd8a20;
  border-radius: 11px;
  background: #f5c030;
  color: #3a1a08;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.pb-button:disabled { opacity: .5; cursor: not-allowed; }
.pb-button-quiet { border-color: #d8c7a3; background: #fffdf7; }
.pb-button-danger { border-color: #c57a68; background: #fff1ec; color: #873a2a; }
.pb-account-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.pb-account-message { min-height: 1.35em; margin-top: 10px; color: #416b35; font-size: .9rem; }
.pb-account-message.is-error { color: #a13927; }
.pb-pin-panel { width: min(100%, 400px); }
.pb-pin-panel label { display: block; margin: 16px 0 6px; font-weight: 700; }
.pb-pin-panel input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #cbb589;
  border-radius: 10px;
  background: #fffdf8;
  color: #3a1a08;
  font: inherit;
  font-size: 1.1rem;
}
.pb-inline-account-button,
.pb-parent-notice,
.pb-picker-parent-icon,
.pb-parent-dashboard-lock {
  font: inherit;
}
.pb-inline-account-button {
  position: absolute;
  z-index: 25;
  top: max(16px, env(safe-area-inset-top));
  right: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 230, 158, .8);
  border-radius: 20px;
  background: rgba(58, 26, 8, .82);
  color: #fff4cf;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.pb-parent-notice {
  position: absolute;
  z-index: 24;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 24px);
  padding: 8px 11px 8px 14px;
  transform: translateX(-50%);
  border: 1px solid #d8bb6c;
  border-radius: 18px;
  background: #fff8df;
  color: #553517;
  font-size: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.pb-parent-notice[hidden] { display: none; }
.pb-parent-notice button {
  padding: 5px 9px;
  border: 0;
  border-radius: 13px;
  background: #f1c13b;
  color: #3a1a08;
  font-weight: 750;
  cursor: pointer;
}
.pb-picker-parent-icon {
  position: absolute;
  z-index: 10;
  top: max(12px, env(safe-area-inset-top));
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 241, 204, .8);
  border-radius: 50%;
  background: rgba(58, 26, 8, .68);
  color: #fff2c6;
  font-size: 22px;
  cursor: pointer;
}
.pb-picker-parent-icon.needs-signin { box-shadow: 0 0 0 2px #f4c536; }
.pb-parent-dashboard-lock {
  margin-left: auto;
  padding: 7px 11px;
  border: 1px solid #dfc47f;
  border-radius: 15px;
  background: #fff8e4;
  color: #563319;
  font-size: .78rem;
  font-weight: 700;
}
.pb-dashboard-shield {
  position: fixed;
  z-index: 1199990;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #fef9ee;
  color: #3a1a08;
  text-align: center;
}
.pb-dashboard-shield section { width: min(100%, 360px); }
.pb-dashboard-shield > p { font-weight: 700; }
.pb-dashboard-shield section > span { font-size: 2.5rem; }
.pb-dashboard-shield h1 { margin: 12px 0 8px; font-size: 1.5rem; }
.pb-dashboard-shield p { margin: 0 0 18px; color: #785d42; line-height: 1.5; }
.pb-modal-open { overflow: hidden; }
@media (max-width: 480px) {
  .pb-account-panel { padding: 18px; border-radius: 17px; }
  .pb-account-children li { align-items: flex-start; }
  .pb-account-children .pb-button { padding: 8px 9px; font-size: .8rem; }
  .pb-inline-account-button { top: auto; bottom: 16px; right: 12px; }
  .pb-account-sync { align-items: flex-start; }
}
@media (prefers-reduced-motion: no-preference) {
  .pb-account-panel { animation: pb-account-in .16s ease-out; }
  @keyframes pb-account-in { from { transform: translateY(8px); opacity: .5; } to { transform: none; opacity: 1; } }
}