:root {
  color-scheme: dark;
  --background: #09090b;
  --foreground: #fafafa;
  --card: #111113;
  --card-foreground: #fafafa;
  --popover: #141416;
  --popover-foreground: #fafafa;
  --primary: #fafafa;
  --primary-foreground: #18181b;
  --secondary: #202024;
  --secondary-foreground: #f4f4f5;
  --muted: #18181b;
  --muted-foreground: #a1a1aa;
  --accent: #27272a;
  --accent-foreground: #fafafa;
  --brand: #8b5cf6;
  --brand-strong: #a855f7;
  --brand-muted: rgb(139 92 246 / 12%);
  --success: #34d399;
  --warning: #fbbf24;
  --border: rgb(255 255 255 / 9%);
  --border-strong: rgb(255 255 255 / 15%);
  --input: rgb(255 255 255 / 13%);
  --ring: rgb(139 92 246 / 42%);
  --radius: 8px;
  --sidebar-width: 216px;
  --content-max: 1480px;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 28%);
  --shadow-md: 0 12px 34px rgb(0 0 0 / 28%);
  --shadow-lg: 0 28px 80px rgb(0 0 0 / 44%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 62% -10%, rgb(139 92 246 / 6%), transparent 34%),
    var(--background);
  color: var(--foreground);
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.site-shell {
  width: min(calc(100% - var(--sidebar-width) - 64px), var(--content-max));
  margin-left: calc(var(--sidebar-width) + 48px);
  padding: 0 0 72px;
}

.topbar {
  position: fixed;
  inset: 16px auto 16px 16px;
  z-index: 40;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: var(--sidebar-width);
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgb(12 12 14 / 88%);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(24px) saturate(120%);
}

.brand {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 2px 2px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--brand);
  color: white;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 24%);
  font-size: 16px;
  font-weight: 800;
}

.brand-copy,
.user-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.brand-name,
.user-copy strong {
  overflow: hidden;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-name,
.user-copy small {
  overflow: hidden;
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.beta {
  min-height: 18px;
  padding: 2px 6px;
  border-color: rgb(139 92 246 / 26%);
  background: var(--brand-muted);
  color: #c4b5fd;
  font-size: 9px;
  text-transform: uppercase;
}

.sidebar-body {
  min-height: 0;
  padding-top: 18px;
}

.main-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-label {
  padding: 0 10px 6px;
  color: #71717a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-label-spaced {
  margin-top: 18px;
}

.nav-link {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 560;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.nav-link svg,
.user-menu svg,
.button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.nav-link:hover {
  background: rgb(255 255 255 / 5%);
  color: var(--foreground);
}

.nav-link.active {
  background: rgb(255 255 255 / 8%);
  color: var(--foreground);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 5%);
}

.nav-link.active svg {
  color: #c4b5fd;
}

.nav-count {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 7%);
  color: #d4d4d8;
  font-size: 10px;
  text-align: center;
}

.sidebar-footer {
  display: grid;
  gap: 10px;
  align-self: end;
}

.source-status {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 2.5%);
}

.source-status > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.source-status strong,
.source-status small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-status strong {
  font-size: 11px;
  font-weight: 650;
}

.source-status small {
  color: var(--muted-foreground);
  font-size: 10px;
}

.status-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 3px rgb(52 211 153 / 10%);
}

.user-menu {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted-foreground);
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease;
}

.user-menu:hover {
  border-color: var(--border);
  background: rgb(255 255 255 / 4%);
}

.avatar,
.mini-avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  font-size: 11px;
  font-weight: 750;
}

.avatar {
  width: 30px;
  height: 30px;
}

.mini-avatar {
  width: 22px;
  height: 22px;
}

main {
  width: 100%;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
  min-height: 380px;
  padding: 56px 4px 44px;
  border-bottom: 1px solid var(--border);
  animation: panel-in 420ms ease both;
}

.hero-copy {
  display: grid;
  gap: 30px;
  min-width: 0;
}

.hero-intro {
  display: grid;
  gap: 11px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #a1a1aa;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(34px, 3.2vw, 50px);
  font-weight: 760;
  line-height: 1.12;
}

.hero-description {
  max-width: 680px;
  margin: 0;
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1.75;
}

.hero-utility {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.search-wrap {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  height: 50px;
  padding: 0 13px;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 4%);
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.search-wrap:hover {
  border-color: var(--border-strong);
  background: rgb(255 255 255 / 5%);
}

.search-wrap:focus-within {
  border-color: rgb(139 92 246 / 60%);
  box-shadow: 0 0 0 3px var(--ring);
}

.search-wrap > svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted-foreground);
  stroke-width: 1.8;
}

.search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--foreground);
  font-size: 13px;
}

.search-wrap input::placeholder {
  color: #71717a;
}

kbd {
  min-width: 38px;
  padding: 3px 6px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #18181b;
  color: #71717a;
  font-size: 10px;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  min-width: 0;
  padding: 0 16px;
  border-left: 1px solid var(--border);
}

.stat-card:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat-card strong,
.stat-card span {
  display: block;
}

.stat-card strong {
  margin-bottom: 3px;
  color: var(--foreground);
  font-size: 20px;
  font-weight: 720;
  line-height: 1.1;
}

.stat-label {
  overflow: hidden;
  color: #71717a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.registry-panel {
  align-self: stretch;
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr) auto;
  min-width: 0;
  min-height: 274px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 2.5%);
  box-shadow: var(--shadow-sm);
}

.registry-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.registry-head > div {
  display: grid;
  gap: 5px;
}

.registry-head strong {
  font-size: 14px;
  font-weight: 680;
}

.section-kicker {
  color: #71717a;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.status-live {
  gap: 6px;
  border-color: rgb(52 211 153 / 18%);
  background: rgb(52 211 153 / 7%);
  color: #a7f3d0;
}

.status-live .status-dot {
  width: 5px;
  height: 5px;
  box-shadow: none;
}

.registry-graphic {
  position: relative;
  min-height: 120px;
  margin: 10px 0;
  overflow: hidden;
}

.registry-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, rgb(139 92 246 / 50%), rgb(255 255 255 / 8%));
  transform-origin: left center;
}

.line-1 { transform: rotate(-29deg); }
.line-2 { transform: rotate(13deg); }
.line-3 { transform: rotate(164deg); }

.registry-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 9px;
  height: 9px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  background: #27272a;
  box-shadow: 0 0 0 5px rgb(255 255 255 / 3%);
}

.node-main {
  left: calc(50% - 19px);
  top: calc(50% - 19px);
  width: 38px;
  height: 38px;
  border-color: rgb(139 92 246 / 38%);
  background: var(--brand);
  color: white;
  box-shadow: 0 0 0 8px rgb(139 92 246 / 8%), 0 14px 28px rgb(0 0 0 / 30%);
  font-size: 13px;
  font-weight: 800;
}

.node-a { right: 7%; top: 20%; }
.node-b { right: 3%; bottom: 20%; }
.node-c { left: 7%; bottom: 24%; }

.registry-meta {
  display: grid;
  gap: 0;
  margin: 0;
}

