/* PWP identity (owner-approved boards, 2026-10-30): one identity with the app.
   · One font everywhere: IBM Plex Sans Arabic (Arabic, English and numbers); numbers read left to right.
   · Buttons like the app: primary 48px radius 12 red #D7262F, outlined secondary, small 40px radius 10.
   · Cards radius 14, a thin line instead of shadows. Palette: bg #F3F4F6, surface #FFF, line #E4E6EA, ink #15171A,
     muted #646870; one colour per state (red #D4343A, amber #A8761A, blue #2C6DB0, green #1F8A4C, purple #6A4FD6).
   Loaded LAST on every customer page (after ui.css, v2.css, pwp-header.css and the page's own styles).
   Dark mode (html.dk / data-theme=dark, the dashboard) keeps its own palette. */
:root{--pwp-f:'IBM Plex Sans Arabic','IBM Plex Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  --id-bg:#F3F4F6;--id-sf:#FFFFFF;--id-sf2:#F4F5F7;--id-line:#E4E6EA;--id-line2:#D6D9DE;--id-ink:#15171A;--id-mut:#646870;--id-red:#D7262F;
  --st-red:#D4343A;--st-amber:#A8761A;--st-blue:#2C6DB0;--st-green:#1F8A4C;--st-purple:#6A4FD6;
  --st-red-bg:#FDEEEE;--st-amber-bg:#FBF5E6;--st-blue-bg:#EEF4FB;--st-green-bg:#EAF6EF;--st-purple-bg:#F2EFFD}
html.dk,html[data-theme=dark]{--id-bg:#0E0F11;--id-sf:#16171A;--id-sf2:#1C1D21;--id-line:#232529;--id-line2:#3A3D43;--id-ink:#ECECEE;--id-mut:#8A8D93;
  --st-red-bg:#2A1416;--st-amber-bg:#1D190F;--st-blue-bg:#141B23;--st-green-bg:#13201A;--st-purple-bg:#1D1A2A}
/* the page tokens every older stylesheet reads (v2.css uses :root:not(#_), so this needs one more) */
html:not(.dk):not([data-theme=dark]):root:not(#_):not(#__){
  --paper:#F3F4F6;--surface:#FFFFFF;--panel:#FFFFFF;--line:#E4E6EA;--line2:#E4E6EA;--graphite:#15171A;--steel:#646870;--ink2:#2A2D33;--soft:#F4F5F7;
  --red:#D7262F;--red2:#B81F27;--red-deep:#B81F27;--green:#1F8A4C;--amber:#A8761A;--gold:#A8761A;--pur:#6A4FD6;--ui-edge:#D6D9DE;--r:12px;
  --fd:var(--pwp-f);--fb:var(--pwp-f);--far:var(--pwp-f);--font-display:var(--pwp-f);--font-body:var(--pwp-f)}
:root:not(#_):not(#__){--con:#0F1013;--con2:#17191D;--con-line:#2A2D33;--con-key:#17191D;--con-key2:#22252A;--fd:var(--pwp-f);--fb:var(--pwp-f);--far:var(--pwp-f);--font-display:var(--pwp-f);--font-body:var(--pwp-f);--f:var(--pwp-f);--fn:var(--pwp-f)}

/* ── one font ── */
html body,html body :is(h1,h2,h3,h4,h5,h6,p,a,span,b,i,em,small,strong,label,li,td,th,div,section,button,input,select,textarea,option,bdi,small,s,dt,dd){font-family:var(--pwp-f)!important}
html body :is(code,pre,kbd){font-family:ui-monospace,Menlo,Consolas,monospace!important}
html body :is(h1,h2,h3,h4,h5,h6,.head h1,.sec-h h2,.dept-head h2,.v2hero h1){font-style:normal!important;letter-spacing:0!important}
html body :is(h1,h2,h3,h4) em{font-style:normal}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
html:not(.dk):not([data-theme=dark]),html:not(.dk):not([data-theme=dark]) body{background:var(--id-bg)}
/* numbers and codes read left to right inside Arabic text */
.n,.num-ltr,.d2-n,.lat,[data-ltr]{direction:ltr;unicode-bidi:isolate}
/* phone numbers: always «+965 9988 4417», left to right, the code box on the left */
input[type=tel],.ph-ltr,a[href^="tel:"],.phone-ltr{direction:ltr!important;unicode-bidi:isolate;text-align:left}
.ph-row,.phone-row{direction:ltr}
.ph-row>*,.phone-row>*{direction:ltr}

/* ── the header (the console) like the app: no rail, flat keys ── */
.rail{display:none!important}
nav.top,body>nav{background:#0F1013!important;border-bottom:1px solid #22252A!important;box-shadow:none!important}
.nav-links{background:#17191D!important;border:1px solid #2A2D33!important;border-radius:12px!important;padding:4px!important;box-shadow:none!important;gap:2px!important}
.nav-links .pwp-thumb{background:#2A2D33!important;box-shadow:inset 0 -2px 0 #D7262F!important;border-radius:9px!important}
.nav-links a{color:#D5D7DB!important;font-size:14px!important;font-weight:500!important;border-radius:9px!important;height:34px!important;padding:0 16px!important}
.nav-links a[aria-current]{color:#fff!important;font-weight:700!important}
.nav-links:not(.has-thumb) a[aria-current]{background:#2A2D33!important;box-shadow:inset 0 -2px 0 #D7262F}
.nav-links a[aria-current]::after{display:none!important}
@media (min-width:901px){.nav-links a::before{display:none!important}}
nav .icon-btn,nav .top-ico,nav .pwpn-btn{width:36px!important;height:36px!important;border-radius:10px!important;background:#17191D!important;border:1px solid #2A2D33!important;box-shadow:none!important}
nav .icon-btn[aria-current]::after,nav .top-ico[aria-current]::after{display:none!important}
nav .lang{border-radius:10px!important;background:#17191D!important;border-color:#2A2D33!important;box-shadow:none!important;padding:2px!important}
nav .lang button,nav .lang .lang-b{height:30px!important;font:600 13px var(--pwp-f)!important;border-radius:8px!important}
nav .lang .pwp-thumb{background:#2A2D33!important;box-shadow:none!important}
nav .ph-key.ph-named{height:36px!important;border-radius:10px!important;font:600 13px var(--pwp-f)!important;color:#fff!important}
nav .ph-key.ph-named i.ph-av{width:24px!important;height:24px!important;border-radius:7px!important;background:#D7262F!important;font:700 12px var(--pwp-f)!important}
/* a visitor: «تسجيل الدخول» as a small red key (board Signin) */
nav .ph-key.ph-in{width:auto!important;padding:0 14px!important;background:#D7262F!important;border-color:#D7262F!important;color:#fff!important;font:600 14px var(--pwp-f)!important;white-space:nowrap}
nav .ph-key.ph-in:hover{background:#C2212A!important}
@media (max-width:600px){nav .ph-key.ph-in{padding:0 10px!important;font-size:13px!important}}
nav .badge,nav .cart-badge{border-color:#0F1013!important;background:#D7262F!important}

/* ── buttons ── */
html body :is(.btn,.btn-red,.btn-primary,.btn-dark,.btn-light,.btn-ghost,.btn-danger,.tbtn,.btn-google,.btn-apple,.btn-ghost-lg){
  border-radius:12px!important;box-shadow:none!important;transform:none;font-weight:600!important;letter-spacing:0!important;min-height:48px;padding:0 20px;font-size:15px;text-transform:none}
html body :is(.btn-red,.btn-primary){background:#D7262F!important;border:1px solid #D7262F!important;color:#fff!important}
html body :is(.btn-red,.btn-primary):hover{background:#C2212A!important;border-color:#C2212A!important;box-shadow:none!important}
html body :is(.btn-ghost,.btn-light,.tbtn,.btn-ghost-lg,.btn-google,.btn-danger){background:#fff!important;border:1px solid #D6D9DE!important;color:#15171A!important}
html body :is(.btn-ghost,.btn-light,.tbtn,.btn-ghost-lg,.btn-google):hover{border-color:#15171A!important;background:#fff!important;box-shadow:none!important}
html body .btn-danger{color:#B81F27!important}
html body :is(.btn-dark,.btn-apple){background:#15171A!important;border:1px solid #15171A!important;color:#fff!important}
html body :is(.btn,.btn-red,.btn-primary,.btn-ghost,.btn-light,.tbtn):active{transform:scale(.98)!important}
html body :is(.btn-sm,.tbtn.sm){min-height:40px!important;border-radius:10px!important;padding:0 14px!important;font-size:14px!important}
.is-released:not(#_){animation:none!important}
/* the dark hero keeps its outlined button readable */
.v2hero .btn-ghost{background:transparent!important;color:#fff!important;border-color:#4A4D54!important}
.v2hero .btn-ghost:hover{border-color:#fff!important}

/* ── fields ── */
html:not(.dk):not([data-theme=dark]) body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]),
html:not(.dk):not([data-theme=dark]) body select,html:not(.dk):not([data-theme=dark]) body textarea{border:1px solid #E4E6EA!important;border-radius:12px!important;box-shadow:none!important;background-color:#fff}
html body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):focus,html body select:focus,html body textarea:focus{border-color:#15171A!important;box-shadow:0 0 0 3px rgba(21,23,26,.08)!important}
input[type=checkbox],input[type=radio]{accent-color:#D7262F}

/* ── cards: radius 14, a thin line, no heavy shadows ── */
html:not(.dk):not([data-theme=dark]) :is(.prod,.gen,.item,.rev,.shipnote,.model,.svc,.deal,.empty-sec,.card,.panel){border-radius:14px!important}
.prod,.gen,.item,.rev,.shipnote{border-color:#E4E6EA!important;box-shadow:none!important}

/* ── status chips (one colour each) ── */
.chipst{display:inline-flex;align-items:center;gap:6px;height:26px;border-radius:8px;padding:0 10px;font-size:12.5px;font-weight:600}
.chipst.red{background:var(--st-red-bg);color:var(--st-red)}.chipst.amber{background:var(--st-amber-bg);color:var(--st-amber)}
.chipst.blue{background:var(--st-blue-bg);color:var(--st-blue)}.chipst.green{background:var(--st-green-bg);color:var(--st-green)}.chipst.purple{background:var(--st-purple-bg);color:var(--st-purple)}

/* ── the stage ring (same as the app): «1/4» filling like an RPM gauge ── */
.idr{--p:0;--st:#2C6DB0;width:42px;height:42px;border-radius:50%;flex:none;display:grid;place-items:center;position:relative;direction:ltr;
  background:conic-gradient(var(--st) calc(var(--p)*1%),#E7E9EC 0);font:600 12px var(--pwp-f)}
.idr::after{content:"";position:absolute;inset:4px;border-radius:50%;background:var(--id-sf)}
.idr>span{position:relative;z-index:1;color:var(--id-ink)}
html.dk .idr{background:conic-gradient(var(--st) calc(var(--p)*1%),#2C2E33 0)}

/* ── the footer (board Home): four columns, plain links ── */
footer.idf{background:#0F1013!important;color:#C9CDD3!important;padding:44px 0 28px!important;margin-top:56px;border-top:0!important;box-shadow:none!important}
footer.idf .idf-in{max-width:1196px;margin:0 auto;padding:0 28px}
footer.idf .idf-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px;align-items:start}
footer.idf .idf-brand img{height:28px;width:auto;display:block}
footer.idf .idf-brand p{margin:10px 0 0;color:#C9CDD3;font-size:13.5px;line-height:1.8}
footer.idf h4{margin:0 0 10px;color:#fff;font-size:14px;font-weight:700}
[dir=rtl] footer.idf .idf-col a[dir=ltr]{text-align:right}
footer.idf .idf-col a{display:block;height:auto!important;padding:5px 0!important;background:none!important;border:0!important;box-shadow:none!important;color:#C9CDD3!important;font-size:14px!important;text-decoration:none}
footer.idf .idf-col a::before{display:none!important}
footer.idf .idf-col a:hover{color:#fff!important}
footer.idf .idf-bot{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-top:30px;padding-top:16px;border-top:1px solid #22252A;font-size:13px;color:#C9CDD3}
footer.idf .idf-bot nav{display:flex;gap:20px;background:none!important;border:0!important;position:static!important}
footer.idf .idf-bot a{display:inline;height:auto!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;color:#C9CDD3!important;font-size:13px!important}
footer.idf .idf-bot a::before{display:none!important}
footer.idf .idf-bot a:hover{color:#fff!important}
@media (max-width:860px){footer.idf .idf-grid{grid-template-columns:1fr 1fr}footer.idf .idf-brand{grid-column:1/-1}}
@media (max-width:480px){footer.idf .idf-in{padding:0 16px}footer.idf .idf-grid{grid-template-columns:1fr;gap:22px}}

/* ── no glow, no LED dots (DESIGN.md §4) ── */
.variant.on::after,.dev.on::after{display:none!important}

/* ── the sign-in popover (board Signin): one tidy card ── */
.ph-pop{width:380px!important;border-radius:16px!important;border:0!important;padding:22px!important;box-shadow:0 30px 60px -20px rgba(0,0,0,.5)!important;display:flex;flex-direction:column;gap:10px}
.ph-pop:before{display:none!important}
.ph-pop .ph-logo{display:none}
.ph-pop h4{font-size:20px!important;font-weight:700!important;margin:0!important}
.ph-pop>p:not(.ph-warn):not(.ph-aph):not(.ph-note){font-size:13.5px!important;color:#646870;margin:-6px 0 6px!important}
.ph-pop .ph-sso{display:flex!important;flex-direction:column;gap:10px!important;margin:0!important}
.ph-pop .ph-sso button{height:48px!important;border-radius:12px!important;border:1px solid #D6D9DE!important;box-shadow:none!important;font:600 15px var(--pwp-f)!important;gap:10px}
.ph-pop .ph-sso button.ap{background:#0F1013!important;border-color:#0F1013!important;color:#fff!important}
.ph-pop .ph-sso button.ph-big{height:56px!important;font-size:16px!important;border-color:#15171A!important;box-shadow:0 0 0 1px #15171A!important}
.ph-pop .ph-sso button.ph-big.ap{box-shadow:none!important}
.ph-pop .ph-mk{width:26px;height:26px;border-radius:7px;background:#FDEEEE;color:#D7262F;display:grid;place-items:center;font:italic 800 10px 'IBM Plex Sans',sans-serif!important;letter-spacing:-1px;direction:ltr}
.ph-pop p.ph-aph{font-size:12px!important;margin:-2px 0 0!important;color:#646870}
.ph-pop .ph-or{margin:4px 0!important;font-size:12.5px;color:#8E9198}
.ph-pop .ph-or:before,.ph-pop .ph-or:after{background:#E4E6EA}
.ph-pop input{height:46px!important;border:1px solid #E4E6EA!important;border-radius:12px!important;box-shadow:none!important;font:400 14px var(--pwp-f)!important;padding:0 14px!important}
.ph-pop #phPass{direction:inherit;text-align:start}
.ph-pop .ph-code input{width:42px!important;padding:0!important;text-align:center;font-size:20px!important;font-weight:700!important}
.ph-pop .ph-go{height:48px!important;min-height:48px;margin:0!important;border-radius:12px!important;border:0!important;background:#D7262F!important;box-shadow:none!important;font:600 15px var(--pwp-f)!important}
.ph-pop .ph-forgot{display:block;text-align:center;color:#D7262F;font-size:13px;font-weight:500;cursor:pointer}
.ph-pop .ph-vh{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)}
.ph-pop p.ph-warn{background:#FBF5E6!important;border:0!important;border-radius:10px!important;padding:10px 12px!important;font-size:12.5px!important;color:#7A5A12!important;line-height:1.7;margin:0!important}
.ph-pop .ph-alt{justify-content:center!important;margin:0!important}
.ph-pop .ph-alt b{color:#D7262F!important;text-decoration:none!important;font-size:13.5px}
.ph-pop .ph-sm{margin-top:0!important}
.ph-pop .ph-err{margin:0!important}
html.dk .ph-pop .ph-sso button.ph-big{border-color:#ECECEE!important;box-shadow:0 0 0 1px #ECECEE!important}
html.dk .ph-pop p.ph-warn{background:#1D190F!important;color:#D4A24C!important}
html.dk .ph-pop input{background:#0B0C0E!important;border-color:#3A3D43!important}
footer.idf .idf-brand a{display:inline-block!important;height:auto!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
footer.idf .idf-brand a::before{display:none!important}
html body :is(.content-title,.page-title,.dept-head h2,.gv-hero-name,.gv-form-h){font-style:normal!important;letter-spacing:0!important}
.ord3 .action-flag .btn{white-space:nowrap}

/* ── header at the board size (boards Home/Store/Dash, 2026-10-30): full width, 32px from the edges, 64px tall;
   the name chip leads with its letter; the language key reads «EN | ع» with no highlight ── */
@media (min-width:901px){
  :is(nav.top,body>nav)>:is(.nav-in,.top-in){max-width:none!important;padding:0 32px!important;height:64px!important;min-height:0!important}
  :is(nav.top,body>nav):has(>:is(.nav-in,.top-in)){height:64px!important;min-height:0}
}
nav .ph-key.ph-named i.ph-av{order:-1}
nav .ph-key.ph-named{padding:0 10px 0 6px!important}
[dir=rtl] nav .ph-key.ph-named{padding:0 6px 0 10px!important}
nav .lang.has-thumb .pwp-thumb{display:none!important}
nav .lang{display:inline-flex;align-items:center;padding:0 4px!important;height:36px}
nav .lang .lang-b{background:none!important;color:#fff!important;box-shadow:none!important;padding:0 6px!important}
nav .lang .lang-b+.lang-b{position:relative}
nav .lang .lang-b+.lang-b::before{content:"|";position:absolute;inset-inline-start:-3px;opacity:.5;font-weight:400;color:#fff}

/* board Ipad (768): one 64px header row with the page links inline; the letter key and the bell; no bottom bar */
@media (min-width:601px) and (max-width:900px){
  :is(nav.top,body>nav)>:is(.nav-in,.top-in){flex-wrap:nowrap!important;height:64px!important;min-height:0!important;padding:0 16px!important;row-gap:0!important}
  :is(nav.top,body>nav):has(>:is(.nav-in,.top-in)){height:64px!important;min-height:0!important}
  :is(nav.top,body>nav) .nav-links{order:0!important;width:auto!important;display:flex!important;margin:0 auto!important}
  :is(nav.top,body>nav) .nav-links a{flex-direction:row!important;min-height:0!important;height:34px!important;padding:0 12px!important;font-size:14px!important}
  :is(nav.top,body>nav) .nav-links a::before{display:none!important}
  html.acc-bar :is(nav.top,body>nav) .lang,html.dash-mode :is(nav.top,body>nav) .lang{display:none!important}
}
