/* Kariem OS · Clients (clients.js). Tokens from app.css; client kits from brands.css. */
.cl-head{display:flex;align-items:baseline;gap:10px;margin:6px 0 14px}
.cl-head h2{font:700 22px/1.4 var(--display)}
.cl-sub{color:rgb(var(--fg-3));font-size:12.5px}
.cl-grid{display:grid;gap:12px;grid-template-columns:1fr}
@media (min-width:640px){.cl-grid{grid-template-columns:1fr 1fr}}

/* plate: a client's card, its own kit when it has one */
.cl-plate{position:relative;display:grid;gap:4px;padding:14px 16px 13px;border-radius:var(--brand-radius,16px);
  border:1px solid rgb(var(--line));background:rgb(var(--surface));color:rgb(var(--fg));text-decoration:none;min-height:44px;
  transition:border-color .25s var(--ease),transform .35s var(--ease)}
.cl-plate:active{transform:scale(.985)}
.cl-plate:focus-visible{outline:2px solid rgb(var(--accent));outline-offset:2px}
.cl-plate.branded{border-color:rgb(var(--accent)/.35);background:rgb(var(--canvas));color:rgb(var(--ink));font-family:var(--brand-font,inherit)}
.cl-plate.needs{box-shadow:inset 3px 0 0 rgb(var(--compass))}
[dir=rtl] .cl-plate.needs{box-shadow:inset -3px 0 0 rgb(var(--compass))}
.cl-ptop{display:flex;align-items:center;gap:10px;height:42px}
.cl-pmark{flex:none;display:flex;align-items:center;height:100%}
.cl-plogo,.pl-logo{height:32px;width:auto;max-width:150px}
.cl-plogo .la,.pl-logo .la{fill:rgb(var(--mark-accent,var(--accent)))}
.cl-plogo .lr,.pl-logo .lr{fill:currentColor}
.cl-pinit{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;font:700 18px var(--display);
  border:1.4px dashed rgb(var(--fg-4));color:rgb(var(--fg-2))}