.registry-meta div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--border);
  font-size: 10px;
}

.registry-meta dt {
  color: #71717a;
}

.registry-meta dd {
  overflow: hidden;
  margin: 0;
  color: #d4d4d8;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-section {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-top: 38px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-title-group {
  display: grid;
  gap: 4px;
}

.section-title-group h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.section-title-group p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--foreground);
  font-size: 12px;
  font-weight: 620;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.button:hover {
  border-color: var(--border-strong);
  background: var(--accent);
}

.button.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.button.primary:hover {
  background: #e4e4e7;
}

.button.secondary {
  background: var(--secondary);
}

.asset-toolbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  margin-bottom: 20px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgb(14 14 16 / 88%);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px) saturate(120%);
}

.filter-group {
  display: flex;
  align-items: center;
  min-width: 0;
}

.filter-secondary-group {
  animation: filter-in 180ms ease both;
}

.filter-divider {
  width: 1px;
  height: 22px;
  margin-right: 10px;
  background: var(--border);
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.pill .icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.pill:hover {
  border-color: var(--border);
  background: rgb(255 255 255 / 4%);
  color: var(--foreground);
}

.pill.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}

.pill-count {
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
  color: inherit;
  font-size: 9px;
  text-align: center;
}

.pill.active .pill-count {
  background: rgb(0 0 0 / 10%);
}

.secondary-pill.active {
  border-color: rgb(139 92 246 / 35%);
  background: var(--brand-muted);
  color: #ddd6fe;
}

.asset-grid,
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.skeleton-grid span {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(100deg, #111113 25%, #1a1a1d 42%, #111113 60%);
  background-size: 250% 100%;
  animation: shimmer 1.4s linear infinite;
}

.asset-card {
  position: relative;
  aspect-ratio: 4 / 3;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--skill-ring, var(--border));
  border-radius: var(--radius);
  background: var(--skill-bg, #18181b);
  box-shadow: var(--shadow-sm);
  isolation: isolate;
  animation: card-in 420ms calc(min(var(--card-index, 0), 8) * 36ms) ease backwards;
  transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease;
}

.asset-grid.suppress-entry-motion .asset-card {
  animation: none;
}

.asset-card:hover,
.asset-card:focus-visible {
  border-color: var(--skill-ring-hover, var(--border-strong));
  box-shadow: 0 18px 42px rgb(0 0 0 / 34%);
  transform: translateY(-3px);
}

.skill-card-visual,
.skill-display {
  position: absolute;
  inset: 0;
}

.skill-card-visual {
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 15%, var(--skill-glow, rgb(255 255 255 / 8%)), transparent 33%),
    linear-gradient(145deg, var(--skill-a, #27272a), var(--skill-b, #111113));
}

.skill-card-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(rgb(255 255 255 / 20%) 0.65px, transparent 0.65px);
  background-size: 9px 9px;
  mask-image: linear-gradient(180deg, black, transparent 76%);
  opacity: 0.16;
  pointer-events: none;
}

.asset-cover-media {
  position: absolute;
  inset: 0;
  z-index: 3;
  margin: 0;
  overflow: hidden;
  background: var(--skill-b, #111113);
}

.asset-cover-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(9 9 11 / 10%) 0%, rgb(9 9 11 / 4%) 42%, rgb(9 9 11 / 54%) 100%);
  content: "";
  pointer-events: none;
}

.asset-cover-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.94;
  transform: scale(1.001);
  transition: opacity 220ms ease, transform 320ms ease;
}

.asset-cover-media.top img {
  object-position: center top;
}

.asset-card:hover .asset-cover-media img,
.asset-card:focus-within .asset-cover-media img {
  opacity: 0.76;
  transform: scale(1.035);
}

.cover-purple {
  --skill-a: #4c2f76;
  --skill-b: #181124;
  --skill-glow: rgb(196 181 253 / 18%);
  --skill-ring: rgb(167 139 250 / 20%);
  --skill-ring-hover: rgb(167 139 250 / 42%);
}

.cover-blue {
  --skill-a: #22478b;
  --skill-b: #10192a;
  --skill-glow: rgb(147 197 253 / 16%);
  --skill-ring: rgb(96 165 250 / 19%);
  --skill-ring-hover: rgb(96 165 250 / 40%);
}

.cover-cyan {
  --skill-a: #176a72;
  --skill-b: #0b2024;
  --skill-glow: rgb(103 232 249 / 14%);
  --skill-ring: rgb(34 211 238 / 18%);
  --skill-ring-hover: rgb(34 211 238 / 38%);
}

.cover-green {
  --skill-a: #16623d;
  --skill-b: #0d2117;
  --skill-glow: rgb(110 231 183 / 13%);
  --skill-ring: rgb(52 211 153 / 18%);
  --skill-ring-hover: rgb(52 211 153 / 38%);
}

.cover-pink {
  --skill-a: #7b285d;
  --skill-b: #28101f;
  --skill-glow: rgb(249 168 212 / 15%);
  --skill-ring: rgb(244 114 182 / 18%);
  --skill-ring-hover: rgb(244 114 182 / 38%);
}

.cover-orange {
  --skill-a: #87451f;
  --skill-b: #27160d;
  --skill-glow: rgb(253 186 116 / 14%);
  --skill-ring: rgb(251 146 60 / 18%);
  --skill-ring-hover: rgb(251 146 60 / 38%);
}

.cover-neutral {
  --skill-a: #343438;
  --skill-b: #151517;
  --skill-glow: rgb(255 255 255 / 8%);
  --skill-ring: rgb(255 255 255 / 10%);
  --skill-ring-hover: rgb(255 255 255 / 20%);
}

.skill-topline {
  position: absolute;
  inset: 14px 14px auto;
  z-index: 5;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 170ms ease, transform 190ms ease;
}

