/* Light-theme modal contrast: legacy Midnight selectors must not leak into light sheets. */
:root[data-surface='miniapp'][data-theme='light'] .modal-sheet {
  background: #ffffff;
  background-image: none;
  border-top-color: #d6e0e9;
  color: #1b2a40;
}
:root[data-surface='miniapp'][data-theme='light'] .modal-title h2 { color: #1b2a40; }
:root[data-surface='miniapp'][data-theme='light'] .modal-handle { background: #8090a5; }
:root[data-surface='miniapp'][data-theme='light'] .modal-sheet .notice.info {
  color: #19536d; background: #eaf7fc; border-color: #b6dfed;
}
:root[data-surface='miniapp'][data-theme='light'] .modal-sheet .notice.warning {
  color: #80500e; background: #fff7e8; border-color: #f0d49d;
}
:root[data-surface='miniapp'][data-theme='light'] .modal-sheet .notice.error {
  color: #9c2536; background: #fff0f2; border-color: #f3b8c1;
}
:root[data-surface='miniapp'][data-theme='light'] .modal-sheet .notice.success {
  color: #146449; background: #e8f8f1; border-color: #a8dcc6;
}

.modal-backdrop{z-index:1000!important}
:root:has(.modal-backdrop) .bottom-nav,:root:has([aria-modal="true"]) .bottom-nav{visibility:hidden!important;pointer-events:none!important}

/* Admin-only pink canvas */
:root:has(.admin-bottom-nav){--bg:#B34F7A!important;background:var(--bg)!important}
:root[data-theme="light"]:has(.admin-bottom-nav){--bg:#FCE7F3!important}
:root:has(.admin-bottom-nav) body,:root:has(.admin-bottom-nav) .app-shell{background:var(--bg)!important}