.cl-pdood{flex:1 1 0;min-width:0;max-width:140px;height:40px;margin-inline-start:auto;color:rgb(var(--doodle-color,var(--accent)));
  opacity:calc(var(--doodle-opacity,.3)*1.3);-webkit-mask-image:linear-gradient(to right,#000 50%,rgb(0 0 0/.25));mask-image:linear-gradient(to right,#000 50%,rgb(0 0 0/.25))}
.cl-pdood svg,.pl-dood svg{display:block;width:100%;height:100%}
.cl-pneed{margin-inline-start:auto;min-width:26px;height:26px;padding:0 7px;border-radius:13px;display:grid;place-items:center;
  font:600 12.5px var(--sans);color:rgb(var(--compass));border:1.4px dashed rgb(var(--compass))}
.cl-pdood + .cl-pneed{margin-inline-start:8px}
.cl-pname{font:700 18px/1.4 var(--brand-heading-font,var(--display))}
.cl-pnow{font-size:13.5px;line-height:1.6;color:rgb(var(--ink-secondary,var(--fg-2)))}
.cl-plate.needs .cl-pnow{color:rgb(var(--ink,var(--fg)))}
.cl-pfoot{font:500 10.5px/1.6 var(--mono);letter-spacing:.06em;color:rgb(var(--brand-muted,var(--fg-3)))}
.cl-plate.live .cl-pfoot::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:rgb(var(--beacon));margin-inline-end:6px;vertical-align:middle;animation:clp 1.6s ease-in-out infinite}
@keyframes clp{50%{opacity:.25}}
@media (prefers-reduced-motion:reduce){.cl-plate.live .cl-pfoot::before{animation:none}}

/* place */
.pl-back{display:flex;align-items:center;gap:10px;margin:2px 0 10px}
.pl-back a{color:rgb(var(--fg-2));text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.pl-back .mono{color:rgb(var(--fg-3));font-size:11px;letter-spacing:.12em;margin-inline-start:auto}
.pl-hero{position:relative;overflow:hidden;isolation:isolate;padding:18px 18px 16px;border-radius:var(--brand-radius,18px);
  border:1px solid rgb(var(--line));background:rgb(var(--surface))}
.pl-hero.branded{border-color:rgb(var(--accent)/.35);background:rgb(var(--canvas));color:rgb(var(--ink));font-family:var(--brand-font,inherit)}
.pl-dood{position:absolute;z-index:-1;top:10px;inset-inline-end:10px;width:46%;height:120px;color:rgb(var(--doodle-color,var(--accent)));
  opacity:var(--doodle-opacity,.3);-webkit-mask-image:linear-gradient(to left,#000 40%,transparent);mask-image:linear-gradient(to left,#000 40%,transparent)}
.pl-logo{height:46px;max-width:200px;display:block;margin-bottom:6px}
.pl-name{font:700 24px/1.4 var(--brand-heading-font,var(--display))}
.pl-what{font-size:12.5px;line-height:1.7;color:rgb(var(--ink-tertiary,var(--fg-3)));margin-top:4px;max-width:60ch}
.pl-systems{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.pl-systems span{font:500 11px var(--sans);padding:3px 9px;border-radius:999px;border:1px solid rgb(var(--border,var(--line)));color:rgb(var(--ink-secondary,var(--fg-2)))}
.pl-systems bdi{font-family:var(--mono);letter-spacing:.08em}
.pl-sentence{font:600 18px/1.65 var(--display);margin-top:12px;text-wrap:balance}
.pl-meta{font-size:11.5px;color:rgb(var(--brand-muted,var(--fg-3)));margin-top:4px}

.pl-sec{margin-top:26px}
.pl-h{display:flex;align-items:baseline;gap:10px;font:500 11px var(--mono);letter-spacing:.22em;color:rgb(var(--fg-3));
  padding-bottom:8px;margin-bottom:10px;border-bottom:1px solid rgb(var(--line))}
.pl-h span{font:400 11.5px var(--sans);letter-spacing:0;color:rgb(var(--fg-3));margin-inline-start:auto}
.pl-empty{color:rgb(var(--fg-3));font-size:13px;line-height:1.8}
.pl-legend{display:flex;align-items:center;gap:8px;font-size:11px;color:rgb(var(--fg-3));margin:-2px 0 8px}

/* compass vitals */
.cv-list{list-style:none;display:grid;gap:14px}
.cv{display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:baseline}
.cv-l{font-size:13.5px;color:rgb(var(--fg))}
.cv-v{display:flex;gap:8px;align-items:baseline}
.cv-v b{font:700 17px var(--display)}
.cv-v i{font-style:normal;font-size:11px;color:rgb(var(--fg-3))}
.cv-bar{grid-column:1/-1;position:relative;height:6px}
.cv-track{position:absolute;inset:2px 0;border-radius:2px;background:rgb(var(--line))}
.cv-fill{position:absolute;top:0;bottom:0;inset-inline-start:0;border-radius:3px;background:rgb(var(--fg-2))}
.cv.met .cv-fill{background:rgb(var(--tide))}
.cv.gap .cv-fill{background:rgb(var(--compass))}
.cv-goal{position:absolute;top:-3px;bottom:-3px;width:2px;background:rgb(var(--fg))}
.cv-dir{grid-column:1/-1;font-size:11px;color:rgb(var(--fg-3))}
.cv-dir.flat::before{content:"— "}.cv-dir.up::before{content:"↑ "}.cv-dir.down::before{content:"↓ "}
.cv.dead .cv-l{color:rgb(var(--fg-3))}
.cv.dead .cv-v{font-size:12px;color:rgb(var(--fg-3))}
.cv.dead .cv-track{background:none;border:1px dashed rgb(var(--fg-4))}
.cv-why{grid-column:1/-1;font-size:11.5px;color:rgb(var(--fg-3));line-height:1.6}
.cv-fams{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px}
.cv-f{font-size:11.5px;padding:3px 9px;border-radius:999px;border:1px solid rgb(var(--line));color:rgb(var(--fg-2))}
.cv-f b{font-weight:600;color:rgb(var(--fg))}
.cv-f i{font-style:normal;color:rgb(var(--fg-3))}
.cv-f.over{border-color:rgb(var(--compass));border-style:dashed}

/* agents */
.ag-list{list-style:none;display:grid;gap:12px}
.pag{display:grid;gap:4px;padding:12px 14px;border-radius:14px;border:1px solid rgb(var(--line));background:rgb(var(--surface))}
.ag-who{display:flex;align-items:center;gap:8px}
.ag-who b{font:600 15px var(--display)}
.ag-dot{width:8px;height:8px;border-radius:50%;border:1.4px solid rgb(var(--fg-3))}
.pag.on .ag-dot{background:rgb(var(--beacon));border-color:rgb(var(--beacon));animation:clp 1.6s ease-in-out infinite}
.pag.paused .ag-dot{border-style:dashed}
.ag-lane{font:500 11px var(--mono);color:rgb(var(--fg-3));margin-inline-start:auto}
.ag-stat{font-size:12px;color:rgb(var(--fg-3))}
.ag-said{display:grid;gap:4px;text-align:start;margin-top:6px;padding:10px 12px;border-radius:10px;background:rgb(var(--sunk));border:0;color:inherit;font:inherit;cursor:pointer;min-height:44px}
.ag-said q{font-size:13px;line-height:1.75;color:rgb(var(--fg));quotes:"«" "»";display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ag-src{font-size:11px;color:rgb(var(--fg-3))}
.ag-said:focus-visible{outline:2px solid rgb(var(--accent))}

/* cards */
.kc-list{list-style:none;display:grid;gap:2px}
.kc-row{display:grid;grid-template-columns:1fr auto;gap:3px 12px;width:100%;text-align:start;padding:11px 2px;border:0;border-bottom:1px solid rgb(var(--line));background:none;color:inherit;font:inherit;min-height:44px}
button.kc-row{cursor:pointer}
button.kc-row:focus-visible{outline:2px solid rgb(var(--accent));outline-offset:-2px}
.kc-t{font-size:14px;line-height:1.55}
.kc-m{grid-column:1/-1;font-size:11.5px;color:rgb(var(--fg-3))}
.kc.blocked .kc-s{color:rgb(var(--compass))}
.kc.live .kc-s,.kc.done .kc-s{color:rgb(var(--tide))}
.kc-why{grid-column:1/-1;font-size:12px;line-height:1.6;color:rgb(var(--fg-2));padding-inline-start:10px;border-inline-start:2px dashed rgb(var(--compass))}
.kc-beats{display:inline-flex;gap:3px;align-items:center;direction:rtl}
.kc-beats i{width:12px;height:4px;border-radius:2px;background:rgb(var(--line))}
.kc-beats i.on{background:rgb(var(--fg-2))}
.kc.done .kc-beats i.on{background:rgb(var(--tide))}
.kc-beats i.stop{background:none;border:1.2px dashed rgb(var(--compass));height:6px}
.kc-beats.sm i{width:9px}
.cv-fill.w0{width:0%}
.cv-goal.p0{inset-inline-start:calc(0% - 1px)}
.cv-fill.w1{width:5%}
.cv-goal.p1{inset-inline-start:calc(5% - 1px)}
.cv-fill.w2{width:10%}
.cv-goal.p2{inset-inline-start:calc(10% - 1px)}
.cv-fill.w3{width:15%}
.cv-goal.p3{inset-inline-start:calc(15% - 1px)}
.cv-fill.w4{width:20%}
.cv-goal.p4{inset-inline-start:calc(20% - 1px)}
.cv-fill.w5{width:25%}
.cv-goal.p5{inset-inline-start:calc(25% - 1px)}
.cv-fill.w6{width:30%}
.cv-goal.p6{inset-inline-start:calc(30% - 1px)}
.cv-fill.w7{width:35%}
.cv-goal.p7{inset-inline-start:calc(35% - 1px)}
.cv-fill.w8{width:40%}
.cv-goal.p8{inset-inline-start:calc(40% - 1px)}
.cv-fill.w9{width:45%}
.cv-goal.p9{inset-inline-start:calc(45% - 1px)}
.cv-fill.w10{width:50%}
.cv-goal.p10{inset-inline-start:calc(50% - 1px)}
.cv-fill.w11{width:55%}
.cv-goal.p11{inset-inline-start:calc(55% - 1px)}
.cv-fill.w12{width:60%}
.cv-goal.p12{inset-inline-start:calc(60% - 1px)}
.cv-fill.w13{width:65%}
.cv-goal.p13{inset-inline-start:calc(65% - 1px)}
.cv-fill.w14{width:70%}
.cv-goal.p14{inset-inline-start:calc(70% - 1px)}
.cv-fill.w15{width:75%}
.cv-goal.p15{inset-inline-start:calc(75% - 1px)}
.cv-fill.w16{width:80%}
.cv-goal.p16{inset-inline-start:calc(80% - 1px)}
.cv-fill.w17{width:85%}
.cv-goal.p17{inset-inline-start:calc(85% - 1px)}
.cv-fill.w18{width:90%}
.cv-goal.p18{inset-inline-start:calc(90% - 1px)}
.cv-fill.w19{width:95%}
.cv-goal.p19{inset-inline-start:calc(95% - 1px)}
.cv-fill.w20{width:100%}
.cv-goal.p20{inset-inline-start:calc(100% - 1px)}

/* awaiting you: Kariem's decisions inside the client */
.pl-sec.wait{border-inline-start:2px dashed rgb(var(--needs));padding-inline-start:12px}
.wt-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.wt{padding:12px 14px;border-radius:14px;border:1px solid rgb(var(--line));background:rgb(var(--surface));display:grid;gap:6px}
.wt-k{font:600 11px/1 var(--mono);letter-spacing:.04em;color:rgb(var(--needs))}
.wt.t .wt-k{color:rgb(var(--compass))}
.wt-t{all:unset;cursor:pointer;font:600 15px/1.5 var(--display);min-height:44px;display:flex;align-items:center}
.wt-t:focus-visible{outline:2px solid rgb(var(--beacon));outline-offset:2px;border-radius:6px}
.wt-x{margin:0;font-size:13px;line-height:1.6;color:rgb(var(--fg-3));overflow-wrap:anywhere}
.wt-act{display:flex;gap:8px;margin-top:4px}
.wt-act .dbtn{min-height:44px;flex:1}
.ag-said:not(.ar) q{font-size:12.5px;color:rgb(var(--fg-3));text-align:left}
/* system doors: the senses that used to be tabs */
.doors{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:4px 0 18px}
.door{position:relative;display:grid;gap:4px;text-align:start;padding:12px;border-radius:14px;border:1px solid rgb(var(--line));background:rgb(var(--surface));min-height:72px;color:rgb(var(--fg))}
.door b{font:700 15px/1.2 var(--display)}
.door span:not(.pl-nb):not(.badge){font-size:11.5px;line-height:1.5;color:rgb(var(--fg-3))}
.door .pl-nb,.door .badge{position:absolute;top:8px;inset-inline-end:8px}
@media(max-width:380px){.doors{grid-template-columns:1fr}}

/* product kits (brands.ts PRODUCT_KITS): the traced mark is a CSS mask, ink by currentColor */
.cl-plogo.lg-mask{height:34px;width:46px}
.pl-logo.lg-mask{height:72px;width:96px}
.i-logo.lg-mask{height:30px;width:40px}
.cl-pmark .kit-dot,.i-plate .kit-dot{align-self:flex-start;margin-inline-start:2px}
.pl-hero .kit-dot{position:absolute;top:18px;inset-inline-end:18px}
.pl-what[lang=en]{font:400 12.5px/1.55 var(--sans);color:rgb(var(--ink-secondary,var(--fg-3)));text-align:left;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:2px 0 8px}

/* ── identity pass: inside a branded surface the KIT speaks, not the OS ──
   Every rule below defers to the kit's own tokens first (--brand-heading-font,
   --brand-font, --ink, --ink-secondary, --brand-muted), the way the card
   reads on me.kariem.dev. The kits' card.css also target these parts by
   data-part (mark / summary / role), so their typography lands as-is. */
.branded .cl-pname,.branded .pl-name,.branded .i-name{font-family:var(--brand-heading-font,var(--brand-font,var(--display)));color:rgb(var(--ink))}
.branded .cl-pnow,.branded .pl-sentence,.branded .pl-what,.branded .i-line,.branded .i-syst{font-family:var(--brand-font,var(--sans))}
.branded .pl-sentence{color:rgb(var(--ink))}
.branded .pl-what{color:rgb(var(--ink-secondary,var(--fg-2)))}
.branded .cl-pfoot,.branded .pl-meta{font-family:var(--brand-font,var(--sans));letter-spacing:0;color:rgb(var(--brand-muted,var(--ink-tertiary)))}
.branded .cl-pfoot bdi{font-family:var(--mono);letter-spacing:.08em}
/* Hvar, Ataya, Bashra own a card font on the portfolio: carry it to the whole surface */
.branded[data-brand="hvar"]{--brand-font:"Cairo","Inter",system-ui,sans-serif}
.branded[data-brand="hvar"] .cl-pname,.branded[data-brand="hvar"] .pl-name{font-family:"Cairo",system-ui,sans-serif;font-weight:800}
.branded[data-brand="ataya"]{--brand-font:"Almarai Ataya",var(--sans)}
.branded[data-brand="bashra"]{--brand-font:"IBM Plex Sans Arabic",system-ui,sans-serif}
.branded[data-brand="geolink"]{--brand-font:var(--sans)}
/* the mark row: logo then name on one baseline, like the portfolio's [data-part=mark] */
.pl-mark{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.pl-mark .pl-logo{margin-bottom:0}
.pl-logo.lf,.cl-plogo.lf{height:40px;width:40px;border-radius:10px}
.cl-plogo.lf{height:32px;width:32px;border-radius:8px}
.pl-what{font-size:13px;line-height:1.8;margin-top:8px;max-width:46ch}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* unbranded clients: no fake identity, one honest initial in the OS's own ink */
.cl-pinit{border-style:solid;border-color:rgb(var(--line));background:rgb(var(--sunk));font-family:var(--display)}
.cl-hen{font:400 11.5px/1.6 var(--mono);color:rgb(var(--fg-3));margin:4px 0 0}
/* section heads speak Arabic now: drop the mono tracking meant for Latin caps */
.pl-h{font:600 13px var(--display);letter-spacing:0;color:rgb(var(--fg-2))}
.wt-x{font:400 11.5px/1.6 var(--mono);color:rgb(var(--fg-3));text-align:left}
.pl-unk{font-size:12px;color:rgb(var(--fg-3));margin-top:6px;border-inline-start:2px dotted rgb(var(--line));padding-inline-start:8px}
/* the house rose: Kariem's own systems */
.house{display:inline-grid;place-items:center;color:rgb(var(--fg))}
.house svg{width:100%;height:100%}
.house .bm-lit{fill:currentColor}.house .bm-shade{fill:currentColor;opacity:.45}
.house .bm-n{fill:rgb(var(--accent))}.house .bm-n.bm-shade{opacity:.7}
.house .bm-hub{fill:rgb(var(--bg))}
.pl-house{width:44px;height:44px}
.cl-house{width:34px;height:34px}
.wt-en{font-size:12px;color:rgb(var(--fg-3))}
.wt-en summary{cursor:pointer;min-height:32px;display:flex;align-items:center}
