:root{color-scheme:dark;--ink:#eae9de;--accent:#f3ca80;--muted:#bdd0c5;--edge:#456354;--deep:#0b2320;--panel:#15332c;--page:#0e2823;font-family:system-ui,sans-serif;background:var(--page);color:var(--ink)}
*{box-sizing:border-box}body{margin:0}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}h1,h2,h3,p{margin-top:0}h1,h2{font-family:Georgia,serif;font-weight:normal;line-height:1.04;letter-spacing:-.025em}html[dir=rtl] h1,html[dir=rtl] h2{font-family:system-ui,sans-serif;letter-spacing:normal;line-height:1.3}h1{font-size:clamp(2.6rem,6vw,6rem);margin-bottom:1.3rem}h2{font-size:clamp(2rem,4vw,3.6rem)}p{color:var(--muted);line-height:1.65}footer,.top,.public-nav{padding:1rem clamp(1rem,4vw,4rem);border-bottom:1px solid var(--edge);background:var(--deep)}.top,.public-nav,.actions,nav,.preview-top{display:flex;gap:1.15rem;align-items:center;flex-wrap:wrap}.top{justify-content:space-between}.top nav a,.public-nav>a:not(.button){color:var(--muted);font-size:.9rem}.brand{font-weight:700;color:var(--ink);display:flex;align-items:center;gap:.65rem}.mark{color:var(--accent);font-size:1.35rem}.public-nav{justify-content:center}.button,button{border-radius:.55rem;display:inline-block;background:var(--accent);color:#12251e;border:1px solid transparent;padding:.68rem 1rem;font:inherit;font-weight:720;cursor:pointer}.outline{background:transparent;border-color:var(--edge);color:var(--ink)}.wrap{max-width:1230px;margin:auto;padding:clamp(1rem,5vw,4rem)}.overline{font-weight:700;font-size:.76rem;letter-spacing:.15em;color:var(--accent);margin-bottom:1rem}.hero{min-height:min(680px,85svh);display:grid;align-items:center;background:#102f2c linear-gradient(90deg,#071c19 0%,#0c221ed9 34%,#0b211b22 100%);background-image:linear-gradient(90deg,#071c19 0%,#0c221ed9 34%,#0b211b22 100%),url(mecca.webp);background-size:cover;background-position:center}.hero .wrap{width:100%}.hero h1{max-width:12ch}.hero p:not(.overline){max-width:40ch;font-size:1.13rem;color:#e0eee4}[dir=rtl] .hero{background-image:linear-gradient(270deg,#071c19 0%,#0c221ed9 34%,#0b211b22 100%),url(mecca.webp)}.showcase,.login{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1rem,4vw,4rem);align-items:center}.preview,.panel,.cards article,.metrics article{border:1px solid var(--edge);background:var(--panel);border-radius:1rem;padding:1rem}.preview{box-shadow:0 1rem 2.5rem #07181391;padding:1.4rem;transform:rotate(-1deg);transition:transform .3s}.preview:hover,.preview:focus-within{transform:none}.preview-top{justify-content:space-between;color:var(--accent);border-bottom:1px solid var(--edge);padding-bottom:.7rem;margin-bottom:1rem;font-size:.82rem}.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:.6rem}.metrics strong{display:block;font-size:1.45rem;margin-top:.35rem}.metrics span{color:var(--muted);font-size:.8rem}.bars{height:80px;display:flex;align-items:end;gap:.7rem;margin-top:1rem}.bars i{width:100%;background:#78a285;height:40%;border-radius:.3rem .3rem 0 0}.bars i:nth-child(3n){height:90%;background:var(--accent)}.bars i:nth-child(2n){height:66%}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;padding-top:0}.madina,.login-art{background:linear-gradient(0deg,#081a16ee,#10262055),url(mecca.webp) center/cover}.madina{min-height:320px;display:grid;align-items:end}.detail{min-height:65vh}.detail h1{max-width:17ch}.detail p{max-width:64ch}.login{gap:0;min-height:75vh}.login-art{min-height:75vh;display:grid;align-items:end;padding:clamp(1rem,5vw,4rem)}.login-art h1{font-size:clamp(2rem,4vw,4.7rem);max-width:16ch}.login-box{padding:2rem;display:grid;place-items:center}.login-box>div{width:min(100%,450px)}.login-box .fields{grid-template-columns:1fr}.error:empty{display:none}.error{color:#ffc2b5}.app{display:grid;grid-template-columns:minmax(150px,230px) minmax(0,1fr);min-height:78vh}.app aside{background:var(--deep);display:flex;flex-direction:column;gap:.5rem;padding:1rem}.app aside a,.app aside strong{padding:.6rem}.app aside a.current{background:var(--panel);color:var(--ink);border-radius:.5rem}.workspace{min-width:0;padding:clamp(1rem,3vw,3rem)}.workspace h1{font-size:clamp(2rem,4vw,3.5rem)}.panel{margin:1rem 0}.fields,.inline{display:flex;align-items:end;gap:.7rem;flex-wrap:wrap}.login-box .fields{display:grid}.fields label{flex:1 1 145px}.inline label{max-width:11rem}.fields button,.inline button{flex:none}label{display:grid;gap:.4rem;font-size:.85rem}label.check{display:flex;align-items:center;flex:none}input,select{padding:.65rem;background:#0a201b;color:var(--ink);border:1px solid var(--edge);border-radius:.4rem;font:inherit;width:100%;min-width:0}input[type=checkbox]{width:auto}.table{overflow:auto}table{width:100%;border-collapse:collapse;text-align:start}th,td{text-align:start;padding:.7rem;border-bottom:1px solid var(--edge);overflow-wrap:anywhere}td{white-space:pre-line}.table .inline{min-width:max-content}.table td:has(.inline label) .inline{min-width:0}footer{color:var(--muted);font-size:.85rem}
@media(max-width:700px){.hero{min-height:550px;background-position:62% center}.showcase,.cards,.login,.app{grid-template-columns:1fr}.login-art{min-height:300px}.app aside{flex-direction:row;flex-wrap:wrap;align-items:center}.app aside strong{width:100%}.top,.public-nav{gap:.7rem}.public-nav .button{display:none}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

@media (max-width:700px) {
  .public-nav .button { display:inline-block; }
  .preview { transform:none; }
}

.owner-dashboard { background: linear-gradient(110deg,#081a18f7,#112f2edc 66%,#081c1ce0), url("mecca.webp") center / cover fixed; }
.owner-dashboard aside { background: #092221f5; border-inline-end: 1px solid #386054; }
.owner-dashboard aside a { border-radius: .65rem; color: #e2ede5; border-inline-start: 3px solid #458680; }
.owner-dashboard aside a:nth-of-type(3n+2) { border-inline-start-color: #caa153; }
.owner-dashboard aside a:nth-of-type(3n) { border-inline-start-color: #7898bb; }
.owner-dashboard aside a:hover, .owner-dashboard aside a.current { background: #255951; text-decoration: none; }
.owner-dashboard aside a.current { border-inline-start-color: #ffcf72; color: #fff3d4; }
.owner-dashboard .workspace { min-width: 0; }
.owner-dashboard .workspace > h1 { color: #ffe6ae; }
.owner-dashboard .table { max-width: 100%; overflow: auto; }
.owner-dashboard a.button { display: inline-flex; margin-block: .2rem; }

.dashboard-page { margin:0; background:#f2f6f5; color:#142e3b; color-scheme:light; }
.dashboard-page > .top, .dashboard-page > footer { display:none; }
.dash-shell {
  --ink:#142e3b; --muted:#506872; --edge:#dbe5e4; --panel:#fff; --deep:#eef5f3;
  --accent:#086e63; --page:#f2f6f5;
  display:grid; grid-template-columns:250px minmax(0,1fr); min-height:100vh;
  background:var(--page);
  font:15px/1.55 "Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
[lang="ar"] .dash-shell { font-family:"Noto Sans Arabic",Tahoma,system-ui,sans-serif; line-height:1.75; }
.dash-shell.theme-blue { --accent:#1859a1; }
.dash-shell.theme-rose { --accent:#9b3d64; }
.dash-shell.theme-amber { --accent:#805000; }
.dash-shell h1,.dash-shell h2,.dash-shell h3 { font-family:inherit; line-height:1.15; letter-spacing:-.028em; color:#142e3b; }
[dir="rtl"] .dash-shell h1,[dir="rtl"] .dash-shell h2,[dir="rtl"] .dash-shell h3 { letter-spacing:0; line-height:1.35; }
.dash-shell aside { background:#0b2838; color:#adc4ce; padding:15px; display:flex; flex-direction:column; gap:9px; border:0; }
.dash-shell aside a { color:#adc4ce; border:0; margin:0; padding:6px 8px; font-weight:650; }
.dash-shell .dash-brand { color:#fff; display:flex; align-items:center; gap:9px; font-size:20px; text-decoration:none; white-space:nowrap; }
.dash-brand b { display:grid; place-items:center; background:#18b8a5; color:#082f38; border-radius:10px; width:38px; height:38px; }
.dash-account { display:grid; padding:11px; border:1px solid #355665; background:#153545; border-radius:12px; }
.dash-shell .dash-account strong { color:#fff; padding:0; }
.dash-account small { color:#adc4ce; }
.dash-menu { margin:0; }
.dash-menu > summary { color:#fff; cursor:pointer; display:none; }
.nav-group { display:grid; gap:3px; margin:8px 0 15px; }
.dash-shell .nav-group strong { padding:0 6px; font-size:.68rem; letter-spacing:.13em; text-transform:uppercase; }
.dash-shell .nav-group a { display:flex; align-items:center; gap:10px; border-radius:8px; }
.nav-group a span { font-size:17px; width:20px; text-align:center; }
.dash-shell aside a.current,.dash-shell aside a:hover { color:#fff; background:var(--accent); }
.dash-shell aside form { margin-top:auto; }
.dash-shell aside button { background:transparent; color:#d7e9ef; border-color:#355665; }
.dash-content { min-width:0; }
.dash-top { min-height:70px; background:#fff; border-bottom:1px solid var(--edge); display:flex; justify-content:space-between; align-items:center; gap:12px; padding:0 3vw; color:var(--muted); }
.dash-top strong { color:var(--ink); }
.dash-top i { padding:0 .5rem; }
.dash-top nav { display:flex; gap:.75rem; }
.dash-top nav a[aria-current] { font-weight:800; text-decoration:underline; }
.dash-shell .workspace { padding:28px 3vw; }
.dash-title { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.dash-shell .dash-title h1 { font-size:clamp(1.8rem,3vw,2.8rem); margin:0 0 .4rem; }
.dash-shell button,.dash-shell .button { background:var(--accent); color:#fff; border:1px solid transparent; }
.dash-shell .outline { background:#fff; color:var(--accent); border-color:var(--edge); }
.dash-shell input,.dash-shell select { background:#fff; color:var(--ink); border:1px solid var(--edge); }
.dash-shell .panel,.dash-shell .metrics article { background:#fff; color:var(--ink); border:1px solid var(--edge); border-radius:16px; box-shadow:0 8px 22px #17374306; }
.dash-shell .metrics { grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:16px 0; }
.dash-shell .metrics article { display:grid; align-content:start; gap:5px; padding:17px; }
.dash-shell .metrics article strong { font-size:2.15rem; }
.dash-shell .metric-icon { display:grid; place-items:center; background:#dff4ee; color:#146955; border-radius:10px; width:42px; height:42px; font-size:22px; }
.dash-shell .metrics article:nth-child(2) .metric-icon { background:#e9effb; color:#255cb2; }
.dash-shell .metrics article:nth-child(3) .metric-icon { background:#fff1df; color:#96531d; }
.dash-shell .metrics article:nth-child(4) .metric-icon { background:#f3eafa; color:#6c3f94; }
.dashboard-panels { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(0,1fr); gap:15px; align-items:start; }
.dash-filters { align-items:end; }
.dash-filters label { flex:0 1 170px; }
.client-record { border-block-end:1px solid var(--edge); padding:.75rem 0; }
.client-record summary { cursor:pointer; font-weight:720; }
.client-record h3 { margin-top:1rem; }
.dash-shell .table { overflow:auto; }
@media(max-width:1000px) {
  .dash-shell { grid-template-columns:205px minmax(0,1fr); }
  .dashboard-panels { grid-template-columns:1fr; gap:0; }
  .dash-shell .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:700px) {
  .dash-shell { grid-template-columns:1fr; }
  .dash-shell aside { flex-direction:column; align-items:stretch; }
  .dash-menu > summary { display:list-item; }
  .dash-shell .nav-group { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dash-shell .nav-group strong { grid-column:1/-1; }
  .dash-top,.dash-title { flex-wrap:wrap; padding-block:10px; }
}

.dash-shell .dash-title h1 { font-size:clamp(1.35rem,2vw,1.9rem); line-height:1.25; }
.dash-shell .panel h2 { font-size:1.2rem; }
.month-navigation { justify-content:space-between; margin-block-end:1rem; }
.month-navigation h2 { margin:0; }
.month-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); border:1px solid var(--edge); }
.month-grid > strong,.month-day { border-inline-end:1px solid var(--edge); border-block-end:1px solid var(--edge); padding:.45rem; }
.month-day { min-height:6rem; overflow-wrap:anywhere; }
.month-day ul { margin:.3rem 0; padding:0; list-style:none; font-size:.8rem; }
.month-day li { background:var(--deep); border-radius:4px; margin:.2rem 0; padding:.12rem .25rem; }
.month-day.outside { color:var(--muted); background:#f5f8f7; }
.month-day.today time { color:var(--accent); font-weight:800; }
.workspace-charts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.chart { background:white; border:1px solid var(--edge); border-radius:14px; padding:.8rem; color:#087468; }
.chart h3 { font-size:.9rem; margin:.1rem 0; }
.chart-1 { color:#245eb6; } .chart-2 { color:#98511c; } .chart-3 { color:#6d4699; }
.chart svg { width:100%; display:block; fill:currentColor; }
.chart svg polyline { fill:none; stroke:currentColor; stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
.chart-1 svg polyline { stroke-dasharray:7 3; }
.chart-2 svg polyline { stroke-dasharray:2 3; }
.chart-3 svg polyline { stroke-width:3.5; }
.chart-axis { fill:none; stroke:#deebe8; }
.print-sheet { max-width:56rem; margin:1.5rem auto; background:#fff; color:#102f37; padding:1.5rem; border-radius:14px; }
.print-sheet h1 { font-family:inherit; font-size:1.6rem; margin:.35rem 0; }
.print-sheet p { color:#3d5b60; } .print-sheet a { color:#07594f; }
.pass-card { display:grid; grid-template-columns:6rem minmax(0,1fr) 8rem; gap:1rem; align-items:center; border:1px solid #0c6d63; padding:1rem; border-radius:12px; }
.photo-frame { display:grid; place-items:center; min-height:6rem; border:1px dashed #397b72; color:#1b6b61; }
.qr svg { width:100%; display:block; }
.print-toolbar { margin-block:.8rem; }
@media(max-width:1000px) { .workspace-charts { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .month-day { min-height:4.5rem; padding:.18rem; } .month-day li { font-size:.68rem; padding:.08rem; } .pass-card { grid-template-columns:4.5rem minmax(0,1fr) 5rem; } }
@media print { body { background:white !important; color:#102f37 !important; } body > .top,body > footer,.print-toolbar { display:none !important; } .print-sheet { margin:0; padding:0; } }
.provider-answer { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; }

.dash-shell .button,.dash-shell button {
  min-height:36px; padding:.36rem .68rem; font-size:.84rem; line-height:1.35;
}
.dash-shell .inline { margin:.4rem 0; gap:.4rem; flex-wrap:wrap; }
.dash-shell .inline label { min-width:7rem; }
.dash-shell .panel { padding:clamp(.7rem,1.15vw,1.1rem); }
.dash-shell details summary { cursor:pointer; }
.lanyard-sheet { width:min(100%,76mm); margin:1rem auto; }
.lanyard-sheet .print-toolbar { text-align:center; }
.lanyard-card {
  page:lanyard; box-sizing:border-box; width:76mm; height:102mm; max-width:100%;
  display:flex; flex-direction:column; align-items:center; text-align:center;
  justify-content:space-between; gap:1mm; border:.35mm solid #14766a;
  background:#fff; color:#17323c; border-radius:3mm; padding:3mm 5mm 4mm;
  font-family:system-ui,sans-serif;
}
.lanyard-slot { width:12mm; height:2mm; border:.25mm solid #50908a; border-radius:1mm; flex:none; }
.lanyard-agency,.lanyard-visa { display:grid; gap:.3mm; max-width:100%; overflow-wrap:anywhere; }
.lanyard-agency strong { font-size:11pt; line-height:1.1; color:#0e6b61; }
.lanyard-agency span,.lanyard-visa span { font-size:8pt; }
.lanyard-card h1 { font:750 15pt/1.08 system-ui,sans-serif; margin:0; max-width:100%; overflow-wrap:anywhere; }
.lanyard-card .qr { width:34mm; height:34mm; flex:none; }
.lanyard-visa strong { font-size:10pt; }
@page lanyard { size:76mm 102mm; margin:0; }
@media print {
  .lanyard-sheet { margin:0; width:76mm; }
  .lanyard-card { max-width:none; border-radius:0; break-inside:avoid; print-color-adjust:exact; }
}
@media(max-width:700px) {
  .dash-shell aside { padding:9px; gap:6px; }
  .dash-menu>summary { display:list-item; padding:6px 10px; background:#153545; border-radius:7px; }
  .dash-shell .nav-group { gap:3px; margin:.45rem 0; }
  .dash-shell .nav-group a { padding:.3rem .38rem; font-size:.84rem; }
  .dash-shell aside .inline { margin:0; }
  .dash-shell .button,.dash-shell button { min-height:34px; padding:.3rem .52rem; }
}

.dash-logo,.branding-preview { width:38px; height:38px; border-radius:6px; object-fit:contain; background:#fff; }
.branding-preview { width:64px; height:64px; }
.lanyard-card { position:relative; isolation:isolate; overflow:hidden; }
.lanyard-card.badge-blue { border-color:#235da5; }
.lanyard-card.badge-rose { border-color:#a23b63; }
.lanyard-card.badge-amber { border-color:#9a611a; }
.lanyard-background { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-1; opacity:.22; }
.lanyard-images { display:grid; grid-template-columns:16mm minmax(0,1fr) 16mm; align-items:start; width:100%; }
.lanyard-images>div { height:16mm; display:grid; place-items:center; border:1px solid #d5e1df; border-radius:2mm; background:#fff; font-size:6pt; color:#345054; }
.lanyard-flag { display:block; width:10mm; margin:0 auto; border-radius:1px; }
.lanyard-logo,.lanyard-photo { width:100%; height:100%; overflow:hidden; border-radius:inherit; }
.lanyard-logo { object-fit:contain; }
.lanyard-photo { object-fit:cover; }
.lanyard-card .qr { width:29mm; height:29mm; }
.share-actions { display:flex; flex-wrap:wrap; gap:1rem; }
.report-dates { display:grid; gap:.4rem; padding-inline-start:1.3rem; }
@media print { .share-actions { display:none !important; } }

.dash-shell textarea { width:100%; min-height:5rem; resize:vertical; padding:.5rem; color:inherit; background:#fff; border:1px solid var(--edge); border-radius:.45rem; font:inherit; }
.dash-shell td { white-space:pre-wrap; overflow-wrap:anywhere; }

.nusovia-mark{width:2rem;height:2rem;object-fit:contain;flex:none;vertical-align:middle}.dash-brand .nusovia-mark{width:2.25rem;height:2.25rem}.feature-grid article{border-block-start:3px solid #b99152}.feature-grid p{line-height:1.65}
.product-previews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem;margin-block:2.5rem}.product-previews figure{margin:0;background:#f7f1e5;border-radius:1.125rem;overflow:hidden}.product-previews img{width:100%;height:auto;aspect-ratio:16/10;object-fit:contain;display:block}.product-previews figcaption{padding:.75rem 1rem;color:#102d2a;font-size:.95rem}@media(max-width:680px){.product-previews{grid-template-columns:1fr}}

.section-back{margin-block-end:1rem}
.record-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;padding:.8rem 0;border-block-end:1px solid #dce4e1}
.record-row:last-child{border:0}
.record-actions{display:flex;align-items:flex-start;flex-wrap:wrap;gap:.5rem;margin-block:.75rem}
.record-actions .inline{display:inline-flex;margin:0;gap:.4rem;align-items:center}
.record-actions :is(.button,button,summary){min-height:2.5rem;padding:.5rem .85rem;font-size:.875rem;border-radius:.55rem;line-height:1.35}
.record-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:.75rem;margin-block:1.5rem}
.record-grid>div{background:#f3f7f5;border-radius:.65rem;padding:.8rem 1rem;overflow-wrap:anywhere}
.record-grid dt{font-size:.85rem}.record-grid dd{margin:.25rem 0 0;font-weight:600}
.record-confirm summary{cursor:pointer;border:1px solid #d5dfda;background:white;color:#102d2a}
.record-confirm[open]{flex-basis:100%}.record-confirm[open] summary{margin-block-end:.55rem}
.note-record{padding:1rem 0;border-block-end:1px solid #dce4e1}
.note-record:last-child{border:0}.note-record h3{margin:0}.note-text{white-space:pre-wrap;overflow-wrap:anywhere}
.detail .feature-grid{margin-block:1.4rem}.detail .feature-grid h2{font-size:1.15rem}
.client-portrait{width:5rem;height:5rem;object-fit:cover;border-radius:.6rem;margin-block-end:.5rem}

.dash-sidebar-top { display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
.dash-menu { display:block; }
.dash-logout { margin-block-start:auto; }
.dash-toggle,.dash-close,.month-agenda { display:none; }
.dash-content,.dash-location { min-width:0; }
.dash-shell :is(th,td), .print-sheet :is(th,td) { overflow-wrap:normal; word-break:normal; }
.dash-shell td { white-space:pre-line; }
.table:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.dash-filters { gap:.65rem; }
.dash-filters :is(.button,button) { display:inline-grid; place-items:center; min-height:42px; }

@media(max-width:700px) {
  body>.top { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.5rem .75rem; }
  body>.top nav { grid-row:2; grid-column:1/-1; gap:.8rem; }
  body>.top>.button { grid-column:2; grid-row:1; padding:.5rem .65rem; text-align:center; }
  .public-nav { gap:.55rem .85rem; padding:.65rem 1rem; }
  .dash-shell .dash-top { position:sticky; inset-block-start:0; z-index:2; padding:.55rem .85rem;
    min-height:58px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.65rem; }
  .dash-shell.drawer-ready .dash-top { grid-template-columns:auto minmax(0,1fr) auto; }
  .dash-tenant { display:none; }
  .dash-location { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .dash-top nav { gap:.45rem; flex-wrap:nowrap; font-size:.8rem; }
  .drawer-ready .dash-toggle,.dash-drawer .dash-close { display:grid; place-items:center; min-width:44px; min-height:44px; font-size:1.2rem; }
  .dash-drawer { position:fixed; inset:0; margin:0; padding:0; border:0; background:transparent;
    width:100%; height:100%; max-width:none; max-height:none; overflow:hidden; }
  .dash-drawer::backdrop { background:#091b25a0; }
  body:has(.dash-drawer[open]) { overflow:hidden; }
  .dash-shell .dash-drawer .dash-sidebar { width:min(86vw,22rem); height:100%; padding:1rem;
    overflow-y:auto; overscroll-behavior:contain; flex-wrap:nowrap; gap:.75rem; box-shadow:0 0 2rem #07182270; }
  .dash-drawer .dash-menu { flex:1 0 auto; }
  .dash-drawer .nav-group { grid-template-columns:1fr; }
  .dash-drawer .nav-group a { min-height:44px; padding:.45rem .65rem; }
  .dash-drawer .dash-logout { border-block-start:1px solid #355665; padding-block-start:.75rem; }
  .dash-drawer .dash-logout button { min-height:44px; width:100%; text-align:start; }
  .dash-shell .workspace { padding:1rem .85rem; }
  .dash-title { gap:.65rem; padding:0; }
  .dash-shell .dash-primary { min-height:44px; display:inline-grid; place-items:center; }
  .dash-shell .dash-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
  .dash-filters label,.dash-filters input { min-width:0; }
  .dash-filters input { min-height:44px; padding:.4rem; }
  .dash-shell .metrics,.workspace-charts { gap:.65rem; }
  .dash-shell .metrics article { min-width:0; padding:.75rem; }
  .month-grid { display:none; }
  .month-agenda { display:grid; gap:.65rem; list-style:none; padding:0; margin:0; }
  .month-navigation { display:grid; grid-template-columns:1fr auto 1fr; gap:.45rem; }
  .month-navigation a { text-align:center; font-size:.82rem; padding:.55rem .25rem; border:1px solid var(--edge); border-radius:.55rem; }
  .agenda-card { display:grid; grid-template-columns:1fr auto; gap:.35rem .65rem; border:1px solid var(--edge);
    border-radius:.7rem; background:var(--deep); padding:.8rem; align-items:start; }
  .agenda-card time { grid-column:1/-1; color:var(--muted); font-size:.85rem; }
  .agenda-card strong { color:var(--ink); overflow-wrap:break-word; min-width:0; }
  .agenda-card span { font-size:.82rem; }
  .dash-shell .table,.print-sheet .table { max-width:100%; overflow-x:auto; }
  .dash-shell .table table,.print-sheet .table table { width:max-content; min-width:100%; }
  .dash-shell th,.print-sheet th { white-space:nowrap; }
  .dash-shell td,.print-sheet td { max-width:18rem; overflow-wrap:break-word; }
  .dash-shell td,.dash-shell th { padding:.65rem .75rem; }
}

.dash-mobile-brand { display:none; }
.dash-shell .note-fields { display:grid; grid-template-columns:minmax(0,1fr); align-items:start; gap:.85rem; }
.dash-shell .note-fields > button { justify-self:start; }
.dash-shell .workspace form > label { min-inline-size:0; }
.dash-shell .workspace form :is(input,select,textarea) { box-sizing:border-box; max-inline-size:100%; min-inline-size:0; }
.dash-shell .workspace form input[type="checkbox"] { inline-size:auto; }

@media(max-width:700px) {
  .dash-shell .dash-top,.dash-shell.drawer-ready .dash-top {
    direction:ltr; grid-template-columns:minmax(0,1fr) auto auto;
    gap:.5rem; padding:.55rem max(.85rem,env(safe-area-inset-right)) .55rem max(.85rem,env(safe-area-inset-left));
    min-height:62px;
  }
  .dash-top .dash-location { display:none; }
  .dash-top .dash-mobile-brand { display:flex; align-items:center; gap:.45rem; min-width:0;
    color:var(--ink); font-weight:800; text-decoration:none; }
  .dash-mobile-brand img { flex:none; border-radius:.55rem; }
  .dash-mobile-brand span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .dash-top nav { background:#eef5f3; border-radius:.65rem; padding:.15rem; gap:.12rem; }
  .dash-top nav a { display:grid; place-items:center; min-width:2rem; min-height:38px; border-radius:.5rem;
    font-weight:650; text-decoration:none; }
  .dash-top nav a[aria-current] { background:#fff; color:var(--accent); box-shadow:0 1px 3px #102d2a22; }
  .dash-top .dash-toggle { border-color:var(--edge); border-radius:.65rem; }
  .dash-drawer .dash-sidebar { margin-left:auto; margin-right:0; }

  .dash-shell .workspace :is(.fields,.inline):has(>label):not(.dash-filters) {
    display:grid; grid-template-columns:minmax(0,1fr); align-items:start; gap:.8rem;
  }
  .dash-shell .workspace form > label { max-inline-size:none; gap:.3rem; }
  .dash-shell .workspace form :is(input:not([type=checkbox],[type=hidden]),select,textarea) {
    display:block; inline-size:100%; font-size:16px; min-block-size:44px;
  }
  .dash-shell .workspace form input:is([type=date],[type=time],[type=datetime-local]) { -webkit-appearance:none; appearance:none; }
  .dash-shell .workspace form input::-webkit-date-and-time-value { text-align:start; min-height:1.5em; }
  .dash-shell .workspace :is(.fields,.inline):has(>label):not(.dash-filters) > button {
    justify-self:start; min-height:44px; padding-inline:.85rem;
  }
  .dash-shell .dash-filters > label { grid-column:1/-1; }
  .dash-shell .table td time { display:grid; }
}
.dashboard-panels > .panel { min-inline-size:0; }
@media(max-width:1000px) {
  .dashboard-panels { grid-template-columns:minmax(0,1fr); }
}

.dash-shell .dash-scenic {
  min-height:8.5rem; margin-block-end:1rem; padding:1.4rem clamp(1rem,3vw,2rem);
  border-radius:1rem; background-color:#102d2a;
  background-image:linear-gradient(90deg,#0b2523f5,#0b252368),url(mecca.webp);
  background-size:cover; background-position:var(--mecca-focus,50% 55%);
}
[dir=rtl] .dash-shell .dash-scenic { background-image:linear-gradient(270deg,#0b2523f5,#0b252368),url(mecca.webp); }
.dash-shell .dash-scenic h1 { color:#fff; margin:0; }
.dash-shell .dash-scenic .dash-primary { background:#f3d9aa; color:#102d2a; }
@media (min-width:701px) and (max-width:1024px) {
  .dash-shell .dash-scenic { --mecca-focus:56% 53%; }
  .hero { background-position:60% center; }
  .login-art,.madina { background-position:56% center; }
}
@media (max-width:700px) {
  .dash-shell .dash-scenic { --mecca-focus:64% 54%; }
  .dash-shell .dash-scenic { min-height:7rem; padding:.9rem 1rem;
    background-image:linear-gradient(0deg,#0b2523f0,#0b252366),url(mecca.webp); }
  [dir=rtl] .dash-shell .dash-scenic { background-image:linear-gradient(0deg,#0b2523f0,#0b252366),url(mecca.webp); }
  .login-art,.madina { background-position:61% center; }
}
@media print {
  .dash-shell .dash-scenic,.dash-shell[dir] .dash-scenic { background:none !important; }
  .dash-shell .dash-scenic h1 { color:#142e3b; }
}

/* Shared photograph behind the workspace panels. */
.dash-content {
  background-color:var(--page);
  background-image:linear-gradient(rgb(255 255 255 / 80%),rgb(255 255 255 / 80%)),url(mecca.webp);
  background-size:cover;
  background-position:50% center;
  background-repeat:no-repeat;
}
.dash-content .dash-top { background:#fffffff5; }
@media (min-width:701px) and (max-width:1000px) {
  .dash-content { background-position:58% center; }
}
@media(max-width:700px) {
  .dash-content { background-position:64% center; }
}
@media print { .dash-content { background:#fff; } }