.asset-card:hover .skill-topline,
.asset-card:focus-within .skill-topline {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-card .badge {
  border-color: rgb(255 255 255 / 13%);
  background: rgb(9 9 11 / 38%);
  color: rgb(255 255 255 / 86%);
  backdrop-filter: blur(12px);
}

.level-l3 { color: #fde68a !important; }
.level-l2 { color: #ddd6fe !important; }
.level-l1 { color: #a7f3d0 !important; }

.favorite-btn,
.detail-btn {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  color: rgb(255 255 255 / 82%);
}

.favorite-btn {
  width: 34px;
  height: 34px;
  background: rgb(9 9 11 / 34%);
  opacity: 0.76;
  backdrop-filter: blur(12px);
  transition: opacity 160ms ease, background 160ms ease, color 160ms ease;
}

.favorite-btn:hover,
.asset-card:focus-within .favorite-btn {
  background: rgb(9 9 11 / 58%);
  opacity: 1;
}

.favorite-btn.active {
  color: var(--warning);
  opacity: 1;
}

.favorite-btn .icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.favorite-btn .filled {
  fill: currentColor;
}

.skill-display {
  z-index: 2;
}

.visual {
  position: absolute;
  inset: 58px 38px 82px;
  opacity: 0.66;
  transform: scale(0.94);
  transition: opacity 220ms ease, transform 220ms ease;
}

.asset-card:hover .visual,
.asset-card:focus-within .visual {
  opacity: 0.46;
  transform: scale(0.98) translateY(-6px);
}

.visual-chart .chart-panel,
.visual-doc .doc-card,
.visual-prompt .bubble {
  position: absolute;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--radius);
  background: rgb(9 9 11 / 16%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 9%);
}

.visual-chart .chart-panel {
  bottom: 14px;
  height: 64px;
}

.visual-chart .line { left: 0; width: 58%; }
.visual-chart .pie { right: 0; width: 34%; }

.visual-chart .line::before {
  position: absolute;
  inset: 19px 15px auto;
  height: 26px;
  border-bottom: 2px solid rgb(196 181 253 / 65%);
  border-radius: 50%;
  transform: rotate(-7deg);
  content: "";
}

.visual-chart .pie::before {
  position: absolute;
  left: 50%;
  top: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: conic-gradient(#a855f7 0 42%, rgb(255 255 255 / 28%) 42% 68%, rgb(255 255 255 / 10%) 68%);
  transform: translateX(-50%);
  content: "";
}

.bar {
  position: absolute;
  bottom: 9px;
  width: 10px;
  border-radius: 3px 3px 0 0;
  background: #a855f7;
}

.b1 { left: 20%; height: 19px; }
.b2 { left: 29%; height: 29px; }
.b3 { left: 38%; height: 40px; }
.b4 { left: 47%; height: 52px; }

.visual-motion .motion-ray {
  position: absolute;
  left: -18%;
  width: 136%;
  height: 1px;
  background: rgb(255 255 255 / 25%);
  transform: rotate(-23deg);
}

.r1 { top: 27%; }
.r2 { top: 48%; }
.r3 { top: 69%; }

.play-button {
  position: absolute;
  left: calc(50% - 25px);
  top: calc(50% - 25px);
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: rgb(9 9 11 / 50%);
  color: white;
}

.play-button .icon,
.terminal .icon,
.wand .icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.play-button .filled {
  fill: currentColor;
}

.wire-cube {
  position: absolute;
  right: 12%;
  top: 20%;
  width: 56px;
  height: 56px;
  border: 1px solid rgb(255 255 255 / 17%);
  border-radius: var(--radius);
  transform: rotate(38deg) skew(-8deg);
}

.doc-card.primary { left: 6%; top: 16%; width: 51%; height: 70px; }
.doc-card.secondary { right: 5%; top: 24%; width: 34%; height: 80px; }

.doc-line {
  position: absolute;
  left: 14%;
  height: 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 42%);
}

.l1 { top: 42%; width: 36%; }
.l2 { top: 56%; width: 44%; }
.l3 { top: 70%; width: 28%; }

.visual-system .node {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 18px rgb(52 211 153 / 30%);
}

.n1 { left: 14%; top: 24%; }
.n2 { left: 47%; top: 53%; }
.n3 { right: 15%; top: 20%; }

.connector {
  position: absolute;
  height: 1px;
  background: rgb(52 211 153 / 40%);
  transform-origin: left center;
}

.c1 { left: 20%; top: 32%; width: 38%; transform: rotate(24deg); }
.c2 { left: 53%; top: 54%; width: 32%; transform: rotate(-31deg); }

.terminal,
.wand {
  position: absolute;
  right: 8%;
  bottom: 8%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: var(--radius);
  background: rgb(9 9 11 / 24%);
  color: #a7f3d0;
}

.bubble.big { left: 8%; top: 22%; width: 60%; height: 52px; }
.bubble.small { right: 5%; top: 28%; width: 28%; height: 43px; }

.skill-footer {
  position: absolute;
  inset: auto 0 0;
  z-index: 6;
  display: grid;
  align-content: end;
  min-height: 82px;
  padding: 30px 54px 18px 18px;
  background: linear-gradient(180deg, transparent 0%, rgb(9 9 11 / 78%) 42%, rgb(9 9 11 / 96%) 100%);
  transition: min-height 220ms ease, padding 220ms ease, background 220ms ease;
}

.asset-card:hover .skill-footer,
.asset-card:focus-within .skill-footer {
  min-height: 72%;
  padding-top: 54px;
  background: linear-gradient(180deg, transparent 0%, rgb(9 9 11 / 72%) 28%, rgb(9 9 11 / 97%) 72%);
}

.skill-owner {
  display: grid;
  gap: 0;
  min-width: 0;
}

.card-category {
  max-height: 0;
  margin-bottom: 0;
  overflow: hidden;
  color: rgb(255 255 255 / 52%);
  font-size: 10px;
  font-weight: 650;
  opacity: 0;
  transform: translateY(4px);
  transition: max-height 180ms ease, margin 180ms ease, opacity 160ms ease, transform 180ms ease;
}

.skill-owner-copy {
  display: grid;
  gap: 0;
  min-width: 0;
}

.skill-owner-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: white;
  font-size: 17px;
  font-weight: 680;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.skill-owner-copy small {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  color: rgb(255 255 255 / 52%);
  font-size: 10px;
  line-height: 1.35;
  opacity: 0;
  text-overflow: ellipsis;
  transform: translateY(4px);
  white-space: nowrap;
  transition: max-height 180ms ease, margin 180ms ease, opacity 160ms ease, transform 180ms ease;
}

.asset-card:hover .card-category,
.asset-card:focus-within .card-category {
  max-height: 16px;
  margin-bottom: 4px;
  opacity: 1;
  transform: translateY(0);
}

.asset-card:hover .skill-owner-copy small,
.asset-card:focus-within .skill-owner-copy small {
  max-height: 16px;
  margin-top: 4px;
  opacity: 1;
  transform: translateY(0);
}

.skill-hover-panel {
  display: grid;
  gap: 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: max-height 220ms ease, margin 220ms ease, opacity 180ms ease, transform 220ms ease;
}

.asset-card:hover .skill-hover-panel,
.asset-card:focus-within .skill-hover-panel {
  max-height: 124px;
  margin-top: 12px;
  opacity: 1;
  transform: translateY(0);
}

.skill-hover-panel p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: rgb(255 255 255 / 72%);
  font-size: 11px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.skill-tag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.skill-tag-strip span {
  min-height: 20px;
  padding: 3px 6px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 5px;
  background: rgb(255 255 255 / 6%);
  color: rgb(255 255 255 / 68%);
  font-size: 9px;
}

.detail-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 30px;
  height: 30px;
  background: rgb(255 255 255 / 12%);
  color: white;
  backdrop-filter: blur(10px);
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.detail-btn:hover,
.asset-card:hover .detail-btn,
.asset-card:focus-within .detail-btn {
  background: white;
  color: #18181b;
  transform: scale(1.04);
}

.detail-avatar {
  font-size: 10px;
  font-weight: 750;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: rgb(255 255 255 / 4%);
  color: #d4d4d8;
  font-size: 11px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 340px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--muted-foreground);
  text-align: center;
}

.empty-state h3 {
  margin: 12px 0 5px;
  color: var(--foreground);
  font-size: 17px;
}

.empty-state p {
  max-width: 420px;
  margin: 0;
  font-size: 13px;
}

.empty-orb {
  width: 38px;
  height: 38px;
  border: 1px solid rgb(139 92 246 / 30%);
  border-radius: var(--radius);
  background: var(--brand-muted);
  transform: rotate(45deg);
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgb(0 0 0 / 62%);
  opacity: 0;
  backdrop-filter: blur(3px);
  transition: opacity 180ms ease;
}

.sheet-backdrop.open {
  opacity: 1;
}

.asset-sheet {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 70;
  width: min(680px, 100vw);
  border-left: 1px solid var(--border);
  background: #0d0d0f;
  box-shadow: -24px 0 80px rgb(0 0 0 / 48%);
  transform: translateX(100%);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.asset-sheet.open {
  transform: translateX(0);
}

.sheet-content {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sheet-stack {
  display: grid;
  min-height: 100%;
}

.sheet-hero {
  position: relative;
  overflow: hidden;
  padding: 30px 30px 26px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(110deg, var(--skill-a, #27272a), transparent 72%),
    #151518;
}

.sheet-hero::after {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 15%) 0.6px, transparent 0.6px);
  background-size: 10px 10px;
  mask-image: linear-gradient(90deg, black, transparent 80%);
  opacity: 0.14;
  content: "";
  pointer-events: none;
}

.sheet-hero-main {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.sheet-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.sheet-taxonomy {
  margin-left: auto;
  color: rgb(255 255 255 / 58%);
  font-size: 10px;
  font-weight: 600;
}

.sheet-hero h2 {
  max-width: 560px;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 26px;
  font-weight: 720;
  line-height: 1.24;
}

.sheet-hero p {
  max-width: 590px;
  margin: 0;
  color: rgb(255 255 255 / 66%);
  font-size: 13px;
  line-height: 1.7;
}

.sheet-block {
  padding: 24px 30px;
  border-bottom: 1px solid var(--border);
}

.sheet-block-heading {
  display: grid;
  gap: 5px;
  margin-bottom: 16px;
}

.sheet-block h3 {
  margin: 0;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 680;
}

.sheet-block p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.7;
}

.sheet-index {
  display: grid;
  gap: 13px;
}

.tag-group {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.tag-label {
  padding-top: 5px;
  color: #71717a;
  font-size: 11px;
  font-weight: 600;
}

.sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
}

.sheet-grid .sheet-block {
  min-height: 146px;
  border-bottom: 1px solid var(--border);
}

.sheet-grid .sheet-block:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.sheet-grid .sheet-block:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.info-card {
  display: grid;
  align-content: start;
  gap: 7px;
}

.quickstart {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.quickstart li {
  position: relative;
  min-height: 44px;
  padding: 12px 0 12px 38px;
  border-top: 1px solid var(--border);
  color: #d4d4d8;
  font-size: 13px;
  line-height: 1.55;
  counter-increment: step;
}

.quickstart li::before {
  position: absolute;
  left: 0;
  top: 11px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--brand-muted);
  color: #c4b5fd;
  content: counter(step);
  font-size: 10px;
  font-weight: 700;
}

.meta-list {
  display: grid;
  margin: 0;
}

.meta-list div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.meta-list dt {
  color: #71717a;
  font-size: 11px;
  font-weight: 600;
}

.meta-list dd {
  min-width: 0;
  margin: 0;
  color: #d4d4d8;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.meta-list code {
  display: inline;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgb(255 255 255 / 5%);
  color: #d4d4d8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  line-height: 1.7;
  word-break: break-all;
}

.compact-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  background: rgb(255 255 255 / 1.5%);
}

.compact-meta > div {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}

.compact-meta > div > span {
  color: #71717a;
  font-size: 10px;
  font-weight: 600;
}

.compact-meta strong {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: #e4e4e7;
  font-size: 12px;
  font-weight: 650;
}

.compact-meta strong span,
.compact-meta strong small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-meta strong small {
  color: #71717a;
  font-size: 10px;
  font-weight: 500;
}

.sheet-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: rgb(13 13 15 / 90%);
  box-shadow: 0 -14px 28px rgb(0 0 0 / 18%);
  backdrop-filter: blur(18px);
}

.sheet-actions .button {
  min-height: 38px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  padding: 10px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--popover);
  color: var(--popover-foreground);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes filter-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  to { background-position-x: -250%; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1180px) {
  :root {
    --sidebar-width: 200px;
  }

  .site-shell {
    width: calc(100% - var(--sidebar-width) - 52px);
    margin-left: calc(var(--sidebar-width) + 36px);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .registry-panel {
    display: none;
  }
}

@media (max-width: 960px) {
  .site-shell {
    width: min(calc(100% - 28px), 900px);
    margin: 0 auto;
    padding-bottom: 56px;
  }

  .topbar {
    position: sticky;
    inset: 0 auto auto;
    z-index: 40;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 58px;
    align-items: center;
    width: calc(100% + 28px);
    margin-left: -14px;
    padding: 0 14px;
    border-width: 0 0 1px;
    border-radius: 0;
  }

  .brand {
    display: flex;
    gap: 9px;
    padding: 0;
    border: 0;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-copy {
    display: none;
  }

  .beta {
    display: none;
  }

  .sidebar-body {
    min-width: 0;
    padding: 0 10px;
  }

  .main-nav {
    flex-direction: row;
    justify-content: center;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-label,
  .nav-link:nth-of-type(n + 4),
  .nav-count {
    display: none;
  }

  .nav-link {
    display: inline-flex;
    min-height: 34px;
    padding: 0 10px;
    white-space: nowrap;
  }

  .nav-link svg {
    width: 15px;
    height: 15px;
  }

  .sidebar-footer {
    display: block;
  }

  .source-status,
  .user-copy,
  .user-menu > svg {
    display: none;
  }

  .user-menu {
    display: grid;
    place-items: center;
    width: 36px;
    min-height: 36px;
    padding: 0;
  }

  .hero {
    padding-top: 44px;
  }

  .asset-toolbar {
    top: 66px;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 20px), 680px);
  }

  .topbar {
    width: calc(100% + 20px);
    margin-left: -10px;
    padding: 0 10px;
  }

  .nav-link {
    padding: 0 8px;
    font-size: 12px;
  }

  .nav-link svg {
    display: none;
  }

  .hero {
    gap: 24px;
    padding: 38px 2px 32px;
  }

  .hero-copy {
    gap: 24px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-description {
    font-size: 14px;
  }

  .search-wrap {
    height: 48px;
  }

  .search-wrap kbd {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 0;
  }

  .stat-card:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .library-section {
    padding-top: 30px;
  }

  .section-heading {
    align-items: center;
  }

  .section-title-group h2 {
    font-size: 21px;
  }

  .asset-toolbar {
    top: 64px;
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
    padding: 8px;
  }

  .filter-divider {
    display: none;
  }

  .category-pills {
    width: 100%;
  }

  .asset-grid,
  .skeleton-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .asset-card {
    aspect-ratio: 1.3 / 1;
  }

  .skill-hover-panel {
    max-height: 0;
  }

  .asset-card:hover .skill-hover-panel,
  .asset-card:focus-within .skill-hover-panel {
    max-height: 110px;
  }

  .asset-sheet {
    width: 100%;
  }

  .sheet-hero,
  .sheet-block {
    padding: 20px;
  }

  .sheet-hero h2 {
    font-size: 23px;
  }

  .sheet-taxonomy {
    width: 100%;
    margin-left: 0;
  }

  .sheet-grid {
    grid-template-columns: 1fr;
  }

  .sheet-grid .sheet-block,
  .sheet-grid .sheet-block:nth-child(odd),
  .sheet-grid .sheet-block:nth-last-child(-n + 2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .sheet-grid .sheet-block:last-child {
    border-bottom: 0;
  }

  .tag-group,
  .meta-list div,
  .compact-meta {
    grid-template-columns: 1fr;
  }

  .tag-group {
    gap: 6px;
  }

  .tag-label {
    padding-top: 0;
  }

  .compact-meta {
    gap: 16px;
  }

  .sheet-actions {
    padding: 12px;
  }

  .sheet-actions .button {
    flex: 1 1 calc(50% - 6px);
  }
}

@media (max-width: 440px) {
  .nav-link:nth-of-type(3) {
    display: none;
  }

  .section-heading .button {
    width: 36px;
    padding: 0;
    overflow: hidden;
    color: transparent;
  }

  .section-heading .button svg {
    flex: 0 0 auto;
    color: var(--foreground);
  }

  .asset-card {
    aspect-ratio: 1.18 / 1;
  }

}

@media (min-width: 1440px) {
  .brand-name,
  .user-copy strong {
    font-size: 16px;
  }

  .product-name,
  .user-copy small {
    font-size: 13px;
  }

  .badge {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 13px;
  }

  .beta {
    min-height: 20px;
    padding: 3px 7px;
    font-size: 11px;
  }

  .nav-label {
    font-size: 12px;
  }

  .nav-link {
    min-height: 42px;
    font-size: 15px;
  }

  .nav-count {
    font-size: 11px;
  }

  .source-status strong {
    font-size: 13px;
  }

  .source-status small {
    font-size: 12px;
  }

  .workspace-title h1 {
    font-size: 16px;
  }

  .view-tab,
  .button {
    font-size: 14px;
  }

  .asset-toolbar .search-wrap input {
    font-size: 15px;
  }

  .pill {
    font-size: 14px;
  }

  .pill-count {
    font-size: 11px;
  }

  .results-meta p {
    font-size: 13px;
  }

  .card-category,
  .skill-owner-copy small {
    font-size: 12px;
  }

  .skill-owner-copy strong {
    font-size: 19px;
  }

  .skill-hover-panel p {
    font-size: 13px;
  }

  .skill-tag-strip span {
    font-size: 11px;
  }

  .detail-avatar {
    font-size: 12px;
  }

  .asset-sheet {
    width: min(740px, 100vw);
  }

  .section-kicker {
    font-size: 11px;
  }

  .sheet-taxonomy {
    font-size: 12px;
  }

  .sheet-hero h2 {
    font-size: 28px;
  }

  .sheet-hero p,
  .sheet-block p {
    font-size: 15px;
  }

  .sheet-block h3 {
    font-size: 16px;
  }

  .tag-label,
  .tag-list span {
    font-size: 13px;
  }

  .quickstart li {
    font-size: 15px;
  }

  .meta-list dt {
    font-size: 13px;
  }

  .meta-list dd {
    font-size: 14px;
  }

  .meta-list code {
    font-size: 12px;
  }

  .compact-meta > div > span,
  .compact-meta strong small {
    font-size: 12px;
  }

  .compact-meta strong {
    font-size: 14px;
  }
}

/* Application shell: centered discovery layout */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  width: 100%;
  margin: 0;
  padding: 0;
}

.topbar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  padding: 20px 16px 16px;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: #141416;
  box-shadow: none;
}

.brand {
  padding: 0 4px 20px;
}

.sidebar-body {
  padding-top: 20px;
}

.workspace {
  width: auto;
  min-height: 100vh;
  margin-left: 248px;
}

.workspace-header {
  position: sticky;
  top: 0;
  z-index: 35;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  height: 72px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: rgb(9 9 11 / 88%);
  backdrop-filter: blur(20px) saturate(120%);
}

.workspace-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.workspace-title h1 {
  overflow: hidden;
  margin: 0;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-title .beta {
  display: none;
}

.view-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.view-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #71717a;
  font-size: 12px;
  font-weight: 620;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.view-tab svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.view-tab:hover {
  color: var(--foreground);
}

.view-tab.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-sm);
}

.upload-button {
  justify-self: end;
  min-height: 36px;
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
  text-decoration: none;
}

.upload-button:hover {
  background: #e4e4e7;
  color: var(--primary-foreground);
}

.workspace-content {
  width: min(1124px, calc(100% - 48px));
  margin: 0 auto;
  padding: 136px 0 72px;
}

.library-section {
  width: 100%;
  margin: 0;
  padding: 0;
}

.asset-toolbar {
  position: static;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 40px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.asset-toolbar .search-wrap {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-color: var(--border);
  border-radius: var(--radius);
  background: #18181b;
}

.asset-toolbar .search-wrap kbd {
  display: none;
}

.filter-type-group {
  min-width: 0;
}

.category-pills {
  gap: 3px;
}

.pill {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
}

.pill.active {
  box-shadow: var(--shadow-sm);
}

.filter-secondary-group {
  display: flex;
  width: 100%;
  margin: -2px 0 14px;
  padding-left: 264px;
}

.secondary-pills {
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 32px;
  margin-bottom: 12px;
}

.results-meta p {
  margin: 0;
  color: #71717a;
  font-size: 11px;
}

.results-meta .button {
  width: 32px;
  min-height: 32px;
  padding: 0;
  overflow: hidden;
  color: transparent;
  font-size: 0;
}

.results-meta .button svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--muted-foreground);
}

.asset-grid,
.skeleton-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.asset-card,
.skeleton-grid span {
  aspect-ratio: 3 / 2;
}

.skill-footer {
  min-height: 78px;
  padding: 28px 54px 17px 18px;
}

.asset-card:hover .skill-footer,
.asset-card:focus-within .skill-footer {
  min-height: 76%;
}

@media (max-width: 1180px) {
  .workspace-content {
    width: min(920px, calc(100% - 40px));
  }

  .asset-toolbar {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .filter-secondary-group {
    padding-left: 234px;
  }
}

@media (max-width: 1020px) {
  .topbar {
    position: sticky;
    inset: 0 auto auto;
    z-index: 50;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 58px;
    align-items: center;
    width: 100%;
    height: 58px;
    padding: 0 14px;
    border: 0;
    border-bottom: 1px solid var(--border);
  }

  .brand {
    display: flex;
    gap: 9px;
    padding: 0;
    border: 0;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-copy,
  .brand .beta,
  .nav-label,
  .nav-count,
  .sidebar-footer {
    display: none;
  }

  .sidebar-body {
    min-width: 0;
    padding: 0 10px;
  }

  .main-nav {
    flex-direction: row;
    justify-content: center;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-link {
    display: inline-flex;
    min-height: 34px;
    padding: 0 10px;
    white-space: nowrap;
  }

  .workspace {
    margin-left: 0;
  }

  .workspace-header {
    top: 58px;
    height: 58px;
    padding: 0 16px;
  }

  .workspace-content {
    width: min(760px, calc(100% - 32px));
    padding-top: 72px;
  }

  .asset-toolbar {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .filter-secondary-group {
    padding-left: 224px;
  }

  .asset-grid,
  .skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    display: none;
  }

  .main-nav .nav-link:nth-of-type(n + 3) {
    display: none;
  }

  .workspace-header {
    top: 0;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .workspace-title {
    display: none;
  }

  .view-switch {
    justify-self: start;
  }

  .view-tab {
    min-height: 34px;
    padding: 0 10px;
  }

  .upload-button {
    width: 36px;
    padding: 0;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }

  .upload-button svg {
    color: var(--primary-foreground);
  }

  .workspace-content {
    width: min(100% - 20px, 560px);
    padding-top: 38px;
  }

  .asset-toolbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .filter-secondary-group {
    margin-top: 0;
    padding-left: 0;
  }

  .secondary-pills {
    padding-top: 0;
    border-top: 0;
  }

  .asset-grid,
  .skeleton-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .asset-card,
  .skeleton-grid span {
    aspect-ratio: 1.42 / 1;
  }
}

@media (max-width: 440px) {
  .view-tab svg {
    display: none;
  }

  .view-tab {
    padding: 0 8px;
    font-size: 11px;
  }
}

@media (min-width: 1440px) {
  .workspace-title h1 {
    font-size: 16px;
  }

  .view-tab {
    font-size: 14px;
  }

  .results-meta p {
    font-size: 13px;
  }
}

/* Home dashboard and page-level navigation */
.topbar {
  padding: 0 16px 16px;
}

.brand {
  height: 72px;
  padding: 0 4px;
}

.workspace-content {
  padding-top: 64px;
}

.library-section {
  padding-top: 72px;
}

.dashboard-section {
  display: grid;
  gap: 28px;
}

.dashboard-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-heading > div {
  display: grid;
  gap: 7px;
}

.dashboard-heading h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 720;
  line-height: 1.2;
}

.dashboard-heading p {
  max-width: 620px;
  margin: 0;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.65;
}

.dashboard-asset-link svg {
  width: 15px;
  height: 15px;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.dashboard-metrics article {
  position: relative;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 22px 24px;
  border-left: 1px solid var(--border);
}

.dashboard-metrics .metric-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 3%);
  color: #a1a1aa;
}

.dashboard-metrics .metric-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.dashboard-metrics article:first-child {
  padding-left: 0;
  border-left: 0;
}

.dashboard-metrics article:last-child {
  padding-right: 0;
}

.dashboard-metrics span {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 600;
}

.dashboard-metrics strong {
  color: var(--foreground);
  font-size: 32px;
  font-weight: 720;
  line-height: 1.1;
}

.dashboard-metrics small {
  overflow: hidden;
  color: #71717a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.dashboard-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 1.5%);
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.panel-heading > div {
  display: grid;
  gap: 5px;
}

.panel-heading h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 680;
}

.panel-note {
  color: #71717a;
  font-size: 10px;
}

.recent-list {
  display: grid;
}

.recent-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 63px;
  padding: 10px 16px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  text-align: left;
  transition: background 150ms ease;
}

.recent-item:last-child {
  border-bottom: 0;
}

.recent-item:hover {
  background: rgb(255 255 255 / 4%);
}

.recent-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--skill-ring, var(--border));
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--skill-a, #27272a), var(--skill-b, #111113));
  color: rgb(255 255 255 / 78%);
}

