:root{--ink:#40392f;--muted:#8a8479;--gold:#b58c56;--gold-dark:#806345;--paper:#fcfaf6;--line:#e9e3d9;--green:#3d6a58;--soft:#f2eee6;--red:#a94f48}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.8 var(--font)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b58c5680;outline-offset:3px}button{border:0;background:none;color:inherit}h1,h2,h3,h4,p{margin:0}h1{font-size:30px;line-height:1.6;font-weight:500}h2{font-size:23px;font-weight:500}h3{font-size:18px;font-weight:500}small,.muted{color:var(--muted)}small{font-size:12px}.prototype-bar{padding:9px 4%;display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--line);background:#f2eee6;font-size:12px}.prototype-label{display:flex;gap:8px;align-items:center}.dot{display:inline-block;width:6px;height:6px;background:var(--gold);border-radius:50%}.role-switch{display:flex;background:#e8e1d6;border-radius:9px;padding:3px}.role-switch button{padding:5px 17px;font-size:12px;border-radius:6px}.role-switch button.active{background:#fffdf9;box-shadow:0 1px 4px #43332312;color:var(--gold-dark)}.reset{font-size:12px;text-decoration:underline;text-underline-offset:4px}.header{height:103px;max-width:1240px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:12px 40px;gap:25px}.brand{width:78px;height:77px;object-fit:contain}.brand-box{display:flex;align-items:center;gap:18px}.brand-rule{width:1px;height:36px;background:var(--line)}.brand-copy{font-size:12px;color:var(--muted)}.topnav{display:flex;align-items:center;gap:28px}.topnav button{padding:10px 0;font-size:14px;position:relative}.topnav button.active{color:var(--gold-dark)}.topnav button.active:after{content:'';position:absolute;bottom:1px;right:25%;width:50%;height:2px;background:var(--gold)}.header-actions{display:flex;gap:12px;align-items:center}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid var(--line);border-radius:50%;background:#fffdf9;position:relative}.count{position:absolute;right:-2px;top:-3px;background:var(--gold-dark);color:white;font-size:9px;border-radius:10px;padding:0 5px}.ico{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.location{display:flex;align-items:center;gap:9px;font-size:13px}.location b{font-weight:500}.location small{display:block;line-height:1.5}.container{max-width:1240px;margin:auto;padding:18px 40px 70px}.eyebrow{font-size:12px;letter-spacing:.3px;color:var(--gold-dark);margin-bottom:5px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin:12px 0 26px;gap:20px}.page-heading p{font-size:13px;color:var(--muted);margin-top:5px}.btn{background:var(--gold-dark);color:#fffdf9;padding:11px 22px;border-radius:8px;display:inline-flex;justify-content:center;align-items:center;gap:9px;font-size:13px;line-height:1.7;border:1px solid transparent;white-space:nowrap}.btn:hover{filter:brightness(.95)}.btn.secondary{background:transparent;color:var(--gold-dark);border-color:#d4c4ae}.btn.light{background:var(--soft);color:var(--gold-dark)}.btn.danger{background:#f9eeeb;color:var(--red)}.btn.success{background:var(--green)}.btn.small{padding:7px 13px;font-size:12px}.btn:disabled{opacity:.45;cursor:not-allowed}.full{width:100%}.hero{background:#f0e9dd;min-height:272px;position:relative;overflow:hidden;border-radius:14px;display:grid;grid-template-columns:1.1fr 1fr;isolation:isolate}.hero:before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 5% 0%,#ffffff80,transparent 60%);z-index:-1}.hero-main{padding:29px 34px;position:relative}.hero-top{font-size:12px;display:flex;gap:12px;color:#887257;align-items:center}.hero-main h2{font-size:18px;margin-top:20px}.timer{direction:ltr;display:flex;justify-content:flex-end;gap:14px;width:max-content;align-items:center;margin:9px 0;color:#705737}.time-block{font:44px/1.3 var(--font);text-align:center;min-width:60px}.time-block small{display:block;font:10px/1.7 var(--font);color:#9c8565}.timer .colon{font:28px var(--font);padding-bottom:20px;color:#ac977b}.hero-art{position:absolute;left:-12px;bottom:40px;width:46%;height:225px;color:#b39c7a;opacity:.56;pointer-events:none}.hero-date{font-size:11px;color:#998468}.prayers{display:grid;grid-template-columns:repeat(5,1fr);grid-column:1/-1;border-top:1px solid #d7c9b477;margin:0 34px;padding:16px 0;position:relative;z-index:1}.prayer{text-align:center;font-size:12px;color:#927b5e}.prayer b{display:block;font-size:17px;font-weight:400;direction:ltr;color:#6d5b45}.prayer.active{color:var(--gold-dark)}.prayer.active b{color:var(--gold-dark);font-weight:600}.prayer+.prayer{border-right:1px solid #dbcdb6}.section-head{display:flex;align-items:center;justify-content:space-between;margin:32px 0 16px;gap:16px}.section-head h2{font-size:21px}.section-head small{margin-right:9px}.filters{display:flex;gap:7px;flex-wrap:wrap}.filter{font-size:12px;border:1px solid var(--line);border-radius:6px;padding:6px 16px;background:#fffdf9;color:var(--muted)}.filter.active{background:#eae1d3;border-color:#eae1d3;color:var(--gold-dark)}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.funeral-card{border:1px solid var(--line);border-radius:10px;background:#fffdf9;overflow:hidden;transition:transform .2s,box-shadow .2s}.funeral-card:hover{transform:translateY(-3px);box-shadow:0 10px 25px #604a2b09}.card-main{padding:22px 22px 16px}.card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.badge{padding:3px 9px;display:inline-block;border-radius:5px;background:#eee8de;color:#90734d;font-size:10px}.badge.published{background:#e9f0e9;color:#4f745b}.badge.pending{background:#f8efdd;color:#a28140}.badge.rejected,.badge.cancelled{background:#f8eae7;color:var(--red)}.badge.info{background:#eaf0f4;color:#537286}.badge.archived{background:#eee;color:#777}.card-top .ico{color:#baa582}.funeral-card h3{margin-bottom:8px;font-size:18px;overflow-wrap:anywhere}.meta{display:flex;gap:8px;align-items:center;color:#938776;font-size:12px;margin:6px 0}.meta .ico{width:16px;height:16px}.card-bottom{border-top:1px solid var(--line);background:#fbf8f2;padding:11px 22px;display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#9a8e7b}.text-btn{display:inline-flex;align-items:center;gap:6px;color:var(--gold-dark);font-size:12px}.text-btn .ico{width:14px;height:14px}.quiet-banner{display:flex;gap:15px;align-items:center;border:1px dashed #d6c9b7;border-radius:9px;padding:18px 22px;margin-top:24px;color:#937b5c}.quiet-banner .ico{width:26px;height:26px}.quiet-banner p{font-size:13px}.quiet-banner small{font-size:11px}.footer{max-width:1160px;margin:0 auto;border-top:1px solid var(--line);padding:22px 0;display:flex;justify-content:space-between;color:#a59c8e;font-size:11px}.mobile-nav{display:none}.panel{background:#fffdf9;border:1px solid var(--line);padding:25px;border-radius:10px}.stack{display:grid;gap:16px}.split{display:grid;grid-template-columns:1.7fr 1fr;gap:22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:flex;flex-direction:column;gap:7px;font-size:12px}.field input,.field select,.field textarea,.search{width:100%;background:#fffefa;border:1px solid #ddd5c8;border-radius:7px;padding:11px 13px;color:var(--ink);min-height:44px;outline:none}.field textarea{resize:vertical;min-height:85px}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--gold)}.field.span{grid-column:1/-1}.hint{color:var(--muted);font-size:11px}.note{background:#f3eee4;border-radius:7px;padding:13px 16px;font-size:12px;color:#8d7656}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.steps{display:flex;gap:12px;margin:22px 0 28px;font-size:12px}.step{display:flex;gap:8px;align-items:center;color:#b6aa99}.step i{font-style:normal;border:1px solid #d8cbb7;border-radius:50%;width:26px;height:26px;text-align:center;line-height:24px}.step.on{color:var(--gold-dark)}.step.on i{background:var(--gold-dark);color:white;border-color:var(--gold-dark)}.timeline{display:grid;gap:0}.timeline-item{display:flex;gap:17px;padding:18px 0}.timeline-icon{background:#f1eadf;width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#ad8c5f;flex-shrink:0}.timeline-item p{font-size:12px;color:var(--muted)}.timeline-item h3{margin:4px 0}.line{border:0;border-top:1px solid var(--line);margin:20px 0}.detail-title{text-align:center;padding:25px 10px}.detail-title h1{margin:12px 0}.detail-title p{color:var(--muted);font-size:13px}.detail-title .ornament{font-size:35px;color:#b9a17b}.obituary{position:relative;padding:36px 25px;border:1px solid #bca47e;outline:1px solid #e0d4c1;outline-offset:-9px;background:#faf6ed;text-align:center;max-width:520px;margin:auto;color:#7a6041}.obituary img{width:82px;height:95px;object-fit:contain;margin-bottom:20px}.obituary h2{font-size:26px;margin:18px 0}.obituary p{font-size:13px;margin:12px 0}.obituary .verse{font-size:20px}.obituary small{font-size:10px}.modal-backdrop{position:fixed;inset:0;z-index:100;background:#30291f65;backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:25px}.modal{width:min(620px,100%);max-height:90dvh;overflow:auto;background:var(--paper);border:1px solid #e0d4c2;border-radius:14px;padding:26px;box-shadow:0 25px 100px #25190c30}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.modal-head h2{font-size:20px}.close{font-size:25px;line-height:1;padding:5px 10px}.empty{text-align:center;padding:40px 20px;border:1px dashed #d9d0c2;border-radius:10px;color:var(--muted);grid-column:1/-1}.empty .ico{width:36px;height:36px;margin-bottom:10px}.empty h3{color:var(--ink);margin-bottom:8px}.empty p{font-size:12px}.empty .btn{margin-top:18px}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);background:#443b2d;color:#fff;padding:13px 22px;border-radius:9px;z-index:200;opacity:0;pointer-events:none;transition:.25s;font-size:13px;max-width:90%;text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}.welcome{max-width:480px;text-align:center;margin:25px auto;padding:40px;background:linear-gradient(145deg,#f3eee4,#fffdf9);border:1px solid var(--line);border-radius:18px}.welcome img{width:155px;height:180px;object-fit:contain;margin:10px 0 28px}.welcome .field{text-align:right;margin:18px 0}.welcome h1{font-size:23px}.welcome p{font-size:12px;color:var(--muted);margin:10px 0 20px}.admin-layout{display:grid;grid-template-columns:210px 1fr;min-height:calc(100dvh - 48px)}.sidebar{padding:25px 20px;border-left:1px solid var(--line);background:#f7f3eb;display:flex;flex-direction:column;gap:6px}.sidebar .brand{width:90px;height:105px;margin:0 auto 24px}.sidebar button{display:flex;align-items:center;gap:12px;text-align:right;padding:11px 14px;border-radius:7px;font-size:13px;color:#95856e}.sidebar button.active{background:#eae0d0;color:var(--gold-dark)}.sidebar small{font-size:10px;margin:20px 12px 5px;color:#b3a48f}.admin-main{min-width:0;padding:30px 36px}.admin-top{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:22px;margin-bottom:30px}.admin-top h1{font-size:24px}.avatar{width:37px;height:37px;display:flex;align-items:center;justify-content:center;background:#e8ddcb;color:#96784f;border-radius:50%}.user-chip{display:flex;gap:10px;align-items:center;font-size:12px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:28px}.stat{background:#fffdf9;border:1px solid var(--line);padding:21px;border-radius:9px}.stat small{font-size:11px}.stat b{display:block;font:34px/1.6 var(--font);color:#806345}.stat span{font-size:10px;color:#aaa08e}.table-wrap{overflow-x:auto;background:#fffdf9;border:1px solid var(--line);border-radius:9px}table{width:100%;border-collapse:collapse;text-align:right;white-space:nowrap}th{font-weight:400;font-size:11px;color:#9a8a73;background:#f7f3eb;padding:14px 18px}td{padding:16px 18px;font-size:12px;border-top:1px solid #eee8df}td small{display:block;font-size:10px}.toolbar{display:flex;gap:12px;align-items:center;margin:18px 0;flex-wrap:wrap}.toolbar .search{max-width:280px;font-size:12px}.toolbar select{border:1px solid var(--line);background:white;border-radius:6px;padding:10px;font:inherit;font-size:12px}.log-item{padding:14px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;font-size:12px}.log-item:last-child{border:0}.log-item small{font-size:10px}.toggle-row{display:flex;align-items:center;justify-content:space-between;padding:15px 0;border-bottom:1px solid var(--line);gap:20px;font-size:13px}.toggle{width:36px;height:21px;accent-color:var(--gold-dark)}.setting-link{display:flex;justify-content:space-between;align-items:center;width:100%;padding:17px 0;border-bottom:1px solid var(--line);font-size:13px}.setting-link span{display:flex;align-items:center;gap:12px}.review-list{display:grid;gap:14px}.review-card{display:flex;justify-content:space-between;gap:15px;padding:20px;background:#fffdf9;border:1px solid var(--line);border-radius:9px;align-items:center}.review-card h3{font-size:16px;margin:7px 0}.review-card .meta{font-size:11px}.review-layout{max-width:850px;margin:auto}.notice{padding:15px 18px;background:#f1ece2;border-right:3px solid var(--gold);border-radius:6px;margin-bottom:22px;font-size:12px}.phone-ltr{direction:ltr;text-align:left}.error{color:var(--red);font-size:12px;margin-top:10px;min-height:18px}.success-mark{width:64px;height:64px;background:#e8eee4;color:var(--green);border-radius:50%;margin:15px auto 22px;display:grid;place-items:center}.success-mark .ico{width:30px;height:30px}.bell-entry{padding:15px 0;border-bottom:1px solid var(--line)}.bell-entry p{font-size:13px}.legend{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted)}.review-scope{display:flex;gap:10px;align-items:center;font-size:12px}.review-scope select{border:1px solid var(--line);background:transparent;padding:6px;border-radius:6px}.chip-list{display:flex;gap:10px;flex-wrap:wrap}.chip-list label{background:var(--soft);padding:7px 13px;border-radius:6px;font-size:12px}.panel-title{margin-bottom:16px}.auth-mark{text-align:center;margin:8px 0 20px;color:var(--gold-dark)}.auth-mark .ico{width:38px;height:38px}.card-preview{text-align:center}.under-link{font-size:12px;text-decoration:underline;text-underline-offset:4px}.inline{display:flex;gap:10px;align-items:center}.admin-note{font-size:11px;color:var(--muted);margin-bottom:20px}.welcome .btn{margin-top:15px}.phone-entry{max-width:430px;margin:0 auto}.phone-entry .field{margin-bottom:18px}.form-section{font-size:15px;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:18px}.readonly{background:var(--soft);padding:10px 14px;border-radius:6px;font-size:12px;display:flex;justify-content:space-between}.public-note{font-size:10px;color:#a29480;margin-top:10px}.place-icon{width:46px;height:46px;background:#f0e8db;border-radius:9px;display:grid;place-items:center;color:var(--gold)}.place-card{padding:22px}.place-card h3{margin:15px 0 10px}.place-card .actions{margin-top:15px}.progress-strip{display:flex;gap:8px;color:#a39480;font-size:11px;margin-top:20px}.progress-strip span{background:#f2ece1;padding:4px 9px;border-radius:5px}.info-list{font-size:12px;color:var(--muted);padding-right:18px}.info-list li{margin-bottom:12px}
@media(min-width:1400px){.container{padding-top:25px}.hero{min-height:300px}.hero-main{padding-top:34px}.hero-art{height:245px}.time-block{font-size:49px}.cards{gap:22px}.card-main{padding:25px}}
@media(max-width:1000px){.header{padding:12px 25px}.topnav{gap:18px}.brand-copy,.brand-rule{display:none}.container{padding:15px 25px 75px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-main{padding:25px 20px}.admin-layout{grid-template-columns:180px 1fr}.sidebar{padding:22px 12px}.stats{gap:10px}.stat{padding:15px}.footer{margin:0 25px}.split{grid-template-columns:1.5fr 1fr}}
@media(max-width:700px){body{font-size:14px}.prototype-bar{flex-wrap:wrap;justify-content:center;gap:6px;padding:7px 10px}.prototype-label{font-size:10px}.role-switch button{font-size:11px;padding:5px 14px}.reset{font-size:10px}.header{height:85px;padding:10px 20px}.brand{width:59px;height:67px}.topnav{display:none}.location{font-size:11px}.header-actions{gap:10px}.container{padding:10px 18px 100px}.page-heading{margin:9px 0 18px;gap:10px}.page-heading h1{font-size:23px}.page-heading p{font-size:11px}.page-heading .btn{font-size:11px;padding:9px 11px}.eyebrow{font-size:10px}.hero{display:block;min-height:0;border-radius:11px}.hero-main{padding:23px 20px}.hero-main h2{font-size:15px;margin-top:18px}.hero-top{font-size:10px}.hero-art{width:56%;height:180px;bottom:65px;left:-40px;opacity:.35}.time-block{font-size:34px;min-width:44px}.timer{gap:9px}.hero-date{font-size:10px}.prayers{margin:0 15px;padding:14px 0}.prayer{font-size:10px}.prayer b{font-size:14px}.section-head{margin:24px 0 14px;flex-wrap:wrap;gap:12px}.section-head h2{font-size:19px}.cards{grid-template-columns:1fr;gap:13px}.card-main{padding:19px 20px 13px}.card-top{margin-bottom:14px}.funeral-card h3{font-size:17px}.quiet-banner{padding:14px;align-items:flex-start}.quiet-banner p{font-size:12px}.quiet-banner small{font-size:10px}.footer{display:none}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fffdf9ed;backdrop-filter:blur(10px);border-top:1px solid var(--line);z-index:20;justify-content:space-around;padding:8px 5px max(12px,env(safe-area-inset-bottom))}.mobile-nav button{font-size:10px;display:flex;flex-direction:column;gap:4px;align-items:center;color:#aa9a83;padding:3px 15px}.mobile-nav button.active{color:#7b5e3c}.split{grid-template-columns:1fr}.form-grid{gap:14px}.form-grid .field{grid-column:1/-1}.panel{padding:20px}.welcome{padding:28px 23px;margin:5px auto}.welcome img{width:135px;height:155px}.steps{gap:7px;font-size:10px}.step{gap:5px}.admin-layout{display:block}.sidebar{flex-direction:row;overflow:auto;padding:10px;border-left:0;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.sidebar .brand,.sidebar small{display:none}.sidebar button{flex-shrink:0;padding:7px 12px;font-size:11px;gap:7px}.sidebar .ico{width:16px;height:16px}.admin-main{padding:20px 15px}.admin-top{margin-bottom:20px}.admin-top h1{font-size:20px}.stats{grid-template-columns:repeat(2,1fr)}.stat{padding:16px}.stat b{font-size:29px}.review-card{padding:15px;gap:10px}.review-card .btn{padding:7px 12px;font-size:11px}.review-card h3{font-size:15px}.review-card .meta{font-size:10px}.modal-backdrop{padding:12px}.modal{padding:20px;max-height:93dvh}.modal-head h2{font-size:18px}.obituary{padding:30px 20px}.obituary h2{font-size:23px}.review-scope{flex-wrap:wrap}.admin-top .user-chip{font-size:10px}.admin-note{font-size:10px}#toast{bottom:90px}.review-layout{padding-bottom:30px}.page-heading .actions{margin:0}.log-item{flex-direction:column;gap:3px}.note{font-size:11px}.toolbar .search{max-width:none}.actions .btn{white-space:normal}.section-head .filters{gap:4px}.filter{padding:5px 11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Qerat brand system — original XD artwork, locally bundled IBM Plex. */
@font-face{font-family:'IBM Plex Sans Arabic';src:url('assets/fonts/IBMPlexSansArabic-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'IBM Plex Sans Arabic';src:url('assets/fonts/IBMPlexSansArabic-Medium.ttf') format('truetype');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'IBM Plex Sans Arabic';src:url('assets/fonts/IBMPlexSansArabic-SemiBold.ttf') format('truetype');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'IBM Plex Sans Arabic';src:url('assets/fonts/IBMPlexSansArabic-Bold.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap}
:root{--font:'IBM Plex Sans Arabic',sans-serif}
body,button,input,select,textarea,.time-block,.time-block small,.timer .colon,.stat b{font-family:var(--font);font-variant-numeric:lining-nums tabular-nums}
body{font-size:15px}button,input,select,textarea{font-family:var(--font)}
.brand-lockup{display:flex;flex-direction:column;align-items:center;gap:5px;flex-shrink:0}.brand-lockup .brand{width:82px;height:54px;margin:0;object-fit:contain}.brand-slogan{font-family:var(--font);color:#968472;font-size:10px;white-space:nowrap;direction:rtl}.brand-box{min-width:120px}.header{height:110px}.topnav{gap:24px}.topnav button{display:flex;gap:9px;align-items:center}.topnav .xd-icon{width:24px;height:24px}.ico.xd-icon{fill:currentColor;stroke:none}.sidebar .brand-lockup{margin-bottom:20px}.sidebar .brand-slogan{margin:0;font-size:10px}.sidebar .xd-icon{width:22px;height:22px}.mobile-nav .xd-icon{width:26px;height:26px}.language-control{display:flex;gap:7px;align-items:center;color:var(--gold-dark);font-size:12px;flex-shrink:0}.language-control .ico{width:17px;height:17px}.language-control select{border:1px solid #d8c9b5;border-radius:6px;background:#fcfaf6;padding:4px 8px;font:inherit;color:inherit;max-width:130px;cursor:pointer}.prototype-bar{gap:12px;flex-wrap:wrap}.role-switch{flex-shrink:0}.role-switch button{white-space:nowrap}.welcome,.hero,.obituary{isolation:isolate;position:relative;overflow:hidden}.welcome:before,.obituary:before{content:'';position:absolute;inset:0;background-image:url('assets/islamic-pattern.svg');background-size:contain;background-position:center;background-repeat:no-repeat;opacity:.23;pointer-events:none;z-index:-1}.welcome{background:#fcfaf6}.welcome>img{width:165px;height:110px;margin:16px 0 0}.welcome-slogan{font-size:16px;color:var(--gold-dark);margin:4px 0 34px;direction:rtl}.hero:before{background-image:linear-gradient(90deg,#f0e9dd00,#f0e9ddda 65%),url('assets/islamic-pattern.svg');background-size:100% 100%,contain;background-position:center,center;background-repeat:no-repeat,no-repeat;opacity:.75}.hero-art{display:none}.hero-main{z-index:1}.hero .prayers{background:#f0e9ddaa}.obituary{background:#faf6ed}.obituary:before{opacity:.16;background-size:contain}.obituary img{width:100px;height:68px;margin-bottom:0}.card-slogan{font-size:11px;margin:3px 0 22px;direction:rtl}.obituary h2{overflow-wrap:anywhere}.obituary p{line-height:1.9}.sidebar{position:relative;isolation:isolate}.sidebar:before{content:'';position:absolute;inset:0;background:url('assets/islamic-pattern.svg') center/contain no-repeat;opacity:.1;pointer-events:none;z-index:-1}.modal .language-control{justify-content:center;margin:18px 0}.modal .language-control select{min-width:160px;max-width:none;padding:10px}.topnav button.active:after{inset-inline-start:30%;right:auto}.section-head small{margin-right:0;margin-inline-start:9px}.timer{direction:ltr}.form-grid{align-items:start}.field{min-width:0}.readonly{gap:16px}.readonly b{overflow-wrap:anywhere;text-align:end}.notice{border-right:0;border-inline-start:3px solid var(--gold)}.text-btn .ico{flex-shrink:0}.table-wrap{max-width:100%}table{text-align:start}.sidebar button{text-align:start}.sidebar{border-left:0;border-inline-end:1px solid var(--line)}.prayer+.prayer{border-right:0;border-inline-start:1px solid #dbcdb6}.info-list{padding-right:0;padding-inline-start:18px}.time-block{font-size:44px;font-weight:400}.time-block small{font-size:11px}.stat b{font-size:34px;font-weight:500}.quiet-banner{flex-wrap:wrap}.header-actions{flex-shrink:0}[dir=ltr] .hero:before{background-image:linear-gradient(270deg,#f0e9dd00,#f0e9ddda 65%),url('assets/islamic-pattern.svg');background-position:center,center}[dir=ltr] .text-btn .ico,[dir=ltr] .btn .ico{transform:none}[dir=ltr] svg:has(path[d^='M14 6']){transform:scaleX(-1)}[dir=ltr] .welcome .field{text-align:left}[dir=ltr] .quiet-banner .text-btn{margin-right:0!important;margin-left:auto}[dir=ltr] .progress-strip{direction:ltr}[dir=ltr] .date-label{direction:ltr}.btn{white-space:normal}.role-switch button{white-space:nowrap}.topnav button{white-space:nowrap}
@media(max-width:1100px){.header{padding-inline:22px;gap:18px}.topnav{gap:16px}.topnav button{font-size:13px}.topnav .xd-icon{width:20px;height:20px}.brand-box{min-width:105px}.brand-lockup .brand{width:74px;height:49px}.header-actions{gap:8px}}
@media(max-width:800px){.brand-slogan{font-size:9px}.header{gap:12px}.topnav{gap:12px}.topnav button{gap:5px}.location{font-size:11px}.hero-main{padding-inline:24px}.role-switch button{padding:5px 11px}.prototype-bar{justify-content:center}.prototype-label{font-size:10px}}
@media(max-width:700px){.header{height:90px;padding-inline:18px}.brand-box{min-width:auto}.brand-lockup .brand{width:68px;height:45px}.brand-slogan{font-size:9px}.prototype-bar{gap:7px}.role-switch{order:2;width:100%;justify-content:center}.role-switch button{flex:1;max-width:180px;padding:6px 8px;font-size:11px}.prototype-label{margin-inline-end:auto}.language-control{font-size:11px}.reset{font-size:10px}.welcome{padding:25px 22px}.welcome>img{width:145px;height:96px}.welcome-slogan{font-size:14px;margin-bottom:28px}.welcome:before{background-size:contain}.hero:before{background-size:100% 100%,contain;opacity:.65}.time-block{font-size:35px}.sidebar .brand-lockup{display:none}.sidebar{border-inline-end:0}.readonly{flex-wrap:wrap}.header .topnav{display:none}.mobile-nav button{padding-inline:9px;min-width:65px}.mobile-nav .xd-icon{width:27px;height:27px}.cards{grid-template-columns:1fr}.section-head h2{font-size:20px}.footer{padding-inline:10px}.hero-main{padding:22px 20px}.card-top{gap:10px}.steps{flex-wrap:wrap}.admin-top{gap:12px}.admin-top h1{font-size:21px}.user-chip{flex-shrink:0}.admin-top .user-chip>span:last-child{max-width:100px}.obituary h2{font-size:22px}.obituary p{font-size:12px}}
/* Home layout approved from the user's November 2 screenshot. */
#app.reference-home{max-width:480px;margin:0 auto;position:relative;isolation:isolate;background:#fdfbf7;min-height:100dvh;padding-bottom:110px;color:#82664a}
#app.reference-home:before{content:'';position:absolute;inset:0 0 auto;height:320px;background:url('assets/home-pattern.svg') center top/auto 100% no-repeat;opacity:.26;pointer-events:none;z-index:-1}
.reference-home .prototype-bar,.reference-home .topnav,.reference-home .header-actions,.reference-home .footer{display:none}
.reference-home .header{height:168px;padding:35px 28px 15px;justify-content:flex-start;align-items:flex-start;background:none}
.reference-home .brand-box{min-width:0;padding:0}.reference-home .brand-lockup{gap:8px}.reference-home .brand-lockup .brand{width:112px;height:77px}.reference-home .brand-slogan{font-size:13px;color:#9b9b9b}
.reference-home .container{width:auto;max-width:none;margin:0;padding:0 27px}
.reference-home .home-date-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 18px;font-size:16px;line-height:1.5}
.reference-home .home-date-row>span{flex:1}.reference-home .home-date-row .btn{background:#82664a;color:#fff;padding:5px 11px;border-radius:5px;font-size:21px;min-height:41px;white-space:nowrap;gap:7px;flex-direction:row-reverse;box-shadow:none}.reference-home .home-date-row .ico{width:16px;height:16px}
.reference-home .hero{background:#efe9dd;border-radius:12px;border:0;min-height:0;margin:0;display:block;padding:12px 34px 22px;overflow:hidden}
.reference-home .hero:before{display:none}.reference-home .hero-main{padding:0;text-align:center}.reference-home .hero-main h2{font-size:16px;font-weight:400;margin:0 0 1px;color:#82664a}
.reference-home .timer{display:block;text-align:center;font-size:67px;font-weight:400;line-height:1.25;letter-spacing:0;white-space:nowrap;color:#82664a;margin:0 0 9px;font-variant-numeric:tabular-nums}
.reference-home .prayers{background:none;border-top:1px solid #d6c8b0;padding:13px 0 0;display:flex;justify-content:space-between;gap:0;margin:0}.reference-home .prayer{flex:1;text-align:center;font-size:17px;line-height:1.5;padding:0 9px;color:#82664a}.reference-home .prayer b{display:block;margin-top:10px;font-size:17px;font-weight:400;direction:ltr}.reference-home .prayer.active,.reference-home .prayer.active b{font-weight:700}.reference-home .prayer+.prayer{border-inline-start:1px solid #d6c8b0}
.reference-home .section-head{display:block;margin:29px 0 23px}.reference-home .section-head h2{color:#080808;font-size:24px;font-weight:500;line-height:1.5;display:flex;align-items:center;gap:20px}.reference-home .section-head small{color:#9b9b9b;font-size:15px;font-weight:400;margin:0;white-space:nowrap}
.reference-home .filters{display:flex;gap:10px;margin-top:14px;justify-content:flex-start}.reference-home .filter{border:1px solid #c39a66;border-radius:6px;padding:5px 5px;min-width:71px;min-height:38px;font-size:18px;color:#82664a;background:transparent}.reference-home .filter.active{background:#eae1d2;border-color:#eae1d2}
.reference-home .cards{display:grid;grid-template-columns:1fr;gap:15px}.reference-home .funeral-card{position:relative;border:1px solid #e6dfd3;border-radius:9px;background:#fffefa;box-shadow:none;overflow:hidden;min-height:160px}.reference-home .card-main{padding:17px 16px 18px}.reference-home .card-top{display:flex;align-items:center;justify-content:space-between;margin:0 0 13px;gap:12px}.reference-home .card-top .badge{background:#eae1d2;color:#82664a;padding:3px 12px;border-radius:6px;font-size:14px;font-weight:500}.reference-home .card-top .ico{color:#c39a66;width:29px;height:29px}.reference-home .funeral-card h3{color:#050505;font-size:24px;line-height:1.5;font-weight:500;margin:0 0 7px}.reference-home .meta{font-size:14px;line-height:1.6;margin:0;gap:7px;color:#82664a;padding-inline-end:135px}.reference-home .meta .ico{width:20px;height:20px;flex-shrink:0}.reference-home .card-bottom{position:absolute;bottom:16px;inset-inline-end:15px;border:0;padding:0;background:none;display:block}.reference-home .card-bottom>span{display:none}.reference-home .card-bottom .text-btn{display:flex;flex-direction:row-reverse;gap:7px;background:#f3f0eb;border:1px solid #c39a66;border-radius:6px;padding:3px 9px;font-size:17px;font-weight:400;color:#82664a}.reference-home .card-bottom .ico{color:#40392f;width:18px;height:18px}
.reference-home .mobile-nav{display:flex;position:fixed;bottom:0;left:50%;right:auto;transform:translateX(-50%);width:100%;max-width:480px;background:#f3f0eb;border:0;border-radius:9px 9px 0 0;padding:18px 25px max(18px,env(safe-area-inset-bottom));justify-content:space-between;z-index:8}.reference-home .mobile-nav button{color:#b4a593;font-size:16px;padding:0;min-width:55px;gap:5px;display:flex;flex-direction:column;align-items:center}.reference-home .mobile-nav button.active{color:#82664a}.reference-home .mobile-nav .xd-icon{width:36px;height:34px}
@media(max-width:440px){.reference-home .header{height:150px;padding:28px 24px 10px}.reference-home .container{padding-inline:23px}.reference-home .brand-lockup .brand{width:100px;height:70px}.reference-home .home-date-row{font-size:14px;gap:10px;margin-bottom:17px}.reference-home .home-date-row .btn{font-size:19px;min-height:36px;padding:4px 9px}.reference-home .hero{padding:12px 29px 21px}.reference-home .timer{font-size:59px}.reference-home .prayer{font-size:15px;padding-inline:7px}.reference-home .prayer b{font-size:15px}.reference-home .section-head h2{font-size:22px;gap:15px}.reference-home .section-head small{font-size:13px}.reference-home .filter{font-size:16px;min-width:63px;min-height:34px}.reference-home .filters{gap:9px}.reference-home .funeral-card h3{font-size:22px}.reference-home .meta{font-size:12px;padding-inline-end:120px}.reference-home .card-bottom .text-btn{font-size:15px;padding:4px 8px}.reference-home .card-top .badge{font-size:12px}.reference-home .card-main{padding:15px 13px}.reference-home .mobile-nav{padding:17px 23px}.reference-home .mobile-nav button{font-size:15px}}
@media(max-width:370px){.reference-home .container{padding-inline:18px}.reference-home .home-date-row{font-size:12px}.reference-home .home-date-row .btn{font-size:16px}.reference-home .hero{padding-inline:20px}.reference-home .timer{font-size:52px}.reference-home .section-head h2{font-size:20px}.reference-home .funeral-card h3{font-size:20px}.reference-home .meta{padding-inline-end:0;max-width:60%}.reference-home .card-bottom .text-btn{font-size:13px}.reference-home .filter{min-width:56px}}
.reference-home .timer{width:100%;line-height:1.1;margin-bottom:8px}.reference-home .hero-main h2{line-height:1.4}.reference-home .hero{padding-bottom:16px}.reference-home .prayers{padding-top:11px}.reference-home .prayer b{margin-top:8px}.reference-home .section-head{margin-bottom:15px}.reference-home .filters{margin-top:9px}
.reference-home .card-bottom .text-btn{flex-direction:row}
/* Restore compact text and controls requested after the home review. */
.reference-home .funeral-card h3{font-size:18px}
.reference-home .filter{font-size:12px;line-height:1.8;padding:5px 11px;min-height:0}
.reference-home .mobile-nav{padding:8px 5px max(12px,env(safe-area-inset-bottom));border-radius:0;border-top:1px solid var(--line);background:#fffdf9ed;backdrop-filter:blur(10px);justify-content:space-around}
.reference-home .mobile-nav button{font-size:10px;line-height:1.8;gap:4px;padding:3px 9px;min-width:65px}
.reference-home .mobile-nav .xd-icon{width:27px;height:27px}
@media(max-width:700px){.reference-home .funeral-card h3{font-size:17px}}
/* Match the report action to the details action at every home breakpoint. */
.reference-home .home-date-row .btn{font-size:17px;line-height:1.8;min-height:0;padding:3px 9px;border:1px solid #82664a}
@media(max-width:440px){.reference-home .home-date-row .btn{font-size:15px;padding:4px 8px}}
@media(max-width:370px){.reference-home .home-date-row .btn{font-size:13px}}

/* Compact public funeral details. */
.reference-detail .detail-header{max-width:1160px;margin:0 auto;padding:20px 0 0;display:flex;justify-content:flex-end}
.reference-detail .detail-back{display:grid;grid-template-columns:18px 1fr;min-width:112px;padding:5px 12px;gap:8px;font-size:14px}
.reference-detail .detail-back span{text-align:center}.reference-detail .detail-back .ico{transform:scaleX(-1)}
.reference-detail .container{padding-top:0}.reference-detail .page-heading{margin:8px 0 14px}.reference-detail .eyebrow,.reference-detail .footer{display:none}
.reference-detail .panel{padding:16px}.reference-detail .split{gap:14px}.reference-detail .detail-title{padding:4px 0 8px}.reference-detail .detail-title .ornament{font-size:25px;line-height:1.2}.reference-detail .detail-title h1{margin:5px 0;font-size:24px}.reference-detail .line{margin:8px 0}
.reference-detail .timeline-item{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 0}.reference-detail .timeline-item+.timeline-item{border-top:1px solid var(--line)}
.reference-detail .timeline-icon{width:34px;height:34px}.reference-detail .timeline-info{min-width:0}.reference-detail .timeline-item h3{margin:0;font-size:16px;line-height:1.6}.reference-detail .timeline-item p{line-height:1.6}.reference-detail .map-button{font-size:12px;padding:5px 9px;gap:5px;white-space:nowrap}.reference-detail .map-button .ico{width:15px;height:15px}
.reference-detail aside .hint{margin:6px 0 12px!important}.reference-detail aside.stack{gap:12px}
@media(max-width:1200px){.reference-detail .detail-header{margin-inline:4%}}
@media(max-width:700px){.reference-detail .detail-header{padding-top:16px;margin-inline:20px}.reference-detail .page-heading{margin-bottom:10px}.reference-detail .panel{padding:13px}.reference-detail .timeline-item{grid-template-columns:30px minmax(0,1fr);gap:4px 9px;padding:9px 0}.reference-detail .timeline-icon{width:30px;height:30px;grid-row:1 / 3;align-self:start;margin-top:5px}.reference-detail .map-button{grid-column:2;justify-self:end;padding:3px 8px}.reference-detail .detail-title h1{font-size:21px}.reference-detail .timeline-item h3{font-size:15px}}

/* Match detail typography and map actions to the approved home cards. */
.reference-detail .page-heading h1{font-size:24px;line-height:1.5;font-weight:500;color:#080808}
.reference-detail .detail-title h1{font-size:18px;line-height:1.5;font-weight:500;color:#050505}
.reference-detail .timeline-item h3{font-size:14px;line-height:1.6;font-weight:400;color:#82664a}
.reference-detail .timeline-item p,.reference-detail .timeline-item small,.reference-detail .detail-title p{font-size:14px;line-height:1.6}
.reference-detail .map-button{display:flex;gap:7px;background:#f3f0eb;border:1px solid #c39a66;border-radius:6px;padding:3px 9px;font-size:17px;line-height:1.8;font-weight:400;color:#82664a;box-shadow:none}
.reference-detail .map-button .ico{width:18px;height:18px;color:#40392f}
@media(max-width:700px){.reference-detail .detail-title h1{font-size:17px}}
@media(max-width:440px){.reference-detail .page-heading h1{font-size:22px}.reference-detail .timeline-item h3,.reference-detail .timeline-item p,.reference-detail .timeline-item small,.reference-detail .detail-title p{font-size:12px}.reference-detail .map-button{font-size:15px;padding:4px 8px}}
@media(max-width:370px){.reference-detail .page-heading h1{font-size:20px}.reference-detail .map-button{font-size:13px}}

/* Bring share controls closer to the message. */
#share-copy{display:block}
.modal .share-actions{margin-top:8px}

#share-copy[hidden]{display:none}.share-preview{border:1px solid var(--line);border-radius:7px;padding:12px 14px;font-size:14px;line-height:1.65;background:#fffdf9;overflow-wrap:anywhere}.share-map-link{display:block;width:fit-content;color:var(--gold-dark);text-decoration:underline;text-underline-offset:3px;margin-bottom:4px}.modal .share-actions{margin-top:6px;margin-bottom:8px}

.story-preview{width:min(100%,360px);margin:0 auto;aspect-ratio:9/16;background:#f3f0eb}.story-preview canvas{display:block;width:100%;height:auto;aspect-ratio:9/16}.modal:has(.story-preview){max-width:560px}.story-actions{margin-top:14px;justify-content:center}

/* Shared public report typography and navigation across all three steps. */
.reference-report .detail-header{max-width:1160px;margin:0 auto;padding:20px 0 0;display:flex;justify-content:flex-end}
.reference-report .detail-back{display:grid;grid-template-columns:18px 1fr;min-width:112px;padding:5px 12px;gap:8px;font-size:14px}
.reference-report .detail-back span{text-align:center}.reference-report .detail-back .ico{transform:scaleX(-1)}
.reference-report .eyebrow,.reference-report .footer{display:none}.reference-report .container{padding-top:0}.reference-report .page-heading{margin:8px 0 14px}.reference-report .page-heading h1{font-size:24px;line-height:1.5;font-weight:500;color:#080808}
.reference-report h3{font-size:18px;line-height:1.5;font-weight:500}.reference-report .panel{padding:18px}.reference-report .split{gap:16px}.reference-report .field{font-size:14px;gap:5px}.reference-report .field input,.reference-report .field select{font-size:14px;padding:8px 11px}.reference-report .form-grid{gap:14px}.reference-report .hint,.reference-report .info-list,.reference-report .readonly,.reference-report .notice{font-size:14px}.reference-report .steps{margin:16px 0 18px;font-size:12px}.reference-report .btn:not(.detail-back){font-size:17px;padding:5px 11px;line-height:1.8}.reference-report aside>.panel{background:#efe9dd;border-color:#e1d5c4}.reference-report .info-list{color:#82664a;margin-bottom:0}.reference-report .info-list li{margin-bottom:9px}.reference-report .report-back-data{margin-top:12px;min-width:175px}
.reference-report .phone-number-field{display:flex;align-items:stretch;border:1px solid #ddd5c8;border-radius:7px;overflow:hidden;background:#fffefa}.reference-report .phone-number-field:focus-within{border-color:var(--gold)}.reference-report .phone-dial-code{display:flex;align-items:center;padding:8px 12px;background:#efe9dd;border-right:1px solid #ddd5c8;flex-shrink:0;color:#82664a}.reference-report .phone-number-field input{border:0;border-radius:0;min-width:0;flex:1}
@media(max-width:1200px){.reference-report .detail-header{margin-inline:4%}}
@media(max-width:700px){.reference-report .detail-header{padding-top:16px;margin-inline:20px}.reference-report .panel{padding:14px}.reference-report h3{font-size:17px}.reference-report .steps{flex-wrap:nowrap;gap:6px;font-size:11px}.reference-report .step{gap:4px}.reference-report .step i{flex-shrink:0;width:23px;height:23px;line-height:21px}.reference-report .readonly{gap:8px}}
@media(max-width:440px){.reference-report .page-heading h1{font-size:22px}.reference-report .field,.reference-report .hint,.reference-report .info-list,.reference-report .readonly,.reference-report .notice{font-size:12px}.reference-report .btn:not(.detail-back){font-size:15px;padding:4px 8px}}
@media(max-width:370px){.reference-report .page-heading h1{font-size:20px}.reference-report .steps{font-size:10px}.reference-report .btn:not(.detail-back){font-size:13px}}

/* Consistent inset select chevrons, mirrored with the app language. */
select{-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2382664a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-size:16px 16px!important;background-position:left 13px center!important;padding-inline-end:40px!important}
[dir=ltr] select{background-position:right 13px center!important}
.reference-report .otp-send{background:#82664a;color:#fff;border:1px solid #82664a}
#app.reference-followup{position:relative;isolation:isolate;min-height:100dvh;max-width:480px;margin:auto;background:#fdfbf7;color:#82664a}
.reference-followup:before{content:'';position:absolute;inset:0 0 auto;height:320px;background:url('assets/home-pattern.svg') center top/auto 100% no-repeat;opacity:.26;z-index:-1;pointer-events:none}
.reference-followup .container{padding-inline:23px}.reference-followup .welcome{margin:24px 0;padding:28px 18px;background:transparent;border:0;box-shadow:none;overflow:visible}.reference-followup .welcome:before{display:none}.reference-followup .welcome h1{font-size:24px;line-height:1.5;font-weight:500;color:#080808}.reference-followup .welcome p{font-size:14px;line-height:1.8;margin:14px 0}.reference-followup .welcome .note{font-size:14px;margin:18px 0;background:#efe9dd}.reference-followup .review-card{padding:16px;background:#fffefa;border:1px solid #e6dfd3}.reference-followup .review-card h3{font-size:18px;line-height:1.5;font-weight:500;color:#050505}.reference-followup .review-card .badge{font-size:12px;font-weight:500}.reference-followup .review-card .hint{font-size:14px}.reference-followup .page-heading p{font-size:14px}.reference-followup .mobile-nav{max-width:480px;left:50%;right:auto;transform:translateX(-50%);width:100%}
@media(max-width:700px){.reference-followup .review-card h3{font-size:17px}}
@media(max-width:440px){.reference-followup .welcome h1{font-size:22px}.reference-followup .welcome p,.reference-followup .welcome .note,.reference-followup .review-card .hint,.reference-followup .page-heading p{font-size:12px}}

/* Use the same fluid desktop content width as the other public pages. */
@media(min-width:701px){
 #app.reference-home{max-width:none;width:100%;padding-bottom:110px}
 .reference-home .header{max-width:1240px;width:100%;height:155px;padding:24px 40px 15px}
 .reference-home .container{max-width:1240px;width:100%;margin-inline:auto;padding-inline:40px}
 .reference-home .mobile-nav{max-width:none;padding-inline:max(40px,calc((100vw - 1160px)/2));border-radius:0}
 .reference-home .section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
 .reference-home .filters{margin-top:0;flex-wrap:wrap}
 .reference-home .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .reference-home .funeral-card{min-width:0}
 .reference-home .card-main{min-height:165px}
 .reference-home .funeral-card h3{overflow-wrap:anywhere}
}
@media(min-width:901px){
 .reference-home .hero{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(0,1.15fr);align-items:center;gap:30px;padding:22px 32px}
 .reference-home .timer{margin:6px 0 0;font-size:67px}
 .reference-home .prayers{border-top:0;border-inline-start:1px solid #d6c8b0;padding:12px 0;padding-inline-start:25px}
}
@media(min-width:701px) and (max-width:1000px){
 .reference-home .meta{padding-inline-end:0}
 .reference-home .card-main{padding-bottom:62px}
 .reference-home .section-head h2{font-size:22px}
}
@media(min-width:481px) and (max-width:700px){
 #app.reference-home{max-width:none}
 .reference-home .mobile-nav{max-width:none}
}
@media(min-width:901px){.reference-home .prayers{grid-column:auto}}
/* Public directory and settings use the home type scale and compact controls. */
.reference-directory .directory-search{display:flex;flex-wrap:nowrap;align-items:stretch;gap:10px}
.reference-directory .directory-search .search{flex:1;width:auto;max-width:none;min-width:0;font-size:14px;padding:7px 11px}
.reference-directory .directory-search .btn{flex-shrink:0;white-space:nowrap;margin:0}
.reference-directory .place-card h3{font-size:18px;font-weight:500;line-height:1.5;color:#050505}
.reference-directory .place-card .meta{font-size:14px;line-height:1.6;color:#82664a}
.reference-directory .place-card .btn{border-radius:6px;font-weight:400}
.reference-directory .place-card .btn.secondary{background:#f3f0eb;border-color:#c39a66;color:#82664a}
.directory-notice{margin-top:22px;padding:18px;background:#efe9dd;border:1px solid #e1d5c4;border-radius:10px;color:#82664a;font-size:14px;line-height:1.8}
.directory-notice .btn{margin-top:14px}.reference-directory .setting-link{font-size:14px}.reference-directory .panel-title{font-size:18px;font-weight:500}
.reference-directory .toggle-row{font-size:14px}.notification-switch{-webkit-appearance:none;appearance:none;position:relative;width:44px;height:26px;flex-shrink:0;border:1px solid #b6aa99;border-radius:20px;background:#ddd5c8;cursor:pointer;transition:background .2s}
.notification-switch:before{content:'';position:absolute;width:18px;height:18px;top:3px;left:3px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .2s}
.notification-switch:checked{background:#82664a;border-color:#82664a}.notification-switch:checked:before{transform:translateX(18px)}
.reference-home .header-actions{display:flex;margin-inline-start:auto;align-items:center;gap:8px;margin-top:9px}
.reference-home .header-actions .location{display:none}.reference-home .home-language{display:flex;align-items:center;gap:6px;color:#82664a;font-size:13px;padding:7px 9px;border:1px solid #e1d5c4;border-radius:7px;background:#fffdf9}
.reference-home .header-actions .icon-btn{width:38px;height:38px;border:1px solid #e1d5c4;background:#fffdf9;border-radius:7px;color:#82664a}.reference-home .home-language .ico{width:18px;height:18px}
.public-form .field{font-size:14px}.public-form input,.public-form select,.public-form textarea{font-size:14px}.public-form .btn{font-size:15px;padding:5px 12px}.message-body{white-space:pre-wrap;overflow-wrap:anywhere;margin:14px 0}.modal p{overflow-wrap:anywhere}
@media(max-width:700px){.reference-directory .place-card h3,.reference-directory .panel-title{font-size:17px}}
@media(max-width:440px){.reference-directory .place-card .meta,.reference-directory .setting-link,.reference-directory .toggle-row,.directory-notice{font-size:12px}.reference-home .header-actions{gap:6px}.reference-home .home-language{font-size:12px;padding:6px 7px}}

.staff-bar{justify-content:space-between;padding:12px max(24px,4%)}.staff-bar strong{font-size:15px;font-weight:500}.moderator-header{height:105px;justify-content:flex-start}.moderator-header .brand{width:90px;height:60px}.moderator-header .brand-slogan{font-size:11px}
/* Public app refinements: shared persistent navigation and information scale. */
body[data-application="public"] #app{padding-bottom:100px}
body[data-application="public"] #app .mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;width:100%;max-width:none;transform:none;z-index:40;justify-content:space-around;align-items:center;background:#fcfaf6;border-top:1px solid #e5ddd0;padding:9px max(20px,calc((100vw -1160px)/2)) calc(9px + env(safe-area-inset-bottom))}
body[data-application="public"] .mobile-nav button{display:flex;flex:1;flex-direction:column;align-items:center;gap:5px;color:#b2a18e;font-size:12px}
body[data-application="public"] .mobile-nav button.active{color:#82664a}
body[data-application="public"] .mobile-nav .ico{width:27px;height:27px}
.reference-home .header-actions .icon-btn,.reference-home .header-actions .home-language{height:38px;min-height:38px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;margin:0;padding-block:0}
.report-flow .field,.report-flow .hint,.report-flow .info-list,.report-flow .readonly,.report-flow .notice,.report-flow .field input,.report-flow .field select{font-size:15px}
.reference-directory .place-card{background:#f0e9de;border-color:#e0d4c2}
.place-title{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-direction:row-reverse}
.reference-directory .place-title h3{margin:0;font-size:18px;font-weight:500;flex:1}
.place-title .place-icon{flex-shrink:0;background:#e6dac8;color:#82664a}
.settings-page .setting-link,.settings-page .toggle-row,.settings-page .field,.settings-page .field select{font-size:17px}
.settings-page .hint,.settings-page .badge,.settings-page .setting-link small{font-size:14px}
.settings-page .panel-title{font-size:20px}
@media(max-width:440px){.report-flow .field,.report-flow .hint,.report-flow .info-list,.report-flow .readonly,.report-flow .notice{font-size:13px}.report-flow .field input,.report-flow .field select{font-size:15px}.settings-page .setting-link,.settings-page .toggle-row,.settings-page .field,.settings-page .field select{font-size:16px}.settings-page .panel-title{font-size:18px}.reference-directory .place-title h3{font-size:17px}}
/* Followed mosques use a light-green state; unfollowed buttons retain their default. */
.reference-directory .place-card .btn.light[data-action="follow"]{background:#dcefdc;color:#316344;border-color:#bddcbd}
/* Supplied intro animation, packaged locally for offline playback. */
body[data-application="public"] #app.intro-active{padding:0;max-width:none;width:100%}
.intro-screen{position:fixed;inset:0;z-index:80;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;background:#fcfaf6;padding:32px}
.intro-logo{width:clamp(150px,42vw,220px);height:auto;max-height:45dvh;object-fit:contain;animation:qerat-intro-logo 3s ease-in-out both}
.intro-slogan{color:#82664a;font:400 17px/1.8 var(--font);text-align:center;animation:qerat-intro-caption 3s ease-in-out both}
@keyframes qerat-intro-logo{0%{opacity:1;transform:translateY(14px) scale(.9)}25%,75%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:1;transform:translateY(-3px) scale(1.025)}}
@keyframes qerat-intro-caption{0%,15%{opacity:1}40%,100%{opacity:1}}
@media(prefers-reduced-motion:reduce){.intro-logo,.intro-slogan{animation:none}}
.settings-page .settings-brand{display:flex;align-items:center;gap:14px;margin:22px 0 12px;color:#82664a}
.settings-page .settings-brand img{width:64px;height:74px;object-fit:contain;flex-shrink:0}
.settings-page .settings-brand span{font-size:16px;font-weight:400}
.modal-head .mark-notifications-read{font-size:11px;font-weight:400;color:#82664a;text-decoration:underline;text-underline-offset:3px;margin-inline-start:auto;white-space:normal;text-align:start;line-height:1.6}
.modal-head .mark-notifications-read:disabled{opacity:.5;cursor:default;text-decoration:none}
.notification-open{display:block;width:100%;text-align:start;padding:12px;border-radius:8px}
.notification-open small{display:block;margin:5px 28px;font-size:11px;color:#8a8479}
.notification-open .inline{font-size:14px;align-items:flex-start}
.notification-view{display:inline-block;margin:6px 28px 0;color:#82664a;font-size:13px;text-decoration:underline}
.bell-entry.is-unread .notification-open{background:#f0e9de}.bell-entry.is-read .notification-open{background:transparent}
.notification-list .bell-entry{padding:8px 0}
/* Staff sign-in, account controls and directory forms. */
.staff-login{min-height:100dvh;display:grid;place-items:center;padding:28px;background:#fcfaf6 url('assets/home-pattern.svg') no-repeat center top;background-size:min(950px,150vw) auto}
.staff-login-card{width:min(420px,100%);padding:30px;background:#fffdf9;border:1px solid #e3d9ca;border-radius:16px;box-shadow:0 12px 44px #58432a08}
.staff-login-logo{display:block;width:116px;height:132px;object-fit:contain;margin:0 auto 10px}.staff-login .brand-slogan{text-align:center}.staff-login h1{text-align:center;font-size:23px;margin:22px 0}.staff-login .field{font-size:15px}.staff-forgot{margin:18px 0}.staff-login .language-control{display:flex;justify-content:center}
.staff-tools{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.staff-whatsapp{background:#e0efdf;color:#316344}.staff-bar{align-items:flex-start;padding-block:14px}.review-scope{margin:20px 0;padding:10px 14px;background:#eee8dc;border-radius:8px}
.sidebar button,.review-layout .filter{position:relative}.attention-dot{position:absolute;width:9px;height:9px;background:#d64545;border-radius:50%;top:4px;inset-inline-end:4px;box-shadow:0 0 0 3px #fffdf9;animation:attention-pulse 1.6s ease-in-out infinite}.sidebar .attention-dot{top:10px;inset-inline-end:8px}
@keyframes attention-pulse{0%,100%{opacity:1}50%{opacity:.25}}
.coordinate-fields{border:1px solid #e3d9ca;border-radius:9px;padding:14px;min-width:0}.coordinate-fields legend{padding:0 7px}.coordinate-input{display:flex;gap:6px}.coordinate-input input{min-width:0}.coordinate-input .btn{flex-shrink:0}.coordinate-fields .error:empty{display:none}.admin-main .toolbar label{display:flex;align-items:center;gap:9px}.admin-main .actions{margin-top:0}
@media(max-width:650px){.staff-bar{gap:10px}.staff-tools .inline{gap:7px;flex-wrap:wrap;justify-content:flex-end}.staff-tools .btn{font-size:12px;padding:6px}.coordinate-fields .form-grid{grid-template-columns:1fr}.staff-login-card{padding:24px}.review-layout .filters{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.attention-dot{animation:none}}

/* Temporary staff prototype entry. */
.staff-demo-login{margin-top:12px}

.intro-logo.intro-media{animation:none;aspect-ratio:1/1;width:clamp(153px,51vw,255px);max-height:38.25dvh}

.intro-tagline{width:clamp(153px,44.2vw,204px);height:auto;object-fit:contain}

.intro-tagline{transform-origin:center;animation:qerat-tagline-zoom 4s ease-in-out both;animation-play-state:paused}
.intro-screen.intro-playing .intro-tagline{animation-play-state:running}
@keyframes qerat-tagline-zoom{from{transform:scale(1)}to{transform:scale(1.035)}}
@media(prefers-reduced-motion:reduce){.intro-tagline{animation:none}}
