/* Spot Studio (staff) — on top of admin.css */
.st-brand{display:flex;align-items:center;gap:8px;text-decoration:none}
.st-brand span{color:var(--o);font-weight:800;font-size:1.05rem;margin-bottom:22px}
.st-dot{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#E8161B;color:#fff;font-size:.75rem}
.st-small{font-size:.82rem}
.st-off{opacity:.55}
.st-grow{flex:1;min-width:180px}
.w-auto{width:auto}
.st-kpi{text-decoration:none}
.st-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
.st-card{display:grid;gap:2px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#FBFAF7;text-decoration:none;color:var(--d);margin-bottom:8px}
.st-card:hover{border-color:var(--o)}
.st-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:.82rem}
.st-s-new{background:#FFF1D6;color:#7A4A00}.st-s-editing{background:#E6EEFB;color:#1E3A8A}.st-s-qa{background:#F3E8FF;color:#5B21B6}
.st-s-client{background:#FDE8E8;color:#8B1013}.st-s-ready{background:#E3F4E8;color:#14532D}.st-s-published{background:#2D2E33;color:#FFA505}
.st-late{background:#FDE8E8;color:#8B1013}
.st-board{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(230px,1fr);gap:12px;overflow-x:auto;padding-bottom:10px}
.st-col{background:#EDE9E1;border-radius:14px;padding:12px;align-self:start;min-height:120px}
.st-col h2{font-size:1rem;display:flex;justify-content:space-between}
.st-col .st-card{background:#fff}
.st-pre{white-space:pre-wrap}
.st-files{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.st-file{margin:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#FBFAF7}
.st-file img,.st-vid{width:100%;height:120px;object-fit:cover;display:grid;place-items:center;background:#2D2E33;color:var(--o);font-weight:800}
.st-file figcaption{display:grid;padding:6px 8px;font-size:.8rem;word-break:break-all}
.st-actions form{margin-bottom:10px}
.st-actions .btn{margin-inline-end:6px}
.st-assign{display:flex;gap:8px;align-items:end;border-top:1px dashed var(--line);padding-top:12px;margin-top:6px}
.st-assign label{flex:1;margin:0}
.st-log{list-style:none;padding:0;margin:0 0 14px;display:grid;gap:8px;font-size:.9rem}
.st-log li{display:grid;gap:2px;border-inline-start:3px solid var(--o);padding-inline-start:10px}
.st-log .muted{font-size:.78rem}
.st-note{display:flex;justify-content:space-between;gap:12px;padding:10px 4px;border-bottom:1px solid var(--line)}
.st-note.unseen a{font-weight:800}
.st-roles{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center}
.st-roles .check,.st-rolegrid .check{margin:0;font-weight:500;font-size:.88rem}
.st-rolegrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px;margin-bottom:12px}
.st-client{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit}
.st-client img{object-fit:contain;border-radius:8px;background:#fff;border:1px solid var(--line)}
.st-fs{border:0;padding:0;margin:0;min-width:0}
.st-linkrow{display:flex;gap:6px;align-items:center}
.st-linkrow .btn{white-space:nowrap}
.st-linkrow input{font-size:.82rem;cursor:copy}
.st-linkrow input.copied{outline:2px solid #2E9E5B}
.st-li{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding:6px 0}
.st-inline{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;align-items:center}
.st-inline input,.st-inline select{flex:1;min-width:140px;width:auto}
.st-check{list-style:none;padding:0;margin:0 0 12px;display:grid;gap:6px}
.st-check li{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:8px;background:#FBFAF7}
.st-check li>span{flex:1}
.st-check li.done>span{text-decoration:line-through;color:var(--mut)}
.st-check form{margin:0}
.st-tick{width:28px;height:28px;border-radius:8px;border:2px solid var(--o);background:#fff;font-weight:900;cursor:pointer;color:var(--d)}
.st-check li.done .st-tick{background:var(--o)}
.st-tick:disabled{cursor:default;opacity:.7}
.st-grid4{grid-template-columns:repeat(4,1fr)}
@media (max-width:900px){.st-grid4{grid-template-columns:1fr 1fr}}
progress{accent-color:var(--o)}
.st-uplist,.uplist{display:grid;gap:6px;margin:8px 0}
.uprow{display:grid;grid-template-columns:1fr auto 120px 40px;gap:8px;align-items:center;font-size:.85rem;background:#FBFAF7;border-radius:8px;padding:6px 10px}
.uprow.ok{background:#E3F4E8}
.upname{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.upsize{color:var(--mut);direction:ltr}
.upst{font-size:.8rem}
.st-msg{font-weight:700;min-height:1.4em}
.st-msg.bad{color:var(--red)}
@media (max-width:600px){.uprow{grid-template-columns:1fr auto}.uprow progress{grid-column:1/-1;width:100%}}
.st-tabs{margin-bottom:14px}
.st-inv-draft{background:#EEE9E0}.st-inv-issued{background:#FFF1D6;color:#7A4A00}.st-inv-partial{background:#E6EEFB;color:#1E3A8A}
.st-inv-paid{background:#E3F4E8;color:#14532D}.st-inv-cancelled{background:#FDE8E8;color:#8B1013}
.st-lines td{padding:6px 4px}.st-lines input,.st-lines select{padding:7px 8px}
.st-lines td:first-child{min-width:220px}
.st-taxes{display:grid;gap:8px;margin-bottom:8px}.st-taxes select{width:auto}
.st-totals{max-width:420px;margin-inline-start:auto;font-size:1rem}.st-totals dd{text-align:end}
.st-tax{margin:6px 0 12px;border:1px dashed var(--line);border-radius:10px;padding:10px 12px}.st-tax summary{cursor:pointer;font-weight:700}
.st-teamx{display:flex;gap:6px;width:100%}.st-teamx input,.st-teamx select{padding:6px 8px;font-size:.88rem}
.st-punch .btn{margin:4px 0}.st-big{font-size:1.2rem;margin:0}
.st-ext{margin-top:12px;border-top:1px dashed var(--line);padding-top:12px}
.st-inlinef{display:inline}
.st-sel{background:#FFF8E8}
.st-job{border-top:1px solid var(--line);padding:10px 0}.st-job summary{cursor:pointer}.st-job form{margin-top:10px}
.st-hire{border-top:1px dashed var(--line);margin-top:12px;padding-top:6px}
@media (max-width:900px){.st-lines{display:block;overflow-x:auto}}
.st-install{margin:12px 0}
.st-center{justify-content:center;margin:12px 0}
.st-as{border:0;padding:0;margin:0 0 12px;display:grid;gap:6px}
.st-as .check{font-weight:500;margin:0;padding:8px 10px;border:1px solid var(--line);border-radius:10px}
.hp{position:absolute;inset-inline-start:-9999px;height:1px;overflow:hidden}
.st-apphead{display:flex;gap:12px;align-items:center;margin-bottom:8px}.st-apphead h1{margin:0}.st-apphead p{margin:0}
.st-apphead img{object-fit:contain;background:#fff;border-radius:12px;border:1px solid var(--line)}
.st-drop{border:2px dashed var(--o);border-radius:12px;padding:12px;background:#FFFBF3}
.st-applist li{display:grid;grid-template-columns:48px 1fr auto;gap:10px;align-items:center;border-bottom:1px solid var(--line);padding:8px 0}
.st-mt{margin-top:20px}
.st-pendlist .panel{margin-bottom:12px}
input[type=radio]{width:auto;flex:none}
.st-as .check{display:flex;gap:10px;align-items:center}
.st-applist a[dir=ltr]{white-space:nowrap}
.st-navh{display:block;color:rgba(255,255,255,.45);font-size:.75rem;font-weight:700;padding:12px 12px 2px;letter-spacing:.3px}
.side nav{overflow-y:auto}
@media (max-width:860px){.st-navh{grid-column:1/-1;padding-top:8px}}
@media (min-width:861px){.side{overflow-y:auto}.side nav{flex:none;overflow:visible}.side nav a{padding:8px 12px}.side-foot{padding-top:14px}}
[data-here]{margin-inline-end:14px}
.st-branch{border-top:1px solid var(--line);padding:8px 0}.st-branch summary{cursor:pointer}.st-bform{margin-top:10px}
.st-path{list-style:none;padding:0;margin:0 0 18px;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:8px;counter-reset:st}
.st-path li{position:relative;background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px 10px;display:grid;gap:2px;font-size:.88rem;counter-increment:st}
.st-path li b::before{content:counter(st);display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#EEE9E0;margin-inline-end:6px;font-size:.78rem}
.st-path li.done{border-color:#B6E2C2;background:#F3FBF5}.st-path li.done b::before{content:"✓";background:#2E9E5B;color:#fff}
.st-path li.now{border-color:var(--o);box-shadow:0 0 0 2px rgba(255,165,5,.25)}.st-path li.now b::before{background:var(--o)}
.st-wait{color:#9A5E00;font-weight:700}
@media (max-width:860px){.st-path{grid-auto-flow:row}}
.st-check li{flex-wrap:wrap}.st-item{display:flex;gap:10px;align-items:center;flex:1;flex-wrap:wrap}
.st-itext{flex:1;min-width:180px;display:grid;gap:2px}
.st-tickf{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.st-tickf input{width:auto;min-width:140px;padding:6px 8px;font-size:.85rem}
.st-itemadm{display:flex;gap:10px;align-items:center;width:100%;justify-content:flex-end}.st-itemadm .st-inline{margin:0}.st-itemadm select{min-width:0;padding:4px 6px;font-size:.82rem}
.st-check li.me{border-inline-start:3px solid var(--o)}
.st-progress{display:grid;gap:8px}.st-progress progress{width:100%;height:14px}.st-progress strong{font-size:1.3rem}
.st-done a{color:var(--mut);text-decoration:line-through}
span.st-tick{display:inline-grid;place-items:center}
.st-more{width:100%}.st-more[open]{display:flex;gap:6px;flex-wrap:wrap}.st-more summary{width:100%}
.st-itemadm{opacity:.75;font-size:.85rem}.st-itemadm:hover{opacity:1}
.st-check li{padding:8px 10px}
.st-wabtn{background:#25D366;border-color:#25D366;color:#fff}.st-wabtn:hover{background:#128C7E;border-color:#128C7E}
.st-in{color:#14532D}.st-out{color:#8B1013}
.st-boxes{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px;margin-bottom:16px}
.st-box{display:grid;gap:2px;margin:0;padding:14px}.st-box strong{font-size:1.25rem}
.st-outf{border-top:4px solid #E8161B}.st-inf{border-top:4px solid #2E9E5B}
.st-tr td{color:var(--mut)}
.st-wabtn.off{opacity:.5}
.st-approve{display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:#FFF8E8;border:1px solid #F5D9A0;border-radius:10px;padding:8px 12px;margin:6px 0 10px}
.st-clientedit{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.st-clientedit select{width:auto;max-width:220px;padding:6px 8px;font-size:.88rem}
.st-team-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.st-person h3{font-size:13px;margin:12px 0 4px;color:#9A5E00}
.st-person-h{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.st-person-stats{display:flex;gap:14px;margin-top:10px;font-size:13px}
.st-mini{margin:0;padding-inline-start:18px;font-size:13px;line-height:1.7}
.st-photo-box{border:1px dashed #FFA505;border-radius:10px;padding:10px;margin-top:12px}
/* publishing plan */
.pl-month{align-items:center;margin:6px 0 12px}.pl-top{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.pl-cap{white-space:pre-line;background:var(--bg,#f7f7f8);border-radius:10px;padding:10px 12px}
.pl-cm{margin:6px 0;padding:6px 10px;border-inline-start:3px solid #FFA505}.pl-cm.pl-us{border-color:#2D2E33}
.pl-cform{display:flex;gap:8px;margin-top:10px}.pl-cform input{flex:1}
[data-plan] fieldset{border:0;padding:0;margin:0;min-width:0}
.pl-compose{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start}
@media (max-width:1100px){.pl-compose{grid-template-columns:1fr}}
.pl-side{position:sticky;top:12px;display:grid;gap:12px}
.pl-pages{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.pl-page{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:10px 12px;cursor:pointer}
.pl-page input{grid-row:span 3}.pl-page .pl-pf{font-size:.8rem;color:#777}.pl-page small{color:#777}
.pl-page:has(input:checked){border-color:#FFA505;background:#FFF8EA}.pl-page.off{opacity:.55;cursor:default}
.pl-card{border:1px solid var(--line);border-radius:12px;padding:12px;background:#fff}
.pl-who{display:flex;gap:10px;align-items:center;margin-bottom:8px}.pl-who div{display:grid}
.pl-av{width:38px;height:38px;border-radius:50%;background:#2D2E33;color:#FFA505;display:grid;place-items:center;font-weight:800}
.pl-pv-img{width:100%;max-height:340px;object-fit:cover;border-radius:8px;display:block}
.pl-pv-empty{border:1px dashed var(--line);border-radius:8px;padding:40px 10px;text-align:center;color:#999}
.pl-actions{display:grid;gap:8px}
#media .st-file form{display:inline}
/* attendance bar on every staff page */
.st-attbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:#2D2E33;color:#fff;border-radius:14px;padding:10px 16px;margin-bottom:14px}
.st-attbar b{color:#FFA505}.st-attbar.in{background:#E3F4E8;color:#14532D}.st-attbar.in b{color:#14532D}
.st-attbar.done{background:transparent;color:#777;border:1px solid var(--line);padding:6px 14px}.st-attbar.done b{color:#2D2E33}
.st-today{border:2px solid #FFA505}
.st-shoot{display:grid;gap:8px;padding:10px 0;border-bottom:1px solid var(--line)}.st-shoot:last-child{border-bottom:0}
.st-report summary{list-style:none;cursor:pointer;width:max-content}.st-report summary::-webkit-details-marker{display:none}
.st-report[open] summary{margin-bottom:10px}
.st-wide{overflow-x:auto}.st-wide table{min-width:1400px}.st-wide th{font-size:.78rem;white-space:normal;min-width:70px}
.st-cardwrap{display:grid}.st-cardx{justify-self:end;margin-top:-6px}
/* monthly staff report: totals and lateness rules */
.st-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:12px 0}
.st-kpis .panel{display:grid;gap:4px;margin:0}
.st-kpis strong{font-size:1.35rem}
.st-grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:12px 0}
.st-grid3 label{display:grid;gap:4px}
details.panel>summary{cursor:pointer}
.st-radio{display:flex;gap:8px;align-items:center;padding:6px 0}
.st-full{grid-column:1/-1}
.st-full textarea{width:100%;font-family:inherit}
.st-err{color:#b3261e;font-weight:600}
a.btn.done{opacity:.6}
.st-places{display:flex;flex-wrap:wrap;gap:6px 16px;border:1px solid #eee;border-radius:10px;padding:10px 14px;margin:0 0 12px}.st-places legend{font-weight:700;padding:0 6px}
.place-pick{display:contents}.place-pick [hidden]{display:none}
.st-warn td{background:#FFF6E3}
.st-inline{display:inline}
.st-opps{list-style:none;margin:0;padding:0}
.st-opp{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:10px 0}
.st-opp>div:first-child{flex:1 1 280px;min-width:0}
.st-why{margin:6px 0 4px;padding-inline-start:18px;font-size:.92rem}
.st-why li{margin:2px 0}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px 14px}
input.narrow{width:90px;display:inline-block}
label.check{display:flex;gap:8px;align-items:center}
.st-svcs{display:grid;gap:8px}
.st-svc fieldset{display:flex;flex-wrap:wrap;gap:8px;align-items:center;border:0;padding:0;margin:0}
.st-svc.off{opacity:.55}
.st-svc-name{flex:2 1 240px}.st-svc-note{flex:1 1 160px}.st-svc-price{width:110px}
.st-addsvc{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0}
.st-addsvc select{flex:1 1 260px;max-width:480px}
.st-svc input:not([type=checkbox]),.st-svc select{width:auto;min-width:0;margin:0}
.st-svc select{flex:0 0 110px}.st-svc .st-svc-name{flex:2 1 240px}.st-svc .st-svc-note{flex:1 1 160px}.st-svc .st-svc-price{flex:0 0 110px}
.st-svc{padding:6px 0;border-bottom:1px solid var(--line)}
.st-msgs{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:8px}
.st-msgs li{max-width:min(560px,88%);padding:10px 12px;border-radius:14px;background:#F2F1EE;justify-self:start}
.st-msgs li.mine{background:#FFF1D6;justify-self:end}
.st-msgs li.muted{background:none;padding:0}
.st-msgs p{margin:4px 0;white-space:pre-wrap;line-height:1.7}
/* support desk */
.st-shot{max-width:100%;max-height:420px;border:1px solid var(--line);border-radius:10px}
.st-msgs li.st-internal{background:#FFF8E6;border:1px dashed #E7C46A}
.st-faq{border-bottom:1px solid var(--line);padding:10px 0}
.st-faq summary{cursor:pointer}
.st-faq .form{margin:10px 0}
.st-break{overflow-wrap:anywhere;word-break:break-word}
.st-sup td{vertical-align:top}
.danger-text{color:#B42318}
/* the tour editor */
.te-scenes{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.te-scenes .on{background:#2D2E33;color:#FFA505;border-color:#2D2E33}
.te-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px}@media (max-width:900px){.te-grid{grid-template-columns:minmax(0,1fr)}}
.te-view{width:100%;height:min(62vh,520px);border-radius:12px;overflow:hidden;background:#1F2024}
.te-side{display:grid;gap:8px;align-content:start}.te-side h3{margin:8px 0 0}.te-form{display:grid;gap:8px;padding:10px;border:1px solid #FFE1A8;background:#FFF7E8;border-radius:10px}
.te-list{margin:0;padding-inline-start:18px;display:grid;gap:4px;font-size:.9rem}.te-order{padding-inline-start:20px}.te-order li{margin:4px 0}
.bad{color:#B42318}
.st-wait{font-size:.85rem;color:#555}.st-wait b{color:var(--d)}
.st-late{border-color:#E8161B!important;background:#FFF5F5!important}.st-late-b{background:#E8161B;color:#fff;font-style:normal}
tr.st-late td{background:#FFF5F5}
.st-filters{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px;align-items:end}.st-filters label{display:grid;gap:4px;font-size:.85rem}
.st-filters .st-check-l{display:flex;align-items:center;gap:6px}
.st-bulk{margin-bottom:10px;align-items:center}.st-flow td{vertical-align:top}.st-flow td:first-child{width:28px}
.st-more{display:block;text-align:center;padding:6px}
.st-qi{display:grid;gap:4px}.st-quick{margin-top:2px;align-items:center}.st-quick input{min-width:0}
.st-flowsteps{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;counter-reset:s}
.st-flowsteps li{position:relative}.st-flowsteps li p{margin:.4em 0}
.st-edit{margin:.3em 0;max-width:820px}.st-editform{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px;align-items:end;margin-top:8px;padding:12px;border:1px dashed var(--line);border-radius:12px}
.st-editform p{grid-column:1/-1;margin:0}
.st-readybox{display:grid;gap:6px;padding:12px;border:1px solid #BFE3C8;background:#F3FBF5;border-radius:12px}.st-readybox ul{margin:0}
.st-readybox textarea{width:100%;cursor:copy}.st-caption{margin-top:12px;display:grid;gap:6px}
.st-dirlink{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0;padding:8px 10px;border:1px dashed var(--line);border-radius:10px}
.st-inline-f{display:inline-flex;gap:6px;align-items:center;margin:0}.st-inline-f input{min-width:220px}
.st-order-h{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:8px}.st-dl{display:grid;grid-template-columns:90px 1fr;gap:4px 10px;margin:0 0 10px}.st-dl dt{color:#777}.st-dl dd{margin:0}
.st-pre{white-space:pre-wrap}
.st-branchf{display:none}form:has(input[name="as"][value="client_staff"]:checked) .st-branchf,form:has(input[name="as"][value="client_owner"]:checked) .st-branchf{display:grid}
form:has(input[name="as"][value="staff"]:checked) [data-org]{display:none}
.st-guess{background:#FFF6E5;border:1px solid #FFD27A;border-radius:10px;padding:8px 10px;margin:6px 0}
.te-list li.te-moving{background:#FFF5F5;border-radius:8px;padding:4px}

/* دليل المدارس › صور المدرسة */
.gd-photos{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));margin:10px 0}
.gd-ph{position:relative;display:block;aspect-ratio:1;border-radius:10px;overflow:hidden;background:#eee}.gd-ph img{width:100%;height:100%;object-fit:cover}
.gd-ph form{position:absolute;top:4px;inset-inline-end:4px}.gd-ph .es-x{background:#fff;border:0;border-radius:50%;width:26px;height:26px;cursor:pointer}
.gd-ph.gd-cover img{outline:3px solid #FFA505;outline-offset:-3px}
.gd-ph form.gd-cover-f{top:auto;bottom:6px;inset-inline-end:auto;inset-inline-start:6px}
.gd-cover-tag{position:absolute;inset-inline-start:6px;bottom:6px;font-style:normal;font-size:.72rem;font-weight:700;background:#FFA505;color:#2D2E33;border-radius:999px;padding:2px 9px}
.gd-cover-btn{font-size:.72rem;border:0;border-radius:999px;padding:3px 9px;background:rgba(45,46,51,.85);color:#fff;cursor:pointer}
.st-work-photos ul{list-style:none;padding:0;margin:8px 0;display:grid;gap:6px}
p.st-warn{background:#FFF6E3;border:1px solid #FFA505;border-radius:10px;padding:8px 12px}
/* notifications: by kind, one line per thing, by day */
.nt-filters{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;margin-bottom:10px;scrollbar-width:thin}
.nt-filters a{flex:none;padding:6px 14px;border-radius:99px;border:1px solid var(--line);text-decoration:none;color:inherit;font-weight:700;font-size:.9rem;white-space:nowrap;background:#fff}
.nt-filters a.on{background:#2D2E33;color:#fff;border-color:#2D2E33}
.nt-filters b{display:inline-grid;place-items:center;min-width:20px;height:20px;border-radius:99px;background:#E8161B;color:#fff;font-size:.75rem;padding:0 6px}
.nt-filters .nt-new{margin-inline-start:auto}
.nt-catread{margin-bottom:10px}
.nt-day{font-size:.95rem;color:var(--muted,#6b6c72);margin:14px 0 4px;padding-bottom:4px;border-bottom:1px solid var(--line)}
.nt-day:first-child{margin-top:0}
.nt-item{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:start;padding:10px 4px;border-bottom:1px solid var(--line)}
.nt-item.unseen{background:#FFF8EA;border-inline-start:3px solid #FFA505;padding-inline-start:8px}
.nt-item.unseen .nt-body>a{font-weight:800}
.nt-body{min-width:0}.nt-body>a{color:inherit;overflow-wrap:anywhere}
.nt-cat{font-size:.75rem;font-weight:700;border-radius:99px;padding:2px 10px;background:#f1efe9;white-space:nowrap}
.nt-review{background:#FDECEC;color:#8B1013}.nt-publish{background:#E3F4E8;color:#14532D}.nt-work{background:#FFF1D6;color:#7A4B00}.nt-messages{background:#E6EEFB;color:#1F3F7A}
.nt-time{font-size:.8rem;white-space:nowrap}
.nt-older summary{cursor:pointer;font-size:.82rem;color:var(--muted,#6b6c72);margin-top:4px}
.nt-older ul{margin:6px 0 0;padding-inline-start:16px;display:grid;gap:4px;font-size:.85rem}
.nt-older li{display:flex;justify-content:space-between;gap:10px}
@media (max-width:640px){.nt-item{grid-template-columns:1fr auto}.nt-cat{grid-column:1/-1;justify-self:start}}
/* teacher invitations */
.ti-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-bottom:14px}
.ti-stats>*{display:grid;gap:2px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px;text-decoration:none;color:inherit}
.ti-stats b{font-size:1.5rem}.ti-stats span{font-size:.85rem;color:var(--muted,#6b6c72)}
.ti-queue{margin:10px 0 0;padding-inline-start:20px;display:grid;gap:6px}
.ti-queue li{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px dashed var(--line);padding:6px 0}
.ti-queue li>div{display:grid}.ti-queue .ti-done{opacity:.45}
.ti-pre{white-space:pre-wrap;font:inherit;background:#f7f5f0;border-radius:12px;padding:12px;font-size:.9rem}
.ti-table{overflow-x:auto}.ti-err{color:#9B1C1C;display:block}
/* results fixed on the screen */
.st-toasts{position:fixed;top:16px;left:50%;transform:translateX(-50%);z-index:300;display:grid;gap:8px;width:min(560px,92vw);pointer-events:none}
.st-toast{pointer-events:auto;display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:start;margin:0!important;padding:14px 16px;border-radius:14px;
  box-shadow:0 14px 40px -12px rgba(0,0,0,.45);font-weight:700;line-height:1.7;animation:st-in .25s ease-out;transition:opacity .4s,transform .4s}
.st-toast.flash-ok{background:#16794A;color:#fff}.st-toast.flash-error{background:#B3161B;color:#fff}
.st-toast-ic{width:26px;height:26px;border-radius:50%;background:rgba(255,255,255,.22);display:grid;place-items:center;font-size:.9rem}
.st-toast-x{background:none;border:0;color:inherit;font-size:1.4rem;line-height:1;cursor:pointer;padding:0 4px;opacity:.85}
.st-toast-out{opacity:0;transform:translateY(-8px)}
@keyframes st-in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.st-toast{animation:none}}
form.st-busy{opacity:.7;cursor:progress}
/* the upload panel */
.upstat{border:1px solid var(--line,#e6e2d9);border-radius:14px;padding:12px 14px;margin:10px 0;background:#fff;display:grid;gap:8px}
.upstat-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px}.upstat-top b{font-size:1.6rem}
.upstat-bar{width:100%;height:12px;accent-color:#FFA505}
.upstat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;font-size:.82rem;color:#6b6c72}
.upstat-grid span{display:grid}.upstat-grid b{color:#2D2E33;font-size:.98rem}
.upstat-why{margin:0;font-size:.88rem;line-height:1.7}
.upstat.slow{border-color:#E8A400;background:#FFF8E6}
.upstat.done{border:2px solid #16794A;background:#E8F6EE}.upstat.done .upstat-top b{color:#16794A}
.upstat.fail{border:2px solid #B3161B;background:#FDECEC}
@media (max-width:600px){.upstat-grid{grid-template-columns:repeat(2,1fr)}}
.st-bad{color:#B3161B}

.st-src-c{background:#FFF4DC;color:#7A4B00;border:1px solid #FFA505;font-weight:600}.st-card.st-fc{border-inline-start:4px solid #FFA505}.st-card .st-src-c{align-self:flex-start;width:fit-content}
.dp-row{padding:14px 0;border-bottom:1px solid #eee;display:grid;gap:8px}.dp-row:last-child{border-bottom:0}
.dp-what{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.dp-what small{flex-basis:100%}
.dp-part{display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:#FAFAF7;border-radius:10px;padding:8px 10px}
.dp-label{font-weight:700;min-width:90px}.dp-sug{display:flex;flex-direction:column;gap:2px;flex:1 1 220px;margin:0}.dp-sug small{font-size:.8rem}
.dp-pick{flex:1 1 200px;margin:0}.dp-pick select{width:100%}
@media (max-width:700px){.dp-part .btn{width:100%}}
.st-vplay{width:100%;height:200px;background:#000;display:block;border-radius:8px}.pl-pv-img.st-vplay{height:auto;max-height:420px}
.st-danger-zone{border-color:#f3c2c2}
.bk-bar{margin:0 0 12px}.bk-bar[hidden]{display:none}
.bk-link{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border-radius:999px;background:#fff;border:1px solid #e3e1da;color:#2D2E33;font-weight:600;font-size:.9rem;text-decoration:none}
.bk-link:hover,.bk-link:focus-visible{border-color:#FFA505;color:#2D2E33}.bk-link b{font-weight:700;max-width:60vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-grp{display:block}.st-grp-links{display:grid;gap:2px}.st-grp-links a{display:block}.st-grp>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:6px;justify-content:space-between;border-radius:8px}
.st-grp>summary::-webkit-details-marker{display:none}
.st-grp:not([data-always])>summary::after{content:"‹";transform:rotate(90deg);transition:transform .15s;font-size:1rem;color:rgba(255,255,255,.45)}
.st-grp[open]:not([data-always])>summary::after{transform:rotate(-90deg)}
.st-grp>summary:hover{color:#fff}.st-grp>summary:focus-visible{outline:2px solid var(--o);outline-offset:2px}
.st-grp[data-always]>summary{cursor:default;pointer-events:none}
.st-grp-dot{margin-inline-start:auto}
.side nav>.st-grp+.st-grp{border-top:1px solid rgba(255,255,255,.07);margin-top:4px}
@media (max-width:860px){.side.open nav{display:block}.st-grp-links{grid-template-columns:1fr 1fr;gap:4px}}
@media (prefers-reduced-motion:reduce){.st-grp>summary::after{transition:none}}
.st-mtabs{margin-bottom:14px}
.st-upbox h2 .badge{font-size:.75rem}
.upstat[hidden]{display:none}
.st-photo-when{border:1px dashed #FFA505;border-radius:12px;padding:12px;margin-top:10px;background:#FFFBF2}
.st-gaps{border:1px solid #f3c2c2;background:#FFF6F5;border-radius:12px;padding:10px 14px;margin-bottom:12px}
.st-gaps ul{margin:6px 0 0;padding-inline-start:18px}.st-gap-files{color:#B3261E;font-weight:600}.st-gap-caption{color:#8a5a00;font-weight:600}.st-gap-note{color:#555}
.st-attl{list-style:none;padding:0;margin:0;display:grid;gap:8px}.st-attl li{display:flex;flex-wrap:wrap;gap:6px;align-items:baseline;border-bottom:1px solid #f0eee8;padding-bottom:6px}
.pk-acts{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.pk-acts form{margin:0}.pk-move select{font-size:.8rem;padding:2px 4px;max-width:140px}
.pk-count{margin:10px 0 0}.pk-count.bad{color:#B3261E}
.pk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;margin-top:8px}.pk-pick{position:relative;display:block;border-radius:8px;overflow:hidden;border:2px solid transparent;cursor:pointer}
.pk-pick img{width:100%;height:96px;object-fit:cover;display:block}.pk-pick input{position:absolute;top:6px;inset-inline-start:6px;width:18px;height:18px}.pk-pick:has(input:checked){border-color:#FFA505}
.pm-list{display:grid;gap:10px}.pm-row{display:grid;grid-template-columns:64px 1fr 150px 110px auto;gap:10px;align-items:center;border-bottom:1px solid #f0eee8;padding-bottom:10px}
.pm-cover{width:64px;height:64px;border-radius:8px;overflow:hidden;background:#2D2E33;display:grid;place-items:center;color:#fff;font-size:1.4rem}.pm-cover img{width:100%;height:100%;object-fit:cover}
.pm-what{display:grid;gap:2px}.pm-cap{color:#555}
@media (max-width:700px){.pm-row{grid-template-columns:56px 1fr}.pm-row label,.pm-row>.btn{grid-column:span 1}}
[data-pk-id]{cursor:grab}.pk-drag{opacity:.45;outline:2px dashed #FFA505}
.pk-arrows{display:inline-flex;align-items:center;gap:4px}.pk-arrows form{margin:0}.pk-arrow{border:1px solid #ddd;background:#fff;border-radius:6px;padding:0 8px;line-height:1.6;cursor:pointer}
.pk-n{min-width:1.4em;text-align:center;font-size:.85rem}[data-pk-order]{margin:8px 0}
.st-tracks{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}.st-track{border-radius:999px;padding:3px 10px;background:#FFF1E0;color:#7A4B00;font-size:.85rem}.st-track.ok{background:#E7F6EC;color:#1E6B3A}
.st-tracks-mini{display:flex;flex-wrap:wrap;gap:4px}.st-tracks-mini .st-track{font-size:.72rem;padding:1px 8px}
.st-qachk{border:1px solid #eee;border-radius:10px;padding:8px 12px;margin:8px 0}.st-qachk legend{font-weight:700;padding:0 6px}.st-partial{color:#7A4B00}
.st-err{max-width:560px;margin:12vh auto;padding:24px;background:#fff;border-radius:16px;text-align:center}.st-err-page{background:#F4F2EE}
.st-errrow{border-bottom:1px solid #eee;padding:10px 0}.st-errrow pre{white-space:pre-wrap;font-size:.75rem;max-height:360px;overflow:auto;background:#fafafa;padding:8px;border-radius:8px}
.st-fgroup{margin:14px 0 8px;font-size:1rem;display:flex;gap:6px;align-items:center}
.pl-from{border:2px solid #FFA505;background:#FFFBF2}.pl-from ul{margin:6px 0;padding-inline-start:20px}
.pm-confirm{border:2px solid #FFA505;background:#FFFBF2}
.st-pr{font-weight:700}.st-pr-2{background:#FDE7E7;color:#B3261E;border:1px solid #F3B4B4}.st-pr-1{background:#FFF1E0;color:#7A4B00;border:1px solid #FFD39A}.st-pr--1{background:#eee;color:#555}
.st-prline{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:10px}.st-prline select{padding:4px 8px}
.pg-row{display:grid;grid-template-columns:1.3fr 2fr 1fr 1.6fr;gap:12px;align-items:start;border-bottom:1px solid #eee;padding:12px 0}
.pg-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-inline-end:6px}.pg-empty{background:#E8161B}.pg-low{background:#FFA505}.pg-ok{background:#2E9D5B}.pg-none{background:#bbb}
.pg-pages{display:grid;gap:4px}.pg-sum{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:12px}.pg-sum span{border-radius:999px;padding:4px 12px;background:#fff;border:1px solid #eee}
@media (max-width:800px){.pg-row{grid-template-columns:1fr}}
.st-more{margin:8px 0 0;font-weight:700}
.nt-fyi{font-size:.72rem;color:#5c5d63;background:#efefef;border-radius:99px;padding:1px 8px;margin-inline-start:6px}.nt-filters a.nt-need{font-weight:800}
code[dir=ltr]{overflow-wrap:anywhere}
.code{overflow-wrap:anywhere}
.st-sales .btn-sm,form .btn-sm.btn-ghost{white-space:nowrap}

/* لوحة الشغل: search first, then one-tap tabs; the rest of the filters folded */
.st-find{display:flex;gap:8px;margin:0 0 10px}.st-find-box{flex:1;margin:0}.st-find-box input{width:100%;min-height:46px;font-size:1rem}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.st-tabs{display:flex;gap:8px;overflow-x:auto;padding:2px 0 8px;scrollbar-width:none}.st-tabs::-webkit-scrollbar{display:none}
.st-tabs a{flex:0 0 auto;display:inline-flex;gap:6px;align-items:center;padding:8px 14px;border-radius:99px;border:1px solid var(--line);background:#fff;color:inherit;text-decoration:none;font-weight:700;white-space:nowrap}
.st-tabs a b{background:#F3F1EC;border-radius:99px;padding:0 8px;font-size:.82rem}
.st-tabs a.on{background:#2D2E33;color:#fff;border-color:#2D2E33}.st-tabs a.on b{background:#FFA505;color:#2D2E33}
.st-tabs a.st-tab-late b{background:#E8161B;color:#fff}
.st-tab-hint{margin:0 0 10px}
.st-filters-box{padding:12px 16px}.st-filters-box summary{cursor:pointer;font-weight:800}.st-filters-box .st-filters{margin-top:12px;border:0;padding:0}
/* on phones each material is one compact card: the name, then its stage, who it waits on and since when on one line */
@media (max-width:760px){
  table.st-flow-cards tr{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;align-items:start}
  table.st-flow-cards td{display:block;padding:0}
  table.st-flow-cards td::before{display:none}
  table.st-flow-cards td:first-child:has(input[type=checkbox]){grid-row:span 5}
  table.st-flow-cards td:nth-last-child(-n+4){display:inline;font-size:.88rem}
  table.st-flow-cards td:nth-last-child(3)::before,table.st-flow-cards td:nth-last-child(2)::before{display:inline;content:attr(data-label) ": ";color:var(--muted);font-weight:400}
  table.st-flow-cards td:last-child{color:var(--muted)}table.st-flow-cards td:last-child::before{display:inline;content:"#"}
}
.st-bulk[hidden]{display:none}
/* «تجهيز الصور» and the clients' frames */
.ph-entry .btn{margin-top:4px}.ph-ok{color:#14532D;font-weight:700}
.ph-steps li span{font-weight:400}
.ph-n{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--o);color:var(--d);font-size:.9rem;margin-inline-end:6px;vertical-align:middle}
.ph-wait,.ph-note{background:#FFF7E6;border:1px solid #F4D59A;color:#5C3B00}
.ph-done{border-color:#B6E2C2;background:#F3FBF5}
.ph-sizes{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:8px;margin:8px 0 12px}
.ph-size{position:relative;display:grid;justify-items:center;gap:4px;padding:12px 8px;border:2px solid var(--line);border-radius:12px;background:#FBFAF7;cursor:pointer;text-align:center;margin:0}
.ph-size input{position:absolute;opacity:0;pointer-events:none}
.ph-size.on,.ph-size:has(input:checked){border-color:var(--o);background:#FFF7E6}
.ph-size:has(input:focus-visible){outline:3px solid var(--o);outline-offset:2px}
.ph-size small{color:var(--mut);font-size:.75rem}
.ph-box{display:block;width:34px;height:34px;border:2px solid var(--d2);border-radius:4px;background:#fff}
.ph-box-portrait{width:30px;height:38px}.ph-box-landscape{width:44px;height:25px}.ph-box-story{width:24px;height:42px}
.ph-check{display:flex;gap:8px;align-items:center;font-weight:600;margin:0;min-height:44px}
.ph-check input{width:22px;height:22px;flex:none}
.ph-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.ph-split{grid-column:1/-1;margin:6px 0 0;font-weight:800;color:var(--d2);border-bottom:2px solid var(--o);padding-bottom:4px}
.ph-card{position:relative;display:grid;align-content:start;gap:8px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:8px}
.ph-img{display:block;border-radius:8px;overflow:hidden;background:#2D2E33;aspect-ratio:1}
.ph-img-portrait{aspect-ratio:4/5}.ph-img-landscape{aspect-ratio:16/9}
.ph-img img{display:block;width:100%;height:100%;object-fit:cover}
.ph-out .ph-img{aspect-ratio:4/3}.ph-out .ph-img img{opacity:.8}
.ph-num{position:absolute;top:14px;inset-inline-start:14px;min-width:28px;height:28px;display:grid;place-items:center;border-radius:999px;background:var(--o);color:var(--d);font-weight:800;box-shadow:0 1px 4px rgba(0,0,0,.3)}
.ph-tag{margin:0;font-size:.78rem;color:#7A4A00;background:#FFF1D6;border-radius:8px;padding:4px 8px}
.ph-why{display:grid;gap:3px}.ph-why small{color:var(--mut);font-size:.78rem}
.ph-flag{font-size:.85rem}.ph-flag-dup,.ph-flag-blur{color:#8B1013}
.ph-acts{display:grid;gap:6px}.ph-acts form{margin:0}
.ph-wide,.ph-acts .ph-wide{width:100%;min-height:44px}
.ph-more summary{cursor:pointer;font-size:.85rem;font-weight:700;min-height:36px;display:flex;align-items:center;gap:6px;list-style:none}
.ph-more summary::-webkit-details-marker{display:none}
.ph-more summary::after{content:"▾";color:var(--mut)}.ph-more[open] summary::after{content:"▴"}
.ph-more[open]{border-top:1px dashed var(--line);padding-top:6px}
.ph-more form,.ph-row{margin:0 0 8px}
.ph-row{display:flex;gap:6px 12px;flex-wrap:wrap;align-items:center}
.ph-chips{border:0;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.ph-chips legend{font-size:.78rem;color:var(--mut);margin-bottom:4px;padding:0}
.ph-chips label{margin:0;position:relative}
.ph-chips input{position:absolute;opacity:0;pointer-events:none}
.ph-chips span{display:inline-flex;align-items:center;min-height:36px;padding:0 12px;border:1px solid var(--line);border-radius:999px;font-size:.82rem;cursor:pointer;background:#FBFAF7}
.ph-chips input:checked+span{background:var(--d2);color:#fff;border-color:var(--d2)}
.ph-chips input:focus-visible+span{outline:3px solid var(--o);outline-offset:2px}
.ph-cap{margin:0;word-break:break-all}
.ph-approve{position:sticky;bottom:0;z-index:5;display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:#fff;border:2px solid var(--o);border-radius:14px;padding:12px 16px;margin-top:8px;box-shadow:0 -4px 16px rgba(0,0,0,.08)}
.ph-approve p{margin:0}.ph-approve .btn{min-height:46px}
.ph-again{position:static;border-color:var(--line);box-shadow:none}
.fr-sizes{list-style:none;padding:0;margin:6px 0 0;display:flex;flex-wrap:wrap;gap:6px}.fr-sizes li{background:#FBFAF7;border:1px solid var(--line);border-radius:8px;padding:2px 8px}
.ph-howto ol{margin:0;padding-inline-start:20px;display:grid;gap:6px}
.fr-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px}
.fr-cell{display:grid;align-content:start;gap:8px;border:1px solid var(--line);border-radius:12px;padding:10px;background:#FBFAF7}
.fr-cell h3{margin:0;font-size:1rem;display:flex;justify-content:space-between;gap:6px}
.fr-prev,.fr-empty{display:grid;place-items:center;border-radius:8px;overflow:hidden;background:#EDE9E1;aspect-ratio:1}
.fr-portrait{aspect-ratio:4/5}.fr-story{aspect-ratio:9/16;max-height:280px}.fr-landscape{aspect-ratio:16/9}
.fr-prev img{width:100%;height:100%;object-fit:contain}
.fr-empty{border:2px dashed var(--line);color:var(--mut);font-weight:700}
.fr-up{display:grid;gap:6px;margin:0}.fr-up label{margin:0}
@media (max-width:560px){
  .ph-steps li span{display:none}.ph-steps{gap:6px}.ph-steps li{padding:8px 10px}
  .ph-approve p{font-size:.9rem}
  .ph-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .ph-card{padding:6px}
  .ph-num{top:10px;inset-inline-start:10px}
  .ph-approve{padding:10px 12px}.ph-approve .btn{width:100%}
  .ph-sizes{grid-template-columns:repeat(2,1fr)}
  .fr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.ph-src{display:grid;gap:4px;background:#fff;border:1px solid var(--line);border-inline-start:4px solid var(--o);border-radius:12px;padding:10px 14px;margin-bottom:14px}
.ph-src span{font-size:.85rem;color:var(--mut)}
.ph-hint{margin:-4px 0 0;padding-inline-start:30px}
.ph-warns{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.ph-warns li{background:#FDECEC;color:#8B1013;border-radius:8px;padding:5px 8px;font-size:.8rem;font-weight:700}
.ph-warns small{display:block;font-weight:400;color:#7A2A2C}
.ph-warnline{display:flex;flex-wrap:wrap;gap:4px 12px;background:#FDECEC;color:#8B1013;border-radius:10px;padding:8px 12px;font-size:.88rem}
.ph-mark{display:block;font-size:.75rem;font-weight:700;border-radius:6px;padding:2px 6px;margin-bottom:3px;word-break:normal}
.ph-mark-warn{background:#FDECEC;color:#8B1013}.ph-mark-ok{background:#E3F4E8;color:#14532D}.ph-mark-mut{background:#EEE9E0;color:var(--mut)}
.ph-postwarn{border-color:#F4B4B4;background:#FFF8F8}.ph-postwarn ul{margin:0 0 8px;padding-inline-start:20px;display:grid;gap:4px}
.ph-warnsmall{display:block;color:#8B1013}
.ph-h{font-size:.95rem;margin:16px 0 6px}
.ph-set{margin:0}
.ph-chips-lg span{min-height:44px;padding:0 16px;font-size:.9rem}
.ph-brandnow{margin:8px 0 0}
.ph-switches{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:8px;margin:4px 0 12px}
.ph-switch{display:flex;gap:12px;align-items:center;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#FBFAF7;cursor:pointer;min-height:56px}
.ph-switch input{position:absolute;opacity:0;pointer-events:none}
.ph-switch>span:last-child{display:grid;gap:2px}.ph-switch small{color:var(--mut);font-size:.78rem;font-weight:400}
.ph-knob{flex:none;position:relative;width:46px;height:26px;border-radius:999px;background:#CFCAC0;transition:background .15s}
.ph-knob::after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:inset-inline-start .15s}
.ph-switch input:checked+.ph-knob{background:#2E9E5B}
.ph-switch input:checked+.ph-knob::after{inset-inline-start:23px}
.ph-switch input:focus-visible+.ph-knob{outline:3px solid var(--o);outline-offset:2px}
.ph-switch:has(input:disabled){opacity:.6;cursor:default}
.ph-cutwarn{margin:0;font-size:.78rem;font-weight:700;color:#7A4A00;background:#FFF1D6;border-radius:8px;padding:5px 8px}
.ph-img.ph-img-original{aspect-ratio:auto;background:none}
.ph-img-original img{height:auto}
.ph-box-original{width:34px;height:28px;border-style:dashed}
.ph-toc{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.ph-toc a{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:#fff;text-decoration:none;color:var(--d);font-weight:700;font-size:.88rem}
.ph-prefs{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px;margin-bottom:6px}
.fr-branch{border-top:1px dashed var(--line);padding-top:6px;margin-top:10px}
.fr-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ph-howto{margin:0 0 10px;padding-inline-start:20px;display:grid;gap:6px}
@media (max-width:560px){
  .ph-switches{grid-template-columns:1fr}
  .ph-sizes{grid-template-columns:repeat(3,1fr)}
  .ph-size{padding:10px 4px}.ph-size b{font-size:.85rem}
}
.ph-card .link,.ph-row a,.fr-cell .link,#shape .link{display:inline-flex;align-items:center;min-height:40px}
.fr-meta{display:grid;gap:2px;margin:0;word-break:break-all}
.ph-prefs label small{display:block;margin-top:4px;line-height:1.6}
.ph-img-each{aspect-ratio:4/5}
.ph-shape{position:absolute;top:14px;inset-inline-end:14px;background:rgba(45,46,51,.85);color:#fff;border-radius:999px;padding:3px 10px;font-size:.75rem;font-weight:700}
.ph-softwarn{margin:0;font-size:.78rem;font-weight:700;color:#8B1013;background:#FDECEC;border-radius:8px;padding:5px 8px}
.pl-story{border:1px solid var(--line);border-radius:12px;padding:10px 12px}.pl-story legend{font-weight:700;padding:0 4px}
.pr-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.pr-item{border:1px solid var(--line);border-radius:12px;padding:10px;background:#FBFAF7;display:grid;gap:6px}
.pr-card{display:grid;gap:4px;background:#2D2E33;color:#fff;border-radius:10px;padding:12px 14px;border-inline-start:4px solid var(--o)}
.pr-card span{font-size:.88rem;opacity:.9}.pr-btn{color:var(--o);font-weight:700}
.ph-client{background:#E3F4E8;border:1px solid #B6E2C2;color:#14532D;border-radius:12px;padding:10px 14px;margin-bottom:14px}
.st-help{font-weight:600;margin-inline-start:8px}
.svc{margin-bottom:18px}.svc-h{font-size:1.05rem;margin:0 0 10px}
.svc-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(220px,1fr);gap:12px;overflow-x:auto;padding-bottom:6px;scroll-snap-type:x mandatory}
.svc-card{scroll-snap-align:start;display:grid;align-content:start;gap:6px;background:#fff;border:1px solid var(--line);border-top:4px solid var(--o);border-radius:14px;padding:14px;text-decoration:none;color:var(--d);min-height:160px}
.svc-card b{font-size:1rem}.svc-card span{color:var(--mut);font-size:.86rem;line-height:1.6}.svc-card em{font-style:normal;font-weight:800;color:#9A5E00;margin-top:auto}
.svc-ic{font-size:1.6rem;line-height:1}
.promo-box{display:grid;gap:6px;background:#fff;border:1px solid var(--line);border-inline-start:5px solid var(--o);border-radius:14px;padding:16px;margin-bottom:18px}
.promo-box p{margin:0;color:var(--mut)}.promo-box .btn{justify-self:start}
.upstat[hidden]{display:none}
.st-uplist:empty{display:none}
.help-q{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--o);color:var(--d);font-weight:900;font-size:.8rem}
.st-help{text-decoration:none}
.st-drop input[type=file]{width:100%;font:inherit;color:var(--mut)}
.st-drop input[type=file]::file-selector-button{font:700 .9rem inherit;font-family:inherit;background:var(--d2);color:#fff;border:0;border-radius:999px;padding:9px 16px;margin-inline-end:10px;cursor:pointer}
@media (min-width:760px){.svc-row{grid-auto-flow:row;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));overflow:visible}}
.st-msg:empty{min-height:0;margin:6px 0}
.st-upl{display:grid;gap:6px;margin-top:6px}.st-upl label{margin:0}
.st-ok{color:#14532D;font-weight:700;margin:6px 0 0}
.st-made{border-color:#B6E2C2;background:#F3FBF5}.st-made input{width:100%}

/* خطة النشر: tabs, days and short rows, like Meta's planner */
.pl-bar{margin:0 0 .5rem}.pl-bar select{width:100%}
.pl-month{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin:.25rem 0 .75rem}
.pl-month strong{font-size:1.15rem;min-width:7.5rem;text-align:center}
.pl-arrow{display:inline-grid;place-items:center;width:2.6rem;height:2.6rem;border:1px solid #ddd;border-radius:50%;font-size:1.4rem;text-decoration:none;color:inherit;background:#fff}
.pl-views{margin-inline-start:auto;display:inline-flex;border:1px solid #ddd;border-radius:999px;overflow:hidden;background:#fff}
.pl-views a{padding:.45rem .9rem;text-decoration:none;color:inherit}
.pl-views a[aria-current]{background:#2D2E33;color:#FFA505}
.pl-tabs{display:flex;gap:.4rem;overflow-x:auto;padding-bottom:.25rem;margin-bottom:.75rem;border-bottom:1px solid #e6e2da}
.pl-tabs a{flex:0 0 auto;padding:.55rem .9rem;border-radius:999px;text-decoration:none;color:#555;background:#f1eee8;white-space:nowrap}
.pl-tabs a b{display:inline-block;min-width:1.4rem;text-align:center;border-radius:999px;background:#fff;padding:0 .3rem;margin-inline-start:.2rem}
.pl-tabs a[aria-current]{background:#2D2E33;color:#fff}.pl-tabs a[aria-current] b{background:#FFA505;color:#2D2E33}
.pl-group{margin-bottom:1rem}
.pl-dh{font-size:1rem;margin:.75rem 0 .4rem;color:#2D2E33;position:sticky;top:0;background:#f5f3ef;padding:.3rem 0;z-index:1}
.pl-dh small{color:#c77d00;font-weight:600}
.pl-row{display:flex;align-items:center;gap:.5rem;margin-bottom:.4rem}
.pl-row input[type=checkbox]{width:1.3rem;height:1.3rem;flex:0 0 auto}
.pl-card{flex:1;min-width:0;display:flex;align-items:center;gap:.7rem;padding:.55rem .65rem;background:#fff;border:1px solid #e6e2da;border-radius:14px;text-decoration:none;color:inherit}
.pl-card:hover{border-color:#FFA505}
.pl-th{width:56px;height:56px;flex:0 0 56px;border-radius:10px;object-fit:cover;background:#2D2E33;color:#FFA505;display:grid;place-items:center;font-size:1.3rem}
.pl-body{flex:1;min-width:0;display:grid;gap:.15rem}
.pl-top{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pl-cap{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#444;font-size:.92rem}
.pl-meta{display:flex;align-items:center;gap:.3rem;flex-wrap:wrap}
.pl-pf{font-style:normal;font-size:.7rem;font-weight:700;display:inline-grid;place-items:center;min-width:1.3rem;height:1.3rem;border-radius:5px;color:#fff;background:#777;padding:0 .2rem}
.pl-facebook{background:#1877f2}.pl-instagram{background:#c13584}
.pl-card .badge{flex:0 0 auto;font-size:.75rem;max-width:6.5rem;text-align:center;white-space:normal}
.pl-sticky{position:sticky;bottom:0;background:#f5f3ef;padding:.6rem 0;border-top:1px solid #e6e2da;z-index:2}
.pl-cal{background:#fff;border:1px solid #e6e2da;border-radius:14px;padding:.4rem;margin-bottom:.75rem}
.pl-wd,.pl-wk{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.pl-wd span{text-align:center;font-size:.75rem;color:#888;padding:.2rem 0}
.pl-day{min-height:3.2rem;border-radius:8px;padding:.2rem;text-decoration:none;color:inherit;display:flex;flex-direction:column;align-items:center;gap:.2rem}
.pl-day.out{opacity:.35}.pl-day.today span{background:#FFA505;border-radius:50%;width:1.6rem;height:1.6rem;display:grid;place-items:center;font-weight:700}
.pl-day.on{background:#2D2E33;color:#fff}.pl-day:hover{background:#f1eee8}.pl-day.on:hover{background:#2D2E33}
.pl-dots{display:flex;gap:2px;flex-wrap:wrap;justify-content:center}.pl-dots em{width:7px;height:7px;border-radius:50%;background:#bbb}
.pl-dots .dot-draft{background:#FFA505}.pl-dots .dot-confirmed,.pl-dots .dot-publishing{background:#2e9e5b}.pl-dots .dot-published{background:#2D2E33}.pl-dots .dot-failed{background:#E8161B}
.pl-day.on .dot-published{background:#fff}
@media (min-width:900px){.pl-bar select{width:auto;min-width:18rem}.pl-day{min-height:5rem}.pl-th{width:64px;height:64px;flex-basis:64px}}
/* plan: publish results — the page name on one line, the error under it with its buttons */
.pl-res > li{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;border-bottom:1px solid var(--line);padding:10px 0}
.pl-res-page{font-weight:600;flex:0 1 auto;min-width:0;overflow-wrap:anywhere}
.pl-res-err{flex:1 1 100%}
.pl-res-acts{display:flex;flex-wrap:wrap;gap:8px;flex:1 1 100%}
/* plan: the two halves of a material with videos and photos */
.pl-half{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;border-radius:12px;padding:12px 16px;margin:0 0 14px;border:2px solid}
.pl-half-video{background:#FFF4DE;border-color:#FFA505}
.pl-half-photo{background:#EAF2FF;border-color:#3B6FD8}
.pl-half > b{font-size:1.05rem}
.pl-half-other{flex:1 1 100%}
.pl-half-b{display:inline-block;border-radius:999px;padding:1px 8px;font-weight:700;margin-inline-end:6px;border:1px solid}
.pl-half-b.pl-half-video{color:#8A5300}
.pl-half-b.pl-half-photo{color:#1F4A9E}
.pl-kind{display:flex;flex-direction:column;gap:4px}
.pl-kind-b{display:inline-block;align-self:flex-start;border-radius:8px;padding:8px 12px;background:#F4F1EA;border:1px solid var(--line)}
/* plan: the preview never collapses to nothing */
.pl-pv-img.st-vplay{min-height:220px}
.pl-side .pl-card{overflow:hidden}
@media (max-width:1100px){.pl-side{position:static}}
/* the preview card is not a list row: its own layout wins over the plan list's .pl-card / .pl-cap */
.pl-preview .pl-card{display:block;padding:12px;gap:0}
.pl-preview .pl-cap{white-space:pre-line;overflow:visible;text-overflow:clip;background:var(--bg,#f7f7f8);border-radius:10px;padding:10px 12px;margin:0 0 10px;font-size:.95rem;color:inherit}
.pl-preview .pl-who b{overflow-wrap:anywhere}
.pl-preview .pl-av{flex:0 0 auto}
.pl-manual{flex:1 1 100%;border:1px dashed var(--line);border-radius:10px;padding:8px 12px}
.pl-manual summary{cursor:pointer;font-weight:600}
.pl-manual ol{margin:8px 0;padding-inline-start:20px;display:grid;gap:6px}
.pl-manual-text{width:100%;cursor:copy;font-size:.85rem}.pl-manual-text.copied{outline:2px solid #16794A}
.pl-manual input[type=url]{min-width:240px;flex:1}
.pk-more summary{cursor:pointer;font-size:.8rem;color:#8A5300;list-style:none}.pk-more summary::-webkit-details-marker{display:none}
.pk-more[open]{display:grid;gap:4px}
.pl-log summary{cursor:pointer;list-style:none}.pl-log summary h2{display:inline;margin:0}
.pl-log-list li{padding:6px 0;border-bottom:1px solid var(--line);font-size:.9rem}
.pl-swap{border:2px dashed #FFA505}
.pl-manual ol{list-style:decimal}.pl-manual li{border:0;padding:0}.pl-manual .btn{white-space:nowrap}
.pl-before{border:2px solid #E8161B}
.pl-before:target{animation:pl-flash 1.2s ease 2}
@keyframes pl-flash{50%{box-shadow:0 0 0 6px rgba(232,22,27,.25)}}
@media (prefers-reduced-motion:reduce){.pl-before:target{animation:none}}
#caption:target,#when:target{outline:3px solid #FFA505}
.pm-acts{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.pm-dup{background:#E8161B;color:#fff;border-color:#E8161B}
.st-num-sm{width:5em;display:inline-block}
.pl-title{display:block;font-size:1rem;line-height:1.5}
.pl-branch{color:#8A5300;font-weight:700}
.pl-cap-sm{font-size:.85rem;opacity:.75}
.st-review{border:2px solid #FFA505;border-radius:12px;padding:12px 16px;margin:12px 0;background:#FFFBF2}
.st-review h3{margin:0 0 6px}
.st-copy{width:100%;cursor:copy;font-size:.85rem;margin:6px 0}
/* the upload app's door to منصة سبوت («أدواري») */
.st-pf{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0 0 18px}.st-pf p{margin:0;flex:1 1 220px}
.st-close-ext td input[type=url]{min-width:240px;width:100%}
.st-newdoc .st-fs{display:flex;flex-wrap:wrap;gap:4px 18px;margin-bottom:8px}
.st-newclient{margin:4px 0 12px}.st-newclient summary{cursor:pointer;font-weight:600}
.st-discall{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:10px 0}.st-discall input{width:90px}
.ti-reply{display:inline-flex;align-items:center;gap:4px;flex-wrap:wrap;font-size:.85rem}
@media (max-width:760px){.st-wide table.rt{min-width:0}.ti-reply{display:flex;width:100%}.ti-reply .btn{flex:1 1 0;width:auto}}
.alert [dir=ltr]{overflow-wrap:anywhere}
/* وظائف سبوت: checkboxes in a row inside the job forms («الصق إعلان» and posting for a school) */
.jb-st-form .check,.jb-st-form .la-check{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:6px;font-weight:500;margin:0 0 6px}
.jb-st-form .check input,.jb-st-form .la-check input{width:auto!important;margin:0}
.jb-st-form .perm-form{display:flex;flex-wrap:wrap;gap:4px 16px;margin-bottom:8px}
/* مشاكل الحسابات */
.st-issue-list{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:8px}
.st-issue-list li{padding:8px 10px;border-radius:8px;background:#FBFAF7;overflow-wrap:anywhere}
.st-issue .st-row{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:flex-start}
.st-issue.st-off{opacity:.75}