.recent-icon .icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.recent-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.recent-copy strong,
.recent-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-copy strong {
  font-size: 13px;
  font-weight: 650;
}

.recent-copy small,
.recent-item time {
  color: #71717a;
  font-size: 10px;
}

.category-overview {
  display: grid;
  padding: 8px 16px 12px;
}

.category-row {
  display: grid;
  grid-template-columns: minmax(92px, auto) minmax(80px, 1fr) 22px;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 4px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  text-align: left;
}

.category-row:last-child {
  border-bottom: 0;
}

.category-row-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.category-row-label .icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--muted-foreground);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.category-row-label strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(255 255 255 / 6%);
}

.category-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  opacity: 0.72;
}

.category-total {
  color: var(--muted-foreground);
  font-size: 11px;
  text-align: right;
}

.dashboard-source {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(0, 2fr);
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 1.5%);
}

.source-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.source-title strong {
  font-size: 13px;
}

.dashboard-source dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}

.dashboard-source dl div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dashboard-source dt {
  color: #71717a;
  font-size: 10px;
}

.dashboard-source dd {
  overflow: hidden;
  margin: 0;
  color: #d4d4d8;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-link svg,
.user-menu svg,
.button svg,
.view-tab svg,
.pill .icon,
.recent-icon .icon,
.category-row-label .icon,
.sheet-actions .icon {
  stroke-width: 2;
}

.nav-link svg *,
.user-menu svg *,
.button svg *,
.view-tab svg *,
.pill .icon *,
.recent-icon .icon *,
.category-row-label .icon *,
.sheet-actions .icon *,
.metric-icon svg * {
  vector-effect: non-scaling-stroke;
}

/* Workflow reader: a structured article view for assets maintained outside SKILL.md. */
.workflow-reader {
  position: fixed;
  inset: 0 0 0 248px;
  z-index: 80;
  background: #09090b;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.workflow-reader.open {
  opacity: 1;
  transform: translateY(0);
}

body.workflow-reader-open {
  overflow: hidden;
}

.workflow-reader-frame {
  position: absolute;
  inset: 0;
  display: grid;
  min-height: 0;
  grid-template-rows: 64px minmax(0, 1fr);
}

.workflow-reader-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  background: rgb(9 9 11 / 94%);
  backdrop-filter: blur(18px);
}

