/* The design library.
 *
 * A white page with two floating surfaces on it. On the left, a toned panel: the library in numbers
 * and two small expand/collapse buttons in one strip at its top, then one white card per design
 * system that opens to its designs, each design its own raised card. On the right, a thin top bar
 * (the name, the Phone/Web switch in the centre, what is showing) above the stage: the chosen
 * design, edge to edge, with only the previous and next buttons floating over it. Depth comes from tone and a three-term shadow, never from lines.
 * Colour means one thing here: which design system. */

:root{
  color-scheme:light;
  --canvas:#ffffff; --rail:#f3f5fa; --s1:#ffffff; --s2:#eceff6; --s3:#e8ebf2; --s4:#dce0ea; --sr:#ffffff;
  --ink:#141926; --ink2:#3c4457; --ink3:#596175;
  --pri:#1d2b6b; --on-pri:#ffffff; --ink-bar:#161d33; --on-bar2:#c0c7dc;
  --e1:0 1px 2px rgba(18,26,56,.18),0 0 8px rgba(18,26,56,.08),0 4px 10px -2px rgba(18,26,56,.14);
  --e2:0 1px 3px rgba(18,26,56,.14),0 0 18px rgba(18,26,56,.12),0 12px 26px -6px rgba(18,26,56,.22);
  --e3:0 2px 4px rgba(18,26,56,.10),0 0 20px rgba(18,26,56,.10),0 16px 34px -8px rgba(18,26,56,.26);
  --e4:0 2px 6px rgba(18,26,56,.12),0 0 28px rgba(18,26,56,.12),0 24px 48px -12px rgba(18,26,56,.32);
  --e5:0 4px 10px rgba(18,26,56,.14),0 0 40px rgba(18,26,56,.14),0 34px 72px -16px rgba(18,26,56,.42);
  --ring:0 0 0 2px var(--sr),0 0 0 4px var(--pri);
  --ui:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --r-sm:10px; --r-md:14px; --r-lg:18px; --r-xl:22px; --r-full:999px;
  --t-fast:120ms; --t-base:200ms; --ease:cubic-bezier(.2,0,0,1);
  --rail-w:304px;

  /* one hue per design system, strong enough for white text on it (4.5:1 or better) */
  --h-bento:#C2185B; --h-modern:#0A6CC9; --h-feed:#B4321F; --h-browse:#0B65A8; --h-read:#7A5C00; --h-board:#5B37C2;
  --h-data:#00726F; --h-flow:#1B6E44; --h-converse:#9A2A86; --h-shell:#3A4AA0; --h-place:#4F6B12;
  --h-profile:#A34A12;
}
/* app.js sets data-theme from the visitor`s system, or from ?theme= when a page frames the library */
:root[data-theme="dark"]{
  color-scheme:dark;
  --canvas:#0c0e13; --rail:#14171e; --s1:#1c2029; --s2:#0f1117; --s3:#30364a; --s4:#3b425a; --sr:#2c3241;
  --ink:#eef0f6; --ink2:#c7ccda; --ink3:#a3aabd;
  --pri:#b9c5f5; --on-pri:#10152a; --ink-bar:#343c5c; --on-bar2:#cbd1e2;
  --e1:inset 0 1px 0 rgba(255,255,255,.06),0 1px 2px rgba(0,0,0,.55),0 4px 10px -2px rgba(0,0,0,.5);
  --e2:inset 0 1px 0 rgba(255,255,255,.07),0 2px 4px rgba(0,0,0,.5),0 12px 24px -6px rgba(0,0,0,.7);
  --e3:inset 0 1px 0 rgba(255,255,255,.08),0 2px 6px rgba(0,0,0,.5),0 18px 36px -8px rgba(0,0,0,.78);
  --e4:inset 0 1px 0 rgba(255,255,255,.08),0 24px 48px -12px rgba(0,0,0,.85);
  --e5:inset 0 1px 0 rgba(255,255,255,.08),0 34px 72px -16px rgba(0,0,0,.92);
  --h-bento:#F06A9D; --h-modern:#6CB4F5; --h-feed:#F2876F; --h-browse:#5FB3EB; --h-read:#DFB64A; --h-board:#AE93F5;
  --h-data:#4CC9C9; --h-flow:#55C38C; --h-converse:#EC7FD6; --h-shell:#8E9DEE; --h-place:#A6C45C;
  --h-profile:#E89359;
}

:where(*,*::before,*::after){ box-sizing:border-box }
:where(button){ font:inherit; color:inherit; background:none; border:0; padding:0; cursor:pointer; text-align:inherit }
:where(h1,h2,p){ margin:0 }
html,body{ height:100%; margin:0; overflow:hidden }
body{ background:var(--canvas); color:var(--ink); font:500 14px/20px var(--ui); -webkit-font-smoothing:antialiased }
svg{ display:block; flex:none }
:focus{ outline:none }
:focus-visible{ box-shadow:var(--ring) }
.vh{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap }

.app{ height:100%; display:grid; grid-template-columns:var(--rail-w) minmax(0,1fr); gap:14px; padding:12px }

/* ── the panel: toned, floating ── */
.rail{
  min-height:0; display:flex; flex-direction:column; gap:12px; padding:12px 12px 0;
  background:var(--rail); border-radius:var(--r-xl); box-shadow:var(--e2); position:relative; z-index:10;
}
.closer{ display:none }

