/* ---------- Appearance (المظهر): colour themes, light/dark, background (plain, grid, motion), sidebar style ----------
   Ported from the Corner Stone dashboard themes and laid over the Polaris look. Everything is scoped to body.pol and keyed
   off data attributes set by admin/appearance.js; the default (data-pal=shopify, light, plain, light sidebar) changes nothing. */
body.pol{--ax-acc:#e8590c;--ax-top:#1a1a1a;--ax-side:#ebebeb;--ax-paper:#f1f1f1;--ax-ink:#303030;--ax-dk:#141312}
html[dir=ltr] body.pol{--f-head:"Inter","IBM Plex Sans Arabic",system-ui,sans-serif;--f-body:"Inter","IBM Plex Sans Arabic",system-ui,sans-serif;--f-num:"Inter","IBM Plex Sans Arabic",system-ui,sans-serif}

/* colour themes (Corner Stone set): dark top bar = the theme's sidebar colour, page = its paper, one accent */
body.pol[data-pal=respark]{--ax-top:#141312;--ax-dk:#141312;--ax-paper:#efedeb;--ax-side:#e6e3df;--ax-acc:#e06a24;--ax-ink:#1a1a1a}
body.pol[data-pal=mono]{--ax-top:#111;--ax-dk:#111;--ax-paper:#f0f0ef;--ax-side:#e5e5e4;--ax-acc:#161616;--ax-ink:#161616}
body.pol[data-pal=calm]{--ax-top:#18222b;--ax-dk:#18222b;--ax-paper:#edf0f2;--ax-side:#e1e6ea;--ax-acc:#4f6f85;--ax-ink:#1f2a33}
body.pol[data-pal=duo]{--ax-top:#14213d;--ax-dk:#14213d;--ax-paper:#eff0f3;--ax-side:#e2e4ea;--ax-acc:#d98a1f;--ax-ink:#14213d}
body.pol[data-pal=graphite]{--ax-top:#1b1f1e;--ax-dk:#1b1f1e;--ax-paper:#ebecec;--ax-side:#dfe1e1;--ax-acc:#0f766e;--ax-ink:#202423}
body.pol[data-pal=sand]{--ax-top:#1c2840;--ax-dk:#1c2840;--ax-paper:#f2eee6;--ax-side:#e7e1d5;--ax-acc:#a8783f;--ax-ink:#1c2840}
body.pol[data-pal=forest]{--ax-top:#17211b;--ax-dk:#17211b;--ax-paper:#edf0ec;--ax-side:#e0e5df;--ax-acc:#2f6b4f;--ax-ink:#1c2620}
body.pol:not([data-pal=shopify]){--bg:var(--ax-paper);--pol-chart:var(--ax-acc);--teal:var(--ax-acc);--teal-2:var(--ax-acc)}
body.pol:not([data-pal=shopify]) .pol-top{background:var(--ax-top)}
body.pol:not([data-pal=shopify]) .sidebar{background:var(--ax-side)}
body.pol:not([data-pal=shopify]) :focus-visible{outline-color:var(--ax-acc)}
body.pol:not([data-pal=shopify]) .bar-fill{background:var(--ax-acc)}

/* background: the page sits on its paper colour; the grid and the motion canvas live under the cards */
body.pol{background-color:var(--bg)}
body.pol[data-bg=grid]{background-image:linear-gradient(rgba(26,26,26,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(26,26,26,.06) 1px,transparent 1px);background-size:56px 56px;background-attachment:fixed}
body.pol[data-bg=grid][data-dark="1"]{background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px)}
#bgfx{position:fixed;inset:0;width:100vw;height:100vh;z-index:0;pointer-events:none;display:block}
body.pol .pol-shell{position:relative;z-index:1}
body.pol:not([data-bg=motion]) #bgfx{display:none}
body.pol[data-bg=motion] main{background:transparent}

/* sidebar: Shopify light (default) or the earlier dark one with small white dots */
body.pol[data-side=dots] .sidebar{background:radial-gradient(rgba(255,253,249,.16) 1px,transparent 1.5px) 0 0/14px 14px var(--ax-dk);color:#f3f1ee;border-inline-end-color:rgba(255,255,255,.06);isolation:isolate}
body.pol[data-side=dots] nav a{color:#d9d6d1}
body.pol[data-side=dots] nav a:hover{background:rgba(255,255,255,.07);color:#fff}
body.pol[data-side=dots] nav a.active,body.pol[data-side=dots] nav a[aria-current=page]{background:rgba(255,255,255,.12);color:#fff}
body.pol[data-side=dots] nav a .ni{stroke:currentColor}
body.pol[data-side=dots] .nav-g,body.pol[data-side=dots] .side-meta,body.pol[data-side=dots] .side-note .btn-link{color:#a7a29b}
body.pol[data-side=dots] .pol-sub a{color:#cfcac3}
body.pol[data-side=dots] .pol-top{box-shadow:0 1px 0 rgba(255,255,255,.06)}

/* dark mode: surfaces, text and lines; the top bar keeps its theme colour */
body.pol[data-dark="1"]{--bg:#121313;--card:#1d1f1f;--soft:#242626;--line:#333636;--line-2:#3d4040;--ink:#e6e6e4;--black:#f4f4f2;--muted:#a3a6a4;--ax-side:#191a1a;color-scheme:dark;color:var(--ink)}
body.pol[data-dark="1"]:not([data-pal=shopify]){--bg:color-mix(in srgb,var(--ax-top) 55%,#0d0d0d)}
body.pol[data-dark="1"] .sidebar{background:var(--ax-side);border-inline-end-color:#2a2c2c}
body.pol[data-dark="1"] nav a{color:#d6d6d4}
body.pol[data-dark="1"] nav a:hover{background:#262828}
body.pol[data-dark="1"] nav a.active,body.pol[data-dark="1"] nav a[aria-current=page]{background:#2e3131;color:#fff}
body.pol[data-dark="1"] .panel,body.pol[data-dark="1"] .rc-head,body.pol[data-dark="1"] .rc-stats div,body.pol[data-dark="1"] .empty,
body.pol[data-dark="1"] .kpi,body.pol[data-dark="1"] .rc-tabs,body.pol[data-dark="1"] .up-card,body.pol[data-dark="1"] dialog,
body.pol[data-dark="1"] .pol-results,body.pol[data-dark="1"] .pol-menu,body.pol[data-dark="1"] .ax-pop,body.pol[data-dark="1"] .nt-drawer{background:var(--card);color:var(--ink);box-shadow:0 0 0 1px #2c2f2f,0 2px 8px rgba(0,0,0,.35)}
body.pol[data-dark="1"] .q-row,body.pol[data-dark="1"] .cb-row,body.pol[data-dark="1"] .signals li,body.pol[data-dark="1"] .lr,body.pol[data-dark="1"] .up-row,
body.pol[data-dark="1"] .rchip,body.pol[data-dark="1"] .icon-btn{background:var(--card);border-color:#303333;color:var(--ink)}
body.pol[data-dark="1"] .up-rel,body.pol[data-dark="1"] .up-list-h,body.pol[data-dark="1"] .up-all,body.pol[data-dark="1"] .lic-bulk{background:var(--soft);box-shadow:0 0 0 1px #303333 inset;color:var(--ink)}
body.pol[data-dark="1"] .up-row:hover{background:#232525}
body.pol[data-dark="1"] input:not([type=checkbox]):not([type=radio]):not(#gSearch),body.pol[data-dark="1"] select:not(.cc-jump),body.pol[data-dark="1"] textarea{background:#151616;color:var(--ink);border-color:#3a3d3d}
body.pol[data-dark="1"] .tag,body.pol[data-dark="1"] .pb{background:#2f3232;color:#e3e3e1}
body.pol[data-dark="1"] .muted,body.pol[data-dark="1"] .small.muted{color:var(--muted)}
body.pol[data-dark="1"] .btn-ghost{background:#262828;color:var(--ink);box-shadow:0 0 0 1px #3a3d3d inset}
body.pol[data-dark="1"] .banner{background:#10243b;border-color:#1f4673;color:#cfe4ff}
body.pol[data-dark="1"] :is(h1,h2,h3,h4,.k-val,.kpi b,.panel-head h3,.rc-name,.cb-who b){color:var(--black)}
body.pol[data-dark="1"] .kpi :is(.k-val,.k-num,strong){color:#f4f4f2}
body.pol[data-dark="1"] :is(.lnk-go,p a,.banner a){color:#7fb6ff}
body.pol[data-dark="1"] .q-row :is(b,strong,.q-text),body.pol[data-dark="1"] .cb-row :is(b,strong){color:var(--ink)}
body.pol[data-dark="1"] .pol-ri{color:var(--ink)}
body.pol[data-dark="1"] .pol-ri:hover,body.pol[data-dark="1"] .pol-ri[aria-selected=true]{background:#2a2d2d}

/* the appearance page */
.ax-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.ax-card{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;border-radius:var(--pol-r-card,12px);background:var(--card,#fff);box-shadow:0 0 0 1px var(--line,#e3e3e3);overflow:hidden;line-height:1.6;transition:box-shadow .15s,transform .15s}
.ax-card:hover{transform:translateY(-1px)}
.ax-card[aria-pressed=true]{box-shadow:0 0 0 2px var(--ax-acc,#e8590c)}
.ax-card:focus-visible{outline:2px solid #005bd3;outline-offset:2px}
.ax-prev{display:grid;grid-template-columns:30% 1fr;height:84px}
.ax-prev .s{position:relative}
.ax-prev .b{display:flex;flex-direction:column;gap:7px;padding:14px 12px}
.ax-prev .b i{display:block;height:7px;border-radius:4px}
.ax-name{display:flex;justify-content:space-between;align-items:center;padding:10px 12px 2px;font-weight:650}
.ax-card p{margin:0;padding:0 12px 12px;font-size:12.5px;line-height:1.7;color:var(--muted,#616161)}
.ax-seg{display:inline-flex;flex-wrap:wrap;gap:4px;padding:4px;border-radius:var(--pol-r-ctl,8px);background:var(--soft,#f7f7f7);box-shadow:0 0 0 1px var(--line,#e3e3e3) inset}
.ax-seg button{all:unset;cursor:pointer;padding:5px 12px;border-radius:6px;font:600 13.5px/1.6 var(--f-body);color:var(--ink)}
.ax-seg button[aria-checked=true]{background:var(--card,#fff);box-shadow:0 1px 2px rgba(0,0,0,.12),0 0 0 1px var(--line,#e3e3e3)}
.ax-seg button:focus-visible{outline:2px solid #005bd3}
.ax-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}
.ax-motion{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(200px,calc(50% - 6px)),1fr));gap:12px;margin-top:12px}
.ax-lead{margin:0 0 12px}
.ax-fs{display:flex;flex-direction:column;justify-content:center;gap:2px;min-height:84px;padding:10px 12px;background:var(--soft,#f7f7f7);box-shadow:0 -1px 0 var(--line,#e3e3e3) inset;color:var(--black,#1a1a1a);overflow:hidden}
.ax-fs b{font-weight:700;font-size:19px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ax-fs span{font-size:13.5px;line-height:1.6;color:var(--muted,#616161);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.pol[data-dark="1"] .ax-fs{background:#151616;box-shadow:0 -1px 0 #2c2f2f inset}
@media (max-width:760px){.ax-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ax-card p{font-size:12px}.ax-motion canvas{height:84px}}
.ax-motion canvas{display:block;width:100%;height:96px;background:var(--ax-paper,#f1f1f1)}
body.pol[data-dark="1"] .ax-motion canvas{background:#151616}
.ax-note{font-size:13px;line-height:1.75;color:var(--muted,#616161);margin:8px 0 0}

/* the notifications bell */
.ax-pop{position:absolute;inset-inline-end:0;top:calc(100% + 6px);width:min(380px,92vw);max-height:min(70vh,560px);overflow:auto;background:#fff;color:var(--ink);border-radius:var(--pol-r-card,12px);box-shadow:0 12px 40px rgba(0,0,0,.22),0 0 0 1px rgba(0,0,0,.06);z-index:50;overscroll-behavior:contain}
.ax-pop-h{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 14px 8px;font-weight:700;line-height:1.55}
.ax-pop-h button{all:unset;cursor:pointer;font:600 13px/1.6 var(--f-body);color:#005bd3}
.ax-nl{list-style:none;margin:0;padding:0 6px 6px}
.ax-nl a{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 10px;padding:9px 8px;border-radius:var(--pol-r-ctl,8px);color:inherit;text-decoration:none;line-height:1.6}
.ax-nl a:hover,.ax-nl a:focus-visible{background:var(--soft,#f7f7f7)}
.ax-nl .d{width:8px;height:8px;border-radius:50%;margin-top:7px;background:#c4c4c4}
.ax-nl a.new .d{background:var(--ax-acc,#e8590c)}
.ax-nl b{font-weight:650}
.ax-nl .s{grid-column:2;font-size:12.5px;color:var(--muted,#616161);line-height:1.6}
.ax-none{padding:18px 14px 20px;color:var(--muted,#616161);line-height:1.7}
.pol-bellw{position:relative}

/* the greeting in the top bar */
.pol-hi{display:flex;flex-direction:column;line-height:1.3;min-width:0;text-align:start}
.pol-hi b{font:650 13.5px/1.35 var(--f-body);color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:16rem}
.pol-hi small{font:500 11.5px/1.35 var(--f-body);color:#b5b5b5;white-space:nowrap}
.pol-lang{all:unset;cursor:pointer;height:34px;padding:0 10px;border-radius:var(--pol-r-ctl,8px);background:#303030;color:#e3e3e3;font:650 12.5px/34px var(--f-body)}
.pol-lang:hover{background:#3d3d3d}
.pol-lang:focus-visible{outline:2px solid #fff}
@media (max-width:1100px){.pol-hi small{display:none}}
@media (max-width:760px){.pol-hi{display:none}}
@media (prefers-reduced-motion:reduce){.ax-card{transition:none}.ax-card:hover{transform:none}}
@media print{#bgfx{display:none!important}}

/* ---------- sticky notes drawer (notes.js) ---------- */
.nt-drawer{position:fixed;z-index:60;inset-block:calc(var(--pol-top,56px) + 8px) 8px;inset-inline-end:8px;width:min(420px,calc(100vw - 16px));display:flex;flex-direction:column;background:#fff;color:var(--ink);border-radius:var(--pol-r-card,12px);box-shadow:0 18px 50px rgba(0,0,0,.25),0 0 0 1px rgba(0,0,0,.06);transform:translateX(calc(100% + 24px));visibility:hidden;transition:transform .22s ease,visibility 0s .22s}
html[dir=rtl] .nt-drawer{transform:translateX(calc(-100% - 24px))}
.nt-drawer.open,html[dir=rtl] .nt-drawer.open{transform:none;visibility:visible;transition:transform .22s ease}
.nt-h{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line,#e3e3e3)}
.nt-h h2{margin:0;font:700 16px/1.55 var(--f-head)}
.nt-b{flex:1;overflow:auto;padding:12px 14px;overscroll-behavior:contain}
.nt-sec{font:650 13.5px/1.6 var(--f-head);margin:6px 0 10px;color:var(--muted,#616161)}
.nt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}
.nt-sticky{position:relative;border-radius:4px 4px 14px 4px;padding:12px 12px 10px;min-height:110px;display:flex;flex-direction:column;gap:6px;color:#2a2620;box-shadow:0 2px 0 rgba(0,0,0,.05),0 10px 18px rgba(0,0,0,.08);transform:rotate(var(--rot,0deg));transition:transform .2s}
html[dir=rtl] .nt-sticky{border-radius:4px 4px 4px 14px}
.nt-sticky:hover,.nt-sticky:focus-within{transform:rotate(0) translateY(-2px)}
.nt-sticky p{margin:0;font-size:13.5px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;flex:1}
.nt-f{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;font-size:11.5px;line-height:1.6;color:rgba(42,38,32,.72)}
.nt-who{margin-inline-start:auto}
.nt-f button,.nt-go{all:unset;cursor:pointer;font-weight:700;color:#2a2620;text-decoration:underline;text-decoration-color:rgba(42,38,32,.3)}
.nt-f button:focus-visible,.nt-go:focus-visible{outline:2px solid #005bd3;outline-offset:2px}
.nt-sticky.pinned::after{content:"";position:absolute;top:-6px;inset-inline-start:50%;width:12px;height:12px;border-radius:50%;background:#c2410c;box-shadow:0 2px 4px rgba(0,0,0,.3)}
.c-yellow{background:#fff3b0}.c-orange{background:#ffd9b8}.c-pink{background:#ffd3df}.c-green{background:#d4f3d8}.c-blue{background:#d4e7ff}.c-purple{background:#e6dcff}
.nt-sticky textarea{width:100%;min-height:80px;font:inherit;font-size:13.5px;line-height:1.75;background:rgba(255,255,255,.6);border:1px solid rgba(0,0,0,.15);border-radius:6px;padding:6px 8px;color:#2a2620}
.nt-empty{color:var(--muted,#616161);line-height:1.75;margin:0 0 16px}
.nt-new{border-top:1px solid var(--line,#e3e3e3);padding:12px 14px;display:flex;flex-direction:column;gap:8px}
.nt-new textarea{width:100%;font:inherit;line-height:1.7;padding:8px 10px;resize:vertical}
.nt-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.nt-row .btn{margin-inline-start:auto}
.nt-colors{display:flex;gap:6px}
.nt-sw{width:20px;height:20px;border-radius:50%;cursor:pointer;box-shadow:0 0 0 1px rgba(0,0,0,.15) inset;position:relative}
.nt-sw input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.nt-sw:has(input:checked){box-shadow:0 0 0 2px var(--card,#fff),0 0 0 4px var(--ink,#303030)}
.nt-sw:has(input:focus-visible){outline:2px solid #005bd3;outline-offset:3px}
.nt-chk{display:inline-flex;align-items:center;gap:6px;font-size:13px;line-height:1.6;cursor:pointer}
.pol-nbtn{position:relative}
@media (max-width:760px){.nt-grid{grid-template-columns:1fr}.nt-drawer{inset-block-start:calc(var(--pol-top,104px) + 6px)}}
@media (prefers-reduced-motion:reduce){.nt-drawer,.nt-drawer.open,.nt-sticky{transition:none}}

/* dark mode: the dotted sidebar stays a shade apart from the page */
body.pol[data-dark='1'][data-side=dots] .sidebar{background-color:#0b0b0c}

/* ---------- fonts (data-font): each pair reads Arabic and Latin; only the chosen family is loaded by appearance.js ---------- */
html body.pol[data-font=plexar]{--f-head:"IBM Plex Sans Arabic",system-ui,sans-serif;--f-body:"IBM Plex Sans Arabic",system-ui,sans-serif;--f-num:"IBM Plex Sans Arabic",system-ui,sans-serif}
html body.pol[data-font=cairo]{--f-head:"Cairo","IBM Plex Sans Arabic",system-ui,sans-serif;--f-body:"Cairo","IBM Plex Sans Arabic",system-ui,sans-serif;--f-num:"Cairo","IBM Plex Sans Arabic",system-ui,sans-serif}
html body.pol[data-font=tajawal]{--f-head:"Tajawal","IBM Plex Sans Arabic",system-ui,sans-serif;--f-body:"Tajawal","IBM Plex Sans Arabic",system-ui,sans-serif;--f-num:"Tajawal","IBM Plex Sans Arabic",system-ui,sans-serif}
html body.pol[data-font=readex]{--f-head:"Readex Pro","IBM Plex Sans Arabic",system-ui,sans-serif;--f-body:"Readex Pro","IBM Plex Sans Arabic",system-ui,sans-serif;--f-num:"Readex Pro","IBM Plex Sans Arabic",system-ui,sans-serif}
html body.pol[data-font=rubik]{--f-head:"Rubik","IBM Plex Sans Arabic",system-ui,sans-serif;--f-body:"Rubik","IBM Plex Sans Arabic",system-ui,sans-serif;--f-num:"Rubik","IBM Plex Sans Arabic",system-ui,sans-serif}
html body.pol[data-font=kufi]{--f-head:"Noto Kufi Arabic","IBM Plex Sans Arabic",system-ui,sans-serif;--f-body:"Noto Kufi Arabic","IBM Plex Sans Arabic",system-ui,sans-serif;--f-num:"Noto Kufi Arabic","IBM Plex Sans Arabic",system-ui,sans-serif}
body.pol[data-font]:not([data-font=plex]){font-family:var(--f-body)}

/* ---------- text size (data-size): the page content scales as a whole (px sizes included); top bar and menu stay ---------- */
body.pol{--ax-z:1}
body.pol[data-size=compact]{--ax-z:.92}
body.pol[data-size=large]{--ax-z:1.1}
@media screen{body.pol:not([data-size=default]) :is(main#main,dialog){zoom:var(--ax-z)}}

/* ---------- glass cards (data-cards=glass, the default): translucent card colour, blur of what is behind, a light 1px stroke
   with an inner highlight and a faint outer edge. Screen only, and only where backdrop-filter and color-mix exist; anything
   else (and data-cards=solid, and print) keeps the solid cards above. ---------- */
@media screen{@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) and (background:color-mix(in srgb,red 50%,transparent)){
body.pol[data-cards=glass]{--gl-a:74%;--gl-blur:16px;--gl-stroke:rgba(255,255,255,.55);--gl-hi:rgba(255,255,255,.75);--gl-edge:rgba(26,26,26,.08);--gl-drop:0 1px 2px rgba(26,26,26,.05),0 8px 24px rgba(26,26,26,.05)}
body.pol[data-cards=glass][data-dark="1"]{--gl-a:72%;--gl-stroke:rgba(255,255,255,.08);--gl-hi:rgba(255,255,255,.07);--gl-edge:rgba(0,0,0,.4);--gl-drop:0 2px 10px rgba(0,0,0,.32)}
body.pol[data-cards=glass] :is(.panel,.kpi,.rc-head,.rc-stats div,.up-card,.rc-tabs,.empty,.cb-row,.lic-card,.cl-card,.table-wrap,.fin-totals>div){background:color-mix(in srgb,var(--card) var(--gl-a),transparent);-webkit-backdrop-filter:blur(var(--gl-blur)) saturate(1.3);backdrop-filter:blur(var(--gl-blur)) saturate(1.3);box-shadow:inset 0 0 0 1px var(--gl-stroke),inset 0 1px 0 var(--gl-hi),0 0 0 1px var(--gl-edge),var(--gl-drop)}
/* inside a card nothing blurs again: rows and nested boxes are only translucent over the card's frost */
body.pol[data-cards=glass] :is(.panel,.rc-head,.kpi,.up-card) :is(.panel,.empty,.cb-row,.lic-card,.cl-card,.table-wrap,.rc-stats div,.fin-totals>div){-webkit-backdrop-filter:none;backdrop-filter:none;background:color-mix(in srgb,var(--card) 55%,transparent);box-shadow:inset 0 0 0 1px var(--gl-stroke),0 0 0 1px var(--gl-edge)}
body.pol[data-cards=glass] :is(.q-row,.signals li,.lr,.up-row){background:color-mix(in srgb,var(--card) 50%,transparent)}
body.pol[data-cards=glass] .cb-row{border-color:var(--gl-edge);border-inline-start-color:var(--c,var(--teal-2))}
body.pol[data-cards=glass] :is(.cb-row,.q-row,.signals li):is(:hover,:focus-visible){background:color-mix(in srgb,var(--card) 92%,transparent)}
/* a card is a stacking context now (backdrop-filter): lift the one in use so its tooltips and menus pass over its neighbours */
body.pol[data-cards=glass] :is(.panel,.kpi,.cb-row,.lic-card,.cl-card){position:relative}
body.pol[data-cards=glass] :is(.panel,.kpi,.cb-row,.lic-card,.cl-card):is(:hover,:focus-within){z-index:2}
body.pol[data-cards=glass] :is(.ax-pop,.pol-menu,.pol-results,.nt-drawer){background:color-mix(in srgb,var(--card) 86%,transparent);-webkit-backdrop-filter:blur(18px) saturate(1.3);backdrop-filter:blur(18px) saturate(1.3)}
body.pol[data-cards=glass] dialog{background:color-mix(in srgb,var(--card) 90%,transparent);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:inset 0 0 0 1px var(--gl-stroke),0 20px 60px rgba(0,0,0,.3)}
body.pol[data-cards=glass] .ax-card{background:color-mix(in srgb,var(--card) 70%,transparent)}
}}

/* phone, English (LTR): the menu drawer hides off the left edge (the shared rule moves it right, which only suits RTL) */
@media (max-width:760px){html[dir=ltr] body.pol .sidebar:not(.open){transform:translateX(-105%)}}