.reader-back,
.reader-bar-actions,
.reader-path {
  display: inline-flex;
  align-items: center;
}

.reader-back {
  justify-self: start;
  gap: 8px;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  font: inherit;
  font-size: 12px;
  font-weight: 620;
}

.reader-back:hover {
  color: var(--foreground);
}

.reader-back .icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reader-path {
  gap: 8px;
  color: #71717a;
  font-size: 11px;
  white-space: nowrap;
}

.reader-path i {
  color: #3f3f46;
  font-style: normal;
}

.reader-path strong {
  color: #a1a1aa;
  font-weight: 600;
}

.reader-bar-actions {
  justify-self: end;
  gap: 8px;
}

.reader-action {
  min-height: 34px;
  font-size: 12px;
}

.workflow-reader-scroll-area {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.workflow-article {
  width: min(1040px, calc(100% - 56px));
  margin: 0 auto;
  padding: 56px 0 88px;
}

.workflow-article-hero {
  position: relative;
  overflow: hidden;
  padding: 46px 52px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--skill-a, #a1a1aa);
  border-radius: 8px;
  background: #18181b;
}

.workflow-article-hero::after {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 10%) 0.55px, transparent 0.55px);
  background-position: right center;
  background-size: 12px 12px;
  mask-image: linear-gradient(90deg, transparent 34%, black);
  opacity: 0.26;
  content: "";
  pointer-events: none;
}

