/* Daleel · styles. Tokens from brand/Directory Brand Book v0.7 (§5 colours, §6 type, §7 components). */
@font-face{font-family:'Noto Kufi Arabic';font-weight:700;font-display:swap;src:url(/fonts/noto-kufi-arabic-arabic-700-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-089F,U+08A0-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:'Noto Kufi Arabic';font-weight:800;font-display:swap;src:url(/fonts/noto-kufi-arabic-arabic-800-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-089F,U+08A0-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:'Noto Kufi Arabic';font-weight:700;font-display:swap;src:url(/fonts/noto-kufi-arabic-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Noto Kufi Arabic';font-weight:800;font-display:swap;src:url(/fonts/noto-kufi-arabic-latin-800-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Noto Sans Arabic';font-weight:400;font-display:swap;src:url(/fonts/noto-sans-arabic-arabic-400-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-089F,U+08A0-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:'Noto Sans Arabic';font-weight:500;font-display:swap;src:url(/fonts/noto-sans-arabic-arabic-500-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-089F,U+08A0-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:'Noto Sans Arabic';font-weight:600;font-display:swap;src:url(/fonts/noto-sans-arabic-arabic-600-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-089F,U+08A0-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:'Noto Sans Arabic';font-weight:400;font-display:swap;src:url(/fonts/noto-sans-arabic-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Noto Sans Arabic';font-weight:500;font-display:swap;src:url(/fonts/noto-sans-arabic-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Noto Sans Arabic';font-weight:600;font-display:swap;src:url(/fonts/noto-sans-arabic-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
  --sand:#F7F3EC; --ink:#1F2A24; --green:#1F5C45; --green-hover:#143D2E; --white:#FFFFFF;
  --soft:#EFE8DC; --chip:#F2EEE6; --tint:#DCEADF; --tint2:#E3EEE7; --rule:#E6DFD3; --dash:#DCD3C3;
  --muted:#4E5A52; --gold-line:#E9C98A; --gold-bg:#F7EDD8; --gold-text:#6A4300; --gold-star:#8A5A00; --gold-photo:#F3E6CC;
  --star:#C98A12; --danger:#8A2A1B; --danger-bg:#F6E3DE;
  --head:'Noto Kufi Arabic',system-ui,sans-serif; --body:'Noto Sans Arabic',system-ui,sans-serif;
  --r-card:24px; --r-big:28px; --wrap:1200px;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--sand);color:var(--ink);font-family:var(--body);font-size:1rem;line-height:1.7}
a{color:var(--green)} a:hover{color:var(--green-hover)}
:focus-visible{outline:2px solid var(--green);outline-offset:2px;border-radius:6px}
img{max-width:100%;display:block}
h1,h2,h3{font-family:var(--head);line-height:1.45;margin:0;letter-spacing:0}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 32px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.muted{color:var(--muted)}
.small{font-size:.8125rem}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 22px;border-radius:999px;border:0;font:inherit;font-weight:600;font-size:.95rem;text-decoration:none;cursor:pointer;background:var(--green);color:var(--sand)}
.btn:hover{background:var(--green-hover);color:var(--sand)}
.btn.light{background:var(--white);color:var(--ink);font-weight:500}
.btn.outline{background:var(--white);color:var(--green);border:1px solid var(--green)}
.btn.chipbtn{background:var(--chip);color:var(--ink);font-weight:500}
.btn.danger{background:var(--danger-bg);color:var(--danger)}
.btn[disabled]{background:#9AA79F;cursor:not-allowed}
.chip{display:inline-block;font-size:.8125rem;background:var(--chip);padding:5px 13px;border-radius:999px;line-height:1.6}
.chip.sm{font-size:.6875rem;padding:3px 9px}
.card{background:var(--white);border-radius:var(--r-card);padding:28px 32px}
@media (max-width:600px){.card{padding:22px 20px}.band{padding:28px 22px}.empty{padding:32px 20px}}
.stack{display:flex;flex-direction:column;gap:16px}
.row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.notice{background:var(--gold-bg);color:#5A3A00;border-radius:16px;padding:14px 18px;font-size:.9rem}
.ok{background:var(--tint2);color:var(--green);border-radius:16px;padding:14px 18px;font-size:.95rem;font-weight:600}
.preview-bar{background:var(--ink);color:var(--sand);font-size:.8rem;text-align:center;padding:6px 12px}

/* Header */
.site-head .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;padding-top:18px;padding-bottom:18px}
.logo{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--ink)}
.menu{display:flex;flex-wrap:wrap;gap:4px;background:var(--soft);padding:5px;border-radius:999px;font-size:.875rem}
.menu a{text-decoration:none;color:var(--ink);padding:8px 16px;border-radius:999px}
.menu a[aria-current="page"]{background:var(--green);color:var(--sand)}
.head-tools{display:flex;gap:14px;align-items:center;font-size:.875rem}
.head-tools a{color:var(--ink);text-decoration:none}
.head-tools .pill{background:var(--white);padding:10px 18px;border-radius:999px}
.menu-toggle{display:none}
@media (max-width:860px){
  .wrap{padding:0 18px}
  .menu-toggle{display:inline-flex;width:46px;height:46px;border-radius:50%;border:0;background:var(--white);align-items:center;justify-content:center;cursor:pointer}
  .site-head nav.menu,.site-head .head-tools{display:none;width:100%}
  .site-head.open nav.menu{display:flex;flex-direction:column;border-radius:20px}
  .site-head.open .head-tools{display:flex;justify-content:space-between}
}

/* Search bar */

/* Home */
.hero{text-align:center;padding:48px 0 32px;display:flex;flex-direction:column;align-items:center;gap:14px}
.hero h1{font-weight:800;font-size:2.75rem;max-width:1040px}
.hero p{font-size:1.125rem;color:var(--muted);max-width:660px;margin:0}
.hero form{max-width:860px;margin-top:10px}
@media (max-width:640px){.hero h1{font-size:1.85rem}.hero p{font-size:1rem}}
.tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.tile{background:var(--white);border-radius:20px;padding:20px;text-decoration:none;color:var(--ink);display:flex;flex-direction:column;gap:4px}
.tile b{font-family:var(--head);font-weight:700}
.tile span{font-size:.8125rem;color:var(--muted)}
@media (max-width:860px){.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
.section{padding:20px 0 36px}
.section-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:18px}
.section-head h2{font-weight:700;font-size:1.6rem}
.promises{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.promises div{background:var(--white);border-radius:20px;padding:22px}
.promises h3{font-size:1rem;font-weight:700}
.promises p{margin:6px 0 0;font-size:.9rem;color:var(--muted)}
@media (max-width:760px){.promises{grid-template-columns:1fr}}
.band{background:var(--green);color:var(--sand);border-radius:var(--r-big);padding:40px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px}
.band h2{font-weight:800;font-size:1.6rem}
.band p{margin:6px 0 0;max-width:640px}
.band .btn{background:var(--sand);color:var(--ink)}

/* Doctor cards */
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
@media (max-width:960px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.cards{grid-template-columns:1fr}}
.dcard{background:var(--white);border-radius:var(--r-card);padding:24px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;text-decoration:none;color:var(--ink)}
.dcard.featured{outline:2px solid var(--gold-line)}
.dcard .frame{width:132px;height:132px;border-radius:28px;background:var(--tint);border:4px solid var(--sand);overflow:hidden}
.dcard.featured .frame{background:var(--gold-photo)}
.dcard .frame img{width:100%;height:100%;object-fit:cover;object-position:center top}
.dcard .nm{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin-top:6px}
.dcard h3{font-weight:800;font-size:1.25rem}
.dcard .spec{margin:0;font-size:.95rem}
.dcard .place{margin:0;font-size:.875rem;color:var(--muted)}
.dcard .tags{display:flex;flex-wrap:wrap;justify-content:center;gap:5px}
.dcard .go{margin-top:4px;font-size:.875rem;font-weight:600;color:var(--green);text-decoration:underline}
.badge{display:inline-flex;align-items:center;gap:4px;font-size:.6875rem;font-weight:700;color:var(--gold-text);padding:3px 9px;border-radius:999px;background-color:var(--gold-bg)}
@keyframes featShimmer{0%{background-position:160% 0}22%{background-position:-60% 0}100%{background-position:-60% 0}}
.badge.shimmer{background-image:linear-gradient(105deg,rgba(255,255,255,0) 35%,rgba(255,255,255,.85) 50%,rgba(255,255,255,0) 65%);background-size:260% 100%;background-repeat:no-repeat;animation:featShimmer 6s var(--ease) .6s infinite}

/* Results */
.results-head h1{font-weight:800;font-size:1.9rem}
.results-head p{margin:6px 0 0;max-width:820px}
.filters{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin:18px 0}
.filters form{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.filters label{display:flex;align-items:center;gap:8px;background:var(--white);border-radius:999px;padding:0 16px;font-size:.875rem;min-height:46px}
.filters label{max-width:100%}
.filters select{font:inherit;font-size:.875rem;border:0;background:transparent;font-weight:600;color:var(--ink);min-width:0;max-width:min(58vw,320px);text-overflow:ellipsis}
.seg{display:flex;gap:4px;background:var(--soft);border-radius:999px;padding:4px}
.seg a{text-decoration:none;color:var(--ink);padding:9px 18px;border-radius:999px;font-size:.875rem}
.seg a[aria-current="true"]{background:var(--green);color:var(--sand)}
.empty{background:var(--white);border-radius:var(--r-card);padding:48px;text-align:center;display:flex;flex-direction:column;gap:10px;align-items:center}
.empty strong{font-family:var(--head);font-size:1.25rem}
.mapwrap{display:grid;grid-template-columns:380px minmax(0,1fr);gap:16px}
.mapwrap .list{display:flex;flex-direction:column;gap:10px}
.mini{background:var(--white);border-radius:20px;padding:12px;display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;align-items:center;text-decoration:none;color:var(--ink)}
.mini.featured{outline:2px solid var(--gold-line)}
.mini .ph{width:64px;height:64px;border-radius:16px;background:var(--tint);overflow:hidden}
.mini .ph img{width:100%;height:100%;object-fit:cover;object-position:center top}
#map{min-height:560px;border-radius:var(--r-card);background:#E9E3D6}
@media (max-width:860px){.mapwrap{grid-template-columns:1fr}#map{min-height:380px}}
details.faq{border-top:1px solid var(--rule);padding:14px 0}
details.faq summary{font-weight:600;cursor:pointer}
details.faq p{margin:8px 0 0;color:var(--muted)}

/* Profile */
.crumbs{font-size:.8125rem;color:var(--muted);display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 18px}
.crumbs a{color:var(--muted)}
.prof-top{background:var(--white);border-radius:var(--r-big);overflow:hidden;display:grid;grid-template-columns:minmax(0,340px) minmax(0,1fr)}
.prof-top .ph{background:var(--tint);display:flex;align-items:flex-end;justify-content:center;min-height:340px}
.prof-top .ph img{width:300px;height:auto;max-height:360px;object-fit:contain;object-position:bottom}
.prof-top .info{padding:36px 40px;display:flex;flex-direction:column;gap:14px}
.prof-top h1{font-weight:800;font-size:2.25rem}
.prof-top .sub{font-size:1.05rem;color:var(--muted);margin:0}
.iconbtn{width:48px;height:48px;border-radius:50%;background:var(--chip);display:inline-flex;align-items:center;justify-content:center;color:var(--ink)}
@media (max-width:760px){.prof-top{grid-template-columns:1fr}.prof-top .ph{min-height:0;padding-top:16px}.prof-top .ph img{width:220px;height:auto}.prof-top .info{padding:24px}.prof-top h1{font-size:1.7rem}}
.prof-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,380px);gap:24px;align-items:start;margin-top:24px}
/* One column (phone, tablet): both columns merge and sections follow their set order (owner, 10 Nov 2026). */
@media (max-width:960px){.prof-grid{display:flex;flex-direction:column;align-items:stretch;gap:20px}.prof-grid>.stack{display:contents}.prof-grid [data-o]{order:var(--o)}}
.card h2{font-weight:700;font-size:1.3rem;margin-bottom:12px}
dl.facts{margin:0;display:grid;grid-template-columns:160px minmax(0,1fr);gap:12px 20px;line-height:1.8}
dl.facts dt{color:var(--muted)} dl.facts dd{margin:0}
@media (max-width:600px){dl.facts{grid-template-columns:1fr;gap:2px}dl.facts dd{margin-bottom:10px}}
.bubbles{display:flex;flex-wrap:wrap;gap:8px;overflow:hidden;max-height:96px}
.bubbles.open{max-height:none}
.hosp{display:block;text-decoration:none;color:var(--ink);background:var(--sand);border-radius:18px;padding:16px;margin-bottom:10px}
.hosp strong{display:block}
.review{border-top:1px solid var(--rule);padding-top:14px;margin-top:14px}
.review .meta{display:flex;justify-content:space-between;font-size:.8125rem;color:var(--muted)}
.reply{background:var(--sand);border-radius:14px;padding:10px 14px;font-size:.9rem;margin-top:8px}
.stars{display:flex;gap:2px;direction:ltr;flex-direction:row-reverse;justify-content:flex-start}
[dir=ltr] .stars{justify-content:flex-end}
.stars input{position:absolute;opacity:0;width:1px;height:1px}
.stars label{cursor:pointer;width:40px;height:40px;display:flex;align-items:center;justify-content:center}
.stars svg{width:30px;height:30px;fill:none;stroke:var(--star);stroke-width:1.4}
.stars label:hover svg,.stars label:hover ~ label svg,.stars input:checked ~ label svg{fill:var(--star)}
form.stack label{display:flex;flex-direction:column;gap:6px;font-size:.9rem}
form.stack input[type=text],form.stack input[type=email],form.stack input[type=tel],form.stack input[type=url],form.stack input[type=number],form.stack select,form.stack textarea{font:inherit;font-size:1rem;padding:11px 14px;border:1px solid var(--rule);border-radius:12px;background:var(--white);color:var(--ink)}
.checkline{flex-direction:row!important;align-items:flex-start;gap:10px!important}
.checkline input{width:18px;height:18px;margin-top:5px;accent-color:var(--green)}
.inline-form{background:var(--sand);border-radius:20px;padding:20px}

/* Link page */
.lp{max-width:440px;margin:0 auto;padding:16px 20px 28px;display:flex;flex-direction:column;gap:10px}
.lp .ph{background:var(--tint);border-radius:28px;height:200px;display:flex;align-items:flex-end;justify-content:center;overflow:hidden}
.lp .ph img{height:190px;width:auto}
.lp h1{font-weight:800;font-size:1.45rem;text-align:center}
.lp .lnk{display:flex;align-items:center;justify-content:center;gap:8px;min-height:50px;border-radius:999px;background:var(--white);color:var(--ink);text-decoration:none;font-size:.95rem;position:relative;overflow:hidden}
.lp .lnk.daleel{background:var(--ink);color:var(--sand);font-weight:600;min-height:54px;gap:6px}
.lnk-logo{height:34px;width:auto;margin-block:-4px}
.lp .lnk.booking{background:var(--green);color:var(--sand);font-weight:600}
@keyframes dlShimmer{0%{background-position:150% 0}100%{background-position:-50% 0}}
.lp .lnk.daleel::after{content:"";position:absolute;inset:0;background-image:linear-gradient(105deg,rgba(247,243,236,0) 30%,rgba(247,243,236,.35) 50%,rgba(247,243,236,0) 70%);background-size:250% 100%;background-repeat:no-repeat;animation:dlShimmer 1.6s var(--ease) .4s 1 both;pointer-events:none}
.lp-foot{display:flex;justify-content:center;align-items:center;gap:6px;font-size:.75rem;color:var(--muted);margin-top:12px}
@media (prefers-reduced-motion:reduce){.badge.shimmer{animation:none;background-image:none}.lp .lnk.daleel::after{animation:none;display:none}}

/* Portals */
.portal{display:grid;grid-template-columns:240px minmax(0,1fr);gap:0;min-height:70vh}
.portal nav{padding:24px 16px;display:flex;flex-direction:column;gap:6px;border-inline-end:1px solid var(--rule)}
.portal nav a{text-decoration:none;color:var(--ink);padding:12px 16px;border-radius:14px}
.portal nav a[aria-current="page"]{background:var(--green);color:var(--sand)}
.portal .pmain{padding:28px 36px;display:flex;flex-direction:column;gap:18px;min-width:0}
@media (max-width:760px){.portal{grid-template-columns:1fr}.portal nav{flex-direction:row;flex-wrap:wrap;border:0;border-bottom:1px solid var(--rule)}.portal .pmain{padding:20px}}
.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media (max-width:860px){.two{grid-template-columns:1fr}}
.stat{background:var(--white);border-radius:20px;padding:20px}
.stat b{display:block;font-family:var(--head);font-weight:800;font-size:2rem}
table.queue{width:100%;border-collapse:separate;border-spacing:0 8px}
table.queue td,table.queue th{padding:12px 14px;text-align:start;font-size:.9rem}
table.queue tr.r td{background:var(--white)}
table.queue tr.r td:first-child{border-start-start-radius:14px;border-end-start-radius:14px}
table.queue tr.r td:last-child{border-start-end-radius:14px;border-end-end-radius:14px}
.tablewrap{overflow-x:auto}
.code-box{direction:ltr;letter-spacing:.4em;font-size:1.5rem;text-align:center}
.steps{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;list-style:none;padding:0;margin:24px 0 0}
.steps li{display:flex;align-items:center;gap:8px;font-size:.875rem;padding:8px 14px;border-radius:999px;background:var(--white);color:var(--muted)}
.steps li.cur{background:var(--green);color:var(--sand)}
.steps li.done{color:var(--green)}

/* Footer */
.site-foot{border-top:1px solid var(--rule);margin-top:24px}
.site-foot .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;padding-top:28px;padding-bottom:28px;font-size:.875rem;color:var(--muted)}
.site-foot nav{display:flex;flex-wrap:wrap;gap:20px}
.site-foot a{color:var(--muted)}
.prose{max-width:780px}
.prose h2{font-size:1.3rem;margin:24px 0 8px}
.prose p,.prose li{line-height:1.95}
.leaflet-container{font-family:var(--body)}
/* Profile v1.1: structured sections (owner, 10 Nov 2026) */
.card.sec h2{display:flex;align-items:center;gap:10px}
.card.sec h2::before{content:"";flex:0 0 4px;height:22px;border-radius:4px;background:var(--green)}
.kv{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px 18px;margin:0}
.kv dt{color:var(--muted);font-size:.875rem;padding-top:2px}
.kv dd{margin:0;font-weight:500}
.subchips{display:flex;flex-wrap:wrap;gap:8px}
.subchips .chip{background:var(--tint2);color:var(--green);font-weight:500}
.q{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-top:1px solid var(--rule)}
.q:first-of-type{border-top:0;padding-top:0}
.q .ic,.hrow .ic{flex:0 0 40px;height:40px;border-radius:12px;background:var(--tint2);display:flex;align-items:center;justify-content:center;color:var(--green)}
.q strong{display:block;font-weight:600;line-height:1.6}
.q .m,.hrow .m{display:block;font-size:.85rem;color:var(--muted);line-height:1.7}
.q .y{display:block;font-size:.8rem;color:var(--muted)}
.hrow{display:flex;gap:12px;align-items:center;background:var(--sand);border-radius:16px;padding:14px;margin-bottom:10px;text-decoration:none;color:var(--ink)}
.hrow:last-child{margin-bottom:0}
.hrow .ic{background:var(--white)}
.hrow strong{display:block;line-height:1.6}
.clamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:8;overflow:hidden}
.clamp.open{display:block;-webkit-line-clamp:none}
.linkbtn{border:0;background:none;color:var(--green);font:inherit;font-size:.9rem;font-weight:600;padding:8px 0 0;cursor:pointer;text-decoration:underline}
.btn.share{gap:6px}
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--sand);padding:10px 18px;border-radius:999px;font-size:.9rem;z-index:50}
@media (max-width:760px){.clamp{-webkit-line-clamp:4}.kv{grid-template-columns:1fr;gap:4px}.kv dd{margin-bottom:10px}.kv dd:last-child{margin-bottom:0}}
/* Portal pickers */
.opts{display:flex;flex-wrap:wrap;gap:8px}
.opt{display:inline-flex;cursor:pointer}
.opt input{position:absolute;opacity:0;width:1px;height:1px}
.opt span{padding:8px 14px;border-radius:999px;background:var(--chip);font-size:.875rem;color:var(--ink);border:1px solid transparent}
.opt input:checked+span{background:var(--green);color:var(--sand)}
.opt input:focus-visible+span{outline:2px solid var(--green);outline-offset:2px}
fieldset{border:0;padding:0;margin:0}
fieldset legend{font-size:.9rem;margin-bottom:8px}
.hint{font-size:.8rem;color:var(--muted);margin:0}
.item{display:flex;justify-content:space-between;align-items:center;gap:10px;background:var(--sand);border-radius:14px;padding:12px 14px;font-size:.9rem}
.item .m{display:block;font-size:.78rem;color:var(--muted)}
.pill{font-size:.72rem;padding:3px 10px;border-radius:999px;white-space:nowrap}
.pill.ok{background:var(--tint2);color:var(--green)}.pill.wait{background:var(--gold-bg);color:#6A4300}
.linkbtn.danger{color:var(--danger)}
/* Review rating: five faces (owner, 10 Nov 2026) */
.rate{background:var(--sand);border-radius:20px;padding:20px 18px 16px}
.rate legend{float:right;width:100%;font-family:'Noto Kufi Arabic',sans-serif;font-weight:700;font-size:1.15rem;margin:0 0 16px;color:var(--ink)}
[dir=ltr] .rate legend{float:left}
.faces{clear:both;display:flex;justify-content:space-between;gap:6px;direction:ltr}
.faces label{cursor:pointer;display:flex}
.faces input{position:absolute;opacity:0;width:1px;height:1px}
.face{width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#8FB5A3;transition:transform .12s,color .12s,background .12s}
.face svg{width:48px;height:48px}
.faces label:hover .face{color:var(--green)}
.faces input:checked+.face{color:var(--sand);background:var(--green);transform:scale(1.1)}
.faces input:focus-visible+.face{outline:2px solid var(--green);outline-offset:3px}
.faces-ends{display:flex;justify-content:space-between;direction:ltr;font-size:.85rem;color:var(--muted);margin-top:10px}
@media (prefers-reduced-motion:reduce){.face{transition:none}}
.prof-grid section,.prof-grid aside{min-width:0}
fieldset.rate{min-width:0}
@media (max-width:420px){.face{width:50px;height:50px}.face svg{width:44px;height:44px}.rate{padding:18px 12px 14px}}
.inline-form .rate{background:var(--white);padding:18px 14px 14px}
.faces{gap:2px}
.faces label{flex:1 1 0;justify-content:center;min-width:0}
.face{width:min(56px,15vw);height:min(56px,15vw)}
.face svg{width:86%;height:86%}
@media (max-width:420px){.inline-form{padding:16px 14px}.face{width:min(50px,14vw);height:min(50px,14vw)}.face svg{width:86%;height:86%}}
.prof-grid form.stack input,.prof-grid form.stack textarea,.prof-grid form.stack select{min-width:0;max-width:100%;width:100%;box-sizing:border-box}.prof-grid form.stack .checkline input,.prof-grid form.stack .faces input{width:auto}
.prof-grid form.stack input.sr,.prof-grid form.stack input[type=hidden]{width:1px}
.face,.inline-form .face{width:100%;max-width:56px;height:auto;aspect-ratio:1}
@media (max-width:420px){.inline-form .rate{padding:16px 8px 12px}}
/* Card-holder design (owner, 11 Nov 2026): 4px frame, thicker on the clip side, small tab clip; flat gold for «مميّز» */
.dcard{position:relative;border:4px solid #1F5C45;border-top-width:12px;border-radius:24px;outline:0!important;margin-top:12px;overflow:visible;box-sizing:border-box;width:100%}
.dcard::before{content:"";position:absolute;top:-22px;left:50%;transform:translateX(-50%);width:52px;height:14px;border-radius:10px 10px 0 0;background:#1F5C45}
.dcard::after{content:"";position:absolute;top:-17px;left:50%;transform:translateX(-50%);width:22px;height:6px;border-radius:999px;background:#F7F3EC}
.dcard.featured{border-color:#D4A64A;background-color:#fff}
.dcard.featured::before{background:#D4A64A}
.dcard .frame{border:0}
.badge.shimmer{animation:none;background-image:none}
.badge{background:#D4A64A;color:#3D2800}
.prof-top{position:relative;overflow:visible;border:4px solid #1F5C45;border-radius:30px}
.prof-top .ph{border-radius:0 26px 26px 0;overflow:hidden}
[dir=ltr] .prof-top .ph{border-radius:26px 0 0 26px}
@media (min-width:761px){
 [dir=rtl] .prof-top{border-right-width:12px}[dir=ltr] .prof-top{border-left-width:12px}
 .prof-top::before{content:"";position:absolute;top:50%;right:-26px;transform:translateY(-50%);width:14px;height:52px;border-radius:0 10px 10px 0;background:#1F5C45}
 [dir=ltr] .prof-top::before{right:auto;left:-26px;border-radius:10px 0 0 10px}
 .prof-top::after{content:"";position:absolute;top:50%;right:-21px;transform:translateY(-50%);width:6px;height:22px;border-radius:999px;background:#F7F3EC}
 [dir=ltr] .prof-top::after{right:auto;left:-21px}
}
@media (max-width:760px){
 .prof-top{border-top-width:12px;margin-top:20px}.prof-top .ph{border-radius:22px 22px 0 0}
 .prof-top::before{content:"";position:absolute;top:-26px;left:50%;transform:translateX(-50%);width:52px;height:14px;border-radius:10px 10px 0 0;background:#1F5C45}
 .prof-top::after{content:"";position:absolute;top:-21px;left:50%;transform:translateX(-50%);width:22px;height:6px;border-radius:999px;background:#F7F3EC}
}

.cards{row-gap:28px}
/* Link page as a card in a holder (owner, 11 Nov 2026) */
/* Initials instead of a photo (owner, 11 Nov 2026) */
.ini{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-family:'Noto Kufi Arabic',sans-serif;font-weight:800;color:var(--green);background:var(--tint);letter-spacing:.02em;line-height:1;user-select:none}
.ini.sm{font-size:2.6rem}.ini.xs{font-size:1.1rem}.ini.lg{font-size:5rem}
.prof-top .ph.noph{align-items:stretch;min-height:240px}
.lp .ph.noph{align-items:stretch}
@media (max-width:760px){.prof-top .ph.noph{min-height:200px}.ini.lg{font-size:4rem}}
/* Sign-up, 3 steps (owner, 11 Nov 2026) */
.jwrap{max-width:560px;padding-top:8px;padding-bottom:40px}
.jbar{display:flex;gap:6px;margin:8px 0 10px}.jbar i{flex:1;height:6px;border-radius:9px;background:var(--rule)}.jbar i.on{background:var(--green)}
.jstep{font-size:.85rem;color:var(--muted);margin:0}
.jh{font-weight:800;font-size:1.6rem;margin:4px 0 4px}
.jsub{margin:0 0 18px}
.jcard{padding:24px 22px;gap:16px}
.jcard label{display:flex;flex-direction:column;gap:6px}
.jcard .hint{display:inline}
.jfull{width:100%;justify-content:center}
.jcenter{text-align:center;margin:0}
.jphoto{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding-bottom:18px;border-bottom:1px solid var(--rule)}
.jphoto legend{float:right;width:100%;text-align:start;font-weight:600;margin-bottom:4px}
[dir=ltr] .jphoto legend{float:left}
.jav{clear:both;width:120px;height:120px;border-radius:30px;overflow:hidden;background:var(--tint)}
.jav .ini{font-size:2.4rem}.jav img{width:100%;height:100%;object-fit:cover;object-position:top}
.jseg{background:var(--chip);border-radius:999px;padding:4px;gap:4px;flex-wrap:nowrap;width:100%;max-width:320px}
.jseg .opt{flex:1}.jseg .opt span{display:block;width:100%;text-align:center;background:transparent}
.jseg .opt input:checked+span{background:var(--green);color:var(--sand)}
.jfile{display:flex;flex-direction:column;align-items:center;gap:6px}
.jfile input[type=file]{position:absolute;opacity:0;width:1px;height:1px}
.jfile input[type=file]:focus-visible+label{outline:2px solid var(--green);outline-offset:3px}
.jfile label.btn{min-height:40px;padding:6px 18px;cursor:pointer}
.jconsent{flex-direction:row!important;align-items:flex-start;gap:10px;font-size:.9rem;line-height:1.8}
.jconsent ul{margin:4px 0 0;padding-inline-start:18px;color:var(--muted);font-size:.85rem}
.jdone{text-align:center;align-items:center}.jdone h1{font-weight:800;font-size:1.5rem;margin:0}
.okc{width:64px;height:64px;border-radius:50%;background:var(--tint2);color:var(--green);display:flex;align-items:center;justify-content:center;font-size:1.8rem;margin:0 auto}
.jtl{list-style:none;padding:0;margin:4px 0 0;width:100%;text-align:start}.jtl li{display:flex;gap:10px;padding:10px 0;border-top:1px solid var(--rule)}.jtl b{color:var(--green);width:16px}
.jterms{font-size:.85rem;color:var(--muted);border-top:1px solid var(--rule);padding-top:10px}
.jterms summary{cursor:pointer;color:var(--green);font-weight:600}
.jterms h3{font-size:1rem;color:var(--ink);margin:14px 0 4px}.jterms h4{font-size:.9rem;color:var(--ink);margin:10px 0 2px}.jterms p{margin:0 0 6px;line-height:1.8}

/* ===== Motion and depth (owner, 11 Nov 2026): calm, quick, premium. Everything respects reduced motion. ===== */
:root{--ease:cubic-bezier(.76,0,.24,1);--ease-in:cubic-bezier(.76,0,.24,1);
  --sh-1:0 2px 4px rgba(31,42,36,.06),0 10px 28px rgba(31,42,36,.11);   /* stronger, owner 12 Nov 2026 */
  --sh-2:0 4px 10px rgba(31,42,36,.08),0 20px 44px rgba(31,42,36,.16)}
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:.22s;animation-timing-function:var(--ease)}

/* Page arrival */
main{animation:dlPageIn .45s var(--ease) both}
@keyframes dlPageIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* Doctor cards: faint separation, lift on hover, press on tap */
.dcard{box-shadow:var(--sh-1);transition:transform .35s var(--ease),box-shadow .35s var(--ease)}
.dcard:hover{transform:translateY(-4px);box-shadow:var(--sh-2)}
.dcard:active{transform:translateY(-1px) scale(.985);transition-duration:.12s}
.dcard .frame img,.dcard .frame .ini{transition:transform .6s var(--ease)}
.dcard:hover .frame img{transform:scale(1.045)}
.prof-top{box-shadow:var(--sh-1)}
.mini{transition:transform .3s var(--ease),box-shadow .3s var(--ease)}.mini:hover{transform:translateY(-2px);box-shadow:var(--sh-1)}

/* Buttons, chips and links: smooth colour, gentle press */
.btn,.chip,.opt span,.iconbtn,.menu a,.pill,.lnk,.linkbtn,.hrow,.head-tools a,.menu-toggle{transition:background-color .22s var(--ease),color .22s var(--ease),transform .16s var(--ease),box-shadow .25s var(--ease),border-color .22s var(--ease)}
.btn:active,.iconbtn:active,.lnk:active,.menu a:active,.opt:active span,.menu-toggle:active,.pill:active{transform:scale(.96)}
.btn:not(.outline):not(.chipbtn):not(.light):not(.danger):hover{box-shadow:0 8px 20px rgba(31,92,69,.22)}
.btn.chipbtn:hover,.iconbtn:hover{background:var(--soft)}
.btn.outline:hover{background:var(--tint2)}
.lp .lnk:hover{transform:translateY(-2px);box-shadow:var(--sh-1)}
.hrow:hover{background:var(--tint)}
.menu a:not([aria-current]):hover{background:var(--white)}

/* Form fields: soft focus glow */
form.stack input,form.stack select,form.stack textarea,.search input,.search select{transition:border-color .2s var(--ease),box-shadow .2s var(--ease),background-color .2s}
form.stack input:focus,form.stack select:focus,form.stack textarea:focus{border-color:var(--green);box-shadow:0 0 0 4px rgba(31,92,69,.12);outline:0}


/* Mobile menu drops in */
@media (max-width:860px){
  .site-head.open nav.menu{animation:dlDrop .3s var(--ease) both}
  .site-head.open .head-tools{animation:dlDrop .3s var(--ease) .05s both}
  .site-head.closing nav.menu,.site-head.closing .head-tools{animation:dlLift .18s var(--ease) both}
  .site-head.folded nav.menu,.site-head.folded .head-tools{animation:none;opacity:0}
}
@keyframes dlLift{from{opacity:1;transform:none}to{opacity:0;transform:translateY(-10px)}}
.menu-toggle svg{transition:transform .35s var(--ease)}.site-head.open .menu-toggle svg{transform:rotate(90deg)}
@keyframes dlDrop{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}

/* Drop-downs (FAQ, terms): rotating chevron; height animated by app.js */
details.faq>summary,details.jterms>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px}
details.faq>summary::-webkit-details-marker,details.jterms>summary::-webkit-details-marker{display:none}
details.faq>summary::after,details.jterms>summary::after{content:"";flex:0 0 9px;width:9px;height:9px;border-inline-end:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .35s var(--ease);opacity:.7}
details.faq[open]>summary::after,details.jterms[open]>summary::after{transform:rotate(225deg) translateY(-2px)}
details.faq>summary:hover{color:var(--green)}
details.dl-anim{overflow:hidden;transition:height .35s var(--ease)}

/* Reveal on scroll (only for things below the fold; set by app.js) */
.rv{opacity:0;transform:translateY(16px)}
.rv.in{opacity:1;transform:none;transition:opacity .6s var(--ease),transform .6s var(--ease)}

/* Expanding lists and bio */
.bubbles,.clamp{transition:max-height .45s var(--ease)}
.bubbles .chip{animation:none}
.bubbles.open .chip{animation:dlFade .4s var(--ease) both}
@keyframes dlFade{from{opacity:.0;transform:translateY(4px)}to{opacity:1;transform:none}}

/* Little moments */
.faces input:checked+.face{animation:dlPop .38s var(--ease)}
@keyframes dlPop{0%{transform:scale(.88)}60%{transform:scale(1.18)}100%{transform:scale(1.1)}}
.toast{animation:dlToast .35s var(--ease) both}
@keyframes dlToast{from{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translate(-50%,0)}}
.jbar i{position:relative;overflow:hidden;background:var(--rule)}
.jbar i.on{background:var(--rule)}
.jbar i.on::after{content:"";position:absolute;inset:0;background:var(--green);transform-origin:right;animation:dlFill .7s var(--ease) both}
[dir=ltr] .jbar i.on::after{transform-origin:left}
.jbar i.on:nth-child(2)::after{animation-delay:.08s}.jbar i.on:nth-child(3)::after{animation-delay:.16s}
@keyframes dlFill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.jav img,.jav .ini{animation:dlFade .35s var(--ease)}
.okc{animation:dlPop .5s var(--ease) both}
.notice{animation:dlDrop .3s var(--ease) both}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-delay:0s!important;transition-duration:.01ms!important}
  .rv{opacity:1;transform:none}
}
.clamp.dl-moving{display:block;-webkit-line-clamp:none}

/* Invalid contact field on the review form */
input[aria-invalid="true"]{border-color:#B3402F!important;box-shadow:0 0 0 3px rgba(179,64,47,.12)}

/* Sticky header: white, set apart from the sand page by a soft shadow */
html{scroll-padding-top:96px}
.site-head{position:sticky;top:0;z-index:60;background:var(--white);box-shadow:0 1px 0 rgba(31,42,36,.06),0 6px 20px rgba(60,45,20,.07)}
.site-head .wrap{padding-top:12px;padding-bottom:12px}
.site-head .head-tools .pill,.site-head .menu-toggle{background:var(--sand)}
.hero-logo{display:inline-flex;align-items:center;gap:.18em;white-space:nowrap;vertical-align:baseline;color:var(--green)}
.hero-wordmark{display:inline-block;height:1.75em;width:auto;vertical-align:-.62em;margin-inline-start:.08em}


/* Header logo: full «دليل» wordmark at the top; once the visitor scrolls past the first
   screen it folds into the compact mark. */
.site-head .logo{gap:0}
.site-head .logo{display:grid;align-items:center}
.logo-full,.logo-mark{grid-area:1/1;height:38px;width:auto;justify-self:start;transform-origin:center;
  transition:opacity .35s var(--ease),transform .45s var(--ease),visibility 0s linear 0s}
.logo-mark{opacity:0;visibility:hidden;transform:scale(.6) rotate(-90deg)}
.site-head.compact .logo-full{opacity:0;visibility:hidden;transform:scale(.85) translateX(6%)}
.site-head.compact .logo-mark{opacity:1;visibility:visible;transform:none}
.logo-full{z-index:2}.logo-mark{z-index:1}.site-head.compact .logo-full{z-index:1}.site-head.compact .logo-mark{z-index:2}
.site-head:not(.compact) .logo-mark,.site-head.compact .logo-full{transition:opacity .25s var(--ease),transform .4s var(--ease),visibility 0s linear .4s}
@media (prefers-reduced-motion:reduce){.logo-full,.logo-mark{transition:none}}
@media (min-width:861px){.site-head .logo{min-width:124px}}
.site-head.dl-moving{transition:max-height .35s var(--ease)}

/* Home heading logo animation (owner, 12 Nov 2026). The wordmark is three stacked layers cut from
   logo.png (letters, ring, small circle). The letters type in right to left, then the ring draws from its top
   end, round the left side, down to its bottom end, then the small circle appears. About 1.5 s in all.
   Without scripts, or with reduced motion, the three layers simply show the full logo. */
.hw{display:inline-grid;aspect-ratio:560/318;height:1.75em;width:auto}
.hw>img{grid-area:1/1;width:100%;height:100%}
.hw.hw-anim .hw-ink{clip-path:inset(0 0 0 var(--cut,100%));transition:clip-path .12s var(--ease)}
.hw.hw-anim .hw-ring{-webkit-mask-image:conic-gradient(from 40deg at 31.28% 49.75%,transparent calc(360deg - var(--a,0deg)),#000 calc(360deg - var(--a,0deg) + 3deg));
  mask-image:conic-gradient(from 40deg at 31.28% 49.75%,transparent calc(360deg - var(--a,0deg)),#000 calc(360deg - var(--a,0deg) + 3deg))}
.hw.hw-anim .hw-reg{opacity:0;transform:scale(.5);transform-origin:6.8% 16.6%;transition:opacity .25s var(--ease),transform .3s var(--ease)}
.hw.hw-anim.hw-done .hw-reg{opacity:1;transform:none}
.hw.hw-end .hw-ring{-webkit-mask-image:none;mask-image:none}

/* Map view: doctor cards appear only for the tapped hospital (owner, 12 Nov 2026). */
.maphint{margin:0;padding:18px 20px;border-radius:20px;background:var(--white);color:var(--muted);font-size:.95rem}
.mapsel{display:flex;flex-direction:column;gap:2px;padding:4px 4px 2px}
.mapsel-h{font-family:var(--head);font-weight:800;font-size:1.1rem;color:var(--ink);text-decoration:none}
.mapsel-h:hover{color:var(--green)}
.mini.in{animation:mapIn .42s var(--ease) both}
.mapsel.in{animation:mapIn .3s var(--ease) both}
@keyframes mapIn{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
.leaflet-marker-icon.sel{filter:hue-rotate(-75deg) saturate(1.4) brightness(.8);z-index:1000!important}
.leaflet-marker-icon{transition:filter .25s var(--ease)}
@media (max-width:860px){.mapwrap .list{order:2}.mapwrap .mapcol{order:1}}
@media (prefers-reduced-motion:reduce){.mini.in,.mapsel.in{animation:none}}

.filters{justify-content:flex-end}

/* Search card (owner, 12 Nov 2026), after the owner's reference: icon at the start of each row,
   small label over the value, dividers that start after the icon, generous padding. */
.scard{display:flex;flex-direction:column;background:var(--white);border-radius:24px;padding:6px 18px 16px;
  box-shadow:0 4px 12px rgba(31,42,36,.07),0 18px 44px rgba(31,42,36,.14);width:100%;max-width:860px;text-align:start;transition:box-shadow .3s var(--ease)}
.scard:focus-within{box-shadow:0 4px 12px rgba(31,92,69,.10),0 20px 48px rgba(31,92,69,.20)}
.sc-row{display:grid;grid-template-columns:28px minmax(0,1fr);column-gap:14px;align-items:center;min-height:66px;position:relative}
.sc-row::after{content:"";position:absolute;inset-inline-start:42px;inset-inline-end:0;bottom:0;height:1px;background:var(--rule)}
.sc-row.sc-last::after{display:none}
.sc-two{grid-template-columns:28px minmax(0,1fr) 28px minmax(0,1fr)}
.sc-ic{display:flex;justify-content:center;color:var(--muted)}
.sc-ic2{border-inline-start:1px solid var(--rule);height:40px;align-items:center;padding-inline-start:12px;width:auto}
.sc-f{display:flex;flex-direction:column;justify-content:center;min-width:0;padding:10px 0;position:relative}
.sc-l{font-size:.8rem;color:var(--muted);line-height:1.2}
.scard input,.scard select{border:0;outline:0;font:inherit;font-size:1.02rem;padding:4px 0;background:transparent;color:var(--ink);min-width:0;width:100%;
  -webkit-appearance:none;appearance:none;text-overflow:ellipsis}
.scard input::placeholder{color:var(--muted);opacity:.85}
.scard input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}
.sc-list{position:absolute;top:100%;inset-inline:0;z-index:40;margin:4px 0 0;padding:6px;list-style:none;background:var(--white);border-radius:16px;
  box-shadow:0 6px 16px rgba(31,42,36,.10),0 20px 44px rgba(31,42,36,.16);max-height:280px;overflow:auto;animation:scDrop .18s var(--ease) both}
.sc-list li{padding:10px 12px;border-radius:10px;cursor:pointer;display:flex;gap:10px;align-items:center}
.sc-list li .ic{color:var(--muted);flex:none}
.sc-list li small{color:var(--muted);margin-inline-start:auto;font-size:.78rem}
.sc-list li[aria-selected=true],.sc-list li:hover{background:var(--chip)}
.sc-list li.none{color:var(--muted);cursor:default;background:none}
@keyframes scDrop{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.sc-btns{display:flex;gap:10px;margin-top:12px}
.sc-btns .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px}
.sc-go{flex:1 1 100%;transition:flex-basis .3s var(--ease)}
.sc-reset{flex:0 0 0;overflow:hidden;white-space:nowrap;padding-inline:0;opacity:0;transition:flex-basis .3s var(--ease),opacity .25s var(--ease),padding .3s var(--ease)}
.sc-btns.has-reset .sc-go{flex:0 0 calc(70% - 5px)}
.sc-btns.has-reset .sc-reset{flex:0 0 calc(30% - 5px);opacity:1;padding-inline:12px}
.sc-reset[hidden]{display:inline-flex}
.btn.light{background:var(--chip);color:var(--ink)}
@media (min-width:861px){
  .scard{flex-direction:row;flex-wrap:wrap;align-items:stretch;padding:6px 10px 6px 18px;border-radius:28px;max-width:none}
  .sc-row{flex:1 1 0;min-height:70px}
  .sc-row::after{display:none}
  .sc-row+.sc-row{border-inline-start:1px solid var(--rule);padding-inline-start:14px}
  .sc-two{flex:2 1 0}
  .sc-btns{margin:0;align-self:center;flex:0 0 auto;padding-inline-start:10px}
  .sc-go{flex:0 0 auto;padding-inline:26px}
  .sc-btns.has-reset .sc-go{flex:0 0 auto}
  .sc-btns.has-reset .sc-reset{flex:0 0 auto}
  .sc-reset{max-width:0}
  .sc-btns.has-reset .sc-reset{max-width:180px}
}
@media (prefers-reduced-motion:reduce){.sc-go,.sc-reset,.sc-list{transition:none;animation:none}}
/* Results pages: the same space above the search card (under the top bar) as below it (to the heading). */
.results-page{padding-top:24px;padding-bottom:24px}
.results-page .crumbs{margin:0 0 16px}
.results-page>.scard{margin:0 auto 24px}
.results-head h1{margin:0}
[data-results]{transition:opacity .2s var(--ease)}
[data-results].loading{opacity:.45}
.mini,.card,.dcard{box-shadow:var(--sh-1)}

.live-in{animation:mapIn .4s var(--ease) both}
@media (prefers-reduced-motion:reduce){.live-in{animation:none}}
/* English heading logo (owner, 12 Nov 2026): 720×318 layers; letters type left to right; the ring draws
   clockwise from its top-left end (about 336°) round the right side to its bottom end. */
.hw.hw-en{aspect-ratio:720/318}
.hw.hw-en.hw-anim .hw-ink{clip-path:inset(0 var(--cut,100%) 0 0)}
.hw.hw-en.hw-anim .hw-ring{-webkit-mask-image:conic-gradient(from 320deg at 73.03% 49.65%,#000 0 var(--a,0deg),transparent calc(var(--a,0deg) + 3deg));
  mask-image:conic-gradient(from 320deg at 73.03% 49.65%,#000 0 var(--a,0deg),transparent calc(var(--a,0deg) + 3deg))}
.hw.hw-en.hw-anim .hw-reg{transform-origin:94.5% 19.4%}

/* Form hospital picker (sign-up), like the search card's: list under the field, «أضفه» at the bottom. */
.hcombo{position:relative}
.hcombo input[role=combobox]{width:100%;padding-inline-start:46px!important}   /* room for the hospital icon (beats the general form padding) */
.hcombo .hc-ic{position:absolute;inset-inline-start:14px;top:50%;transform:translateY(-50%);color:var(--muted);display:flex;pointer-events:none}
.hc-list{max-height:320px}
.hc-list li[aria-selected=true]{background:var(--soft)}
.hc-list li.kb{background:var(--chip)}
.hc-list .hc-add{border-top:1px solid var(--rule);margin-top:4px;padding-top:12px;color:var(--green);font-weight:600;border-radius:0 0 10px 10px;position:sticky;bottom:-6px;background:var(--white)}
.hc-list .hc-add .ic{color:var(--green)}
.hc-list .hc-add:hover{background:var(--soft)}


/* Work gallery on the doctor page (owner, 12 Nov 2026): photos and videos with the doctor's captions. */
.gal{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:4px}
@media (max-width:600px){.gal{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
.gal-it{all:unset;box-sizing:border-box;display:flex;flex-direction:column;gap:8px;cursor:pointer;min-width:0;border-radius:16px}
.gal-it:focus-visible{outline:3px solid var(--green);outline-offset:3px}
.gal-media{position:relative;display:block;aspect-ratio:1/1;border-radius:16px;overflow:hidden;background:var(--chip)}
.gal-media img,.gal-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s var(--ease)}
.gal-it:hover .gal-media img,.gal-it:hover .gal-media video{transform:scale(1.04)}
.gal-play{position:absolute;inset:auto auto 10px 10px;width:40px;height:40px;border-radius:50%;background:rgba(17,24,20,.62);color:#F7F3EC;display:flex;align-items:center;justify-content:center}
[dir=rtl] .gal-play{inset:auto 10px 10px auto}
.gal-cap{font-size:.9rem;line-height:1.55;color:var(--ink);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.gal-more{display:none}.gal.open .gal-more{display:flex;animation:dlRise .35s var(--ease) both}
@media (max-width:600px){.gal:not(.open) .gal-it:nth-child(3){display:none}.gal.open .gal-it:nth-child(3){animation:dlRise .35s var(--ease) both}}
@media (min-width:601px){.gal-fit3 ~ .gal-allbtn{display:none}}
.gal-box{border:0;padding:0;background:transparent;max-width:min(960px,94vw);width:100%;max-height:94vh;overflow:visible;color:#F7F3EC}
.gal-box::backdrop{background:rgba(10,14,12,.94);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.gal-box[open]{animation:dlRise .25s var(--ease) both}
.gal-stage{display:flex;justify-content:center;align-items:center}
.gal-stage img,.gal-stage video{max-width:100%;max-height:76vh;border-radius:16px;display:block;background:#000}
.gal-boxcap{margin:12px 4px 0;text-align:center;font-size:1rem;line-height:1.6}
.gal-ctl{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:10px}
.gal-ctl .iconbtn{background:rgba(247,243,236,.14);color:#F7F3EC}
.gal-ctl .iconbtn:hover{background:rgba(247,243,236,.24)}
.gal-count{color:rgba(247,243,236,.75)!important;min-width:48px;text-align:center}
.gal-ctl .ic.back{transform:scaleX(-1)}
[dir=rtl] .gal-ctl .ic{transform:scaleX(-1)}[dir=rtl] .gal-ctl .ic.back{transform:none}
[dir=rtl] .gal-ctl .gal-x .ic,.gal-ctl .gal-x .ic{transform:none}
.gal-x{margin-inline-start:8px}
@keyframes dlRise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.gal-it .gal-media img,.gal-box[open],.gal.open .gal-more{animation:none;transition:none}}

/* Portal: work gallery editor */
.gal-ed{display:grid;grid-template-columns:96px minmax(0,1fr);gap:14px;align-items:start;padding:14px 0;border-top:1px solid var(--rule)}
.gal-ed:first-child{border-top:0}
.gal-ed .gal-media{width:96px;border-radius:12px}
.gal-ed .row{gap:6px}

/* Doctor page: where they work (list + map) and the Instagram preview, top of the side column on desktop. */
.pmap{height:280px;border-radius:16px;margin-top:14px;background:#E9E3D6;z-index:0}
.pmap .leaflet-popup-content a{color:var(--green);font-weight:600}
.where-back{display:none}
.where-open{display:none}
.igframe{position:relative;width:100%;padding-bottom:calc(66.7% + 152px);border-radius:16px;overflow:hidden;background:var(--chip);margin-bottom:10px}
.igframe iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
/* Phones and narrow screens: the list and map leave the page flow; «أين يعمل» on the top card opens them as a
   map view under the card with everything else hidden. Back (button or browser) returns to the profile. */
@media (max-width:960px){
  .where-open{display:inline-flex}
  .prof-grid .where{display:none}
  body.map-mode .prof-grid>.stack>*,body.map-mode .prof-grid>aside>*,body.map-mode .prof-top~.notice,body.map-mode .site-foot,body.map-mode footer{display:none}
  body.map-mode .prof-grid .where{display:block;animation:dlSheet .38s var(--ease) both}
  body.map-mode .where-back{display:inline-flex;align-items:center;gap:8px;margin:0 0 12px;font-weight:600;color:var(--green)}
  body.map-mode .where .hrow{display:none}
  body.map-mode .pmap{height:calc(100vh - 300px);min-height:340px;margin-top:4px}
  body.map-mode .where-open{background:var(--green);color:#F7F3EC}
}
[dir=rtl] .where-back .ic.back{transform:none}
[dir=ltr] .where-back .ic.back{transform:scaleX(-1)}
@keyframes dlSheet{from{opacity:0;transform:translateY(40px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){body.map-mode .prof-grid .where{animation:none}}

/* Aura (owner, 12 Nov 2026): soft diffused colour at the top of the home and doctor pages, about 70% green and
   30% gold, gold on the right in both languages. It fades into the sand page before the content. The header turns
   to frosted glass with a strong blur so it stays clearly separate from what scrolls under it. */
.aura{position:absolute;inset:0 0 auto 0;height:620px;z-index:0;pointer-events:none;overflow:hidden;
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 45%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 45%,transparent 100%)}
.aura::before{content:"";position:absolute;inset:-80px;filter:blur(40px) saturate(1.1);
  background:radial-gradient(60% 72% at 6% 2%,#9ED4B4cc 0%,#9ED4B400 70%),radial-gradient(56% 62% at 34% -6%,#C4E5D0cc 0%,#C4E5D000 70%),radial-gradient(46% 44% at 58% 26%,#D6ECDDb3 0%,#D6ECDD00 70%),radial-gradient(34% 64% at 98% 4%,#F1D594f2 0%,#F1D59400 70%),radial-gradient(28% 44% at 88% 30%,#F7E6BCd9 0%,#F7E6BC00 70%)}
.aura::after{content:"";position:absolute;inset:0;background:radial-gradient(120% 60% at 50% 0%,rgba(255,255,255,.18),transparent 60%)}
body.has-aura{position:relative}
body.has-aura main,body.has-aura .site-foot{position:relative;z-index:1}
body.has-aura .site-head{background:rgba(255,255,255,.5);-webkit-backdrop-filter:blur(30px) saturate(1.6);backdrop-filter:blur(30px) saturate(1.6);
  border-bottom:1px solid rgba(255,255,255,.65);box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 1px 0 rgba(31,42,36,.07),0 10px 30px rgba(31,92,69,.12)}
body.has-aura .scard,body.has-aura .prof-top{background:rgba(255,255,255,.74);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
body.has-aura .prof-top .ph{background:rgba(220,234,223,.55)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){body.has-aura .site-head{background:rgba(255,255,255,.94)}body.has-aura .scard,body.has-aura .prof-top{background:#fff}}

/* ===== Corners APPROVED (owner, 12 Nov 2026): squarer, one scale for the whole site =====
   12px  cards, panels, maps, forms, notices        (--r-card)
   16px  the doctor's framed top card and big bands (--r-big)
   10px  buttons, fields, chips, pills, menus, photos, tiles (--r-ctl)
    8px  small icon wells and list items in menus    (--r-sm)
   Circles stay only where the shape is the meaning: rating faces, the gallery play badge, logo ring. */
:root{--r-card:12px;--r-big:16px;--r-ctl:10px;--r-sm:8px}
.btn,.chip,.badge,.filters label,.seg,.seg a,.lp .lnk,.steps li,.toast,.opt span,.pill,.jseg,.maphint,.iconbtn,.menu-toggle,.okc{border-radius:var(--r-ctl)}
.card,.dcard,.band,.empty,#map,.notice,.ok,.tile,.promises div,.mini,.stat,.inline-form,.rate,.scard,.lp,.jav,.hosp,.reply,.item,.hrow,.portal nav a{border-radius:var(--r-card)}
.dcard{border-radius:var(--r-card)}
.prof-top{border-radius:var(--r-big)}
.prof-top .ph{border-radius:0 var(--r-card) var(--r-card) 0}[dir=ltr] .prof-top .ph{border-radius:var(--r-card) 0 0 var(--r-card)}
@media (max-width:760px){.prof-top .ph,[dir=ltr] .prof-top .ph{border-radius:var(--r-card) var(--r-card) 0 0}}
@media (max-width:600px){.scard{border-radius:var(--r-card)}}
.dcard .frame,.lp .ph,.mini .ph,.gal-it,.gal-media,.gal-stage img,.gal-stage video,.pmap,.igframe,.sc-list,.gal-ed .gal-media{border-radius:var(--r-ctl)}
.sc-list li,.q .ic,.hrow .ic{border-radius:var(--r-sm)}
.hc-list .hc-add{border-radius:0 0 var(--r-sm) var(--r-sm)}
input:not([type=checkbox]):not([type=radio]),select,textarea{border-radius:var(--r-ctl)}

/* ===== Top bar on glass (owner, 12 Nov 2026) =====
   Menu, language link and doctor sign-in share one height (40px), one corner (10px) and one translucent white,
   so they sit on the frosted bar instead of looking like sand blocks pasted on it. */
.menu{background:rgba(255,255,255,.55);border:1px solid rgba(255,255,255,.75);box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 1px 2px rgba(31,42,36,.06);border-radius:var(--r-ctl);padding:4px;gap:2px;font-size:.9rem}
.menu a{display:inline-flex;align-items:center;min-height:36px;padding:0 16px;border-radius:var(--r-sm);color:var(--ink)}
.menu a:not([aria-current]):hover{background:rgba(255,255,255,.85)}
.menu a[aria-current="page"]{background:var(--green);color:#F7F3EC;box-shadow:0 4px 12px rgba(31,92,69,.25)}
.head-tools{gap:8px;font-size:.9rem}
.head-tools a{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:var(--r-ctl);color:var(--ink)}
.head-tools a:not(.pill):hover{background:rgba(255,255,255,.6)}
.site-head .head-tools .pill{font-size:.9rem;font-weight:600;padding:0 16px;min-height:40px;background:rgba(255,255,255,.7);border:1px solid rgba(31,92,69,.22);color:var(--green);box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.site-head .head-tools .pill:hover{background:#fff;border-color:rgba(31,92,69,.4)}
.site-head .menu-toggle{border-radius:var(--r-ctl);background:rgba(255,255,255,.6);border:1px solid rgba(255,255,255,.8);box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 1px 2px rgba(31,42,36,.06)}
@media (max-width:860px){
  .site-head.open nav.menu{border-radius:var(--r-card);background:rgba(255,255,255,.7)}
  .site-head.open nav.menu a{min-height:44px}
}
.site-head .head-tools .pill{border-radius:var(--r-ctl)}
/* Pages without the glow keep a white bar: the menu group gets a faint sand fill and edge so it still reads as a group. */
body:not(.has-aura) .menu{background:var(--sand);border-color:var(--rule);box-shadow:none}
body:not(.has-aura) .menu a:not([aria-current]):hover{background:#fff}
body:not(.has-aura) .site-head .menu-toggle{background:var(--sand);border-color:var(--rule)}

/* Link page: the glow behind the card, and «أين أعمل» under it (owner, 12 Nov 2026). */

/* ===== Link page v2 (owner, 12 Nov 2026) =====
   No card frame: photo, name, buttons, then «أين أعمل», sized to fit one phone screen (100dvh) without scrolling.
   The map is a short rectangle that gives up height first when space is tight. */
.lp-main{position:relative;z-index:1}
.lp{max-width:440px;margin:0 auto;box-sizing:border-box;height:100vh;height:100dvh;padding:14px 18px 10px;display:flex;flex-direction:column;gap:8px;overflow-y:auto;background:none;border:0;box-shadow:none}
.lp-head{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;flex:0 0 auto}
.lp .ph{width:clamp(76px,13dvh,112px);height:clamp(76px,13dvh,112px);border-radius:var(--r-card);background:var(--tint);display:flex;align-items:flex-end;justify-content:center;overflow:hidden;box-shadow:var(--sh-1);border:2px solid rgba(255,255,255,.9);margin-bottom:6px}
.lp .ph img{height:100%;width:auto}
.lp .ph.noph{align-items:center}
.lp h1{font-size:1.3rem;font-weight:800;margin:0;line-height:1.4}
.lp .sub{margin:0;color:var(--muted);font-size:.88rem}
.lp .ver{margin:0;font-size:.76rem;color:var(--green)}
.lp-links{display:flex;flex-direction:column;gap:8px;flex:0 0 auto}
.lp .lnk{min-height:46px;border-radius:var(--r-ctl);background:rgba(255,255,255,.82);box-shadow:var(--sh-1);border:1px solid rgba(255,255,255,.9);font-weight:600}
.lp .lnk.daleel{min-height:48px;background:var(--ink);border-color:var(--ink)}
.lp .lnk.booking{background:var(--green);border-color:var(--green)}
.lp-where{display:flex;flex-direction:column;gap:6px;flex:1 1 auto;min-height:0}
.lp-where h2{font-size:.95rem;font-weight:800;margin:4px 2px 0;display:flex;align-items:center;gap:8px}
.lp-where h2::before{content:"";width:4px;height:16px;border-radius:4px;background:var(--green)}
.lp-map{flex:1 1 170px;min-height:96px;max-height:190px;height:auto;margin:0;border-radius:var(--r-card);box-shadow:var(--sh-1);border:1px solid rgba(255,255,255,.9)}
.lp-places{display:flex;flex-direction:column;gap:6px;flex:0 0 auto}
.lp-place{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:10px;min-height:40px;padding:6px 12px;border-radius:var(--r-ctl);background:rgba(255,255,255,.82);color:var(--ink);font-weight:600;font-size:.86rem;box-shadow:var(--sh-1);cursor:pointer;text-decoration:none}
.lp-place .ic{color:var(--green);display:inline-flex;flex:0 0 auto}
.lp-place .nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.lp-place:hover,.lp-place.on{background:#fff}
.lp-place.on{box-shadow:0 0 0 2px var(--green),var(--sh-1)}
.lp-place:focus-visible{outline:3px solid var(--green);outline-offset:2px}
.lp-foot{margin-top:auto;padding-top:4px;flex:0 0 auto}
body:has(> .lp-main){height:100vh;height:100dvh;overflow:hidden}
.lp-map .leaflet-control-attribution{font-size:9px;line-height:1.4}
/* Link page top corners (owner, 12 Nov 2026): «د» mark on the reading-start side, share on the other. */
.lp-top{display:flex;justify-content:space-between;align-items:center;flex:0 0 auto;margin:2px 0 clamp(4px,2dvh,18px)}
.lp-tbtn{all:unset;box-sizing:border-box;width:46px;height:46px;border-radius:var(--r-ctl);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:var(--ink);background:rgba(255,255,255,.6);border:1px solid rgba(255,255,255,.85);box-shadow:inset 0 1px 0 rgba(255,255,255,.8),var(--sh-1);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);transition:background-color .22s var(--ease),transform .16s var(--ease)}
.lp-tbtn:hover{background:rgba(255,255,255,.9)}.lp-tbtn:active{transform:scale(.94)}
.lp-tbtn:focus-visible{outline:3px solid var(--green);outline-offset:2px}
.lp-tbtn img{width:26px;height:26px}
.lp-where{min-height:auto}
.lp .ph{width:clamp(64px,12dvh,112px);height:clamp(64px,12dvh,112px)}
@media (max-height:700px){.lp-tbtn{width:40px;height:40px}.lp .lnk{min-height:42px}.lp .lnk.daleel{min-height:44px}.lp-place{min-height:36px}.lp h1{font-size:1.15rem}}
/* The map takes whatever height is left (96–190px), so the page fits the screen. */
.lp-where{flex:1 1 auto;min-height:auto}
.lp-map{flex:1 1 0;height:auto;min-height:90px;max-height:190px}
@media (max-height:700px){.lp{gap:6px;padding-top:10px}.lp .ph{width:clamp(56px,10dvh,112px);height:clamp(56px,10dvh,112px)}.lp-top{margin-bottom:0}.lp .ver{display:none}}

/* ===== Inquiries «استفسارات» (owner, 13 Nov 2026) ===== */
.btn.inq-open svg{flex:0 0 auto}
.lp .lnk.lnk-inq{background:var(--green);color:#F7F3EC;border-color:var(--green)}
.inq-box{border:0;padding:0;width:min(480px,96vw);height:min(680px,88dvh);border-radius:var(--r-card);background:var(--sand);box-shadow:0 30px 80px rgba(10,20,15,.35);overflow:hidden;animation:dlRise .25s var(--ease) both}
.inq-box::backdrop{background:rgba(10,14,12,.55);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.inq-box.out{animation:dlLift .2s var(--ease) both}
@media (max-width:600px){.inq-box{width:100vw;max-width:100vw;height:92dvh;margin:auto 0 0;border-radius:var(--r-card) var(--r-card) 0 0;animation:dlSheet .3s var(--ease) both}}
.inq-main{min-height:100%}
.inq-page{padding-top:28px;padding-bottom:40px}
.inq{max-width:560px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.inq h1{font-size:1.4rem;font-weight:800;margin:0}.inq h2{font-size:1.1rem;font-weight:800;margin:0}
.inq-doc{display:flex;align-items:center;gap:10px}
.inq-doc img,.inq-doc .ini{width:44px;height:44px;border-radius:var(--r-ctl);object-fit:cover;object-position:top;background:var(--tint)}
.inq-doc strong{font-size:1rem}
.inq .emerg{color:#8A3B12;margin:0}
.thread{display:flex;flex-direction:column;gap:10px;max-height:min(52dvh,520px);overflow-y:auto;padding:8px 10px;margin:0 -10px}
.bub{max-width:84%;padding:10px 14px;border-radius:var(--r-card);box-shadow:var(--sh-1);display:flex;flex-direction:column;gap:4px}
.bub p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
.bub .t{font-size:.72rem;color:var(--muted)}
.bub.me{align-self:flex-end;background:var(--green);color:#F7F3EC;border-end-end-radius:4px}
.bub.me .t{color:rgba(247,243,236,.75)}
.bub.them{align-self:flex-start;background:#fff;border-end-start-radius:4px}
.reply-form textarea{min-height:84px}
.convs{display:flex;flex-direction:column;gap:8px}
.conv{display:grid;gap:2px;padding:12px 16px;border-radius:var(--r-card);background:#fff;color:var(--ink);text-decoration:none;box-shadow:var(--sh-1)}
.conv .c-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.conv .c-last{color:var(--muted);font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.conv .c-at{font-size:.75rem;color:var(--muted)}
.conv.unread{box-shadow:0 0 0 2px var(--green),var(--sh-1)}
.conv:hover{background:var(--soft)}
.nbadge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#C0392B;color:#fff;font-size:.72rem;font-weight:700;margin-inline-start:6px}

/* ===== Inquiries chat, round 2 (owner, 13 Nov 2026) =====
   Pop-up: the close button sits alone on a top bar; below it, the header card (doctor, title, actions),
   the chat (not enclosed), and the composer card. The doctor's portal uses the same three parts. */
.inq-box[open]{display:flex;flex-direction:column}
.inq-bar{display:flex;justify-content:flex-end;align-items:center;padding:10px 12px 0;flex:0 0 auto}
.inq-x{width:40px;height:40px;border-radius:var(--r-ctl);border:1px solid var(--rule);background:#fff;color:var(--ink);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.inq-x:hover{background:var(--soft)}
.inq-box iframe{flex:1 1 auto;width:100%;min-height:0;border:0;display:block}
.inq.embed{padding:10px 14px 14px;box-sizing:border-box}
.inq.chat{display:flex;flex-direction:column;gap:10px;height:calc(100dvh - 120px);min-height:460px}
.inq.embed.chat{height:100dvh;min-height:0}
.portal .inq.chat{max-width:none;height:calc(100dvh - 180px);min-height:420px}
.inq.chat .thread{flex:1 1 auto;max-height:none;min-height:0;margin:0 -4px;padding:6px 4px}
.ihead.card{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 14px;padding:12px 14px;flex:0 0 auto;box-shadow:var(--sh-1)}
.ih-who{display:flex;align-items:center;gap:10px;min-width:0;flex:1 1 180px}
.ih-who img,.ih-ini{width:46px;height:46px;border-radius:var(--r-ctl);object-fit:cover;object-position:top;background:var(--tint);flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;font-weight:800;color:var(--green)}
.ih-txt{display:flex;flex-direction:column;min-width:0}
.ih-txt strong{font-size:1rem;line-height:1.4}
.ih-sub{font-size:.82rem;color:var(--muted);line-height:1.5}
.ih-acts{display:flex;flex-wrap:wrap;gap:6px}
.ih-btn{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border-radius:var(--r-ctl);background:var(--chip);color:var(--ink);font-size:.85rem;font-weight:600;cursor:pointer;text-decoration:none}
.ih-btn:hover{background:var(--soft)}.ih-btn.danger{background:#FBE9E7;color:#8A2B1E}
.ih-btn:focus-visible{outline:3px solid var(--green);outline-offset:2px}
.iform.card{padding:18px}
.sys{align-self:center;max-width:88%;text-align:center;margin:6px 0;padding:8px 14px;border-radius:var(--r-ctl);background:rgba(255,255,255,.7);color:var(--muted);font-size:.85rem;line-height:1.6}
.sys.bad{background:#FBE9E7;color:#8A2B1E}
.bub .quote{display:flex;flex-direction:column;gap:1px;padding:6px 10px;border-radius:var(--r-sm);text-decoration:none;font-size:.8rem;line-height:1.5;border-inline-start:3px solid currentColor}
.bub.me .quote{background:rgba(255,255,255,.14);color:#F7F3EC}
.bub.them .quote{background:var(--chip);color:var(--green)}
.bub .quote span{color:inherit;opacity:.85;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:240px}
.att-img img{display:block;max-width:240px;max-height:260px;width:100%;object-fit:cover;border-radius:var(--r-sm)}
.att{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:var(--r-sm);text-decoration:none;color:inherit}
.bub.me .att{background:rgba(255,255,255,.14)}.bub.them .att{background:var(--chip)}
.att span{display:flex;flex-direction:column;min-width:0;font-weight:600;font-size:.88rem}
.att small{font-weight:400;opacity:.8;font-size:.75rem}
.bub .meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;font-size:.72rem}
.bub .meta .t{color:var(--muted)}.bub.me .meta .t{color:rgba(247,243,236,.75)}
.bub .seen{display:inline-flex;align-items:center;gap:3px;color:rgba(247,243,236,.9)}
.mact{all:unset;cursor:pointer;font-weight:700;font-size:.72rem;text-decoration:underline;text-underline-offset:2px}
.bub.me .mact{color:#F7F3EC}.bub.them .mact{color:var(--green)}
.mact.danger{color:#FFD2C8}.bub.them .mact.danger{color:#8A2B1E}
.mact.armed{background:#C0392B;color:#fff!important;text-decoration:none;padding:1px 8px;border-radius:6px}
.mdel{display:inline}
.composer.card{padding:10px;flex:0 0 auto;display:flex;flex-direction:column;gap:8px;box-shadow:var(--sh-1)}
.composer.done{padding:16px;align-items:center;text-align:center}.composer.done p{margin:0}
.crow{display:flex;align-items:flex-end;gap:8px}
.crow textarea{flex:1 1 auto;min-height:44px;max-height:160px;resize:none;padding:10px 12px;line-height:1.6;font:inherit;letter-spacing:normal}
.cbtn{flex:0 0 auto;width:44px;height:44px;border-radius:var(--r-ctl);border:0;background:var(--chip);color:var(--ink);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.cbtn:hover{background:var(--soft)}
.cbtn:focus-within{outline:3px solid var(--green);outline-offset:2px}
.cbtn.send{background:var(--green);color:#F7F3EC}
[dir=rtl] .cbtn.send svg{transform:scaleX(-1)}
.rq{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:var(--r-sm);background:var(--chip);border-inline-start:3px solid var(--green);font-size:.82rem}
.rq[hidden],.fchip[hidden],.fchip-err[hidden]{display:none}
.rq div{display:flex;flex-direction:column;min-width:0;flex:1 1 auto}
.rq b{color:var(--green)}.rq span{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rq-x,.fchip button{all:unset;cursor:pointer;display:inline-flex;padding:4px;border-radius:6px;color:var(--muted)}
.fchip{display:flex;align-items:center;gap:6px;padding:6px 10px;border-radius:var(--r-sm);background:var(--tint2);color:var(--green);font-size:.82rem;font-weight:600}
.fchip span{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fchip-err{margin:0;font-size:.82rem;color:#8A2B1E}
.composer .emerg{margin:0;padding:0 4px;font-size:.78rem}

/* Chat round 3 (owner, 13 Nov 2026): one-row header; reply and delete in a «⋮» menu on each bubble. */
.ihead.card{flex-wrap:nowrap}
.ih-who{flex:1 1 0;min-width:0}
.ih-txt strong,.ih-sub{overflow-wrap:anywhere}
.ih-acts{flex:0 0 auto;flex-wrap:nowrap;align-items:center}
.ih-icon{width:38px;min-height:38px;padding:0;justify-content:center}
.ih-back{flex:0 0 auto}
[dir=ltr] .ic.back{transform:scaleX(-1)}
.mmenu{position:relative}
.mmenu>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;color:inherit;opacity:.75}
.mmenu>summary::-webkit-details-marker{display:none}
.mmenu>summary:hover,.mmenu[open]>summary{opacity:1;background:rgba(127,127,127,.16)}
.mmenu>summary:focus-visible{outline:3px solid var(--green);outline-offset:1px}
.mpop{position:absolute;top:calc(100% + 4px);inset-inline-end:0;z-index:20;min-width:150px;padding:6px;border-radius:var(--r-card);background:#fff;color:var(--ink);box-shadow:0 12px 32px rgba(20,30,25,.18),0 0 0 1px var(--rule);display:flex;flex-direction:column;gap:2px;animation:dlRise .16s var(--ease) both}
.mpop form{margin:0}
.mi{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:0 12px;border-radius:8px;cursor:pointer;font-size:.9rem;font-weight:600;color:var(--ink);text-decoration:none}
.mi:hover,.mi:focus-visible{background:var(--chip)}
.mi.danger{color:#8A2B1E}.mi.danger:hover{background:#FBE9E7}
.mi.armed{background:#C0392B!important;color:#fff!important}
.bub.has-menu{position:relative;padding-inline-end:38px}
.bmenu{position:absolute;top:4px;inset-inline-end:4px}
.hmenu>summary{width:38px;height:38px;background:var(--chip);opacity:1;color:var(--ink)}

/* ===== Doctor portal navigation (owner, 13 Nov 2026) =====
   Grouped sections. Desktop: side column. Phones (≤860px): hidden; the header's ☰ opens a side drawer instead. */
.portal nav.pnav{gap:14px}
.pgroup{display:flex;flex-direction:column;gap:2px}
.pg-h{font-size:.74rem;font-weight:700;color:var(--muted);padding:0 14px 4px;letter-spacing:.02em}
.pnav a{display:flex;align-items:center;justify-content:space-between;gap:8px;text-decoration:none;color:var(--ink);padding:10px 14px;border-radius:var(--r-ctl);font-weight:500}
.pnav a:hover{background:rgba(255,255,255,.7)}
.pnav a[aria-current="page"]{background:var(--green);color:#F7F3EC}
.pnav a[aria-current="page"] .nbadge{background:#fff;color:#C0392B}
.pg-out{margin-top:auto;padding-top:8px}
@media (max-width:860px){.portal{grid-template-columns:1fr}.portal nav.pside{display:none}.portal .pmain{padding:18px 16px}}
.drawer-scrim{position:fixed;inset:0;z-index:90;background:rgba(10,14,12,.45);opacity:0;transition:opacity .25s var(--ease)}
.drawer{position:fixed;top:0;bottom:0;inset-inline-end:0;z-index:91;width:min(320px,86vw);background:var(--sand);box-shadow:0 0 50px rgba(10,20,15,.24);display:flex;flex-direction:column;overflow-y:auto;transform:translateX(-105%);transition:transform .3s var(--ease)}
[dir=ltr] .drawer{transform:translateX(105%)}
.drawer.open{transform:none}.drawer-scrim.open{opacity:1}
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--rule);position:sticky;top:0;background:var(--sand)}
.drawer-logo{height:34px;width:auto}
.drawer-x{width:40px;height:40px;border-radius:var(--r-ctl);border:1px solid var(--rule);background:#fff;color:var(--ink);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.drawer .pnav{display:flex;flex-direction:column;gap:16px;padding:16px 12px 24px;flex:1 1 auto}
.drawer .pnav a{padding:12px 14px;font-size:1rem}
@media (prefers-reduced-motion:reduce){.drawer,.drawer-scrim{transition:none}}

/* A conversation fills the screen like a messaging app: no page scroll, only the chat scrolls. */
body.chat-page{height:100dvh;overflow:hidden}
body.chat-page .site-foot{display:none}
body.chat-page .portal{min-height:0}
body.chat-page .portal .pmain{padding-top:14px;padding-bottom:14px}
.portal.is-chat .inq.chat{height:calc(100dvh - 72px - 28px);min-height:0}
@media (max-width:860px){.portal.is-chat .pmain{padding:10px 10px 10px}.portal.is-chat .inq.chat{height:calc(100dvh - 72px - 20px)}}
body.chat-page .inq-page{padding-top:12px;padding-bottom:12px}
body.chat-page .inq-page .inq.chat{height:calc(100dvh - 72px - 24px);min-height:0}

/* Portal «بطاقتك» editor (owner, 13 Nov 2026): live card preview beside the fields; preview on top on phones. */
.ce{display:grid;grid-template-columns:300px minmax(0,1fr);gap:28px;align-items:start;margin-top:6px}
@media (max-width:900px){.ce{grid-template-columns:1fr;gap:18px}}
.ce-prev{display:flex;flex-direction:column;align-items:center;gap:10px;position:sticky;top:90px}
@media (max-width:900px){.ce-prev{position:static}}
.ce-card{max-width:300px;cursor:default}
.ce-card:hover{transform:none}
.ce-photo{position:relative;cursor:pointer;display:flex;align-items:center;justify-content:center}
.ce-photo:focus-within{outline:3px solid var(--green);outline-offset:3px}
.ce-cam{position:absolute;bottom:6px;inset-inline-end:6px;width:32px;height:32px;border-radius:var(--r-ctl);background:rgba(17,24,20,.62);color:#F7F3EC;display:flex;align-items:center;justify-content:center}
.ce-photo img[hidden],.ce-photo .ini[hidden]{display:none}
.ce-book{min-height:40px;padding:6px 18px;font-size:.9rem;margin-top:4px;animation:dlRise .25s var(--ease) both}
.ce-book[hidden]{display:none}
.ce-card .tags .chip{animation:dlRise .2s var(--ease) both}
.ce-tip{text-align:center;margin:0}
.ce-tags{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.ce-tags legend{font-weight:600;margin-bottom:6px;padding:0}
.ce-tag{display:grid;grid-template-columns:28px minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:center}
.ce-n{width:28px;height:28px;border-radius:8px;background:var(--chip);display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700;color:var(--muted)}
/* The card editor's fields use the same field style as every other form. */
.ce label{display:flex;flex-direction:column;gap:6px;font-size:.9rem}
.ce input[type=text],.ce input[type=url],.ce textarea{font:inherit;font-size:1rem;padding:11px 14px;border:1px solid var(--rule);border-radius:var(--r-ctl);background:var(--white);color:var(--ink);min-width:0;width:100%;box-sizing:border-box;transition:border-color .2s var(--ease),box-shadow .2s var(--ease)}
.ce input:focus,.ce textarea:focus{border-color:var(--green);box-shadow:0 0 0 4px rgba(31,92,69,.12);outline:0}
.ce .ce-tag input{padding:9px 12px;font-size:.95rem}
.ce label.checkline{flex-direction:row}
.portal .inq.chat{margin:0;width:100%}
@media (max-width:860px){.portal.is-chat .inq.chat{height:calc(100dvh - 72px - 26px)}}
.ih-who img,.ih-ini{width:42px;height:42px}
.ih-txt strong{font-size:.95rem}

/* ---- Round 1 fixes (build 1.3, 13 Nov 2026) ---- */
/* R1-11: one filled green button per screen. With «استفسارات» shown, «احجز موعد» is the outlined second choice. */
.lp .lnk.booking.alt{background:rgba(255,255,255,.88);color:var(--green);border:1.5px solid var(--green)}
/* R1-16: workplace names wrap to two lines instead of being cut. */
.lp-place .nm{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.3}
/* R1-05, R1-06 (Q3: 44px minimum), R1-07: short screens keep the verified line and 44px targets; the space comes
   from a smaller photo, tighter gaps and a shorter map. */
@media (max-height:700px){
  .lp .ver{display:block;font-size:.72rem}
  .lp-tbtn{width:44px;height:44px}
  .lp .lnk,.lp .lnk.daleel{min-height:44px}
  .lp-place{min-height:44px;padding:4px 12px}
  .lp-map{min-height:72px}
  .lp-where h2{margin-top:0}
}
/* Short phones (≤700px tall): photo beside the name, so the 44px targets and the map still fit one screen. */
@media (max-height:700px){
  .lp-top{margin:0}
  .lp-head{display:grid;grid-template-columns:auto 1fr;column-gap:12px;row-gap:0;text-align:start;align-items:center;justify-items:start}
  .lp-head .ph{grid-row:1 / span 3;width:60px;height:60px;margin:0}
  .lp h1{font-size:1.1rem;line-height:1.35}
  .lp .sub{font-size:.82rem}
}
/* Very short phones (e.g. 320×568): links after «ملفي في دليل» and «استفسارات» sit two per row. */
@media (max-height:600px){
  .lp{gap:5px;padding:8px 14px 6px}
  .lp-head .ph{width:52px;height:52px}
  .lp h1{font-size:1.02rem}
  .lp-links{display:grid;grid-template-columns:1fr 1fr;gap:6px}
  .lp-links .lnk.daleel,.lp-links .lnk-inq,.lp-links .lnk.booking{grid-column:1 / -1}
  .lp-links .lnk{font-size:.86rem;padding-inline:6px}
  .lp-map{min-height:56px}
  .lp-places{gap:5px}
  .lp-foot{padding-top:0;margin-top:2px}
}
.lp-place{min-height:44px} /* R1-06: 44px minimum everywhere (Q3) */
/* R1-03: breadcrumbs stay on one line, so the Arabic text font arriving can't wrap them and push the page down
   (CLS). The current page's name gives way with "…" on narrow screens; the links stay whole. */
.crumbs{flex-wrap:nowrap;white-space:nowrap;overflow:hidden;min-height:1.6em;align-items:center}
.crumbs > *{flex:0 0 auto}
.crumbs > span:last-child{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.crumbs > a{flex:0 1 auto;min-width:3.5em;overflow:hidden;text-overflow:ellipsis}
/* Link page «أين أعمل» as a dropdown (owner, 13 Nov 2026). Closed: one 48px row. Open: map + workplaces as before. */
details.lp-where{flex:0 0 auto;display:flex;flex-direction:column;gap:6px;min-height:0}
details.lp-where[open]{flex:1 1 auto}
.lp-where > summary{list-style:none;display:flex;align-items:center;gap:10px;min-height:48px;padding:6px 14px;border-radius:var(--r-ctl);background:rgba(255,255,255,.82);border:1px solid rgba(255,255,255,.9);box-shadow:var(--sh-1);cursor:pointer;color:var(--ink);-webkit-tap-highlight-color:transparent;transition:background-color .2s var(--ease)}
.lp-where > summary::-webkit-details-marker{display:none}
.lp-where > summary:hover{background:#fff}
.lp-where > summary:focus-visible{outline:3px solid var(--green);outline-offset:2px}
.lp-where > summary h2{margin:0;font-size:.95rem;font-weight:800;flex:1 1 auto}
.lp-where > summary h2::before{display:none}
.lpw-ic{color:var(--green);display:inline-flex}
.lpw-n{min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:var(--tint);color:var(--green);font-size:.8rem;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.lpw-chev{color:var(--muted);transition:transform .25s var(--ease);flex:0 0 auto}
details.lp-where[open] .lpw-chev{transform:rotate(180deg)}
.lpw-body{display:flex;flex-direction:column;gap:6px;flex:1 1 auto;min-height:0}
details.lp-where[open] .lpw-body{animation:lpwIn .28s var(--ease) both}
@keyframes lpwIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.lpw-chev{transition:none}details.lp-where[open] .lpw-body{animation:none}}
/* The open dropdown's content box takes the leftover height, so the map grows to fill the screen (as before). */
details.lp-where::details-content{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
details.lp-where[open] .lp-map{flex:1 1 0;min-height:110px;max-height:240px}
@media (max-height:700px){details.lp-where[open] .lp-map{min-height:72px}}
@media (max-height:600px){details.lp-where[open] .lp-map{min-height:60px}}
details.lp-where[open]{min-height:auto;flex:1 0 auto}
/* R1-07 (round 2): on the link page the glow layer never reaches past the screen, so nothing can scroll into empty space. */
body:has(> .lp-main) > .aura{height:min(620px,100vh);height:min(620px,100dvh)}
html:has(body > .lp-main){overflow:hidden}
/* «رسائلي»: doctors and patients in two parts; «+» starts a chat with a doctor (owner, 13 Nov 2026). */
.newchat{width:44px;height:44px;background:var(--green);color:var(--sand);border-color:var(--green)}
.newchat:hover{background:#174A37}
.msec{gap:10px}
.msec-h{font-size:1rem;font-weight:800;margin:6px 0 0;display:flex;align-items:center;gap:8px}
.msec-h::before{content:"";width:4px;height:16px;border-radius:4px;background:var(--green)}
.conv.pconv,.conv.dconv{display:flex;align-items:center;gap:12px;min-height:56px}
.conv.pconv strong{flex:1 1 auto}
.conv .nbadge{margin-inline-start:auto;flex:0 0 auto}
.dc-ph{width:44px;height:44px;border-radius:var(--r-ctl);object-fit:cover;object-position:top;flex:0 0 auto;background:var(--tint)}
.dc-ini{display:inline-flex;align-items:center;justify-content:center;color:var(--green);font-weight:800}
.dc-txt{display:flex;flex-direction:column;min-width:0;flex:1 1 auto}
.dc-txt strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dc-sub{font-size:.82rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dc-list li{display:flex;align-items:center;gap:10px}
.dc-list .dc-ph{width:36px;height:36px}
.dc-list .dc-none{color:var(--muted);cursor:default}
.dcombo input[role=combobox]{min-height:48px}
/* Inquiries on/off (owner, 13 Nov 2026): a small checkbox at the bottom that saves on change; the details fold away. */
.inq-switch{display:flex;flex-direction:column;gap:4px;padding:10px 14px;border-radius:var(--r-card);background:rgba(255,255,255,.6);border:1px solid var(--rule);font-size:.85rem}
.inq-switch .checkline{font-size:.85rem;gap:8px;align-items:center}
.inq-switch .checkline input{width:18px;height:18px}
.inq-switch .more summary{cursor:pointer;color:var(--green);font-size:.8rem;font-weight:600;list-style:none;display:inline-flex;align-items:center;gap:4px;min-height:32px}
.inq-switch .more summary::-webkit-details-marker{display:none}
.inq-switch .more summary::after{content:"▾";font-size:.7rem}
.inq-switch .more[open] summary::after{content:"▴"}
.inq-switch .more p{margin:2px 0 6px;color:var(--muted);font-size:.8rem;line-height:1.6}
/* Reviews (owner, 13 Nov 2026): under one «تقييمات المراجعين» heading, the reviews in their own box on top,
   and the "write a review" form in a separate box below. No extra «اكتب تقييمًا» button. */
#reviews{display:flex;flex-direction:column;gap:14px}
.rv-list{background:#fff;border:1px solid var(--rule);border-radius:var(--r-card);padding:4px 18px 16px}
.rv-list .review:first-child{border-top:0;margin-top:0}
.rv-list > p.muted{padding-top:12px}
.rv-write{margin:0}
#reviews > .ok,#reviews > .notice{margin:0}
/* «رسائلي» rows (owner, 13 Nov 2026): name (doctors: photo and title too), last message, time; unread count at the row's end. */
.conv.mrow{display:flex;align-items:center;gap:12px}
.conv.mrow .dc-txt{gap:1px}
.conv.mrow .c-last{color:var(--muted);font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.conv.mrow .c-at{font-size:.75rem;color:var(--muted)}
.conv.mrow .nbadge{min-width:24px;height:24px;font-size:.8rem}
/* Visitor account in the header and drawer (owner, 13 Nov 2026). */
.head-tools .acct-btn{display:inline-flex;align-items:center;gap:6px}
.pd-acct{padding:16px 16px 4px;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid var(--rule)}
.pd-out,.pd-in{display:flex;flex-direction:column;gap:8px}
.pd-out .btn{justify-content:center;gap:8px}
.pd-hi{margin:0;font-weight:800}
.pd-in a{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:var(--r-ctl);background:#fff;color:var(--ink);text-decoration:none;font-weight:600}
.pd-in a .ic{color:var(--green)}
.pd-in a .nbadge{margin-inline-start:auto}
.pd-in form{margin-top:4px}
.myrv .c-top{display:flex;justify-content:space-between;gap:8px;align-items:center}
.myrv .c-top a{color:var(--ink);text-decoration:none}
.rv-stars{color:#B8892E;letter-spacing:1px;font-size:.9rem}
.myrv{display:flex;flex-direction:column;gap:2px}
/* «رسائلي» (owner, 13 Nov 2026): doctors and patients each in their own box; the time sits at the top corner
   (left in Arabic, right in English), the unread count under it at the end of the last-message line. */
.msec{background:rgba(255,255,255,.55);border:1px solid var(--rule);border-radius:var(--r-big);padding:14px 14px 16px}
.msec .msec-h{margin:0 2px 2px}
.msec .convs{gap:8px}
.conv.mrow{align-items:flex-start;padding:12px 14px}
.conv.mrow .dc-txt{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 auto}
.mr-top,.mr-bot{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.mr-top strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mr-top .c-at{flex:0 0 auto;font-size:.75rem;color:var(--muted)}
.mr-bot .c-last{flex:1 1 auto;min-width:0}
.mr-bot .nbadge,.mr-bot .pill{flex:0 0 auto;margin:0}

/* ===== Link page templates (owner, 13 Nov 2026): hero · glass · classic, each with a dark scheme ===== */
.lnk-logo.lg-dark{display:none;height:26px}
.lp .ver{display:inline-flex;align-items:center;gap:5px}
.ver-ic{width:16px;height:16px;border-radius:50%;background:var(--green);color:#fff;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.lp-hero{position:relative;display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:start;flex:0 0 auto;margin-top:2px}
.lp-hero .ph{width:clamp(104px,15dvh,132px);height:clamp(104px,15dvh,132px);margin:0}
.lp-hero.is-cut{grid-template-columns:min(46%,200px) 1fr;margin-top:-58px;margin-inline-end:0}
.lph-cut{position:relative;height:clamp(250px,40dvh,350px);margin-inline-start:-18px}
.lph-cut::before{content:"";position:absolute;inset:44px 4px 0 10px;border-radius:120px 120px 20px 20px;background:linear-gradient(160deg,rgba(255,255,255,.78),rgba(255,255,255,.12));border:1px solid rgba(255,255,255,.9)}
.lp-glass .lph-cut::before{display:none}
.lph-cut img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:bottom;-webkit-mask-image:linear-gradient(#000 80%,transparent);mask-image:linear-gradient(#000 80%,transparent)}
.lph-info{display:flex;flex-direction:column;gap:3px;min-width:0;padding-top:4px}
.lp-hero.is-cut .lph-info{padding-top:62px}
.lph-info h1{font-size:1.28rem;line-height:1.35;margin:4px 0 0}
.lph-info .ver{align-self:flex-start;background:rgba(31,92,69,.1);padding:3px 9px 3px 7px;border-radius:999px;font-size:.7rem}
.lph-facts{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:7px}
.lph-facts li,.lp-tiles li{display:flex;gap:8px;align-items:flex-start}
.hl-ic{color:var(--green);display:inline-flex;flex:0 0 auto;margin-top:2px}
.hl-t{display:flex;flex-direction:column;min-width:0}
.hl-t b{font-weight:600;font-size:.8rem;line-height:1.4}
.hl-t small{font-size:.7rem;color:var(--muted);line-height:1.4}
.lp-tiles{list-style:none;margin:0;padding:10px;display:grid;grid-template-columns:1fr 1fr;gap:8px;border-radius:var(--r-big);background:rgba(255,255,255,.6);border:1px solid rgba(255,255,255,.95);-webkit-backdrop-filter:blur(18px) saturate(1.4);backdrop-filter:blur(18px) saturate(1.4);box-shadow:0 8px 30px rgba(31,42,36,.1);flex:0 0 auto}
.lp-tiles li{background:rgba(255,255,255,.78);border-radius:var(--r-ctl);padding:8px 10px;align-items:center}
.lp-tiles .hl-ic{width:30px;height:30px;border-radius:9px;background:var(--tint);align-items:center;justify-content:center;margin:0}
.lp-tiles li:only-child{grid-column:1/-1}
.lp-glass.is-cut{margin-bottom:-26px}
.lp-glass.is-cut + .lp-tiles{position:relative;z-index:2}
body.lp-frame .lp a,body.lp-frame .lp button{pointer-events:none}
/* Dark scheme */
body.lp-dark{background:#10251C;color:#F7F3EC}
body.lp-dark .aura::before{background:radial-gradient(55% 60% at 10% 0%,#2E7A5Acc,#2E7A5A00 70%),radial-gradient(40% 55% at 95% 8%,#D9B26Acc,#D9B26A00 70%),radial-gradient(40% 40% at 70% 40%,#1F5C45b3,#1F5C4500 70%)}
body.lp-dark .lp h1{color:#fff}
body.lp-dark .lp .sub,body.lp-dark .hl-t small,body.lp-dark .lp-foot{color:#B9CCC1}
body.lp-dark .lp .ver{color:#E9C98A}
body.lp-dark .lph-info .ver{background:rgba(233,201,138,.16)}
body.lp-dark .ver-ic{background:#E9C98A;color:#10251C}
body.lp-dark .hl-ic{color:#E9C98A}
body.lp-dark .lph-facts li{border-bottom:1px solid rgba(233,201,138,.22);padding-bottom:6px}
body.lp-dark .lph-cut::before{background:none;border:1.5px solid rgba(233,201,138,.7);border-radius:50%;inset:30px 0 auto 6px;aspect-ratio:1;box-shadow:0 0 60px rgba(217,178,106,.3)}
body.lp-dark .lp .ph{border-color:rgba(233,201,138,.7);background:#1F5C45}
body.lp-dark .lp-tiles{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12)}
body.lp-dark .lp-tiles li{background:rgba(255,255,255,.07)}
body.lp-dark .lp-tiles .hl-ic{background:rgba(233,201,138,.14)}
body.lp-dark .lp .lnk,body.lp-dark .lp-place,body.lp-dark .lp-where > summary{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.14);color:#F7F3EC;box-shadow:none}
body.lp-dark .lp .lnk .ic,body.lp-dark .lp-place .ic,body.lp-dark .lpw-ic{color:#E9C98A}
body.lp-dark .lp .lnk.daleel{background:#F7F3EC;color:#1F2A24;border-color:#F7F3EC}
body.lp-dark .lnk-logo.lg-light{display:none} body.lp-dark .lnk-logo.lg-dark{display:inline}
body.lp-dark .lp .lnk.lnk-inq{background:linear-gradient(180deg,#E9C98A,#C9A15A);color:#10251C;border-color:#C9A15A}
body.lp-dark .lp .lnk.booking.alt{background:transparent;color:#E9C98A;border-color:#E9C98A}
body.lp-dark .lp-tbtn{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.18);color:#F7F3EC}
body.lp-dark .lpw-n{background:rgba(233,201,138,.2);color:#E9C98A}
body.lp-dark .lpw-chev{color:#B9CCC1}
/* Portal: link page look (owner, 13 Nov 2026) */
.lpcfg-grid{display:grid;grid-template-columns:1fr auto;gap:22px;align-items:start}
@media (max-width:900px){.lpcfg-grid{grid-template-columns:1fr}.lpcfg-prev{order:-1}}
.lp-tpls{display:flex;flex-wrap:wrap;gap:8px}
.lp-hls{display:flex;flex-direction:column;gap:6px}
.lp-hls .checkline{align-items:flex-start;font-size:.9rem}
.lp-hls small{font-size:.78rem}
.lpcfg-prev{display:flex;flex-direction:column;gap:6px;align-items:center;position:sticky;top:90px}
.lp-phone{width:300px;height:650px;border-radius:34px;padding:10px;background:#1F2A24;box-shadow:var(--sh-2)}
.lp-phone iframe{width:390px;height:844px;border:0;border-radius:26px;transform:scale(.7179);transform-origin:top left;background:#F7F3EC}
[dir=rtl] .lp-phone iframe{transform-origin:top right}
.lp-phone{overflow:hidden}
/* Highlights stay short on the link page: 2 lines for the fact, 1 for where/when. */
.hl-t b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hl-t small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lph-cut{height:clamp(230px,33dvh,300px)}
.lp-hero.is-cut .lph-info{padding-top:58px}
.lph-facts{gap:6px}
.lp-hero.is-cut .lph-info h1{font-size:1.15rem}

/* Link page refinements (owner, 13 Nov 2026, mock m8 approved) */
/* Template one: main line only, smaller, with separators in light and dark */
.lph-facts .hl-t small{display:none}
.lph-facts{gap:0;margin-top:10px}
.lph-facts li{align-items:center;border-bottom:1px solid rgba(31,42,36,.12);padding:7px 0}
.lph-facts li:first-child{border-top:1px solid rgba(31,42,36,.12)}
.lph-facts .hl-t b{font-size:.74rem;line-height:1.35}
.lph-facts .hl-ic svg{width:15px;height:15px}
body.lp-dark .lph-facts li{border-color:rgba(255,255,255,.16);padding-bottom:7px}
/* Glass: four equal tiles; long text is cut off */
.lp-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
.lp-tiles li{min-width:0;height:62px;overflow:hidden}
.lp-tiles .hl-t{flex:1 1 auto}
/* Dark: gold only for the background glow, the verified tag and «استفسارات»; everything else white */
body.lp-dark .hl-ic,body.lp-dark .lp .lnk .ic,body.lp-dark .lp-place .ic,body.lp-dark .lpw-ic{color:#fff}
body.lp-dark .lp-tiles .hl-ic{background:rgba(255,255,255,.12)}
body.lp-dark .lph-cut::before{border-color:rgba(255,255,255,.55);box-shadow:0 0 60px rgba(255,255,255,.12)}
body.lp-dark .lp .ph{border-color:rgba(255,255,255,.8)}
body.lp-dark .lpw-n{background:rgba(255,255,255,.14);color:#fff}
body.lp-dark .lp .lnk.lnk-inq svg{color:#fff}
body.lp-dark .lp .lnk.booking.alt{color:#fff;border-color:rgba(255,255,255,.7)}
/* Portal preview: pinned beside the choices on desktop only; on phone it scrolls with the page */
@media (max-width:900px){.lpcfg-prev{position:static}}

/* New-message notices (owner, 13 Nov 2026) */
.nt-box fieldset{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.nt-box legend{font-weight:700;font-size:.9rem;padding:0;margin-bottom:8px}
.nt-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.nt-box label select{display:block;width:100%;margin-top:4px}
.nt-sl{font-weight:700;font-size:.9rem;margin:4px 0 0}
.nt-sample{background:#E7F7DC;border-radius:14px 14px 4px 14px;padding:10px 12px;font-size:.85rem;line-height:1.7;white-space:pre-line;box-shadow:0 1px 1px rgba(0,0,0,.08);color:#1F2A24}
/* Special operations (owner, 13 Nov 2026): gold badges, the list atop «الحالات التي يعالجها», the count note */
.op-badges{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 4px}
.op-badge{display:inline-flex;align-items:center;gap:6px;font-size:.76rem;font-weight:700;color:var(--gold-text);background:var(--gold-bg);border:1px solid var(--gold-line);padding:4px 6px 4px 10px;border-radius:999px;line-height:1.4}
[dir=rtl] .op-badge{padding:4px 10px 4px 6px}
.op-badge > svg{color:#B8862E;flex:none}
.op-wrap{position:relative;display:inline-flex}
.op-n{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#D4A64A;color:#3D2800;font-size:.68rem;font-weight:800;border:0;cursor:pointer;font-family:inherit;line-height:1}
.op-n:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.op-pop{position:absolute;inset-inline-end:-6px;top:calc(100% + 8px);z-index:30;width:min(260px,72vw);background:#fff;border:1px solid var(--gold-line);border-radius:14px;box-shadow:0 10px 30px rgba(31,42,36,.16);padding:12px 14px;font-size:.82rem;font-weight:500;color:var(--ink);line-height:1.65;text-align:start;white-space:normal}
.op-pop a{display:block;margin-top:6px;font-weight:700}
.ops-top{display:flex;flex-direction:column;gap:8px;margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid var(--rule)}
.ops-top.alone{border-bottom:0;padding-bottom:0}
.ops-lbl{font-size:.74rem;font-weight:700;color:var(--gold-text);margin:0 0 2px}
.ops-top .op{display:flex;align-items:center;gap:10px;background:var(--gold-bg);border:1px solid var(--gold-line);border-radius:14px;padding:10px 12px;font-weight:600;font-size:.92rem;color:#3D2A00}
.ops-top .op-ic{color:#B8862E;display:flex;flex:none}
.ops-top .op-t{flex:1;min-width:0}
/* «بحث متقدّم» in the search card */
.search .adv{border-top:1px dashed var(--dash);margin:2px 0 0}
.search .adv > summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:6px;font-weight:700;color:var(--green);font-size:.9rem;padding:12px 4px}
.search .adv > summary::-webkit-details-marker{display:none}
.search .adv[open] > summary svg{transform:rotate(45deg)}
.search .adv > summary svg{transition:transform .2s var(--ease)}
.sc-list .op-cnt{color:var(--gold-text)!important;font-weight:700}
/* Portal: «عملياتي المميزة» */
.opedit{display:flex;flex-direction:column;gap:8px}
.opedit .item{background:var(--gold-bg);border:1px solid var(--gold-line);border-radius:14px;padding:10px 12px}
.opedit .badgeline{margin:-2px 4px 4px}
.op-add{position:relative}
.op-add .sc-list{top:auto}
.newop{border:1px dashed var(--gold-line);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:8px;background:#FFFCF5}

/* «رسالة جماعية» (owner, 13 Nov 2026) */
.tabs2{display:flex;gap:4px;background:var(--soft);padding:4px;border-radius:999px}
.tabs2 a{flex:1;text-align:center;padding:9px 12px;border-radius:999px;font-weight:700;font-size:.9rem;text-decoration:none;color:var(--ink)}
.tabs2 a[aria-current=page]{background:var(--white);box-shadow:0 1px 4px rgba(31,42,36,.1)}
.bc-box fieldset{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.bc-box legend{font-weight:700;font-size:.9rem;padding:0;margin-bottom:8px}
.bc-box select{width:100%}
.bc-box .reach{background:var(--tint);color:var(--green);border-radius:14px;padding:10px 14px;font-weight:700;font-size:.92rem;margin:0}
.bub .bc-tag{display:flex;align-items:center;gap:5px;font-size:.72rem;font-weight:700;opacity:.8;margin-bottom:4px}

/* Round 4 fixes */
.mpop .mnote{font-size:.74rem;color:var(--muted);margin:4px 12px 6px;line-height:1.5;max-width:220px}
.chat-blocked{margin:0}
.ini{white-space:nowrap}
.lp .ph .ini.lg{font-size:clamp(1.6rem,7vw,2.4rem)}   /* R4-08: initials fit the link page photo frame */
@media (max-width:960px){body.map-mode #reviews,body.map-mode #reviews ~ *{display:none}}   /* R3-01: the map view shows only the map */
/* R3-03: attachment size readable in the sender's (green) bubble */
.bub.me .att small{opacity:1;color:#fff}
/* R4-13: in the dark scheme the «دليل» mark is white (gold stays for the glow, the verified tag and «استفسارات») */
body.lp-dark .lp-tbtn img,body.lp-dark .lp-foot img{filter:brightness(0) invert(1)}
/* R4-06: the hero and glass templates fit one screen at 320×568 (4 highlights, 3 links) */
@media (max-height:600px){
  .lph-cut{height:150px}
  .lp-hero{gap:10px}
  .lp-hero.is-cut .lph-info{padding-top:20px}
  .lp-hero.is-cut .lph-info h1,.lph-info h1{font-size:1rem}
  .lph-info .sub{font-size:.76rem}
  .lph-facts{margin-top:4px}
  .lph-facts li{padding:4px 0!important}
  .lph-facts .hl-t b{font-size:.7rem;-webkit-line-clamp:1}
  .lph-facts .hl-ic svg{width:13px;height:13px}
  .lp-tiles{padding:6px;gap:5px}
  .lp-tiles li{height:46px;padding:5px 7px}
  .lp-tiles .hl-ic{width:24px;height:24px}
  .lp-tiles .hl-t b{font-size:.72rem;-webkit-line-clamp:1}
  .lp-tiles .hl-t small{font-size:.64rem}
  .lp-glass.is-cut{margin-bottom:-18px}
  .lp .lnk,.lp .lnk.daleel{min-height:44px}
}
@media (max-height:600px){.lp-hero:not(.is-cut) .ph{width:78px;height:78px}}
/* Menus (owner, 14 Nov 2026): every item has an icon; groups are divided by a line; language is a top-bar button */
.pnav a{justify-content:flex-start}
.pnav a .nbadge{margin-inline-start:auto}
.nav-ic{display:inline-flex;flex:none;color:var(--green)}
.nav-ic svg{display:block}
.pnav a[aria-current="page"] .nav-ic,.portal nav a[aria-current="page"] .nav-ic{color:#F7F3EC}
.portal nav a{display:flex;align-items:center;gap:10px}
.pnav .pgroup + .pgroup,.pnav .pg-out,.pd-team:not([hidden]),.pd-in > form{border-top:1px solid var(--rule);padding-top:12px}
.drawer .pd-acct{border-bottom:1px solid var(--rule)}
.pg-out button,.pd-in form button{display:flex;align-items:center;justify-content:center;gap:8px}
.lang-btn{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 12px;border-radius:999px;background:var(--white);color:var(--ink)!important;text-decoration:none;font-weight:700;font-size:.82rem}
.lang-btn .ic{color:var(--green)}
.lang-btn.lb-m{display:none}
@media (max-width:860px){   /* the same width where the desktop one hides (round 8, R8-05) */
  .lang-btn.lb-m{display:inline-flex;height:46px;margin-inline-start:auto;margin-inline-end:8px}
}
.pd-team{display:flex;flex-direction:column;gap:8px}
.pd-team .pg-h{padding:0 4px}
/* «فريقي» */
.team-row{display:flex;align-items:center;gap:12px;padding:12px;border-radius:14px;background:var(--chip);flex-wrap:wrap}
.team-row .tr-av{width:40px;height:40px;border-radius:12px;background:var(--tint);display:grid;place-items:center;color:var(--green);flex:none}
.team-row .tr-t{flex:1;min-width:0;display:flex;flex-direction:column}.team-row .tr-t small{color:var(--muted)}
.team-row form{margin:0}
.pill2{font-size:.72rem;font-weight:700;padding:3px 9px;border-radius:999px;background:var(--tint);color:var(--green)}
.pill2.wait{background:var(--gold-bg);color:var(--gold-text)}
.team-add{border-top:1px solid var(--rule);padding-top:14px}

/* One menu for everyone (owner, 14 Nov 2026) */
.dr .pnav{display:flex;flex-direction:column;gap:0;padding:6px 12px 24px}
.dr .pgroup{padding:10px 0}
.dr .pgroup + .pgroup,.dr [data-show] + .pgroup,.dr .pgroup + [data-show]:not([hidden]){border-top:1px solid var(--rule)}
.dr .pgroup[hidden],.dr [data-show][hidden]{display:none!important}
.dr [data-show=doctor] .pgroup:first-child{padding-top:0}
.dr [data-show=doctor] .pgroup + .pgroup{border-top:1px solid var(--rule)}
.dr [data-show=pat],.dr [data-show=staff]{display:contents}
.dr .pnav a{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:var(--r-ctl);font-size:1rem;font-weight:500;color:var(--ink);text-decoration:none;background:none}
.dr .pnav a[aria-current="page"]{background:var(--green);color:#F7F3EC}
.pd-hi{margin:0;padding:16px 26px 4px;font-weight:700;font-size:1.05rem}
.nav-out{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border-radius:var(--r-ctl);cursor:pointer;color:#9A2F22;font-weight:500}
.nav-out .ic{color:#9A2F22}
.nav-out:hover,.dr .pnav a:hover{background:rgba(255,255,255,.7)}
.dr .pnav a[aria-current="page"]:hover{background:var(--green)}
.site-col > summary{display:none}
.site-col.is-col > summary{list-style:none;display:flex;align-items:center;gap:12px;padding:13px 16px;font-weight:700;color:var(--ink);cursor:pointer;background:#fff;border:1px solid var(--rule);border-radius:var(--r-ctl);box-shadow:0 1px 3px rgba(31,42,36,.06)}
.site-col.is-col > summary::-webkit-details-marker{display:none}
.site-col.is-col > summary .ic{color:var(--green)}
.site-col.is-col > summary .ic:last-child{margin-inline-start:auto;transition:transform .2s var(--ease)}
.site-col.is-col[open] > summary{margin-bottom:6px}
.site-col.is-col[open] > summary .ic:last-child{transform:rotate(180deg)}
/* Sign-in page */
.signin{max-width:460px;margin:24px auto}
.si-h{font-weight:800;font-size:1.5rem;margin:0}
.si-join{margin:0;padding-top:14px;border-top:1px solid var(--rule);text-align:center}
.si-join a{font-weight:700}
.ph-in{display:flex;gap:8px;direction:ltr;margin-top:6px}
.ph-in .cc{display:grid;place-items:center;padding:0 12px;border:1px solid var(--rule);border-radius:var(--r-ctl);background:var(--chip);font-weight:700;flex:none}
.ph-in input{flex:1;min-width:0}
.jphone{border-top:1px solid var(--rule);padding-top:14px}
.info-card{max-width:520px}
.info-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--rule)}
.info-row b{display:block;font-size:.8rem;color:var(--muted);font-weight:600}
.okv{font-size:.75rem;font-weight:700;color:var(--green);background:var(--tint);border-radius:999px;padding:3px 9px}
/* Footer (owner, 14 Nov 2026): white logo, one line, a divider, then email · privacy · terms */
.site-foot{background:#1F5C45;color:#F7F3EC;border-top:0}
.site-foot .sf{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding-top:22px;padding-bottom:24px}
.sf-logo{height:30px;width:auto;filter:brightness(0) invert(1)}
.sf-tag{margin:0;font-size:.86rem;color:rgba(247,243,236,.82)}
.sf-bot{align-self:stretch;display:flex;flex-wrap:wrap;gap:8px 20px;border-top:1px solid rgba(255,255,255,.18);padding-top:12px;font-size:.84rem}
.sf-bot a{color:#F7F3EC}
.prose .sec-h{margin-top:36px;padding-top:20px;border-top:1px solid var(--rule)}
#main{min-height:calc(100vh - 300px)}   /* short pages: the footer sits at the bottom */
/* Paging (14 Nov 2026): «أقدم» / «رسائل أقدم» / «المزيد» */
.more-row{display:flex;justify-content:center;margin:10px 0 0}
.more-btn{min-height:44px;padding:8px 22px}
.more-btn[aria-busy]{opacity:.6;pointer-events:none}
.thread .more-row{margin:0 0 8px}
/* «إعدادات الرسائل» (owner, 14 Nov 2026): folded under the message lists */
.msg-set{padding:0;overflow:hidden}
.msg-set > summary{list-style:none;display:flex;align-items:center;gap:12px;padding:16px 20px;font-weight:700;color:var(--ink);cursor:pointer;min-height:56px}
.msg-set > summary::-webkit-details-marker{display:none}
.msg-set > summary > span{flex:1}
.msg-set > summary svg:last-child{transition:transform .2s}
.msg-set[open] > summary svg:last-child{transform:rotate(180deg)}
.msg-set[open] > summary{border-bottom:1px solid var(--rule)}
.msg-set .ms-body{padding:18px 20px 22px;gap:22px}
.msg-set .nt-box{gap:12px}
.msg-set .nt-box h2{font-size:1.05rem;margin:0}
.msg-set .inq-switch{margin:0}
@media (prefers-reduced-motion: reduce){.msg-set > summary svg:last-child{transition:none}}

/* Link page (owner, 14 Nov 2026): the profile and links sit in the middle of the screen and grow outwards as the
   doctor adds highlights and links; once they fill the screen the page scrolls as before. */
.lp-mid{display:flex;flex-direction:column;gap:8px;margin-block:auto;flex:0 0 auto}
.lp-mid .lp-where{flex:0 0 auto}
.lp-top,.lp-foot{flex:none}
.lp > .lp-foot{margin-top:0}
/* Glass template with no highlights chosen: more room between the name/photo and the links (owner, 14 Nov 2026) */
.lp-glass + .lp-links{margin-top:28px}
/* «انضم إلينا» logo animation (owner, 14 Nov 2026): it opens on the «د» / «D» mark exactly as drawn; then the
   letter slides along its line while the rest of the word opens beside it, and the mark's ring turns, grows and moves
   into its place in the full logo (the mark's own ring cross-fades into the logo's ring as it starts to move).
   Layers are cut from the owner's logo files; all offsets are % of the 560×318 (ar) / 720×318 (en) canvas.
   Plays on the first page only; without scripts or with reduced motion, the full logo simply shows. */
.jl{display:flex;flex-direction:column;align-items:center;margin:4px 0 18px}
.jl-lg{position:relative;width:min(210px,50vw);aspect-ratio:560/318}.jl-en .jl-lg{aspect-ratio:720/318;width:min(252px,56vw)}
.jl-lg img{position:absolute;inset:0;width:100%;height:100%}
.jl-tag{margin:-6px 0 0;font-weight:700;color:var(--green);font-size:1.05rem}
.jl .jl-mring{opacity:0}
@media (scripting:enabled) and (prefers-reduced-motion:no-preference){
.jl-ar.jl-go .jl-lead,.jl-ar.jl-go .jl-mring{transform:translateX(-27.786%)}
.jl-ar.jl-go .jl-mring{opacity:1;animation:jlOut .22s var(--ease) .4s forwards}
.jl-ar.jl-go .jl-rest{transform:translateX(-27.786%);clip-path:inset(0 0 0 74.643%);animation:jlOpen .75s var(--ease) .4s forwards}
.jl-ar.jl-go .jl-ring{opacity:0;transform-origin:31.321% 49.780%;transform:translate(19.536%,9.748%) rotate(-33deg) scale(0.655);animation:jlHome .75s var(--ease) .4s forwards,jlIn .22s var(--ease) .4s forwards}
.jl-ar.jl-go .jl-dot{transform-origin:6.804% 16.730%;transform:translate(27.786%,13.994%) scale(1.0);animation:jlHome .75s var(--ease) .4s forwards}
.jl-ar.jl-go .jl-lead{animation:jlHome .75s var(--ease) .4s forwards}
.jl-en.jl-go .jl-lead,.jl-en.jl-go .jl-mring{transform:translateX(31.764%)}
.jl-en.jl-go .jl-mring{opacity:1;animation:jlOut .22s var(--ease) .4s forwards}
.jl-en.jl-go .jl-rest{transform:translateX(31.764%);clip-path:inset(0 79.306% 0 0);animation:jlOpen .75s var(--ease) .4s forwards}
.jl-en.jl-go .jl-ring{opacity:0;transform-origin:72.986% 49.717%;transform:translate(-25.625%,2.673%) rotate(34deg) scale(0.67);animation:jlHome .75s var(--ease) .4s forwards,jlIn .22s var(--ease) .4s forwards}
.jl-en.jl-go .jl-dot{transform-origin:94.486% 19.308%;transform:translate(-31.583%,6.195%) scale(1.024);animation:jlHome .75s var(--ease) .4s forwards}
.jl-en.jl-go .jl-lead{animation:jlHome .75s var(--ease) .4s forwards}
.jl-go .jl-lg{animation:jlMark .35s var(--ease) both}
.jl-go .jl-tag{opacity:0;animation:jlUp .35s var(--ease) 1.1s forwards}
.jwrap.jl-play > :not(.jl){opacity:0;animation:jlUp .4s var(--ease) 1.25s forwards}
}
@keyframes jlMark{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:none}}
@keyframes jlHome{to{transform:none}}@keyframes jlIn{to{opacity:1}}@keyframes jlOut{to{opacity:0}}
@keyframes jlOpen{to{transform:none;clip-path:inset(0 0 0 0)}}
@keyframes jlUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
/* (owner, 14 Nov 2026) the moving layers stay inside the logo's row, so the page never scrolls sideways; the slogan uses the title font */
.jl{width:100%;overflow:hidden;overflow:clip}
.jl-tag{font-family:var(--head);font-weight:800;font-size:1.15rem}
/* Advanced search on desktop (owner, 14 Nov 2026): the main fields and «ابحث» keep their one line; «بحث متقدّم» sits on
   its own line under them and opens the extra fields there, instead of squeezing into the main line. */
@media (min-width:861px){
  .search .sc-btns{order:2}
  .search .adv{order:3;flex:1 0 100%;margin:0 0 4px;padding-inline:4px}
  .search .adv > summary{display:inline-flex;padding:10px 4px 8px}
  .search .adv .sc-row{max-width:460px;min-height:62px;padding-inline-start:0;border-inline-start:0}
}
/* App pages (owner, 14 Nov 2026): the portal's side menu stays in view while the page scrolls, «خروج» always last at its bottom. */
@media (min-width:861px){
  .portal nav.pside{position:sticky;top:var(--head-h,70px);align-self:start;height:calc(100vh - var(--head-h,70px));height:calc(100dvh - var(--head-h,70px));overflow-y:auto;box-sizing:border-box}
  .portal nav.pside .pg-out{margin-top:auto}
}
/* Desktop pages that already show the side menu: no «حسابي» button (it only opened the same menu again). */
@media (min-width:861px){body:has(.portal nav.pside) .acct-btn{display:none}}
/* Doctor page photo (owner, 14 Nov 2026): a square frame inside the card, like the doctor cards on the home page,
   instead of a panel filling the card's side. */
.prof-top{grid-template-columns:auto minmax(0,1fr);align-items:center}
[dir] .prof-top .ph{width:260px;height:260px;min-height:0;margin:32px;margin-inline-end:0;border-radius:var(--r-ctl);background:var(--tint);overflow:hidden;align-items:stretch;padding:0}
body.has-aura .prof-top .ph{background:var(--tint)}
.prof-top .ph img{width:100%;height:100%;max-height:none;object-fit:cover;object-position:center top}
[dir] .prof-top .ph.noph{min-height:0;align-items:center}
@media (max-width:760px){
  .prof-top{grid-template-columns:1fr;justify-items:center}
  [dir] .prof-top .ph{width:200px;height:200px;margin:24px auto 0}
  .prof-top .info{justify-self:stretch}
}
/* Admin: a live edit as named fields (owner, 14 Nov 2026) */
dl.ed{margin:0;display:flex;flex-direction:column;gap:12px;white-space:normal}
dl.ed > div{display:flex;flex-direction:column;gap:2px;padding-bottom:10px;border-bottom:1px solid var(--rule)}
dl.ed > div:last-child{border-bottom:0;padding-bottom:0}
dl.ed dt{font-size:.8rem;color:var(--muted);font-weight:600}
dl.ed dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
/* Admin queue on phones: each request is a small card (type on top; doctor, status and date under it). */
@media (max-width:700px){
  table.queue,table.queue tbody{display:block}
  table.queue tr.r{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;background:var(--white);border-radius:14px;padding:12px 14px;margin-bottom:8px;box-shadow:var(--sh-1)}
  table.queue tr.r td{background:none;padding:0;border-radius:0!important}
  table.queue tr.r td:first-child{grid-column:1/-1;font-size:.95rem}
  table.queue tr.r td:nth-child(3){text-align:end}
  table.queue tr.r td:last-child{grid-column:1/-1;font-size:.8rem}
}
dl.ed dd{unicode-bidi:plaintext;text-align:start}

/* Round 8, R8-04: on short laptop screens the side menu scrolls inside itself; «خروج» stays pinned at its bottom. */
@media (min-width:861px){
  .portal nav.pside{padding-bottom:0}
  .portal nav.pside .pg-out{position:sticky;bottom:0;background:var(--sand);padding-bottom:14px;z-index:1}
  body.has-aura .portal nav.pside .pg-out{background:rgba(247,243,236,.96)}
}
/* A gallery video without a still frame: a plain tile (the video loads only when opened). */
.gal-vtile{display:block;width:100%;height:100%;background:linear-gradient(135deg,var(--tint),#cfe0d4)}
.gal-media img{width:100%;height:100%;object-fit:cover}

/* ===== Navigation (owner, 16 Nov 2026): glass top bar everywhere, account circle + menu, compact bottom bar on phones ===== */
.site-head{background:rgba(255,255,255,.5);-webkit-backdrop-filter:blur(30px) saturate(1.6);backdrop-filter:blur(30px) saturate(1.6);border-bottom:1px solid rgba(255,255,255,.65);box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 1px 0 rgba(31,42,36,.07),0 10px 30px rgba(31,92,69,.12)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.site-head{background:rgba(255,255,255,.94)}}
.site-head .menu-toggle,.lang-btn.lb-m{display:none!important}
@media (max-width:860px){
  .site-head nav.menu{display:none!important}
  .site-head .head-tools{display:flex!important;width:auto;margin-inline-start:auto;gap:8px}
  .site-head .head-tools .pill{padding:0 14px}
}
.acct-ava{width:42px;height:42px;border-radius:50%;border:2px solid rgba(255,255,255,.9);background:var(--green);color:#F7F3EC;font:inherit;font-weight:800;font-size:1.05rem;display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer;overflow:hidden;box-shadow:0 2px 8px rgba(31,42,36,.18);flex:none}
.acct-ava[hidden]{display:none}
.acct-ava img{width:100%;height:100%;object-fit:cover}
.acct-ava:focus-visible{outline:3px solid var(--green);outline-offset:2px}
@media (min-width:861px){body:has(.portal nav.pside) .acct-ava{display:none}}
.acct-menu{position:fixed;top:76px;inset-inline-end:12px;z-index:70;width:min(286px,calc(100vw - 24px));max-height:calc(100dvh - 180px);overflow-y:auto;background:#fff;border-radius:var(--r-card);box-shadow:0 18px 50px rgba(31,42,36,.28);padding:8px;opacity:0;transform:translateY(-6px) scale(.98);transform-origin:top left;transition:opacity .18s var(--ease),transform .18s var(--ease)}
[dir=ltr] .acct-menu{transform-origin:top right}
.acct-menu.open{opacity:1;transform:none}
.acct-menu[hidden]{display:none}
.am-head{display:flex;align-items:center;gap:8px;padding:8px 8px 10px 6px;border-bottom:1px solid var(--rule);margin-bottom:4px}
.am-hi{flex:1;margin:0;font-weight:800;line-height:1.5;min-width:0}
.am-hi small{display:block;font-weight:500;color:var(--muted);font-size:.78rem}
.am-head form{margin:0}
.am-out{width:40px;height:40px;border-radius:50%;border:1px solid var(--rule);background:var(--sand);color:#9A3B2E;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.am-out:hover{background:#F6E7E3}
.am-nav{display:flex;flex-direction:column;gap:0}
.am-nav .pgroup{display:flex;flex-direction:column}
.am-nav .pgroup + .pgroup,.am-nav > :not([hidden]) ~ .pgroup:not([hidden]){border-top:1px solid var(--rule);padding-top:4px;margin-top:4px}
.am-nav .pg-h{font-size:.72rem;font-weight:700;color:var(--muted);padding:8px 12px 2px}
.am-nav a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:var(--r-ctl);font-size:.95rem;font-weight:600;color:var(--ink);text-decoration:none}
.am-nav a:hover{background:var(--sand)}
.am-nav a[aria-current="page"]{background:var(--tint);color:var(--green)}
.am-nav a .nbadge{margin-inline-start:auto}
.am-nav .nav-ic{color:var(--green);display:inline-flex}
/* bottom bar */
.tabbar{display:none}
@media (max-width:860px){
  body.has-tabbar{padding-bottom:88px}
  .tabbar{display:flex;position:fixed;bottom:calc(12px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);z-index:65;width:min(300px,calc(100vw - 32px));padding:6px;border-radius:999px;background:rgba(255,255,255,.9);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.95);box-shadow:0 10px 28px rgba(31,42,36,.22)}
  .tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:7px 0 6px;border-radius:999px;color:var(--ink);text-decoration:none;font-size:.7rem;font-weight:700;position:relative;min-height:52px;justify-content:center;transition:background-color .2s var(--ease),color .2s var(--ease)}
  .tabbar a[hidden]{display:none}
  .tabbar a[aria-current="page"]{background:var(--tint);color:var(--green)}
  .tabbar .ic{width:22px;height:22px}
  .tb-mk{width:24px;height:24px;background:currentColor;-webkit-mask:url(/mark-mono.png) center/contain no-repeat;mask:url(/mark-mono.png) center/contain no-repeat}
  .tb-badge{position:absolute;top:3px;inset-inline-end:calc(50% - 24px);background:#C0392B;color:#fff;font-size:.62rem;min-width:17px;height:17px;border-radius:999px;display:flex;align-items:center;justify-content:center;padding:0 4px}
  .tb-badge[hidden]{display:none}
  /* inside a chat: its own top bar only */
  body.chat-page{padding-bottom:0}
  body.chat-page .tabbar,body.chat-page .site-head{display:none!important}
}
/* Skeleton placeholders while something loads (owner, 16 Nov 2026) */
@keyframes skShim{from{background-position:100% 0}to{background-position:-100% 0}}
.sk,.sk-wait{background:linear-gradient(90deg,#ECE6DB 25%,#F6F2EB 50%,#ECE6DB 75%)!important;background-size:200% 100%!important;animation:skShim 1.2s linear infinite;border-color:transparent!important;color:transparent!important;box-shadow:none!important}
.sk-wait *{visibility:hidden}
.sk{display:block;border-radius:8px}
.sk-line{height:12px;margin:6px 0}
.sk-card{border-radius:var(--r-card);min-height:220px}
.sk-row{display:flex;gap:12px;align-items:center;padding:12px 4px}
.sk-row .sk-av{flex:none;width:44px;height:44px;border-radius:50%}
.sk-row .sk-tx{flex:1}
@media (prefers-reduced-motion:reduce){.sk,.sk-wait{animation:none}}
/* Chat lists (owner, 16 Nov 2026): filter chips on one side, round «+» and ⚙ on the other; a plain list */
.ctop{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 6px}
.fchips{display:flex;gap:8px;flex-wrap:wrap}
.fchip{display:inline-flex;align-items:center;height:40px;padding:0 16px;border-radius:999px;border:1px solid rgba(31,42,36,.16);background:rgba(255,255,255,.65);color:var(--ink);text-decoration:none;font-weight:700;font-size:.88rem;transition:background-color .2s var(--ease),color .2s var(--ease)}
.fchip[aria-current="page"]{background:var(--green);border-color:var(--green);color:#F7F3EC}
.ctop-acts{display:flex;gap:8px;margin-inline-start:auto}
.rbtn{width:42px;height:42px;border-radius:50%;background:#fff;border:1px solid rgba(31,42,36,.14);display:inline-flex;align-items:center;justify-content:center;color:var(--green);box-shadow:0 2px 6px rgba(31,42,36,.08);flex:none;text-decoration:none}
.rbtn:hover{background:var(--sand)}
.clist-h{font-weight:800;font-size:1.3rem;margin:0}
.ctag{display:inline-block;font-size:.66rem;font-weight:700;color:var(--muted);background:var(--sand);border:1px solid var(--rule);border-radius:999px;padding:0 7px;vertical-align:2px;line-height:1.6}
.dc-ph.dc-ini{border-radius:50%}
/* Inside a chat on a phone: the conversation fills the screen, with its own top bar and the composer at the bottom */
@media (max-width:860px){
  body.chat-page .wrap.inq-page,body.chat-page .portal.is-chat .pmain{padding:0!important}
  body.chat-page .inq.chat,body.chat-page .portal.is-chat .inq.chat,body.chat-page .inq-page .inq.chat{height:100dvh!important;min-height:0;gap:0;max-width:none;margin:0}
  body.chat-page .inq.chat > .ihead{border-radius:0;margin:0;padding:8px 10px;background:rgba(255,255,255,.62);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:0 1px 0 rgba(31,42,36,.07);border:0;position:relative;z-index:2}
  body.chat-page .inq.chat > .thread{padding:12px 12px 6px;margin:0}
  body.chat-page .inq.chat > .composer{border-radius:0;margin:0;background:transparent;box-shadow:none;border:0;padding:6px 10px calc(10px + env(safe-area-inset-bottom,0px))}
  body.chat-page .composer .crow textarea{border-radius:24px;background:#fff;border:1px solid rgba(31,42,36,.14)}
  body.chat-page .composer .cbtn{border-radius:50%}
}
.sk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;margin:0 0 16px}
[data-results].sk-on{opacity:1}
[data-results].sk-on > :not(.sk-grid){display:none}
.sk-more{padding:4px 0}
.inq-sk{position:absolute;inset:56px 16px 16px;display:flex;flex-direction:column;pointer-events:none}

/* «المستشفيات» (owner, 16 Nov 2026): one full-width row per hospital on phones, a grid on desktop */
.hosp-page .results-head p{margin:4px 0 0;color:var(--muted)}
.hlist{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.hlist .hrow{margin:0;background:var(--white);box-shadow:var(--sh-1)}
.hsec h2{font-size:1.15rem;margin:0 0 10px}
@media (max-width:1024px){.hlist{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px){.hlist{grid-template-columns:1fr}}

/* Chats on a computer (owner, 16 Nov 2026): the list of chats on one side, the open chat on the other. Phones show
   one at a time (the list page, or the chat full screen). */
.csplit-wrap{max-width:1280px;padding:0}
.portal.is-split{display:block;min-height:0}
.cpane-empty{flex:1;display:grid;place-content:center;justify-items:center;gap:10px;color:var(--muted);text-align:center}
.cpane-empty svg{opacity:.45}
.cpane-empty p{margin:0}
.clist-col .conv[aria-current="page"]{background:var(--soft);box-shadow:0 0 0 2px var(--green),var(--sh-1)}
@media (max-width:860px){
  .csplit.is-thread .clist-col,.csplit.is-list .cpane{display:none}
  .csplit.is-list .clist-col{padding:18px 16px 24px;display:flex;flex-direction:column;gap:14px}
  .cpage{padding:18px 16px}
}
@media (min-width:861px){
  body.split-page{height:100dvh;overflow:hidden}
  body.split-page .site-foot{display:none}
  .csplit{display:grid;grid-template-columns:minmax(300px,370px) minmax(0,1fr);height:calc(100dvh - var(--head-h,72px));min-height:0}
  .clist-col{overflow-y:auto;padding:20px 16px 24px;border-inline-end:1px solid var(--rule);display:flex;flex-direction:column;gap:14px;min-height:0}
  .clist-col .fchips{flex-wrap:wrap}
  .cpane{min-width:0;min-height:0;display:flex;flex-direction:column;padding:14px 22px}
  .cpane > .inq.chat,.cpane .inq.chat,body.chat-page .cpane .inq.chat{max-width:none;width:100%;height:100%!important;min-height:0;margin:0}
  .cpane > .cpage{overflow-y:auto;min-height:0;display:flex;flex-direction:column;gap:18px;padding:8px 4px 24px}
  .cpane > .inq:not(.chat){max-width:640px;width:100%;margin:0 auto;overflow-y:auto}
}

/* Phones: no footer anywhere (owner, 16 Nov 2026). English home tab uses the English «D» mark. */
@media (max-width:860px){.site-foot{display:none!important}}
html[lang=en] .tb-mk{-webkit-mask-image:url(/mark-mono-en.png);mask-image:url(/mark-mono-en.png)}

/* «افتح واتساب»: sign-in codes by WhatsApp, sent on request (owner, 17 Nov 2026) */
.wa-btn{display:inline-flex;justify-content:center;align-self:stretch;text-align:center;text-decoration:none}
