/* ✨ New design (v291), same identity: the commune emblem and «جماعة العيون», the greens and the terracotta, the photo of the gate.
   What changes is the arrangement: a clear header (emblem and name on one side, search in the middle, the account on the other,
   the menu underneath), a home page that opens on the gate of the city, and cards that are cleaner and lighter.
   Loaded after app.css and calm.css; night.css is made from the three (scripts/build-night.js). */

:root{--bg:#F5F7F6;--panel:#FFFFFF;--line:#E4E9E6;--soft:#F1F4F2;--radius:18px;
  --nd-green:#1E6A49;--nd-deep:#143D2C;--nd-sand:#C8A24B;--nd-clay:#B8621B;--nd-ivory:#F7F9F8}
body{background:var(--bg)}

/* ===================== header on a computer ===================== */
@media (min-width:821px){
  html body header{grid-template-columns:auto minmax(0,1fr) minmax(220px,330px) auto;
    min-height:0!important;}
  /* the gate of the city: the whole far side of the header, fading towards the name */
  html body header::before{inset:0 0 4px auto!important;inset-inline-start:auto!important;inset-inline-end:0!important;width:58%!important;
    background:url(img/facade.jpg) center 56%/cover no-repeat!important;opacity:.95!important;z-index:0!important;
    -webkit-mask-image:linear-gradient(to left,transparent 0,#000 55%)!important;mask-image:linear-gradient(to left,transparent 0,#000 55%)!important}
  html body header>*{z-index:1}
  html body header .clogo-w{grid-area:logo;}
  html body header .clogo{height:78px!important;filter:none!important}
  html body header .brand{grid-area:brand;align-items:flex-start!important;text-align:start!important;line-height:1.45;padding:0!important;border:0!important;}
  html body header .brand>*{text-shadow:none!important}
  html body header .brand small{font-size:12px!important;color:#7A6033!important;font-weight:600}
  html body header .brand b{font-family:var(--f-disp);color:var(--nd-deep)!important;line-height:1.25!important;margin-block:2px}
  html body header .brand .br-svc,html body header .brand .br-off,html body header .brand span:last-child{font-size:12px!important;color:var(--z-grey-600)!important;font-weight:500!important}
  html body header .search{grid-area:search;max-width:none!important;margin:0!important}
  html body header .search input{height:46px;border-radius:999px!important;background:rgba(255,255,255,.96)!important;border:1px solid #D3DBD7!important;box-shadow:0 6px 18px -12px rgba(18,63,44,.35)!important;padding-inline-start:44px!important}
  /* light, size and language: a small row under the account */
  html body header .zoomui{grid-area:zoom;position:static!important;transform:none!important;}

  html body header .me{grid-area:me;margin:0!important;background:rgba(255,255,255,.94)!important;border:1px solid #DCE3DF!important;border-radius:16px!important;box-shadow:0 8px 22px -16px rgba(18,63,44,.45)!important}
  /* the menu: one calm row under the header, the active section in a soft green */
  html body header .tabs{grid-area:tabs;width:auto!important;max-width:none!important;overflow-x:auto;scrollbar-width:none;gap:2px!important;border-radius:0!important;background:rgba(255,255,255,.9)!important;backdrop-filter:blur(8px);
    box-shadow:none!important;border-top:1px solid rgba(200,162,75,.28)!important}
  html body header .tabs::before{display:none!important}
  html body header .tabs button{padding:10px 12px!important;font-size:14px;white-space:nowrap;border-radius:12px!important;font-weight:600;color:#4E5B55!important;background:none!important;box-shadow:none!important}
  html body header .tabs button:hover{background:#F1F4F2!important;color:var(--nd-deep)!important}
  html body header .tabs button[aria-selected="true"]{background:#E6F4EA!important;color:var(--nd-green)!important;font-weight:700}
  html body header .tabs button[aria-selected="true"] *{color:var(--nd-green)!important;stroke:currentColor}
  html body header .tabs button[aria-selected="true"]::after{content:"";position:absolute;inset-inline:14px;bottom:-7px;height:3px;border-radius:4px 4px 0 0;background:var(--nd-green)}
  html body header .tabs button[aria-selected="true"]::before{display:none!important}
}

/* ===================== header on a phone ===================== */
@media (max-width:820px){
  /* emblem | name | light and size: the emblem had been squeezed to a thin line */
  html body header{grid-template-columns:auto minmax(0,1fr) auto!important;}
  html body header .clogo-w{grid-column:1!important;grid-row:1!important;justify-self:start;width:auto!important}
  html body header .clogo{width:auto!important;filter:none!important}
  html body header .brand{grid-column:2!important;text-align:start!important;align-items:flex-start!important}
  html body header .brand b{color:var(--nd-deep)!important}
  html body header .brand>*{text-shadow:0 0 8px rgba(251,248,241,.95)!important}

  html body header .search input{border-radius:999px!important;}
  html body header::before{opacity:.32!important}
}

/* ===================== home page ===================== */
/* the greeting opens on the gate of the city */
html body .tb-hello.big{min-height:168px;padding:28px 30px!important;border-radius:24px!important;align-items:flex-end;
  background:linear-gradient(to left,var(--z-green-900) 0%,rgba(18,63,44,.94) 38%,rgba(30,106,73,.55) 72%,rgba(30,106,73,.15) 100%),url(img/laayoune-avenue.jpg?v=2) left 45%/cover no-repeat!important;
  /* v473: the same photo in WebP (230 KB instead of 334 KB) where the browser can show it; the line above stays for the others */
  background:linear-gradient(to left,#143D2C 0%,rgba(18,63,44,.94) 38%,rgba(30,106,73,.55) 72%,rgba(30,106,73,.15) 100%),image-set(url(img/laayoune-avenue.webp?v=1) type("image/webp"),url(img/laayoune-avenue.jpg?v=2) type("image/jpeg")) left 45%/cover no-repeat!important;
  box-shadow:0 22px 40px -28px rgba(18,63,44,.7)!important}
html body .tb-hello.big::after{display:none!important}
html body .tb-hello.big b{font-family:var(--f-disp);font-size:26px!important;line-height:1.35}
html body .tb-hello.big span{color:#E8D4A5!important;font-size:14px!important}
html body .tb-hello.big .btn{border:1px solid rgba(255,255,255,.4)!important;border-radius:999px!important;padding:10px 20px!important}
@media (max-width:820px){html body .tb-hello.big{min-height:0;border-radius:20px!important;
  background:linear-gradient(to top,var(--z-green-900) 0%,rgba(18,63,44,.92) 50%,rgba(18,63,44,.7) 100%),url(img/laayoune-avenue.jpg?v=2) center 45%/cover no-repeat!important;
  background:linear-gradient(to top,var(--z-green-900) 0%,rgba(18,63,44,.92) 50%,rgba(18,63,44,.7) 100%),image-set(url(img/laayoune-avenue.webp?v=1) type("image/webp"),url(img/laayoune-avenue.jpg?v=2) type("image/jpeg")) center 45%/cover no-repeat!important}
}

/* the search of the home page: a single soft field */
html body .hm-search{border-radius:999px!important;border:1px solid var(--line)!important;background:#fff!important;box-shadow:0 10px 26px -20px rgba(18,63,44,.45)!important;padding-inline:22px!important}

/* the tiles: clean cards, the icon on a soft tint, the count as a quiet tag at the bottom */
html body .hm-tile{border:1px solid var(--line)!important;border-radius:20px!important;background:#fff!important;padding:20px!important;gap:6px!important;
  box-shadow:0 1px 2px rgba(18,63,44,.04)!important;position:relative;overflow:hidden}
html body .hm-tile::before{content:"";position:absolute;inset-inline:0;top:0;height:3px;background:linear-gradient(to left,var(--nd-green),var(--nd-sand));opacity:0;transition:opacity .2s}
@media (hover:hover){html body .hm-tile:hover::before{opacity:1}}
html body .hm-tile b,html body .hm-tile strong{font-family:var(--f-disp);font-size:16px;color:var(--nd-deep)}

/* ===================== cards and buttons everywhere ===================== */
html body .card{border-radius:var(--radius);border-color:var(--line)}
html body .btn{border-radius:12px}
html body .btn.primary{background:linear-gradient(180deg,#22764F,#1E5E43)!important;border-color:#1E5E43!important}
html body input:not([type=checkbox]):not([type=radio]):not([type=range]),html body select,html body textarea{border-radius:12px}
html body :focus-visible{outline:2px solid var(--nd-sand);outline-offset:2px}

/* the phone menu at the bottom: lighter, the active section marked by a small bar */
@media (max-width:820px){
  html body .tabs{background:rgba(255,255,255,.96)!important;border-top:1px solid var(--line);box-shadow:0 -10px 30px -22px rgba(18,63,44,.5)!important}
  html body .tabs button[aria-selected="true"]{background:#E6F4EA!important;color:var(--nd-green)!important}
  html body .tabs button[aria-selected="true"] *{color:var(--nd-green)!important}
}

/* ===================== night ===================== */


/* the language button sits in the same rounded family as its neighbours */
html body header .zoomui>*{border-radius:12px!important}
html body header .tabs::before{display:none!important}
html body .tabs button[aria-selected="true"] svg{stroke:currentColor!important}
@media (max-width:820px){html body .tabs button[aria-selected="true"]::after{background:linear-gradient(90deg,var(--z-green-700),var(--z-gold-500))!important}}

/* ===================== 📈 the four numbers of the home page ===================== */
.hm-pulse{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 18px}
.hp-c{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;gap:2px;padding:16px 18px;border-radius:18px;background:#fff;border:1px solid var(--line);
  border-inline-start:4px solid var(--hc,var(--z-green-700));box-shadow:0 1px 2px rgba(18,63,44,.04);transition:box-shadow .2s,transform .2s}
.hp-c b{font-family:var(--f-disp);font-size:30px;line-height:1.15;color:var(--hc,var(--z-green-700))}
.hp-c span{font-size:14px;font-weight:600;color:#33413A}
.hp-tr{font-style:normal;font-size:12px;color:#6B7872;margin-top:4px}
.hp-tr.up{color:#1E7A4A}.hp-tr.down{color:#A9542A}
.hp-bld{--hc:#B8621B}.hp-fin{--hc:#1E6A49}.hp-vis{--hc:#17695A}.hp-req{--hc:#7A6033}
.hp-c:focus-visible{outline:2px solid var(--z-gold-500);outline-offset:2px}
@media (hover:hover){.hp-c:hover{transform:translateY(-2px);box-shadow:0 14px 28px -18px rgba(18,63,44,.4)}}
@media (max-width:820px){.hm-pulse{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hp-c{padding:12px 14px}.hp-c b{font-size:24px}}

/* ===================== 🖋️ line icons ===================== */
.hm-ic svg,.hm-tools span svg{display:block;width:26px;height:26px;color:var(--z-green-700)}
html body .hm-tile .hm-ic{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#EEF3F0}
.hm-tile[data-v="cmp"] .hm-ic{background:#F1F4F2}.hm-tile[data-v="cmp"] .hm-ic svg{color:#A0552B}
.hm-tile[data-v="users"] .hm-ic,.hm-tile[data-v="model"] .hm-ic{background:#F1F4F2}.hm-tile[data-v="users"] .hm-ic svg,.hm-tile[data-v="model"] .hm-ic svg{color:#7A6033}
.hm-tools span{display:grid;place-items:center}
.vh-ic svg{width:28px;height:28px;color:#fff}

/* ===================== 🪜 the stages of a lot ===================== */
.steps{list-style:none;margin:4px 14px 10px;padding:12px 6px 8px;display:grid;grid-template-columns:repeat(5,1fr);gap:0;background:#F7F9F8;border:1px solid var(--line);border-radius:16px;counter-reset:st}
.steps li{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center;min-width:0}
.steps li::before{content:"";position:absolute;top:13px;inset-inline-start:50%;width:100%;height:2px;background:#DCE3DF;z-index:0}
.steps li:last-child::before{display:none}
.steps li.done::before{background:var(--z-green-500)}
.steps i{position:relative;z-index:1;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;font-style:normal;font-size:13px;font-weight:700;background:#fff;border:2px solid #CBD5D0;color:#8A8270}
.steps li.done i{background:var(--z-green-500);border-color:var(--z-green-500);color:#fff}
.steps li.now i{background:#B8621B;border-color:#B8621B;color:#fff;box-shadow:0 0 0 4px rgba(184,98,27,.18)}
.steps b{font-size:12px;font-weight:600;color:#4E5B55;line-height:1.3}
.steps li.now b{color:#8A4512;font-weight:800}
.steps small{font-size:11px;color:#7A857F;min-height:14px}

/* ===================== 🔐 the sign-in screen: the gate of the city in full, the card beside it ===================== */
html body #login{align-items:center;justify-content:flex-start;padding:24px 7vw;
  background:linear-gradient(to left,rgba(251,248,241,.97) 0,rgba(251,248,241,.9) 30%,rgba(251,248,241,.25) 58%,rgba(251,248,241,0) 75%),url(img/laayoune-place.jpg?v=2) 30% 50%/cover no-repeat!important}
html body #login .lgcard{width:min(440px,100%);border-radius:26px;padding-top:30px}
html body #login .lgcard::after{content:"";position:absolute;inset:auto 24px 0;height:4px;border-radius:4px 4px 0 0;background:linear-gradient(90deg,#C1272D 0 33%,#E8A15B 33% 66%,var(--z-green-500) 66%)}
html body #login .lgcard h1{font-family:var(--f-disp);}

@media (max-width:820px){
  html body #login{display:block;padding:0;background:#F7F9F8!important}
  html body #login::before{content:"";position:absolute;inset:0 0 auto;height:38vh;background:url(img/laayoune-place.jpg?v=2) center 55%/cover no-repeat;
    -webkit-mask-image:linear-gradient(to bottom,#000 55%,transparent);mask-image:linear-gradient(to bottom,#000 55%,transparent)}
  html body #login .lgcard{border-radius:24px}
}

html.night body #login .lgcard{border-color:#2B3832}



/* ===================== 🗓️ this month against the month before ===================== */
.mcmp{width:100%;border-collapse:separate;border-spacing:0;margin:6px 0 14px;border:1px solid var(--line);border-radius:14px;overflow:hidden;font-size:14px}
.mcmp th,.mcmp td{padding:10px 12px;text-align:center;border-bottom:1px solid var(--line)}
.mcmp tbody th{text-align:start;font-weight:600;color:#33413A}
.mcmp thead th{background:#F1F4F2;font-size:13px;color:var(--z-grey-600)}
.mcmp tr:last-child>*{border-bottom:0}
.mcmp .mc-up{color:#1E7A4A;font-weight:700}.mcmp .mc-down{color:#A9542A;font-weight:700}.mcmp .mc-eq{color:#8A958F}

/* ===================== 🧱 the map by block ===================== */
.blk0{fill:#F7E3D3}.blk1{fill:#EDC39E}.blk2{fill:#C9D9A8}.blk3{fill:#7CC08F}.blk4{fill:var(--z-green-500)}
.cmp-leg .blk-u{opacity:.7;font-size:12px}

/* ===================== 📲 reminders ===================== */
.rm-list{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:6px;max-height:60vh;overflow:auto}
.rm-list li{display:flex;align-items:center;gap:12px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:#fff}
.rm-list li>b{min-width:44px;font-size:16px;color:var(--z-green-700)}
.rm-list li>span{flex:1;min-width:0;display:flex;flex-direction:column;font-size:14px}
.rm-list small{color:#6B7872;text-align:start}
.rm-list em{font-style:normal;font-size:12px;color:#7A6033;background:#F1F4F2;border-radius:999px;padding:2px 8px;white-space:nowrap}
.rm-list .btn{background:#1E8E5A;border-color:#1E8E5A;color:#fff;white-space:nowrap}
.rm-msg pre{white-space:pre-wrap;font-family:inherit;background:#F5F7F6;border-radius:10px;padding:10px;font-size:13px}

/* ===================== 🏜️ empty states: a small drawing of the gate of the city instead of an emoji ===================== */
html body div.pt-empty::before,html body .card.rq-empty::before,html body p.st-empty::before{content:"";width:96px;height:96px;font-size:0;
  background:#F1F4F2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 66h60' stroke='%23C8A24B' stroke-width='2'/%3E%3Cpath d='M26 66V50c0-12 10-24 22-30 12 6 22 18 22 30v16' stroke='%23B8621B' stroke-width='2.4'/%3E%3Cpath d='M38 66V54c0-6 4-11 10-14 6 3 10 8 10 14v12' stroke='%232F8A62' stroke-width='2.2'/%3E%3Cpath d='M48 20v-6M46 16h8' stroke='%232F8A62' stroke-width='1.8'/%3E%3Cpath d='M22 74c8-3 16-3 26 0s18 3 26 0' stroke='%23E2D3AE' stroke-width='2'/%3E%3C/svg%3E") center/76px no-repeat;
  box-shadow:inset 0 0 0 1px rgba(184,98,27,.14)}
html body .nt-empty::before{content:"";width:84px;height:84px;font-size:0;
  background:#EEF3F0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F8A62' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16V11a6 6 0 0 1 12 0v5l1.5 2h-15z'/%3E%3Cpath d='M10 20a2 2 0 0 0 4 0'/%3E%3C/svg%3E") center/42px no-repeat}
.rm-list .btn{text-decoration:none}

/* ===================== 🎯 goals of the month ===================== */
.hm-goals{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px 18px;margin:0 0 18px;display:grid;gap:10px}
.hm-goals .gh{display:flex;align-items:center;gap:10px}.hm-goals .gh b{font-family:var(--f-disp);color:var(--z-green-900)}.hm-goals .gh small{color:#6B7872;flex:1}
.hm-goals .gl{display:grid;grid-template-columns:150px 1fr auto 46px;align-items:center;gap:12px;font-size:14px}
.hm-goals .gl i{height:10px;border-radius:999px;background:#E8ECEA;overflow:hidden}.hm-goals .gl u{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--z-green-500),var(--z-gold-500))}
.hm-goals .gl em{font-style:normal;color:var(--z-green-700);font-weight:700;text-align:end}
.hm-goal-set{all:unset;cursor:pointer;display:block;margin:0 0 18px;padding:12px 16px;border:1.5px dashed #D3C8A8;border-radius:16px;color:#7A6033;font-weight:600;text-align:center}
.hm-goal-set.ed{margin:0;padding:4px 8px;border:0;border-radius:8px}
@media (max-width:820px){.hm-goals .gl{grid-template-columns:1fr auto;row-gap:4px}.hm-goals .gl i{grid-column:1/-1;order:3}.hm-goals .gl em{display:none}}

/* ===================== 📰 the last changes ===================== */
.hm-act{margin-top:18px}
.act{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.act li{display:flex;align-items:center;gap:12px;padding:8px 4px;border-bottom:1px solid var(--line)}.act li:last-child{border-bottom:0}
.act li button{all:unset;cursor:pointer;min-width:52px;text-align:center;padding:6px 8px;border-radius:10px;background:#EEF3F0;color:var(--z-green-700);font-weight:700}
.act li button:focus-visible{outline:2px solid var(--z-gold-500)}
.act li span{display:flex;flex-direction:column;font-size:14px;min-width:0}.act li small{color:#7A857F;font-size:12px}

/* ===================== 📤 my day · ⌨️ shortcuts ===================== */
.md-pre{white-space:pre-wrap;font-family:inherit;background:#F5F7F6;border-radius:12px;padding:12px 14px;font-size:14px;line-height:1.8}
.kb-t{width:100%;border-collapse:collapse}.kb-t td{padding:8px 6px;border-bottom:1px solid var(--line)}.kb-t td:first-child{white-space:nowrap;width:1%}
.kb-t kbd{font:600 12px/1 ui-monospace,monospace;border:1px solid #CBD5D0;border-bottom-width:2px;border-radius:6px;padding:3px 6px;background:#fff}

/* ===================== 🖼️ before / after ===================== */
.ba-btn{margin:0 0 8px}
.ba{--p:50%;position:relative;width:100%;aspect-ratio:4/3;border-radius:14px;overflow:hidden;background:#E8ECEA}
.ba img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ba .ba-z{clip-path:inset(0 0 0 var(--p))}
.ba .ba-h{position:absolute;top:0;bottom:0;left:var(--p);width:3px;margin-left:-1.5px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.2)}
.ba span{position:absolute;bottom:10px;padding:3px 10px;border-radius:999px;background:rgba(18,63,44,.82);color:#fff;font-size:13px}
.ba .ba-l{left:10px}.ba .ba-r{right:10px}
.ba-s{width:100%;margin-top:10px;accent-color:var(--z-green-700)}
.ben-btns a.btn{text-decoration:none}

/* ===================== 📱 a more compact header on the phone ===================== */
@media (max-width:820px){
  html body header{column-gap:10px!important}


  html body header .zoomui>*{min-height:0!important;padding-block:0!important}

  html body header .me{gap:6px!important}
  html body header .me .iconbtn{min-width:0!important}
}

/* ===================== ⭐ followed lots ===================== */
.fav-btn{color:#B8862B!important;font-size:18px}
.fav-btn[aria-pressed="true"]{background:#FBF1DA!important;border-color:#E9CF8F!important}
.hm-fav{margin:0 0 18px}
.hm-fav .fv{display:flex;gap:10px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
.hm-fav .fv button{all:unset;cursor:pointer;flex:none;display:flex;flex-direction:column;gap:2px;min-width:130px;padding:10px 14px;border-radius:16px;background:#fff;border:1px solid var(--line);box-shadow:0 1px 2px rgba(18,63,44,.04)}
.hm-fav .fv b{font-family:var(--f-disp);font-size:20px;color:var(--z-green-900)}
.hm-fav .fv span{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:#33413A}
.hm-fav .fv i{width:10px;height:10px;border-radius:4px;flex:none}
.hm-fav .fv small{font-size:12px;color:#7A857F}
.hm-fav .fv button:focus-visible{outline:2px solid var(--z-gold-500)}

/* ===================== 💾 the backup reminder: a thin calm strip ===================== */
html body .bk-warn{background:#F5F7F6;border:0;border-inline-start:3px solid var(--z-gold-500);border-radius:10px;padding:6px 12px;font-size:13px;color:#6E5320;gap:8px}
html body .bk-warn .btn{padding:6px 12px;min-height:0;font-size:13px;border-radius:999px}

/* ===================== 💬 short notices and windows: one family ===================== */
html body .toast{background:var(--z-green-900);color:#F3F6F4;border:0;border-radius:999px;padding:10px 20px;font-weight:600;box-shadow:var(--z-shadow-3)}
@media (max-width:820px){html body .toast{bottom:calc(92px + env(safe-area-inset-bottom,0px))}}
html body .ocr-dlg{border-radius:20px;overflow:auto;overscroll-behavior:contain;box-shadow:var(--z-shadow-3)}
html body .ocr-dlg .ocr-h{border-bottom:1px solid var(--line);background:linear-gradient(#F7F9F8,#F7F9F8) padding-box;position:relative}
html body .ocr-dlg .ocr-h::after{content:"";position:absolute;inset-inline-start:18px;bottom:-1px;width:56px;height:3px;border-radius:4px 4px 0 0;background:var(--z-gold-500)}
html body .ocr-dlg .ocr-h b{font-family:var(--f-disp);color:var(--z-green-900)}

/* ===================== 📋 the list of lots: the head stays, rows alternate softly ===================== */
@media (min-width:821px){
  html body .lx-head{position:sticky;top:0;z-index:3;background:#F7F9F8;border-bottom:1px solid var(--line);padding-top:10px}
  html body .lx-item:nth-child(even){background:#FAFBFA}
  html body .lx-item:hover{background:#F3F6F4}
}

/* ===================== ⚖️ legal follow-up ===================== */
.lg h4{margin:14px 0 6px;font-size:14px;color:var(--z-green-900)}
.lg-dl{display:grid;gap:6px;padding:10px 12px;border-radius:14px;background:#F7F9F8;border:1px solid var(--line)}
.dl-chip{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:999px;font-size:13px;font-weight:700}
.dl-chip.ok{background:#E6F4EA;color:var(--z-green-700)}.dl-chip.soon{background:#FBEBD7;color:#8A4512}.dl-chip.over{background:#FBE3E1;color:#9B2C22}
.lg-l{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.lg-l li{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:#fff;font-size:14px}
.lg-l li small{flex-basis:100%;color:#6B7872}
.lg-l em{font-style:normal;font-size:12px;padding:2px 8px;border-radius:999px}
.lg-ok{background:#E6F4EA;color:var(--z-green-700)}.lg-ko{background:#FBE3E1;color:#9B2C22}.lg-wait{background:#F1F4F2;color:#7A6033}
.lg-a{margin-inline-start:auto;display:flex;gap:6px}.lg-a .btn{padding:4px 10px;min-height:0;font-size:13px}
.lg-x{color:#9B2C22}
.lg-none{color:#7A857F;font-size:13px;margin:2px 0}
.lg-add{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;margin-top:8px;padding:10px;border:1.5px dashed #CBD5D0;border-radius:12px}
.lg-add>*{flex:1 1 140px;min-width:0}.lg-add label{display:flex;flex-direction:column;gap:2px}.lg-add small{color:#6B7872}
.lg-add .btn{flex:0 0 auto}

/* ===================== 🎉 tell the beneficiary · 🔒 read-only ===================== */
.sg-bar{position:fixed;z-index:96;left:50%;transform:translateX(-50%);bottom:calc(20px + env(safe-area-inset-bottom,0px));display:flex;align-items:center;gap:10px;
  padding:8px 10px 8px 14px;border-radius:999px;background:var(--z-green-900);color:#fff;box-shadow:var(--z-shadow-3);font-size:14px;max-width:calc(100vw - 24px)}
.sg-bar .btn{background:#1E8E5A;border-color:#1E8E5A;color:#fff;text-decoration:none;padding:6px 12px;min-height:0;border-radius:999px}
.sg-bar .ocr-x{position:static;color:#fff;background:transparent}
@media (max-width:820px){.sg-bar{bottom:calc(92px + env(safe-area-inset-bottom,0px))}}
.ro-bar{position:sticky;top:0;z-index:60;text-align:center;padding:6px 12px;background:#F1F4F2;color:#6E5320;font-size:13px;font-weight:600;border-bottom:1px solid #E6D4B4}
html.is-ro #lotForm button[type=submit],html.is-ro .lg-add,html.is-ro .btn.primary.bk-go{opacity:.45;pointer-events:none}

/* ===================== ✅ tasks ===================== */
.hm-tasks{margin:0 0 18px}
.tk-h{display:flex;align-items:center;gap:10px}.tk-h h3{flex:1;margin:0}
.hm-tasks h4{margin:12px 0 6px;font-size:13px;color:#6B7872}
.tk{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.tk li{position:relative;padding:8px 36px 8px 10px;border:1px solid var(--line);border-radius:12px;background:#fff}
.tk li label{display:flex;gap:10px;align-items:flex-start;font-weight:600;font-size:14px;cursor:pointer}
.tk li input{width:18px;height:18px;margin-top:2px;accent-color:var(--z-green-700)}
.tk li small{display:block;margin-inline-start:28px;color:#7A857F;font-size:12px}
.tk li.late{border-color:#E8B4AA;background:#FFF6F5}.tk li.dn label span{text-decoration:line-through;color:#8A958F}
.tk-n{all:unset;cursor:pointer;color:var(--z-green-700);text-decoration:underline}
.tk-x{all:unset;cursor:pointer;position:absolute;inset-inline-end:10px;top:8px;color:#9B2C22;font-size:16px}

/* ===================== 🔮 three scenarios ===================== */
.scen{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0 0 14px}
.scen>div{padding:10px 12px;border-radius:14px;border:1px solid var(--line);background:#fff;display:flex;flex-direction:column;gap:2px;text-align:center}
.scen small{color:#6B7872;font-size:12px}.scen b{font-family:var(--f-disp);font-size:15px;color:var(--z-green-900)}
.scen .sc-m{border-color:#9FD3B4;background:#F3F6F4}

/* ===================== ✨ v297: finer finish, same identity ===================== */
/* the four numbers: a clean colour line on top instead of a bent side edge */
html body .hp-c{border-inline-start:1px solid var(--line);position:relative;overflow:hidden;padding-top:18px}
html body .hp-c::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:var(--hc,var(--z-green-700));opacity:.9}
html body .hp-tr{line-height:1.45}
/* cards and tiles: one radius, one soft shadow, a little more air */
html body .hm-tile,html body .hp-c,html body .hm-goals,html body .card{border-radius:20px}
html body .hm-tiles{gap:16px}
html body .hm-tile small{line-height:1.55;color:var(--z-grey-600)}
/* notices never cover the save button of a lot card: they sit at the top on the phone */
@media (max-width:820px){
  html body .toast{top:calc(12px + env(safe-area-inset-top,0px));bottom:auto}
  /* the header: one tight block — emblem, name, light/size; search; account */
  html body header{padding:8px 12px 10px!important;row-gap:6px!important}
  html body header .clogo{height:40px!important}
  html body header .brand b{font-size:16px!important}
  html body header .zoomui>*{height:34px!important;border-radius:10px!important}
  html body header .search input{height:40px!important;font-size:14px}
  html body header .me{padding:3px 6px!important;border-radius:14px!important}
  html body header .me .iconbtn{width:36px!important;height:36px!important;font-size:16px}
  html body header .me .mename b{font-size:13px}
  /* the home page search repeats the one of the header: hidden on the phone */
  html body .hm-search{display:none!important}
  /* the greeting: shorter */
  html body .tb-hello.big{padding:16px 18px!important;gap:10px}
  html body .tb-hello.big b{font-size:19px!important}
  html body .tb-hello.big span{font-size:13px!important}
  html body .tb-hello.big .btn{padding:8px 14px!important;font-size:13px}
  html body .hm-pulse{gap:10px}html body .hp-c{padding:14px 12px 10px}html body .hp-c b{font-size:24px}html body .hp-c span{font-size:13px}
  /* the lot card head: the measures on one line, the visit under */
  html body .phead .lotno small{display:block;line-height:1.5;font-size:12px}
  html body .phead .iconbtn{width:38px;height:38px}
}
html body .hm-goals .gl i{display:flex}html body .hm-goals .gl u{flex:none}
/* the menu of the sections in the middle of its row (computer) */
@media (min-width:821px){html body header .tabs{justify-content:center!important}}
/* 📅 agenda */
.ag{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:4px}
.ag li{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:14px}
.ag li>span:nth-child(2){flex:1;min-width:0}.ag-d{min-width:84px;color:var(--z-grey-600);font-size:13px}
h4.ag-late{color:#9B2C22}h4.ag-now{color:#8A4512}
html body .ocr-body:has(.ag){display:block}html body .ocr-body:has(.ag) h4{margin:12px 0 6px}
/* one set of numbers on the home page (the bar at the top), one search (the header, and «بحث سريع») */
#homeWrap .hm-board .tb-kpis,html body #homeWrap .hm-search{display:none!important}
/* 🔎 the size chosen for the site applies also to what is drawn outside the page: windows, notices, sign-in */
body>:is(.ocr-back,.kp-back,.toast,.sg-bar,.ro-bar,.off-bar,.nt-pop,.nt-flash,.ai-lbar,.me-near,#login,#noserver){zoom:var(--uiz,1)}

/* ===================== 📐 nothing cut: long words wrap instead of ending in «…» (phone and computer) ===================== */
html body .rq-t small,html body .uc-id span,html body .psec-v,html body .fcard .fname{white-space:normal;text-overflow:clip;overflow:visible;overflow-wrap:anywhere}
html body .mt-row .btn,html body .lx-row .btn,html body .sl-b .btn{white-space:normal;text-overflow:clip;overflow:visible;line-height:1.35;height:auto;min-height:40px}
html body .uc-id{min-width:0}
html body #techBox .tech>summary em{white-space:normal;text-overflow:clip;overflow:visible;text-align:center}

/* ===================== 🔎 every zoom level (60% → 125%): nothing overlaps ===================== */
/* phone: the name keeps to its own column (two lines at most), never under the light / size buttons */
@media (max-width:820px){
  html body header .brand{min-width:0;overflow:hidden}
  html body header .brand b{white-space:normal!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:clip;line-height:1.2!important}
  html body header .zoomui{grid-column:3!important;grid-row:1!important;position:relative;align-self:center;flex-wrap:nowrap}
  /* the menu at the bottom: a long label goes on two short lines instead of being cut */
  html body .tabs button span{white-space:normal!important;line-height:1.15;text-align:center;font-size:11px;overflow:visible;text-overflow:clip;max-width:100%}
  html body .tabs button{min-width:0;padding-inline:2px!important}
}
/* computer: name and account on the first row, search and size on the second, the menu under them on one or two lines.
   This order holds at any width, so a bigger zoom never squeezes the name into a narrow column */
@media (min-width:821px){
  html body header{grid-template-columns:auto minmax(0,1fr) auto!important;}
  html body header .search{width:min(520px,100%)!important;}
  html body header .brand .br-svc,html body header .brand .br-off,html body header .brand span:last-child{display:inline!important}
  html body header .brand{display:block!important}
  html body header .brand>small,html body header .brand>b{display:block}
  html body header .brand>span:not(:last-child)::after{content:" · "}
  html body header .zoomui{justify-self:end;}

  html body header .tabs{flex-wrap:wrap!important;row-gap:4px!important}
}
@media (max-width:820px){html body .tabs{grid-auto-columns:minmax(0,1fr)!important}}
/* 🔎 the size of the site changes only with the button at the top: two fingers on the page do not zoom it (and a double tap
   does not either). The maps keep their own two-finger zoom (they handle it themselves, touch-action:none) */
html,body{touch-action:pan-x pan-y}

/* ===================== 🏙️ the subdivision in 3D ===================== */
.p3d{position:fixed;inset:0;z-index:120;display:flex;flex-direction:column;background:#E9DCC3;zoom:1!important}
html.p3d-on body{overflow:hidden}
.p3d-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 12px;background:var(--z-green-900);color:#fff;padding-top:calc(8px + env(safe-area-inset-top,0px))}
.p3d-bar b{font-family:var(--f-disp);font-size:16px}.p3d-sp{flex:1}
.p3d-bar .btn{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.3);color:#fff;padding:6px 12px;min-height:0;font-size:13px}
.p3d-bar .btn[aria-pressed="true"]{background:var(--z-gold-500);border-color:var(--z-gold-500);color:#1F2B26}
.p3d-q{width:110px;height:34px;border-radius:999px;border:0;padding:0 12px;font:inherit}
.p3d-x{position:static!important;color:#fff!important;background:transparent!important;font-size:22px}
.p3d-c{position:relative;flex:1;min-height:0}.p3d-c canvas{display:block;width:100%!important;height:100%!important;touch-action:none}
.p3d-wait{position:absolute;inset:0;display:grid;place-items:center;margin:0;font-weight:700;color:#5C4A2E}
.p3d-leg{position:absolute;inset-inline-start:12px;bottom:calc(14px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:3px;padding:8px 10px;border-radius:12px;background:rgba(255,255,255,.88);font-size:12px;color:#33413A;box-shadow:var(--z-shadow-3)}
.p3d-leg span{display:flex;align-items:center;gap:6px}.p3d-leg i{width:11px;height:11px;border-radius:4px}
.p3d-leg b{margin-inline-start:auto;padding-inline-start:10px;font-weight:700;font-variant-numeric:tabular-nums}
/* 📅 the month of the works replay, and how many lots at each stage */
.p3d-date{position:absolute;bottom:calc(64px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);z-index:3;display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:center;max-width:calc(100% - 24px);padding:8px 16px;border-radius:999px;background:rgba(18,63,44,.9);color:#fff;font-size:14px;box-shadow:var(--z-shadow-3)}
.p3d-date b{font-size:18px;color:#F2DDA8}.p3d-date>span{display:flex;align-items:center;gap:6px}.p3d-date i{width:11px;height:11px;border-radius:4px;display:inline-block}
.p3d-bar select{min-height:36px;border-radius:10px;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.12);color:inherit;padding:0 8px;font:inherit;font-size:13px;max-width:190px}
.p3d-bar select option,.p3d-bar select optgroup{color:#1F2B26;background:#fff}
.p3d-info{position:absolute;inset-inline-end:12px;top:calc(66px + env(safe-area-inset-top,0px));width:min(300px,calc(100vw - 24px));padding:12px 14px;border-radius:16px;background:#fff;box-shadow:var(--z-shadow-3);display:flex;flex-direction:column;gap:6px}
.p3d-info b{font-family:var(--f-disp);font-size:18px;color:var(--z-green-900)}.p3d-info span{font-size:13px;color:#4E5B55}.p3d-info div{display:flex;gap:6px;}
.p3d-help{position:absolute;bottom:calc(14px + env(safe-area-inset-bottom,0px));inset-inline-end:12px;margin:0;padding:6px 10px;border-radius:999px;background:rgba(18,63,44,.82);color:#fff;font-size:12px}
@media (max-width:820px){.p3d-leg{font-size:11px;bottom:calc(52px + env(safe-area-inset-bottom,0px))}.p3d-help{inset-inline:12px;text-align:center}.p3d-bar b{font-size:14px;flex-basis:100%}}

/* ===================== 🧭 the header on one line (computer): logo and name · search in the middle · account, language, size, light ===================== */
@media (min-width:821px){
  html body header{display:flex!important;flex-wrap:wrap;align-items:center;column-gap:14px!important;row-gap:10px!important;grid-template-areas:none!important;padding:12px 24px 0!important}
  html body header .clogo-w{flex:none}
  html body header .brand{min-width:220px}
  html body header .search{flex:1 1 220px;max-width:440px;width:auto!important;margin-inline:auto!important;justify-self:auto}
  html body header .me{flex:none;align-self:center}
  html body header .zoomui{flex:none;align-self:center;margin:0!important}
  html body header .tabs{flex:1 1 100%;margin:4px -24px 0!important;padding:6px 18px!important}
  html body header .brand b{font-size:21px!important}
}
/* 🏙️ «المجسم 3D» as a section of its own */
#m3dView{padding:12px}
.p3d-host{position:relative;display:flex;flex-direction:column;height:calc((100dvh - 250px) / var(--uiz,1));min-height:460px;border-radius:20px;overflow:hidden;background:#E9DCC3;border:1px solid var(--line);box-shadow:0 18px 40px -30px rgba(18,63,44,.6)}
.p3d-host .p3d-bar{padding-top:8px}
.p3d-host .p3d-info{top:62px}
.p3d-st{display:flex;gap:4px}.p3d-st button{all:unset;cursor:pointer;width:30px;height:30px;display:grid;place-items:center;border-radius:8px;border:1px solid var(--line);font-weight:700;font-size:13px;color:var(--z-grey-600)}
.p3d-st button.on{background:#B8621B;border-color:#B8621B;color:#fff}
.p3d-sn{font-style:normal;font-weight:700}
@media (max-width:820px){#m3dView{padding:8px}.p3d-host{height:calc((100dvh - 230px) / var(--uiz,1));min-height:420px;border-radius:16px}.p3d-host .p3d-bar .btn{font-size:12px;padding:6px 10px}}
.p3d-info div{flex-wrap:wrap}.p3d-info .btn{flex:1 1 auto}
/* the lot card: one small strip at the bottom of the view (the lot, its stage, the area, small icon buttons), so the model stays free */
.p3d-c>.p3d-info{top:auto!important;bottom:calc(12px + env(safe-area-inset-bottom,0px));left:auto;right:auto;inset-inline-end:12px;transform:none;width:auto;max-width:calc(100% - 370px);z-index:4;flex-direction:row;align-items:center;flex-wrap:nowrap;gap:8px;padding:6px 6px;padding-inline-start:12px;border-radius:999px;overflow:hidden;box-shadow:var(--z-shadow-3)}
.p3d-c>.p3d-info b{font-size:15px;white-space:nowrap}.p3d-c>.p3d-info .p3d-meta{font-size:12px;white-space:nowrap}
.p3d-c>.p3d-info .p3d-acts{display:flex;flex-direction:row;flex-wrap:nowrap;gap:3px}
.p3d-c>.p3d-info .p3d-acts .btn{all:unset;cursor:pointer;width:32px;height:32px;display:grid;place-items:center;border-radius:999px;font-size:15px;background:rgba(0,0,0,.05)}
.p3d-c>.p3d-info .p3d-acts .btn:hover{background:rgba(0,0,0,.11)}.p3d-c>.p3d-info .p3d-acts .btn.primary{background:var(--z-green-700)}
.p3d-c>.p3d-info .p3d-acts .btn:focus-visible,.p3d-xx:focus-visible{outline:2px solid var(--z-gold-500)}
.p3d-sn{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;background:#F1F4F2;font-size:12px!important;color:#5C3A12!important;white-space:nowrap}
.p3d-sn i{width:9px;height:9px;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2)}.p3d-sn span{font-size:inherit!important;color:inherit!important;font-weight:700}
.p3d-xx{all:unset;cursor:pointer;width:28px;height:28px;flex:none;display:grid;place-items:center;border-radius:999px;font-size:13px;color:var(--z-grey-600)}
.p3d-xx:hover{background:rgba(0,0,0,.08)}
.p3d-host:has(.p3d-info:not([hidden])) .p3d-help{display:none}
@media (max-width:820px){.p3d-c>.p3d-info{bottom:8px;inset-inline-end:8px;max-width:calc(100% - 16px);gap:6px;padding-inline-start:10px}.p3d-c>.p3d-info .p3d-meta{display:none}.p3d-c>.p3d-info b{font-size:14px}
  .p3d-c>.p3d-info .p3d-acts .btn{width:30px;height:30px;font-size:14px}.p3d-host:has(.p3d-info:not([hidden])) .p3d-leg{display:none}}
/* the legend: a press on a stage shows only that stage */
.p3d-pc{min-width:34px;text-align:end;font-size:11px;color:#7A6A55;font-variant-numeric:tabular-nums}
/* the legend, small: one line of coloured dots with their count (the name and the share on hover); a press still filters */
.p3d-host .p3d-leg{flex-direction:row;flex-wrap:wrap;align-items:center;gap:2px;padding:4px 6px;border-radius:18px;max-width:calc(100% - 24px)}
.p3d-host .p3d-ln,.p3d-host .p3d-pc{display:none}
.p3d-host .p3d-leg span[data-i]{gap:6px;padding:4px 8px;margin:0;border-radius:999px}
.p3d-host .p3d-leg b{margin:0;padding:0;font-size:12px}.p3d-host .p3d-leg i{width:10px;height:10px}
.p3d-host .p3d-lh{flex-basis:100%;padding:2px 6px 4px}
@media (max-width:820px){.p3d-host .p3d-help{display:none}.p3d-host .p3d-leg{bottom:calc(8px + env(safe-area-inset-bottom,0px));inset-inline-start:8px;max-width:calc(100% - 16px)}}
/* 🖱️ the label over a lot under the mouse */
.p3d-tip{position:absolute;z-index:5;pointer-events:none;padding:4px 10px;border-radius:999px;background:rgba(18,63,44,.92);color:#fff;font-size:13px;white-space:nowrap;box-shadow:var(--z-shadow-2)}
.p3d-tip b{color:#F2DDA8;font-size:14px}
/* 🧭 the compass (top corner of the view) and ☀️ the hour of the sun (in the toolbar) */
.p3d-cmp{all:unset;cursor:pointer;position:absolute;top:8px;inset-inline-end:10px;z-index:3;width:40px;height:40px;border-radius:999px;background:rgba(255,255,255,.88);box-shadow:var(--z-shadow-3);display:grid;place-items:center}
.p3d-cmp:focus-visible{outline:2px solid var(--z-gold-500)}.p3d-cmp span{position:relative;width:30px;height:30px;display:grid;place-items:center;transition:transform .15s}
.p3d-cmp b{position:absolute;top:-1px;font-size:11px;font-weight:800;color:var(--z-red-700);line-height:1}.p3d-cmp i{width:0;height:0;border-inline:5px solid transparent;border-bottom:13px solid var(--z-red-700);margin-top:-6px;filter:drop-shadow(0 13px 0 var(--z-grey-600))}
/* v348 — ✏️ quick edit of the lot from the model: a second row of the card, stage buttons + works + visit */
.p3d-c>.p3d-info:has(.p3d-ed){flex-wrap:wrap;border-radius:18px;padding:6px 8px}
.p3d-ed{flex-basis:100%;display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding-top:6px;border-top:1px solid rgba(20,61,44,.12)}
.p3d-ed button{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:4px;padding:6px 10px;min-height:30px;box-sizing:border-box;border-radius:999px;border:1px solid #CFD8D2;background:#fff;color:var(--z-green-900);font-size:13px;font-weight:600;line-height:1}
.p3d-ed button i{width:9px;height:9px;border-radius:50%;display:inline-block}
.p3d-ed button.on{background:var(--z-green-900);color:#fff;border-color:var(--z-green-900)}.p3d-ed button:focus-visible{outline:2px solid var(--z-gold-500)}
.p3d-ed .p3d-eok{font-size:12px;color:#2F6E4E;font-weight:700;display:inline-flex;align-items:center;gap:6px}
/* v362 — 📷 photo, ⏭️ next lot, 📋 today's count, ↩️ undo */
.p3d-ed .p3d-eph{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:30px;box-sizing:border-box;border-radius:999px;border:1px solid #CFD8D2;background:#fff;font-size:15px}
.p3d-ed .p3d-eph:focus-within{outline:2px solid var(--z-gold-500)}
.p3d-ed .p3d-eph{position:relative}.p3d-ed .p3d-ephi{position:absolute;inset:0;width:1px;height:1px;opacity:0;overflow:hidden}   /* (reachable by keyboard and screen readers, not seen) */
.p3d-ed .p3d-enx{background:#EEF3F0;border-color:#9DBFAF}
.p3d-ed .p3d-ecn{font-size:12px;color:var(--z-grey-600);padding:0 4px}.p3d-ed .p3d-ecn b{color:var(--z-green-900)}
.p3d-ed .p3d-eun{background:#FFF4D6;border-color:#E3C774;color:#6B4F00}
@media (max-width:820px){.p3d-ed .p3d-eph{min-height:36px;min-width:40px}}
@media (max-width:820px){.p3d-ed button{padding:8px 10px;min-height:36px;font-size:13px}}
/* v348 — 🔍 zoom buttons under the compass, and the 🚶 walking pad */
.p3d-zm{position:absolute;top:56px;inset-inline-end:10px;z-index:3;display:flex;flex-direction:column;border-radius:12px;overflow:hidden;background:rgba(255,255,255,.92);box-shadow:var(--z-shadow-3)}
.p3d-zm button{all:unset;cursor:pointer;width:40px;height:38px;display:grid;place-items:center;font-size:22px;font-weight:700;color:var(--z-green-900);line-height:1}
.p3d-zm button+button{border-top:1px solid rgba(20,61,44,.15)}
/* v371 — 🏠 home: progress, the census by annex, what needs action; 🧭 the sections in five groups on a computer */
.hm-field{display:grid;grid-template-columns:1fr 1.3fr 1.2fr;gap:18px 22px;padding:16px 18px!important;align-items:start}
.hm-field .hf-h{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:8px}
.hm-field .hf-h b{font-size:15px;color:var(--z-green-900)}.hm-field .hf-h small{font-size:12px;color:#6B7872}
.hm-field .hf-prog{display:flex;flex-direction:column;gap:10px}
.hm-field .hf-prog strong{font-size:30px;color:var(--z-green-900);line-height:1}
.hm-field .hf-bar{display:flex;height:12px;border-radius:6px;overflow:hidden;background:#E1E7E4}
.hm-field .hf-fm{align-self:flex-start}
.hm-field{grid-template-columns:minmax(180px,.8fr) 1.8fr 1.1fr}
.hm-field .hf-anxr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;max-height:236px;overflow-y:auto;padding-inline-end:4px}
.hm-field .hf-anxr:focus-visible{outline:2px solid var(--z-gold-500)}
@media (max-width:560px){.hm-field .hf-anxr{grid-template-columns:1fr}}
.hm-field .hf-row{display:grid;grid-template-columns:minmax(70px,auto) 1fr auto auto;align-items:center;gap:8px;font-size:13px;padding:2px 0}
.hm-field .hf-row i{display:block;height:8px;border-radius:4px;background:#E9DCC3;overflow:hidden}.hm-field .hf-row s{display:block;height:100%;background:#2F6E4E;text-decoration:none}
.hm-field .hf-row b{font-size:13px;color:var(--z-green-900);min-width:34px;text-align:end}.hm-field .hf-row small{font-size:12px;color:#6B7872}
.hm-field .hf-todo{display:flex;flex-direction:column;gap:6px}
.hm-field .hf-t{all:unset;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;background:#FDF1F0;border-inline-start:3px solid var(--z-red-700);font-size:13px;color:#3A2422}
.hm-field .hf-t:hover{background:#FBE3E1}.hm-field .hf-t:focus-visible{outline:2px solid var(--z-gold-500)}
.hm-field .hf-t b{font-size:15px;color:#8C1D18}.hm-field .hf-ok{margin:0;font-size:13px;color:#2F6E4E}
@media (max-width:900px){.hm-field{grid-template-columns:1fr}}
.tab-g{display:none}
@media (min-width:821px){
  html body header .tabs .tab-g{display:inline-flex;align-items:center;font-weight:700;letter-spacing:.02em;color:#A8553A;padding:0 4px 0 2px;margin-inline-start:10px;border-inline-start:1px solid #DCE3DF;padding-inline-start:12px;white-space:nowrap}
  html body header .tabs #tab-home{order:1}
  html body header .tabs .tab-g[data-g="f"]{order:2}html body header .tabs #tab-map{order:3}html body header .tabs #tab-geo{order:4}html body header .tabs #tab-m3d{order:5}html body header .tabs #tab-model{order:6}
  html body header .tabs .tab-g[data-g="l"]{order:7}html body header .tabs #tab-list{order:8}html body header .tabs #tab-req{order:9}html body header .tabs #tab-rqs{order:10}html body header .tabs #tab-stats{order:11}
  html body header .tabs .tab-g[data-g="m"]{order:12}html body header .tabs #tab-msg{order:13}html body header .tabs #tab-cmp{order:14}
  html body header .tabs .tab-g[data-g="a"]{order:15}html body header .tabs #tab-users{order:16}
  html body header .tabs:has(#tab-users[hidden]) .tab-g[data-g="a"]{display:none}}
/* v369 — 📱 field mode: the model on the whole screen, the lot card a bottom sheet with thumb-sized buttons, the toolbar hidden */
.p3d-fmx,.p3d-fmh{display:none}
.p3d-host.p3d-field .p3d-bar,.p3d-host.p3d-field .p3d-leg,.p3d-host.p3d-field .p3d-help,.p3d-host.p3d-field .p3d-prog{display:none!important}
.p3d-host.p3d-field .p3d-c{position:fixed;inset:0;z-index:1000;background:#E6D4B4}
.p3d-host.p3d-field .p3d-date{position:fixed;top:calc(10px + env(safe-area-inset-top,0px));bottom:auto;z-index:1002;max-width:calc(100% - 24px)}
.p3d-host.p3d-field .p3d-fmx:not([hidden]){display:inline-flex;align-items:center;gap:4px;position:absolute;z-index:6;top:calc(10px + env(safe-area-inset-top,0px));inset-inline-start:calc(10px + env(safe-area-inset-right,0px));margin:0;border:0;cursor:pointer;box-sizing:border-box;border-radius:999px;background:rgba(18,63,44,.92);color:#fff;font:inherit;font-weight:700;box-shadow:var(--z-shadow-3)}
.p3d-host.p3d-field .p3d-fmx:focus-visible{outline:2px solid var(--z-gold-500);outline-offset:2px}
.p3d-host.p3d-field .p3d-fmh:not([hidden]){display:block;position:absolute;z-index:4;inset:auto 0 0 0;padding:16px 18px calc(18px + env(safe-area-inset-bottom,0px));background:#FAFBFA;color:var(--z-green-900);font-size:15px;font-weight:600;text-align:center;border-radius:20px 20px 0 0;box-shadow:var(--z-shadow-3)}
.p3d-host.p3d-field .p3d-zm{top:calc(70px + env(safe-area-inset-top,0px))}.p3d-host.p3d-field .p3d-cmp{top:calc(10px + env(safe-area-inset-top,0px))}

.p3d-host.p3d-field .p3d-c>.p3d-info{left:0!important;right:0!important;inset-inline:0!important;bottom:0!important;top:auto!important;max-width:none!important;width:auto!important;border-radius:20px 20px 0 0;padding:12px 14px calc(14px + env(safe-area-inset-bottom,0px));flex-wrap:wrap;gap:8px;box-shadow:var(--z-shadow-3);max-height:62%;overflow-y:auto}
.p3d-host.p3d-field .p3d-c>.p3d-info>b{font-size:21px}
.p3d-host.p3d-field .p3d-c>.p3d-info .p3d-meta{display:block!important;flex-basis:100%;order:3;font-size:13px}
.p3d-host.p3d-field .p3d-ed{order:4}
/* (the site scales the page on phones and keeps buttons at 48 px with !important: the field buttons go above it) */
.p3d-host.p3d-field .p3d-ed button,.p3d-host.p3d-field .p3d-ed .p3d-eph{min-height:56px!important;font-size:16px;padding:10px 14px}
.p3d-host.p3d-field .p3d-ed .p3d-ev,.p3d-host.p3d-field .p3d-ed .p3d-eph,.p3d-host.p3d-field .p3d-ed .p3d-enx{flex:1 1 28%;justify-content:center;min-height:72px!important;font-size:18px;border-radius:16px}
.p3d-host.p3d-field .p3d-zm button{min-height:60px!important;width:60px;height:60px}
.p3d-host.p3d-field .p3d-fmx:not([hidden]){min-height:56px!important;font-size:17px;padding:10px 18px}
.p3d-host.p3d-field .p3d-ed .p3d-enx{background:var(--z-green-900);color:#fff;border-color:var(--z-green-900)}
.p3d-host.p3d-field .p3d-ed .p3d-ecn,.p3d-host.p3d-field .p3d-ed .p3d-epd,.p3d-host.p3d-field .p3d-ed .p3d-eok{flex-basis:auto}
.p3d-host.p3d-field .p3d-pad{bottom:calc(20px + env(safe-area-inset-bottom,0px))}
/* v368 — 📷 photo of the new stage, the census by annex, the route */
.p3d-ed .p3d-eask{position:relative;cursor:pointer;display:inline-flex;align-items:center;gap:4px;padding:6px 10px;border-radius:999px;background:var(--z-green-900);color:#fff;font-size:13px;font-weight:700;animation:p3dAsk 1.6s ease-in-out 3}
.p3d-ed .p3d-eask:focus-within{outline:2px solid var(--z-gold-500)}
@keyframes p3dAsk{50%{box-shadow:0 0 0 6px rgba(200,162,75,.45)}}@media (prefers-reduced-motion:reduce){.p3d-ed .p3d-eask{animation:none}}
.p3d-anxw{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}.p3d-anx{display:inline-flex;align-items:center;gap:6px;font-size:13px}
.p3d-anx i{display:inline-block;width:70px;height:7px;border-radius:4px;background:rgba(255,255,255,.25);overflow:hidden}.p3d-anx s{display:block;height:100%;background:#7BD389;text-decoration:none}
.p3d-rtx{cursor:pointer;text-decoration:none;margin-inline-start:6px;opacity:.85}
.p3d-zm .p3d-me{font-size:18px}.p3d-zm .p3d-me:disabled{opacity:.5;cursor:progress}   /* v365 📍 I am here */
.p3d-ed .p3d-epd{font-size:12px;font-weight:700;color:#8A5A00;background:#FFF4D6;border-radius:999px;padding:4px 8px}   /* v365 📶 waiting for the network */.p3d-zm button:hover{background:#EEF3F0}.p3d-zm button:focus-visible{outline:2px solid var(--z-gold-500);outline-offset:-2px}
.p3d-pad{position:absolute;z-index:4;inset-inline-start:12px;bottom:56px;display:grid;grid-template-columns:repeat(3,48px);grid-template-rows:repeat(2,48px);gap:6px;direction:ltr;touch-action:none;user-select:none;-webkit-user-select:none}
.p3d-pad[hidden]{display:none}
.p3d-pad button{all:unset;cursor:pointer;border-radius:14px;background:rgba(18,63,44,.82);color:#fff;font-size:20px;display:grid;place-items:center;box-shadow:var(--z-shadow-2);touch-action:none}
.p3d-pad button:active,.p3d-pad button.on{background:var(--z-gold-500);color:var(--z-green-900)}
.p3d-pad .up{grid-column:2;grid-row:1}.p3d-pad .lt{grid-column:1;grid-row:2}.p3d-pad .dn{grid-column:2;grid-row:2}.p3d-pad .rt{grid-column:3;grid-row:2}
.p3d-pad .ex{grid-column:3;grid-row:1;font-size:13px;font-weight:700;background:rgba(179,38,30,.88)}
.p3d-pad .ex2{grid-column:1;grid-row:1;font-size:18px}
@media (max-width:820px){.p3d-zm{top:48px}.p3d-zm button{width:36px;height:36px}.p3d-pad{bottom:64px;inset-inline-start:8px;grid-template-columns:repeat(3,52px);grid-template-rows:repeat(2,52px)}}
.p3d-sunw{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#fff;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.3);border-radius:999px;padding:3px 10px}
.p3d-sunw input{width:110px;accent-color:var(--z-gold-500)}.p3d-sunw output{min-width:38px;font-variant-numeric:tabular-nums}
@media (max-width:820px){.p3d-cmp{top:6px;width:34px;height:34px}.p3d-sunw input{width:80px}.p3d-sunw{font-size:12px}}
/* 📊 the progress of the whole subdivision, small in the top corner of the view */
.p3d-prog{position:absolute;top:8px;inset-inline-start:10px;z-index:3;display:flex;align-items:center;gap:8px;padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.88);font-size:12px;color:#33413A;box-shadow:var(--z-shadow-3);pointer-events:auto}
.p3d-prog b{font-size:13px;color:var(--z-green-900)}.p3d-prog i{display:flex;width:110px;height:6px;border-radius:99px;overflow:hidden;background:#E1E7E4}.p3d-prog em{display:block;height:100%}
@media (max-width:820px){.p3d-prog{top:6px;inset-inline-start:6px;padding:3px 8px;font-size:11px}.p3d-prog i{width:70px;height:5px}}
.p3d-leg{z-index:3}.p3d-leg span[data-i]{cursor:pointer;padding:2px 4px;margin:0 -4px;border-radius:6px}
.p3d-leg span[data-i]:hover{background:rgba(0,0,0,.06)}.p3d-leg span[data-i]:focus-visible{outline:2px solid var(--z-gold-500)}
.p3d-leg.on span[data-i]:not(.on){opacity:.42}.p3d-leg span.on{background:rgba(200,162,75,.28);font-weight:700}
.p3d-lh div{white-space:nowrap}.p3d-lh strong{font-size:13px;color:var(--z-green-900)}
.p3d-lh{font-style:normal;font-size:12px;font-weight:700;color:#8A4512;cursor:pointer;padding-bottom:3px;margin-bottom:2px;border-bottom:1px solid rgba(0,0,0,.1)}
.p3d-lh u{text-decoration:none;margin-inline-start:6px;color:var(--z-green-900)}
@media (min-width:821px){
  html body header .clogo-w{order:1!important}html body header .brand{order:2!important;flex:0 1 300px!important}html body header .search{order:3!important}
  html body header .me{order:4!important}html body header .zoomui{order:5!important}html body header .tabs{order:6!important}
  html body header .brand .br-svc,html body header .brand .br-off,html body header .brand>span:last-child{display:none!important}
  html body header .me .mename{max-width:130px}
}
/* the header without a picture (until a photo of Laayoune is chosen): a quiet light background */
@media (min-width:821px){html body header{background:linear-gradient(to left,#F7F9F8,#F1F4F2)!important}html body header::before{display:none!important}}
@media (max-width:820px){html body header::before{display:none!important}html body header{background:linear-gradient(180deg,#F7F9F8,#F1F4F2)!important}}

/* v413 — the finish of a roofed shop (for the 3D model): shown under the stages only when «طابق سفلي + سقف» is chosen */
.fi-box{margin-top:10px;padding-top:10px;border-top:1px dashed #D3DBD7}.fi-box b{display:block;font-size:13px;margin-bottom:6px}
#lotForm:not(:has(input[name="s"][value="4"]:checked)) .fi-box{display:none}

/* v416 — the photos of Laayoune (the commune's own, 2026): the Mechouar square behind the sign-in card, the avenue of the commune in the greeting of the home page */
/* v419 — the gate of the city (باب مدينة العيون, the commune's photo, cropped without its phone numbers and website) at the top of the plan's side card */
.pempty .gate{background:linear-gradient(180deg,rgba(255,255,255,0) 60%,var(--panel)),url(img/laayoune-gate.jpg?v=1) center 40%/cover no-repeat!important;height:190px!important}

/* v420 — a decoration in the top bar: a Moroccan zellige of eight-point stars in the commune's green and gold, faint and fading
   away from the name, and under the bar a thin band of the same stars on the red / gold / green line */
@media (min-width:821px){
  html body #app > header::before{display:block!important;content:""!important;position:absolute!important;inset:0 0 4px 0!important;width:auto!important;
    background:url(img/zellige.svg?v=1) 0 0/52px 52px repeat!important;opacity:.28!important;z-index:0!important;pointer-events:none;
    -webkit-mask-image:none!important;mask-image:none!important}
  html body #app > header::after{display:block!important;content:""!important;position:absolute!important;inset:auto 0 0 0!important;height:8px!important;
    background:url(img/zellige.svg?v=1) 0 50%/8px 8px repeat-x,linear-gradient(90deg,#C1272D 0 33%,#E8A15B 33% 66%,var(--z-green-500) 66%)!important;opacity:.9!important}
  html body #app > header>*{position:relative;z-index:1}
}
@media (max-width:820px){
  html body #app > header::before{display:block!important;content:""!important;position:absolute!important;inset:0!important;width:auto!important;
    background:url(img/zellige.svg?v=1) 0 0/40px 40px repeat!important;opacity:.22!important;z-index:0!important;pointer-events:none;
    -webkit-mask-image:none!important;mask-image:none!important}
  html body #app > header>*{position:relative;z-index:1}
}
/* v423 — the owner: the search in the middle of the bar; the seal, the name of the commune and of the department clear on the zellige.
   The seal and the name sit on a soft ivory plate (the zellige goes round it), the small line in a darker, bolder ink */
@media (min-width:821px){
  html body #app > header .clogo-w,html body #app > header .brand{background:rgba(251,248,241,.94);position:relative}
  html body #app > header .clogo-w{border-radius:18px 0 0 18px;box-shadow:0 6px 18px -12px rgba(18,63,44,.35)}
  html body #app > header .brand{border-radius:0 18px 18px 0;box-shadow:0 6px 18px -12px rgba(18,63,44,.35)}
  html[dir="rtl"] body #app > header .clogo-w,html body #app[dir="rtl"] > header .clogo-w{border-radius:0 18px 18px 0}
  html[dir="rtl"] body #app > header .brand,html body #app[dir="rtl"] > header .brand{border-radius:18px 0 0 18px}
  html body #app > header .brand small{color:#56411C!important;font-weight:700!important;opacity:1!important}
  html body #app > header .brand b{color:#0E3A2C!important}
  html body #app > header .clogo{filter:drop-shadow(0 3px 5px rgba(18,63,44,.25))!important}
  /* the search, centred on the bar */
  html body #app > header .search{position:absolute!important;left:50%;width:380px;right:auto!important;transform:translateX(-50%)!important;top:var(--srch-top,26px)!important;
    max-width:none!important;margin:0!important;z-index:3}
  html body #app > header .search input{background:rgba(255,255,255,.97)!important;box-shadow:0 8px 20px -14px rgba(18,63,44,.5)!important}
}
/* v438 — the owner: on the phone the menu sits at the bottom of the screen, as in an app (different from the computer). The phone rule «#app > header > * {position:relative}» above was keeping it at the top */
@media (max-width:820px){html body #app > header > .tabs{position:fixed!important;inset-inline:0!important;bottom:0!important;top:auto!important;margin:0!important;z-index:40}}

/* v440 — the owner: password fields in their own small form (no change to the look) */
form.pw-f{display:contents}
/* v440 — the owner: on the phone the stage chips above the plan wrap onto new lines instead of being cut at the side;
   the buttons of the accounts page are big enough for a finger */
@media (max-width:820px){

  #usersCard .uc-b,#usersCard .uc-seg>button{min-height:44px;padding-block:8px}
  #usersCard .uc-sw{min-height:44px}
}
/* v441 — the owner: a new sign-in page. The real subdivision drawn as an engineer's blueprint (gold lines on the commune's green),
   the blocks traced and the lots filled once when the page opens; the form on a calm sand side, the logo exactly as it is,
   the titles in Moroccan Ruqaa calligraphy. Every button and step of signing in is unchanged. The 3D film (img/login-3d.mp4) is put in by app.js (#lgPlan). */
html body #login:not([hidden]){display:grid!important;grid-template-columns:minmax(400px,44%) 1fr;padding:0!important;align-items:stretch;overflow-y:auto}
html body #login::before{display:none!important}
#lgPlan{grid-column:2;grid-row:1;position:relative;min-height:100vh;overflow:hidden;color:#F4EAD5;
  background:radial-gradient(120% 90% at 30% 40%,#1A5240 0,#0E3A2C 55%,#0D2B1F 100%)}
#lgPlan::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.22;
  background-image:linear-gradient(rgba(233,205,150,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(233,205,150,.18) 1px,transparent 1px);background-size:28px 28px}
#lgPlan video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;animation:lgIn 1.2s ease-out both}
#lgPlan::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,rgba(10,43,33,.92) 0,rgba(10,43,33,.45) 30%,rgba(10,43,33,0) 55%),linear-gradient(to left,rgba(10,43,33,.35),rgba(10,43,33,0) 25%)}





@keyframes lgIn{from{opacity:0}to{opacity:1}}
#lgPlan .lgcap{position:absolute;z-index:1;inset-inline:6%;bottom:6%;display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
#lgPlan .lgcap h2{margin:0;font:700 clamp(40px,4.6vw,64px)/1.15 'Aref Ruqaa',serif;color:#F4EAD5}
#lgPlan .lgcap p{margin:8px 0 0;font:400 15px/1.8 'IBM Plex Sans Arabic',sans-serif;color:rgba(244,234,213,.75);max-width:34ch}


#lgPlan .fl{position:absolute;z-index:2;inset-block:0;inset-inline-start:0;width:5px;background:linear-gradient(180deg,#C1272D 0 50%,var(--z-green-700) 50%)}
html body #login .lgcard{grid-column:1;grid-row:1;align-self:center;justify-self:center;margin:48px auto!important;width:min(380px,calc(100% - 48px));
  background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;gap:4px}
html body #login .lgcard::after,html body #login .lgcard::before{display:none!important}
html body #login .lglogo{height:118px;width:auto;margin:0 0 10px;filter:drop-shadow(0 10px 16px rgba(14,58,44,.2))}
html body #login .lgorg{color:#8A6A2A;font-weight:600;font-size:13px}
html body #login .lgcard h1{font:700 38px/1.3 'Aref Ruqaa',serif!important;color:#0E3A2C;margin:0 0 2px}
html body #login .lgsub{font-size:12px;line-height:1.8;color:#6B6553;margin:0 0 14px;align-self:stretch}
html body #login .lgcard .f>span{font-weight:600;color:#373328;font-size:13px}
html body #login .lgcard input:not([type=checkbox]){border-radius:10px!important;background:#FAFBFA!important;border:1px solid #D5C3A4!important;min-height:50px;font-size:15px}
html body #login .lgcard input:focus{border-color:#0E3A2C!important;box-shadow:0 0 0 3px rgba(217,180,106,.45)!important;outline:0}
html body #login .lgcard .btn.primary{border-radius:10px;min-height:52px;font-size:16px;font-weight:700;color:#F4EAD5!important;background:#0E3A2C!important;border:0!important;
  box-shadow:inset 0 -3px 0 #D9B46A,0 10px 22px rgba(14,58,44,.25)}
html body #login .lgcard .btn.primary:hover{background:#1A5240!important}
html body #login .lgcard .btn.primary:focus-visible{outline:3px solid #D9B46A;outline-offset:2px}
html body #login .lg-inst{order:99;border-radius:999px!important;background:transparent!important;border:1px solid #D5C3A4!important;color:#5E4E2A!important;font-size:13px;margin-top:14px}
html body #login .lglink{color:#0E3A2C}
html body #login .lang-login,html body #login .lg-night{position:fixed!important;top:16px!important}
html body #login .lang-login{inset-inline-end:16px!important}html body #login .lg-night{inset-inline-start:auto!important;inset-inline-end:76px!important}
@media (max-width:820px){
  html body #login:not([hidden]){display:flex!important;flex-direction:column}
  #lgPlan{order:-1;flex:none;min-height:0;height:220px}
  #lgPlan video{object-position:50% 45%}
  #lgPlan::after{background:linear-gradient(0deg,rgba(10,43,33,.95),rgba(10,43,33,.1) 75%)}
  #lgPlan .lgcap{bottom:14px;inset-inline:18px;z-index:1}#lgPlan .lgcap h2{font-size:30px}#lgPlan .lgcap p{display:none}

  #lgPlan .fl{inset-block:auto 0;inset-inline:0;width:auto;height:4px;z-index:2;background:linear-gradient(90deg,#C1272D 0 50%,var(--z-green-700) 50%)}
  html body #login .lgcard{margin:24px auto 32px!important;width:calc(100% - 40px)}
  html body #login .lglogo{height:92px}html body #login .lgcard h1{font-size:30px!important}
}


html.night body #login .lgsub{border-color:#2B3832}



/* v445 — the owner: the sign-in page as it was (film | form), only with decoration: a band of zellige at the top and the bottom
   of the form side, a faint zellige in the sand, and a gold divider with a star under the titles; on medium screens the film keeps
   half of the page */

html body #login .lgsub{border-bottom:0!important;position:relative;padding-bottom:22px!important;
  background:linear-gradient(90deg,rgba(217,180,106,0),#D9B46A 30%,#D9B46A 42%,rgba(217,180,106,0) 42%,rgba(217,180,106,0) 58%,#D9B46A 58%,#D9B46A 70%,rgba(217,180,106,0)) center bottom 6px/100% 1px no-repeat}
html body #login .lgsub::after{content:"";position:absolute;left:50%;background:#D9B46A;}
@media (min-width:821px) and (max-width:1180px){html body #login:not([hidden]){grid-template-columns:1fr 1fr}}


/* v446 — the owner: «more decoration»: a thin gold frame around the form side with a gold star at each corner, and a large faded
   Moroccan rosette behind the logo (desktop; the phone keeps the bands and the rosette) */
html body #login:not([hidden]) .lgcard::after{content:""!important;position:absolute;inset:-28px -22px;width:auto!important;height:auto!important;border-radius:0!important;z-index:-1;pointer-events:none;}
/* (v449 — the owner: «the line must not cross the logo»: the gold frame now wraps the form itself, not the whole side) */
@media (max-width:820px){html body #login:not([hidden]) .lgcard::after{display:none!important}}
html body #login:not([hidden]) .lgcard::before{content:""!important;position:absolute;z-index:-1;width:300px;height:300px;top:-92px;left:50%;margin-left:-150px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23C9A04E' stroke-width='1.2'%3E%3Ccircle cx='100' cy='100' r='96'/%3E%3Ccircle cx='100' cy='100' r='88'/%3E%3Crect x='38' y='38' width='124' height='124'/%3E%3Crect x='38' y='38' width='124' height='124' transform='rotate(45 100 100)'/%3E%3Crect x='60' y='60' width='80' height='80'/%3E%3Crect x='60' y='60' width='80' height='80' transform='rotate(45 100 100)'/%3E%3Ccircle cx='100' cy='100' r='30'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;opacity:.32;pointer-events:none}

/* v448 — the owner: «a better night»: the form side in the commune's deep green, the zellige bands kept, the rosette faint */


/* v450 — the owner: «remove the emblems behind the logo, nothing with symbols, only good decoration»: no rosette, no stars;
   the bands and the background use a plain lozenge lattice (img/lozenge.svg), the frame is four plain gold lines, the divider
   a small plain diamond */
html body #login:not([hidden]) .lgcard::before{display:none!important}
html body #login:not([hidden]) .lgcard::after{background:
  linear-gradient(#D9B46A,#D9B46A) 0 0/100% 1px no-repeat,linear-gradient(#D9B46A,#D9B46A) 0 100%/100% 1px no-repeat,
  linear-gradient(#D9B46A,#D9B46A) 0 0/1px 100% no-repeat,linear-gradient(#D9B46A,#D9B46A) 100% 0/1px 100% no-repeat!important}
html body #login .lgsub::after{width:8px;height:8px;margin-left:-4px;bottom:2.5px;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}
html body #login:not([hidden]){background:url(img/lozenge.svg) 0 0/32px repeat-x,url(img/lozenge.svg) 0 100%/32px repeat-x,
  radial-gradient(60% 55% at 22% 50%,rgba(255,250,238,.9),rgba(255,250,238,0) 70%),
  linear-gradient(rgba(244,234,213,.94),rgba(244,234,213,.94)),url(img/lozenge.svg) 0 0/40px repeat,#F4EAD5!important}
@media (max-width:820px){
  html body #login:not([hidden]){background:url(img/lozenge.svg) 0 100%/30px repeat-x,linear-gradient(rgba(244,234,213,.94),rgba(244,234,213,.94)),url(img/lozenge.svg) 0 0/40px repeat,#F4EAD5!important}}
/* v450 — the owner: «remove that line»: no gold frame around the form */
html body #login:not([hidden]) .lgcard::after{display:none!important}

/* v452 — the owner: «the account edit window no longer shows everything»: the windows (.ocr-dlg) were set overflow:hidden above,
   so a tall window (account rights) was cut with no way to scroll; now overflow:auto, it scrolls inside its 92vh */

/* v458 — the owner: on the phone the small buttons of the accounts page big enough for a finger: «✔ الكل / ✖ لا شيء» of the
   rights (25 px high). (The «−» of the organisation chart is inside the chart drawn scaled down to fit: left as it is) */
@media (max-width:820px){
  html body .cap-ga{min-height:44px!important;padding-inline:14px!important}
}
/* v463 — the owner: the organisation chart on the phone opens as a list; the names in it (tap to edit the account) big enough for a finger */
@media (max-width:820px){html body .org-tree .org-p{min-height:40px!important;display:inline-flex!important;align-items:center}}

/* v465 — the owner: «make the design real»: the view «🛰️ واقعي» of the design (built in app.js, REALMAP) */
#map:not(.real) .rl-ground,#map:not(.real) #rlDots{display:none}
#map.real .rl-ground{fill:url(#rlSand)}
#map.real #bg path.road{fill:url(#rlAsph);stroke:#3B3F46;stroke-width:.35}
#map.real #bg path.walk{fill:url(#rlPave);stroke:#6E5A50;stroke-width:.25}
#map.real #bg path.gfill,#map.real #bg path.green{fill:url(#rlGrass)}
#map.real #bg path.park{fill:url(#rlAsph)}
#map.real #lots{filter:drop-shadow(.35px .55px .45px rgba(0,0,0,.45))}
#map.real #lots path{stroke:rgba(70,62,52,.55)}
#map.real #lots path.rl0{fill:url(#rlDirt)}#map.real #lots path.rl1{fill:url(#rlSlab)}#map.real #lots path.rl2{fill:url(#rlBlock)}
#map.real #lots path.rl3{fill:url(#rlRaw)}#map.real #lots path.rl4,#map.real #lots path.rl5{fill:url(#rlRoof)}
#map.real #rlDots{pointer-events:none}#map.real #rlDots circle{stroke:#fff;stroke-width:.3}
#map.real #labels text{fill:#1F2622;stroke:rgba(255,255,255,.85);stroke-width:.22px}
/* v469 — the user guide (❓): the section name on the right, its line beside it */
.help-t th{text-align:start;white-space:nowrap;padding:6px 10px;vertical-align:top;font-weight:700}
.help-t{width:100%;table-layout:auto}
.help-t td{padding:6px 10px;line-height:1.7;white-space:normal!important;overflow-wrap:anywhere}

/* v470 — the owner (phone): «the designs are small» — the buttons above the plan, the real map and the 3D model take one row
   that slides sideways with the finger (stage chips, modes, crafts; the 3D buttons), so the plan and the model get the screen.
   (replaces the wrapping of v440 on the phone only; nothing removed, every button is still there) */
@media (max-width:820px){
  #strip{flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;row-gap:0;gap:6px;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;padding-block:6px!important}
  #strip::-webkit-scrollbar{display:none}
  #strip>*{flex:0 0 auto!important}
  #strip .chip,#strip .modebtn{font-size:12px;padding:4px 10px;min-height:32px;white-space:nowrap}
  #strip .sep{display:none}
  #strip .cr-pick select{max-width:150px}
  .p3d-host .p3d-bar{flex-wrap:nowrap!important;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;padding:6px 8px;gap:6px}
  .p3d-host .p3d-bar::-webkit-scrollbar{display:none}
  .p3d-host .p3d-bar>*{flex:0 0 auto!important}
  .p3d-host .p3d-bar b{flex-basis:auto!important;font-size:13px;white-space:nowrap}
  .p3d-host .p3d-bar .p3d-sp{display:none}
  .p3d-host .p3d-bar .btn,.p3d-host .p3d-bar select,.p3d-host .p3d-bar label{white-space:nowrap}
  .p3d-host .p3d-bar .p3d-q{width:110px}
}
/* v485 — the owner: «when the site is zoomed nothing may run into anything else». The zoom of the site (🔍) makes the page
   narrower than the window, and the rules written for a window width do not see it; these follow the real width of the bar.
   K1: under 1330 px of real width the search box leaves the middle of the bar (where it floated over the name and the buttons)
   and takes its place in the row, between the title and the buttons, shrinking down to 150 px, then dropping to its own row. */
@media (min-width:821px){
  html body #app > header{container-type:inline-size;container-name:hdr}
  @container hdr (max-width:1330px){
    html body #app > header .search{position:relative!important;left:auto!important;right:auto!important;top:auto!important;transform:none!important;
      width:auto!important;flex:1 1 150px!important;min-width:150px!important;max-width:380px!important;order:2!important;margin:0!important;align-self:center}
    html body #app > header .search input{width:100%!important;min-width:0!important}
  }
  /* K2: the buttons of the real map that do not fit on one row go to a second row (they were cut off, out of the map) */
  #satWrap .sat-bar{flex-wrap:wrap!important;overflow:visible!important;row-gap:6px}
}
/* v486 — the owner: fewer buttons in sight, nothing removed.
   T3: the tools of the 3D model used less often open in a panel under its bar («🧰 أدوات»). */
.p3d-host .p3d-more{position:absolute!important;inset-inline:10px;z-index:7;flex-wrap:wrap!important;overflow:visible!important;border-radius:14px;box-shadow:var(--z-shadow-3);padding:10px!important;gap:8px;height:auto!important}
.p3d-host .p3d-more[hidden],#satWrap .sat-tools-p[hidden]{display:none!important}
.p3d-host .p3d-tools.has-on::after,#satTools.has-on::after{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#F2C94C;margin-inline-start:6px;vertical-align:middle}
/* T4: the same for the real map, on a computer */
#satWrap .sat-tools-p{inset-inline-start:10px;flex-wrap:wrap!important;overflow:visible!important;max-width:calc(100% - 20px)}
/* T1: the sections on one row; those that do not fit are listed under «⋯ المزيد» */
@media (min-width:821px){
  html body header .tabs{position:relative;overflow:visible!important}
  html body header .tabs .tabs-pop{position:absolute;top:calc(100% + 6px);inset-inline-end:8px;z-index:60;display:flex;flex-direction:column;align-items:stretch;gap:2px;min-width:210px;max-height:70vh;overflow:auto;padding:8px;border-radius:14px;background:#F7F9F8;border:1px solid var(--line);box-shadow:0 18px 40px -20px rgba(18,63,44,.55)}
  html body header .tabs .tabs-pop[hidden],html body header .tabs .tabs-more[hidden]{display:none!important}
  html body header .tabs .tabs-pop button{justify-content:flex-start;width:100%}
  html body header .tabs .tabs-more{font-weight:700;order:999!important}
}
@media (max-width:820px){html body header .tabs .tabs-more,html body header .tabs .tabs-pop{display:none!important}}
/* v487 — the review of the sections, on a computer.
   V1: the filters of the list fold behind «⚙️ التصفية» (the list showed one lot on a laptop); the Excel-copy reminder is one thin line. */
@media (min-width:821px){
  #listView .lx-bar.lx-compact .lx-ftog{display:block}
  #listView .lx-bar.lx-compact:not(.open) .lx-row > .lx-seg,#listView .lx-bar.lx-compact:not(.open) .lx-row > .lx-sel,#listView .lx-bar.lx-compact:not(.open) .lx-row > #lxReset{display:none}
  #listView .lx-bar.lx-compact:not(.mini) .lx-row{display:flex}
  #listView #bkList .bk-warn{padding:4px 12px;font-size:13px;gap:8px;min-height:0}
  #listView #bkList .bk-warn .btn{padding:3px 10px;font-size:12px;min-height:0}
  /* V4: the strip of chapters in the statistics fades at its end instead of cutting a name in two */
  #statsView .sx-nav{padding-inline-end:48px;-webkit-mask-image:linear-gradient(to left,transparent 0,#000 48px);mask-image:linear-gradient(to left,transparent 0,#000 48px)}
  html[dir="rtl"] #statsView .sx-nav,#app[dir="rtl"] #statsView .sx-nav{-webkit-mask-image:linear-gradient(to right,transparent 0,#000 48px);mask-image:linear-gradient(to right,transparent 0,#000 48px)}
  /* V5: «المراسلات» is already the title of the page */
  .msg-head > h2{display:none}
}
/* v489 — N2: on a phone too the filters of the list fold behind «⚙️ التصفية» (one lot showed under them) */
@media (max-width:820px){
  #listView .lx-bar.lx-compact .lx-ftog{display:block}
  #listView .lx-bar.lx-compact:not(.open) .lx-row > .lx-seg,#listView .lx-bar.lx-compact:not(.open) .lx-row > .lx-sel,#listView .lx-bar.lx-compact:not(.open) .lx-row > #lxReset{display:none}
}
/* N3: on a computer each row of the list is one line high (stage and works side by side, name and craft side by side) */
@media (min-width:821px){
  #listView .lx-item{padding-block:6px!important;min-height:0!important}
  #listView .lx-item .lx-st,#listView .lx-item .lx-who,#listView .lx-item .lx-ar,#listView .lx-item .lx-vi{display:flex!important;flex-direction:row!important;flex-wrap:wrap;align-items:center;column-gap:8px;row-gap:0}
  #listView .lx-item small{margin:0!important}
  #listView #listTbl{row-gap:4px}
}
/* v490 — the camera of the ID-card scan inside the window (Android app): the picture on the whole screen, a frame the size of a card */
.ocr-cam{position:fixed;inset:0;z-index:5000;background:#000;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:10px;padding:14px}
.ocr-cam video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
.ocr-cam-frame{position:absolute;top:50%;left:50%;width:min(90vw,150vh * .55);aspect-ratio:1.586;transform:translate(-50%,-56%);border:3px solid #F2C94C;border-radius:14px;box-shadow:0 0 0 200vmax rgba(0,0,0,.38);pointer-events:none}
.ocr-cam p{position:relative;margin:0;color:#fff;font-weight:700;text-align:center;font-size:14px;text-shadow:0 1px 3px #000}
.ocr-cam-b{position:relative;display:flex;gap:10px;width:100%;max-width:460px}
.ocr-cam-b .btn{flex:1;min-height:52px;font-size:16px}
.ocr-fail{display:flex;flex-direction:column;gap:10px;width:100%}
.ocr-fail .ocr-btns{display:flex;flex-direction:column;gap:8px}
.ocr-fail .ocr-btns .btn{width:100%;min-height:44px}
/* v491 — A2: a shorter top bar on a computer (it took 146 px with the sections): smaller emblem and title, less padding.
   Nothing is removed; the phone is not touched. */
@media (min-width:821px){
  html body #app > header{padding:6px 24px 0!important;row-gap:4px!important;--srch-top:12px}
  html body #app > header .clogo-w{padding:3px 8px!important}
  html body #app > header .clogo{height:42px!important;width:auto!important;max-height:42px!important}
  html body #app > header .brand{padding:4px 12px!important}
  html body #app > header .brand b{font-size:17px!important;line-height:1.25!important}
  html body #app > header .brand small{font-size:11px!important;line-height:1.2!important}
  html body #app > header .tabs{margin-top:0!important;padding-block:3px!important}
}

/* v492 — work aids: 🎤 dictation and 💬 ready replies under the note fields, ⭐ saved filters of the list, ✍️ signature pad of the inspection */
.ta-aids{display:flex;flex-direction:column;gap:6px;margin-top:6px;width:100%}
.ta-row{display:flex;flex-wrap:wrap;gap:6px}
.ta-b{border:1px solid var(--line);background:#fff;border-radius:999px;padding:4px 12px;font:inherit;font-size:13px;font-weight:700;color:var(--acc-text);cursor:pointer;white-space:nowrap;min-height:30px}
.ta-b:hover{border-color:var(--accent)}
.ta-b.on{background:var(--z-red-700);border-color:var(--z-red-700);color:#fff}
.ta-b[aria-expanded="true"]{background:var(--accent);border-color:var(--accent);color:#fff}
.ta-pop{border:1px solid var(--line);border-radius:12px;background:#fff;padding:8px;display:flex;flex-direction:column;gap:6px;max-height:260px;overflow:auto}
.ta-r{display:flex;gap:6px;align-items:stretch}
.ta-use{flex:1;min-width:0;text-align:start;border:1px solid var(--line);background:#F7FBF8;border-radius:10px;padding:8px 10px;font:inherit;font-size:14px;line-height:1.6;cursor:pointer;color:inherit;white-space:normal}
.ta-use:hover{border-color:var(--accent)}
.ta-del,.lxv-x{flex:none;border:0;background:transparent;color:#9B1C14;cursor:pointer;font-size:13px;padding:0 8px;border-radius:8px;min-width:32px}
.ta-del:hover,.lxv-x:hover{background:var(--z-red-100)}
.ta-none{margin:2px 4px;color:#6B7872;font-size:13px}
.ta-save{align-self:flex-start}
#listView .lx-views{border-top:1px solid var(--line);margin-top:8px;padding-top:8px;display:flex;flex-direction:column;gap:8px}
#listView .lx-views[hidden]{display:none}
.lxv-h{font-size:14px}
.lxv-list{display:flex;flex-wrap:wrap;gap:6px}
.lxv-it{display:inline-flex;align-items:stretch;border:1px solid var(--line);border-radius:999px;background:#F7FBF8;overflow:hidden;max-width:100%}
.lxv-go{border:0;background:transparent;font:inherit;font-size:14px;font-weight:700;padding:6px 12px;cursor:pointer;color:var(--acc-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:260px;min-height:34px}
.lxv-go:hover{background:#E6F4EA}
.lxv-new{display:flex;flex-wrap:wrap;gap:6px}
.lxv-new input{flex:1;min-width:180px;border:1px solid var(--line);border-radius:10px;padding:8px 10px;font:inherit}
@media (max-width:820px){ #lxViews span{display:none} }
.ci-sig{margin:10px 0 4px;display:flex;flex-direction:column;gap:6px}
.ci-sig[hidden]{display:none}
.ci-sign{border:1px solid var(--line);border-radius:10px;padding:8px 10px;font:inherit;max-width:420px}
.ci-pad{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px}
.ci-pad canvas{width:100%;max-width:420px;aspect-ratio:3/1;border:1.5px dashed #9DB3A6;border-radius:12px;background:#fff;touch-action:none;cursor:crosshair}

/* v496 — the card of a lot opened from the list: a layer over the list (the card is the same element as in the plan) */
.lot-float{position:fixed;inset:0;z-index:48;background:rgba(15,35,27,.4);display:flex;flex-direction:column;align-items:flex-start;padding:12px 14px}
.lot-float .lf-bar{display:flex;gap:8px;width:min(440px,100%);margin-bottom:8px;flex:none}
.lot-float .lf-bar .btn{box-shadow:var(--z-shadow-3)}
.lot-float .lf-sp{flex:1}
.lot-float > aside#panel{position:relative!important;inset:auto!important;width:min(440px,100%)!important;max-width:100%!important;height:auto!important;max-height:none!important;flex:1 1 auto;min-height:0;display:flex!important;flex-direction:column;overflow-y:auto;transform:none!important;margin:0!important;border-radius:18px;box-shadow:var(--z-shadow-3)}
@media (max-width:820px){
  .lot-float{padding:0;justify-content:flex-end;align-items:stretch}
  .lot-float .lf-bar{width:100%;padding:8px 10px;margin:0}
  .lot-float > aside#panel{width:100%!important;flex:0 1 auto;max-height:82%!important;border-radius:18px 18px 0 0}
}

/* v500 — the row of the list whose card is open (or was opened last) · the hint of the ↑ ↓ keys · the expired identity card */
html body .lx-item.lx-open{background:#E3ECE7;border-color:var(--accent);box-shadow:inset -5px 0 0 var(--accent)}
.lot-float .lf-nav{flex:none;min-width:44px;padding-inline:0;justify-content:center;text-align:center}
/* v503 — 📞 call / 📋 copy beside the phone and the identity card · the number of the list that calls · ⬆️ back to the top */
.fq-acts{display:inline-flex;gap:6px;margin-inline-start:8px;vertical-align:middle}
.fq-b{border:1px solid var(--line);background:#fff;border-radius:999px;padding:2px 10px;font:inherit;font-size:12px;font-weight:700;color:var(--acc-text);cursor:pointer;min-height:28px;line-height:1.2}
.fq-b:hover{border-color:var(--accent)}
a.lx-call{text-decoration:none;color:inherit}
a.lx-call:hover span.num,a.lx-call:focus-visible span.num{outline:2px solid var(--z-blue-700);outline-offset:1px}
.lx-top{position:fixed;inset-inline-end:16px;bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:40;width:46px;height:46px;border-radius:50%;border:1px solid var(--line);background:#fff;font-size:20px;cursor:pointer;box-shadow:var(--z-shadow-3)}
.lx-top[hidden]{display:none}

/* v502 — the place of the open lot in the list («3 / 60») · the question before a pasted picture goes to the files of a lot */
.lot-float .lf-pos{flex:none;align-self:center;min-width:3.2em;text-align:center;color:#fff;background:rgba(15,35,27,.78);border-radius:999px;padding:6px 10px;font-size:13px;font-weight:800;white-space:nowrap;direction:ltr}
.lot-float .lf-pos:empty{display:none}
@media (max-width:420px){.lot-float .lf-pos{display:none}}
dialog.paste-ok{border:0;border-radius:16px;padding:16px;max-width:min(420px,calc(100vw - 32px));box-shadow:var(--z-shadow-3)}
dialog.paste-ok::backdrop{background:rgba(15,35,27,.45)}
dialog.paste-ok .po-imgs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;max-height:46vh;overflow:auto}
dialog.paste-ok .po-imgs img{max-width:100%;max-height:40vh;border-radius:10px;border:1px solid var(--line);object-fit:contain;background:#F3F6F4}
dialog.paste-ok .po-btns{display:flex;gap:8px;justify-content:flex-start}
.cx-exp{display:block;margin-top:4px;color:var(--z-red-700);font-size:12px;font-weight:800}

/* v497 — the head of the lot card, redrawn (nothing removed): the number in a tile with «البقعة N» and its stage, the close button
   alone at the top; previous / next with their words and the tools on one row; area, size and visit in three readable boxes. */
html body .phead.ph2{flex-direction:column;align-items:stretch;gap:10px}
.ph2 .ph-top,.ph2 .ph-acts{display:flex;align-items:center;gap:8px;min-width:0}
html body .ph2 .lotno.ph-no{flex:none;min-width:50px;height:50px;padding:0 10px;border-radius:14px;background:color-mix(in srgb,var(--accent) 12%,var(--panel));color:var(--acc-text);display:flex;align-items:center;justify-content:center;font-size:24px;line-height:1}
.ph-tt{display:flex;flex-direction:column;gap:4px;min-width:0}
.ph-tt b{font-size:16px;line-height:1.2}
.ph-stage{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;max-width:100%;font-size:12px;font-weight:700;line-height:1.5;padding:1px 10px;border-radius:999px;color:var(--ink);background:color-mix(in srgb,var(--c) 15%,var(--panel));border:1px solid color-mix(in srgb,var(--c) 42%,var(--panel));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ph-stage i{flex:none;width:8px;height:8px;border-radius:50%;background:var(--c)}
html body .ph2 .ph-acts .ph-nav,html body aside#panel .ph2 .ph-acts .ph-nav{width:auto!important;flex:none;padding:0 12px;font-size:13px;font-weight:700;white-space:nowrap}
.ph-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px 16px 4px;flex:none}
.ph-facts > div{background:var(--soft);border-radius:10px;padding:8px 10px;min-width:0}
.ph-facts small{display:block;font-size:11px;color:var(--muted);line-height:1.4}
.ph-facts b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ph-facts b .dot{display:inline-block;vertical-align:middle;margin-inline-end:2px}
aside#panel.min .ph-facts,aside#panel.min .ph-acts{display:none}
@media (max-width:820px){
  html body .ph2 .lotno.ph-no{min-width:42px;height:42px;font-size:20px;border-radius:12px}
  html body .phead.ph2{gap:8px}
  .ph-facts{padding:8px 14px 2px}
}

/* v498 — the message shown when the browser refuses the 3D drawing: what to do, and a button to try again */
.p3d-fail{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;max-width:560px;margin-inline:auto;text-align:center;line-height:1.8}
.p3d-fail .p3d-retry{flex:0 0 auto;align-self:center;height:auto;min-height:44px;padding:0 22px}
.p3d-fail > *{flex:0 0 auto}
.p3d-fail b{font-size:17px}
.p3d-fail ol{margin:0;padding-inline-start:22px;text-align:start;font-weight:500}

/* (v504) ⚠️ the same lot saved by two people: the choice before overwriting */
.clash-dlg{max-width:560px}
.clash-p{margin:0 0 10px;line-height:1.8}
.clash-w{overflow-x:auto;margin:0 0 10px;border:1px solid #DCE3DF;border-radius:12px}
.clash-t{width:100%;border-collapse:collapse;font-size:14px}
.clash-t th,.clash-t td{padding:8px 10px;text-align:start;border-bottom:1px solid #E8ECEA;vertical-align:top;word-break:break-word}
.clash-t thead th{background:#F1F4F2;color:#3A4A42;font-weight:700}
.clash-t tbody th{color:#3A4A42;white-space:nowrap}
.clash-t tbody td:nth-child(2){color:var(--z-green-700)}
.clash-t tbody td:nth-child(3){color:#9B1C14}
.clash-n{margin:0 0 12px;font-size:13px;color:#6F7C77;line-height:1.7}
.clash-b{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.clash-b button{min-height:40px;padding:8px 14px;border-radius:12px;font:inherit;font-weight:700;cursor:pointer;border:1px solid #C9D2CD;background:#fff;color:#1F2B26}
.clash-b .clash-go{background:var(--z-green-700);border-color:var(--z-green-700);color:#fff}
.clash-b button:focus-visible{outline:3px solid var(--z-gold-500);outline-offset:2px}
/* (v506) 📣 a complaint in the lot history */
.tl-cmpc .cmp-pill{font-size:11px;padding:1px 8px}
.tl-cmp{border:1px solid var(--line);background:#fff;border-radius:8px;padding:2px 8px;cursor:pointer;font:inherit;font-size:12px;margin-inline-start:auto;min-height:28px}
.tl-cmp:focus-visible{outline:3px solid var(--z-gold-500);outline-offset:2px}
/* (v507) 📅 appointment requests in the card · 📶 the list of what waits on this device */
.ben-rq{display:flex;flex-wrap:wrap;gap:4px 12px;padding:6px 8px;border:1px solid var(--line);border-radius:10px;margin:4px 0;font-size:13px}
.ben-rq q{quotes:"«" "»"}
.outbox[role=button]{cursor:pointer}.outbox:focus-visible{outline:3px solid var(--z-gold-500);outline-offset:2px}
.ol-p{font-size:13px;color:var(--muted);margin:0 0 8px}
.ol-list{display:grid;gap:8px;max-height:60vh;overflow:auto}
.ol-row{border:1px solid var(--line);border-radius:12px;padding:8px 10px}
.ol-clash{border-color:#E6A23C;background:#F9FAF9}
.ol-h{display:flex;align-items:center;gap:8px}.ol-tag{font-size:12px;color:#8A4B12;font-weight:700}
.ol-f{font-size:13px;margin:4px 0}.ol-f em{font-style:normal;background:#EEF3FB;border-radius:6px;padding:0 6px;margin:2px;display:inline-block}
.ol-b{display:flex;flex-wrap:wrap;gap:6px}.ol-del[data-sure="1"]{background:var(--z-red-100);border-color:var(--z-red-700);color:#9B1C14}
.ol-none{text-align:center;color:var(--muted)}
/* (v509) 📅 D1 — the week of the convocations on the home page */
.hm-wk{padding:14px 16px}
.wk-h{display:flex;align-items:baseline;gap:8px;margin-bottom:10px}.wk-h b{font-size:15px;color:var(--z-green-900)}.wk-h small{color:var(--muted);font-size:12px}
.wk-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.wk-d{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 2px 8px;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer;font:inherit;color:inherit;min-height:64px;transition:background .15s,border-color .15s}
.wk-d small{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.wk-d b{font-size:17px;line-height:1.1;color:var(--z-green-900)}
.wk-d em{font-style:normal;font-size:11px;font-weight:700;min-width:20px;padding:0 6px;border-radius:999px;background:#E6F4EA;color:var(--z-green-700)}.wk-d i{display:block;width:5px;height:5px;margin-top:6px;border-radius:50%;background:var(--line)}
.wk-d.t{border-color:var(--z-gold-500);background:#FFF4E0}.wk-d.t small{color:var(--z-gold-800);font-weight:700}.wk-d.t em{background:var(--z-gold-500);color:#fff}
.wk-d[aria-pressed="true"]{border:2px solid var(--z-green-700);padding:6px 1px 8px}.wk-d:hover{border-color:#9DBFAF}
.wk-d:focus-visible,.wk-row:focus-visible{outline:3px solid var(--z-gold-500);outline-offset:2px}
.wk-list{margin-top:10px;display:grid;gap:2px}
.wk-row{display:flex;align-items:center;gap:12px;padding:10px 6px;border:0;border-top:1px solid var(--line);background:none;font:inherit;color:inherit;cursor:pointer;text-align:start;min-height:42px}
.wk-row:hover{background:#F7FBF8}.wk-row b{font-weight:700;min-width:84px}.wk-tm{color:var(--muted)}
.wk-st{margin-inline-start:auto;font-size:12px;font-weight:700;color:var(--c);background:color-mix(in srgb,var(--c) 11%,#fff);border-radius:999px;padding:2px 10px}
.wk-none{margin:6px 0 0;padding:10px;text-align:center;color:var(--muted);font-size:13px}
@media (max-width:420px){.wk-days{gap:4px}.wk-d{min-height:58px;border-radius:10px}.wk-d b{font-size:15px}}
/* (v510) 📈 E4 — the curve of the works on the home page */
.hm-tr{padding:14px 16px}
.tr-h{display:flex;align-items:baseline;gap:8px;margin-bottom:8px;flex-wrap:wrap}.tr-h b{font-size:15px;color:var(--z-green-900)}.tr-h small{color:var(--muted);font-size:12px}
.tr-g{display:block;width:100%;padding:0;border:0;background:none;font:inherit;color:inherit;cursor:pointer;border-radius:12px}
.tr-g svg{display:block;width:100%;height:64px}html[dir="rtl"] .tr-g svg{transform:scaleX(-1)}
.tr-a{fill:var(--z-green-500);fill-opacity:.12}.tr-l{fill:none;stroke:var(--z-green-700);stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.tr-m{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));margin-top:4px;text-align:center}
.tr-m em{display:block;font-style:normal;font-weight:700;font-size:13px;color:var(--z-green-700);visibility:hidden;line-height:1.3}
.tr-m small{display:block;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tr-m .now small{color:var(--z-gold-800);font-weight:700}.tr-m .now em{color:var(--z-gold-800)}
.hm-tr.show .tr-m em{visibility:visible}
.tr-g:focus-visible,.tr-go:focus-visible{outline:3px solid var(--z-gold-500);outline-offset:2px}
.tr-none{margin:6px 0 0;text-align:center;color:var(--muted);font-size:13px}
.tr-go{display:block;margin:8px auto 0;padding:6px 14px;min-height:36px;border:1px solid var(--line);border-radius:999px;background:#fff;font:inherit;font-size:13px;color:var(--z-green-700);cursor:pointer}
.tr-go:hover{border-color:#9DBFAF;background:#F7FBF8}
/* (v510) ✨ E3 — a short fade when a section opens (the title band keeps its own slide); nothing moves for who turned the motion off */
@keyframes zsec{from{opacity:.55}to{opacity:1}}   /* (v513) S2: its own name (zfade belongs to the statistics ring of app.css); from .55, never from 0: if the browser holds the animation the section still shows */
@media (prefers-reduced-motion:no-preference){
  :is(#homeView,#mapView,#listView,#statsView,#reqView,#rqsView,#modelView,#cmpView,#msgView,#usersView,#m3dView,#geoView):not([hidden]){animation:zsec .18s ease-out}
}
@media print{:is(#homeView,#listView,#statsView){animation:none!important}}
/* (v511) G3 — day: the pale gold numbers and the light greys darker, so they read on white (same hue) */
html:not(.night) :is(.ps-tiles,.rq-sumc,.tb-t) [style*="--c:#E0A100" i] b,html:not(.night) :is(.ps-tiles,.rq-sumc,.tb-t)[style*="--c:#E0A100" i] b{color:#8A6400}
html:not(.night) :is(.ps-tiles,.rq-sumc,.tb-t) [style*="--c:#D68910" i] b,html:not(.night) :is(.ps-tiles,.rq-sumc,.tb-t)[style*="--c:#D68910" i] b{color:#9A5B0A}
html:not(.night) :is(.ps-tiles,.rq-sumc,.tb-t) [style*="--c:#C8A24B" i] b,html:not(.night) :is(.ps-tiles,.rq-sumc,.tb-t)[style*="--c:#C8A24B" i] b{color:var(--z-gold-800)}
html:not(.night) .vr-sum [style*="--c:#7F8C86" i],html:not(.night) .vr-st[style*="--c:#7F8C86" i],html:not(.night) .rq-sumc[style*="--c:#7F8C86" i]{--c:#5F6B66!important}
html:not(.night) .rq-st[style*="--c:#2E86C1" i]{color:#22699A}
html:not(.night) :is(.lg-none,.act li small,.mcmp .mc-eq){color:var(--z-grey-600)}
html:not(.night) .cap-cnt.none{color:#666}
html:not(.night) .sh-st.no{color:#7A5200}
html:not(.night) .wq-acts .wq-wa{background:#147A3C;border-color:#147A3C}
html:not(.night) .lx-chip[aria-pressed="true"] b{background:rgba(0,0,0,.2)}
/* (v511) G4 — no text under 11 px */
html body #app > header .brand small{font-size:12px!important}
.tb-hello kbd{font-size:11px}
.st-cd,.vr-ring small,.pc-row > span > small,.rq-sumc > span > small,label.f > span > small,td.num > small,td > small.pst-no,td > small.num,.bk-list small.num,.oc-p em,.oc-ext-l,.oc-none{font-size:11px}
@media (max-width:420px){.wk-d small{font-size:11px}}
/* (v511) G5 — on the phone, the buttons big enough for a finger (about 40 px); the small links get a larger touch area without moving the layout */
@media (max-width:820px){
  header :is(#nightBtn,#zbtn,.lang-btn,.iconbtn){min-height:40px;min-width:40px}
  html body header .zoomui > *{height:40px!important}
  header .search input#q{min-height:40px}
  #rqsView :is(.ps-tg,.ps-fold,.qf-to),#app :is(.lx-chip,.lx-ftog,.lx-row .btn,.wq-acts .btn,.bk-now,#updNow,.g-p,.g-secs){min-height:40px}
  .uc-wa,.lx-call{display:inline-block;padding-block:12px;margin-block:-12px}
  .oc-tg{min-width:36px;min-height:36px}
}
/* (v513) S5 — on the computer every target at least 24 px (WCAG 2.5.8); the small links get a larger touch area without moving the layout */
@media (min-width:821px){
  .lx-call{display:inline-block;padding-block:2px;margin-block:-2px}
  .uc-wa,#usersView td > a{display:inline-block;padding-block:4px;margin-block:-4px}
  .oc-tg{min-width:24px;min-height:24px}
}
#app details > summary{min-height:24px}
.g-tbl input[type=checkbox]{width:20px;height:20px}
#usersView label > input[type=checkbox]{width:16px;height:16px}
/* (v513) S8 — three levels of cards on the home page: the board of what needs action stands out, the others stay as they are,
   the activity log (secondary information) is flat */
#homeWrap .card.hm-board{border:1.5px solid color-mix(in srgb,var(--accent) 45%,transparent);box-shadow:var(--z-shadow-3)}
#homeWrap .card.hm-act{box-shadow:none;background:transparent;border:1px solid var(--line)}
/* (v513) S9 — «حسابي» on a computer: one button for the guide, the app install and the password */
#acctBtn{display:none}
@media (min-width:821px){
  #me > #acctBtn{display:inline-flex}
  #me > :is(#helpBtn,#instApp,#chPw){display:none!important}
}
.acct-pop{position:fixed;z-index:3000;min-width:230px;padding:6px;background:var(--panel,#fff);border:1px solid var(--line);border-radius:12px;box-shadow:var(--z-shadow-3);display:grid;gap:2px}
.acct-pop button{display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:6px 10px;border:0;border-radius:8px;background:none;font:inherit;font-size:14px;color:var(--ink);cursor:pointer;text-align:start}
.acct-pop button:hover,.acct-pop button:focus-visible{background:var(--soft,#EEF3F0)}
.acct-pop button:focus-visible{outline:3px solid var(--z-gold-500);outline-offset:-1px}
.acct-ic{display:inline-flex;width:20px;justify-content:center;color:var(--acc-text,#17593D)}
/* (v513) S7 — the colour and shape tokens of the site (the near-identical colours of the four stylesheets were merged into these:
   1213 colours → 571, no shift larger than 6/255; odd corner radii rounded to 2·4·6·8·10·12·16·20·999 px).
   New rules should use these variables instead of new hex values. */
:root{
  --z-green-900:#143D2C;--z-green-700:#1E6A49;--z-green-500:#2F8A62;--z-green-100:#E3F1EA;
  --z-gold-800:#7A5A12;--z-gold-500:#C8A24B;--z-gold-100:#FBF4E2;
  --z-red-700:#B3261E;--z-red-100:#FDECEA;--z-blue-700:#1F4E9C;--z-blue-500:#2E86C1;
  --z-grey-900:#15221C;--z-grey-600:#5F6B66;--z-grey-300:#D3DDD8;--z-grey-100:#F4F7F5;
  --z-radius-sm:8px;--z-radius-md:12px;--z-radius-lg:16px;--z-radius-pill:999px;
  --z-shadow-1:0 1px 2px rgba(22,44,34,.06);--z-shadow-2:0 10px 24px -12px rgba(22,44,34,.3);--z-shadow-3:0 18px 40px -16px rgba(22,44,34,.4)
}
/* (v514) T1–T3: text for screen readers only, the skip link (visible only when reached with Tab), the focused window, messages closed by a touch */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip-link{position:fixed;top:-60px;inset-inline-start:12px;z-index:5000;padding:10px 16px;border:0;border-radius:10px;background:var(--z-green-900);color:#fff;font:inherit;font-weight:700;cursor:pointer}
.skip-link:focus{top:12px;outline:3px solid var(--z-gold-500);outline-offset:2px}
.ocr-dlg:focus{outline:none}
html body .toast{pointer-events:auto;cursor:pointer}
/* (v514) T6 — the card shown when a list could not be loaded, and the retry button of the top banner */
.ld-err{display:grid;gap:8px;justify-items:start;padding:16px 18px;border:1px solid #F1C7C3;background:#FDF3F2}
.ld-err b{color:#9B1C14}.ld-err span{color:var(--muted)}
#banner .bn-retry{margin-inline-start:10px;min-height:32px;padding:4px 12px}
/* (v516) R6 — the stage keys of the 3D model on a phone: one row of keys big enough for a finger (40 px), scrolled sideways,
   instead of a column of small rows that covered the model */
@media (max-width:820px){
  .p3d-leg{flex-direction:row;flex-wrap:nowrap;overflow-x:auto;inset-inline-end:12px;gap:6px;padding:6px;scrollbar-width:none}
  .p3d-leg::-webkit-scrollbar{display:none}
  .p3d-leg span{flex:none;min-height:40px;padding:0 12px;border-radius:999px;background:rgba(255,255,255,.14);white-space:nowrap;cursor:pointer}
  .p3d-leg b{padding-inline-start:6px}
}
/* (v517) the 3D model unticked in the account's rights */
body.g-no-m3d-v #tab-m3d,body.g-no-m3d-v #p3dBtn,body.g-no-m3d-v .p3d-go,body.g-no-m3d-v #sc3d{display:none!important}

/* (v517) the accounts: search, filters and order (U1), warnings (U2), one action on several accounts (U4) */
.uc-tools{display:grid;gap:8px;margin:10px 0}
.uc-tools input[type=search]{width:100%;min-height:40px;padding:6px 12px;border:1px solid var(--line);border-radius:10px;font:inherit;background:var(--panel,#fff);color:var(--ink)}
.uc-fl{display:flex;flex-wrap:wrap;gap:6px}.uc-fl .chip{min-height:34px;cursor:pointer}.uc-fl .chip[aria-pressed="true"]{border-color:var(--accent);background:var(--acc-soft)}
.uc-sort{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}.uc-sort select{min-height:36px;border:1px solid var(--line);border-radius:8px;padding:2px 8px;font:inherit;background:var(--panel,#fff);color:var(--ink)}
.uc-bulk{position:sticky;top:6px;z-index:5;display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0 10px;padding:8px 12px;border:1.5px solid color-mix(in srgb,var(--accent) 45%,transparent);border-radius:12px;background:var(--acc-soft)}
.uc-bulk .btn{min-height:36px}
.uc-pick{display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:28px;cursor:pointer}.uc-pick input{width:18px;height:18px}
.uc-warn{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 2px}
.uc-none{text-align:center;color:var(--muted);padding:12px}
.u-until small,.u-copy small{display:block;font-weight:400;color:var(--muted);font-size:12px}
/* (v518) D1 — the grey lines while a part of a page loads (still for who turned the motion off) */
.skel{display:grid;gap:10px;padding:6px 0}
.skel i{display:block;height:14px;border-radius:7px;background:linear-gradient(90deg,var(--sk-a,#E9EEEB) 0,var(--sk-b,#F5F8F6) 40%,var(--sk-a,#E9EEEB) 80%);background-size:300% 100%;animation:zskel 1.3s linear infinite}
.skel i:nth-child(3n+1){width:92%}.skel i:nth-child(3n+2){width:74%}.skel i:nth-child(3n){width:56%}
@keyframes zskel{from{background-position:100% 0}to{background-position:0 0}}
@media (prefers-reduced-motion:reduce){.skel i{animation:none}}
/* (v518) D3 — the small line under each number of the home page (time runs from the start of the line, as the curve «سير الأشغال») */
.hp-sp{display:block;width:100%;height:22px;margin-top:8px}
.hp-sp polyline{fill:none;stroke:var(--hc,var(--z-green-700));stroke-width:1.6;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round}
.hp-sp .hp-sa{fill:var(--hc,var(--z-green-700));opacity:.1}
html[dir="rtl"] .hp-sp{transform:scaleX(-1)}
/* (v518) D6 — 🕒 how long ago each lot was last inspected */
.age0{fill:#2F8A62}.age1{fill:#9CCB86}.age2{fill:#F2C46B}.age3{fill:#D9622B}.age4{fill:#C9CFCB}
.cmp-leg i.age0{background:#2F8A62}.cmp-leg i.age1{background:#9CCB86}.cmp-leg i.age2{background:#F2C46B}.cmp-leg i.age3{background:#D9622B}.cmp-leg i.age4{background:#C9CFCB}
/* ===== (v519) Q2 — fixes from the design review ===== */
/* 1. the lot card on the phone opens at half height (the plan stays in sight); drag the grip up for the whole card */
@media (max-width:820px){
  aside#panel:not(.min):not(.full){max-height:56%}
  aside#panel.full{max-height:88%}
}
/* 2. the four tools of the card: an icon and its word, big enough for a finger */
html body aside#panel .ph2 .ph-acts{flex-wrap:wrap;row-gap:6px}
html body aside#panel .ph2 .ph-acts .iconbtn.ph-act{width:auto!important;height:auto!important;min-width:46px!important;min-height:42px!important;padding:4px 6px!important;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:16px;line-height:1}
html body aside#panel .ph2 .ph-acts .iconbtn.ph-act .ph-t{display:block;font-size:11px;font-weight:700;color:var(--muted);font-family:var(--f-body,inherit);white-space:nowrap}html body aside#panel .ph2 .ph-acts .iconbtn.ph-act .fav-s{font-style:normal}
/* 3. the chapters of the statistics on two rows on a computer (nothing cut); the phone keeps its strip that slides */
@media (min-width:821px){html body #statsView .sx-nav{flex-wrap:wrap;overflow-x:visible;padding-inline-end:2px;-webkit-mask-image:none;mask-image:none}}
/* 4. small texts made readable */
@media (min-width:821px){html body header .tabs .tab-g{font-size:12px}}
.tb-rec small{font-size:12px}
/* 6. the colourings of the plan in one group, with its name; the stage chips dimmed when another colouring is shown */
#strip .mode-grp{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px;padding:3px;border:1px solid var(--line);border-radius:999px;background:var(--panel)}
#strip .mode-lbl{font-size:12px;font-weight:700;color:var(--muted);padding:0 8px}
#strip .mode-grp .modebtn[aria-pressed="true"]{background:var(--z-green-700);color:#fff;border-color:var(--z-green-700)}
#strip.m-other > .chip{opacity:.5}
/* 7. the backup reminder: buttons a finger can press */
html body #listView #bkList .bk-warn .btn,.bk-warn .btn{min-height:34px;padding:6px 14px}
/* 8. the top of the home page lower on a computer; «بحث سريع» on a dark glass so it reads over the picture */
@media (min-width:821px){html body .tb-hello.big{min-height:118px;padding:20px 26px!important}}
html body .tb-hello.big .btn{background:rgba(0,0,0,.38)!important;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);color:#fff!important}
/* ===== (v521) 👤 photos of the accounts and «ملفي الشخصي» ===== */
.av{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;border-radius:50%;overflow:hidden;background:var(--soft);vertical-align:middle}
.av img{width:100%;height:100%;object-fit:cover;display:block}
.av-i{background:hsl(var(--h,150) 38% 88%);color:hsl(var(--h,150) 45% 24%);font-weight:800;font-size:13px;letter-spacing:.02em}
.av-sm{width:26px;height:26px;font-size:11px}.av-md{width:48px;height:48px;font-size:17px}.av-xl{width:96px;height:96px;font-size:32px}
/* your photo and name in the top bar: one button that opens «ملفي الشخصي» */
.me-id{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:8px;cursor:pointer;border-radius:999px;padding:2px 10px 2px 4px;min-height:40px;min-width:0;max-width:100%}
.me-id:hover{background:color-mix(in srgb,var(--accent) 10%,transparent)}
.me-id:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.me-id .mename{min-width:0}
#profBtn{display:none!important}
/* the accounts: the photo in place of the initials */
.uc-av.uc-ph{padding:0;overflow:hidden}.uc-av.uc-ph img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}
.u-ph{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 10px;margin:6px 0;border:1px solid var(--line);border-radius:12px;font-size:13px;color:var(--muted)}
.u-ph span:not(.av){flex:1 1 160px}
/* the messages: the photo of who wrote */
.msg-bh .av{margin-inline-end:6px}
/* «ملفي الشخصي» */
.pf-top{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:4px 0 14px}
.pf-avb{display:flex;flex-direction:column;align-items:flex-start;gap:8px;flex:1 1 200px}
.pf-avb small{color:var(--muted);font-size:12px;line-height:1.5}
.pf-avb label.btn,.pf-avb .btn{min-height:40px}
.pf-avb label.busy{opacity:.6;pointer-events:none}
.pf-ro{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:12px 0 6px;padding:10px 12px;background:var(--soft);border-radius:12px;font-size:13px}
.pf-ro dt{color:var(--muted)}.pf-ro dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.pf-note{font-size:12px;color:var(--muted);margin:6px 0 10px}
/* ===== (v522) decor ===== */
/* 2. the drawing of each stage in its colour circle: chips, card, list, head of the card, key of the small plan */
:is(.chip,.stages,.lx-pill,.ph-stage,.mn-leg) i.sti{width:18px!important;height:18px!important;border-radius:50%!important;display:inline-flex!important;align-items:center;justify-content:center;flex:none;box-shadow:inset 0 0 0 1px rgba(0,0,0,.18)}
i.sti svg{width:12px;height:12px;display:block}
i.sti[data-s="0"],i.sti[data-s="3"],i.sti[data-s="5"]{color:#fff}
i.sti[data-s="1"]{color:#3A2A10}i.sti[data-s="2"]{color:#0D2233}i.sti[data-s="4"]{color:#2A1840}
aside#panel .stages i.sti{width:20px!important;height:20px!important}aside#panel .stages i.sti svg{width:13px;height:13px}
.ph-stage i.sti{width:16px!important;height:16px!important}.ph-stage i.sti svg{width:11px;height:11px}
/* 1. the subdivision now, small, on the home page */
.hm-mini{all:unset;box-sizing:border-box;display:flex;flex-direction:column;gap:10px;width:100%;cursor:pointer;padding:16px 18px;margin:0 0 18px;border-radius:18px;background:var(--panel);border:1px solid var(--line)}
.hm-mini:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.mn-h{display:flex;flex-direction:column;gap:2px}.mn-h b{font-size:16px}.mn-h small{color:var(--muted);font-size:12px}
.mn-svg{display:block;width:100%;max-width:620px;height:auto;margin-inline:auto;border-radius:12px;background:#ECEFED}
.mn-road{fill:#D4DCD8}.mn-l{stroke:rgba(255,255,255,.55);stroke-width:.25}
.mn-leg{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12px}.mn-leg > span{display:inline-flex;align-items:center;gap:6px}.mn-leg em{font-style:normal;color:var(--muted)}.mn-leg b{font-size:13px}
/* 3. the newest photo at the top of the card */
.ph-cover{position:relative;display:block;margin:6px 16px 4px;border-radius:12px;overflow:hidden;aspect-ratio:16/7;background:var(--soft);flex:none}
.ph-cover img{width:100%;height:100%;object-fit:cover;display:block}
.ph-cv-d{position:absolute;inset-inline-start:8px;bottom:8px;padding:3px 10px;border-radius:999px;background:rgba(0,0,0,.55);color:#fff;font-size:12px;font-weight:700}
aside#panel.min .ph-cover{display:none}
/* 4. drawings for the empty pages that had none: a magnifier on a plot (list, quick search) and a megaphone (complaints) */
.lx-empty::before,.kp-none::before,p.cmp-empty::before{content:"";display:block;width:84px;height:84px;margin:0 auto 10px;border-radius:50%;background:#F1F4F2 center/50px no-repeat;box-shadow:inset 0 0 0 1px rgba(184,98,27,.14)}
.lx-empty::before,.kp-none::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 38h22M9 38V27h13v11' stroke='%23C8A24B' stroke-width='2'/%3E%3Ccircle cx='31' cy='19' r='9' stroke='%232F8A62' stroke-width='2.6'/%3E%3Cpath d='m38 26 6 6' stroke='%232F8A62' stroke-width='3'/%3E%3Cpath d='M27.5 19h7' stroke='%23B8621B' stroke-width='2'/%3E%3C/svg%3E")}
p.cmp-empty::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 20v8h6l14 8V12l-14 8z' stroke='%232F8A62' stroke-width='2.4'/%3E%3Cpath d='M14 28l3 9h4l-2-9' stroke='%23B8621B' stroke-width='2'/%3E%3Cpath d='M34 18c2 1.5 3 3.6 3 6s-1 4.5-3 6M38 13c3.5 2.8 5 6.6 5 11s-1.5 8.2-5 11' stroke='%23C8A24B' stroke-width='2'/%3E%3C/svg%3E")}
/* 5. the pieces that fall when a lot is finished */
.cf-canvas{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:2147483000}
/* ===== (v523) 📋 the whole card of a lot inside the 3D model ===== */
#m3dView{position:relative}
@media (min-width:821px){
  #m3dView > aside#panel.in3d{position:absolute!important;top:64px;bottom:12px;inset-inline-start:12px;inset-inline-end:auto;width:min(420px,42%)!important;max-height:none!important;
    display:flex;flex-direction:column;overflow-y:auto;z-index:30;margin:0;border:1px solid var(--line);border-radius:18px;box-shadow:var(--z-shadow-3,0 18px 40px -16px rgba(0,0,0,.35));background:var(--panel)}
}
@media (max-width:820px){
  #m3dView > aside#panel.in3d{position:absolute!important;inset-inline:0;bottom:0;top:auto;width:auto!important;z-index:30;border-radius:16px 16px 0 0;overflow-y:auto;background:var(--panel);box-shadow:0 -12px 30px -14px rgba(0,0,0,.4)}
}
/* (v524) without «ملفي الشخصي»: the name in the top bar is not a button any more to the eye */
.me-id.no-prof{cursor:default}.me-id.no-prof:hover{background:none}

/* ===== (v525) site review: fixes F1–F10 and additions A1, A2 ===== */
/* F2: on the phone every button and chip a finger can press (the reception block like the requests, the chips, the statistics) */
@media (max-width:820px){
  #reqView :is(.ps-tg,.ps-fold),#rqsView .chip,#statsView :is(button,.chip),#cmpView .chip{min-height:40px}
}
/* F3: no text under 12px in the list, the statistics, the requests, the complaints and the curve of the home page */
#statsView :is(small,em),#listView :is(small,.lx-docs,.lx-bad,.lx-w),.tr-m small,#rqsView .chip span,#cmpView .rq-sumc small{font-size:12px}
/* F5: in the window of a new complaint, «💾 تسجيل الشكاية» stays in sight at the bottom */
.ocr-dlg:has(#cfGo) .rq-cfm{position:sticky;bottom:0;z-index:3;margin:14px -4px 0;padding:10px 4px;background:var(--panel);box-shadow:0 -10px 16px -14px rgba(0,0,0,.35)}
/* F6: «➕ تسجيل شكاية» above the filters */
.cmp-top{display:flex;justify-content:flex-start;margin:0 0 12px}.cmp-top .btn{min-height:42px;padding-inline:18px}
/* F7: the explanation of the correspondence folded */
.msg-help{margin:0 0 10px}.msg-help summary{cursor:pointer;font-size:13px;font-weight:700;color:var(--acc-text);list-style:none;padding:4px 0}.msg-help summary::-webkit-details-marker{display:none}
.msg-help .rq-priv{font-size:13px;line-height:1.7;max-width:80ch;margin:6px 0 0}
/* F8: on the phone the head of each section is a slim strip, and the five tools of the list fold under «⋯ الأدوات» */
.lx-toolsb{display:none}
@media (max-width:820px){
  html body .vhero{padding:10px 14px!important;gap:10px!important;border-radius:16px!important;margin-bottom:10px!important;min-height:0!important}
  html body .vhero .vh-ic{width:36px!important;height:36px!important;font-size:18px!important;border-radius:11px!important}
  html body .vhero .vh-t h1,html body .vhero .vh-t h2{font-size:17px!important;margin:0!important}
  html body .vhero .vh-t p{display:none!important}
  #listView .lx-toolsb{display:inline-flex}
  #listView .lx-bar:not(.tools-open) :is(#bulkBtn,#listExp,#lxSheet,#lxQr,#exportBtn){display:none!important}
}
/* F9: the last number of a sentence never alone on its line */
.nobr{white-space:nowrap}
/* F10: on a computer «📤 تصدير وطباعة» the same size as the other tools (the search stays first) */
@media (min-width:821px){#listView .lx-row #listExp{flex:0 0 auto!important;width:auto!important}}
/* A1: 🔆 sun mode — black on white, darker lines and secondary text, bolder buttons */
html.sun{--muted:#27312C;--line:#4F5C55;--soft:#F1F3F2}
html.sun body{background:#fff!important;color:#000}
html.sun body :is(small,em,.muted,.rq-priv){color:#27312C!important}
html.sun body :is(.card,.btn,.chip,input,select,textarea,.hp-c,.rq-sumc){border-color:#4F5C55!important}
html.sun body :is(.btn,.chip,.modebtn){font-weight:800}
html.sun body .vhero::after,html.sun body .vhero::before{opacity:.25}
/* A2: 📺 presentation mode */
.sh-ov{position:fixed;inset:0;z-index:2147483100;background:radial-gradient(circle at 70% 20%,#1F5A40,#0E2A1F 70%);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4vh 5vw}
.sh-x{position:absolute;top:16px;inset-inline-end:16px;width:48px;height:48px;border-radius:50%;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.08);color:#fff;font-size:22px;cursor:pointer}
.sh-s{width:100%;max-width:1400px;text-align:center}.sh-s h2{font-size:clamp(24px,3.4vw,46px);margin:0 0 4vh;font-family:var(--f-disp,inherit)}
.sh-big{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2vw}.sh-big div{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.18);border-radius:24px;padding:3vh 1vw}
.sh-big b{display:block;font-size:clamp(40px,7vw,110px);line-height:1.05;color:#F2D58A}.sh-big span{font-size:clamp(16px,1.6vw,26px);opacity:.9}
.sh-st{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 28px;margin-top:4vh;font-size:clamp(14px,1.4vw,22px)}.sh-st span{display:inline-flex;align-items:center;gap:8px}.sh-st em{font-style:normal;opacity:.85}
.sh-st i.sti{width:26px!important;height:26px!important;border-radius:50%!important;display:inline-flex!important;align-items:center;justify-content:center}.sh-st i.sti svg{width:16px;height:16px}
.sh-map svg{width:min(90vw,1100px);height:auto;max-height:70vh;background:rgba(255,255,255,.06);border-radius:20px}
.sh-bars{display:flex;align-items:flex-end;justify-content:center;gap:3vw;height:55vh}.sh-bars div{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;width:9vw}
.sh-bars i{display:block;width:100%;background:linear-gradient(#F2D58A,#C8A24B);border-radius:12px 12px 4px 4px}.sh-bars b{font-size:clamp(20px,2.6vw,40px);margin-bottom:8px}.sh-bars span{margin-top:10px;font-size:clamp(14px,1.4vw,22px);opacity:.85}
.sh-dots{display:flex;gap:10px;margin-top:4vh}.sh-dots button{width:14px;height:14px;border-radius:50%;border:0;background:rgba(255,255,255,.3);cursor:pointer}.sh-dots button[aria-current="true"]{background:#F2D58A}
@media (max-width:820px){.sh-big{grid-template-columns:repeat(2,minmax(0,1fr))}}
.tb-hb{display:inline-flex;gap:8px;flex-wrap:wrap;align-items:center}
/* ===== (v526) seven additions ===== */
/* 1. ⏳ the time machine of the plan */
.tm-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:8px 14px;margin:6px 0;background:var(--panel);border:1px solid var(--line);border-radius:14px}
.tm-bar .tm-r{flex:1 1 220px;accent-color:var(--z-green-700)}.tm-bar .tm-m{font-weight:800;min-width:64px}
.tm-bar .tm-c{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:12px}.tm-bar .tm-c > span{display:inline-flex;align-items:center;gap:4px}
.tm-bar i.sti{width:16px!important;height:16px!important;border-radius:50%!important;display:inline-flex!important;align-items:center;justify-content:center}.tm-bar i.sti svg{width:10px;height:10px}
.tm-bar .btn{min-height:36px}
.p3d-tmr{flex:1 1 200px;accent-color:#F2D58A}.p3d-tmm{min-width:64px}
/* 3. 🔮 the expected end, in the card */
.ph-fc{margin:4px 16px;padding:7px 12px;border-radius:10px;background:var(--soft);font-size:13px}.ph-fc small{color:var(--muted)}
.ph-fc .fc-slow{font-style:normal;font-weight:700;color:var(--z-red-700,#A3231B);margin-inline-start:6px}
aside#panel.min .ph-fc{display:none}
/* 5. 🎙️ voice notes */
.vn-btn{margin:0 0 8px;min-height:40px}.vn-btn.rec{background:#A3231B!important;color:#fff!important;border-color:#A3231B!important}
.fcard audio.faud{width:100%;height:34px;margin-top:6px}
/* 4. 🎓 the tour */
#tourBtn{display:none!important}
.tour-ov{position:fixed;inset:0;z-index:2147483200}
.tour-spot{position:fixed;border-radius:14px;box-shadow:0 0 0 9999px rgba(10,20,15,.62);outline:3px solid #F2D58A;pointer-events:none}
.tour-bub{position:fixed;background:var(--panel);color:var(--ink);border-radius:16px;padding:14px 16px;box-shadow:0 18px 40px -12px rgba(0,0,0,.45)}
.tour-bub .tour-t{display:block;font-size:17px;margin-bottom:6px}.tour-bub .tour-x{margin:0 0 12px;line-height:1.7;font-size:14px}
.tour-b{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tour-b .tour-n{color:var(--muted);font-size:12px;margin-inline-end:auto}.tour-b .btn{min-height:38px}
/* 7. 🛰️ the aerial photos across the years */
.sc-btn{width:34px;height:34px;border-radius:8px;border:2px solid rgba(0,0,0,.2);background:#fff;font-size:17px;cursor:pointer}
.sc-ui{position:absolute;inset:0;pointer-events:none;z-index:640}
.sc-line{position:absolute;top:0;bottom:0;width:3px;margin-left:-1px;background:#F2D58A;box-shadow:0 0 0 1px rgba(0,0,0,.35)}
.sc-bar{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);width:min(560px,calc(100% - 24px));pointer-events:auto;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:8px 12px;background:var(--panel);border-radius:14px;box-shadow:var(--z-shadow-3,0 10px 24px -10px rgba(0,0,0,.4))}
.sc-bar label{display:inline-flex;align-items:center;gap:6px;font-size:13px}.sc-bar select{min-height:34px}.sc-bar .sc-r{flex:1 1 160px}.sc-bar .sc-k{font-size:12px;color:var(--muted)}
.sc-bar .sc-note{flex-basis:100%;color:var(--z-red-700,#A3231B);font-weight:700}.sc-bar .sc-note:empty{display:none}
/* ===== (v527) seven additions ===== */
/* 1. 🧭 north arrow and scale of the plan */
.pa-box{position:absolute;inset-inline-end:12px;bottom:14px;z-index:5;display:flex;align-items:flex-end;gap:10px;pointer-events:none}
.pa-n{width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.92);box-shadow:0 2px 8px rgba(0,0,0,.2);display:grid;place-items:center;position:relative}
.pa-n svg{width:22px;height:22px;fill:#B3261E;transition:transform .2s}.pa-n b{position:absolute;top:-2px;font-size:10px;font-weight:800;color:#13241C}
.pa-s{background:rgba(255,255,255,.92);border-radius:8px;padding:4px 8px;box-shadow:0 2px 8px rgba(0,0,0,.2);display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;font-weight:700;color:#13241C}
.pa-s i{display:block;height:6px;border:2px solid #13241C;border-top:0;min-width:20px}
/* 2. 💓 a lot saved by a colleague */
.lp-ring{fill:none;stroke:#F2B705;stroke-width:1.6;animation:zlp 2.6s ease-out forwards;pointer-events:none}
@keyframes zlp{0%{r:3;opacity:1}100%{r:22;opacity:0}}
@media (prefers-reduced-motion:reduce){.lp-ring{animation:none;r:8}}
/* 3. 🧩 home page in the order of each account */
#homeWrap.hm-flex{display:flex;flex-direction:column}#homeWrap.hm-flex > *{order:5}#homeWrap.hm-flex > .tb-hello,#homeWrap.hm-flex > .hm-search{order:0}
#homeWrap .hm-hid{display:none!important}
.hc-l{list-style:none;padding:0;margin:8px 0;display:flex;flex-direction:column;gap:6px}.hc-l li{display:flex;align-items:center;gap:6px;padding:6px 8px;border:1px solid var(--line);border-radius:10px}
.hc-l label{flex:1;display:flex;align-items:center;gap:8px;cursor:pointer}.hc-l .btn{min-width:40px;min-height:36px;padding:0}
/* 4. 📅 calendar of the activity */
.hm-cal{margin:0 0 18px}.cal-svg{display:block;width:100%;height:auto;margin-top:10px}.cal-s{margin:6px 0 0;font-size:12px;color:var(--muted)}
.cal-svg .cl0{fill:#E9EEEB}.cal-svg .cl1{fill:#BFE0CB}.cal-svg .cl2{fill:#7DBE8F}.cal-svg .cl3{fill:#3F9A68}.cal-svg .cl4{fill:#1E6A49}
html[dir="rtl"] .cal-svg{transform:scaleX(-1)}
/* 7. 🏆 milestones */
.hm-miles{display:flex;align-items:center;gap:14px;padding:14px 18px;margin:0 0 18px;border-radius:18px}
.hm-miles .ml-ic{font-size:30px}.hm-miles > div{flex:1;display:flex;flex-direction:column;gap:2px}.hm-miles small{color:var(--muted)}
.hm-miles.new{background:linear-gradient(120deg,color-mix(in srgb,#F2D58A 45%,var(--panel)),var(--panel));border-color:#E2C36A}
.ml-l{padding-inline-start:20px;display:flex;flex-direction:column;gap:6px}.ml-l li{display:flex;justify-content:space-between;gap:12px}
/* 6. ⚖️ two lots side by side */
.lc-pick{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin-bottom:12px}.lc-pick label{display:flex;flex-direction:column;gap:4px;font-size:13px}.lc-pick input{width:110px;min-height:40px}
.lc-t{width:100%;border-collapse:collapse}.lc-t th,.lc-t td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:start;vertical-align:middle}.lc-t thead th{font-size:15px}.lc-t tbody th{color:var(--muted);font-weight:600;width:30%}
.lc-img{width:100%;max-width:220px;aspect-ratio:4/3;object-fit:cover;border-radius:10px;display:block}
.lc-t i.sti{width:18px!important;height:18px!important;border-radius:50%!important;display:inline-flex!important;align-items:center;justify-content:center;vertical-align:middle}.lc-t i.sti svg{width:12px;height:12px}
/* ===== (v528) six additions ===== */
/* 1. 🏷️ tags */
.tg-chip{display:inline-flex;align-items:center;gap:4px;padding:2px 10px;margin:2px;border-radius:999px;font-size:12px;font-weight:700;color:var(--c);background:color-mix(in srgb,var(--c) 12%,var(--panel));border:1px solid color-mix(in srgb,var(--c) 45%,var(--panel))}
button.tg-chip{cursor:pointer;min-height:32px}button.tg-chip.on{background:var(--c);color:#fff;border-color:var(--c)}button.tg-chip:disabled{cursor:default;opacity:.85}
.ph-tags{display:flex;flex-wrap:wrap;align-items:center;gap:2px;margin:4px 16px}.ph-tags .tg-l,.lx-tags .tg-l{font-size:13px;color:var(--muted);margin-inline-end:4px}
.tg-set{border:0;background:none;font-size:16px;cursor:pointer;min-width:32px;min-height:32px}
.lx-tags{display:flex;flex-wrap:wrap;align-items:center;gap:2px;margin:0 0 8px}
aside#panel.min .ph-tags{display:none}
.tg-ed{display:flex;flex-direction:column;gap:6px;margin:8px 0}.tg-row{display:flex;gap:6px;align-items:center}.tg-row input[type=text]{flex:1;min-height:38px}.tg-row input[type=color]{width:44px;height:38px;padding:2px;border-radius:8px}
/* 2. 💬 team discussion */
.tk-box{margin:8px 0;border:1px solid var(--line);border-radius:12px;padding:6px 10px;background:var(--panel)}.tk-box summary{cursor:pointer;font-weight:700;padding:4px 0}
.tk-l{list-style:none;padding:0;margin:6px 0;display:flex;flex-direction:column;gap:8px;max-height:280px;overflow:auto}.tk-l li{background:var(--soft);border-radius:10px;padding:6px 10px}.tk-l small{color:var(--muted)}.tk-l p{margin:2px 0 0;white-space:pre-wrap;line-height:1.6}
.tk-at{color:var(--acc-text)}.tk-none{color:var(--muted);background:none!important}
.tk-new textarea{width:100%;box-sizing:border-box}.tk-b{display:flex;gap:6px;margin-top:6px}.tk-b select{flex:1;min-height:38px}.tk-b .btn{min-height:38px}
/* 3. 📸 photos on the real map */
.ph-btn.on{background:#F2D58A}
.ph-pin{background:none;border:0}.ph-pin img{width:46px;height:46px;object-fit:cover;border-radius:10px;border:2px solid #fff;box-shadow:0 3px 8px rgba(0,0,0,.4);display:block;background:#ddd}
.ph-pin b{position:absolute;top:-8px;inset-inline-start:-8px;background:#1E6A49;color:#fff;font-size:10px;padding:1px 5px;border-radius:999px}
/* 4. 🎞️ film of a lot */
.film-btn{margin:0 0 8px;min-height:40px}
.fm-ov{position:fixed;inset:0;z-index:2147483100;background:#0B1510;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:16px}
.fm-img{max-width:94vw;max-height:72vh;object-fit:contain;border-radius:12px}.fm-cap{color:#fff;font-size:15px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:center}
.fm-cap i.sti{width:18px!important;height:18px!important;border-radius:50%!important;display:inline-flex!important;align-items:center;justify-content:center}.fm-cap i.sti svg{width:12px;height:12px}
.fm-b{display:flex;gap:10px}.fm-b .btn{min-width:52px;min-height:44px;font-size:18px}
/* 5. 🆕 what is new */
.wn-l{padding-inline-start:20px;line-height:1.9}
/* 6. 🎨 the colour of the interface */
#accBtn{display:none!important}
.acc-l{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.acc-o{display:flex;align-items:center;gap:8px;min-height:46px;padding:8px 12px;border:2px solid var(--line);border-radius:12px;background:var(--panel);cursor:pointer;font-weight:700}
.acc-o i{width:22px;height:22px;border-radius:50%;background:var(--c)}.acc-o.on{border-color:var(--c)}
html.acc-blue{--accent:#1F4E9C;--acc-text:#173E7C;--acc-soft:#E6EEF9;--z-green-500:#2E64BF;--z-green-700:#1F4E9C;--z-green-900:#132F5E}
html.acc-sand{--accent:#9A6A2C;--acc-text:#6E4A1B;--acc-soft:#F5ECDD;--z-green-500:#B07E3A;--z-green-700:#8A5E25;--z-green-900:#5A3D17}
html.acc-wine{--accent:#8E2A3C;--acc-text:#6E1F2E;--acc-soft:#F6E5E8;--z-green-500:#A8384C;--z-green-700:#8E2A3C;--z-green-900:#5A1A26}
/* ===== (v529) consolidation ===== */
/* C1: search and bundles in the rights */
.cap-find{width:100%;box-sizing:border-box;min-height:40px;margin:8px 0}
.cap-bund{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 8px}.cap-bund span{font-size:13px;color:var(--muted)}.cap-bund .btn{min-height:36px}
/* C2: the guide of the additions */
.help-h{margin:14px 0 6px;font-size:16px}
/* C3: the phone test sheet */
.ts-l{padding-inline-start:20px;display:flex;flex-direction:column;gap:10px}.ts-l li > span{display:block;font-weight:600;margin-bottom:4px}
.ts-b{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.ts-b .btn{min-height:38px}.ts-b .ts-n{flex:1 1 160px;min-height:38px}
.ts-ok.on{background:#1E7A3C;color:#fff;border-color:#1E7A3C}.ts-ko.on{background:#A3231B;color:#fff;border-color:#A3231B}
/* (v531) 3. 🧭 suggested visits of the day */
.tb-vsug{margin:10px 0 2px;min-height:44px;width:100%;justify-content:center}
.vs-k{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 10px}.vs-k .chip[aria-pressed="true"]{background:var(--z-green-700,#1E6A49);color:#fff;border-color:transparent}
.vs-l{padding-inline-start:22px;display:flex;flex-direction:column;gap:8px;margin:0 0 12px;max-height:52vh;overflow:auto}
.vs-l li{line-height:1.6}.vs-l li > span{display:block;font-size:13px;color:#4A5A52}
.vs-n{background:none;border:0;padding:0;font:inherit;font-weight:700;color:var(--z-green-700,#1E6A49);cursor:pointer;text-decoration:underline;text-underline-offset:3px;min-height:32px}
/* (v531) 4. 🌐 360° photo */
.fcard{position:relative}
.pn-b{position:absolute;top:6px;inset-inline-start:6px;z-index:2;background:rgba(14,30,22,.82);color:#fff;border:0;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:700;cursor:pointer;min-height:28px}
.pn-b:focus-visible{outline:2px solid #F2C46B;outline-offset:2px}
.pn-ov{position:fixed;inset:0;z-index:2147483100;background:#0B1510;display:flex;flex-direction:column;color:#fff}
.pn-h{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:calc(10px + env(safe-area-inset-top)) 14px 10px;flex:0 0 auto;box-sizing:border-box;min-height:calc(66px + env(safe-area-inset-top))}.pn-h b{font-size:15px}
.pn-h .pn-x{position:static!important;inset:auto!important;transform:none!important;flex:0 0 auto;width:44px;height:44px}
.pn-v{flex:1 1 auto;min-height:0;position:relative;outline:none}.pn-v canvas{display:block}
.pn-f{display:flex;align-items:center;gap:8px;padding:10px 14px calc(10px + env(safe-area-inset-bottom))}.pn-tip{flex:1;font-size:13px;opacity:.85}.pn-f .btn{min-width:48px;min-height:44px;font-size:20px}
.pn-w{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;margin:0;font-size:16px}
/* (v531) 5. ⬇️ pull to refresh (phone) */
.pull-ind{position:fixed;top:4px;left:50%;z-index:2147483000;width:40px;height:40px;border-radius:50%;background:#fff;color:#1E6A49;box-shadow:0 4px 14px rgba(0,0,0,.25);display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:700;opacity:0;pointer-events:none;transform:translate(-50%,-48px);transition:opacity .15s}
.pull-ind.on{opacity:1}.pull-ind.ready{background:#1E6A49;color:#fff}
.pull-ind.spin{animation:pullSpin .8s linear infinite;transform:translate(-50%,56px)}
@keyframes pullSpin{to{transform:translate(-50%,56px) rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.pull-ind.spin{animation:none}}

/* (v532) 📍🔁✏️ the badges of a photo */
.pb-row{display:flex;flex-wrap:wrap;gap:4px;padding:2px 4px 4px}
.pg-b,.pd-b{display:inline-flex;align-items:center;gap:3px;border-radius:999px;padding:2px 7px;font-size:11.5px;font-weight:700;line-height:1.5;border:1px solid transparent}
.pg-b.ok{background:#E3F2E8;color:#1E6A49}.pg-b.ko{background:#FDE7E4;color:#A3231B;border-color:#F3B5AD}.pg-b.na{background:#EEF0EE;color:#55625B}.pg-b.mk{background:#FFF4D6;color:#7A5A12}
.pd-b{background:#FFF0D9;color:#8A4B12;border-color:#F2CE95;cursor:pointer;font-family:inherit;min-height:24px}
.pm-b{position:absolute;top:6px;inset-inline-end:34px;z-index:2;width:28px;height:28px;border-radius:50%;border:0;background:rgba(255,255,255,.92);box-shadow:0 1px 4px rgba(0,0,0,.25);cursor:pointer;font-size:14px}
.pm-b:focus-visible,.pd-b:focus-visible{outline:2px solid #1E6A49;outline-offset:2px}
/* (v532) ✏️ marks on a photo */
.mk-ov{position:fixed;inset:0;z-index:2147483100;background:#0B1510;color:#fff;display:flex;flex-direction:column}
.mk-h{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:calc(10px + env(safe-area-inset-top)) 14px 8px;min-height:62px;box-sizing:border-box}
.mk-h .mk-x{position:static!important;inset:auto!important;transform:none!important;width:44px;height:44px;flex:0 0 auto}
.mk-v{flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center;padding:6px}
.mk-c{max-width:100%;max-height:100%;border-radius:8px;cursor:crosshair;background:#222}
.mk-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;padding:8px 12px}
.mk-g{display:flex;gap:6px;align-items:center}.mk-bar .btn{min-height:42px}.mk-tl[aria-pressed="true"]{background:#2F8A62;color:#fff;border-color:transparent}
.mk-col{width:34px;height:34px;border-radius:50%;background:var(--c);border:3px solid rgba(255,255,255,.35);cursor:pointer}.mk-col[aria-pressed="true"]{border-color:#fff;box-shadow:0 0 0 2px #2F8A62}
.mk-t{min-height:42px;padding:0 10px;border-radius:10px;border:1px solid #3A4A42;background:#14221B;color:#fff;font:inherit;width:min(260px,80vw)}
.mk-tip{margin:0;padding:0 14px calc(10px + env(safe-area-inset-bottom));font-size:12.5px;opacity:.8;text-align:center}
/* (v532) 🔥 heat map */
.ht-leg .ht-k{display:inline-flex;flex-wrap:wrap;gap:4px;margin-inline-end:6px}.ht-c[aria-pressed="true"]{background:#B3261E;color:#fff;border-color:transparent}
/* (v532) 📏 measuring */
.ms-btn.on{background:#E53935!important;color:#fff!important}
#measG .ms-l{fill:none;stroke:#E53935;stroke-width:2.5;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round}
#measG .ms-a{fill:rgba(229,57,53,.16);stroke:none}
#measG .ms-p{fill:#E53935;stroke:#fff;stroke-width:1.5;vector-effect:non-scaling-stroke}
#measBar{position:absolute;z-index:1000;bottom:12px;left:50%;transform:translateX(-50%);display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;max-width:calc(100% - 24px);background:#fff;color:#14241D;border-radius:14px;padding:8px 12px;box-shadow:0 8px 24px rgba(0,0,0,.25);font-size:14px}
#measBar .btn{min-height:38px}

/* (v533) 🔲 selection on the plan */
.psl-btn.on{background:#1F4E9C!important;color:#fff!important}
#mapWrap.psel-on svg{cursor:crosshair}
.psel{stroke:#1F4E9C!important;stroke-width:1.6px!important;filter:drop-shadow(0 0 1.5px #1F4E9C)}
#pselG .ps-r{fill:rgba(31,78,156,.14);stroke:#1F4E9C;stroke-width:1.5;stroke-dasharray:4 3;vector-effect:non-scaling-stroke}
#pselBar{position:absolute;z-index:1000;bottom:12px;left:50%;transform:translateX(-50%);display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;max-width:calc(100% - 24px);background:#fff;color:#14241D;border-radius:14px;padding:8px 12px;box-shadow:0 8px 24px rgba(0,0,0,.25);font-size:14px}
#pselBar .btn{min-height:38px}#pselBar .ps-tip{font-size:12.5px;color:#55625B}
/* (v533) 🕘 recent changes */
.rc-ol{padding-inline-start:22px;display:flex;flex-direction:column;gap:6px;max-height:60vh;overflow:auto;margin:0}.rc-ol li > span{display:block;font-size:13px;color:#4A5A52}
/* (v533) ↩️ undo after a save */
.ud-bar{position:fixed;z-index:2147483000;left:50%;bottom:calc(84px + env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:12px;background:#14241D;color:#fff;border-radius:14px;padding:8px 10px 8px 14px;box-shadow:0 10px 26px rgba(0,0,0,.3);overflow:hidden;max-width:calc(100% - 24px)}
.ud-bar .btn{min-height:40px;background:#F2C46B;color:#14241D;border-color:transparent;font-weight:700}
.ud-t{position:absolute;inset-inline:0;bottom:0;height:3px;background:#F2C46B;transform-origin:right;animation:udT 10s linear forwards}
@keyframes udT{to{transform:scaleX(0)}}
@media (prefers-reduced-motion:reduce){.ud-t{animation:none}}
/* (v533) 🔒 quick lock */
html.pl-locked body > *:not(.pl-ov):not(.toast){filter:blur(14px);pointer-events:none;user-select:none}
.pl-ov{position:fixed;inset:0;z-index:2147483640;background:rgba(11,21,16,.92);display:flex;align-items:center;justify-content:center;padding:16px}
.pl-box{background:#fff;color:#14241D;border-radius:20px;padding:24px 20px;width:min(340px,100%);display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;box-shadow:0 20px 50px rgba(0,0,0,.4)}
.pl-logo{width:64px;height:64px;object-fit:contain}.pl-box h2{margin:0;font-size:20px}.pl-box p{margin:0}
.pl-in{font-size:28px;letter-spacing:12px;text-align:center;width:180px;min-height:52px;border-radius:12px;border:1.5px solid #B9C4BE;direction:ltr}
.pl-err{color:#A3231B;min-height:20px;font-size:14px}.pl-box .btn{width:100%;min-height:46px}
/* (v533) 🔔 quiet hours */
.qt-h{display:flex;gap:10px;flex-wrap:wrap}.qt-h .f{flex:1 1 130px}
.qt-d{border:1px solid #D5DDD8;border-radius:12px;padding:8px 12px;display:flex;flex-wrap:wrap;gap:4px 14px;margin:8px 0}.qt-d legend{font-size:13px;padding:0 4px}
/* (v533) 🔊 read aloud */
#ttsBtn.on{background:#1E6A49;color:#fff}

/* (v534) 🎨 the other colourings in one menu */
.mode-dd.on{background:var(--z-green-700,#1E6A49);color:#fff;border-color:transparent}
.mode-pop{position:fixed;z-index:2147483000;min-width:200px;max-width:calc(100vw - 16px);max-height:70vh;overflow:auto;background:#fff;color:#14241D;border-radius:14px;padding:6px;box-shadow:0 12px 30px rgba(0,0,0,.25);display:flex;flex-direction:column;gap:2px}
.mode-pop button{display:block;width:100%;text-align:start;border:0;background:none;font:inherit;padding:10px 12px;border-radius:10px;cursor:pointer;min-height:42px;color:inherit}
.mode-pop button:hover,.mode-pop button:focus-visible{background:#EEF4F0;outline:none}
.mode-pop button[aria-checked="true"]{background:#E3F2E8;font-weight:700}.mode-pop button[aria-checked="true"]::after{content:" ✔";color:#1E6A49}

/* ===================== (v537) design review: 1) touch areas of 44 px on the phone · 2) readable tags · 3) a header that folds while reading ===================== */
/* 2) the tags: the text is the colour chosen by the administrator, made darker so it reads on its light tint (any colour) */
.tg-chip{color:color-mix(in srgb,var(--c) 72%,#000)}
button.tg-chip.on{background:color-mix(in srgb,var(--c) 82%,#000);border-color:color-mix(in srgb,var(--c) 82%,#000);color:#fff}
@media (max-width:820px){
  /* the site can be shown smaller (the size button, 85% by default on the phone): the touch areas are set in real pixels of the screen */
  html{--t44:calc(44px / var(--uiz,1));--t40:calc(40px / var(--uiz,1))}
  /* 1) the buttons of the header, the list and the lot card: at least 44 × 44 px for the finger; the icons keep their size */
  html body #app header #nightBtn,html body #app header #zbtn{height:var(--t44)!important;min-height:var(--t44)!important;min-width:var(--t44)!important}
  html body #app header .me{flex-wrap:nowrap}
  html body #app header .me .iconbtn,html body #app header .me .lang-btn{width:var(--t44)!important;height:var(--t44)!important;min-width:var(--t44)!important;min-height:var(--t44)!important;flex:none}
  html body #app header .me .me-id{min-height:var(--t44);flex:1 1 auto;min-width:0}
  html body #app header .me .me-id .mename{min-width:0;overflow:hidden}
  html body #app header .me .me-id .mename b,html body #app header .me .me-id .mename small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html body #app header .search input,html body #app #lq{height:var(--t44)!important;min-height:var(--t44)}
  html body #app .lx-ftog,html body #app .lx-chip,html body #app #lxTools,html body #app button.tg-chip{min-height:var(--t44)!important}
  html body #app .bk-warn .btn{min-height:var(--t44)!important}
  html body #app .phead .iconbtn{min-width:var(--t44)!important;min-height:var(--t44)!important}
  html body #app .zoomctl button{width:var(--t44)!important;height:var(--t44)!important}
  html body #app aside#panel .ph2 .ph-acts .iconbtn.ph-act{min-height:var(--t44)!important}
  html body #app .tb-hello .btn{min-height:var(--t44)!important}
  html body #app #lxViews{min-width:var(--t44)!important}
  /* the strip above the plan stays a little lower (40 px) so the plan keeps its room */
  html body #app .strip .chip,html body #app .strip .modebtn,html body #app #crPick{min-height:var(--t40)!important}
  /* 3) while reading down a page (or the lot card), the search and the account row fold away; going up brings them back */
  html.hdr-min body #app header .search,html.hdr-min body #app header .me{display:none!important}
}

/* ===================== (v538) design review 4: no interface text under 12 px (the numbers inside the charts keep their size) ===================== */
html body #app header .mename small,html body #app .nt-badge,html body #app .tb-kp kbd,html body #app .wk-d small,
html body #app .ph-act .ph-t,html body #app .ph-fc small,html body #app .dhead em,html body #app .pf-k span{font-size:12px!important}

/* ===================== (v539) redesign phase 1: a calm, modern institutional palette ===================== */
/* light calm background, white cards with fine borders and very light shadows, a deep forest green; gold stays for the emblem and accents */
:root{--bg:#F5F7F6;--panel:#FFFFFF;--line:#E4E9E6;--soft:#F1F4F2;
  --z-green-900:#0B3F29;--z-green-700:#0B5D3B;--z-green-500:#14804F;--z-green-100:#EAF4EE;--z-grey-100:#F4F6F5;
  --accent:#0B5D3B;--acc-text:#0B5D3B;--acc-soft:#EAF4EE;
  --z-shadow-1:0 1px 2px rgba(15,31,23,.04);--z-shadow-2:0 8px 20px -12px rgba(15,31,23,.18);--z-shadow-3:0 16px 36px -16px rgba(15,31,23,.26);
  --shadow:0 1px 2px rgba(15,31,23,.04),0 4px 14px -10px rgba(15,31,23,.12)}
html:not(.night) body{background:var(--bg)}

/* ===================== (v540) redesign phase 2: the header — five groups of sections, one search, named counters ===================== */
html body .wk-kp,html body .tb-kp{display:none!important}   /* the quick search lives in the search field now (Ctrl K) */
@media (min-width:821px){
  /* one search: «Ctrl K» inside the field */
  html body #app header .search{position:relative}
  html body #app header .search input{padding-inline-end:76px}
  .srch-k{position:absolute;inset-inline-end:8px;top:50%;transform:translateY(-50%);height:26px;padding:0 8px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#5F6B66;font:600 12px/1 system-ui,sans-serif;cursor:pointer}
  .srch-k:hover{border-color:var(--z-green-700);color:var(--z-green-700)}
}
@media (max-width:820px){.srch-k{display:none}}
/* the counters say what they count: their name next to them on wide screens */
.hb-l{display:none}
@media (min-width:1280px){
  html body #app header .me .wk-tb,html body #app header .me .nt-bell{width:auto!important;min-width:36px;display:inline-flex;align-items:center;gap:6px;padding-inline:10px;position:relative}
  html body #app header .me .hb-l{display:inline;font-size:13px;font-weight:600;white-space:nowrap}
}

/* ===================== (v541) redesign phase 3: the home page — what needs action by urgency, stage colours, tools in categories ===================== */
.tb-grps{display:grid;gap:14px}
.tb-grp .tb-gh{display:flex;align-items:center;gap:8px;margin:0 0 6px;font-size:12px;font-weight:600;color:#5F6B66}
.tb-grp .tb-gh i{width:7px;height:7px;border-radius:50%;background:var(--gc)}
.tb-grp[data-g="u"]{--gc:#C0392B}.tb-grp[data-g="f"]{--gc:#B07A1E}.tb-grp[data-g="t"]{--gc:#2F6FB0}.tb-grp[data-g="m"]{--gc:#5F6B66}
.tb-grp .tb-t{--c:var(--gc)!important}
.tb-grp:not(:has(.tb-t)){display:none}
.tb-grp .tb-t span{display:flex;flex-direction:column;gap:1px;min-width:0}
.tb-grp .tb-t .tb-hint{font-size:12px;font-weight:400;color:#5F6B66;line-height:1.4}
/* recent lots: a side bar in the colour of the stage */
html body .tb-rec [data-n]{position:relative;border-inline-start:4px solid var(--sc,#9AA5A0)!important}
/* «من … إلى …» */
.act-st{display:inline-flex;align-items:center;gap:5px}
.act-st::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--sc);flex:none}
/* the tools in four categories */
html body .hm-tools.hm-tools-g{display:block;padding:18px 20px}
.hmt-g{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.hmt-c h4{margin:0 0 8px;font-size:12px;font-weight:600;color:#5F6B66}
.hmt-l{display:grid;gap:6px}
html body .hm-tools.hm-tools-g .hmt-l button{display:grid;grid-template-columns:32px 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;width:100%;min-height:52px;margin:0;padding:8px 10px;
  text-align:start;border:1px solid var(--line);border-radius:12px;background:#FAFBFA;box-shadow:none}
html body .hm-tools.hm-tools-g .hmt-l button:hover{background:#fff;border-color:color-mix(in srgb,var(--z-green-700) 35%,var(--line))}
html body .hm-tools.hm-tools-g .hmt-l button>span{grid-row:1/3;display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:var(--z-green-100,#EAF4EE);font-size:16px}
html body .hm-tools.hm-tools-g .hmt-l button>span svg{width:18px;height:18px}
html body .hm-tools.hm-tools-g .hmt-l button>b{font-size:14px;font-weight:600;line-height:1.35}
html body .hm-tools.hm-tools-g .hmt-l button>small{font-size:12px;color:#5F6B66;line-height:1.35}

/* ===================== (v542) redesign phase 4: the 3D model — the scene first, the controls floating in groups ===================== */
.p3d-v2{position:relative}
.p3d-v2>.p3d-bar:not(.p3d-more){position:absolute;top:12px;inset-inline:12px;z-index:6;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
  margin:0;padding:0;background:none!important;border:0!important;box-shadow:none!important;pointer-events:none;flex-wrap:nowrap;min-height:0}
.p3d-v2>.p3d-bar:not(.p3d-more)>b,.p3d-v2>.p3d-bar:not(.p3d-more)>.p3d-sp{display:none}
.p3d-v2 .p3d-ov{pointer-events:auto;background:rgba(255,255,255,.92);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(228,233,230,.9);
  border-radius:16px;box-shadow:0 8px 24px -10px rgba(15,31,23,.25);padding:8px}
.p3d-v2 .p3d-gs{display:flex;gap:8px;align-items:center}
.p3d-v2 .p3d-gs .p3d-q{min-height:40px;width:240px;border-radius:10px}
.p3d-v2 .p3d-gs .p3d-flt{min-height:40px;border-radius:10px}
.p3d-v2 .p3d-ov-e{width:290px;display:flex;flex-direction:column;gap:4px}
.p3d-v2 .p3d-gh{margin:4px 6px 2px;font-size:12px;font-weight:600;color:#5F6B66}
.p3d-v2 .p3d-gv{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;border-radius:12px;background:#F1F4F2}
.p3d-v2 .p3d-gv .btn{min-height:40px;padding:4px 6px;border:0;border-radius:9px;background:transparent;box-shadow:none;font-size:12px;line-height:1.3;white-space:normal}
.p3d-v2 .p3d-gv .btn:hover{background:rgba(255,255,255,.7)}
.p3d-v2 .p3d-gv .btn[aria-pressed="true"]{background:#fff;color:var(--z-green-700);box-shadow:0 1px 2px rgba(15,31,23,.1)}
.p3d-v2 .p3d-gd,.p3d-v2 .p3d-ga{display:flex;flex-wrap:wrap;gap:6px}
.p3d-v2 .p3d-gd .btn,.p3d-v2 .p3d-ga .btn{flex:1 1 auto;min-height:40px;font-size:13px}
.p3d-v2 .p3d-gd .btn[aria-pressed="true"]{background:var(--z-green-100,#EAF4EE);border-color:var(--z-green-700);color:var(--z-green-700)}
.p3d-v2 .p3d-more{position:absolute;inset-inline-start:auto;inset-inline-end:12px;max-width:min(560px,calc(100% - 24px));z-index:7}
.p3d-v2 .p3d-help{margin:8px 0 0;padding:8px 12px;border-radius:12px;background:#F1F4F2;font-size:13px;color:#3D4C45}
@media (max-width:820px){
  .p3d-v2>.p3d-bar:not(.p3d-more){flex-direction:column;align-items:stretch;inset-inline:8px;top:8px;gap:6px}
  .p3d-v2 .p3d-ov{padding:6px;border-radius:14px}
  .p3d-v2 .p3d-gs .p3d-q{flex:1;width:auto;min-height:var(--t44,44px)}
  .p3d-v2 .p3d-gs .p3d-flt{max-width:40%;min-height:var(--t44,44px)}
  .p3d-v2 .p3d-ov-e{width:auto;flex-direction:row;align-items:center;gap:6px;overflow-x:auto;scrollbar-width:none}
  .p3d-v2 .p3d-ov-e::-webkit-scrollbar{display:none}
  .p3d-v2 .p3d-gh{display:none}
  .p3d-v2 .p3d-gv{display:flex;flex:none}
  .p3d-v2 .p3d-gd,.p3d-v2 .p3d-ga{flex-wrap:nowrap;flex:none}
  .p3d-v2 .p3d-ov-e .btn{flex:none;white-space:nowrap;min-height:var(--t44,44px)}
}
html body .p3d-v2 .p3d-ov .btn{color:#1F2A24;background:#fff;border:1px solid var(--line);text-shadow:none}html body .p3d-v2 .p3d-gv .btn{background:transparent;border:0}html body .p3d-v2 .p3d-gv .btn[aria-pressed="true"]{background:#fff;color:var(--z-green-700)}
html body .p3d-v2 .p3d-gs .p3d-q,html body .p3d-v2 .p3d-gs .p3d-flt{height:40px!important;min-height:40px!important;padding:0 12px!important;border:1px solid var(--line)!important;border-radius:10px!important;background:#fff!important;color:#1F2A24!important;font-size:14px!important;line-height:normal!important;box-shadow:none!important}html body .p3d-v2 .p3d-gs .p3d-flt{width:auto!important;max-width:200px}@media (max-width:820px){html body .p3d-v2 .p3d-gs .p3d-q,html body .p3d-v2 .p3d-gs .p3d-flt{height:var(--t44,44px)!important;min-height:var(--t44,44px)!important}html body .p3d-v2 .p3d-gs .p3d-flt{max-width:42%}}
@media (max-width:820px){html body .p3d-v2 .p3d-ov-e .btn,html body .p3d-v2 .p3d-gv .btn{min-height:var(--t44,44px)!important;height:auto!important;padding-block:4px!important}}
/* (v544) the model's own controls start under the floating groups */
html body .p3d-v2 .p3d-c .p3d-cmp,html body .p3d-v2 .p3d-c .p3d-prog{top:calc(var(--p3d-ovh,0px) + 6px)!important}html body .p3d-v2 .p3d-c .p3d-zm{top:calc(var(--p3d-ovh,0px) + 48px)!important}

/* ===================== (v546) the header as in v536, and a quicker «حجم الموقع» ===================== */
/* the header keeps the cream background of v536 (the sections row was already the same) */
html:not(.night) body #app > header{background-image:linear-gradient(to left,#FBF8F1,#F3EFE4)!important}
/* «−» and «+» beside the size on a computer; at the top of the size menu everywhere */
html body header .zoomui .zstep{min-width:34px;padding:0 8px;font-size:18px;font-weight:700;line-height:1;justify-content:center}
@media (max-width:820px){html body header .zoomui .zstep{display:none!important}}
.zrow{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:6px;padding:2px 0 8px;border-bottom:1px solid var(--line)}
.zrow .zs-b{height:44px;border:1px solid var(--line);border-radius:12px;background:#fff;font:700 22px/1 system-ui,sans-serif;color:var(--z-green-700);cursor:pointer}
.zrow .zs-b:hover,.zrow .zs-b:focus-visible{background:var(--z-green-100,#EAF4EE);outline:none}
.zrow .zs-v{text-align:center;font-size:18px;font-weight:700;color:var(--ink,#13241C)}
/* the phone header at the large sizes: the name on one line (shortened if needed), nothing over the search field */
@media (max-width:820px){
  html body #app header .brand{min-width:0;overflow:hidden}
  html body #app header .brand b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html body #app header .brand small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  /* the bottom bar stays the size of a finger at the small sizes */
  html body #app header .tabs [role=tab]{min-height:var(--t44,44px)}
}
/* (v546) the size menu is not squeezed by the height of the buttons beside it (it opened as a 40 px strip on the phone, before too) */
html body #app header .zoomui > #zpop{height:auto!important;min-height:0!important;padding:10px!important;border-radius:14px!important}
@media (max-width:820px){html body #app header .brand b{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;display:block!important;max-width:100%}html body #app header .zoomui > #zpop{inset-inline-start:0;inset-inline-end:auto;min-width:220px}}
/* (v546) the size menu always opens whole, inside the screen: under the header, its sizes in a clear grid */
html body #app header .zoomui > #zpop{width:260px;max-width:calc(100vw - 24px);box-shadow:0 16px 36px -12px rgba(15,31,23,.3)!important}
html body #app header .zoomui > #zpop .zopts{display:grid!important;grid-template-columns:repeat(3,1fr);gap:6px}
html body #app header .zoomui > #zpop .zopts button{min-height:40px;border-radius:10px}html body #app header .zoomui > #zpop .zopts button[data-z=auto]{grid-column:1/-1}
html body #app header .zoomui > #zpop .zopts button[aria-pressed=true]{background:var(--z-green-700);color:#fff;border-color:var(--z-green-700)}
@media (max-width:820px){html body #app header .zoomui > #zpop{position:fixed!important;top:64px!important;inset-inline:12px!important;width:auto!important;min-width:0!important;max-height:calc(100dvh - 140px)!important;z-index:200!important}html body #app header .zoomui > #zpop .zopts button{min-height:var(--t44,44px)}}
html body #app header .zoomui > #zpop{background:#fff!important}
@media (min-width:821px){html body #app header .zoomui{position:relative!important}html body #app header .zoomui > #zpop{position:absolute!important;top:calc(100% + 8px)!important;inset-inline-start:auto!important;inset-inline-end:0!important;z-index:200!important}}

/* ===================== (v547) the 3D model tidied: one bar at the top, one at the bottom, one column of controls ===================== */
/* the top bar: search · view angles · display · actions, on one line */
html body .p3d-v2>.p3d-bar:not(.p3d-more){inset-inline:12px;justify-content:stretch}
html body .p3d-v2 .p3d-tb{display:flex;align-items:center;gap:10px;width:100%;padding:6px 8px;flex-wrap:nowrap}
html body .p3d-v2 .p3d-tb .p3d-gs{flex:1 1 260px;min-width:0}
html body .p3d-v2 .p3d-tb .p3d-gs .p3d-q{flex:1 1 auto;width:auto!important;min-width:110px}
html body .p3d-v2 .p3d-tbr{display:flex;align-items:center;gap:10px;flex:none;min-width:0}
html body .p3d-v2 .p3d-tbr .p3d-g{display:flex!important;align-items:center;gap:4px;flex:none}
html body .p3d-v2 .p3d-tbr .p3d-g + .p3d-g{border-inline-start:1px solid var(--line);padding-inline-start:10px}
html body .p3d-v2 .p3d-tbr .p3d-gv{grid-template-columns:none!important;padding:3px;border-radius:11px;background:#F1F4F2}
html body .p3d-v2 .p3d-tbr .btn{flex:none!important;white-space:nowrap!important;min-height:38px;padding:0 12px;font-size:13px;line-height:1}
html body .p3d-v2 .p3d-tbr .p3d-gv .btn{min-height:34px;padding:0 10px}
/* the bottom bar: «الإنجاز» first, then the six stages with their names and counts */
html body .p3d-v2:not(.p3d-field) .p3d-leg{position:absolute!important;inset-inline:12px!important;bottom:12px!important;max-width:none!important;display:flex!important;flex-direction:row!important;
  flex-wrap:nowrap!important;align-items:center;gap:4px!important;padding:6px 8px!important;border-radius:14px!important;overflow-x:auto;scrollbar-width:none;z-index:5}
html body .p3d-v2 .p3d-leg::-webkit-scrollbar{display:none}
html body .p3d-v2 .p3d-leg .p3d-ln{display:inline!important;white-space:nowrap}
html body .p3d-v2 .p3d-leg span[data-i]{flex:none;white-space:nowrap}
html body .p3d-v2 .p3d-leg > .p3d-prog{position:static!important;flex:none;margin-inline-end:6px;padding-inline-end:10px;border-inline-end:1px solid var(--line);box-shadow:none!important;background:none!important}
/* one column of the model's own controls (compass, zoom, locate) in the bottom corner, just above the bar of the stages */
html body .p3d-v2:not(.p3d-field) .p3d-navc{position:absolute;inset-inline-end:12px;bottom:calc(var(--p3d-legh,48px) + 22px);z-index:4;display:flex;flex-direction:column;align-items:center;gap:8px}
html body .p3d-v2:not(.p3d-field) .p3d-navc > .p3d-cmp,html body .p3d-v2:not(.p3d-field) .p3d-navc > .p3d-zm{position:static!important;top:auto!important;inset:auto!important}
html body .p3d-v2.p3d-field .p3d-navc{display:contents}
@media (max-width:820px){
  html body .p3d-v2>.p3d-bar:not(.p3d-more){inset-inline:8px}
  html body .p3d-v2 .p3d-tb{flex-direction:column;align-items:stretch;gap:6px;padding:6px}
  html body .p3d-v2 .p3d-tb .p3d-gs{flex:none}
  html body .p3d-v2 .p3d-tbr{overflow-x:auto;scrollbar-width:none;gap:8px}
  html body .p3d-v2 .p3d-tbr::-webkit-scrollbar{display:none}
  html body .p3d-v2 .p3d-tbr .btn,html body .p3d-v2 .p3d-tbr .p3d-gv .btn{min-height:var(--t44,44px)!important}
  html body .p3d-v2:not(.p3d-field) .p3d-leg{inset-inline:8px!important;bottom:8px!important}
  html body .p3d-v2:not(.p3d-field) .p3d-navc{inset-inline-end:8px}
}
@media (max-width:820px){html body .p3d-v2.p3d-host:has(.p3d-info:not([hidden])) .p3d-leg{display:none!important}}

/* ===================== (v548) the 3D model on the phone: more room for the scene ===================== */
.p3d-vbtn,.p3d-shbk{display:none}
@media (max-width:820px){
  /* one small row: the search and «⚙ العرض» */
  html body .p3d-v2 .p3d-tb{flex-direction:row!important;align-items:center;gap:6px;padding:5px!important}
  html body .p3d-v2 .p3d-tb .p3d-gs{flex:1 1 auto!important;gap:6px}
  html body .p3d-v2 .p3d-vbtn{display:inline-flex;align-items:center;flex:none;min-height:var(--t44,44px);padding:0 12px;white-space:nowrap;font-size:13px;font-weight:700;color:var(--z-green-700)}
  html body .p3d-v2 .p3d-vbtn[aria-expanded="true"]{background:var(--z-green-100,#EAF4EE)}
  /* the sheet from the bottom with everything else, visible and finger-sized */
  html body .p3d-v2 > .p3d-tbr{position:absolute;inset-inline:0;bottom:0;z-index:30;display:grid!important;grid-template-columns:1fr;gap:12px;padding:16px 14px calc(16px + env(safe-area-inset-bottom,0px));
    background:#fff;border-radius:20px 20px 0 0;box-shadow:0 -14px 36px rgba(15,31,23,.22);overflow:visible!important;transform:translateY(105%);transition:transform .22s ease;visibility:hidden}
  html body .p3d-v2.p3d-sheet > .p3d-tbr{transform:none;visibility:visible}
  html body .p3d-v2 > .p3d-tbr .p3d-g{display:grid!important;gap:6px;border:0!important;padding:0!important}
  html body .p3d-v2 > .p3d-tbr .p3d-gv{grid-template-columns:repeat(3,1fr)!important;background:#F1F4F2;padding:4px!important;border-radius:12px}
  html body .p3d-v2 > .p3d-tbr .p3d-gd{grid-template-columns:repeat(2,1fr)}
  html body .p3d-v2 > .p3d-tbr .p3d-ga{grid-template-columns:repeat(3,1fr)}
  html body .p3d-v2 > .p3d-tbr .btn{width:100%;justify-content:center;white-space:normal!important;line-height:1.25;min-height:var(--t44,44px)!important;font-size:13px}
  html body .p3d-v2 > .p3d-tbr .p3d-flt{width:100%;min-height:var(--t44,44px);border-radius:12px;padding:0 12px;font-size:14px}
  html body .p3d-v2.p3d-sheet > .p3d-shbk{display:block;position:absolute;inset:0;z-index:29;background:rgba(15,31,23,.25)}
  html body .p3d-v2.p3d-field > .p3d-tbr,html body .p3d-v2.p3d-field > .p3d-shbk{display:none!important}
  /* the stages bar on one line: the colour and the count (the name when touched), «الإنجاز» first */
  html body .p3d-v2 .p3d-leg .p3d-ln,html body .p3d-v2 .p3d-leg .p3d-pc{display:none!important}
  html body .p3d-v2:not(.p3d-field) .p3d-leg{padding:4px 6px!important;gap:2px!important}
  html body .p3d-v2 .p3d-leg span[data-i]{padding:6px 8px!important;min-height:36px}
  /* the controls: a smaller, lighter column close to the edge */
  html body .p3d-v2:not(.p3d-field) .p3d-navc{inset-inline-end:6px;gap:6px;opacity:.92}
  html body .p3d-v2:not(.p3d-field) .p3d-navc .p3d-cmp{width:34px;height:34px}
}
@media (max-width:820px){html body .p3d-v2 > .p3d-tbr .p3d-flt{height:var(--t44,44px)!important;min-height:var(--t44,44px)!important;max-width:none!important}}

/* ===================== (v549) the «⚙ العرض» sheet on the phone: clearer and nicer ===================== */
.p3d-shtop,.p3d-shh{display:none}
/* the computer: the separators between the groups stay (the hidden headings sit between them now) */
@media (min-width:821px){html body .p3d-v2 .p3d-tbr .p3d-g ~ .p3d-g{border-inline-start:1px solid var(--line);padding-inline-start:10px}}
@media (max-width:820px){
  html body .p3d-v2 > .p3d-tbr{gap:8px!important;padding:10px 14px calc(18px + env(safe-area-inset-bottom,0px))!important;max-height:78%;overflow-y:auto!important}
  html body .p3d-v2 > .p3d-tbr::before{content:"";justify-self:center;width:40px;height:4px;border-radius:4px;background:#D5DCD8;margin-bottom:2px}
  html body .p3d-v2 > .p3d-tbr .p3d-shtop{display:flex;align-items:center;justify-content:space-between;padding-bottom:6px;border-bottom:1px solid var(--line)}
  html body .p3d-v2 > .p3d-tbr .p3d-shtop b{font-size:16px;font-weight:700;color:var(--ink,#13241C)}
  html body .p3d-v2 > .p3d-tbr .p3d-shx{all:unset;cursor:pointer;display:grid;place-items:center;width:var(--t44,44px);height:var(--t44,44px);border-radius:12px;font-size:18px;color:#4E5E57}
  html body .p3d-v2 > .p3d-tbr .p3d-shx:active{background:#F1F4F2}
  html body .p3d-v2 > .p3d-tbr .p3d-shh{display:block;margin:6px 2px 0;font-size:12px;font-weight:600;color:#5F6B66}
  /* the buttons as clear tiles; the one that is on is green */
  html body .p3d-v2 > .p3d-tbr .p3d-gv{background:transparent!important;padding:0!important}
  html body .p3d-v2 > .p3d-tbr .btn{min-height:calc(56px / var(--uiz,1))!important;border-radius:14px!important;border:1px solid var(--line)!important;background:#fff!important;
    font-size:14px!important;font-weight:600;color:var(--ink,#13241C)!important;box-shadow:none!important;padding:6px 8px!important}
  html body .p3d-v2 > .p3d-tbr .btn:active{background:#F1F4F2!important}
  html body .p3d-v2 > .p3d-tbr .btn[aria-pressed="true"]{background:var(--z-green-100,#EAF4EE)!important;border-color:var(--z-green-700)!important;color:var(--z-green-700)!important}
  html body .p3d-v2 > .p3d-tbr .p3d-flt{min-height:calc(50px / var(--uiz,1))!important;height:calc(50px / var(--uiz,1))!important;border-radius:14px!important;font-size:14px!important;background:#fff}
}
@media (max-width:820px){html body .p3d-v2 > .p3d-tbr{position:fixed!important;bottom:var(--p3d-bn,64px)!important;max-height:calc(100dvh - var(--p3d-bn,64px) - 90px)!important}html body .p3d-v2.p3d-sheet > .p3d-shbk{position:fixed!important}}
/* (v560 — the owner: «المنظر العام · من الشارع · بعد اكتمال التجزئة» looked like plain text: each one a real button, like «ألوان المراحل» and «ليلا»; the one switched on in green) */
html body .p3d-v2 .p3d-gv{gap:6px}
html body .p3d-v2 .p3d-gv .btn{background:#fff!important;border:1px solid var(--line)!important;box-shadow:0 1px 2px rgba(15,31,23,.08)!important;color:#1F2A24!important}
html body .p3d-v2 .p3d-gv .btn:hover{background:#F4F8F5!important}
html body .p3d-v2 .p3d-gv .btn[aria-pressed="true"]{background:#E6F4EA!important;border-color:var(--z-green-700,#1E6A49)!important;color:var(--z-green-700,#1E6A49)!important}
/* (v561) a narrow computer screen: the buttons of the model go down to a second line instead of covering «كل البقع» */
@media (min-width:821px){html body .p3d-v2 .p3d-tb{flex-wrap:wrap;row-gap:6px}html body .p3d-v2 .p3d-tb .p3d-gs{flex:1 1 300px;min-width:300px}}
/* (v562) ⛶ the 3D model on the whole screen of the computer */
html body .p3d-host:fullscreen{width:100vw!important;height:100vh!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;background:#E9E2D6}
html body .p3d-host:fullscreen .ocr-back{position:fixed;inset:0;z-index:2147483000}
html body .p3d-host:fullscreen .toast{z-index:2147483001}
html body .p3d-host.p3d-fsx{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;z-index:2000!important;background:#E9E2D6}
html.p3d-fsx-on body{overflow:hidden}