.workflow-article-hero-main {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 760px;
  gap: 16px;
}

.workflow-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #a1a1aa;
  font-size: 11px;
  font-weight: 600;
}

.workflow-article-type {
  padding-left: 8px;
  border-left: 1px solid var(--border-strong);
  color: #d4d4d8;
  letter-spacing: 0.08em;
}

.workflow-article-hero h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.16;
}

.workflow-article-hero p {
  max-width: 720px;
  margin: 0;
  color: #b4b4bc;
  font-size: 16px;
  line-height: 1.75;
}

.workflow-article-facts {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr;
  gap: 24px;
  margin: 12px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 10%);
}

.workflow-article-facts div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.workflow-article-facts dt {
  color: #71717a;
  font-size: 10px;
  font-weight: 650;
}

.workflow-article-facts dd {
  overflow: hidden;
  margin: 0;
  color: #d4d4d8;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-quick-flow {
  padding: 36px 0 42px;
  border-bottom: 1px solid var(--border);
}

.workflow-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.workflow-section-heading > div {
  display: grid;
  gap: 5px;
}

.workflow-section-heading h2,
.workflow-block h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.workflow-section-heading p {
  max-width: 405px;
  margin: 0;
  color: #71717a;
  font-size: 12px;
  line-height: 1.65;
}

