#push-settings { width: min(440px, calc(100vw - 32px)); box-sizing: border-box; padding: 20px; border: 1px solid #dedede; border-radius: 8px; color: #202020; background: #fff; }
#push-settings::backdrop { background: rgb(0 0 0 / 35%); }
#push-settings header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#push-settings p { line-height: 1.6; overflow-wrap: anywhere; }
#push-settings .push-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#push-settings .push-note { color: #606060; font-size: 13px; }
#push-settings [hidden] { display: none !important; }
#push-settings-open { display: none; }
.mobile-notifications #push-settings-open { display: inline-flex; }
.mobile-notifications .topbar { gap: 8px; }
.mobile-notifications #push-inbox-open,
.mobile-notifications #push-settings-open,
.mobile-notifications #refresh-dashboard { height: 44px; min-height: 44px; box-sizing: border-box; align-items: center; justify-content: center; }
.mobile-notifications #push-inbox-open { padding: 0 12px; gap: 8px; white-space: nowrap; }
.mobile-notifications #push-settings-open,
.mobile-notifications #refresh-dashboard { width: 44px; min-width: 44px; flex: 0 0 44px; padding: 0; }
#push-inbox { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); box-sizing: border-box; padding: 20px; border: 1px solid #dedede; border-radius: 8px; color: #202020; background: #fff; }
#push-inbox::backdrop { background: rgb(0 0 0 / 35%); }
#push-inbox header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#push-inbox-list { display: grid; gap: 8px; margin-bottom: 16px; max-height: 55dvh; overflow: auto; }
#push-inbox-list button { width: 100%; text-align: left; }
#push-inbox-open { display: none; margin-left: auto; flex-shrink: 0; }
.mobile-notifications #push-inbox-open { display: inline-flex; }
.push-app-title { display: flex; gap: 12px; align-items: center; min-width: 0; }
.push-app-title img { flex-shrink: 0; border-radius: 6px; background: #fff; }
.push-app-title span { display: block; color: #68717b; font-size: 12px; margin-bottom: 3px; }
.push-app-title strong { display: block; font-size: 18px; }
#push-inbox-list button { display: flex; gap: 14px; align-items: center; }
#push-inbox-list button span { flex: 1; overflow-wrap: anywhere; }
.push-empty-state { text-align: center; color: #747d86; padding: 48px 12px; }
.push-empty-state i { font-size: 36px; color: #408167; }
.mobile-notifications #push-inbox[open],
.mobile-notifications #push-settings[open] {
    display: flex; flex-direction: column; position: fixed; inset: 0; margin: 0;
    width: 100%; max-width: none; height: 100dvh; max-height: none; border: 0; border-radius: 0;
    padding: calc(18px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    background: #f7f8fa; overflow: auto; overscroll-behavior: contain;
}
.mobile-notifications #push-inbox header,
.mobile-notifications #push-settings header { flex-shrink: 0; min-height: 48px; }
.mobile-notifications #push-inbox .push-note { margin: 20px 0 10px; font-size: 13px; color: #717984; line-height: 1.6; }
.mobile-notifications #push-inbox-status { font-size: 14px; color: #4c5662; margin: 8px 0 14px; }
.mobile-notifications #push-inbox-list { display: block; flex: 1; min-height: 0; max-height: none; gap: 0; border-top: 1px solid #e0e4e8; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mobile-notifications #push-inbox-list.is-empty { display: flex; align-items: center; justify-content: center; border-top: 0; }
.mobile-notifications #push-inbox-list button { min-height: 76px; border: 0; border-bottom: 1px solid #e0e4e8; border-radius: 0; background: transparent; font-size: 16px; padding: 18px 4px; }
.mobile-notifications #push-inbox-list button i:first-child { color: #357657; font-size: 20px; }
.mobile-notifications #push-inbox-list button i:last-child { color: #929aa3; font-size: 12px; }
.mobile-notifications #push-inbox footer { display: grid; gap: 10px; padding-top: 14px; flex-shrink: 0; }
.mobile-notifications #push-inbox footer button { width: 100%; min-height: 48px; font-size: 16px; justify-content: center; }
.mobile-notifications #push-settings .push-actions { flex-direction: column; }
.mobile-notifications #push-settings .button { min-height: 48px; font-size: 16px; }
#crm-pull-refresh { position: fixed; z-index: 2147483647; top: env(safe-area-inset-top, 0px); left: 50%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 16px; border: 1px solid #dde3e0; border-radius: 24px; background: #fff; color: #31493e; box-shadow: 0 3px 14px rgb(0 0 0 / 10%); font-size: 14px; white-space: nowrap; opacity: 0; transform: translate(-50%, -110%); pointer-events: none; }
#crm-pull-refresh.visible { opacity: 1; transform: translate(-50%, calc(var(--pull-distance, 0px) - 36px)); }
.crm-pull-spinner { width: 18px; height: 18px; flex: 0 0 18px; border: 2px solid #d9e5df; border-top-color: #347657; border-radius: 50%; }
#crm-pull-refresh.ready .crm-pull-spinner { border-color: #347657; }
#crm-pull-refresh.loading .crm-pull-spinner { border-color: #d9e5df; border-top-color: #347657; animation: crm-pull-spin .7s linear infinite; }
@keyframes crm-pull-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #crm-pull-refresh.loading .crm-pull-spinner { animation: none; } }
