/* Keep touch, wheel and keyboard scrolling without painting browser scrollbars. */
:root :is(.app-shell,.locket-entry,.background-picker-sheet),
:root :is(.app-shell,.locket-entry,.background-picker-sheet) * { scrollbar-width:none; -ms-overflow-style:none; }
:root #sideCustomizerDrawer .drawer-pane { scrollbar-width:none; }
:root :is(.app-shell,.locket-entry,.background-picker-sheet)::-webkit-scrollbar,
:root :is(.app-shell,.locket-entry,.background-picker-sheet) *::-webkit-scrollbar { display:none; width:0; height:0; }

/* Solid status banners stay readable over every selected background. */
.phone-toast,.phone-toast:is(.ok,.err,.wait),.studio-notice,#locketEntry #loginStatus,
:is(#chatSendStatus,#feedStatusToast,#mdSendStatus)[data-state="error"] {
  --notice-bg:#347bd7;
  --notice-symbol:'i';
  display:flex; align-items:center; justify-content:flex-start; gap:11px;
  min-height:54px; padding:14px 16px; border:0; border-radius:6px;
  background:var(--notice-bg); color:#fff; text-align:left;
  font-family:var(--locket-font-sans,var(--locket-font-family)); font-size:14px; font-weight:600; line-height:1.45;
  box-shadow:0 6px 18px #00000024; backdrop-filter:none; -webkit-backdrop-filter:none;
  overflow-wrap:anywhere; animation:notice-enter .24s cubic-bezier(.16,1,.3,1) both;
}
.phone-toast { top:calc(74px + env(safe-area-inset-top,0px)); bottom:auto; z-index:96; max-width:calc(100% - 32px); }
.phone-toast:not(.ok):not(.err):not(.wait) { display:none; }
.phone-toast.ok,.studio-notice.success,#locketEntry #loginStatus.ok { --notice-bg:#2dbd59; --notice-symbol:'✓'; }
.phone-toast.err,.studio-notice.error,#locketEntry #loginStatus.err,
:is(#chatSendStatus,#feedStatusToast,#mdSendStatus)[data-state="error"] { --notice-bg:#d84a53; --notice-symbol:'!'; }
.phone-toast.wait,#locketEntry #loginStatus.wait { --notice-bg:#347bd7; --notice-symbol:'i'; }
.phone-toast::before,.studio-notice::before,#locketEntry #loginStatus::before,
:is(#chatSendStatus,#feedStatusToast,#mdSendStatus)[data-state="error"]::before {
  content:var(--notice-symbol); display:grid; place-items:center; flex:0 0 21px; width:21px; height:21px;
  align-self:center; border-radius:50%; background:#fff; color:var(--notice-bg); font:700 14px/1 var(--locket-font-sans,var(--locket-font-family));
}
.studio-notice::before { display:none; }
.studio-notice-icon { display:block; flex:0 0 24px; width:24px; height:24px; color:#fff; }
.studio-notice-icon path { stroke:var(--notice-bg); }
.studio-notice.success .studio-notice-icon path { stroke-dasharray:24; animation:notice-check .3s .12s ease both; }
.studio-notice[data-phase="leaving"] { pointer-events:none; animation:notice-exit .18s ease-in both; }
.phone-toast > :is(i,svg) { display:none; }
.phone-toast > :is(strong,span) { color:inherit; font:inherit; min-width:0; }
#locketEntry #loginStatus { position:fixed; z-index:6; top:calc(78px + env(safe-area-inset-top,0px)); right:max(24px,env(safe-area-inset-right,0px)); left:auto; bottom:auto; width:max-content; max-width:min(380px,calc(100% - 32px)); margin:0; }
#locketEntry #loginStatus:empty { display:none; }
:is(#chatSendStatus,#feedStatusToast,#mdSendStatus)[data-state="error"][hidden] { display:none; }
@keyframes notice-enter { from { opacity:0; translate:0 -10px; } to { opacity:1; translate:0 0; } }
@keyframes notice-exit { to { opacity:0; translate:0 -6px; } }
@keyframes notice-check { from { stroke-dashoffset:24; } to { stroke-dashoffset:0; } }
@media (max-width:600px) { #locketEntry #loginStatus { top:calc(74px + env(safe-area-inset-top,0px)); left:16px; right:16px; width:auto; max-width:none; } }
@media (prefers-reduced-motion:reduce) { .phone-toast,.phone-toast:is(.ok,.err,.wait),.studio-notice,.studio-notice[data-phase="leaving"],.studio-notice.success .studio-notice-icon path,#locketEntry #loginStatus,:is(#chatSendStatus,#feedStatusToast,#mdSendStatus)[data-state="error"] { animation:none; } }

.studio-notice { position:fixed; z-index:270; top:calc(24px + env(safe-area-inset-top,0px)); right:24px; width:max-content; max-width:min(420px,calc(100% - 32px)); }
.studio-notice[hidden] { display:none; }
.studio-notice > span { min-width:0; flex:1; font:inherit; }
.studio-notice > button { display:grid; place-items:center; flex:0 0 32px; width:32px; height:32px; padding:0; margin:-5px -5px -5px 0; border:0; border-radius:6px; background:transparent; color:inherit; cursor:pointer; opacity:.8; transition:background .15s,opacity .15s; }
.studio-notice > button svg { width:15px; height:15px; }
.studio-notice > button:hover { background:#ffffff20; opacity:1; }
.studio-notice > button:focus-visible { outline:2px solid #fff; outline-offset:2px; }
@media (max-width:600px) { .studio-notice { top:calc(74px + env(safe-area-inset-top,0px)); left:16px; right:16px; width:auto; max-width:none; } }
:root .locket-phone-card > .studio-notice { position:absolute; top:calc(16px + env(safe-area-inset-top,0px)); bottom:auto; left:50%; right:auto; transform:translateX(-50%); width:max-content; max-width:min(360px,calc(100% - 32px)); }
:root .locket-phone-card .phone-toast { top:calc(80px + env(safe-area-inset-top,0px)); bottom:auto; max-width:min(360px,calc(100% - 32px)); }