.workflow-step-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #101013;
}

.workflow-step-flow li + li {
  border-left: 1px solid var(--border);
}

.workflow-step-flow button {
  display: grid;
  width: 100%;
  min-height: 136px;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  column-gap: 12px;
  row-gap: 6px;
  padding: 20px;
  border: 0;
  background: transparent;
  color: var(--foreground);
  font: inherit;
  text-align: left;
  transition: background 160ms ease;
}

.workflow-step-flow button:hover {
  background: rgb(255 255 255 / 3%);
}

.workflow-step-number {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: #d4d4d8;
  font-size: 10px;
  font-weight: 700;
}

.workflow-step-flow strong {
  min-width: 0;
  font-size: 14px;
  font-weight: 680;
}

.workflow-step-flow small {
  grid-column: 2 / 4;
  color: #71717a;
  font-size: 11px;
  line-height: 1.55;
}

.workflow-step-flow i {
  grid-column: 3;
  grid-row: 1;
  color: #71717a;
}

.workflow-step-flow i .icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workflow-article-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: start;
  gap: 64px;
  padding-top: 44px;
}

.workflow-article-main {
  display: grid;
  min-width: 0;
  gap: 42px;
}

.workflow-block {
  scroll-margin-top: 28px;
}

.workflow-block > header {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.workflow-text p {
  margin: 0 0 14px;
  color: #c5c5cc;
  font-size: 15px;
  line-height: 1.85;
}

.workflow-text p:last-child {
  margin-bottom: 0;
}

.workflow-media {
  margin: 0;
  scroll-margin-top: 28px;
}

.workflow-media img,
.workflow-media video {
  display: block;
  width: 100%;
  max-height: 520px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #111113;
  object-fit: cover;
}

.workflow-media figcaption {
  margin-top: 10px;
  color: #71717a;
  font-size: 11px;
  line-height: 1.6;
}

.workflow-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.workflow-platform-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 172px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgb(255 255 255 / 1.5%);
}

.workflow-platform-grid span {
  color: #71717a;
  font-size: 10px;
  font-weight: 650;
}

.workflow-platform-grid h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 680;
}

.workflow-platform-grid p {
  margin: 0;
  color: #a1a1aa;
  font-size: 12px;
  line-height: 1.65;
}

.workflow-instructions ol,
.workflow-checklist ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.workflow-instructions li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.workflow-instructions li > span {
  color: #71717a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
}

.workflow-instructions li p {
  margin: 0;
  color: #c5c5cc;
  font-size: 14px;
  line-height: 1.72;
}

.workflow-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: #c5c5cc;
  font-size: 14px;
  line-height: 1.65;
}

.workflow-checklist .icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: #d4d4d8;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workflow-callout {
  scroll-margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--border-strong);
  border-left: 3px solid #a1a1aa;
  border-radius: 7px;
  background: #18181b;
}

.workflow-callout > span {
  color: #e4e4e7;
  font-size: 11px;
  font-weight: 700;
}

.workflow-callout p {
  margin: 8px 0 0;
  color: #b4b4bc;
  font-size: 13px;
  line-height: 1.7;
}

.workflow-article-aside {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 22px;
}

.workflow-toc,
.workflow-source-note {
  display: grid;
  gap: 9px;
  padding-left: 14px;
  border-left: 1px solid var(--border);
}

.workflow-toc strong,
.workflow-source-note strong {
  font-size: 12px;
  font-weight: 680;
}

.workflow-toc nav {
  display: grid;
  gap: 2px;
}

.workflow-toc button {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: #71717a;
  font: inherit;
  font-size: 11px;
  line-height: 1.45;
  text-align: left;
}

.workflow-toc button:hover {
  color: #d4d4d8;
}

.workflow-source-note p {
  margin: 0;
  color: #71717a;
  font-size: 11px;
  line-height: 1.65;
}

.workflow-source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 2px;
  color: #d4d4d8;
  font-size: 11px;
  font-weight: 620;
  text-decoration: none;
}

.workflow-source-link:hover {
  color: #fff;
}

.workflow-source-link .icon {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workflow-code pre {
  overflow-x: auto;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #101013;
}

.workflow-code code {
  color: #d4d4d8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre;
}

.workflow-code > p {
  margin: 9px 0 0;
  color: #71717a;
  font-size: 11px;
  line-height: 1.6;
}

.workflow-document-list ul,
.workflow-document-list ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  color: #c5c5cc;
  font-size: 14px;
  line-height: 1.72;
}

.workflow-document-list li::marker {
  color: #71717a;
}

.workflow-resource {
  display: grid;
  justify-items: start;
  gap: 9px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #141417;
  scroll-margin-top: 28px;
}

.workflow-resource h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 680;
}

.workflow-resource p {
  margin: 0;
  color: #a1a1aa;
  font-size: 13px;
  line-height: 1.7;
}

.workflow-resource a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  margin-top: 4px;
  padding: 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: #e4e4e7;
  font-size: 12px;
  font-weight: 620;
  text-decoration: none;
}

.workflow-resource a:hover {
  background: rgb(255 255 255 / 4%);
}

.workflow-resource a .icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: none;
}