/* ── the right column: a thin strip of pills, then the stage ── */
.main{ min-width:0; min-height:0; display:grid; grid-template-rows:auto minmax(0,1fr); gap:10px }
.bar{ display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:12px; min-height:44px; padding:0 4px }
.brand{ justify-self:start; min-width:0; font:700 17px/22px var(--ui); letter-spacing:-.015em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.bar .now{ justify-self:end; max-width:100% }
/* on a narrow window the name gives its room to the switch and to what is showing */
@media (max-width:1180px){ .brand{ visibility:hidden } }

/* the top of the panel: the library in three numbers, and expand/collapse, in one strip */
.rtop{ flex:none; display:flex; align-items:center; gap:8px }
.stats{ flex:1; min-width:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:5px 4px; border-radius:var(--r-md);
  background:var(--s1); box-shadow:var(--e1) }
.stat{ display:grid; justify-items:center; gap:0; min-width:0 }
.stat b{ font:700 15px/19px var(--ui); font-variant-numeric:tabular-nums; letter-spacing:-.01em }
.stat span{ font:500 11.5px/14px var(--ui); color:var(--ink3) }
.iseg{ flex:none; display:flex; gap:2px; padding:3px; border-radius:var(--r-full); background:var(--s1); box-shadow:var(--e1) }
.ib2{ position:relative; width:32px; height:32px; border-radius:50%; display:grid; place-items:center; color:var(--ink2);
  transition:background var(--t-fast) var(--ease),color var(--t-fast) var(--ease) }
.ib2:hover{ background:var(--s3); color:var(--ink) }
.ib2[disabled]{ opacity:.35; cursor:default; background:none }
.ib2[data-tip]::after{ content:attr(data-tip); position:absolute; top:calc(100% + 8px); right:0; z-index:20; white-space:nowrap;
  padding:6px 10px; border-radius:var(--r-sm); background:var(--ink-bar); color:#fff; font:600 12.5px/16px var(--ui);
  box-shadow:var(--e2); opacity:0; transform:translateY(-4px); pointer-events:none; transition:opacity var(--t-fast) var(--ease),transform var(--t-fast) var(--ease) }
.ib2[data-tip]:hover::after,.ib2[data-tip]:focus-visible::after{ opacity:1; transform:none }
.ib2[disabled]::after{ display:none }
/* what is showing: the system in its own colour, then the design */
.now{ display:inline-flex; align-items:center; gap:8px; height:30px; padding:0 14px 0 6px; border-radius:var(--r-full);
  background:color-mix(in srgb,var(--h,var(--pri)) 12%,var(--s1)); box-shadow:var(--e1); white-space:nowrap; min-width:0;
  font:600 13px/30px var(--ui); color:var(--ink) }
.now:empty{ display:none }
.nowfam{ font-style:normal; display:inline-flex; align-items:center; height:22px; padding:0 9px; border-radius:var(--r-full); cursor:pointer;
  background:var(--h,var(--pri)); color:#fff; font:600 12px/22px var(--ui) }
:root[data-theme="dark"] .now em{ color:#0c0e13 }
.now span{ overflow:hidden; text-overflow:ellipsis }

/* the hover card: what a system or a design is for, beside the row it belongs to */
.pop{ position:fixed; z-index:60; width:316px; padding:14px 16px 13px; border-radius:var(--r-lg); background:var(--s1);
  box-shadow:var(--e4); pointer-events:none; opacity:0; transform:translateX(-6px);
  transition:opacity 160ms var(--ease),transform 160ms var(--ease) }
.pop.on{ opacity:1; transform:none }
.pop::before{ content:""; position:absolute; left:-6px; top:var(--arrow,50%); width:12px; height:12px; margin-top:-6px;
  background:var(--s1); transform:rotate(45deg); box-shadow:-2px 2px 3px rgba(18,26,56,.06) }
.pop .fam{ display:inline-flex; align-items:center; gap:6px; font:600 12px/16px var(--ui);
  color:color-mix(in srgb,var(--h) 80%,var(--ink)) }
.pop .fam i{ width:8px; height:8px; border-radius:50%; background:var(--h) }
.pop b{ display:block; margin-top:4px; font:700 16px/22px var(--ui); letter-spacing:-.01em }
.pop p{ margin:6px 0 0; font:400 14px/20px var(--ui); color:var(--ink2) }
.pop .best{ margin-top:8px; padding-top:8px; box-shadow:inset 0 1px 0 var(--s3); font-size:13px; line-height:18px; color:var(--ink3) }
.pop .best em{ font-style:normal; font-weight:600; color:var(--ink2) }
:root[data-theme="dark"] .pop{ background:#232836 }
:root[data-theme="dark"] .pop::before{ background:#232836 }
@media (hover:none){ .pop{ display:none } }

/* the switch: a deep-ink track; the chosen side is a white pill that slides across it */
.seg{ position:relative; width:220px; display:grid; grid-template-columns:1fr 1fr; padding:3px; background:var(--ink-bar); border-radius:var(--r-full);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 1px 3px rgba(12,18,40,.24),0 8px 18px -8px rgba(12,18,40,.4) }
.seg::before{ content:""; position:absolute; top:3px; bottom:3px; left:3px; width:calc(50% - 3px); border-radius:var(--r-full);
  background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.35); transition:transform 240ms var(--ease) }
/* Phone is the left half and the one that opens, so the pill slides for Web */
.seg[data-on="desk"]::before{ transform:translateX(100%) }
.seg button{
  position:relative; z-index:1; display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:34px;
  border-radius:var(--r-full); font:600 14px/18px var(--ui); color:var(--on-bar2); transition:color 240ms var(--ease) }
/* the pill stays 34px tall, which is what the bar was designed around; the thing a finger has to
   hit is 44, so each half carries an invisible 44px-tall target over it */
.seg button::after{ content:""; position:absolute; left:0; right:0; top:50%; height:44px; transform:translateY(-50%) }
.seg button:hover{ color:#fff }
.seg button[aria-pressed="true"]{ color:#161d33 }


/* the one scrolling region of the panel */
.systems{ flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; display:flex; flex-direction:column; gap:10px;
  margin:0 -6px; padding:2px 6px 14px; scrollbar-width:thin }

/* a design system: a crisp white card; its colour lives in the 3D icon and, when open, in the well
   its designs stand in */
.sys{ --h:var(--ink3); flex:none; background:var(--s1); border-radius:var(--r-lg); box-shadow:var(--e1);
  transition:box-shadow var(--t-base) var(--ease) }
.sys:hover{ box-shadow:var(--e2) }
.sys.open{ box-shadow:var(--e2) }
.shead{ display:flex; align-items:center; gap:9px; width:100%; min-height:44px; padding:6px 9px; border-radius:var(--r-lg) }
.sicon{ width:28px; height:28px; border-radius:9px; display:grid; place-items:center; flex:none; color:#fff; font:700 13px/1 var(--ui);
  /* a small 3D tile: lit from the top, its own colour in the shadow */
  background:linear-gradient(160deg,color-mix(in srgb,var(--h) 70%,#fff) 0%,var(--h) 55%,color-mix(in srgb,var(--h) 80%,#000) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),inset 0 -2px 3px rgba(0,0,0,.18),0 4px 10px -2px color-mix(in srgb,var(--h) 55%,transparent) }
:root[data-theme="dark"] .sicon{ color:#0c0e13 }
.sname{ flex:1; min-width:0; font:650 15px/20px var(--ui); letter-spacing:-.01em }
.scount{ min-width:24px; height:22px; padding:0 7px; border-radius:var(--r-full); display:grid; place-items:center;
  background:color-mix(in srgb,var(--h) 12%,var(--s1)); color:color-mix(in srgb,var(--h) 75%,var(--ink));
  font:700 12px/1 var(--ui); font-variant-numeric:tabular-nums }
.chev{ width:26px; height:26px; border-radius:50%; display:grid; place-items:center; color:var(--ink3);
  transition:transform var(--t-base) var(--ease),background var(--t-fast) var(--ease),color var(--t-fast) var(--ease) }
.shead:hover .chev{ background:var(--s3); color:var(--ink) }
.sys:not(.open) .chev{ transform:rotate(-90deg) }
.sbody{ display:none; flex-direction:column; gap:7px; margin:0 6px 6px; padding:8px; border-radius:var(--r-md);
  background:color-mix(in srgb,var(--h) 9%,var(--rail)) }
.sys.open .sbody{ display:flex }

/* the download: the whole system's code, phone and web, as one zip. It is the only coloured, lifted
   thing in the panel, because it is the only thing here that leaves with the visitor. Its colour is
   the system's own, lit from the top edge, and it presses in when pushed. */
.dl{ display:flex; align-items:center; justify-content:center; gap:8px; width:100%;
  min-height:52px; padding:8px 13px 8px 9px; border-radius:var(--r-md); color:#fff; text-decoration:none;
  background:linear-gradient(168deg,color-mix(in srgb,var(--h) 74%,#fff) 0%,var(--h) 46%,color-mix(in srgb,var(--h) 78%,#000) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5),inset 0 -2px 4px rgba(0,0,0,.2),
    0 2px 4px color-mix(in srgb,var(--h) 34%,transparent),0 12px 24px -8px color-mix(in srgb,var(--h) 60%,transparent);
  transition:transform var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease) }
.dl:hover{ transform:translateY(-2px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55),inset 0 -2px 4px rgba(0,0,0,.2),
    0 3px 6px color-mix(in srgb,var(--h) 38%,transparent),0 18px 34px -8px color-mix(in srgb,var(--h) 66%,transparent) }
.dl:active{ transform:translateY(1px);
  box-shadow:inset 0 2px 6px rgba(0,0,0,.3),0 1px 2px color-mix(in srgb,var(--h) 30%,transparent) }
.dlc{ width:22px; height:22px; border-radius:7px; display:grid; place-items:center;
  background:rgba(255,255,255,.24); box-shadow:inset 0 1px 0 rgba(255,255,255,.5),inset 0 -1px 2px rgba(0,0,0,.2) }
.dlt{ font:700 12.5px/16px var(--ui); letter-spacing:-.01em }
.dlt b{ font:700 13px/17px var(--ui); letter-spacing:-.01em; overflow-wrap:anywhere }
.dlt small{ font:500 11.5px/15px var(--ui); color:rgba(255,255,255,.84); font-variant-numeric:tabular-nums }
:root[data-theme="dark"] .dl{ color:#0c0e13 }
:root[data-theme="dark"] .dlc{ background:rgba(12,14,19,.16); box-shadow:inset 0 1px 0 rgba(255,255,255,.3),inset 0 -1px 2px rgba(0,0,0,.14) }
:root[data-theme="dark"] .dlt small{ color:rgba(12,14,19,.74) }
@media (prefers-reduced-motion:reduce){
  .dl{ transition:none }
  .dl:hover,.dl:active{ transform:none }
}

/* a design: its own raised card, a tile in its system's colour, its name and what it is for */
.row{ display:grid; grid-template-columns:4px minmax(0,1fr); align-items:center; column-gap:9px; width:100%;
  padding:8px 10px 8px 8px; border-radius:var(--r-md); background:var(--s1); box-shadow:var(--e1); color:var(--ink);
  transition:box-shadow var(--t-fast) var(--ease),transform var(--t-fast) var(--ease) }
.row:hover{ box-shadow:var(--e2); transform:translateY(-1px) }
.rtile{ grid-row:span 2; width:4px; height:20px; border-radius:3px; display:grid; place-items:center;
  background:color-mix(in srgb,var(--h) 14%,var(--s1)); color:color-mix(in srgb,var(--h) 80%,var(--ink)); font:700 13px/1 var(--ui) }
.rname{ font:600 13px/17px var(--ui); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.rsub{ font:400 11.5px/15px var(--ui); color:var(--ink3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.row[aria-current="true"]{ box-shadow:0 0 0 2px var(--h),var(--e2) }
.row[aria-current="true"] .rtile{ color:#fff;
  background:linear-gradient(160deg,color-mix(in srgb,var(--h) 70%,#fff) 0%,var(--h) 60%,color-mix(in srgb,var(--h) 80%,#000) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 3px 8px -2px color-mix(in srgb,var(--h) 55%,transparent) }
:root[data-theme="dark"] .row[aria-current="true"] .rtile{ color:#0c0e13 }

/* ── the stage: the design, edge to edge ── */
.stage{ position:relative; min-width:0; min-height:0; border-radius:var(--r-xl); overflow:hidden; background:var(--s2);
  box-shadow:var(--e3) }
.stage.phone{ background:
  radial-gradient(70% 90% at 50% 40%, color-mix(in srgb,var(--h,var(--pri)) 16%,var(--s1)) 0, var(--s2) 75%) }
.frame{ position:absolute; inset:0 }
.frame iframe{ position:absolute; top:0; left:0; border:0; display:block; transform-origin:0 0; background:transparent }

.frame.busy::after{ content:""; position:absolute; inset:0;
  background:linear-gradient(100deg,transparent 22%,rgba(140,150,180,.16) 50%,transparent 78%);
  background-size:220% 100%; animation:sh 1.1s linear infinite }
@keyframes sh{ to{ background-position:-220% 0 } }

/* floating actions: round, raised, lifting on hover */
.fab{ position:relative; width:52px; height:52px; border-radius:50%; display:grid; place-items:center; background:var(--sr); color:var(--ink);
  box-shadow:var(--e4); transition:transform var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease),background var(--t-fast) var(--ease) }
.fab:hover{ transform:translateY(-3px); box-shadow:var(--e5) }
.fab:active{ transform:translateY(1px); box-shadow:var(--e2) }
.fab[disabled]{ opacity:.45; cursor:default; transform:none; box-shadow:var(--e2) }
.fabs{ position:absolute; right:22px; bottom:22px; display:flex; gap:12px; z-index:5 }
.fab.menu{ display:none; position:fixed; left:10px; top:8px; width:44px; height:44px; z-index:20; background:var(--pri); color:var(--on-pri) }

@media (max-width:760px){
  .app{ grid-template-columns:1fr; padding:8px }
  .rail{ position:fixed; top:8px; bottom:8px; left:8px; width:min(86vw,320px); z-index:30; box-shadow:var(--e5);
    transform:translateX(calc(-100% - 16px)); transition:transform 240ms var(--ease) }
  body[data-rail="open"] .rail{ transform:none }
  .closer{ display:grid; position:absolute; top:8px; right:8px; z-index:3; background:var(--sr); box-shadow:var(--e2) }
  .rail{ padding-top:60px }
  .bar{ padding:0 0 0 60px; min-height:44px }
  .brand,.now{ display:none }
  .stats{ gap:5px }
  .stat{ padding:0 9px; gap:4px }
  .stat b{ font-size:13px }
  .stat span{ font-size:12px }
  .seg{ left:14px; bottom:14px; transform:none; width:196px }
  .seg button{ font-size:13px }
  .ibtn{ width:44px; height:44px; border-radius:50%; place-items:center; color:var(--ink2) }
  .ibtn:hover{ background:var(--s3) }
  .fab.menu{ display:grid }
  .fabs{ right:14px; bottom:14px; gap:10px }
  .row{ min-height:44px }
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation:none!important; transition:none!important }
}

/* ── phone: the system's designs side by side ── */
.strip{ position:absolute; inset:0; display:flex; align-items:center; gap:32px; padding:0 48px; overflow-x:auto;
  scroll-snap-type:x proximity; scrollbar-width:thin }
.strip::before,.strip::after{ content:""; flex:1 0 0 }
.ph{ position:relative; flex:none; scroll-snap-align:center; border-radius:36px;
  transition:transform var(--t-base) var(--ease),opacity var(--t-base) var(--ease),filter var(--t-base) var(--ease);
  transform:scale(.9); opacity:.62; filter:saturate(.8) }
.ph:hover{ opacity:.85 }
.ph.on{ transform:none; opacity:1; filter:drop-shadow(0 30px 40px rgba(18,26,56,.30)) }
.ph.bare iframe{ border-radius:40px; box-shadow:0 0 0 9px #0e0f13, 0 30px 50px -10px rgba(18,26,56,.35) }
.ph iframe{ position:absolute; top:0; left:0; border:0; display:block; transform-origin:0 0; background:transparent }


/* a floating button names where it goes */
.fab[data-tip]::after{ content:attr(data-tip); position:absolute; bottom:calc(100% + 10px); right:0; white-space:nowrap;
  padding:6px 10px; border-radius:var(--r-sm); background:var(--ink-bar); color:#fff; font:600 12.5px/16px var(--ui);
  box-shadow:var(--e2); opacity:0; transform:translateY(4px); pointer-events:none; transition:opacity var(--t-fast) var(--ease),transform var(--t-fast) var(--ease) }
.fab[data-tip]:hover::after,.fab[data-tip]:focus-visible::after{ opacity:1; transform:none }
.fab[disabled]::after{ display:none }
@media (hover:none){ .fab[data-tip]::after{ display:none } }

/* the catalogue did not load */
.fail{ position:fixed; inset:0; z-index:200; display:grid; place-content:center; justify-items:center; gap:10px; padding:24px;
  background:var(--canvas); text-align:center }
.fail b{ font:700 20px/26px var(--ui) }
.fail p{ color:var(--ink2); font:400 16px/22px var(--ui) }
.fail button{ margin-top:6px; min-height:48px; padding:0 24px; border-radius:var(--r-full); background:var(--pri); color:var(--on-pri);
  font:700 15px/1 var(--ui); box-shadow:var(--e2) }

/* the three sections, at the very top of the panel */
.tabs{ flex:1; min-width:0; display:flex; gap:1px; padding:3px; border-radius:var(--r-full);
  overflow-x:auto; scrollbar-width:none;
  background:var(--s2); box-shadow:inset 0 1px 2px rgba(20,24,40,.06) }
.tab{ position:relative; height:28px; border-radius:var(--r-full); font:600 11.2px/1 var(--ui); color:var(--ink2);
  display:flex; align-items:center; justify-content:center; padding:0 8px; flex:none; white-space:nowrap;
  transition:background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease) }
.tab::after{ content:""; position:absolute; left:0; right:0; top:50%; height:44px; transform:translateY(-50%) }
.tab:hover{ color:var(--ink) }
.tab[aria-selected="true"]{ background:var(--s1); color:var(--ink); box-shadow:var(--e1) }
:root[data-theme="dark"] .tab[aria-selected="true"]{ background:var(--s3) }
.tab:focus-visible{ outline:2px solid var(--pri); outline-offset:1px }
/* Motion and Components fill the stage at its own size: there is no phone or web layout to pick */
body:not([data-tab="system"]) #width{ visibility:hidden }
.now .src{ display:inline-flex; align-items:center; gap:3px; margin-left:4px; padding-left:10px; box-shadow:inset 1px 0 0 var(--s4);
  color:var(--ink3); font-weight:600; text-decoration:none; white-space:nowrap }
.now .src:hover{ color:var(--ink) }

/* sections:hues */
:root{ --h-mf-time:#0A6CC9; --h-mf-arrange:#5B37C2; --h-mf-physics:#00726F; --h-ms-explainer:#B4321F; --h-ms-hand:#1B6E44; --h-ms-craft:#A34A12; --h-ms-print:#C2185B; --h-ms-retro:#3A4AA0; --h-ms-dimension:#7A5C00; --h-uc-buttons:#0A6CC9; --h-uc-numbers:#1B6E44; --h-uc-cards:#5B37C2; --h-uc-disclosure:#00726F; --h-uc-feedback:#B4321F; }
:root[data-theme="dark"]{ --h-mf-time:#6CB4F5; --h-mf-arrange:#AE93F5; --h-mf-physics:#4CC9C9; --h-ms-explainer:#F2876F; --h-ms-hand:#55C38C; --h-ms-craft:#E89359; --h-ms-print:#F06A9D; --h-ms-retro:#8E9DEE; --h-ms-dimension:#DFB64A; --h-uc-buttons:#6CB4F5; --h-uc-numbers:#55C38C; --h-uc-cards:#AE93F5; --h-uc-disclosure:#4CC9C9; --h-uc-feedback:#F2876F; }
/* /sections:hues */

/* the part of a section a group belongs to: Foundations, Styles */
.sec{ margin:10px 6px 2px; font:600 13px/18px var(--ui); color:var(--ink3) }
.sec:first-child{ margin-top:2px }


/* ── the owner's ten changes, added on the copy ────────────────────────────
   Everything above is the live design. These are the edits, kept together so
   they can be read, argued with, or taken back in one block. */

/* 1 · the department strip: five, where the three numbers used to be. The numbers
   are now its tooltip, because they were chrome and the departments are navigation. */
.tab i{ font-style:normal; font-size:10.5px; font-weight:700; color:var(--ink3);
  font-variant-numeric:tabular-nums }
.tab[aria-selected="true"] i{ color:var(--ink2) }
/* the departments on one row, then Expand all / Collapse all under them, in
   the rail, directly above the groups it opens */
.rtop{ flex-direction:column; align-items:stretch; gap:6px }

/* 3 · an icon per family, on one grid at one stroke weight */
.sicon svg{ width:17px; height:17px }

/* 4 · thinner rows: the tile is a spine now, not a square with a letter in it */
.rtile{ background:var(--h); opacity:.5 }
.row[aria-current="true"] .rtile{ opacity:1 }
.row{ padding:5px 9px }

/* 6 · a department with nothing in it yet says so */
.bare-empty{ margin:auto; max-width:30ch; text-align:center; color:var(--ink3);
  font:500 14px/1.6 var(--ui) }


/* the strip scrolls instead of overlapping, and hides its scrollbar */
.tabs::-webkit-scrollbar{ display:none }
.tab i{ display:none }

/* the download is one plain button inside a thin card, not a billboard */
.dl{ min-height:34px; padding:0 12px }
.dlt{ font:700 12px/16px var(--ui) }
.dlc svg{ width:15px; height:15px }


/* ══ the floating ink pill nav ═══════════════════════════════════════════
   The owner's own spec, S4 and the component table: "a floating ink pill nav
   with a sliding selection", "a deep-ink track with a white selection that
   slides… floating, contrasting, and never shakes", and the one place glass is
   allowed — "a thin translucent ink nav pill is the one tolerated case",
   because no body text sits on it. Shadow is the three-term e2. */
.tabs{
  position:relative; isolation:isolate;
  background:color-mix(in oklch, #1d2b6b 86%, transparent);
  -webkit-backdrop-filter:blur(16px) saturate(150%);
  backdrop-filter:blur(16px) saturate(150%);
  border-radius:999px; padding:4px;
  box-shadow:0 1px 3px rgba(18,26,56,.14),
             0 0 18px rgba(18,26,56,.12),
             0 12px 26px -6px rgba(18,26,56,.22),
             inset 0 1px 0 rgba(255,255,255,.14);
}
/* the selection itself: a white lozenge that slides, never a colour swap */
.tabs::before{
  content:""; position:absolute; z-index:-1; top:4px; bottom:4px;
  left:var(--sel-x,4px); width:var(--sel-w,0px);
  background:#fff; border-radius:999px;
  box-shadow:0 1px 2px rgba(18,26,56,.22), 0 3px 8px -1px rgba(18,26,56,.20);
  transition:left .2s cubic-bezier(.3,.9,.3,1), width .2s cubic-bezier(.3,.9,.3,1);
}
.tab{ color:rgba(255,255,255,.74); transition:color .2s }
.tab:hover{ color:#fff }
.tab[aria-selected="true"]{ background:none; box-shadow:none; color:#1d2b6b }
.tab:focus-visible{ outline:2px solid #fff; outline-offset:-1px }
@media (prefers-reduced-motion:reduce){ .tabs::before{ transition:none } }

/* ══ the design's own header ═════════════════════════════════════════════
   An action belongs where the thing it acts on is seen. The download and the
   expand/collapse now sit on the design, not in the panel. */
.cta{
  display:inline-flex; align-items:center; gap:7px; height:34px; padding:0 15px;
  border-radius:999px; background:#1d2b6b; color:#fff;
  font:700 12.5px/1 var(--ui); letter-spacing:-.01em; white-space:nowrap;
  box-shadow:0 1px 3px rgba(18,26,56,.20), 0 0 14px rgba(18,26,56,.10),
             0 8px 18px -6px rgba(18,26,56,.30);
  transition:transform .12s, box-shadow .2s, background .2s;
}
.cta:hover{ transform:translateY(-2px);
  box-shadow:0 2px 5px rgba(18,26,56,.22), 0 0 22px rgba(18,26,56,.16),
             0 16px 30px -8px rgba(18,26,56,.34) }
.cta:active{ transform:translateY(1px);
  box-shadow:0 1px 2px rgba(18,26,56,.22) }
.cta svg{ flex:none }
@media (prefers-reduced-motion:reduce){ .cta{ transition:none } }

/* ══ EXPAND ALL / COLLAPSE ALL ═══════════════════════════════════════════
   A labelled control in the rail, above the groups it opens — not a circular
   chevron in the top bar with its words hidden in an aria-label. */
.allbtn{
  display:inline-flex; align-items:center; gap:7px; align-self:flex-start;
  height:30px; padding:0 12px 0 8px; margin:2px 0 0;
  border-radius:999px; background:var(--s3); color:var(--ink2);
  font:700 12px/1 var(--ui); letter-spacing:-.005em; white-space:nowrap; cursor:pointer;
  transition:background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.allbtn:hover{ background:color-mix(in srgb,var(--pri) 14%,var(--s3)); color:var(--ink) }
.allbtn[disabled]{ opacity:.35; cursor:default }
/* Expand all + the like / feedback / email / share icons on one line. The icons take this panel's own
   colours (Expand all's fill, its ink, a dark outline), so they follow the theme and never shout. */
.allrow{ display:flex; align-items:center; gap:6px; align-self:flex-start }
#sr-mount{ --sr-bg:var(--s3); --sr-bg-h:color-mix(in srgb,var(--pri) 14%,var(--s3)); --sr-ink:var(--ink2);
  --sr-bd:color-mix(in srgb,var(--ink) 70%,transparent); --sr-gap:6px; display:inline-flex; margin-top:2px }
.allbtn .achev{ display:grid; place-items:center }
.allbtn .achev svg{ transition:transform .2s cubic-bezier(.2,.9,.3,1.2) }
.allbtn[data-will="open"] .achev svg{ transform:rotate(-90deg) }
@media (prefers-reduced-motion:reduce){ .allbtn .achev svg{ transition:none } }

/* ══ the breadcrumb is a path, not a button ══════════════════════════════ */
.now{ background:none; box-shadow:none; padding:0; height:auto; gap:5px }
.nowfam{ height:auto; padding:0; border-radius:0; background:none; box-shadow:none;
  color:var(--ink2); font:600 12.5px/1.4 var(--ui); text-decoration:none;
  cursor:pointer; transition:color .15s }
.nowfam:hover{ color:var(--ink); text-decoration:underline; text-underline-offset:3px }
.nowsep{ font-style:normal; color:var(--ink3); font-size:12px }
.now span{ font:600 12.5px/1.4 var(--ui); color:var(--ink) }

/* ══ dark ════════════════════════════════════════════════════════════════ */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .tabs{
    background:color-mix(in oklch, #0e1430 80%, transparent);
    box-shadow:0 1px 3px rgba(0,0,0,.5), 0 0 18px rgba(0,0,0,.35),
               0 12px 26px -6px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.10) }
  :root:not([data-theme="light"]) .tab[aria-selected="true"]{ color:#15204a }
  :root:not([data-theme="light"]) .cta{ background:#b9c5f5; color:#111833 }
}
:root[data-theme="dark"] .tabs{
  background:color-mix(in oklch, #0e1430 80%, transparent);
  box-shadow:0 1px 3px rgba(0,0,0,.5), 0 0 18px rgba(0,0,0,.35),
             0 12px 26px -6px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.10) }
:root[data-theme="dark"] .tab[aria-selected="true"]{ color:#15204a }
:root[data-theme="dark"] .cta{ background:#b9c5f5; color:#111833 }

/* The panel's download block is back, and it is the only one in here: the
   whole design system as one zip, inside the card that is open. The rule that
   used to hide it (`.sbody .dl{ display:none }`) dated from the round that
   removed it, and left on it would have hidden the new one too. */

/* ══ round three ═════════════════════════════════════════════════════════

   1 · The header is a flex row again. It was a three-column grid, so adding the
   toggle and the CTA pushed the Phone/Web switch out of its column and left it
   stranded in the middle. */
.bar{ display:flex; align-items:center; gap:10px; min-height:44px; padding:0 4px }
.brand{ justify-self:auto; flex:none }
.bar .ib2.tog{ flex:none; margin-right:auto }
.bar .seg{ flex:none; margin-inline:auto }
.bar .now{ justify-self:auto; flex:0 1 auto; min-width:0; overflow:hidden }
.bar .cta{ flex:none }

/* 2 · Five families had no hue, so their icon tile fell back to grey — the
   opposite of "a coloured 3D icon tile". These complete the set. */
:root{
  --h-component:#0F7A6B; --h-interaction:#B5551A; --h-ia:#4A5BA8;
  --h-lineage:#8A3FA8; --h-token:#A8324E;
  --h-uc-buttons:var(--h-component); --h-uc-cards:var(--h-shell);
  --h-uc-numbers:var(--h-data); --h-uc-disclosure:var(--h-flow);
  --h-uc-feedback:var(--h-feed);
}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]){
  --h-component:#5FD4C0; --h-interaction:#F0A46A; --h-ia:#9BA9F2;
  --h-lineage:#D48FEC; --h-token:#F0809A } }
:root[data-theme="dark"]{
  --h-component:#5FD4C0; --h-interaction:#F0A46A; --h-ia:#9BA9F2;
  --h-lineage:#D48FEC; --h-token:#F0809A }

/* 3 · Five labels have to fit the rail without the last one being clipped. */
.tab{ padding:0 10px; font-size:10.6px; letter-spacing:.1px }

/* Five labels need ~346px and the rail gives ~272px, so the strip scrolls. A
   hard cut reads as a bug; a fade reads as "there is more". The fade is only
   painted while there is actually something past the edge. */
.tabs{ -webkit-mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 22px),transparent 100%);
       mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 22px),transparent 100%) }
.tabs[data-end="true"]{ -webkit-mask-image:none; mask-image:none }

/* ══ round four ══════════════════════════════════════════════════════════

   "The color is old blue. It's not one of the modern colors which we have.
    I would prefer a charcoal black with the white translucent and a floating
    action."

   So: a true neutral charcoal, no blue in it at all — the hue term is 0.004,
   which is below the threshold anyone can name as a colour. The translucency
   is real (the panel shows through it), the selection is white, and the whole
   island lifts on hover the way a floating action does. */
:root{
  --ink-charcoal:oklch(0.235 0.004 285);
  --ink-charcoal-dark:oklch(0.185 0.004 285);
}
.tabs{
  background:color-mix(in oklch, var(--ink-charcoal) 82%, transparent);
  -webkit-backdrop-filter:blur(20px) saturate(130%);
  backdrop-filter:blur(20px) saturate(130%);
  box-shadow:
    0 1px 2px rgba(10,10,12,.22),
    0 0 20px rgba(10,10,12,.14),
    0 10px 24px -8px rgba(10,10,12,.34),
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 0 0 1px rgba(255,255,255,.07);
  transition:transform .2s cubic-bezier(.2,.9,.3,1), box-shadow .2s;
}
.tabs:hover{
  transform:translateY(-2px);
  box-shadow:
    0 2px 4px rgba(10,10,12,.24),
    0 0 26px rgba(10,10,12,.18),
    0 18px 34px -10px rgba(10,10,12,.40),
    inset 0 1px 0 rgba(255,255,255,.20),
    inset 0 0 0 1px rgba(255,255,255,.09);
}
.tabs::before{
  background:#fff;
  box-shadow:0 1px 2px rgba(10,10,12,.28), 0 3px 10px -2px rgba(10,10,12,.26);
}
.tab{ color:rgba(255,255,255,.70) }
.tab:hover{ color:#fff }
.tab[aria-selected="true"]{ color:var(--ink-charcoal) }
@media (prefers-reduced-motion:reduce){ .tabs{ transition:none } .tabs:hover{ transform:none } }

/* the CTA is charcoal too, and it is no longer the loudest thing on the screen */
.cta{
  height:30px; padding:0 13px; gap:6px; font:700 12px/1 var(--ui);
  background:var(--ink-charcoal); color:#fff;
  box-shadow:0 1px 2px rgba(10,10,12,.22), 0 6px 14px -6px rgba(10,10,12,.30),
             inset 0 1px 0 rgba(255,255,255,.14);
}
.cta:hover{ transform:translateY(-2px);
  box-shadow:0 2px 4px rgba(10,10,12,.24), 0 12px 24px -8px rgba(10,10,12,.36),
             inset 0 1px 0 rgba(255,255,255,.18) }
.cta:active{ transform:translateY(1px); box-shadow:0 1px 2px rgba(10,10,12,.26) }
.cta svg{ width:14px; height:14px }

/* ══ the stepper ═════════════════════════════════════════════════════════
   "Move the scroll at the bottom right somewhere to the left of the phone web
    tab… as much as possible nothing should hamper the design view."
   It is a track like the Phone/Web switch, so the header reads as one family,
   and it carries its position so the run has a length. */
.step{ display:inline-flex; align-items:center; gap:2px; padding:3px;
  border-radius:var(--r-full); background:var(--ink-charcoal);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12), 0 1px 3px rgba(10,10,12,.22),
             0 8px 18px -8px rgba(10,10,12,.34) }
.step button{ position:relative; width:30px; height:30px; border-radius:50%;
  display:grid; place-items:center; color:rgba(255,255,255,.80);
  transition:background .15s, color .15s }
.step button::after{ content:""; position:absolute; left:0; right:0; top:50%;
  height:44px; transform:translateY(-50%) }
.step button:hover:not([disabled]){ background:rgba(255,255,255,.14); color:#fff }
.step button[disabled]{ opacity:.3; cursor:default }
.step button:focus-visible{ outline:2px solid #fff; outline-offset:-2px }
.stepn{ min-width:46px; text-align:center; font:600 11.5px/1 var(--ui);
  color:rgba(255,255,255,.72); font-variant-numeric:tabular-nums; letter-spacing:.2px }

/* ══ dark ════════════════════════════════════════════════════════════════ */
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]){
  --ink-charcoal:oklch(0.265 0.004 285) } }
:root[data-theme="dark"]{ --ink-charcoal:oklch(0.265 0.004 285) }

/* ══ round five — the nav, taken from the real site ═══════════════════════

   Read out of syedabbasshaheer-art/abbasshaheer-site, src/styles/global.css
   lines 148-182. Not approximated: these are its values.

     --charcoal  #101114 light / #08090B dark      (near-black, faintly cool)
     --glide     #F2EFE4 light / #EDEADF dark      (warm off-white, NOT pure white)
     --on-bar-dim #A4A59A / #9B9C8F
     --r-xl      22px        a rounded island, not a capsule
     --t3/--ease 320ms cubic-bezier(.2,0,0,1)

   The piece my version was missing is the 3D: the moving highlight is a
   VERTICAL GRADIENT with a bright inset top edge and a dark bottom, so it
   reads as a physical lozenge sitting in the bar rather than a flat white
   rectangle. The bar itself carries two insets — a top highlight and a 1px
   ring — over a 26px blur at 170% saturation.

   Sizes are the one departure, and it is forced: the site's bar is 900px wide
   with 58px of height, and this one lives in a 300px rail. The material is
   identical; the scale is not. */
:root{
  --charcoal:#101114;
  --glide:#F2EFE4;
  --on-bar-nav:#F2EFE4;
  --on-bar-dim:#A4A59A;
  --t3:320ms;
  --ease-nav:cubic-bezier(.2,0,0,1);
}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]){
  --charcoal:#08090B; --glide:#EDEADF; --on-bar-nav:#EDEADF; --on-bar-dim:#9B9C8F } }
:root[data-theme="dark"]{
  --charcoal:#08090B; --glide:#EDEADF; --on-bar-nav:#EDEADF; --on-bar-dim:#9B9C8F }

.tabs{
  border-radius:22px;
  padding:5px 6px;
  gap:2px;
  background:color-mix(in srgb, var(--charcoal) 88%, transparent);
  -webkit-backdrop-filter:blur(26px) saturate(170%);
  backdrop-filter:blur(26px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.24),
    inset 0 0 0 1px rgba(255,255,255,.10),
    0 2px 5px rgba(26,26,23,.18),
    0 18px 36px -12px rgba(26,26,23,.40);
  transition:transform var(--t3) var(--ease-nav), box-shadow var(--t3) var(--ease-nav);
}
.tabs:hover{
  transform:translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 0 0 1px rgba(255,255,255,.12),
    0 3px 7px rgba(26,26,23,.20),
    0 26px 48px -14px rgba(26,26,23,.46);
}
/* the browser that cannot blur gets the solid bar, as the site does */
@supports not ((backdrop-filter:blur(2px)) or (-webkit-backdrop-filter:blur(2px))){
  .tabs{ background:var(--charcoal) }
}

/* the moving highlight: a lozenge with a lit top edge and a shaded bottom */
.tabs::before{
  top:5px; bottom:5px; border-radius:999px;
  background:linear-gradient(180deg,
    color-mix(in srgb, #FFF 24%, var(--glide)) 0%,
    var(--glide) 54%,
    color-mix(in srgb, var(--glide) 90%, #000) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.70), 0 1px 4px rgba(0,0,0,.35);
  transition:left var(--t3) var(--ease-nav), width var(--t3) var(--ease-nav);
}
.tab{
  min-height:30px; padding:0 11px; border-radius:999px;
  font:600 11.5px/18px var(--ui); letter-spacing:0;
  color:var(--on-bar-dim);
  transition:color 200ms var(--ease-nav);
}
.tab:hover{ color:var(--on-bar-nav) }
.tab[aria-selected="true"]{ color:#15161a; background:none; box-shadow:none }
.tab:focus-visible{ outline:2px solid var(--on-bar-nav); outline-offset:-2px }
@media (prefers-reduced-motion:reduce){
  .tabs,.tabs::before{ transition:none } .tabs:hover{ transform:none } }

/* the same charcoal everywhere it appears, so the screen has one dark, not two */
.cta,.step{ background:var(--charcoal) }
.cta{ color:var(--on-bar-nav) }
.step button{ color:var(--on-bar-dim) }
.step button:hover:not([disabled]){ color:var(--on-bar-nav) }
.stepn{ color:var(--on-bar-dim) }

/* four labels in a 272px rail: 9px of padding is what fits */
.tab{ padding:0 9px; font-size:11px }

/* ══ round six ═══════════════════════════════════════════════════════════

   1 · "Why is the download button so large? Make it small."
   It keeps the charcoal so the header still reads as one family, but it stops
   being a slab: shorter than the Phone/Web track beside it, tighter type, and
   the icon carries most of the meaning. */
.cta{
  height:26px; padding:0 11px 0 9px; gap:5px;
  font:700 11px/1 var(--ui); letter-spacing:.1px;
  box-shadow:0 1px 2px rgba(10,10,12,.20), 0 4px 10px -5px rgba(10,10,12,.26),
             inset 0 1px 0 rgba(255,255,255,.14);
}
.cta svg{ width:13px; height:13px }
.cta:hover{ transform:translateY(-1px);
  box-shadow:0 2px 3px rgba(10,10,12,.22), 0 8px 16px -6px rgba(10,10,12,.32),
             inset 0 1px 0 rgba(255,255,255,.18) }

/* 2 · "The breadcrumbs must be larger. Breadcrumbs are not readable."
   Up from 12.5px to 15, with the system name carrying real weight and the
   separator stepped back so the eye reads the two names, not the slash. */
.bar .now{ gap:7px }
.nowfam{ font:600 15px/1.35 var(--ui); color:var(--ink2); letter-spacing:-.01em }
.nowfam:hover{ color:var(--ink) }
.nowsep{ font-size:14px; color:var(--ink3); opacity:.6 }
.bar .now span{ font:650 15px/1.35 var(--ui); color:var(--ink); letter-spacing:-.01em }

/* 3 · "The arrows have to be large and easy to click, with a better surface
       area. Don't put it in a button or any component. Let it be free-flowing.
       The two arrows: you can put the number in between."
   So the track is gone. Two large glyphs with a 44px target each, the position
   between them, and nothing drawn around any of it until the pointer is on it. */
.step{
  background:none; box-shadow:none; padding:0; gap:2px;
  display:inline-flex; align-items:center;
}
.step button{
  width:40px; height:40px; border-radius:50%;
  color:var(--ink3); background:none;
  transition:color .15s var(--ease-nav), background .15s var(--ease-nav),
             transform .15s var(--ease-nav);
}
.step button svg{ width:23px; height:23px; stroke-width:2.1 }
.step button::after{ content:""; position:absolute; left:50%; top:50%;
  width:44px; height:44px; transform:translate(-50%,-50%) }
.step button:hover:not([disabled]){
  color:var(--ink); background:var(--s3); transform:translateY(-1px) }
.step button:active:not([disabled]){ transform:translateY(1px) }
.step button[disabled]{ opacity:.22; cursor:default; background:none }
.step button:focus-visible{ outline:2px solid var(--pri); outline-offset:-3px }
.stepn{
  min-width:52px; text-align:center;
  font:600 13px/1 var(--ui); color:var(--ink3);
  font-variant-numeric:tabular-nums; letter-spacing:.3px;
}
@media (prefers-reduced-motion:reduce){
  .step button{ transition:none } .step button:hover,.step button:active{ transform:none } }

/* ── round six, stated as longhand at higher specificity ──────────────────
   The `font:` shorthand above was being dropped (computed size stayed 16px)
   and the height resolved to 52px on the wide layout only. Longhand under
   `.bar` removes both questions: nothing here depends on a shorthand parsing,
   and `.bar .cta` outranks every earlier `.cta`. */
.bar .cta{
  height:26px; min-height:0; padding:0 11px 0 9px;
  font-family:var(--ui); font-size:11px; font-weight:700; line-height:1;
  letter-spacing:.1px; align-items:center; flex:none; align-self:center;
}
.bar .cta svg{ width:13px; height:13px; flex:none }
.bar .cta span{ font-size:11px; line-height:1 }

.bar .step{ align-self:center }
.bar .step button{ width:40px; height:40px; min-height:0; flex:none }
.bar .step button svg{ width:23px; height:23px }
.bar .stepn{ font-size:13px; font-weight:600; line-height:1; min-width:52px }

.bar .now .nowfam{ font-size:15px; font-weight:600; line-height:1.35 }
.bar .now span{ font-size:15px; font-weight:650; line-height:1.35 }

/* ══ round seven ═════════════════════════════════════════════════════════
   "This download button is too large, too ugly. It is too filled. I would want
    a very transparent color, very easy on the eyes. In fact the download white
    is also not required. A proper icon should be enough."
   So it stops being a filled pill entirely: the word goes, the fill goes, and
   what is left is the icon on a barely-there surface that only resolves when
   the pointer is on it. The name still reaches a screen reader and a tooltip. */
.bar .cta{
  width:34px; height:34px; padding:0; gap:0;
  border-radius:50%;
  background:color-mix(in srgb, var(--ink) 6%, transparent);
  color:var(--ink2);
  box-shadow:none;
}
.bar .cta span{ position:absolute; width:1px; height:1px; overflow:hidden;
  clip-path:inset(50%); white-space:nowrap }
.bar .cta svg{ width:18px; height:18px }
.bar .cta:hover{
  transform:translateY(-1px);
  background:color-mix(in srgb, var(--ink) 12%, transparent);
  color:var(--ink);
  box-shadow:0 2px 6px -2px color-mix(in srgb, var(--ink) 22%, transparent);
}
.bar .cta:active{ transform:translateY(1px); box-shadow:none }
.bar .cta:focus-visible{ outline:2px solid var(--pri); outline-offset:2px }

/* "Similarly the scrolls are too small… the scroll has to be larger." */
.bar .step{ gap:0 }
.bar .step button{ width:46px; height:46px }
.bar .step button svg{ width:27px; height:27px; stroke-width:2 }
.bar .stepn{ font-size:13.5px; min-width:56px; color:var(--ink2) }

/* ══ round eight — the chips ══════════════════════════════════════════════
   The owner chose C from the six: "Chips look best, are easiest, and more
   convenient." His reasons for the other five, in his words: bento "won't be
   readable", strip "requires too much scrolling", one-at-a-time "takes a line",
   plain list and today "take too much space".

   So the design row stops being a card. A bubble, slightly elevated, lifting
   2px under the pointer and pressing 1px down — the house pill, from his own
   component table. Six names come to two lines instead of six rows. */
.chips{ display:flex; flex-wrap:wrap; gap:6px }
.chip{
  display:inline-flex; align-items:center; position:relative;
  height:30px; padding:0 12px; border-radius:999px;
  background:var(--s1); box-shadow:var(--e1);
  font:600 12.5px/1 var(--ui); letter-spacing:-.005em; color:var(--ink2);
  white-space:nowrap; max-width:100%; overflow:hidden; text-overflow:ellipsis;
  transition:transform 140ms var(--ease), box-shadow 140ms var(--ease),
             color 140ms var(--ease), background 140ms var(--ease);
}
/* 44px of target over a 30px bubble, which is the house rule */
.chip::after{ content:""; position:absolute; left:0; right:0; top:50%;
  height:44px; transform:translateY(-50%) }
.chip:hover{ transform:translateY(-2px); box-shadow:var(--e2); color:var(--ink) }
.chip:active{ transform:translateY(1px); box-shadow:var(--e1) }
.chip[aria-current="true"]{
  background:var(--h); color:#fff;
  box-shadow:0 1px 3px color-mix(in srgb, var(--h) 42%, transparent),
             0 8px 16px -6px color-mix(in srgb, var(--h) 55%, transparent),
             inset 0 1px 0 rgba(255,255,255,.28);
}
.chip:focus-visible{ outline:2px solid var(--h); outline-offset:2px }
:root[data-theme="dark"] .chip[aria-current="true"]{ color:#0c0e13 }
@media (prefers-reduced-motion:reduce){
  .chip{ transition:none } .chip:hover,.chip:active{ transform:none } }

/* the well the chips stand in can be tighter than the one the cards needed */
.sbody{ gap:0; padding:7px 8px 8px }

/* Every family the Components and Colour passes created needs its own hue, or
   its icon tile falls back to grey — the same defect the letters had, in
   another form. Grouped so a department reads as one run of related colour. */
   THE NINE HUE FAMILIES, added 2026-10-25 with the themes themselves. Pinks
   through Neutrals had no tint at all, so every one of them fell back to
   `--ink3` and a department made of colour drew its own shelf in grey. These
   nine are not picked: each is the CENTRE of that family's own OKLCH hue band
   as `_build/themes.mjs` declares it (Pinks 330-11, Reds 11-30, Oranges
   30-74, Yellows 74-116, Greens 116-166, Teals 166-222, Blues 222-280,
   Violets 280-330, and Neutrals which is a chroma rule and takes a cool
   grey), solved at L 50 light and L 79 dark with the chroma fitted into sRGB
   by `_build/colour.mjs` — the same arithmetic the themes are built with.
   Against the page they land at 1.99-2.18:1 light and 1.28-1.64:1 dark, which
   is the band the twelve tints above already sit in; these paint a dot, a
   tile and a tinted wash, never text on its own. */
:root{
  --h-c-actions:#0F6FD1;      --h-c-selection:#0F7A6B;    --h-c-text:#1B6E44;
  --h-c-containment:#5B37C2;  --h-c-navigation:#0B65A8;   --h-c-communication:#B5551A;
  --h-c-sections:#9A2A86;
  --h-t-notations:#4A5BA8;    --h-t-palettes:#C2185B;     --h-t-scales:#00726F;
  --h-t-roles:#7A5C00;        --h-t-charts:#A34A12;       --h-t-axes:#5B6472;
  --h-t-pinks:#993a76;        --h-t-reds:#a6373f;         --h-t-oranges:#9a4900;
  --h-t-yellows:#766200;      --h-t-greens:#29761c;       --h-t-teals:#007271;
  --h-t-blues:#0165b2;        --h-t-violets:#7749a4;      --h-t-neutrals:#5f646a;
}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]){
  --h-c-actions:#6CB4F5;      --h-c-selection:#5FD4C0;    --h-c-text:#6FD49A;
  --h-c-containment:#AE93F5;  --h-c-navigation:#5FB3EB;   --h-c-communication:#F0A46A;
  --h-c-sections:#EC8FD4;
  --h-t-notations:#9BA9F2;    --h-t-palettes:#F06A9D;     --h-t-scales:#4FD2CE;
  --h-t-roles:#DFB64A;        --h-t-charts:#F0906A;       --h-t-axes:#A3ACBB;
  --h-t-pinks:#ef9ccb;        --h-t-reds:#fc9c9c;         --h-t-oranges:#f5a574;
  --h-t-yellows:#d2ba5e;      --h-t-greens:#91cd87;       --h-t-teals:#4ad2d0;
  --h-t-blues:#84bfff;        --h-t-violets:#cca8f6;      --h-t-neutrals:#b5bbc2 } }
:root[data-theme="dark"]{
  --h-c-actions:#6CB4F5;      --h-c-selection:#5FD4C0;    --h-c-text:#6FD49A;
  --h-c-containment:#AE93F5;  --h-c-navigation:#5FB3EB;   --h-c-communication:#F0A46A;
  --h-c-sections:#EC8FD4;
  --h-t-notations:#9BA9F2;    --h-t-palettes:#F06A9D;     --h-t-scales:#4FD2CE;
  --h-t-roles:#DFB64A;        --h-t-charts:#F0906A;       --h-t-axes:#A3ACBB;
  --h-t-pinks:#ef9ccb;        --h-t-reds:#fc9c9c;         --h-t-oranges:#f5a574;
  --h-t-yellows:#d2ba5e;      --h-t-greens:#91cd87;       --h-t-teals:#4ad2d0;
  --h-t-blues:#84bfff;        --h-t-violets:#cca8f6;      --h-t-neutrals:#b5bbc2 }

/* ══ THE DOWNLOAD BUTTON ═════════════════════════════════════════════════
   One button, one route. There is no overlay any more, so the button's own
   label is where it reports itself: "Download" → "Packing…" → "Saved", and
   the icon becomes a tick. Nothing new is coloured in — a press whose result
   is a file in the downloads folder does not need a new hue to say so, and
   "one colour, one meaning" would make a green here mean nothing else
   anywhere. Only a failure gets a colour, because only a failure needs one.

   THE 44px TARGET. .cta is 30px tall by design, so the touchable area is
   extended with a pseudo-element the way .step button already does it,
   instead of making the bar taller. */
.cta{ position:relative }
/* 44px in BOTH directions. The bar collapses the label at some widths, which
   leaves a 34px square — tall enough once the pseudo-element is there, and
   still too narrow until it is widened too. */
.cta::after{ content:""; position:absolute; left:50%; top:50%;
  width:max(100%,44px); height:44px; transform:translate(-50%,-50%) }
.cta > span{ position:relative; z-index:1 }

/* In the top bar the label is deliberately hidden — the owner asked for the
   icon alone there — so on that button the STATE has to be the icon. It
   becomes a tick, and the surface firms up a little so the change is not only
   a glyph swap. No new hue: a colour here would have to mean something
   everywhere, and a finished download is not a meaning the palette carries. */
.bar .cta.done{ background:color-mix(in srgb, var(--ink) 13%, transparent); color:var(--ink) }
.dl.work,.cta.work{ cursor:default }
.dl.work,.cta.work{ opacity:.78 }
.dl.work:hover,.cta.work:hover{ transform:none }
.dl[disabled],.cta[disabled]{ cursor:default }

.dl.bad,.cta.bad{ background:var(--neg,#b3261e); color:#fff }
.dl.bad .dlc{ background:rgba(255,255,255,.22) }
:root[data-theme="dark"] .dl.bad{ color:#fff }

/* the whole system, inside the opened card: the same button, quieter, so the
   design you are looking at stays the louder of the two */
.sysdl{ min-height:44px; margin-top:2px; font-size:12px }
.sysdl .dlc{ width:20px; height:20px }

@media (prefers-reduced-motion:reduce){
  .cta,.dl{ transition:none }
  .cta:hover,.cta:active,.dl:hover,.dl:active{ transform:none }
}

/* ══ round nine — THE DOWNLOAD BUTTON, EVIDENT ═══════════════════════════
   His note, 2026-10-25: "I think download is there for systems. I don't know
   if you have it for components, motions, and colors. Just confirm to me.
   Make the download button more evident, more clear. Maybe a proper icon.
   Bubbled."

   THIS REVERSES ROUND SEVEN, AND THE REVERSAL IS HIS. Round seven above is
   his too, in his words: "This download button is too large, too ugly. It is
   too filled. I would want a very transparent color, very easy on the eyes.
   In fact the download white is also not required. A proper icon should be
   enough." That produced a 34px icon-only disc at 6% ink, with the word
   DELIBERATELY hidden from sight and left only for a screen reader. Six days
   later he asked where the download was. A control that has to be found is
   not easy on the eyes; it is invisible, and round seven overshot.

   SO THE TWO NOTES ARE BOTH ANSWERED, and the word that joins them is his
   own: BUBBLED. Not the filled slab of round six, not the ghost of round
   seven. The pill is a TINT of the accent rather than a solid of it, which
   keeps "very transparent, very easy on the eyes"; the word comes back,
   because a button whose label is announced only to a screen reader is an
   unlabelled button for everyone else; and the arrow gets its own solid
   accent disc, which is the "proper icon, bubbled" and the only saturated
   shape in the bar. Nothing else up there is tinted, so it is now the one
   thing in the row that is not grey.

   MEASURED, NOT FELT. Before: 34x34, 0.06 alpha of ink, label clipped to
   1x1px. After: 38px tall, label visible at 13px/750, icon disc 26px solid
   accent. The 44px target still comes from the ::after above, which widens
   with the button rather than assuming a square. */
.bar .cta{
  /* flex:none AND min-width:max-content. An earlier layer squeezed this to
     83px against the 118px its contents need, which put the label on top of
     the bubble; a pill in a crowded flex row has to refuse to shrink. */
  flex:none; min-width:max-content;
  width:auto; height:38px; padding:0 16px 0 6px; gap:9px;
  border-radius:999px;
  background:color-mix(in srgb, var(--pri) 14%, transparent);
  color:var(--pri);
  font-family:var(--ui); font-size:13px; font-weight:750; line-height:1; letter-spacing:-.01em;
  box-shadow:none;
}
/* the bubble: a solid disc of the accent, carrying the arrow in --on-pri.
   It is mixed rather than hard-coded because --pri flips to a pale lavender
   in dark mode, where a white arrow would sit at well under the floor. */
.bar .cta .ctaico{
  /* THE BUBBLE IS A <span>, AND ROUND SEVEN HID EVERY SPAN IN THIS BUTTON.
     `.bar .cta span { position:absolute; width:1px; clip-path:inset(50%) }`
     took the bubble out of flow and clipped it away, so the pill measured
     83px — padding plus label, with no room for the icon at all — and the
     word sat where the disc should have been. Setting a width on it was not
     enough; it had to be put back IN the flow and un-clipped. */
  position:static; overflow:visible; clip-path:none;
  width:26px; height:26px; flex:none; border-radius:50%;
  display:grid; place-items:center;
  background:var(--pri); color:var(--on-pri);
}
.bar .cta .ctaico svg{ width:16px; height:16px }
/* the label is visible again — round seven's clip is undone here */
.bar .cta span[data-txt]{
  position:static; width:auto; height:auto; overflow:visible;
  clip-path:none; white-space:nowrap; font-size:13px; line-height:1;
}
.bar .cta:hover{
  transform:translateY(-1px);
  background:color-mix(in srgb, var(--pri) 22%, transparent);
  color:var(--pri);
  box-shadow:0 4px 12px -4px color-mix(in srgb, var(--pri) 42%, transparent);
}
.bar .cta:active{ transform:translateY(1px); box-shadow:none }
/* the finished state keeps the shape and changes the glyph; the disc firms to
   the full accent so the change is not only a glyph swap */
.bar .cta.done{
  background:color-mix(in srgb, var(--pri) 22%, transparent); color:var(--pri);
}
.bar .cta.done .ctaico{ background:var(--pri); color:var(--on-pri) }
.bar .cta.bad .ctaico{ background:var(--neg,#b3261e); color:#fff }

/* at narrow widths the bar has no room for a 38px labelled pill beside the
   breadcrumb, so there the word steps aside and the bubble carries it alone —
   which is round seven's shape, kept for the width that actually needs it */
@media (max-width:900px){
  .bar .cta{ width:38px; padding:0; gap:0; justify-content:center;
    background:color-mix(in srgb, var(--pri) 14%, transparent) }
  .bar .cta span[data-txt]{ position:absolute; width:1px; height:1px;
    overflow:hidden; clip-path:inset(50%) }
}
