From f340dfa117b9433cf30f1376b59ec87186272cf9 Mon Sep 17 00:00:00 2001 From: Samir Date: Sun, 9 Aug 2026 12:44:01 -0400 Subject: [PATCH] Add default Structured KPI grid I really like the way our venture KPIs - can you push that to Structured as the default KPIs for Structured Liquidity --- .agents/skills/structured-liquidity/SKILL.md | 6 ++ .../structured-liquidity/public/r/kpi.json | 23 ++++++ .../public/r/structured-liquidity.json | 2 +- .../structured-liquidity/public/registry.json | 6 ++ .../public/structured-liquidity-kit.css | 25 +++++++ .../structured-liquidity/src/catalog.json | 16 ++++ .../components/site/kit/KitDataDisplay.tsx | 40 +++++++++- .../src/components/ui/kpi.tsx | 73 +++++++++++++++++++ .../src/styles/40-inline.css | 22 ++++++ 9 files changed, 211 insertions(+), 2 deletions(-) create mode 100644 artifacts/structured-liquidity/public/r/kpi.json create mode 100644 artifacts/structured-liquidity/src/components/ui/kpi.tsx diff --git a/.agents/skills/structured-liquidity/SKILL.md b/.agents/skills/structured-liquidity/SKILL.md index 9ce085d..c779bc8 100644 --- a/.agents/skills/structured-liquidity/SKILL.md +++ b/.agents/skills/structured-liquidity/SKILL.md @@ -63,6 +63,12 @@ npx shadcn@latest add https://structured-liquidity.replit.app/r/button.json Each `registry:ui` item is a plain React component (no Radix) that emits the SL classes and declares the base style as a `registryDependency`, so the CSS comes along. The registry index lives at `/registry.json`. +For application KPI surfaces, install `kpi.json` and use `KpiGrid` with +`KpiCard`. This is the default Structured Liquidity metric pattern: square +accent cards, mono labels, optional definition tooltips and comparison badges, +plus explicit loading and unavailable states. Applications supply audited +values; the component must never invent a hard-coded fallback metric. + **B. Any stack (plain HTML/CSS).** Include `structured-liquidity.css`, `structured-liquidity-components.css`, `structured-liquidity-kit.css`, and `structured-liquidity-kit.js`; load the three font families; then use the SL classes directly. Core kit: `sl-btn`, `sl-badge`, `sl-toggle`/`sl-toggle-group`, `sl-switch`, `sl-check`, `sl-radio-item` (inside a `[data-radio-group]`), `sl-input`/`sl-label`, `sl-slider`, `sl-progress`, `sl-ava`, `sl-tabs` (`.tablist` buttons + `.panel` nodes), and overlays (`sl-overlay` + `sl-dialog`/`sl-sheet`). In plain HTML, interactive components are wired by `structured-liquidity-kit.js` via `data-toggle-aria`, `data-toggle-group`, `data-radio-group`, `data-open-overlay`, `data-close-overlay`. ## Anatomy of a rigid container holding glass diff --git a/artifacts/structured-liquidity/public/r/kpi.json b/artifacts/structured-liquidity/public/r/kpi.json new file mode 100644 index 0000000..fe76879 --- /dev/null +++ b/artifacts/structured-liquidity/public/r/kpi.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://ui.shadcn.com/schema/registry-item.json", + "name": "kpi", + "type": "registry:ui", + "title": "Kpi", + "description": "Structured Liquidity Kpi — React component driving the SL class system.", + "dependencies": [ + "lucide-react" + ], + "registryDependencies": [ + "https://structured.glass/r/structured-liquidity.json", + "https://structured.glass/r/tooltip.json", + "utils" + ], + "files": [ + { + "path": "registry/ui/kpi.tsx", + "content": "import * as React from \"react\";\nimport { ArrowDownRight, ArrowUpRight, Info, Minus } from \"lucide-react\";\n\nimport { Tooltip } from \"@/components/ui/tooltip\";\nimport { cn } from \"@/lib/utils\";\n\nexport function KpiGrid({ className, ...props }: React.HTMLAttributes) {\n return
;\n}\n\nexport interface KpiCardProps extends Omit, \"title\"> {\n change?: React.ReactNode;\n description?: React.ReactNode;\n direction?: \"down\" | \"flat\" | \"up\";\n label: React.ReactNode;\n loading?: boolean;\n unavailableLabel?: React.ReactNode;\n value?: React.ReactNode;\n variant?: \"benchmark\" | \"default\";\n}\n\n/**\n * Default Structured Liquidity KPI card.\n *\n * Data is supplied by the adopter. Missing data renders an explicit unavailable\n * state; the component never invents a fallback metric.\n */\nexport function KpiCard({\n change,\n className,\n description,\n direction = \"flat\",\n label,\n loading = false,\n unavailableLabel = \"N/A\",\n value,\n variant = \"default\",\n ...props\n}: KpiCardProps) {\n const unavailable = !loading && (value === null || value === undefined);\n const DirectionIcon =\n direction === \"up\" ? ArrowUpRight : direction === \"down\" ? ArrowDownRight : Minus;\n\n return (\n \n
\n {label}\n {description ? (\n \n \n \n ) : null}\n
\n
\n \n {loading ? : unavailable ? unavailableLabel : value}\n \n {!loading && !unavailable && change ? (\n \n \n {change}\n \n ) : null}\n
\n
\n );\n}\n", + "type": "registry:ui", + "target": "components/ui/kpi.tsx" + } + ] +} diff --git a/artifacts/structured-liquidity/public/r/structured-liquidity.json b/artifacts/structured-liquidity/public/r/structured-liquidity.json index 3292039..bbb83c5 100644 --- a/artifacts/structured-liquidity/public/r/structured-liquidity.json +++ b/artifacts/structured-liquidity/public/r/structured-liquidity.json @@ -52,7 +52,7 @@ }, { "path": "registry/styles/structured-liquidity-kit.css", - "content": "/* ============================================================\n STRUCTURED LIQUIDITY — component KIT\n A shadcn-complete library expressed in the design language:\n rigid containers (sharp edges, flat offset shadows, real\n borders) holding viscous glass surfaces, with one accent\n carrying every emphasis.\n ============================================================ */\n\n/* ---- gallery scaffold ---- */\n.kit-groups { display: flex; flex-direction: column; gap: 2.2rem; }\n.kit-group > .kit-group-head { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 1rem; }\n.kit-group-head .kg-name { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }\n.kit-group-head .kg-rule { flex: 1; height: 2px; background: rgba(var(--edge),0.25); }\n.kit-group-head .kg-count { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-dim); }\n\n.kit-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }\n.kit-cell { padding: 1.2rem 1.25rem; display: flex; flex-direction: column; gap: 0.95rem; grid-column: span 4; min-width: 0; }\n.kit-cell.w6 { grid-column: span 6; }\n.kit-cell.w8 { grid-column: span 8; }\n.kit-cell.w12 { grid-column: span 12; }\n@media (max-width: 900px) { .kit-cell, .kit-cell.w6, .kit-cell.w8 { grid-column: span 6; } .kit-cell.w12 { grid-column: span 12; } }\n@media (max-width: 600px) { .kit-cell, .kit-cell.w6, .kit-cell.w8, .kit-cell.w12 { grid-column: span 12; } }\n.kit-cap { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); display: flex; align-items: center; gap: 0.5rem; }\n.kit-cap::before { content: \"\"; width: 7px; height: 7px; background: var(--accent); flex: none; }\n.kit-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }\n.kit-col { display: flex; flex-direction: column; gap: 0.7rem; }\n.kit-demo { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }\n\n/* glass + flat helpers reused locally */\n.sl-glass-fill {\n background: linear-gradient(135deg, rgba(var(--glass-tint),0.12), rgba(var(--glass-tint),0.04));\n backdrop-filter: blur(10px) saturate(170%); -webkit-backdrop-filter: blur(10px) saturate(170%);\n}\n\n/* ============================================================\n BUTTONS — full variant matrix\n ============================================================ */\n.sl-btn {\n font-family: var(--display); font-weight: 700; font-size: 0.85rem; line-height: 1;\n padding: 0.6rem 1rem; border-radius: var(--radius); cursor: pointer;\n display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;\n border: var(--border-w) solid rgb(var(--edge)); color: var(--ink); text-decoration: none;\n transition: transform 0.12s cubic-bezier(.2,.8,.2,1), box-shadow 0.12s; white-space: nowrap;\n}\n.sl-btn.default { background: var(--accent); color: var(--accent-ink); box-shadow: 4px 4px 0 0 var(--hard-shadow); }\n.sl-btn.secondary { background: linear-gradient(135deg, rgba(var(--glass-tint),0.14), rgba(var(--glass-tint),0.05)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 4px 4px 0 0 var(--hard-shadow); }\n.sl-btn.outline { background: transparent; box-shadow: 4px 4px 0 0 var(--hard-shadow); }\n.sl-btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-dim); }\n.sl-btn.ghost:hover { color: var(--ink); background: rgba(var(--glass-tint),0.08); transform: none; }\n.sl-btn.destructive { background: var(--neg); color: var(--neg-ink); box-shadow: 4px 4px 0 0 var(--hard-shadow); }\n.sl-btn.link { border-color: transparent; box-shadow: none; background: none; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; padding: 0.6rem 0.2rem; }\n.sl-btn.link:hover { transform: none; }\n.sl-btn.icon { padding: 0.55rem; width: 38px; height: 38px; }\n.sl-btn.sm { padding: 0.4rem 0.7rem; font-size: 0.76rem; }\n.sl-btn.lg { padding: 0.8rem 1.3rem; font-size: 0.95rem; }\n.sl-btn:not(.ghost):not(.link):hover, .sl-btn:not(.ghost):not(.link):active { transform: translate(4px, 4px); box-shadow: 0 0 0 0 var(--hard-shadow); }\n.sl-btn[disabled] { opacity: 0.4; pointer-events: none; }\n.sl-spinner { width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sl-spin 0.7s linear infinite; }\n@keyframes sl-spin { to { transform: rotate(360deg); } }\n\n/* ============================================================\n BADGE\n ============================================================ */\n.sl-badge { font-family: var(--mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.28rem 0.55rem; border-radius: var(--radius); border: 1.5px solid rgb(var(--edge)); display: inline-flex; align-items: center; gap: 0.35rem; }\n.sl-badge.default { background: var(--accent); color: var(--accent-ink); }\n.sl-badge.secondary { background: rgba(var(--glass-tint),0.1); color: var(--ink); }\n.sl-badge.outline { background: transparent; color: var(--ink-dim); }\n.sl-badge.destructive { background: var(--neg); color: var(--neg-ink); border-color: rgb(var(--edge)); }\n.sl-badge .ico { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }\n\n/* ============================================================\n INPUT / LABEL / TEXTAREA / OTP\n ============================================================ */\n.sl-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }\n.sl-input, .sl-textarea {\n font-family: var(--mono); font-size: 0.82rem; color: var(--ink); width: 100%;\n padding: 0.6rem 0.8rem; border-radius: var(--radius); border: var(--border-w) solid rgb(var(--edge));\n background: linear-gradient(135deg, rgba(var(--glass-tint),0.1), rgba(var(--glass-tint),0.03));\n backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);\n box-shadow: inset 0 1px 0 rgba(255,255,255,0.25); outline: none;\n}\n.sl-textarea { min-height: 76px; resize: vertical; line-height: 1.5; }\n.sl-input::placeholder, .sl-textarea::placeholder { color: var(--ink-dim); }\n.sl-input:focus, .sl-textarea:focus { box-shadow: 3px 3px 0 0 var(--accent), inset 0 1px 0 rgba(255,255,255,0.25); }\n.sl-otp { display: flex; gap: 0.5rem; }\n.sl-otp input { width: 42px; height: 48px; text-align: center; font-family: var(--mono); font-size: 1.1rem; font-weight: 700; color: var(--ink); border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius); background: rgba(var(--glass-tint),0.06); outline: none; box-shadow: 2px 2px 0 0 var(--hard-shadow); }\n.sl-otp input:focus { box-shadow: 2px 2px 0 0 var(--accent); }\n\n/* ============================================================\n CHECKBOX / RADIO / SWITCH / TOGGLE\n ============================================================ */\n.sl-check, .sl-radio-item { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; font-size: 0.85rem; }\n.sl-box { width: 20px; height: 20px; flex: none; border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius); background: rgba(var(--glass-tint),0.06); box-shadow: 2px 2px 0 0 var(--hard-shadow); display: grid; place-items: center; transition: background 0.15s; }\n.sl-check[aria-checked=\"true\"] .sl-box { background: var(--accent); }\n.sl-box .tick { width: 11px; height: 11px; color: var(--accent-ink); opacity: 0; }\n.sl-check[aria-checked=\"true\"] .sl-box .tick { opacity: 1; }\n.sl-radio { width: 20px; height: 20px; flex: none; border: var(--border-w) solid rgb(var(--edge)); border-radius: 50%; background: rgba(var(--glass-tint),0.06); box-shadow: 2px 2px 0 0 var(--hard-shadow); display: grid; place-items: center; }\n.sl-radio .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); opacity: 0; }\n.sl-radio-item[aria-checked=\"true\"] .sl-radio .dot { opacity: 1; }\n.sl-switch { width: 46px; height: 26px; border-radius: var(--radius); border: var(--border-w) solid rgb(var(--edge)); position: relative; cursor: pointer; background: rgba(var(--glass-tint),0.1); box-shadow: 2px 2px 0 0 var(--hard-shadow); transition: background 0.2s; flex: none; }\n.sl-switch .knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: calc(var(--radius) * 0.6); background: rgb(var(--edge)); transition: transform 0.2s cubic-bezier(.3,1.4,.5,1); }\n.sl-switch[aria-checked=\"true\"] { background: var(--accent); }\n.sl-switch[aria-checked=\"true\"] .knob { transform: translateX(20px); background: var(--accent-ink); }\n.sl-toggle { font-family: var(--mono); font-size: 0.8rem; padding: 0.45rem 0.7rem; border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius); background: rgba(var(--glass-tint),0.06); color: var(--ink-dim); cursor: pointer; box-shadow: 2px 2px 0 0 var(--hard-shadow); }\n.sl-toggle[aria-pressed=\"true\"] { background: var(--accent); color: var(--accent-ink); }\n.sl-toggle-group { display: inline-flex; gap: 0; border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius); overflow: hidden; box-shadow: 2px 2px 0 0 var(--hard-shadow); }\n.sl-toggle-group button { font-family: var(--mono); font-size: 0.8rem; padding: 0.45rem 0.7rem; border: none; border-left: 1px solid rgba(var(--edge),0.3); background: rgba(var(--glass-tint),0.05); color: var(--ink-dim); cursor: pointer; display: grid; place-items: center; }\n.sl-toggle-group button:first-child { border-left: none; }\n.sl-toggle-group button[aria-pressed=\"true\"] { background: var(--accent); color: var(--accent-ink); }\n\n/* ============================================================\n SLIDER / PROGRESS\n ============================================================ */\n.sl-slider { width: 100%; height: 26px; display: flex; align-items: center; }\n.sl-slider .trk { flex: 1; height: 8px; border-radius: var(--radius); border: 2px solid rgb(var(--edge)); position: relative; background: rgba(var(--glass-tint),0.06); cursor: pointer; }\n.sl-slider .fl { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); }\n.sl-slider .th { position: absolute; top: 50%; transform: translate(-50%,-50%); width: 18px; height: 18px; border-radius: var(--radius); background: rgb(var(--edge)); box-shadow: 2px 2px 0 var(--hard-shadow); }\n.sl-progress { width: 100%; height: 14px; border: 2px solid rgb(var(--edge)); border-radius: var(--radius); background: rgba(var(--glass-tint),0.06); overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,0.2); }\n.sl-progress > span { display: block; height: 100%; background: var(--accent); background-image: linear-gradient(135deg, rgba(255,255,255,0.25) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0.25) 75%, transparent 75%); background-size: 16px 16px; transition: width 0.4s; }\n\n/* ============================================================\n SELECT / DROPDOWN / COMBOBOX / COMMAND\n ============================================================ */\n.sl-pop-wrap { position: relative; }\n.sl-trigger {\n font-family: var(--mono); font-size: 0.82rem; color: var(--ink); cursor: pointer;\n padding: 0.55rem 0.8rem; border-radius: var(--radius); border: var(--border-w) solid rgb(var(--edge));\n background: linear-gradient(135deg, rgba(var(--glass-tint),0.12), rgba(var(--glass-tint),0.04));\n backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);\n box-shadow: 2px 2px 0 0 var(--hard-shadow); display: inline-flex; align-items: center; justify-content: space-between; gap: 0.7rem; min-width: 160px;\n}\n.sl-trigger .chev { transition: transform 0.2s; color: var(--ink-dim); }\n.sl-trigger[aria-expanded=\"true\"] .chev { transform: rotate(180deg); }\n.sl-menu {\n position: absolute; top: calc(100% + 8px); left: 0; min-width: 200px; z-index: 30;\n border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius);\n background: var(--bg-2);\n backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%);\n box-shadow: 6px 6px 0 0 var(--hard-shadow); padding: 0.35rem;\n opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: top left; pointer-events: none;\n transition: opacity 0.15s, transform 0.15s;\n}\n.sl-menu.open { opacity: 1; transform: none; pointer-events: auto; }\n/* each .glass cell is its own stacking context (backdrop-filter), so an open\n menu would otherwise be painted under later sibling cells — lift the host */\n.kit-cell:has(.sl-menu.open),\n.kit-cell:has(.sl-trigger[aria-expanded=\"true\"]),\n.kit-cell:has([data-pop][aria-expanded=\"true\"]) { z-index: 40; }\n.sl-menu .item { font-family: var(--mono); font-size: 0.8rem; padding: 0.5rem 0.6rem; border-radius: calc(var(--radius) * 0.6); color: var(--ink); cursor: pointer; display: flex; align-items: center; gap: 0.55rem; }\n.sl-menu .item:hover, .sl-menu .item.active { background: var(--accent); color: var(--accent-ink); }\n.sl-menu .item .k { margin-left: auto; font-size: 0.7rem; opacity: 0.6; }\n.sl-menu .sep { height: 1px; background: rgba(var(--edge),0.2); margin: 0.3rem 0; }\n.sl-menu .lbl { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); padding: 0.4rem 0.6rem 0.2rem; }\n.sl-cmd-search { font-family: var(--mono); font-size: 0.8rem; color: var(--ink); width: 100%; padding: 0.5rem 0.6rem; border: none; border-bottom: 1.5px solid rgba(var(--edge),0.3); background: none; outline: none; margin-bottom: 0.3rem; }\n.sl-cmd-search::placeholder { color: var(--ink-dim); }\n\n/* ============================================================\n TABS\n ============================================================ */\n.sl-tabs .tablist { display: inline-flex; border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius); overflow: hidden; box-shadow: 2px 2px 0 0 var(--hard-shadow); }\n.sl-tabs .tablist button { font-family: var(--mono); font-size: 0.78rem; padding: 0.5rem 0.9rem; border: none; border-left: 1px solid rgba(var(--edge),0.3); background: rgba(var(--glass-tint),0.05); color: var(--ink-dim); cursor: pointer; }\n.sl-tabs .tablist button:first-child { border-left: none; }\n.sl-tabs .tablist button[aria-selected=\"true\"] { background: var(--accent); color: var(--accent-ink); }\n.sl-tabs .panel { display: none; padding-top: 0.9rem; font-size: 0.88rem; color: var(--ink-dim); }\n.sl-tabs .panel.show { display: block; }\n\n/* ============================================================\n ACCORDION\n ============================================================ */\n.sl-acc-item { border-bottom: 1px solid rgba(var(--edge),0.18); }\n.sl-acc-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; cursor: pointer; font-weight: 700; font-size: 0.92rem; font-family: var(--display); }\n.sl-acc-head .pm { width: 16px; height: 16px; position: relative; flex: none; }\n.sl-acc-head .pm::before, .sl-acc-head .pm::after { content: \"\"; position: absolute; background: var(--accent); transition: transform 0.2s; }\n.sl-acc-head .pm::before { left: 0; right: 0; top: 7px; height: 2px; }\n.sl-acc-head .pm::after { top: 0; bottom: 0; left: 7px; width: 2px; }\n.sl-acc-item.open .pm::after { transform: scaleY(0); }\n.sl-acc-body { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }\n.sl-acc-body > p { padding: 0 0 0.9rem; margin: 0; font-size: 0.85rem; color: var(--ink-dim); }\n\n/* ============================================================\n AVATAR\n ============================================================ */\n.sl-ava { width: 40px; height: 40px; border-radius: var(--radius); border: var(--border-w) solid rgb(var(--edge)); overflow: hidden; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 0.85rem; box-shadow: 2px 2px 0 0 var(--hard-shadow); background: var(--accent); color: var(--accent-ink); flex: none; }\n.sl-ava img { width: 100%; height: 100%; object-fit: cover; }\n.sl-ava-group { display: flex; }\n.sl-ava-group .sl-ava { margin-left: -10px; box-shadow: 2px 2px 0 0 var(--hard-shadow); }\n.sl-ava-group .sl-ava:first-child { margin-left: 0; }\n\n/* ============================================================\n ALERT\n ============================================================ */\n.sl-alert { display: flex; gap: 0.8rem; padding: 0.9rem 1rem; border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius); border-left-width: 6px; background: rgba(var(--glass-tint),0.06); }\n.sl-alert.destructive { border-left-color: var(--neg); }\n.sl-alert .ai { flex: none; width: 20px; height: 20px; color: var(--accent); }\n.sl-alert.destructive .ai { color: var(--ink); }\n.sl-alert .at { font-weight: 700; font-size: 0.9rem; margin: 0 0 0.2rem; }\n.sl-alert .ad { font-size: 0.82rem; color: var(--ink-dim); margin: 0; }\n\n/* ============================================================\n TABLE\n ============================================================ */\n.sl-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }\n.sl-table th { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); text-align: left; padding: 0.55rem 0.7rem; border-bottom: 2px solid rgb(var(--edge)); }\n.sl-table td { padding: 0.6rem 0.7rem; border-bottom: 1px solid rgba(var(--edge),0.15); }\n.sl-table tr:last-child td { border-bottom: none; }\n.sl-table tbody tr:hover { background: rgba(var(--glass-tint),0.05); }\n\n/* ============================================================\n SKELETON\n ============================================================ */\n.sl-skel { background: linear-gradient(90deg, rgba(var(--glass-tint),0.06) 25%, rgba(var(--glass-tint),0.16) 37%, rgba(var(--glass-tint),0.06) 63%); background-size: 400% 100%; animation: sl-shimmer 1.4s ease infinite; border-radius: var(--radius); border: 1px solid rgba(var(--edge),0.18); }\n@keyframes sl-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }\n@media (prefers-reduced-motion: reduce) { .sl-skel { animation: none; } }\n\n/* ============================================================\n TOOLTIP / HOVER CARD\n ============================================================ */\n.sl-tip-wrap { position: relative; display: inline-flex; }\n.sl-tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px); white-space: nowrap; font-family: var(--mono); font-size: 0.72rem; padding: 0.4rem 0.6rem; background: var(--bg-2); border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius); box-shadow: 3px 3px 0 0 var(--hard-shadow); opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s; z-index: 20; }\n.sl-tip-wrap:hover .sl-tip { opacity: 1; transform: translateX(-50%); }\n.sl-hover-card { position: absolute; top: calc(100% + 8px); left: 0; width: 240px; padding: 1rem; background: var(--bg-2); border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius); box-shadow: 6px 6px 0 0 var(--hard-shadow); opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity 0.18s, transform 0.18s; z-index: 20; }\n.sl-tip-wrap:hover .sl-hover-card { opacity: 1; transform: none; }\n\n/* ============================================================\n SEPARATOR\n ============================================================ */\n.sl-sep { height: 2px; background: rgba(var(--edge),0.25); border: none; width: 100%; }\n.sl-sep.v { width: 2px; height: 28px; }\n\n/* ============================================================\n BREADCRUMB / PAGINATION / MENUBAR\n ============================================================ */\n.sl-crumb { display: flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.78rem; flex-wrap: wrap; }\n.sl-crumb a { color: var(--ink-dim); text-decoration: none; }\n.sl-crumb a:hover { color: var(--ink); }\n.sl-crumb .sl-cur { color: var(--accent); }\n.sl-crumb .sl-sl { color: var(--ink-dim); opacity: 0.5; }\n.sl-page { display: flex; gap: 0.4rem; }\n.sl-page button { width: 36px; height: 36px; font-family: var(--mono); font-size: 0.8rem; border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius); background: rgba(var(--glass-tint),0.06); color: var(--ink); cursor: pointer; box-shadow: 2px 2px 0 0 var(--hard-shadow); }\n.sl-page button.cur { background: var(--accent); color: var(--accent-ink); }\n.sl-page button[disabled] { opacity: 0.35; pointer-events: none; }\n.sl-menubar { display: inline-flex; border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius); box-shadow: 2px 2px 0 0 var(--hard-shadow); overflow: hidden; }\n.sl-menubar > button { font-family: var(--mono); font-size: 0.78rem; padding: 0.45rem 0.8rem; border: none; border-left: 1px solid rgba(var(--edge),0.25); background: rgba(var(--glass-tint),0.05); color: var(--ink-dim); cursor: pointer; }\n.sl-menubar > button:first-child { border-left: none; }\n.sl-menubar > button:hover { background: var(--accent); color: var(--accent-ink); }\n\n/* ============================================================\n CALENDAR / DATE\n ============================================================ */\n.sl-cal { width: 100%; }\n.sl-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; font-family: var(--mono); font-size: 0.82rem; }\n.sl-cal-head button { width: 28px; height: 28px; border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius); background: rgba(var(--glass-tint),0.06); color: var(--ink); cursor: pointer; }\n.sl-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }\n.sl-cal-grid .dow { font-family: var(--mono); font-size: 0.6rem; color: var(--ink-dim); text-align: center; padding-bottom: 0.3rem; text-transform: uppercase; }\n.sl-cal-grid .day { aspect-ratio: 1; display: grid; place-items: center; font-family: var(--mono); font-size: 0.74rem; border-radius: var(--radius); cursor: pointer; color: var(--ink); }\n.sl-cal-grid .day:hover { background: rgba(var(--glass-tint),0.12); }\n.sl-cal-grid .day.muted { color: var(--ink-dim); opacity: 0.4; }\n.sl-cal-grid .day.sel { background: var(--accent); color: var(--accent-ink); border: 2px solid rgb(var(--edge)); }\n\n/* ============================================================\n ASPECT RATIO / CARD\n ============================================================ */\n.sl-ratio { width: 100%; aspect-ratio: 16 / 9; border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 40%, transparent), rgba(var(--glass-tint),0.06)); display: grid; place-items: center; font-family: var(--mono); font-size: 0.68rem; color: var(--ink-dim); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25); }\n.sl-card-demo { border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius); box-shadow: 4px 4px 0 0 var(--hard-shadow); overflow: hidden; background: rgba(var(--glass-tint),0.05); }\n.sl-card-demo .cd-media { aspect-ratio: 16/8; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 55%, transparent), rgba(var(--glass-tint),0.1)); border-bottom: var(--border-w) solid rgb(var(--edge)); }\n.sl-card-demo .cd-body { padding: 0.9rem 1rem; }\n.sl-card-demo .cd-body h4 { margin: 0 0 0.3rem; font-size: 1rem; }\n.sl-card-demo .cd-body p { margin: 0 0 0.8rem; font-size: 0.82rem; color: var(--ink-dim); }\n\n/* ============================================================\n OVERLAYS — dialog / sheet / popover backdrop\n ============================================================ */\n.sl-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity 0.2s; }\n.sl-overlay.open { opacity: 1; pointer-events: auto; }\n.sl-dialog { width: min(440px, 92vw); padding: 1.6rem; background: var(--bg-2); border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius); box-shadow: 10px 10px 0 0 var(--hard-shadow); transform: translateY(10px) scale(0.97); transition: transform 0.22s cubic-bezier(.2,.9,.2,1); }\n.sl-overlay.open .sl-dialog { transform: none; }\n.sl-dialog h3 { font-size: 1.3rem; margin: 0 0 0.5rem; }\n.sl-dialog p { color: var(--ink-dim); font-size: 0.9rem; margin: 0 0 1.3rem; }\n.sl-dialog .actions { display: flex; gap: 0.7rem; justify-content: flex-end; }\n.sl-sheet-overlay { justify-items: end; place-items: stretch; }\n.sl-sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 90vw); padding: 1.6rem; background: var(--bg-2); border-left: var(--border-w) solid rgb(var(--edge)); box-shadow: -10px 0 0 0 rgba(0,0,0,0.2); transform: translateX(100%); transition: transform 0.28s cubic-bezier(.2,.9,.2,1); }\n.sl-sheet-overlay.open .sl-sheet { transform: none; }\n.sl-sheet h3 { margin: 0 0 0.4rem; font-size: 1.2rem; }\n.sl-sheet p { color: var(--ink-dim); font-size: 0.86rem; }\n\n/* ============================================================\n TOAST\n ============================================================ */\n.sl-toast-stack { position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 300; width: 300px; height: 0; }\n.sl-toast {\n position: absolute; bottom: 0; right: 0; width: 100%; box-sizing: border-box;\n padding: 0.85rem 1rem; background: var(--bg-2);\n border: var(--border-w) solid rgb(var(--edge)); border-left: 6px solid var(--accent);\n border-radius: var(--radius); box-shadow: 5px 5px 0 0 var(--hard-shadow);\n display: flex; gap: 0.7rem; align-items: flex-start;\n --y: 0px; --s: 1;\n transform: translateX(125%);\n transform-origin: bottom right;\n transition: transform 0.4s cubic-bezier(.2,.9,.2,1), opacity 0.3s ease;\n}\n.sl-toast.show { transform: translateY(var(--y)) scale(var(--s)); }\n.sl-toast .tt { font-weight: 700; font-size: 0.86rem; margin: 0 0 0.15rem; }\n.sl-toast .td { font-size: 0.78rem; color: var(--ink-dim); margin: 0; }\n\n/* ============================================================\n SHOWCASE — real products built on the system\n ============================================================ */\n.show-feature { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.4rem; padding: 1.4rem; align-items: center; }\n@media (max-width: 760px) { .show-feature { grid-template-columns: 1fr; } }\n.show-browser { border: var(--border-w) solid rgb(var(--edge)); box-shadow: 6px 6px 0 0 var(--hard-shadow); overflow: hidden; background: var(--bg-2); }\n.browser-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.7rem; border-bottom: var(--border-w) solid rgb(var(--edge)); background: rgba(var(--glass-tint),0.06); }\n.browser-bar .tl { width: 11px; height: 11px; border: 1.5px solid rgb(var(--edge)); background: rgba(var(--glass-tint),0.15); flex: none; }\n.browser-bar .url { margin-left: 0.6rem; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-dim); padding: 0.2rem 0.7rem; border: 1.5px solid rgba(var(--edge),0.4); flex: 1; background: rgba(var(--glass-tint),0.04); }\n.browser-shot { display: block; width: 100%; aspect-ratio: 16 / 10; }\n.show-meta { display: flex; flex-direction: column; gap: 1rem; }\n.show-name { font-weight: 700; }\n\n/* ============================================================\n SITE PATTERNS — distilled from production SL consumers\n ============================================================ */\n.sl-attribution {\n font-family: var(--mono);\n font-size: 0.72rem;\n color: var(--ink-dim);\n}\n.sl-attribution a {\n color: var(--ink);\n text-decoration: none;\n border-bottom: 1px solid var(--accent);\n}\n.sl-attribution a:hover { color: var(--accent); }\n\n.sl-timeline {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n.sl-timeline-item {\n position: relative;\n display: grid;\n grid-template-columns: 18px minmax(0, 1fr);\n gap: 0.85rem;\n padding: 0 0 1.15rem;\n}\n.sl-timeline-item:not(:last-child)::before {\n content: \"\";\n position: absolute;\n left: 7px;\n top: 16px;\n bottom: 0;\n width: 2px;\n background: rgb(var(--edge));\n}\n.sl-timeline-marker {\n position: relative;\n z-index: 1;\n width: 16px;\n height: 16px;\n border: var(--border-w) solid rgb(var(--edge));\n background: var(--accent);\n box-shadow: 2px 2px 0 0 var(--hard-shadow);\n}\n.sl-timeline-copy { min-width: 0; }\n.sl-timeline-date {\n display: block;\n margin-bottom: 0.2rem;\n font-family: var(--mono);\n font-size: 0.68rem;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n color: var(--ink-dim);\n}\n.sl-timeline-title { margin: 0; font-size: 1rem; }\n.sl-timeline-body { margin-top: 0.25rem; color: var(--ink-dim); font-size: 0.86rem; line-height: 1.45; }\n\n.sl-stepper {\n display: grid;\n grid-template-columns: repeat(var(--step-count, 3), minmax(0, 1fr));\n list-style: none;\n margin: 0;\n padding: 0;\n}\n.sl-step {\n position: relative;\n display: flex;\n align-items: flex-start;\n gap: 0.55rem;\n min-width: 0;\n}\n.sl-step:not(:last-child)::after {\n content: \"\";\n position: absolute;\n left: 30px;\n right: 6px;\n top: 13px;\n height: 2px;\n background: rgb(var(--edge));\n}\n.sl-step-marker {\n position: relative;\n z-index: 1;\n display: grid;\n place-items: center;\n width: 28px;\n height: 28px;\n flex: none;\n border: var(--border-w) solid rgb(var(--edge));\n background: var(--bg-2);\n color: var(--ink);\n font-family: var(--mono);\n font-size: 0.68rem;\n box-shadow: 2px 2px 0 0 var(--hard-shadow);\n}\n.sl-step-marker svg { width: 14px; height: 14px; }\n.sl-step[data-status=\"complete\"] .sl-step-marker,\n.sl-step[data-status=\"current\"] .sl-step-marker { background: var(--accent); color: var(--accent-ink); }\n.sl-step-copy { display: flex; flex-direction: column; min-width: 0; padding-top: 0.1rem; }\n.sl-step-copy strong { font-size: 0.78rem; }\n.sl-step-copy > span { font-family: var(--mono); font-size: 0.62rem; color: var(--ink-dim); }\n@media (max-width: 640px) {\n .sl-stepper { grid-template-columns: 1fr; gap: 0.75rem; }\n .sl-step:not(:last-child)::after { left: 13px; right: auto; top: 29px; bottom: -12px; width: 2px; height: auto; }\n}\n\n.sl-filter-toolbar {\n display: flex;\n align-items: end;\n flex-wrap: wrap;\n gap: 0.7rem;\n padding: 0.8rem;\n border: var(--border-w) solid rgb(var(--edge));\n background: rgba(var(--glass-tint), var(--glass-alpha));\n box-shadow: 4px 4px 0 0 var(--hard-shadow);\n}\n.sl-filter-group { display: flex; align-items: end; flex-wrap: wrap; gap: 0.55rem; min-width: 0; }\n.sl-filter-summary { margin-left: auto; font-family: var(--mono); font-size: 0.68rem; color: var(--ink-dim); white-space: nowrap; }\n@media (max-width: 640px) { .sl-filter-summary { width: 100%; margin-left: 0; } }\n\n/* Field-sourced from the recurring command/intake surfaces in Dropship and Observatory. */\n.sl-omnibar {\n display: grid;\n gap: 0.45rem;\n width: 100%;\n padding: 0.5rem;\n border: var(--border-w) solid rgb(var(--edge));\n background: rgba(var(--glass-tint), var(--glass-alpha));\n backdrop-filter: blur(var(--glass-blur)) saturate(150%);\n box-shadow: 5px 5px 0 0 var(--hard-shadow);\n}\n.sl-omnibar-attachments { display: flex; flex-wrap: wrap; gap: 0.35rem; }\n.sl-omnibar-attachment {\n display: inline-flex;\n align-items: center;\n gap: 0.35rem;\n padding: 0.25rem 0.4rem;\n border: 1.5px solid rgb(var(--edge));\n background: rgb(var(--glass-tint) / 0.08);\n font-family: var(--mono);\n font-size: 0.62rem;\n color: var(--ink-dim);\n}\n.sl-omnibar-attachment button {\n display: grid;\n place-items: center;\n padding: 0;\n border: 0;\n background: transparent;\n color: inherit;\n cursor: pointer;\n}\n.sl-omnibar-attachment svg { width: 12px; height: 12px; }\n.sl-omnibar-row { display: flex; align-items: center; gap: 0.35rem; min-width: 0; }\n.sl-omnibar-input {\n flex: 1;\n min-width: 0;\n border: 0;\n outline: 0;\n background: transparent;\n color: var(--ink);\n font: 0.84rem var(--body);\n}\n.sl-omnibar-input::placeholder { color: var(--ink-dim); }\n.sl-omnibar-icon,\n.sl-omnibar-submit {\n width: 34px;\n height: 34px;\n flex: none;\n display: grid;\n place-items: center;\n border: var(--border-w) solid rgb(var(--edge));\n color: var(--ink);\n background: rgb(var(--glass-tint) / 0.06);\n cursor: pointer;\n}\n.sl-omnibar-icon svg,\n.sl-omnibar-submit svg { width: 15px; height: 15px; }\n.sl-omnibar-submit { background: var(--accent); color: var(--accent-ink); box-shadow: 2px 2px 0 0 var(--hard-shadow); }\n.sl-omnibar-submit:active { transform: translate(2px, 2px); box-shadow: none; }\n.sl-omnibar-status {\n font-family: var(--mono);\n font-size: 0.58rem;\n text-transform: uppercase;\n letter-spacing: 0.08em;\n color: var(--accent);\n}\n@media (max-width: 560px) { .sl-omnibar-status { display: none; } }\n\n/* Field-sourced from the edge inspection surfaces in Cosmograph and Dropship. */\n.sl-detail-panel {\n display: flex;\n flex-direction: column;\n width: 100%;\n border: var(--border-w) solid rgb(var(--edge));\n background: rgba(var(--glass-tint), var(--glass-alpha));\n backdrop-filter: blur(var(--glass-blur)) saturate(150%);\n box-shadow: 5px 5px 0 0 var(--hard-shadow);\n}\n.sl-detail-panel-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 0.8rem;\n padding: 0.75rem 0.85rem;\n border-bottom: var(--border-w) solid rgb(var(--edge));\n}\n.sl-detail-panel-eyebrow {\n display: block;\n margin-bottom: 0.15rem;\n font-family: var(--mono);\n font-size: 0.58rem;\n text-transform: uppercase;\n letter-spacing: 0.1em;\n color: var(--accent);\n}\n.sl-detail-panel-title {\n margin: 0;\n font-family: var(--display);\n font-size: 1rem;\n line-height: 1.1;\n}\n.sl-detail-panel-body {\n padding: 0.85rem;\n color: var(--ink-dim);\n font-size: 0.82rem;\n line-height: 1.45;\n}\n.sl-detail-panel-footer {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n padding: 0.7rem 0.85rem;\n border-top: var(--border-w) solid rgb(var(--edge));\n}\n\n.sl-template { display: flex; min-height: 100%; flex-direction: column; gap: 1rem; }\n.sl-template > .sl-site-content { display: flex; flex: 1; flex-direction: column; gap: 1rem; }\n.sl-template-footer {\n margin-top: auto;\n padding-block: 1rem;\n border-top: var(--border-w) solid rgb(var(--edge));\n}\n.sl-template-guided > .sl-site-content {\n display: grid;\n grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);\n align-items: start;\n}\n.sl-template-immersive { min-height: 100dvh; }\n.sl-template-immersive > main { position: relative; flex: 1; overflow: hidden; }\n@media (max-width: 760px) { .sl-template-guided > .sl-site-content { grid-template-columns: 1fr; } }\n", + "content": "/* ============================================================\n STRUCTURED LIQUIDITY — component KIT\n A shadcn-complete library expressed in the design language:\n rigid containers (sharp edges, flat offset shadows, real\n borders) holding viscous glass surfaces, with one accent\n carrying every emphasis.\n ============================================================ */\n\n/* ---- gallery scaffold ---- */\n.kit-groups { display: flex; flex-direction: column; gap: 2.2rem; }\n.kit-group > .kit-group-head { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 1rem; }\n.kit-group-head .kg-name { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }\n.kit-group-head .kg-rule { flex: 1; height: 2px; background: rgba(var(--edge),0.25); }\n.kit-group-head .kg-count { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-dim); }\n\n.kit-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }\n.kit-cell { padding: 1.2rem 1.25rem; display: flex; flex-direction: column; gap: 0.95rem; grid-column: span 4; min-width: 0; }\n.kit-cell.w6 { grid-column: span 6; }\n.kit-cell.w8 { grid-column: span 8; }\n.kit-cell.w12 { grid-column: span 12; }\n@media (max-width: 900px) { .kit-cell, .kit-cell.w6, .kit-cell.w8 { grid-column: span 6; } .kit-cell.w12 { grid-column: span 12; } }\n@media (max-width: 600px) { .kit-cell, .kit-cell.w6, .kit-cell.w8, .kit-cell.w12 { grid-column: span 12; } }\n.kit-cap { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); display: flex; align-items: center; gap: 0.5rem; }\n.kit-cap::before { content: \"\"; width: 7px; height: 7px; background: var(--accent); flex: none; }\n.kit-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }\n.kit-col { display: flex; flex-direction: column; gap: 0.7rem; }\n.kit-demo { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }\n\n/* glass + flat helpers reused locally */\n.sl-glass-fill {\n background: linear-gradient(135deg, rgba(var(--glass-tint),0.12), rgba(var(--glass-tint),0.04));\n backdrop-filter: blur(10px) saturate(170%); -webkit-backdrop-filter: blur(10px) saturate(170%);\n}\n\n/* ============================================================\n BUTTONS — full variant matrix\n ============================================================ */\n.sl-btn {\n font-family: var(--display); font-weight: 700; font-size: 0.85rem; line-height: 1;\n padding: 0.6rem 1rem; border-radius: var(--radius); cursor: pointer;\n display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;\n border: var(--border-w) solid rgb(var(--edge)); color: var(--ink); text-decoration: none;\n transition: transform 0.12s cubic-bezier(.2,.8,.2,1), box-shadow 0.12s; white-space: nowrap;\n}\n.sl-btn.default { background: var(--accent); color: var(--accent-ink); box-shadow: 4px 4px 0 0 var(--hard-shadow); }\n.sl-btn.secondary { background: linear-gradient(135deg, rgba(var(--glass-tint),0.14), rgba(var(--glass-tint),0.05)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 4px 4px 0 0 var(--hard-shadow); }\n.sl-btn.outline { background: transparent; box-shadow: 4px 4px 0 0 var(--hard-shadow); }\n.sl-btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-dim); }\n.sl-btn.ghost:hover { color: var(--ink); background: rgba(var(--glass-tint),0.08); transform: none; }\n.sl-btn.destructive { background: var(--neg); color: var(--neg-ink); box-shadow: 4px 4px 0 0 var(--hard-shadow); }\n.sl-btn.link { border-color: transparent; box-shadow: none; background: none; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; padding: 0.6rem 0.2rem; }\n.sl-btn.link:hover { transform: none; }\n.sl-btn.icon { padding: 0.55rem; width: 38px; height: 38px; }\n.sl-btn.sm { padding: 0.4rem 0.7rem; font-size: 0.76rem; }\n.sl-btn.lg { padding: 0.8rem 1.3rem; font-size: 0.95rem; }\n.sl-btn:not(.ghost):not(.link):hover, .sl-btn:not(.ghost):not(.link):active { transform: translate(4px, 4px); box-shadow: 0 0 0 0 var(--hard-shadow); }\n.sl-btn[disabled] { opacity: 0.4; pointer-events: none; }\n.sl-spinner { width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sl-spin 0.7s linear infinite; }\n@keyframes sl-spin { to { transform: rotate(360deg); } }\n\n/* ============================================================\n BADGE\n ============================================================ */\n.sl-badge { font-family: var(--mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.28rem 0.55rem; border-radius: var(--radius); border: 1.5px solid rgb(var(--edge)); display: inline-flex; align-items: center; gap: 0.35rem; }\n.sl-badge.default { background: var(--accent); color: var(--accent-ink); }\n.sl-badge.secondary { background: rgba(var(--glass-tint),0.1); color: var(--ink); }\n.sl-badge.outline { background: transparent; color: var(--ink-dim); }\n.sl-badge.destructive { background: var(--neg); color: var(--neg-ink); border-color: rgb(var(--edge)); }\n.sl-badge .ico { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }\n\n/* ============================================================\n INPUT / LABEL / TEXTAREA / OTP\n ============================================================ */\n.sl-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }\n.sl-input, .sl-textarea {\n font-family: var(--mono); font-size: 0.82rem; color: var(--ink); width: 100%;\n padding: 0.6rem 0.8rem; border-radius: var(--radius); border: var(--border-w) solid rgb(var(--edge));\n background: linear-gradient(135deg, rgba(var(--glass-tint),0.1), rgba(var(--glass-tint),0.03));\n backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);\n box-shadow: inset 0 1px 0 rgba(255,255,255,0.25); outline: none;\n}\n.sl-textarea { min-height: 76px; resize: vertical; line-height: 1.5; }\n.sl-input::placeholder, .sl-textarea::placeholder { color: var(--ink-dim); }\n.sl-input:focus, .sl-textarea:focus { box-shadow: 3px 3px 0 0 var(--accent), inset 0 1px 0 rgba(255,255,255,0.25); }\n.sl-otp { display: flex; gap: 0.5rem; }\n.sl-otp input { width: 42px; height: 48px; text-align: center; font-family: var(--mono); font-size: 1.1rem; font-weight: 700; color: var(--ink); border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius); background: rgba(var(--glass-tint),0.06); outline: none; box-shadow: 2px 2px 0 0 var(--hard-shadow); }\n.sl-otp input:focus { box-shadow: 2px 2px 0 0 var(--accent); }\n\n/* ============================================================\n CHECKBOX / RADIO / SWITCH / TOGGLE\n ============================================================ */\n.sl-check, .sl-radio-item { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; font-size: 0.85rem; }\n.sl-box { width: 20px; height: 20px; flex: none; border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius); background: rgba(var(--glass-tint),0.06); box-shadow: 2px 2px 0 0 var(--hard-shadow); display: grid; place-items: center; transition: background 0.15s; }\n.sl-check[aria-checked=\"true\"] .sl-box { background: var(--accent); }\n.sl-box .tick { width: 11px; height: 11px; color: var(--accent-ink); opacity: 0; }\n.sl-check[aria-checked=\"true\"] .sl-box .tick { opacity: 1; }\n.sl-radio { width: 20px; height: 20px; flex: none; border: var(--border-w) solid rgb(var(--edge)); border-radius: 50%; background: rgba(var(--glass-tint),0.06); box-shadow: 2px 2px 0 0 var(--hard-shadow); display: grid; place-items: center; }\n.sl-radio .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); opacity: 0; }\n.sl-radio-item[aria-checked=\"true\"] .sl-radio .dot { opacity: 1; }\n.sl-switch { width: 46px; height: 26px; border-radius: var(--radius); border: var(--border-w) solid rgb(var(--edge)); position: relative; cursor: pointer; background: rgba(var(--glass-tint),0.1); box-shadow: 2px 2px 0 0 var(--hard-shadow); transition: background 0.2s; flex: none; }\n.sl-switch .knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: calc(var(--radius) * 0.6); background: rgb(var(--edge)); transition: transform 0.2s cubic-bezier(.3,1.4,.5,1); }\n.sl-switch[aria-checked=\"true\"] { background: var(--accent); }\n.sl-switch[aria-checked=\"true\"] .knob { transform: translateX(20px); background: var(--accent-ink); }\n.sl-toggle { font-family: var(--mono); font-size: 0.8rem; padding: 0.45rem 0.7rem; border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius); background: rgba(var(--glass-tint),0.06); color: var(--ink-dim); cursor: pointer; box-shadow: 2px 2px 0 0 var(--hard-shadow); }\n.sl-toggle[aria-pressed=\"true\"] { background: var(--accent); color: var(--accent-ink); }\n.sl-toggle-group { display: inline-flex; gap: 0; border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius); overflow: hidden; box-shadow: 2px 2px 0 0 var(--hard-shadow); }\n.sl-toggle-group button { font-family: var(--mono); font-size: 0.8rem; padding: 0.45rem 0.7rem; border: none; border-left: 1px solid rgba(var(--edge),0.3); background: rgba(var(--glass-tint),0.05); color: var(--ink-dim); cursor: pointer; display: grid; place-items: center; }\n.sl-toggle-group button:first-child { border-left: none; }\n.sl-toggle-group button[aria-pressed=\"true\"] { background: var(--accent); color: var(--accent-ink); }\n\n/* ============================================================\n SLIDER / PROGRESS\n ============================================================ */\n.sl-slider { width: 100%; height: 26px; display: flex; align-items: center; }\n.sl-slider .trk { flex: 1; height: 8px; border-radius: var(--radius); border: 2px solid rgb(var(--edge)); position: relative; background: rgba(var(--glass-tint),0.06); cursor: pointer; }\n.sl-slider .fl { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); }\n.sl-slider .th { position: absolute; top: 50%; transform: translate(-50%,-50%); width: 18px; height: 18px; border-radius: var(--radius); background: rgb(var(--edge)); box-shadow: 2px 2px 0 var(--hard-shadow); }\n.sl-progress { width: 100%; height: 14px; border: 2px solid rgb(var(--edge)); border-radius: var(--radius); background: rgba(var(--glass-tint),0.06); overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,0.2); }\n.sl-progress > span { display: block; height: 100%; background: var(--accent); background-image: linear-gradient(135deg, rgba(255,255,255,0.25) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0.25) 75%, transparent 75%); background-size: 16px 16px; transition: width 0.4s; }\n\n/* ============================================================\n SELECT / DROPDOWN / COMBOBOX / COMMAND\n ============================================================ */\n.sl-pop-wrap { position: relative; }\n.sl-trigger {\n font-family: var(--mono); font-size: 0.82rem; color: var(--ink); cursor: pointer;\n padding: 0.55rem 0.8rem; border-radius: var(--radius); border: var(--border-w) solid rgb(var(--edge));\n background: linear-gradient(135deg, rgba(var(--glass-tint),0.12), rgba(var(--glass-tint),0.04));\n backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);\n box-shadow: 2px 2px 0 0 var(--hard-shadow); display: inline-flex; align-items: center; justify-content: space-between; gap: 0.7rem; min-width: 160px;\n}\n.sl-trigger .chev { transition: transform 0.2s; color: var(--ink-dim); }\n.sl-trigger[aria-expanded=\"true\"] .chev { transform: rotate(180deg); }\n.sl-menu {\n position: absolute; top: calc(100% + 8px); left: 0; min-width: 200px; z-index: 30;\n border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius);\n background: var(--bg-2);\n backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%);\n box-shadow: 6px 6px 0 0 var(--hard-shadow); padding: 0.35rem;\n opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: top left; pointer-events: none;\n transition: opacity 0.15s, transform 0.15s;\n}\n.sl-menu.open { opacity: 1; transform: none; pointer-events: auto; }\n/* each .glass cell is its own stacking context (backdrop-filter), so an open\n menu would otherwise be painted under later sibling cells — lift the host */\n.kit-cell:has(.sl-menu.open),\n.kit-cell:has(.sl-trigger[aria-expanded=\"true\"]),\n.kit-cell:has([data-pop][aria-expanded=\"true\"]) { z-index: 40; }\n.sl-menu .item { font-family: var(--mono); font-size: 0.8rem; padding: 0.5rem 0.6rem; border-radius: calc(var(--radius) * 0.6); color: var(--ink); cursor: pointer; display: flex; align-items: center; gap: 0.55rem; }\n.sl-menu .item:hover, .sl-menu .item.active { background: var(--accent); color: var(--accent-ink); }\n.sl-menu .item .k { margin-left: auto; font-size: 0.7rem; opacity: 0.6; }\n.sl-menu .sep { height: 1px; background: rgba(var(--edge),0.2); margin: 0.3rem 0; }\n.sl-menu .lbl { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); padding: 0.4rem 0.6rem 0.2rem; }\n.sl-cmd-search { font-family: var(--mono); font-size: 0.8rem; color: var(--ink); width: 100%; padding: 0.5rem 0.6rem; border: none; border-bottom: 1.5px solid rgba(var(--edge),0.3); background: none; outline: none; margin-bottom: 0.3rem; }\n.sl-cmd-search::placeholder { color: var(--ink-dim); }\n\n/* ============================================================\n TABS\n ============================================================ */\n.sl-tabs .tablist { display: inline-flex; border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius); overflow: hidden; box-shadow: 2px 2px 0 0 var(--hard-shadow); }\n.sl-tabs .tablist button { font-family: var(--mono); font-size: 0.78rem; padding: 0.5rem 0.9rem; border: none; border-left: 1px solid rgba(var(--edge),0.3); background: rgba(var(--glass-tint),0.05); color: var(--ink-dim); cursor: pointer; }\n.sl-tabs .tablist button:first-child { border-left: none; }\n.sl-tabs .tablist button[aria-selected=\"true\"] { background: var(--accent); color: var(--accent-ink); }\n.sl-tabs .panel { display: none; padding-top: 0.9rem; font-size: 0.88rem; color: var(--ink-dim); }\n.sl-tabs .panel.show { display: block; }\n\n/* ============================================================\n ACCORDION\n ============================================================ */\n.sl-acc-item { border-bottom: 1px solid rgba(var(--edge),0.18); }\n.sl-acc-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; cursor: pointer; font-weight: 700; font-size: 0.92rem; font-family: var(--display); }\n.sl-acc-head .pm { width: 16px; height: 16px; position: relative; flex: none; }\n.sl-acc-head .pm::before, .sl-acc-head .pm::after { content: \"\"; position: absolute; background: var(--accent); transition: transform 0.2s; }\n.sl-acc-head .pm::before { left: 0; right: 0; top: 7px; height: 2px; }\n.sl-acc-head .pm::after { top: 0; bottom: 0; left: 7px; width: 2px; }\n.sl-acc-item.open .pm::after { transform: scaleY(0); }\n.sl-acc-body { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }\n.sl-acc-body > p { padding: 0 0 0.9rem; margin: 0; font-size: 0.85rem; color: var(--ink-dim); }\n\n/* ============================================================\n AVATAR\n ============================================================ */\n.sl-ava { width: 40px; height: 40px; border-radius: var(--radius); border: var(--border-w) solid rgb(var(--edge)); overflow: hidden; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 0.85rem; box-shadow: 2px 2px 0 0 var(--hard-shadow); background: var(--accent); color: var(--accent-ink); flex: none; }\n.sl-ava img { width: 100%; height: 100%; object-fit: cover; }\n.sl-ava-group { display: flex; }\n.sl-ava-group .sl-ava { margin-left: -10px; box-shadow: 2px 2px 0 0 var(--hard-shadow); }\n.sl-ava-group .sl-ava:first-child { margin-left: 0; }\n\n/* ============================================================\n ALERT\n ============================================================ */\n.sl-alert { display: flex; gap: 0.8rem; padding: 0.9rem 1rem; border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius); border-left-width: 6px; background: rgba(var(--glass-tint),0.06); }\n.sl-alert.destructive { border-left-color: var(--neg); }\n.sl-alert .ai { flex: none; width: 20px; height: 20px; color: var(--accent); }\n.sl-alert.destructive .ai { color: var(--ink); }\n.sl-alert .at { font-weight: 700; font-size: 0.9rem; margin: 0 0 0.2rem; }\n.sl-alert .ad { font-size: 0.82rem; color: var(--ink-dim); margin: 0; }\n\n/* ============================================================\n TABLE\n ============================================================ */\n.sl-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }\n.sl-table th { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); text-align: left; padding: 0.55rem 0.7rem; border-bottom: 2px solid rgb(var(--edge)); }\n.sl-table td { padding: 0.6rem 0.7rem; border-bottom: 1px solid rgba(var(--edge),0.15); }\n.sl-table tr:last-child td { border-bottom: none; }\n.sl-table tbody tr:hover { background: rgba(var(--glass-tint),0.05); }\n\n/* ============================================================\n SKELETON\n ============================================================ */\n.sl-skel { background: linear-gradient(90deg, rgba(var(--glass-tint),0.06) 25%, rgba(var(--glass-tint),0.16) 37%, rgba(var(--glass-tint),0.06) 63%); background-size: 400% 100%; animation: sl-shimmer 1.4s ease infinite; border-radius: var(--radius); border: 1px solid rgba(var(--edge),0.18); }\n@keyframes sl-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }\n@media (prefers-reduced-motion: reduce) { .sl-skel { animation: none; } }\n\n/* ============================================================\n TOOLTIP / HOVER CARD\n ============================================================ */\n.sl-tip-wrap { position: relative; display: inline-flex; }\n.sl-tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px); white-space: nowrap; font-family: var(--mono); font-size: 0.72rem; padding: 0.4rem 0.6rem; background: var(--bg-2); border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius); box-shadow: 3px 3px 0 0 var(--hard-shadow); opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s; z-index: 20; }\n.sl-tip-wrap:hover .sl-tip { opacity: 1; transform: translateX(-50%); }\n.sl-hover-card { position: absolute; top: calc(100% + 8px); left: 0; width: 240px; padding: 1rem; background: var(--bg-2); border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius); box-shadow: 6px 6px 0 0 var(--hard-shadow); opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity 0.18s, transform 0.18s; z-index: 20; }\n.sl-tip-wrap:hover .sl-hover-card { opacity: 1; transform: none; }\n\n/* ============================================================\n SEPARATOR\n ============================================================ */\n.sl-sep { height: 2px; background: rgba(var(--edge),0.25); border: none; width: 100%; }\n.sl-sep.v { width: 2px; height: 28px; }\n\n/* ============================================================\n BREADCRUMB / PAGINATION / MENUBAR\n ============================================================ */\n.sl-crumb { display: flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.78rem; flex-wrap: wrap; }\n.sl-crumb a { color: var(--ink-dim); text-decoration: none; }\n.sl-crumb a:hover { color: var(--ink); }\n.sl-crumb .sl-cur { color: var(--accent); }\n.sl-crumb .sl-sl { color: var(--ink-dim); opacity: 0.5; }\n.sl-page { display: flex; gap: 0.4rem; }\n.sl-page button { width: 36px; height: 36px; font-family: var(--mono); font-size: 0.8rem; border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius); background: rgba(var(--glass-tint),0.06); color: var(--ink); cursor: pointer; box-shadow: 2px 2px 0 0 var(--hard-shadow); }\n.sl-page button.cur { background: var(--accent); color: var(--accent-ink); }\n.sl-page button[disabled] { opacity: 0.35; pointer-events: none; }\n.sl-menubar { display: inline-flex; border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius); box-shadow: 2px 2px 0 0 var(--hard-shadow); overflow: hidden; }\n.sl-menubar > button { font-family: var(--mono); font-size: 0.78rem; padding: 0.45rem 0.8rem; border: none; border-left: 1px solid rgba(var(--edge),0.25); background: rgba(var(--glass-tint),0.05); color: var(--ink-dim); cursor: pointer; }\n.sl-menubar > button:first-child { border-left: none; }\n.sl-menubar > button:hover { background: var(--accent); color: var(--accent-ink); }\n\n/* ============================================================\n CALENDAR / DATE\n ============================================================ */\n.sl-cal { width: 100%; }\n.sl-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; font-family: var(--mono); font-size: 0.82rem; }\n.sl-cal-head button { width: 28px; height: 28px; border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius); background: rgba(var(--glass-tint),0.06); color: var(--ink); cursor: pointer; }\n.sl-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }\n.sl-cal-grid .dow { font-family: var(--mono); font-size: 0.6rem; color: var(--ink-dim); text-align: center; padding-bottom: 0.3rem; text-transform: uppercase; }\n.sl-cal-grid .day { aspect-ratio: 1; display: grid; place-items: center; font-family: var(--mono); font-size: 0.74rem; border-radius: var(--radius); cursor: pointer; color: var(--ink); }\n.sl-cal-grid .day:hover { background: rgba(var(--glass-tint),0.12); }\n.sl-cal-grid .day.muted { color: var(--ink-dim); opacity: 0.4; }\n.sl-cal-grid .day.sel { background: var(--accent); color: var(--accent-ink); border: 2px solid rgb(var(--edge)); }\n\n/* ============================================================\n ASPECT RATIO / CARD\n ============================================================ */\n.sl-ratio { width: 100%; aspect-ratio: 16 / 9; border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 40%, transparent), rgba(var(--glass-tint),0.06)); display: grid; place-items: center; font-family: var(--mono); font-size: 0.68rem; color: var(--ink-dim); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25); }\n.sl-card-demo { border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius); box-shadow: 4px 4px 0 0 var(--hard-shadow); overflow: hidden; background: rgba(var(--glass-tint),0.05); }\n.sl-card-demo .cd-media { aspect-ratio: 16/8; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 55%, transparent), rgba(var(--glass-tint),0.1)); border-bottom: var(--border-w) solid rgb(var(--edge)); }\n.sl-card-demo .cd-body { padding: 0.9rem 1rem; }\n.sl-card-demo .cd-body h4 { margin: 0 0 0.3rem; font-size: 1rem; }\n.sl-card-demo .cd-body p { margin: 0 0 0.8rem; font-size: 0.82rem; color: var(--ink-dim); }\n\n/* ============================================================\n OVERLAYS — dialog / sheet / popover backdrop\n ============================================================ */\n.sl-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity 0.2s; }\n.sl-overlay.open { opacity: 1; pointer-events: auto; }\n.sl-dialog { width: min(440px, 92vw); padding: 1.6rem; background: var(--bg-2); border: var(--border-w) solid rgb(var(--edge)); border-radius: var(--radius); box-shadow: 10px 10px 0 0 var(--hard-shadow); transform: translateY(10px) scale(0.97); transition: transform 0.22s cubic-bezier(.2,.9,.2,1); }\n.sl-overlay.open .sl-dialog { transform: none; }\n.sl-dialog h3 { font-size: 1.3rem; margin: 0 0 0.5rem; }\n.sl-dialog p { color: var(--ink-dim); font-size: 0.9rem; margin: 0 0 1.3rem; }\n.sl-dialog .actions { display: flex; gap: 0.7rem; justify-content: flex-end; }\n.sl-sheet-overlay { justify-items: end; place-items: stretch; }\n.sl-sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 90vw); padding: 1.6rem; background: var(--bg-2); border-left: var(--border-w) solid rgb(var(--edge)); box-shadow: -10px 0 0 0 rgba(0,0,0,0.2); transform: translateX(100%); transition: transform 0.28s cubic-bezier(.2,.9,.2,1); }\n.sl-sheet-overlay.open .sl-sheet { transform: none; }\n.sl-sheet h3 { margin: 0 0 0.4rem; font-size: 1.2rem; }\n.sl-sheet p { color: var(--ink-dim); font-size: 0.86rem; }\n\n/* ============================================================\n TOAST\n ============================================================ */\n.sl-toast-stack { position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 300; width: 300px; height: 0; }\n.sl-toast {\n position: absolute; bottom: 0; right: 0; width: 100%; box-sizing: border-box;\n padding: 0.85rem 1rem; background: var(--bg-2);\n border: var(--border-w) solid rgb(var(--edge)); border-left: 6px solid var(--accent);\n border-radius: var(--radius); box-shadow: 5px 5px 0 0 var(--hard-shadow);\n display: flex; gap: 0.7rem; align-items: flex-start;\n --y: 0px; --s: 1;\n transform: translateX(125%);\n transform-origin: bottom right;\n transition: transform 0.4s cubic-bezier(.2,.9,.2,1), opacity 0.3s ease;\n}\n.sl-toast.show { transform: translateY(var(--y)) scale(var(--s)); }\n.sl-toast .tt { font-weight: 700; font-size: 0.86rem; margin: 0 0 0.15rem; }\n.sl-toast .td { font-size: 0.78rem; color: var(--ink-dim); margin: 0; }\n\n/* ============================================================\n SHOWCASE — real products built on the system\n ============================================================ */\n.show-feature { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.4rem; padding: 1.4rem; align-items: center; }\n@media (max-width: 760px) { .show-feature { grid-template-columns: 1fr; } }\n.show-browser { border: var(--border-w) solid rgb(var(--edge)); box-shadow: 6px 6px 0 0 var(--hard-shadow); overflow: hidden; background: var(--bg-2); }\n.browser-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.7rem; border-bottom: var(--border-w) solid rgb(var(--edge)); background: rgba(var(--glass-tint),0.06); }\n.browser-bar .tl { width: 11px; height: 11px; border: 1.5px solid rgb(var(--edge)); background: rgba(var(--glass-tint),0.15); flex: none; }\n.browser-bar .url { margin-left: 0.6rem; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-dim); padding: 0.2rem 0.7rem; border: 1.5px solid rgba(var(--edge),0.4); flex: 1; background: rgba(var(--glass-tint),0.04); }\n.browser-shot { display: block; width: 100%; aspect-ratio: 16 / 10; }\n.show-meta { display: flex; flex-direction: column; gap: 1rem; }\n.show-name { font-weight: 700; }\n\n/* ============================================================\n SITE PATTERNS — distilled from production SL consumers\n ============================================================ */\n.sl-attribution {\n font-family: var(--mono);\n font-size: 0.72rem;\n color: var(--ink-dim);\n}\n.sl-attribution a {\n color: var(--ink);\n text-decoration: none;\n border-bottom: 1px solid var(--accent);\n}\n.sl-attribution a:hover { color: var(--accent); }\n\n.sl-timeline {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n.sl-timeline-item {\n position: relative;\n display: grid;\n grid-template-columns: 18px minmax(0, 1fr);\n gap: 0.85rem;\n padding: 0 0 1.15rem;\n}\n.sl-timeline-item:not(:last-child)::before {\n content: \"\";\n position: absolute;\n left: 7px;\n top: 16px;\n bottom: 0;\n width: 2px;\n background: rgb(var(--edge));\n}\n.sl-timeline-marker {\n position: relative;\n z-index: 1;\n width: 16px;\n height: 16px;\n border: var(--border-w) solid rgb(var(--edge));\n background: var(--accent);\n box-shadow: 2px 2px 0 0 var(--hard-shadow);\n}\n.sl-timeline-copy { min-width: 0; }\n.sl-timeline-date {\n display: block;\n margin-bottom: 0.2rem;\n font-family: var(--mono);\n font-size: 0.68rem;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n color: var(--ink-dim);\n}\n.sl-timeline-title { margin: 0; font-size: 1rem; }\n.sl-timeline-body { margin-top: 0.25rem; color: var(--ink-dim); font-size: 0.86rem; line-height: 1.45; }\n\n.sl-stepper {\n display: grid;\n grid-template-columns: repeat(var(--step-count, 3), minmax(0, 1fr));\n list-style: none;\n margin: 0;\n padding: 0;\n}\n.sl-step {\n position: relative;\n display: flex;\n align-items: flex-start;\n gap: 0.55rem;\n min-width: 0;\n}\n.sl-step:not(:last-child)::after {\n content: \"\";\n position: absolute;\n left: 30px;\n right: 6px;\n top: 13px;\n height: 2px;\n background: rgb(var(--edge));\n}\n.sl-step-marker {\n position: relative;\n z-index: 1;\n display: grid;\n place-items: center;\n width: 28px;\n height: 28px;\n flex: none;\n border: var(--border-w) solid rgb(var(--edge));\n background: var(--bg-2);\n color: var(--ink);\n font-family: var(--mono);\n font-size: 0.68rem;\n box-shadow: 2px 2px 0 0 var(--hard-shadow);\n}\n.sl-step-marker svg { width: 14px; height: 14px; }\n.sl-step[data-status=\"complete\"] .sl-step-marker,\n.sl-step[data-status=\"current\"] .sl-step-marker { background: var(--accent); color: var(--accent-ink); }\n.sl-step-copy { display: flex; flex-direction: column; min-width: 0; padding-top: 0.1rem; }\n.sl-step-copy strong { font-size: 0.78rem; }\n.sl-step-copy > span { font-family: var(--mono); font-size: 0.62rem; color: var(--ink-dim); }\n@media (max-width: 640px) {\n .sl-stepper { grid-template-columns: 1fr; gap: 0.75rem; }\n .sl-step:not(:last-child)::after { left: 13px; right: auto; top: 29px; bottom: -12px; width: 2px; height: auto; }\n}\n\n.sl-filter-toolbar {\n display: flex;\n align-items: end;\n flex-wrap: wrap;\n gap: 0.7rem;\n padding: 0.8rem;\n border: var(--border-w) solid rgb(var(--edge));\n background: rgba(var(--glass-tint), var(--glass-alpha));\n box-shadow: 4px 4px 0 0 var(--hard-shadow);\n}\n.sl-filter-group { display: flex; align-items: end; flex-wrap: wrap; gap: 0.55rem; min-width: 0; }\n.sl-filter-summary { margin-left: auto; font-family: var(--mono); font-size: 0.68rem; color: var(--ink-dim); white-space: nowrap; }\n@media (max-width: 640px) { .sl-filter-summary { width: 100%; margin-left: 0; } }\n\n/* Field-sourced from the recurring command/intake surfaces in Dropship and Observatory. */\n.sl-omnibar {\n display: grid;\n gap: 0.45rem;\n width: 100%;\n padding: 0.5rem;\n border: var(--border-w) solid rgb(var(--edge));\n background: rgba(var(--glass-tint), var(--glass-alpha));\n backdrop-filter: blur(var(--glass-blur)) saturate(150%);\n box-shadow: 5px 5px 0 0 var(--hard-shadow);\n}\n.sl-omnibar-attachments { display: flex; flex-wrap: wrap; gap: 0.35rem; }\n.sl-omnibar-attachment {\n display: inline-flex;\n align-items: center;\n gap: 0.35rem;\n padding: 0.25rem 0.4rem;\n border: 1.5px solid rgb(var(--edge));\n background: rgb(var(--glass-tint) / 0.08);\n font-family: var(--mono);\n font-size: 0.62rem;\n color: var(--ink-dim);\n}\n.sl-omnibar-attachment button {\n display: grid;\n place-items: center;\n padding: 0;\n border: 0;\n background: transparent;\n color: inherit;\n cursor: pointer;\n}\n.sl-omnibar-attachment svg { width: 12px; height: 12px; }\n.sl-omnibar-row { display: flex; align-items: center; gap: 0.35rem; min-width: 0; }\n.sl-omnibar-input {\n flex: 1;\n min-width: 0;\n border: 0;\n outline: 0;\n background: transparent;\n color: var(--ink);\n font: 0.84rem var(--body);\n}\n.sl-omnibar-input::placeholder { color: var(--ink-dim); }\n.sl-omnibar-icon,\n.sl-omnibar-submit {\n width: 34px;\n height: 34px;\n flex: none;\n display: grid;\n place-items: center;\n border: var(--border-w) solid rgb(var(--edge));\n color: var(--ink);\n background: rgb(var(--glass-tint) / 0.06);\n cursor: pointer;\n}\n.sl-omnibar-icon svg,\n.sl-omnibar-submit svg { width: 15px; height: 15px; }\n.sl-omnibar-submit { background: var(--accent); color: var(--accent-ink); box-shadow: 2px 2px 0 0 var(--hard-shadow); }\n.sl-omnibar-submit:active { transform: translate(2px, 2px); box-shadow: none; }\n.sl-omnibar-status {\n font-family: var(--mono);\n font-size: 0.58rem;\n text-transform: uppercase;\n letter-spacing: 0.08em;\n color: var(--accent);\n}\n@media (max-width: 560px) { .sl-omnibar-status { display: none; } }\n\n/* Field-sourced from the edge inspection surfaces in Cosmograph and Dropship. */\n.sl-detail-panel {\n display: flex;\n flex-direction: column;\n width: 100%;\n border: var(--border-w) solid rgb(var(--edge));\n background: rgba(var(--glass-tint), var(--glass-alpha));\n backdrop-filter: blur(var(--glass-blur)) saturate(150%);\n box-shadow: 5px 5px 0 0 var(--hard-shadow);\n}\n.sl-detail-panel-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 0.8rem;\n padding: 0.75rem 0.85rem;\n border-bottom: var(--border-w) solid rgb(var(--edge));\n}\n.sl-detail-panel-eyebrow {\n display: block;\n margin-bottom: 0.15rem;\n font-family: var(--mono);\n font-size: 0.58rem;\n text-transform: uppercase;\n letter-spacing: 0.1em;\n color: var(--accent);\n}\n.sl-detail-panel-title {\n margin: 0;\n font-family: var(--display);\n font-size: 1rem;\n line-height: 1.1;\n}\n.sl-detail-panel-body {\n padding: 0.85rem;\n color: var(--ink-dim);\n font-size: 0.82rem;\n line-height: 1.45;\n}\n.sl-detail-panel-footer {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n padding: 0.7rem 0.85rem;\n border-top: var(--border-w) solid rgb(var(--edge));\n}\n\n.sl-template { display: flex; min-height: 100%; flex-direction: column; gap: 1rem; }\n.sl-template > .sl-site-content { display: flex; flex: 1; flex-direction: column; gap: 1rem; }\n.sl-template-footer {\n margin-top: auto;\n padding-block: 1rem;\n border-top: var(--border-w) solid rgb(var(--edge));\n}\n.sl-template-guided > .sl-site-content {\n display: grid;\n grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);\n align-items: start;\n}\n.sl-template-immersive { min-height: 100dvh; }\n.sl-template-immersive > main { position: relative; flex: 1; overflow: hidden; }\n@media (max-width: 760px) { .sl-template-guided > .sl-site-content { grid-template-columns: 1fr; } }\n\n/* ============================================================\n KPI — default responsive metric grid\n ============================================================ */\n.sl-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0.8rem;width:100%;}\n.sl-kpi-card{position:relative;z-index:0;min-width:0;min-height:82px;display:flex;flex-direction:column;justify-content:center;gap:0.55rem;padding:0.8rem 0.9rem;color:var(--accent-ink);background:var(--accent);border:var(--border-w) solid rgb(var(--edge));border-radius:var(--radius);box-shadow:4px 4px 0 0 var(--hard-shadow);transition:transform .14s ease,box-shadow .14s ease;}\n.sl-kpi-card:hover,.sl-kpi-card:focus-within{z-index:20;transform:translate(-1px,-1px);box-shadow:5px 5px 0 0 var(--hard-shadow);}\n.sl-kpi-card.is-benchmark{color:var(--neg-ink);background:var(--neg);}\n.sl-kpi-card[data-state=\"unavailable\"]{color:var(--ink);background:rgb(var(--glass-tint) / 0.08);}\n.sl-kpi-label{display:flex;align-items:flex-start;gap:0.25rem;font-family:var(--mono);font-size:0.62rem;font-weight:700;line-height:1.2;letter-spacing:0.06em;text-transform:uppercase;}\n.sl-kpi-label > span:first-child{min-width:0;overflow-wrap:anywhere;}\n.sl-kpi-tip-wrap{display:inline-flex;flex:none;}\n.sl-kpi-info{display:grid;place-items:center;width:15px;height:15px;padding:0;color:currentColor;background:transparent;border:0;border-radius:var(--radius);cursor:help;opacity:0.72;}\n.sl-kpi-info:hover{opacity:1;}\n.sl-kpi-info:focus-visible{outline:2px solid currentColor;outline-offset:2px;}\n.sl-kpi-info svg{width:13px;height:13px;}\n.sl-kpi-row{display:flex;align-items:baseline;justify-content:space-between;gap:0.45rem;min-width:0;}\n.sl-kpi-value{min-width:0;font-family:var(--display);font-size:clamp(1.2rem,2vw,1.55rem);font-weight:800;line-height:1;letter-spacing:-0.025em;overflow-wrap:anywhere;}\n.sl-kpi-change{display:inline-flex;align-items:center;gap:0.12rem;flex:none;font-family:var(--mono);font-size:0.62rem;font-weight:700;white-space:nowrap;}\n.sl-kpi-change svg{width:12px;height:12px;}\n.sl-kpi-skeleton{display:block;width:3.6rem;height:1.2rem;background:currentColor;opacity:0.22;animation:sl-kpi-pulse 1.2s steps(2,end) infinite;}\n@keyframes sl-kpi-pulse{50%{opacity:0.08;}}\n@media (max-width:760px){.sl-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}\n@media (max-width:340px){.sl-kpi-grid{grid-template-columns:1fr;}}\n@media (prefers-reduced-motion:reduce){.sl-kpi-card{transition:none;}.sl-kpi-card:hover,.sl-kpi-card:focus-within{transform:none;}.sl-kpi-skeleton{animation:none;}}\n", "type": "registry:file", "target": "styles/structured-liquidity-kit.css" }, diff --git a/artifacts/structured-liquidity/public/registry.json b/artifacts/structured-liquidity/public/registry.json index 9a98b93..42a1221 100644 --- a/artifacts/structured-liquidity/public/registry.json +++ b/artifacts/structured-liquidity/public/registry.json @@ -237,6 +237,12 @@ "title": "Keycap", "description": "Structured Liquidity Keycap — React component driving the SL class system." }, + { + "name": "kpi", + "type": "registry:ui", + "title": "Kpi", + "description": "Structured Liquidity Kpi — React component driving the SL class system." + }, { "name": "label", "type": "registry:ui", diff --git a/artifacts/structured-liquidity/public/structured-liquidity-kit.css b/artifacts/structured-liquidity/public/structured-liquidity-kit.css index 3803633..beeb992 100644 --- a/artifacts/structured-liquidity/public/structured-liquidity-kit.css +++ b/artifacts/structured-liquidity/public/structured-liquidity-kit.css @@ -567,3 +567,28 @@ .sl-template-immersive { min-height: 100dvh; } .sl-template-immersive > main { position: relative; flex: 1; overflow: hidden; } @media (max-width: 760px) { .sl-template-guided > .sl-site-content { grid-template-columns: 1fr; } } + +/* ============================================================ + KPI — default responsive metric grid + ============================================================ */ +.sl-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0.8rem;width:100%;} +.sl-kpi-card{position:relative;z-index:0;min-width:0;min-height:82px;display:flex;flex-direction:column;justify-content:center;gap:0.55rem;padding:0.8rem 0.9rem;color:var(--accent-ink);background:var(--accent);border:var(--border-w) solid rgb(var(--edge));border-radius:var(--radius);box-shadow:4px 4px 0 0 var(--hard-shadow);transition:transform .14s ease,box-shadow .14s ease;} +.sl-kpi-card:hover,.sl-kpi-card:focus-within{z-index:20;transform:translate(-1px,-1px);box-shadow:5px 5px 0 0 var(--hard-shadow);} +.sl-kpi-card.is-benchmark{color:var(--neg-ink);background:var(--neg);} +.sl-kpi-card[data-state="unavailable"]{color:var(--ink);background:rgb(var(--glass-tint) / 0.08);} +.sl-kpi-label{display:flex;align-items:flex-start;gap:0.25rem;font-family:var(--mono);font-size:0.62rem;font-weight:700;line-height:1.2;letter-spacing:0.06em;text-transform:uppercase;} +.sl-kpi-label > span:first-child{min-width:0;overflow-wrap:anywhere;} +.sl-kpi-tip-wrap{display:inline-flex;flex:none;} +.sl-kpi-info{display:grid;place-items:center;width:15px;height:15px;padding:0;color:currentColor;background:transparent;border:0;border-radius:var(--radius);cursor:help;opacity:0.72;} +.sl-kpi-info:hover{opacity:1;} +.sl-kpi-info:focus-visible{outline:2px solid currentColor;outline-offset:2px;} +.sl-kpi-info svg{width:13px;height:13px;} +.sl-kpi-row{display:flex;align-items:baseline;justify-content:space-between;gap:0.45rem;min-width:0;} +.sl-kpi-value{min-width:0;font-family:var(--display);font-size:clamp(1.2rem,2vw,1.55rem);font-weight:800;line-height:1;letter-spacing:-0.025em;overflow-wrap:anywhere;} +.sl-kpi-change{display:inline-flex;align-items:center;gap:0.12rem;flex:none;font-family:var(--mono);font-size:0.62rem;font-weight:700;white-space:nowrap;} +.sl-kpi-change svg{width:12px;height:12px;} +.sl-kpi-skeleton{display:block;width:3.6rem;height:1.2rem;background:currentColor;opacity:0.22;animation:sl-kpi-pulse 1.2s steps(2,end) infinite;} +@keyframes sl-kpi-pulse{50%{opacity:0.08;}} +@media (max-width:760px){.sl-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));}} +@media (max-width:340px){.sl-kpi-grid{grid-template-columns:1fr;}} +@media (prefers-reduced-motion:reduce){.sl-kpi-card{transition:none;}.sl-kpi-card:hover,.sl-kpi-card:focus-within{transform:none;}.sl-kpi-skeleton{animation:none;}} diff --git a/artifacts/structured-liquidity/src/catalog.json b/artifacts/structured-liquidity/src/catalog.json index 880fe14..b3dca78 100644 --- a/artifacts/structured-liquidity/src/catalog.json +++ b/artifacts/structured-liquidity/src/catalog.json @@ -910,6 +910,22 @@ "display" ] }, + { + "name": "KPI · default metric grid", + "registry": "kpi", + "cap": "KPI · default metric grid", + "category": "data", + "status": "stable", + "tags": [ + "display", + "metric", + "responsive" + ], + "kinds": [ + "display", + "feedback" + ] + }, { "name": "Section header", "registry": "section-header", diff --git a/artifacts/structured-liquidity/src/components/site/kit/KitDataDisplay.tsx b/artifacts/structured-liquidity/src/components/site/kit/KitDataDisplay.tsx index cb818e6..35a5b24 100644 --- a/artifacts/structured-liquidity/src/components/site/kit/KitDataDisplay.tsx +++ b/artifacts/structured-liquidity/src/components/site/kit/KitDataDisplay.tsx @@ -32,6 +32,7 @@ import { TableCell, } from "@/components/ui/table"; import { Meter } from "@/components/ui/meter"; +import { KpiCard, KpiGrid } from "@/components/ui/kpi"; export function KitDataDisplay() { return ( @@ -40,11 +41,48 @@ export function KitDataDisplay() { Data display - Alert · Avatar · Calendar · Card · Media player · Stat · Table · + Alert · Avatar · Calendar · Card · KPI · Media player · Stat · Table · Waveform
+
+ KPI · default metric grid + + + + + + + + +
+
Stat · metric display diff --git a/artifacts/structured-liquidity/src/components/ui/kpi.tsx b/artifacts/structured-liquidity/src/components/ui/kpi.tsx new file mode 100644 index 0000000..589b73c --- /dev/null +++ b/artifacts/structured-liquidity/src/components/ui/kpi.tsx @@ -0,0 +1,73 @@ +import * as React from "react"; +import { ArrowDownRight, ArrowUpRight, Info, Minus } from "lucide-react"; + +import { Tooltip } from "@/components/ui/tooltip"; +import { cn } from "@/lib/utils"; + +export function KpiGrid({ className, ...props }: React.HTMLAttributes) { + return
; +} + +export interface KpiCardProps extends Omit, "title"> { + change?: React.ReactNode; + description?: React.ReactNode; + direction?: "down" | "flat" | "up"; + label: React.ReactNode; + loading?: boolean; + unavailableLabel?: React.ReactNode; + value?: React.ReactNode; + variant?: "benchmark" | "default"; +} + +/** + * Default Structured Liquidity KPI card. + * + * Data is supplied by the adopter. Missing data renders an explicit unavailable + * state; the component never invents a fallback metric. + */ +export function KpiCard({ + change, + className, + description, + direction = "flat", + label, + loading = false, + unavailableLabel = "N/A", + value, + variant = "default", + ...props +}: KpiCardProps) { + const unavailable = !loading && (value === null || value === undefined); + const DirectionIcon = + direction === "up" ? ArrowUpRight : direction === "down" ? ArrowDownRight : Minus; + + return ( +
+
+ {label} + {description ? ( + + + + ) : null} +
+
+ + {loading ? : unavailable ? unavailableLabel : value} + + {!loading && !unavailable && change ? ( + + + ) : null} +
+
+ ); +} diff --git a/artifacts/structured-liquidity/src/styles/40-inline.css b/artifacts/structured-liquidity/src/styles/40-inline.css index c9613e7..0ba8b64 100644 --- a/artifacts/structured-liquidity/src/styles/40-inline.css +++ b/artifacts/structured-liquidity/src/styles/40-inline.css @@ -562,6 +562,28 @@ .sl-stat-cap{font-family:var(--mono);font-size:0.6rem;text-transform:uppercase;letter-spacing:0.08em;color:var(--ink-dim);} .sl-stat-cards{display:flex;gap:0.7rem;width:100%;flex-wrap:wrap;} .sl-stat-card{flex:1;min-width:120px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:0.25rem;padding:0.9rem 0.8rem;border:var(--border-w) solid rgb(var(--edge));border-radius:var(--radius);box-shadow:2px 2px 0 0 var(--hard-shadow);background:rgb(var(--glass-tint) / 0.05);} + /* Default KPI pattern: adapted from Interspace Ventures' portfolio cards. */ + .sl-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0.8rem;width:100%;} + .sl-kpi-card{position:relative;z-index:0;min-width:0;min-height:82px;display:flex;flex-direction:column;justify-content:center;gap:0.55rem;padding:0.8rem 0.9rem;color:var(--accent-ink);background:var(--accent);border:var(--border-w) solid rgb(var(--edge));border-radius:var(--radius);box-shadow:4px 4px 0 0 var(--hard-shadow);transition:transform .14s ease,box-shadow .14s ease;} + .sl-kpi-card:hover,.sl-kpi-card:focus-within{z-index:20;transform:translate(-1px,-1px);box-shadow:5px 5px 0 0 var(--hard-shadow);} + .sl-kpi-card.is-benchmark{color:var(--neg-ink);background:var(--neg);} + .sl-kpi-card[data-state="unavailable"]{color:var(--ink);background:rgb(var(--glass-tint) / 0.08);} + .sl-kpi-label{display:flex;align-items:flex-start;gap:0.25rem;font-family:var(--mono);font-size:0.62rem;font-weight:700;line-height:1.2;letter-spacing:0.06em;text-transform:uppercase;} + .sl-kpi-label > span:first-child{min-width:0;overflow-wrap:anywhere;} + .sl-kpi-tip-wrap{display:inline-flex;flex:none;} + .sl-kpi-info{display:grid;place-items:center;width:15px;height:15px;padding:0;color:currentColor;background:transparent;border:0;border-radius:var(--radius);cursor:help;opacity:0.72;} + .sl-kpi-info:hover{opacity:1;} + .sl-kpi-info:focus-visible{outline:2px solid currentColor;outline-offset:2px;} + .sl-kpi-info svg{width:13px;height:13px;} + .sl-kpi-row{display:flex;align-items:baseline;justify-content:space-between;gap:0.45rem;min-width:0;} + .sl-kpi-value{min-width:0;font-family:var(--display);font-size:clamp(1.2rem,2vw,1.55rem);font-weight:800;line-height:1;letter-spacing:-0.025em;overflow-wrap:anywhere;} + .sl-kpi-change{display:inline-flex;align-items:center;gap:0.12rem;flex:none;font-family:var(--mono);font-size:0.62rem;font-weight:700;white-space:nowrap;} + .sl-kpi-change svg{width:12px;height:12px;} + .sl-kpi-skeleton{display:block;width:3.6rem;height:1.2rem;background:currentColor;opacity:0.22;animation:sl-kpi-pulse 1.2s steps(2,end) infinite;} + @keyframes sl-kpi-pulse{50%{opacity:0.08;}} + @media (max-width:760px){.sl-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));}} + @media (max-width:340px){.sl-kpi-grid{grid-template-columns:1fr;}} + @media (prefers-reduced-motion:reduce){.sl-kpi-card{transition:none;}.sl-kpi-card:hover,.sl-kpi-card:focus-within{transform:none;}.sl-kpi-skeleton{animation:none;}} .sl-sechead{display:flex;flex-direction:column;gap:0.45rem;} .sl-sechead-eyebrow{font-family:var(--mono);font-size:0.6rem;text-transform:uppercase;letter-spacing:0.12em;color:var(--accent);} .sl-sechead-row{display:flex;align-items:center;gap:0.6rem;}