/* V7.32 shared controls: keyboard and touch friendly. */
.imam-header-utilities{display:inline-flex;align-items:center;gap:9px;margin-inline-start:auto;isolation:isolate;font-family:'Readex Pro',sans-serif;flex-shrink:0}
.imam-bell,.imam-photo-toggle{position:relative;display:inline-grid;place-items:center;width:45px;height:45px;border-radius:14px;border:1px solid #cdded2;background:#fffdf8;color:#075341;box-shadow:0 4px 13px #093d3020;cursor:pointer;font:inherit}
.imam-bell:hover,.imam-photo-toggle:hover{background:#ebf6ee;border-color:#9dc7ae}
.imam-bell:focus-visible,.imam-photo-toggle:focus-visible{outline:3px solid #deb653;outline-offset:3px}
.imam-bell-glyph{font-size:23px;line-height:1}.imam-face{width:35px;height:35px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(130deg,#095c44,#278c68);color:#fff;font-size:17px;font-weight:800;overflow:hidden}
.imam-face img{width:100%;height:100%;object-fit:cover;display:block}.imam-notice-count{position:absolute;top:-5px;inset-inline-start:-6px;background:#a72f38;color:#fff;min-width:20px;height:21px;border-radius:12px;display:grid;place-items:center;font-size:11px;border:2px solid white}
.imam-notice-count[hidden]{display:none!important}.imam-bell-sheet{position:fixed;top:68px;left:12px;width:min(390px,calc(100vw - 24px));max-height:min(630px,calc(100dvh - 85px));overflow:auto;z-index:110;background:#fff;color:#173f31;box-shadow:0 24px 72px #092f3040;border:1px solid #c9ded3;border-radius:22px;padding:14px;direction:rtl;font-family:'Readex Pro',sans-serif;line-height:1.7}
.imam-bell-sheet[hidden]{display:none}.imam-bell-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e2ebe5;padding-bottom:7px}.imam-bell-head strong{font-size:18px}.imam-bell-sheet button,.imam-bell-sheet a{font:inherit;cursor:pointer}.imam-sheet-close{border:0;background:#f4f5f2;font-size:23px;border-radius:10px;color:#295243;width:34px;height:34px}
.imam-bell-filters{display:flex;gap:5px;overflow:auto;margin:10px 0}.imam-bell-filters button{border-radius:9px;background:#f2f6f1;color:#37664e;border:1px solid #d8e9dc;padding:6px 9px;font-size:12px;white-space:nowrap}.imam-bell-filters button.active{background:#0c6248;color:white;border-color:#0c6248}
.imam-bell-list{display:grid;gap:8px}.imam-notice-item{border:1px solid #e0e9e2;padding:10px;border-radius:12px;background:#fff}.imam-notice-item.unread{border-color:#b8d9c4;background:#f1f9f2}.imam-notice-top{display:flex;align-items:center;justify-content:space-between;gap:4px}.imam-notice-top strong{font-size:13px}.imam-notice-item p{margin:4px 0;font-size:12px;color:#547164}.imam-notice-item time{font-size:11px;color:#83968a}.imam-notice-actions{display:flex;gap:12px;margin-top:6px}.imam-notice-actions a,.imam-notice-actions button{font-size:11px;color:#06694e;background:none;border:none;padding:0;text-decoration:underline}.imam-pill{font-size:10px;background:#fff0cb;color:#7c511b;border-radius:8px;padding:2px 6px}.imam-pill.urgent{background:#ffe8e8;color:#9b2323}.imam-empty{color:#6f8c7b;text-align:center;font-size:13px;padding:15px}
.imam-bell-foot{display:flex;justify-content:space-between;margin-top:9px;gap:8px;border-top:1px solid #e3ebe5;padding-top:10px}.imam-bell-foot a,.imam-bell-foot button{border:0;background:none;color:#065d46;font-size:12px;text-decoration:underline}.imam-photo-dialog{border:1px solid #d3e5da;border-radius:21px;width:min(420px,96vw);max-height:90vh;color:#264a3c;padding:22px;box-shadow:0 30px 100px #071e193e;direction:rtl}.imam-photo-dialog::backdrop{background:#09281e85}.imam-photo-head{display:flex;justify-content:space-between;align-items:center}.imam-photo-head h2{font-size:21px}.imam-photo-head button{border:0;background:#f0f5f0;padding:6px 12px;border-radius:8px;font-size:20px}.imam-photo-dialog input{max-width:100%}.imam-save-photo{background:#096349;color:white;border:0;border-radius:12px;padding:11px 20px;margin-top:12px}.imam-photo-message{color:#3b715c}
@media(max-width:700px){.imam-header-utilities{gap:5px}.imam-bell,.imam-photo-toggle{width:39px;height:39px;border-radius:11px}.imam-face{width:32px;height:32px}.imam-bell-sheet{top:64px;left:10px}}

/* V7.54 direct notification action */
.imam-direct-action{display:inline-flex!important;align-items:center;justify-content:center;background:#075e47!important;color:white!important;border-radius:10px;padding:9px 13px!important;font-weight:800;text-decoration:none!important;min-height:40px}

/* V7.57: private, compact bell-only notifications, no large notification dashboard. */
.imam-bell-sheet{width:min(420px,calc(100vw - 24px));max-height:min(570px,calc(100dvh - 82px));display:flex;flex-direction:column;padding:12px;overflow:hidden}
.imam-bell-sheet[hidden]{display:none!important}
.imam-bell-list{overflow-y:auto;overscroll-behavior:contain;min-height:0;gap:6px;scrollbar-width:thin}
.imam-notice-item{padding:9px 11px;border-radius:10px}
.imam-notice-top strong{font-size:12px;line-height:1.5}
.imam-notice-item p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:3px 0;font-size:11px;line-height:1.65}
.imam-notice-item time{font-size:10px}
.imam-notice-actions{align-items:center;gap:8px;flex-wrap:wrap;margin-top:4px}
.imam-notice-actions a.imam-direct-action{min-height:30px;padding:4px 10px!important;border-radius:8px;font-size:11px!important}
.imam-notice-actions button{padding:5px;font-size:11px}
.imam-bell-filters{flex-shrink:0;margin:8px 0}
.imam-bell-foot{flex-shrink:0}
@media(max-width:700px){.imam-bell-sheet{top:60px;left:8px;width:calc(100vw - 16px);max-height:min(75dvh,600px)}}
