.notification-dialog{width:min(590px,calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 24px));max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);display:flex;flex-direction:column;padding:14px 16px;overflow:hidden;}
.notification-dialog:not([open]){display:none;}
.notification-dialog .dialog-head{flex:0 0 auto;gap:8px;margin-bottom:6px;}
.notification-dialog .dialog-head h2{font-size:20px;line-height:1.2;}
.notification-scroll{overflow:auto;overscroll-behavior:contain;touch-action:pan-y;min-height:0;padding:6px;}
.notification-sender{font-size:12px;color:#597873;margin:3px 0 10px;}
.notification-body{font-size:15px;line-height:1.5;margin:8px 0 12px;}
#notification-time{font-size:11px;color:#5d7671;}
.notification-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px;}
.notification-actions button,#notification-ack{min-height:48px;padding:10px 12px;}
#notification-decline{border-image-source:url('/assets/ui/pastel-v1/secondary-button.webp');}
#notification-accept{border-image-source:url('/assets/ui/pastel-v1/button.webp');}
.notification-inbox{position:fixed;left:calc(env(safe-area-inset-left) + 4px);top:calc(env(safe-area-inset-top) + 150px);z-index:8;width:44px;height:44px;}
.notification-inbox img{width:27px;height:27px;}
.notification-dot{position:absolute;right:3px;top:3px;width:10px;height:10px;background:url('/assets/ui/pastel-v1/coin.webp') center/contain no-repeat;}
.notification-warning-layout{display:grid;grid-template-columns:130px minmax(0,1fr);gap:12px;align-items:center;}
.notification-warning-layout figure{margin:0;text-align:center;font-size:13px;font-weight:800;}
.notification-warning-layout canvas{display:block;width:auto;max-width:100%;height:150px;aspect-ratio:360/430;object-fit:contain;margin:auto;}
.notification-loss{font-size:14px;font-weight:800;line-height:1.4;}
.notification-receipt-icon{width:44px;height:44px;object-fit:contain;}
#notification-explanation{font-size:13px;line-height:1.45;}
#notification-ack{width:100%;margin-top:12px;}
.notification-dialog [hidden]{display:none!important;}
.notice-police-enter{animation:notice-police-in .35s cubic-bezier(.2,.8,.2,1) both;}
@keyframes notice-police-in{from{opacity:0;transform:translateX(20px);}to{opacity:1;transform:translateX(0);}}
@media(max-height:440px){.notification-dialog{padding:10px 14px;}.notification-warning-layout{grid-template-columns:110px minmax(0,1fr);gap:10px;}.notification-warning-layout canvas{height:126px;}.notification-body{font-size:14px;line-height:1.4;}.notification-actions{margin-top:10px;}}
@media(prefers-reduced-motion:reduce){.notice-police-enter{animation:none;}}