.workflow-article-footer {
  display: grid;
  grid-template-columns: 0.75fr 0.75fr minmax(0, 1.5fr);
  gap: 24px;
  margin-top: 52px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.workflow-article-footer div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.workflow-article-footer span {
  color: #71717a;
  font-size: 10px;
  font-weight: 600;
}

.workflow-article-footer strong,
.workflow-article-footer code {
  overflow: hidden;
  color: #d4d4d8;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-article-footer code {
  color: #a1a1aa;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 500;
}

.workflow-reader-loading {
  display: grid;
  min-height: min(58vh, 560px);
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: #a1a1aa;
  font-size: 14px;
}

.workflow-reader-loading p {
  margin: 0;
}

.workflow-reader-loading-mark {
  width: 26px;
  height: 26px;
  border: 2px solid #27272a;
  border-top-color: #e4e4e7;
  border-radius: 50%;
  animation: reader-spin 780ms linear infinite;
}

.workflow-article-markdown {
  width: min(1140px, calc(100% - 64px));
}

.markdown-article-body {
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 56px;
}

.markdown-article {
  display: block;
  max-width: none;
  color: #c5c5cc;
  font-size: 16px;
  line-height: 1.9;
}

.markdown-article > * + * {
  margin-top: 18px;
}

.markdown-article .markdown-section {
  scroll-margin-top: 28px;
}

.markdown-article h2,
.markdown-article h3 {
  margin: 0;
  color: var(--foreground);
  font-weight: 710;
  letter-spacing: 0;
  line-height: 1.35;
}

.markdown-article h2 {
  margin-top: 62px;
  font-size: 25px;
}

.markdown-article h3 {
  margin-top: 36px;
  font-size: 18px;
}

.markdown-article p {
  max-width: 820px;
  margin: 0;
}

.markdown-article strong {
  color: #e4e4e7;
  font-weight: 680;
}

.markdown-article code {
  padding: 2px 5px;
  border: 1px solid #303035;
  border-radius: 4px;
  background: #1b1b1f;
  color: #e4e4e7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86em;
  line-height: 1.5;
}

.markdown-article pre {
  overflow-x: auto;
  max-width: 100%;
  margin: 26px 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #101013;
  color: #d4d4d8;
  font-size: 13px;
  line-height: 1.75;
}

.markdown-article pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  white-space: pre;
}

.markdown-article ul,
.markdown-article ol {
  display: grid;
  gap: 8px;
  margin: 18px 0 26px;
  padding-left: 24px;
}

.markdown-article li {
  padding-left: 3px;
}

.markdown-article li::marker {
  color: #71717a;
}

.markdown-article hr {
  height: 1px;
  margin: 46px 0 0;
  border: 0;
  background: var(--border);
}

.markdown-media,
.markdown-video-figure {
  margin: 30px 0;
}

.markdown-media img,
.markdown-video-figure img {
  display: block;
  width: 100%;
  max-height: 620px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #111113;
  object-fit: contain;
}

.markdown-media figcaption,
.markdown-video-figure figcaption {
  margin-top: 10px;
  color: #8b8b94;
  font-size: 13px;
  line-height: 1.65;
}

.markdown-video-figure a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.markdown-video-figure a::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgb(9 9 11 / 80%));
  content: "";
  pointer-events: none;
}

.markdown-video-play {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 6px;
  background: rgb(9 9 11 / 76%);
  color: #f4f4f5;
  font-size: 12px;
  font-weight: 650;
  backdrop-filter: blur(10px);
}

.markdown-video-play .icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: none;
}

.markdown-video-figure a:hover .markdown-video-play {
  background: rgb(39 39 42 / 92%);
}

@keyframes reader-spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 1440px) {
  .workflow-reader-bar {
    min-height: 72px;
  }

  .workflow-reader-frame {
    grid-template-rows: 72px minmax(0, 1fr);
  }

  .workflow-article-hero h1 {
    font-size: 40px;
  }

  .workflow-article-hero p,
  .workflow-text p {
    font-size: 16px;
  }

  .workflow-instructions li p,
  .workflow-checklist li {
    font-size: 15px;
  }

  .markdown-article {
    font-size: 17px;
  }

  .markdown-article h2 {
    font-size: 27px;
  }
}

@media (max-width: 1020px) {
  .workflow-reader {
    inset: 58px 0 0;
  }

  .workflow-reader-bar {
    grid-template-columns: 1fr auto;
    min-height: 58px;
    padding: 0 16px;
  }

  .workflow-reader-frame {
    grid-template-rows: 58px minmax(0, 1fr);
  }

  .reader-path {
    display: none;
  }

  .workflow-article {
    width: min(860px, calc(100% - 40px));
    padding-top: 36px;
  }

  .workflow-article-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .markdown-article-body {
    gap: 36px;
  }

  .workflow-article-aside {
    position: static;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 720px) {
  .workflow-reader {
    inset: 58px 0 0;
  }

  .reader-back span,
  .reader-action:first-child {
    display: none;
  }

  .reader-bar-actions {
    gap: 0;
  }

  .reader-action {
    width: 34px;
    min-height: 34px;
    padding: 0;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }

  .reader-action .icon {
    flex: 0 0 auto;
    color: var(--primary-foreground);
  }

  .workflow-article {
    width: min(100% - 24px, 640px);
    padding: 20px 0 56px;
  }

  .workflow-article-markdown {
    width: min(100% - 24px, 640px);
  }

  .workflow-article-hero {
    padding: 28px 22px;
  }

  .workflow-article-hero h1 {
    font-size: 29px;
  }

  .workflow-article-hero p {
    font-size: 14px;
  }

  .workflow-article-facts {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .workflow-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .workflow-step-flow,
  .workflow-platform-grid,
  .workflow-article-aside,
  .workflow-article-footer {
    grid-template-columns: 1fr;
  }

  .workflow-step-flow li + li {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .workflow-step-flow button {
    min-height: 98px;
  }

  .workflow-article-body {
    gap: 38px;
    padding-top: 36px;
  }

  .workflow-article-main {
    gap: 34px;
  }

  .workflow-article-aside {
    gap: 18px;
  }

  .workflow-article-footer {
    gap: 16px;
    margin-top: 40px;
  }
}

@media (min-width: 1440px) {
  .dashboard-heading p {
    font-size: 16px;
  }

  .dashboard-metrics span,
  .category-row-label strong {
    font-size: 14px;
  }

  .dashboard-metrics small,
  .category-total,
  .dashboard-source dd {
    font-size: 13px;
  }

  .recent-copy strong,
  .source-title strong {
    font-size: 15px;
  }

  .recent-copy small,
  .recent-item time,
  .panel-note,
  .dashboard-source dt {
    font-size: 12px;
  }
}

@media (max-width: 1020px) {
  .brand {
    height: 58px;
  }

  .workspace-content {
    padding-top: 48px;
  }

  .library-section {
    padding-top: 24px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    display: grid;
  }

  .workspace.page-home .workspace-header {
    display: none;
  }

  .workspace.page-assets .workspace-header {
    display: grid;
  }

  .workspace-content {
    padding-top: 32px;
  }

  .library-section {
    padding-top: 0;
  }

  .dashboard-heading {
    align-items: start;
    flex-direction: column;
  }

  .dashboard-heading h2 {
    font-size: 25px;
  }

  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-metrics article {
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }

  .dashboard-metrics .metric-icon {
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
  }

  .dashboard-metrics article:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .dashboard-metrics article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .dashboard-source {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dashboard-source dl {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
